aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0039.c (480700B)


      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_360848C0(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(0x360848C0u);
     17 
     18 L_360848C0:
     19     MEM32(ecx) = 0x36171B04u; /* 0x360848C0: mov dword ptr [ecx], 0x36171b04 */
     20 L_360848C6:
     21     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
     22     { RECOMP_REGS_OUT(); return; } /* end of function */
     23   _ljump:
     24     switch (_itail_tgt) {
     25       case 0x360848C0u: goto L_360848C0;
     26       case 0x360848C6u: goto L_360848C6;
     27       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     28     }
     29     RECOMP_REGS_OUT();
     30 }
     31 
     32 void sub_360848D0(void) {
     33     int _fpu_cmp = 0;
     34     uint32_t _cf = 0;
     35     int _df = 1;
     36     uint32_t _flag_k = FK_NONE;
     37     uint32_t _flag_a = 0, _flag_b = 0;
     38     uint32_t _itail_tgt = 0;
     39     RECOMP_REGS_LOCALS
     40     RECOMP_ENTER(0x360848D0u);
     41 
     42 L_360848D0:
     43     PUSH32(esp, ebp); /* 0x360848D0: push ebp */
     44     ebp = esp; /* 0x360848D1: mov ebp, esp */
     45     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     46     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     47     esp = esp - 8; /* 0x360848D3: sub esp, 8 */
     48     _flag_k = FK_CMP;
     49     PUSH32(esp, ebx); /* 0x360848D6: push ebx */
     50     ebx = MEM32(0x3616FA8C); /* 0x360848D7: mov ebx, dword ptr [0x3616fa8c] */
     51     PUSH32(esp, esi); /* 0x360848DD: push esi */
     52     PUSH32(esp, edi); /* 0x360848DE: push edi */
     53     edi = MEM32(ebp + 0x8); /* 0x360848DF: mov edi, dword ptr [ebp + 8] */
     54     eax = ebp + 0x8; /* 0x360848E2: lea eax, [ebp + 8] */
     55     esi = ecx; /* 0x360848E5: mov esi, ecx */
     56     PUSH32(esp, eax); /* 0x360848E7: push eax */
     57     ecx = edi; /* 0x360848E8: mov ecx, edi */
     58     RECOMP_ICALL(ebx); /* 0x360848EA: call ebx */
     59     RECOMP_FLAGS_IN();
     60     ecx = ebp + (-0x8); /* 0x360848EC: lea ecx, [ebp - 8] */
     61     PUSH32(esp, ecx); /* 0x360848EF: push ecx */
     62     ecx = eax; /* 0x360848F0: mov ecx, eax */
     63     RECOMP_ICALL(ebx); /* 0x360848F2: call ebx */
     64     RECOMP_FLAGS_IN();
     65     edx = ebp + (-0x4); /* 0x360848F4: lea edx, [ebp - 4] */
     66     PUSH32(esp, edx); /* 0x360848F7: push edx */
     67     ecx = eax; /* 0x360848F8: mov ecx, eax */
     68     RECOMP_ICALL(ebx); /* 0x360848FA: call ebx */
     69     RECOMP_FLAGS_IN();
     70     eax = MEM32(ebp + (-0x4)); /* 0x360848FC: mov eax, dword ptr [ebp - 4] */
     71     ecx = MEM32(ebp + (-0x8)); /* 0x360848FF: mov ecx, dword ptr [ebp - 8] */
     72     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
     73     eax = eax & 0xFFFFu; /* 0x36084902: and eax, 0xffff */
     74     _cf = 0;
     75     _flag_k = FK_TEST;
     76     /* test ecx, ecx */ /* 0x36084907: test ecx, ecx */
     77     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     78     _cf = 0;
     79     _flag_k = FK_TEST;
     80     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608490E; /* 0x36084909: jne 0x3608490e */
     81 L_3608490B:
     82     ecx = MEM32(ebp + 0x8); /* 0x3608490B: mov ecx, dword ptr [ebp + 8] */
     83 L_3608490E:
     84     edx = esi + 0x20; /* 0x3608490E: lea edx, [esi + 0x20] */
     85     MEM32(edx) = eax; /* 0x36084911: mov dword ptr [edx], eax */
     86     eax = MEM32(ebp + 0x8); /* 0x36084913: mov eax, dword ptr [ebp + 8] */
     87     MEM32(edx + 0x4) = eax; /* 0x36084916: mov dword ptr [edx + 4], eax */
     88     MEM32(edx + 0x8) = ecx; /* 0x36084919: mov dword ptr [edx + 8], ecx */
     89     ecx = esi + 0x2C; /* 0x3608491C: lea ecx, [esi + 0x2c] */
     90     PUSH32(esp, ecx); /* 0x3608491F: push ecx */
     91     ecx = edi; /* 0x36084920: mov ecx, edi */
     92     RECOMP_ICALL(ebx); /* 0x36084922: call ebx */
     93     RECOMP_FLAGS_IN();
     94     edx = esi + 0x30; /* 0x36084924: lea edx, [esi + 0x30] */
     95     PUSH32(esp, edx); /* 0x36084927: push edx */
     96     PUSH32(esp, edi); /* 0x36084928: push edi */
     97     RECOMP_ICALL(0x36001240u); /* 0x36084929: call 0x36001240 */ /* not lifted */
     98     RECOMP_FLAGS_IN();
     99     eax = esi + 0x34; /* 0x3608492E: lea eax, [esi + 0x34] */
    100     PUSH32(esp, eax); /* 0x36084931: push eax */
    101     PUSH32(esp, edi); /* 0x36084932: push edi */
    102     RECOMP_ICALL(0x3615B870u); /* 0x36084933: call 0x3615b870 */ /* not lifted */
    103     RECOMP_FLAGS_IN();
    104     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu);
    105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    106     esi = esi + 0x3Cu; /* 0x36084938: add esi, 0x3c */
    107     _flag_k = FK_ADD;
    108     PUSH32(esp, esi); /* 0x3608493B: push esi */
    109     PUSH32(esp, edi); /* 0x3608493C: push edi */
    110     RECOMP_ICALL(0x3615B870u); /* 0x3608493D: call 0x3615b870 */ /* not lifted */
    111     RECOMP_FLAGS_IN();
    112     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    114     esp = esp + 0x18u; /* 0x36084942: add esp, 0x18 */
    115     _flag_k = FK_ADD;
    116     ecx = edi; /* 0x36084945: mov ecx, edi */
    117     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36084947: call dword ptr [0x3616fadc] */
    118     RECOMP_FLAGS_IN();
    119     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    120     _cf = (eax) != 0;
    121     eax = (uint32_t)(-(int32_t)eax); /* 0x3608494D: neg eax */
    122     _flag_k = FK_CMP;
    123     edi = POP32_VAL(esp); /* 0x3608494F: pop edi */
    124     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36084950: sbb eax, eax */
    125       eax = _sc ? 0xFFFFFFFFu : 0;
    126       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    127       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    128     esi = POP32_VAL(esp); /* 0x36084952: pop esi */
    129     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    130     eax = eax + 1; /* 0x36084953: inc eax */
    131     _flag_k = FK_INC;
    132     ebx = POP32_VAL(esp); /* 0x36084954: pop ebx */
    133     esp = ebp; /* 0x36084955: mov esp, ebp */
    134     ebp = POP32_VAL(esp); /* 0x36084957: pop ebp */
    135     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084958: ret 4 */
    136     RECOMP_REGS_OUT();
    137 }
    138 
    139 void sub_36084960(void) {
    140     int _fpu_cmp = 0;
    141     uint32_t _cf = 0;
    142     int _df = 1;
    143     uint32_t _flag_k = FK_NONE;
    144     uint32_t _flag_a = 0, _flag_b = 0;
    145     uint32_t _itail_tgt = 0;
    146     RECOMP_REGS_LOCALS
    147     RECOMP_ENTER(0x36084960u);
    148 
    149 L_36084960:
    150     PUSH32(esp, ebp); /* 0x36084960: push ebp */
    151     ebp = esp; /* 0x36084961: mov ebp, esp */
    152     PUSH32(esp, ebx); /* 0x36084963: push ebx */
    153     ebx = MEM32(0x3616FAEC); /* 0x36084964: mov ebx, dword ptr [0x3616faec] */
    154     PUSH32(esp, esi); /* 0x3608496A: push esi */
    155     esi = ecx; /* 0x3608496B: mov esi, ecx */
    156     eax = MEM32(esi + 0x24); /* 0x3608496D: mov eax, dword ptr [esi + 0x24] */
    157     PUSH32(esp, edi); /* 0x36084970: push edi */
    158     edi = MEM32(ebp + 0x8); /* 0x36084971: mov edi, dword ptr [ebp + 8] */
    159     PUSH32(esp, eax); /* 0x36084974: push eax */
    160     ecx = edi; /* 0x36084975: mov ecx, edi */
    161     RECOMP_ICALL(ebx); /* 0x36084977: call ebx */
    162     RECOMP_FLAGS_IN();
    163     ecx = MEM32(esi + 0x28); /* 0x36084979: mov ecx, dword ptr [esi + 0x28] */
    164     PUSH32(esp, ecx); /* 0x3608497C: push ecx */
    165     ecx = edi; /* 0x3608497D: mov ecx, edi */
    166     RECOMP_ICALL(ebx); /* 0x3608497F: call ebx */
    167     RECOMP_FLAGS_IN();
    168     edx = MEM32(esi + 0x20); /* 0x36084981: mov edx, dword ptr [esi + 0x20] */
    169     PUSH32(esp, edx); /* 0x36084984: push edx */
    170     ecx = edi; /* 0x36084985: mov ecx, edi */
    171     RECOMP_ICALL(ebx); /* 0x36084987: call ebx */
    172     RECOMP_FLAGS_IN();
    173     eax = MEM32(esi + 0x2C); /* 0x36084989: mov eax, dword ptr [esi + 0x2c] */
    174     PUSH32(esp, eax); /* 0x3608498C: push eax */
    175     ecx = edi; /* 0x3608498D: mov ecx, edi */
    176     RECOMP_ICALL(ebx); /* 0x3608498F: call ebx */
    177     RECOMP_FLAGS_IN();
    178     ecx = MEM32(esi + 0x30); /* 0x36084991: mov ecx, dword ptr [esi + 0x30] */
    179     PUSH32(esp, ecx); /* 0x36084994: push ecx */
    180     PUSH32(esp, edi); /* 0x36084995: push edi */
    181     RECOMP_ICALL(0x36001220u); /* 0x36084996: call 0x36001220 */ /* not lifted */
    182     RECOMP_FLAGS_IN();
    183     edx = esi + 0x34; /* 0x3608499B: lea edx, [esi + 0x34] */
    184     PUSH32(esp, edx); /* 0x3608499E: push edx */
    185     PUSH32(esp, edi); /* 0x3608499F: push edi */
    186     RECOMP_ICALL(0x3615B840u); /* 0x360849A0: call 0x3615b840 */ /* not lifted */
    187     RECOMP_FLAGS_IN();
    188     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu);
    189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    190     esi = esi + 0x3Cu; /* 0x360849A5: add esi, 0x3c */
    191     _flag_k = FK_ADD;
    192     PUSH32(esp, esi); /* 0x360849A8: push esi */
    193     PUSH32(esp, edi); /* 0x360849A9: push edi */
    194     RECOMP_ICALL(0x3615B840u); /* 0x360849AA: call 0x3615b840 */ /* not lifted */
    195     RECOMP_FLAGS_IN();
    196     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    197     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    198     esp = esp + 0x18u; /* 0x360849AF: add esp, 0x18 */
    199     _flag_k = FK_ADD;
    200     edi = POP32_VAL(esp); /* 0x360849B2: pop edi */
    201     esi = POP32_VAL(esp); /* 0x360849B3: pop esi */
    202     ebx = POP32_VAL(esp); /* 0x360849B4: pop ebx */
    203     ebp = POP32_VAL(esp); /* 0x360849B5: pop ebp */
    204     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360849B6: ret 4 */
    205     RECOMP_REGS_OUT();
    206 }
    207 
    208 void sub_360849C0(void) {
    209     int _fpu_cmp = 0;
    210     uint32_t _cf = 0;
    211     int _df = 1;
    212     uint32_t _flag_k = FK_NONE;
    213     uint32_t _flag_a = 0, _flag_b = 0;
    214     uint32_t _itail_tgt = 0;
    215     RECOMP_REGS_LOCALS
    216     RECOMP_ENTER(0x360849C0u);
    217 
    218 L_360849C0:
    219     PUSH32(esp, esi); /* 0x360849C0: push esi */
    220     esi = ecx; /* 0x360849C1: mov esi, ecx */
    221     eax = esi + 0x4; /* 0x360849C3: lea eax, [esi + 4] */
    222     PUSH32(esp, eax); /* 0x360849C6: push eax */
    223     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360849C7: call dword ptr [0x3616ff70] */
    224     RECOMP_FLAGS_IN();
    225     PUSH32(esp, 0); /* 0x360849CD: push 0 */
    226     PUSH32(esp, 0x361B2CD8u); /* 0x360849CF: push 0x361b2cd8 */
    227     PUSH32(esp, 0x361B2CC0u); /* 0x360849D4: push 0x361b2cc0 */
    228     PUSH32(esp, 0); /* 0x360849D9: push 0 */
    229     PUSH32(esp, eax); /* 0x360849DB: push eax */
    230     RECOMP_ICALL(0x3615FD86u); /* 0x360849DC: call 0x3615fd86 */ /* not lifted */
    231     RECOMP_FLAGS_IN();
    232     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    233     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    234     esp = esp + 0x18u; /* 0x360849E1: add esp, 0x18 */
    235     _flag_k = FK_ADD;
    236     /* test eax, eax */ /* 0x360849E4: test eax, eax */
    237     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    238     _cf = 0;
    239     _flag_k = FK_TEST;
    240     if (TEST_Z(_flag_a, _flag_b)) goto L_36084A07; /* 0x360849E6: je 0x36084a07 */
    241 L_360849E8:
    242     ecx = esi + 0x3C; /* 0x360849E8: lea ecx, [esi + 0x3c] */
    243     PUSH32(esp, ecx); /* 0x360849EB: push ecx */
    244     ecx = MEM32(esi + 0x30); /* 0x360849EC: mov ecx, dword ptr [esi + 0x30] */
    245     edx = esi + 0x34; /* 0x360849EF: lea edx, [esi + 0x34] */
    246     PUSH32(esp, edx); /* 0x360849F2: push edx */
    247     edx = MEM32(esi + 0x2C); /* 0x360849F3: mov edx, dword ptr [esi + 0x2c] */
    248     PUSH32(esp, ecx); /* 0x360849F6: push ecx */
    249     ecx = MEM32(eax + 0x150); /* 0x360849F7: mov ecx, dword ptr [eax + 0x150] */
    250     PUSH32(esp, edx); /* 0x360849FD: push edx */
    251     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u);
    252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    253     esi = esi + 0x20u; /* 0x360849FE: add esi, 0x20 */
    254     _flag_k = FK_ADD;
    255     PUSH32(esp, esi); /* 0x36084A01: push esi */
    256     RECOMP_ICALL(0x3605E980u); /* 0x36084A02: call 0x3605e980 */ /* not lifted */
    257     RECOMP_FLAGS_IN();
    258 L_36084A07:
    259     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    260     eax = 0; /* 0x36084A07: xor eax, eax */
    261     _cf = 0;
    262     _flag_k = FK_TEST;
    263     esi = POP32_VAL(esp); /* 0x36084A09: pop esi */
    264     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084A0A: ret  */
    265     RECOMP_REGS_OUT();
    266 }
    267 
    268 void sub_36084A10(void) {
    269     int _fpu_cmp = 0;
    270     uint32_t _cf = 0;
    271     int _df = 1;
    272     uint32_t _flag_k = FK_NONE;
    273     uint32_t _flag_a = 0, _flag_b = 0;
    274     uint32_t _itail_tgt = 0;
    275     RECOMP_REGS_LOCALS
    276     RECOMP_ENTER(0x36084A10u);
    277 
    278 L_36084A10:
    279     PUSH32(esp, esi); /* 0x36084A10: push esi */
    280     esi = ecx; /* 0x36084A11: mov esi, ecx */
    281     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36084A13: call dword ptr [0x3616ffd0] */
    282     RECOMP_FLAGS_IN();
    283     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    284     eax = 0; /* 0x36084A19: xor eax, eax */
    285     _cf = 0;
    286     _flag_k = FK_TEST;
    287     MEM32(esi + 0x24) = eax; /* 0x36084A1B: mov dword ptr [esi + 0x24], eax */
    288     MEM32(esi + 0x28) = eax; /* 0x36084A1E: mov dword ptr [esi + 0x28], eax */
    289     MEM32(esi + 0x2C) = eax; /* 0x36084A21: mov dword ptr [esi + 0x2c], eax */
    290     MEM32(esi + 0x30) = eax; /* 0x36084A24: mov dword ptr [esi + 0x30], eax */
    291     MEM32(esi + 0x20) = eax; /* 0x36084A27: mov dword ptr [esi + 0x20], eax */
    292     MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x36084A2A: mov byte ptr [esi + 0xc], al */
    293     MEM32(esi) = 0x36171B28u; /* 0x36084A2D: mov dword ptr [esi], 0x36171b28 */
    294     eax = esi; /* 0x36084A33: mov eax, esi */
    295     esi = POP32_VAL(esp); /* 0x36084A35: pop esi */
    296     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084A36: ret  */
    297     RECOMP_REGS_OUT();
    298 }
    299 
    300 void sub_36084A40(void) {
    301     int _fpu_cmp = 0;
    302     uint32_t _cf = 0;
    303     int _df = 1;
    304     uint32_t _flag_k = FK_NONE;
    305     uint32_t _flag_a = 0, _flag_b = 0;
    306     uint32_t _itail_tgt = 0;
    307     RECOMP_REGS_LOCALS
    308     RECOMP_ENTER(0x36084A40u);
    309 
    310 L_36084A40:
    311     PUSH32(esp, ebp); /* 0x36084A40: push ebp */
    312     ebp = esp; /* 0x36084A41: mov ebp, esp */
    313     PUSH32(esp, esi); /* 0x36084A43: push esi */
    314     esi = ecx; /* 0x36084A44: mov esi, ecx */
    315     RECOMP_ICALL(0x36084B70u); /* 0x36084A46: call 0x36084b70 */ /* not lifted */
    316     RECOMP_FLAGS_IN();
    317     /* test MEM8(ebp + 0x8), 1 */ /* 0x36084A4B: test byte ptr [ebp + 8], 1 */
    318     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    319     _cf = 0;
    320     _flag_k = FK_NARROW(FK_TEST, 24);
    321     if (TEST_Z(_flag_a, _flag_b)) goto L_36084A5A; /* 0x36084A4F: je 0x36084a5a */
    322 L_36084A51:
    323     PUSH32(esp, esi); /* 0x36084A51: push esi */
    324     RECOMP_ICALL(0x3615FCC4u); /* 0x36084A52: call 0x3615fcc4 */ /* not lifted */
    325     RECOMP_FLAGS_IN();
    326     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    328     esp = esp + 4; /* 0x36084A57: add esp, 4 */
    329     _flag_k = FK_ADD;
    330 L_36084A5A:
    331     eax = esi; /* 0x36084A5A: mov eax, esi */
    332     esi = POP32_VAL(esp); /* 0x36084A5C: pop esi */
    333     ebp = POP32_VAL(esp); /* 0x36084A5D: pop ebp */
    334     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084A5E: ret 4 */
    335     RECOMP_REGS_OUT();
    336 }
    337 
    338 void sub_36084A70(void) {
    339     int _fpu_cmp = 0;
    340     uint32_t _cf = 0;
    341     int _df = 1;
    342     uint32_t _flag_k = FK_NONE;
    343     uint32_t _flag_a = 0, _flag_b = 0;
    344     uint32_t _itail_tgt = 0;
    345     RECOMP_REGS_LOCALS
    346     RECOMP_ENTER(0x36084A70u);
    347 
    348 L_36084A70:
    349     PUSH32(esp, ebp); /* 0x36084A70: push ebp */
    350     ebp = esp; /* 0x36084A71: mov ebp, esp */
    351     PUSH32(esp, 0xFFFFFFFFu); /* 0x36084A73: push -1 */
    352     PUSH32(esp, 0x36165A79u); /* 0x36084A75: push 0x36165a79 */
    353     eax = MEM32(FS_BASE + (0)); /* 0x36084A7A: mov eax, dword ptr fs:[0] */
    354     PUSH32(esp, eax); /* 0x36084A80: push eax */
    355     MEM32(FS_BASE + (0)) = esp; /* 0x36084A81: mov dword ptr fs:[0], esp */
    356     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    358     esp = esp - 0x14u; /* 0x36084A88: sub esp, 0x14 */
    359     _flag_k = FK_CMP;
    360     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36084A8B: mov al, byte ptr [ebp + 0xb] */
    361     PUSH32(esp, ebx); /* 0x36084A8E: push ebx */
    362     PUSH32(esp, esi); /* 0x36084A8F: push esi */
    363     ebx = ecx; /* 0x36084A90: mov ebx, ecx */
    364     PUSH32(esp, edi); /* 0x36084A92: push edi */
    365     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
    366     ecx = ecx | 0xFFFFFFFFu; /* 0x36084A93: or ecx, 0xffffffff */
    367     _cf = 0;
    368     _flag_k = FK_TEST;
    369     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    370     esi = 0; /* 0x36084A96: xor esi, esi */
    371     _cf = 0;
    372     _flag_k = FK_TEST;
    373     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36084A98: mov byte ptr [ebp - 0x20], al */
    374     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    375     eax = 0; /* 0x36084A9B: xor eax, eax */
    376     _cf = 0;
    377     _flag_k = FK_TEST;
    378     edi = 0x361B4270u; /* 0x36084A9D: mov edi, 0x361b4270 */
    379     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x36084AA2: repne scasb al, byte ptr es:[edi] */
    380     ecx = ~ecx; /* 0x36084AA4: not ecx */
    381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    382     ecx = ecx - 1; /* 0x36084AA6: dec ecx */
    383     _flag_k = FK_DEC;
    384     edi = ecx; /* 0x36084AA7: mov edi, ecx */
    385     PUSH32(esp, 1); /* 0x36084AA9: push 1 */
    386     PUSH32(esp, edi); /* 0x36084AAB: push edi */
    387     ecx = ebp + (-0x20); /* 0x36084AAC: lea ecx, [ebp - 0x20] */
    388     MEM32(ebp + (-0x1C)) = esi; /* 0x36084AAF: mov dword ptr [ebp - 0x1c], esi */
    389     MEM32(ebp + (-0x18)) = esi; /* 0x36084AB2: mov dword ptr [ebp - 0x18], esi */
    390     MEM32(ebp + (-0x14)) = esi; /* 0x36084AB5: mov dword ptr [ebp - 0x14], esi */
    391     MEM32(ebp + (-0x10)) = edi; /* 0x36084AB8: mov dword ptr [ebp - 0x10], edi */
    392     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36084ABB: call dword ptr [0x3616f00c] */
    393     RECOMP_FLAGS_IN();
    394     /* test LO8(eax), LO8(eax) */ /* 0x36084AC1: test al, al */
    395     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    396     _cf = 0;
    397     _flag_k = FK_NARROW(FK_TEST, 24);
    398     if (TEST_Z(_flag_a, _flag_b)) goto L_36084AEB; /* 0x36084AC3: je 0x36084aeb */
    399 L_36084AC5:
    400     ecx = edi; /* 0x36084AC5: mov ecx, edi */
    401     edi = MEM32(ebp + (-0x1C)); /* 0x36084AC7: mov edi, dword ptr [ebp - 0x1c] */
    402     edx = ecx; /* 0x36084ACA: mov edx, ecx */
    403     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36084ACC: shr ecx, 2 */
    404     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    405     ecx = ecx >> 2u; /* 0x36084ACC: shr ecx, 2 */
    406     esi = 0x361B4270u; /* 0x36084ACF: mov esi, 0x361b4270 */
    407     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36084AD4: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    408     ecx = edx; /* 0x36084AD6: mov ecx, edx */
    409     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    410     ecx = ecx & 3; /* 0x36084AD8: and ecx, 3 */
    411     _cf = 0;
    412     _flag_k = FK_TEST;
    413     eax = edx; /* 0x36084ADB: mov eax, edx */
    414     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36084ADD: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    415     PUSH32(esp, eax); /* 0x36084ADF: push eax */
    416     ecx = ebp + (-0x20); /* 0x36084AE0: lea ecx, [ebp - 0x20] */
    417     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36084AE3: call dword ptr [0x3616f044] */
    418     RECOMP_FLAGS_IN();
    419     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    420     esi = 0; /* 0x36084AE9: xor esi, esi */
    421     _cf = 0;
    422     _flag_k = FK_TEST;
    423 L_36084AEB:
    424     edx = MEM32(ebp + 0x8); /* 0x36084AEB: mov edx, dword ptr [ebp + 8] */
    425     ecx = ebp + (-0x20); /* 0x36084AEE: lea ecx, [ebp - 0x20] */
    426     PUSH32(esp, ecx); /* 0x36084AF1: push ecx */
    427     PUSH32(esp, edx); /* 0x36084AF2: push edx */
    428     ecx = ebx; /* 0x36084AF3: mov ecx, ebx */
    429     MEM32(ebp + (-0x4)) = esi; /* 0x36084AF5: mov dword ptr [ebp - 4], esi */
    430     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x36084AF8: call dword ptr [0x3616fc0c] */
    431     RECOMP_FLAGS_IN();
    432     eax = MEM32(ebp + (-0x1C)); /* 0x36084AFE: mov eax, dword ptr [ebp - 0x1c] */
    433     /* cmp eax, esi */ /* 0x36084B01: cmp eax, esi */
    434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    436     _flag_k = FK_CMP;
    437     if (CMP_EQ(_flag_a, _flag_b)) goto L_36084B21; /* 0x36084B03: je 0x36084b21 */
    438 L_36084B05:
    439     ecx = eax + (-0x1); /* 0x36084B05: lea ecx, [eax - 1] */
    440     SET_LO8(eax, MEM8(ecx)); /* 0x36084B08: mov al, byte ptr [ecx] */
    441     /* test LO8(eax), LO8(eax) */ /* 0x36084B0A: test al, al */
    442     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    443     _cf = 0;
    444     _flag_k = FK_NARROW(FK_TEST, 24);
    445     if (TEST_Z(_flag_a, _flag_b)) goto L_36084B18; /* 0x36084B0C: je 0x36084b18 */
    446 L_36084B0E:
    447     /* cmp LO8(eax), 0xFFu */ /* 0x36084B0E: cmp al, 0xff */
    448     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
    449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    450     _flag_k = FK_NARROW(FK_CMP, 24);
    451     if (CMP_EQ(_flag_a, _flag_b)) goto L_36084B18; /* 0x36084B10: je 0x36084b18 */
    452 L_36084B12:
    453     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    454     SET_LO8(eax, LO8(eax) - 1); /* 0x36084B12: dec al */
    455     _flag_k = FK_NARROW(FK_DEC, 24);
    456     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36084B14: mov byte ptr [ecx], al */
    457     goto L_36084B21; /* 0x36084B16: jmp 0x36084b21 */
    458 L_36084B18:
    459     PUSH32(esp, ecx); /* 0x36084B18: push ecx */
    460     RECOMP_ICALL(0x3615FCC4u); /* 0x36084B19: call 0x3615fcc4 */ /* not lifted */
    461     RECOMP_FLAGS_IN();
    462     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    463     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    464     esp = esp + 4; /* 0x36084B1E: add esp, 4 */
    465     _flag_k = FK_ADD;
    466 L_36084B21:
    467     eax = MEM32(ebp + 0xC); /* 0x36084B21: mov eax, dword ptr [ebp + 0xc] */
    468     MEM32(ebx + 0x24) = esi; /* 0x36084B24: mov dword ptr [ebx + 0x24], esi */
    469     MEM32(ebx + 0x28) = esi; /* 0x36084B27: mov dword ptr [ebx + 0x28], esi */
    470     MEM32(ebx + 0x2C) = esi; /* 0x36084B2A: mov dword ptr [ebx + 0x2c], esi */
    471     MEM32(ebx + 0x30) = esi; /* 0x36084B2D: mov dword ptr [ebx + 0x30], esi */
    472     MEM32(ebx + 0x20) = eax; /* 0x36084B30: mov dword ptr [ebx + 0x20], eax */
    473     eax = MEM32(ebp + 0x10); /* 0x36084B33: mov eax, dword ptr [ebp + 0x10] */
    474     MEM32(ebx) = 0x36171B28u; /* 0x36084B36: mov dword ptr [ebx], 0x36171b28 */
    475     ecx = MEM32(eax); /* 0x36084B3C: mov ecx, dword ptr [eax] */
    476     MEM32(ebx + 0x24) = ecx; /* 0x36084B3E: mov dword ptr [ebx + 0x24], ecx */
    477     edx = MEM32(eax + 0x4); /* 0x36084B41: mov edx, dword ptr [eax + 4] */
    478     eax = MEM32(ebp + 0x14); /* 0x36084B44: mov eax, dword ptr [ebp + 0x14] */
    479     MEM32(ebx + 0x28) = edx; /* 0x36084B47: mov dword ptr [ebx + 0x28], edx */
    480     ecx = MEM32(eax); /* 0x36084B4A: mov ecx, dword ptr [eax] */
    481     MEM32(ebx + 0x2C) = ecx; /* 0x36084B4C: mov dword ptr [ebx + 0x2c], ecx */
    482     edx = MEM32(eax + 0x4); /* 0x36084B4F: mov edx, dword ptr [eax + 4] */
    483     ecx = MEM32(ebp + (-0xC)); /* 0x36084B52: mov ecx, dword ptr [ebp - 0xc] */
    484     edi = POP32_VAL(esp); /* 0x36084B55: pop edi */
    485     MEM32(ebx + 0x30) = edx; /* 0x36084B56: mov dword ptr [ebx + 0x30], edx */
    486     MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x36084B59: mov byte ptr [ebx + 0xc], 0 */
    487     esi = POP32_VAL(esp); /* 0x36084B5D: pop esi */
    488     eax = ebx; /* 0x36084B5E: mov eax, ebx */
    489     ebx = POP32_VAL(esp); /* 0x36084B60: pop ebx */
    490     MEM32(FS_BASE + (0)) = ecx; /* 0x36084B61: mov dword ptr fs:[0], ecx */
    491     esp = ebp; /* 0x36084B68: mov esp, ebp */
    492     ebp = POP32_VAL(esp); /* 0x36084B6A: pop ebp */
    493     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36084B6B: ret 0x10 */
    494     RECOMP_REGS_OUT();
    495 }
    496 
    497 void sub_36084B70(void) {
    498     int _fpu_cmp = 0;
    499     uint32_t _cf = 0;
    500     int _df = 1;
    501     uint32_t _flag_k = FK_NONE;
    502     uint32_t _flag_a = 0, _flag_b = 0;
    503     uint32_t _itail_tgt = 0;
    504     RECOMP_REGS_LOCALS
    505     RECOMP_ENTER(0x36084B70u);
    506 
    507 L_36084B70:
    508     MEM32(ecx) = 0x36171B28u; /* 0x36084B70: mov dword ptr [ecx], 0x36171b28 */
    509 L_36084B76:
    510     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
    511     { RECOMP_REGS_OUT(); return; } /* end of function */
    512   _ljump:
    513     switch (_itail_tgt) {
    514       case 0x36084B70u: goto L_36084B70;
    515       case 0x36084B76u: goto L_36084B76;
    516       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    517     }
    518     RECOMP_REGS_OUT();
    519 }
    520 
    521 void sub_36084B80(void) {
    522     int _fpu_cmp = 0;
    523     uint32_t _cf = 0;
    524     int _df = 1;
    525     uint32_t _flag_k = FK_NONE;
    526     uint32_t _flag_a = 0, _flag_b = 0;
    527     uint32_t _itail_tgt = 0;
    528     RECOMP_REGS_LOCALS
    529     RECOMP_ENTER(0x36084B80u);
    530 
    531 L_36084B80:
    532     PUSH32(esp, ebp); /* 0x36084B80: push ebp */
    533     ebp = esp; /* 0x36084B81: mov ebp, esp */
    534     PUSH32(esp, ebx); /* 0x36084B83: push ebx */
    535     PUSH32(esp, esi); /* 0x36084B84: push esi */
    536     esi = MEM32(ebp + 0x8); /* 0x36084B85: mov esi, dword ptr [ebp + 8] */
    537     PUSH32(esp, edi); /* 0x36084B88: push edi */
    538     eax = ebp + 0x8; /* 0x36084B89: lea eax, [ebp + 8] */
    539     edi = ecx; /* 0x36084B8C: mov edi, ecx */
    540     PUSH32(esp, eax); /* 0x36084B8E: push eax */
    541     ecx = esi; /* 0x36084B8F: mov ecx, esi */
    542     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36084B91: call dword ptr [0x3616fa8c] */
    543     RECOMP_FLAGS_IN();
    544     ecx = MEM32(ebp + 0x8); /* 0x36084B97: mov ecx, dword ptr [ebp + 8] */
    545     /* cmp ecx, MEM32(0x361C53EC) */ /* 0x36084B9A: cmp ecx, dword ptr [0x361c53ec] */
    546     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x361C53EC));
    547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    548     _flag_k = FK_CMP;
    549     if (CMP_NE(_flag_a, _flag_b)) goto L_36084BE5; /* 0x36084BA0: jne 0x36084be5 */
    550 L_36084BA2:
    551     ebx = edi + 0x20; /* 0x36084BA2: lea ebx, [edi + 0x20] */
    552     PUSH32(esp, ebx); /* 0x36084BA5: push ebx */
    553     ecx = esi; /* 0x36084BA6: mov ecx, esi */
    554     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36084BA8: call dword ptr [0x3616fa8c] */
    555     RECOMP_FLAGS_IN();
    556     edx = edi + 0x24; /* 0x36084BAE: lea edx, [edi + 0x24] */
    557     PUSH32(esp, edx); /* 0x36084BB1: push edx */
    558     PUSH32(esp, esi); /* 0x36084BB2: push esi */
    559     RECOMP_ICALL(0x3615B870u); /* 0x36084BB3: call 0x3615b870 */ /* not lifted */
    560     RECOMP_FLAGS_IN();
    561     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2Cu);
    562     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    563     edi = edi + 0x2Cu; /* 0x36084BB8: add edi, 0x2c */
    564     _flag_k = FK_ADD;
    565     PUSH32(esp, edi); /* 0x36084BBB: push edi */
    566     PUSH32(esp, esi); /* 0x36084BBC: push esi */
    567     RECOMP_ICALL(0x3615B870u); /* 0x36084BBD: call 0x3615b870 */ /* not lifted */
    568     RECOMP_FLAGS_IN();
    569     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    570     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    571     esp = esp + 0x10u; /* 0x36084BC2: add esp, 0x10 */
    572     _flag_k = FK_ADD;
    573     ecx = esi; /* 0x36084BC5: mov ecx, esi */
    574     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36084BC7: call dword ptr [0x3616fadc] */
    575     RECOMP_FLAGS_IN();
    576     /* test eax, eax */ /* 0x36084BCD: test eax, eax */
    577     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    578     _cf = 0;
    579     _flag_k = FK_TEST;
    580     if (TEST_Z(_flag_a, _flag_b)) goto L_36084BE5; /* 0x36084BCF: je 0x36084be5 */
    581 L_36084BD1:
    582     ebx = MEM32(ebx); /* 0x36084BD1: mov ebx, dword ptr [ebx] */
    583     /* test ebx, ebx */ /* 0x36084BD3: test ebx, ebx */
    584     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    585     _cf = 0;
    586     _flag_k = FK_TEST;
    587     if (TEST_S(_flag_a, _flag_b)) goto L_36084BE5; /* 0x36084BD5: jl 0x36084be5 */
    588 L_36084BD7:
    589     /* cmp ebx, 8 */ /* 0x36084BD7: cmp ebx, 8 */
    590     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
    591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    592     _flag_k = FK_CMP;
    593     if (CMP_G(_flag_a, _flag_b)) goto L_36084BE5; /* 0x36084BDA: jg 0x36084be5 */
    594 L_36084BDC:
    595     edi = POP32_VAL(esp); /* 0x36084BDC: pop edi */
    596     esi = POP32_VAL(esp); /* 0x36084BDD: pop esi */
    597     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    598     eax = 0; /* 0x36084BDE: xor eax, eax */
    599     _cf = 0;
    600     _flag_k = FK_TEST;
    601     ebx = POP32_VAL(esp); /* 0x36084BE0: pop ebx */
    602     ebp = POP32_VAL(esp); /* 0x36084BE1: pop ebp */
    603     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084BE2: ret 4 */
    604 L_36084BE5:
    605     edi = POP32_VAL(esp); /* 0x36084BE5: pop edi */
    606     esi = POP32_VAL(esp); /* 0x36084BE6: pop esi */
    607     eax = 1; /* 0x36084BE7: mov eax, 1 */
    608     ebx = POP32_VAL(esp); /* 0x36084BEC: pop ebx */
    609     ebp = POP32_VAL(esp); /* 0x36084BED: pop ebp */
    610     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084BEE: ret 4 */
    611     RECOMP_REGS_OUT();
    612 }
    613 
    614 void sub_36084C00(void) {
    615     int _fpu_cmp = 0;
    616     uint32_t _cf = 0;
    617     int _df = 1;
    618     uint32_t _flag_k = FK_NONE;
    619     uint32_t _flag_a = 0, _flag_b = 0;
    620     uint32_t _itail_tgt = 0;
    621     RECOMP_REGS_LOCALS
    622     RECOMP_ENTER(0x36084C00u);
    623 
    624 L_36084C00:
    625     PUSH32(esp, ebp); /* 0x36084C00: push ebp */
    626     ebp = esp; /* 0x36084C01: mov ebp, esp */
    627     eax = MEM32(0x361C53EC); /* 0x36084C03: mov eax, dword ptr [0x361c53ec] */
    628     PUSH32(esp, ebx); /* 0x36084C08: push ebx */
    629     ebx = MEM32(0x3616FAEC); /* 0x36084C09: mov ebx, dword ptr [0x3616faec] */
    630     PUSH32(esp, esi); /* 0x36084C0F: push esi */
    631     PUSH32(esp, edi); /* 0x36084C10: push edi */
    632     edi = MEM32(ebp + 0x8); /* 0x36084C11: mov edi, dword ptr [ebp + 8] */
    633     esi = ecx; /* 0x36084C14: mov esi, ecx */
    634     PUSH32(esp, eax); /* 0x36084C16: push eax */
    635     ecx = edi; /* 0x36084C17: mov ecx, edi */
    636     RECOMP_ICALL(ebx); /* 0x36084C19: call ebx */
    637     RECOMP_FLAGS_IN();
    638     ecx = MEM32(esi + 0x20); /* 0x36084C1B: mov ecx, dword ptr [esi + 0x20] */
    639     PUSH32(esp, ecx); /* 0x36084C1E: push ecx */
    640     ecx = edi; /* 0x36084C1F: mov ecx, edi */
    641     RECOMP_ICALL(ebx); /* 0x36084C21: call ebx */
    642     RECOMP_FLAGS_IN();
    643     edx = esi + 0x24; /* 0x36084C23: lea edx, [esi + 0x24] */
    644     PUSH32(esp, edx); /* 0x36084C26: push edx */
    645     PUSH32(esp, edi); /* 0x36084C27: push edi */
    646     RECOMP_ICALL(0x3615B840u); /* 0x36084C28: call 0x3615b840 */ /* not lifted */
    647     RECOMP_FLAGS_IN();
    648     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu);
    649     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    650     esi = esi + 0x2Cu; /* 0x36084C2D: add esi, 0x2c */
    651     _flag_k = FK_ADD;
    652     PUSH32(esp, esi); /* 0x36084C30: push esi */
    653     PUSH32(esp, edi); /* 0x36084C31: push edi */
    654     RECOMP_ICALL(0x3615B840u); /* 0x36084C32: call 0x3615b840 */ /* not lifted */
    655     RECOMP_FLAGS_IN();
    656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    658     esp = esp + 0x10u; /* 0x36084C37: add esp, 0x10 */
    659     _flag_k = FK_ADD;
    660     edi = POP32_VAL(esp); /* 0x36084C3A: pop edi */
    661     esi = POP32_VAL(esp); /* 0x36084C3B: pop esi */
    662     ebx = POP32_VAL(esp); /* 0x36084C3C: pop ebx */
    663     ebp = POP32_VAL(esp); /* 0x36084C3D: pop ebp */
    664     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084C3E: ret 4 */
    665     RECOMP_REGS_OUT();
    666 }
    667 
    668 void sub_36084C50(void) {
    669     int _fpu_cmp = 0;
    670     uint32_t _cf = 0;
    671     int _df = 1;
    672     uint32_t _flag_k = FK_NONE;
    673     uint32_t _flag_a = 0, _flag_b = 0;
    674     uint32_t _itail_tgt = 0;
    675     RECOMP_REGS_LOCALS
    676     RECOMP_ENTER(0x36084C50u);
    677 
    678 L_36084C50:
    679     PUSH32(esp, esi); /* 0x36084C50: push esi */
    680     esi = ecx; /* 0x36084C51: mov esi, ecx */
    681     eax = esi + 0x4; /* 0x36084C53: lea eax, [esi + 4] */
    682     PUSH32(esp, edi); /* 0x36084C56: push edi */
    683     PUSH32(esp, eax); /* 0x36084C57: push eax */
    684     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36084C58: call dword ptr [0x3616ff70] */
    685     RECOMP_FLAGS_IN();
    686     PUSH32(esp, 0); /* 0x36084C5E: push 0 */
    687     PUSH32(esp, 0x361B2CD8u); /* 0x36084C60: push 0x361b2cd8 */
    688     PUSH32(esp, 0x361B2CC0u); /* 0x36084C65: push 0x361b2cc0 */
    689     edi = eax; /* 0x36084C6A: mov edi, eax */
    690     PUSH32(esp, 0); /* 0x36084C6C: push 0 */
    691     PUSH32(esp, edi); /* 0x36084C6E: push edi */
    692     RECOMP_ICALL(0x3615FD86u); /* 0x36084C6F: call 0x3615fd86 */ /* not lifted */
    693     RECOMP_FLAGS_IN();
    694     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    695     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    696     esp = esp + 0x18u; /* 0x36084C74: add esp, 0x18 */
    697     _flag_k = FK_ADD;
    698     /* test eax, eax */ /* 0x36084C77: test eax, eax */
    699     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    700     _cf = 0;
    701     _flag_k = FK_TEST;
    702     if (TEST_Z(_flag_a, _flag_b)) goto L_36084C9A; /* 0x36084C79: je 0x36084c9a */
    703 L_36084C7B:
    704     ecx = esi + 0x2C; /* 0x36084C7B: lea ecx, [esi + 0x2c] */
    705     PUSH32(esp, ecx); /* 0x36084C7E: push ecx */
    706     ecx = MEM32(esi + 0x20); /* 0x36084C7F: mov ecx, dword ptr [esi + 0x20] */
    707     edx = esi + 0x24; /* 0x36084C82: lea edx, [esi + 0x24] */
    708     PUSH32(esp, edx); /* 0x36084C85: push edx */
    709     PUSH32(esp, ecx); /* 0x36084C86: push ecx */
    710     ecx = eax; /* 0x36084C87: mov ecx, eax */
    711     RECOMP_ICALL(0x36071F90u); /* 0x36084C89: call 0x36071f90 */ /* not lifted */
    712     RECOMP_FLAGS_IN();
    713     ecx = eax; /* 0x36084C8E: mov ecx, eax */
    714     RECOMP_ICALL(0x360780B0u); /* 0x36084C90: call 0x360780b0 */ /* not lifted */
    715     RECOMP_FLAGS_IN();
    716     edi = POP32_VAL(esp); /* 0x36084C95: pop edi */
    717     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    718     eax = 0; /* 0x36084C96: xor eax, eax */
    719     _cf = 0;
    720     _flag_k = FK_TEST;
    721     esi = POP32_VAL(esp); /* 0x36084C98: pop esi */
    722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084C99: ret  */
    723 L_36084C9A:
    724     PUSH32(esp, 0); /* 0x36084C9A: push 0 */
    725     PUSH32(esp, 0x361B5C98u); /* 0x36084C9C: push 0x361b5c98 */
    726     PUSH32(esp, 0x361B2CC0u); /* 0x36084CA1: push 0x361b2cc0 */
    727     PUSH32(esp, 0); /* 0x36084CA6: push 0 */
    728     PUSH32(esp, edi); /* 0x36084CA8: push edi */
    729     RECOMP_ICALL(0x3615FD86u); /* 0x36084CA9: call 0x3615fd86 */ /* not lifted */
    730     RECOMP_FLAGS_IN();
    731     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    732     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    733     esp = esp + 0x14u; /* 0x36084CAE: add esp, 0x14 */
    734     _flag_k = FK_ADD;
    735     /* test eax, eax */ /* 0x36084CB1: test eax, eax */
    736     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    737     _cf = 0;
    738     _flag_k = FK_TEST;
    739     if (TEST_Z(_flag_a, _flag_b)) goto L_36084CC8; /* 0x36084CB3: je 0x36084cc8 */
    740 L_36084CB5:
    741     edx = esi + 0x2C; /* 0x36084CB5: lea edx, [esi + 0x2c] */
    742     PUSH32(esp, edx); /* 0x36084CB8: push edx */
    743     edx = MEM32(esi + 0x20); /* 0x36084CB9: mov edx, dword ptr [esi + 0x20] */
    744     ecx = esi + 0x24; /* 0x36084CBC: lea ecx, [esi + 0x24] */
    745     PUSH32(esp, ecx); /* 0x36084CBF: push ecx */
    746     PUSH32(esp, edx); /* 0x36084CC0: push edx */
    747     ecx = eax; /* 0x36084CC1: mov ecx, eax */
    748     RECOMP_ICALL(0x360A9CF0u); /* 0x36084CC3: call 0x360a9cf0 */ /* not lifted */
    749     RECOMP_FLAGS_IN();
    750 L_36084CC8:
    751     edi = POP32_VAL(esp); /* 0x36084CC8: pop edi */
    752     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    753     eax = 0; /* 0x36084CC9: xor eax, eax */
    754     _cf = 0;
    755     _flag_k = FK_TEST;
    756     esi = POP32_VAL(esp); /* 0x36084CCB: pop esi */
    757     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084CCC: ret  */
    758     RECOMP_REGS_OUT();
    759 }
    760 
    761 void sub_36084CD0(void) {
    762     int _fpu_cmp = 0;
    763     uint32_t _cf = 0;
    764     int _df = 1;
    765     uint32_t _flag_k = FK_NONE;
    766     uint32_t _flag_a = 0, _flag_b = 0;
    767     uint32_t _itail_tgt = 0;
    768     RECOMP_REGS_LOCALS
    769     RECOMP_ENTER(0x36084CD0u);
    770 
    771 L_36084CD0:
    772     PUSH32(esp, esi); /* 0x36084CD0: push esi */
    773     esi = ecx; /* 0x36084CD1: mov esi, ecx */
    774     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36084CD3: call dword ptr [0x3616ffd0] */
    775     RECOMP_FLAGS_IN();
    776     MEM32(esi) = 0x36171B4Cu; /* 0x36084CD9: mov dword ptr [esi], 0x36171b4c */
    777     eax = esi; /* 0x36084CDF: mov eax, esi */
    778     esi = POP32_VAL(esp); /* 0x36084CE1: pop esi */
    779     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084CE2: ret  */
    780     RECOMP_REGS_OUT();
    781 }
    782 
    783 void sub_36084CF0(void) {
    784     int _fpu_cmp = 0;
    785     uint32_t _cf = 0;
    786     int _df = 1;
    787     uint32_t _flag_k = FK_NONE;
    788     uint32_t _flag_a = 0, _flag_b = 0;
    789     uint32_t _itail_tgt = 0;
    790     RECOMP_REGS_LOCALS
    791     RECOMP_ENTER(0x36084CF0u);
    792 
    793 L_36084CF0:
    794     PUSH32(esp, ebp); /* 0x36084CF0: push ebp */
    795     ebp = esp; /* 0x36084CF1: mov ebp, esp */
    796     PUSH32(esp, esi); /* 0x36084CF3: push esi */
    797     esi = ecx; /* 0x36084CF4: mov esi, ecx */
    798     RECOMP_ICALL(0x36084D20u); /* 0x36084CF6: call 0x36084d20 */ /* not lifted */
    799     RECOMP_FLAGS_IN();
    800     /* test MEM8(ebp + 0x8), 1 */ /* 0x36084CFB: test byte ptr [ebp + 8], 1 */
    801     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    802     _cf = 0;
    803     _flag_k = FK_NARROW(FK_TEST, 24);
    804     if (TEST_Z(_flag_a, _flag_b)) goto L_36084D0A; /* 0x36084CFF: je 0x36084d0a */
    805 L_36084D01:
    806     PUSH32(esp, esi); /* 0x36084D01: push esi */
    807     RECOMP_ICALL(0x3615FCC4u); /* 0x36084D02: call 0x3615fcc4 */ /* not lifted */
    808     RECOMP_FLAGS_IN();
    809     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    810     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    811     esp = esp + 4; /* 0x36084D07: add esp, 4 */
    812     _flag_k = FK_ADD;
    813 L_36084D0A:
    814     eax = esi; /* 0x36084D0A: mov eax, esi */
    815     esi = POP32_VAL(esp); /* 0x36084D0C: pop esi */
    816     ebp = POP32_VAL(esp); /* 0x36084D0D: pop ebp */
    817     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084D0E: ret 4 */
    818     RECOMP_REGS_OUT();
    819 }
    820 
    821 void sub_36084D20(void) {
    822     int _fpu_cmp = 0;
    823     uint32_t _cf = 0;
    824     int _df = 1;
    825     uint32_t _flag_k = FK_NONE;
    826     uint32_t _flag_a = 0, _flag_b = 0;
    827     uint32_t _itail_tgt = 0;
    828     RECOMP_REGS_LOCALS
    829     RECOMP_ENTER(0x36084D20u);
    830 
    831 L_36084D20:
    832     MEM32(ecx) = 0x36171B4Cu; /* 0x36084D20: mov dword ptr [ecx], 0x36171b4c */
    833 L_36084D26:
    834     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
    835     { RECOMP_REGS_OUT(); return; } /* end of function */
    836   _ljump:
    837     switch (_itail_tgt) {
    838       case 0x36084D20u: goto L_36084D20;
    839       case 0x36084D26u: goto L_36084D26;
    840       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    841     }
    842     RECOMP_REGS_OUT();
    843 }
    844 
    845 void sub_36084D30(void) {
    846     int _fpu_cmp = 0;
    847     uint32_t _cf = 0;
    848     int _df = 1;
    849     uint32_t _flag_k = FK_NONE;
    850     uint32_t _flag_a = 0, _flag_b = 0;
    851     uint32_t _itail_tgt = 0;
    852     RECOMP_REGS_LOCALS
    853     RECOMP_ENTER(0x36084D30u);
    854 
    855 L_36084D30:
    856     PUSH32(esp, ebp); /* 0x36084D30: push ebp */
    857     ebp = esp; /* 0x36084D31: mov ebp, esp */
    858     PUSH32(esp, ebx); /* 0x36084D33: push ebx */
    859     PUSH32(esp, esi); /* 0x36084D34: push esi */
    860     esi = ecx; /* 0x36084D35: mov esi, ecx */
    861     PUSH32(esp, edi); /* 0x36084D37: push edi */
    862     edi = MEM32(ebp + 0x8); /* 0x36084D38: mov edi, dword ptr [ebp + 8] */
    863     eax = esi + 0x20; /* 0x36084D3B: lea eax, [esi + 0x20] */
    864     PUSH32(esp, eax); /* 0x36084D3E: push eax */
    865     ecx = edi; /* 0x36084D3F: mov ecx, edi */
    866     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36084D41: call dword ptr [0x3616fa8c] */
    867     RECOMP_FLAGS_IN();
    868     ebx = MEM32(0x3616FAE0); /* 0x36084D47: mov ebx, dword ptr [0x3616fae0] */
    869     ecx = esi + 0x24; /* 0x36084D4D: lea ecx, [esi + 0x24] */
    870     PUSH32(esp, ecx); /* 0x36084D50: push ecx */
    871     ecx = edi; /* 0x36084D51: mov ecx, edi */
    872     RECOMP_ICALL(ebx); /* 0x36084D53: call ebx */
    873     RECOMP_FLAGS_IN();
    874     edx = esi + 0x25; /* 0x36084D55: lea edx, [esi + 0x25] */
    875     PUSH32(esp, edx); /* 0x36084D58: push edx */
    876     ecx = edi; /* 0x36084D59: mov ecx, edi */
    877     RECOMP_ICALL(ebx); /* 0x36084D5B: call ebx */
    878     RECOMP_FLAGS_IN();
    879     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x26u);
    880     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    881     esi = esi + 0x26u; /* 0x36084D5D: add esi, 0x26 */
    882     _flag_k = FK_ADD;
    883     PUSH32(esp, esi); /* 0x36084D60: push esi */
    884     ecx = edi; /* 0x36084D61: mov ecx, edi */
    885     RECOMP_ICALL(ebx); /* 0x36084D63: call ebx */
    886     RECOMP_FLAGS_IN();
    887     ecx = edi; /* 0x36084D65: mov ecx, edi */
    888     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36084D67: call dword ptr [0x3616fadc] */
    889     RECOMP_FLAGS_IN();
    890     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    891     _cf = (eax) != 0;
    892     eax = (uint32_t)(-(int32_t)eax); /* 0x36084D6D: neg eax */
    893     _flag_k = FK_CMP;
    894     edi = POP32_VAL(esp); /* 0x36084D6F: pop edi */
    895     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36084D70: sbb eax, eax */
    896       eax = _sc ? 0xFFFFFFFFu : 0;
    897       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    898       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    899     esi = POP32_VAL(esp); /* 0x36084D72: pop esi */
    900     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    901     eax = eax + 1; /* 0x36084D73: inc eax */
    902     _flag_k = FK_INC;
    903     ebx = POP32_VAL(esp); /* 0x36084D74: pop ebx */
    904     ebp = POP32_VAL(esp); /* 0x36084D75: pop ebp */
    905     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084D76: ret 4 */
    906     RECOMP_REGS_OUT();
    907 }
    908 
    909 void sub_36084D80(void) {
    910     int _fpu_cmp = 0;
    911     uint32_t _cf = 0;
    912     int _df = 1;
    913     uint32_t _flag_k = FK_NONE;
    914     uint32_t _flag_a = 0, _flag_b = 0;
    915     uint32_t _itail_tgt = 0;
    916     RECOMP_REGS_LOCALS
    917     RECOMP_ENTER(0x36084D80u);
    918 
    919 L_36084D80:
    920     PUSH32(esp, ebp); /* 0x36084D80: push ebp */
    921     ebp = esp; /* 0x36084D81: mov ebp, esp */
    922     PUSH32(esp, ebx); /* 0x36084D83: push ebx */
    923     PUSH32(esp, esi); /* 0x36084D84: push esi */
    924     esi = ecx; /* 0x36084D85: mov esi, ecx */
    925     eax = MEM32(esi + 0x20); /* 0x36084D87: mov eax, dword ptr [esi + 0x20] */
    926     PUSH32(esp, edi); /* 0x36084D8A: push edi */
    927     edi = MEM32(ebp + 0x8); /* 0x36084D8B: mov edi, dword ptr [ebp + 8] */
    928     PUSH32(esp, eax); /* 0x36084D8E: push eax */
    929     ecx = edi; /* 0x36084D8F: mov ecx, edi */
    930     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36084D91: call dword ptr [0x3616faec] */
    931     RECOMP_FLAGS_IN();
    932     ebx = MEM32(0x3616FAE8); /* 0x36084D97: mov ebx, dword ptr [0x3616fae8] */
    933     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    934     ecx = 0; /* 0x36084D9D: xor ecx, ecx */
    935     _cf = 0;
    936     _flag_k = FK_TEST;
    937     SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x36084D9F: mov cl, byte ptr [esi + 0x24] */
    938     PUSH32(esp, ecx); /* 0x36084DA2: push ecx */
    939     ecx = edi; /* 0x36084DA3: mov ecx, edi */
    940     RECOMP_ICALL(ebx); /* 0x36084DA5: call ebx */
    941     RECOMP_FLAGS_IN();
    942     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    943     edx = 0; /* 0x36084DA7: xor edx, edx */
    944     _cf = 0;
    945     _flag_k = FK_TEST;
    946     SET_LO8(edx, MEM8(esi + 0x25)); /* 0x36084DA9: mov dl, byte ptr [esi + 0x25] */
    947     ecx = edi; /* 0x36084DAC: mov ecx, edi */
    948     PUSH32(esp, edx); /* 0x36084DAE: push edx */
    949     RECOMP_ICALL(ebx); /* 0x36084DAF: call ebx */
    950     RECOMP_FLAGS_IN();
    951     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    952     eax = 0; /* 0x36084DB1: xor eax, eax */
    953     _cf = 0;
    954     _flag_k = FK_TEST;
    955     SET_LO8(eax, MEM8(esi + 0x26)); /* 0x36084DB3: mov al, byte ptr [esi + 0x26] */
    956     ecx = edi; /* 0x36084DB6: mov ecx, edi */
    957     PUSH32(esp, eax); /* 0x36084DB8: push eax */
    958     RECOMP_ICALL(ebx); /* 0x36084DB9: call ebx */
    959     RECOMP_FLAGS_IN();
    960     edi = POP32_VAL(esp); /* 0x36084DBB: pop edi */
    961     esi = POP32_VAL(esp); /* 0x36084DBC: pop esi */
    962     ebx = POP32_VAL(esp); /* 0x36084DBD: pop ebx */
    963     ebp = POP32_VAL(esp); /* 0x36084DBE: pop ebp */
    964     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084DBF: ret 4 */
    965     RECOMP_REGS_OUT();
    966 }
    967 
    968 void sub_36084DD0(void) {
    969     int _fpu_cmp = 0;
    970     uint32_t _cf = 0;
    971     int _df = 1;
    972     uint32_t _flag_k = FK_NONE;
    973     uint32_t _flag_a = 0, _flag_b = 0;
    974     uint32_t _itail_tgt = 0;
    975     RECOMP_REGS_LOCALS
    976     RECOMP_ENTER(0x36084DD0u);
    977 
    978 L_36084DD0:
    979     PUSH32(esp, esi); /* 0x36084DD0: push esi */
    980     esi = ecx; /* 0x36084DD1: mov esi, ecx */
    981     eax = esi + 0x4; /* 0x36084DD3: lea eax, [esi + 4] */
    982     PUSH32(esp, eax); /* 0x36084DD6: push eax */
    983     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36084DD7: call dword ptr [0x3616ff70] */
    984     RECOMP_FLAGS_IN();
    985     PUSH32(esp, 0); /* 0x36084DDD: push 0 */
    986     PUSH32(esp, 0x361B2CD8u); /* 0x36084DDF: push 0x361b2cd8 */
    987     PUSH32(esp, 0x361B2CC0u); /* 0x36084DE4: push 0x361b2cc0 */
    988     PUSH32(esp, 0); /* 0x36084DE9: push 0 */
    989     PUSH32(esp, eax); /* 0x36084DEB: push eax */
    990     RECOMP_ICALL(0x3615FD86u); /* 0x36084DEC: call 0x3615fd86 */ /* not lifted */
    991     RECOMP_FLAGS_IN();
    992     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    993     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    994     esp = esp + 0x18u; /* 0x36084DF1: add esp, 0x18 */
    995     _flag_k = FK_ADD;
    996     /* test eax, eax */ /* 0x36084DF4: test eax, eax */
    997     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    998     _cf = 0;
    999     _flag_k = FK_TEST;
   1000     if (TEST_Z(_flag_a, _flag_b)) goto L_36084E1C; /* 0x36084DF6: je 0x36084e1c */
   1001 L_36084DF8:
   1002     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1003     ecx = 0; /* 0x36084DF8: xor ecx, ecx */
   1004     _cf = 0;
   1005     _flag_k = FK_TEST;
   1006     SET_LO8(ecx, MEM8(esi + 0x26)); /* 0x36084DFA: mov cl, byte ptr [esi + 0x26] */
   1007     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1008     edx = 0; /* 0x36084DFD: xor edx, edx */
   1009     _cf = 0;
   1010     _flag_k = FK_TEST;
   1011     SET_LO8(edx, MEM8(esi + 0x25)); /* 0x36084DFF: mov dl, byte ptr [esi + 0x25] */
   1012     PUSH32(esp, ecx); /* 0x36084E02: push ecx */
   1013     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1014     ecx = 0; /* 0x36084E03: xor ecx, ecx */
   1015     _cf = 0;
   1016     _flag_k = FK_TEST;
   1017     SET_LO8(ecx, MEM8(esi + 0x24)); /* 0x36084E05: mov cl, byte ptr [esi + 0x24] */
   1018     PUSH32(esp, edx); /* 0x36084E08: push edx */
   1019     edx = MEM32(esi + 0x20); /* 0x36084E09: mov edx, dword ptr [esi + 0x20] */
   1020     PUSH32(esp, ecx); /* 0x36084E0C: push ecx */
   1021     PUSH32(esp, edx); /* 0x36084E0D: push edx */
   1022     ecx = eax; /* 0x36084E0E: mov ecx, eax */
   1023     RECOMP_ICALL(0x36072000u); /* 0x36084E10: call 0x36072000 */ /* not lifted */
   1024     RECOMP_FLAGS_IN();
   1025     ecx = eax; /* 0x36084E15: mov ecx, eax */
   1026     RECOMP_ICALL(0x36057AD0u); /* 0x36084E17: call 0x36057ad0 */ /* not lifted */
   1027     RECOMP_FLAGS_IN();
   1028 L_36084E1C:
   1029     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1030     eax = 0; /* 0x36084E1C: xor eax, eax */
   1031     _cf = 0;
   1032     _flag_k = FK_TEST;
   1033     esi = POP32_VAL(esp); /* 0x36084E1E: pop esi */
   1034     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084E1F: ret  */
   1035     RECOMP_REGS_OUT();
   1036 }
   1037 
   1038 void sub_36084E20(void) {
   1039     int _fpu_cmp = 0;
   1040     uint32_t _cf = 0;
   1041     int _df = 1;
   1042     uint32_t _flag_k = FK_NONE;
   1043     uint32_t _flag_a = 0, _flag_b = 0;
   1044     uint32_t _itail_tgt = 0;
   1045     RECOMP_REGS_LOCALS
   1046     RECOMP_ENTER(0x36084E20u);
   1047 
   1048 L_36084E20:
   1049     PUSH32(esp, ebp); /* 0x36084E20: push ebp */
   1050     ebp = esp; /* 0x36084E21: mov ebp, esp */
   1051     PUSH32(esp, 0xFFFFFFFFu); /* 0x36084E23: push -1 */
   1052     PUSH32(esp, 0x36165A99u); /* 0x36084E25: push 0x36165a99 */
   1053     eax = MEM32(FS_BASE + (0)); /* 0x36084E2A: mov eax, dword ptr fs:[0] */
   1054     PUSH32(esp, eax); /* 0x36084E30: push eax */
   1055     MEM32(FS_BASE + (0)) = esp; /* 0x36084E31: mov dword ptr fs:[0], esp */
   1056     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1057     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1058     esp = esp - 0x14u; /* 0x36084E38: sub esp, 0x14 */
   1059     _flag_k = FK_CMP;
   1060     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36084E3B: mov al, byte ptr [ebp + 0xb] */
   1061     PUSH32(esp, ebx); /* 0x36084E3E: push ebx */
   1062     PUSH32(esp, esi); /* 0x36084E3F: push esi */
   1063     MEM32(ebp + (-0x10)) = ecx; /* 0x36084E40: mov dword ptr [ebp - 0x10], ecx */
   1064     PUSH32(esp, edi); /* 0x36084E43: push edi */
   1065     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1066     ecx = ecx | 0xFFFFFFFFu; /* 0x36084E44: or ecx, 0xffffffff */
   1067     _cf = 0;
   1068     _flag_k = FK_TEST;
   1069     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1070     esi = 0; /* 0x36084E47: xor esi, esi */
   1071     _cf = 0;
   1072     _flag_k = FK_TEST;
   1073     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36084E49: mov byte ptr [ebp - 0x20], al */
   1074     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1075     eax = 0; /* 0x36084E4C: xor eax, eax */
   1076     _cf = 0;
   1077     _flag_k = FK_TEST;
   1078     edi = 0x361B4128u; /* 0x36084E4E: mov edi, 0x361b4128 */
   1079     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x36084E53: repne scasb al, byte ptr es:[edi] */
   1080     ecx = ~ecx; /* 0x36084E55: not ecx */
   1081     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1082     ecx = ecx - 1; /* 0x36084E57: dec ecx */
   1083     _flag_k = FK_DEC;
   1084     ebx = ecx; /* 0x36084E58: mov ebx, ecx */
   1085     PUSH32(esp, 1); /* 0x36084E5A: push 1 */
   1086     PUSH32(esp, ebx); /* 0x36084E5C: push ebx */
   1087     ecx = ebp + (-0x20); /* 0x36084E5D: lea ecx, [ebp - 0x20] */
   1088     MEM32(ebp + (-0x1C)) = esi; /* 0x36084E60: mov dword ptr [ebp - 0x1c], esi */
   1089     MEM32(ebp + (-0x18)) = esi; /* 0x36084E63: mov dword ptr [ebp - 0x18], esi */
   1090     MEM32(ebp + (-0x14)) = esi; /* 0x36084E66: mov dword ptr [ebp - 0x14], esi */
   1091     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36084E69: call dword ptr [0x3616f00c] */
   1092     RECOMP_FLAGS_IN();
   1093     /* test LO8(eax), LO8(eax) */ /* 0x36084E6F: test al, al */
   1094     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1095     _cf = 0;
   1096     _flag_k = FK_NARROW(FK_TEST, 24);
   1097     if (TEST_Z(_flag_a, _flag_b)) goto L_36084E97; /* 0x36084E71: je 0x36084e97 */
   1098 L_36084E73:
   1099     edi = MEM32(ebp + (-0x1C)); /* 0x36084E73: mov edi, dword ptr [ebp - 0x1c] */
   1100     ecx = ebx; /* 0x36084E76: mov ecx, ebx */
   1101     edx = ecx; /* 0x36084E78: mov edx, ecx */
   1102     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36084E7A: shr ecx, 2 */
   1103     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1104     ecx = ecx >> 2u; /* 0x36084E7A: shr ecx, 2 */
   1105     esi = 0x361B4128u; /* 0x36084E7D: mov esi, 0x361b4128 */
   1106     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36084E82: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1107     ecx = edx; /* 0x36084E84: mov ecx, edx */
   1108     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   1109     ecx = ecx & 3; /* 0x36084E86: and ecx, 3 */
   1110     _cf = 0;
   1111     _flag_k = FK_TEST;
   1112     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36084E89: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1113     eax = MEM32(ebp + (-0x1C)); /* 0x36084E8B: mov eax, dword ptr [ebp - 0x1c] */
   1114     MEM32(ebp + (-0x18)) = ebx; /* 0x36084E8E: mov dword ptr [ebp - 0x18], ebx */
   1115     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36084E91: mov byte ptr [eax + ebx], 0 */
   1116     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1117     esi = 0; /* 0x36084E95: xor esi, esi */
   1118     _cf = 0;
   1119     _flag_k = FK_TEST;
   1120 L_36084E97:
   1121     edx = MEM32(ebp + 0x8); /* 0x36084E97: mov edx, dword ptr [ebp + 8] */
   1122     edi = MEM32(ebp + (-0x10)); /* 0x36084E9A: mov edi, dword ptr [ebp - 0x10] */
   1123     ecx = ebp + (-0x20); /* 0x36084E9D: lea ecx, [ebp - 0x20] */
   1124     PUSH32(esp, ecx); /* 0x36084EA0: push ecx */
   1125     PUSH32(esp, edx); /* 0x36084EA1: push edx */
   1126     ecx = edi; /* 0x36084EA2: mov ecx, edi */
   1127     MEM32(ebp + (-0x4)) = esi; /* 0x36084EA4: mov dword ptr [ebp - 4], esi */
   1128     RECOMP_ICALL(MEM32(0x3616FD28)); /* 0x36084EA7: call dword ptr [0x3616fd28] */
   1129     RECOMP_FLAGS_IN();
   1130     ecx = MEM32(ebp + (-0x1C)); /* 0x36084EAD: mov ecx, dword ptr [ebp - 0x1c] */
   1131     /* cmp ecx, esi */ /* 0x36084EB0: cmp ecx, esi */
   1132     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   1133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1134     _flag_k = FK_CMP;
   1135     if (CMP_EQ(_flag_a, _flag_b)) goto L_36084ECF; /* 0x36084EB2: je 0x36084ecf */
   1136 L_36084EB4:
   1137     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36084EB4: mov al, byte ptr [ecx - 1] */
   1138     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1139     ecx = ecx - 1; /* 0x36084EB7: dec ecx */
   1140     _flag_k = FK_DEC;
   1141     /* test LO8(eax), LO8(eax) */ /* 0x36084EB8: test al, al */
   1142     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1143     _cf = 0;
   1144     _flag_k = FK_NARROW(FK_TEST, 24);
   1145     if (TEST_Z(_flag_a, _flag_b)) goto L_36084EC6; /* 0x36084EBA: je 0x36084ec6 */
   1146 L_36084EBC:
   1147     /* cmp LO8(eax), 0xFFu */ /* 0x36084EBC: cmp al, 0xff */
   1148     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1149     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1150     _flag_k = FK_NARROW(FK_CMP, 24);
   1151     if (CMP_EQ(_flag_a, _flag_b)) goto L_36084EC6; /* 0x36084EBE: je 0x36084ec6 */
   1152 L_36084EC0:
   1153     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1154     SET_LO8(eax, LO8(eax) - 1); /* 0x36084EC0: dec al */
   1155     _flag_k = FK_NARROW(FK_DEC, 24);
   1156     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36084EC2: mov byte ptr [ecx], al */
   1157     goto L_36084ECF; /* 0x36084EC4: jmp 0x36084ecf */
   1158 L_36084EC6:
   1159     PUSH32(esp, ecx); /* 0x36084EC6: push ecx */
   1160     RECOMP_ICALL(0x3615FCC4u); /* 0x36084EC7: call 0x3615fcc4 */ /* not lifted */
   1161     RECOMP_FLAGS_IN();
   1162     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1163     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1164     esp = esp + 4; /* 0x36084ECC: add esp, 4 */
   1165     _flag_k = FK_ADD;
   1166 L_36084ECF:
   1167     eax = MEM32(ebp + 0xC); /* 0x36084ECF: mov eax, dword ptr [ebp + 0xc] */
   1168     ecx = MEM32(ebp + (-0xC)); /* 0x36084ED2: mov ecx, dword ptr [ebp - 0xc] */
   1169     MEM32(edi + 0x28) = eax; /* 0x36084ED5: mov dword ptr [edi + 0x28], eax */
   1170     MEM32(edi) = 0x361704D8u; /* 0x36084ED8: mov dword ptr [edi], 0x361704d8 */
   1171     eax = edi; /* 0x36084EDE: mov eax, edi */
   1172     edi = POP32_VAL(esp); /* 0x36084EE0: pop edi */
   1173     esi = POP32_VAL(esp); /* 0x36084EE1: pop esi */
   1174     ebx = POP32_VAL(esp); /* 0x36084EE2: pop ebx */
   1175     MEM32(FS_BASE + (0)) = ecx; /* 0x36084EE3: mov dword ptr fs:[0], ecx */
   1176     esp = ebp; /* 0x36084EEA: mov esp, ebp */
   1177     ebp = POP32_VAL(esp); /* 0x36084EEC: pop ebp */
   1178     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36084EED: ret 8 */
   1179     RECOMP_REGS_OUT();
   1180 }
   1181 
   1182 void sub_36084EF0(void) {
   1183     int _fpu_cmp = 0;
   1184     uint32_t _cf = 0;
   1185     int _df = 1;
   1186     uint32_t _flag_k = FK_NONE;
   1187     uint32_t _flag_a = 0, _flag_b = 0;
   1188     uint32_t _itail_tgt = 0;
   1189     RECOMP_REGS_LOCALS
   1190     RECOMP_ENTER(0x36084EF0u);
   1191 
   1192 L_36084EF0:
   1193     PUSH32(esp, esi); /* 0x36084EF0: push esi */
   1194     PUSH32(esp, 0); /* 0x36084EF1: push 0 */
   1195     PUSH32(esp, 0x361B2CD8u); /* 0x36084EF3: push 0x361b2cd8 */
   1196     esi = ecx; /* 0x36084EF8: mov esi, ecx */
   1197     PUSH32(esp, 0x361B2CC0u); /* 0x36084EFA: push 0x361b2cc0 */
   1198     eax = esi + 0x4; /* 0x36084EFF: lea eax, [esi + 4] */
   1199     PUSH32(esp, 0); /* 0x36084F02: push 0 */
   1200     PUSH32(esp, eax); /* 0x36084F04: push eax */
   1201     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36084F05: call dword ptr [0x3616ff70] */
   1202     RECOMP_FLAGS_IN();
   1203     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1204     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1205     esp = esp + 4; /* 0x36084F0B: add esp, 4 */
   1206     _flag_k = FK_ADD;
   1207     PUSH32(esp, eax); /* 0x36084F0E: push eax */
   1208     RECOMP_ICALL(0x3615FD86u); /* 0x36084F0F: call 0x3615fd86 */ /* not lifted */
   1209     RECOMP_FLAGS_IN();
   1210     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1211     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1212     esp = esp + 0x14u; /* 0x36084F14: add esp, 0x14 */
   1213     _flag_k = FK_ADD;
   1214     /* test eax, eax */ /* 0x36084F17: test eax, eax */
   1215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1216     _cf = 0;
   1217     _flag_k = FK_TEST;
   1218     if (TEST_NZ(_flag_a, _flag_b)) goto L_36084F22; /* 0x36084F19: jne 0x36084f22 */
   1219 L_36084F1B:
   1220     eax = 2; /* 0x36084F1B: mov eax, 2 */
   1221     esi = POP32_VAL(esp); /* 0x36084F20: pop esi */
   1222     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084F21: ret  */
   1223 L_36084F22:
   1224     ecx = MEM32(esi + 0x28); /* 0x36084F22: mov ecx, dword ptr [esi + 0x28] */
   1225     eax = MEM32(eax + 0x174); /* 0x36084F25: mov eax, dword ptr [eax + 0x174] */
   1226     PUSH32(esp, ecx); /* 0x36084F2B: push ecx */
   1227     ecx = eax; /* 0x36084F2C: mov ecx, eax */
   1228     RECOMP_ICALL(0x36050810u); /* 0x36084F2E: call 0x36050810 */ /* not lifted */
   1229     RECOMP_FLAGS_IN();
   1230     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1231     _cf = (LO8(eax)) != 0;
   1232     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36084F33: neg al */
   1233     _flag_k = FK_NARROW(FK_CMP, 24);
   1234     esi = POP32_VAL(esp); /* 0x36084F35: pop esi */
   1235     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36084F36: sbb eax, eax */
   1236       eax = _sc ? 0xFFFFFFFFu : 0;
   1237       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1238       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1239     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1240     eax = eax & 0xFFFFFFFEu; /* 0x36084F38: and eax, 0xfffffffe */
   1241     _cf = 0;
   1242     _flag_k = FK_TEST;
   1243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   1244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1245     eax = eax + 2; /* 0x36084F3B: add eax, 2 */
   1246     _flag_k = FK_ADD;
   1247     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084F3E: ret  */
   1248     RECOMP_REGS_OUT();
   1249 }
   1250 
   1251 void sub_36084F40(void) {
   1252     int _fpu_cmp = 0;
   1253     uint32_t _cf = 0;
   1254     int _df = 1;
   1255     uint32_t _flag_k = FK_NONE;
   1256     uint32_t _flag_a = 0, _flag_b = 0;
   1257     uint32_t _itail_tgt = 0;
   1258     RECOMP_REGS_LOCALS
   1259     RECOMP_ENTER(0x36084F40u);
   1260 
   1261 L_36084F40:
   1262     PUSH32(esp, ebx); /* 0x36084F40: push ebx */
   1263     ebx = MEM32(0x3616FF70); /* 0x36084F41: mov ebx, dword ptr [0x3616ff70] */
   1264     PUSH32(esp, esi); /* 0x36084F47: push esi */
   1265     PUSH32(esp, edi); /* 0x36084F48: push edi */
   1266     PUSH32(esp, 0); /* 0x36084F49: push 0 */
   1267     PUSH32(esp, 0x361B2CD8u); /* 0x36084F4B: push 0x361b2cd8 */
   1268     esi = ecx; /* 0x36084F50: mov esi, ecx */
   1269     PUSH32(esp, 0x361B2CC0u); /* 0x36084F52: push 0x361b2cc0 */
   1270     edi = esi + 0x4; /* 0x36084F57: lea edi, [esi + 4] */
   1271     PUSH32(esp, 0); /* 0x36084F5A: push 0 */
   1272     PUSH32(esp, edi); /* 0x36084F5C: push edi */
   1273     RECOMP_ICALL(ebx); /* 0x36084F5D: call ebx */
   1274     RECOMP_FLAGS_IN();
   1275     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1276     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1277     esp = esp + 4; /* 0x36084F5F: add esp, 4 */
   1278     _flag_k = FK_ADD;
   1279     PUSH32(esp, eax); /* 0x36084F62: push eax */
   1280     RECOMP_ICALL(0x3615FD86u); /* 0x36084F63: call 0x3615fd86 */ /* not lifted */
   1281     RECOMP_FLAGS_IN();
   1282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1283     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1284     esp = esp + 0x14u; /* 0x36084F68: add esp, 0x14 */
   1285     _flag_k = FK_ADD;
   1286     /* test eax, eax */ /* 0x36084F6B: test eax, eax */
   1287     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1288     _cf = 0;
   1289     _flag_k = FK_TEST;
   1290     eax = MEM32(esi + 0x20); /* 0x36084F6D: mov eax, dword ptr [esi + 0x20] */
   1291     if (TEST_Z(_flag_a, _flag_b)) goto L_36084F99; /* 0x36084F70: je 0x36084f99 */
   1292 L_36084F72:
   1293     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1294     eax = eax - 1; /* 0x36084F72: dec eax */
   1295     _flag_k = FK_DEC;
   1296     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36084F96; /* 0x36084F73: jne 0x36084f96 */
   1297 L_36084F75:
   1298     ecx = esi; /* 0x36084F75: mov ecx, esi */
   1299     RECOMP_ICALL(MEM32(0x3616FD2C)); /* 0x36084F77: call dword ptr [0x3616fd2c] */
   1300     RECOMP_FLAGS_IN();
   1301     /* test LO8(eax), LO8(eax) */ /* 0x36084F7D: test al, al */
   1302     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1303     _cf = 0;
   1304     _flag_k = FK_NARROW(FK_TEST, 24);
   1305     if (TEST_Z(_flag_a, _flag_b)) goto L_36084F96; /* 0x36084F7F: je 0x36084f96 */
   1306 L_36084F81:
   1307     PUSH32(esp, edi); /* 0x36084F81: push edi */
   1308     RECOMP_ICALL(ebx); /* 0x36084F82: call ebx */
   1309     RECOMP_FLAGS_IN();
   1310     ecx = MEM32(esi + 0x28); /* 0x36084F84: mov ecx, dword ptr [esi + 0x28] */
   1311     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1313     esp = esp + 4; /* 0x36084F87: add esp, 4 */
   1314     _flag_k = FK_ADD;
   1315     PUSH32(esp, ecx); /* 0x36084F8A: push ecx */
   1316     ecx = MEM32(eax + 0x174); /* 0x36084F8B: mov ecx, dword ptr [eax + 0x174] */
   1317     RECOMP_ICALL(0x36050810u); /* 0x36084F91: call 0x36050810 */ /* not lifted */
   1318     RECOMP_FLAGS_IN();
   1319 L_36084F96:
   1320     eax = MEM32(esi + 0x20); /* 0x36084F96: mov eax, dword ptr [esi + 0x20] */
   1321 L_36084F99:
   1322     edi = POP32_VAL(esp); /* 0x36084F99: pop edi */
   1323     esi = POP32_VAL(esp); /* 0x36084F9A: pop esi */
   1324     ebx = POP32_VAL(esp); /* 0x36084F9B: pop ebx */
   1325     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36084F9C: ret  */
   1326     RECOMP_REGS_OUT();
   1327 }
   1328 
   1329 void sub_36084FA0(void) {
   1330     int _fpu_cmp = 0;
   1331     uint32_t _cf = 0;
   1332     int _df = 1;
   1333     uint32_t _flag_k = FK_NONE;
   1334     uint32_t _flag_a = 0, _flag_b = 0;
   1335     uint32_t _itail_tgt = 0;
   1336     RECOMP_REGS_LOCALS
   1337     RECOMP_ENTER(0x36084FA0u);
   1338 
   1339 L_36084FA0:
   1340     PUSH32(esp, ebp); /* 0x36084FA0: push ebp */
   1341     ebp = esp; /* 0x36084FA1: mov ebp, esp */
   1342     PUSH32(esp, esi); /* 0x36084FA3: push esi */
   1343     PUSH32(esp, edi); /* 0x36084FA4: push edi */
   1344     edi = MEM32(ebp + 0x8); /* 0x36084FA5: mov edi, dword ptr [ebp + 8] */
   1345     esi = ecx; /* 0x36084FA8: mov esi, ecx */
   1346     PUSH32(esp, edi); /* 0x36084FAA: push edi */
   1347     RECOMP_ICALL(MEM32(0x3616FD30)); /* 0x36084FAB: call dword ptr [0x3616fd30] */
   1348     RECOMP_FLAGS_IN();
   1349     eax = MEM32(esi + 0x28); /* 0x36084FB1: mov eax, dword ptr [esi + 0x28] */
   1350     PUSH32(esp, eax); /* 0x36084FB4: push eax */
   1351     ecx = edi; /* 0x36084FB5: mov ecx, edi */
   1352     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36084FB7: call dword ptr [0x3616faec] */
   1353     RECOMP_FLAGS_IN();
   1354     edi = POP32_VAL(esp); /* 0x36084FBD: pop edi */
   1355     esi = POP32_VAL(esp); /* 0x36084FBE: pop esi */
   1356     ebp = POP32_VAL(esp); /* 0x36084FBF: pop ebp */
   1357     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36084FC0: ret 4 */
   1358     RECOMP_REGS_OUT();
   1359 }
   1360 
   1361 void sub_36084FD0(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(0x36084FD0u);
   1370 
   1371 L_36084FD0:
   1372     PUSH32(esp, ebp); /* 0x36084FD0: push ebp */
   1373     ebp = esp; /* 0x36084FD1: mov ebp, esp */
   1374     PUSH32(esp, esi); /* 0x36084FD3: push esi */
   1375     PUSH32(esp, edi); /* 0x36084FD4: push edi */
   1376     edi = MEM32(ebp + 0x8); /* 0x36084FD5: mov edi, dword ptr [ebp + 8] */
   1377     esi = ecx; /* 0x36084FD8: mov esi, ecx */
   1378     PUSH32(esp, edi); /* 0x36084FDA: push edi */
   1379     RECOMP_ICALL(MEM32(0x3616FD34)); /* 0x36084FDB: call dword ptr [0x3616fd34] */
   1380     RECOMP_FLAGS_IN();
   1381     /* test eax, eax */ /* 0x36084FE1: test eax, eax */
   1382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1383     _cf = 0;
   1384     _flag_k = FK_TEST;
   1385     if (TEST_NZ(_flag_a, _flag_b)) goto L_36085018; /* 0x36084FE3: jne 0x36085018 */
   1386 L_36084FE5:
   1387     eax = ebp + 0x8; /* 0x36084FE5: lea eax, [ebp + 8] */
   1388     PUSH32(esp, eax); /* 0x36084FE8: push eax */
   1389     ecx = edi; /* 0x36084FE9: mov ecx, edi */
   1390     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36084FEB: call dword ptr [0x3616fa8c] */
   1391     RECOMP_FLAGS_IN();
   1392     eax = MEM32(ebp + 0x8); /* 0x36084FF1: mov eax, dword ptr [ebp + 8] */
   1393     /* test eax, eax */ /* 0x36084FF4: test eax, eax */
   1394     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1395     _cf = 0;
   1396     _flag_k = FK_TEST;
   1397     MEM32(esi + 0x28) = eax; /* 0x36084FF6: mov dword ptr [esi + 0x28], eax */
   1398     if (TEST_LE(_flag_a, _flag_b)) goto L_36085013; /* 0x36084FF9: jle 0x36085013 */
   1399 L_36084FFB:
   1400     /* cmp eax, 0x40u */ /* 0x36084FFB: cmp eax, 0x40 */
   1401     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u);
   1402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1403     _flag_k = FK_CMP;
   1404     if (CMP_GE(_flag_a, _flag_b)) goto L_36085013; /* 0x36084FFE: jge 0x36085013 */
   1405 L_36085000:
   1406     ecx = edi; /* 0x36085000: mov ecx, edi */
   1407     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36085002: call dword ptr [0x3616fadc] */
   1408     RECOMP_FLAGS_IN();
   1409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1410     _cf = (eax) != 0;
   1411     eax = (uint32_t)(-(int32_t)eax); /* 0x36085008: neg eax */
   1412     _flag_k = FK_CMP;
   1413     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3608500A: sbb eax, eax */
   1414       eax = _sc ? 0xFFFFFFFFu : 0;
   1415       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1416       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1417     edi = POP32_VAL(esp); /* 0x3608500C: pop edi */
   1418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1419     eax = eax + 1; /* 0x3608500D: inc eax */
   1420     _flag_k = FK_INC;
   1421     esi = POP32_VAL(esp); /* 0x3608500E: pop esi */
   1422     ebp = POP32_VAL(esp); /* 0x3608500F: pop ebp */
   1423     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36085010: ret 4 */
   1424 L_36085013:
   1425     eax = 1; /* 0x36085013: mov eax, 1 */
   1426 L_36085018:
   1427     edi = POP32_VAL(esp); /* 0x36085018: pop edi */
   1428     esi = POP32_VAL(esp); /* 0x36085019: pop esi */
   1429     ebp = POP32_VAL(esp); /* 0x3608501A: pop ebp */
   1430     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608501B: ret 4 */
   1431     RECOMP_REGS_OUT();
   1432 }
   1433 
   1434 void sub_36085020(void) {
   1435     int _fpu_cmp = 0;
   1436     uint32_t _cf = 0;
   1437     int _df = 1;
   1438     uint32_t _flag_k = FK_NONE;
   1439     uint32_t _flag_a = 0, _flag_b = 0;
   1440     uint32_t _itail_tgt = 0;
   1441     RECOMP_REGS_LOCALS
   1442     RECOMP_ENTER(0x36085020u);
   1443 
   1444 L_36085020:
   1445     PUSH32(esp, 0); /* 0x36085020: push 0 */
   1446     PUSH32(esp, 0x361B2CD8u); /* 0x36085022: push 0x361b2cd8 */
   1447     PUSH32(esp, 0x361B2CC0u); /* 0x36085027: push 0x361b2cc0 */
   1448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1449     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1450     ecx = ecx + 4; /* 0x3608502C: add ecx, 4 */
   1451     _flag_k = FK_ADD;
   1452     PUSH32(esp, 0); /* 0x3608502F: push 0 */
   1453     PUSH32(esp, ecx); /* 0x36085031: push ecx */
   1454     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36085032: call dword ptr [0x3616ff70] */
   1455     RECOMP_FLAGS_IN();
   1456     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1457     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1458     esp = esp + 4; /* 0x36085038: add esp, 4 */
   1459     _flag_k = FK_ADD;
   1460     PUSH32(esp, eax); /* 0x3608503B: push eax */
   1461     RECOMP_ICALL(0x3615FD86u); /* 0x3608503C: call 0x3615fd86 */ /* not lifted */
   1462     RECOMP_FLAGS_IN();
   1463     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1464     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1465     esp = esp + 0x14u; /* 0x36085041: add esp, 0x14 */
   1466     _flag_k = FK_ADD;
   1467     /* test eax, eax */ /* 0x36085044: test eax, eax */
   1468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1469     _cf = 0;
   1470     _flag_k = FK_TEST;
   1471     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608504E; /* 0x36085046: jne 0x3608504e */
   1472 L_36085048:
   1473     eax = 2; /* 0x36085048: mov eax, 2 */
   1474     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608504D: ret  */
   1475 L_3608504E:
   1476     ecx = eax; /* 0x3608504E: mov ecx, eax */
   1477     RECOMP_ICALL(0x36071450u); /* 0x36085050: call 0x36071450 */ /* not lifted */
   1478     RECOMP_FLAGS_IN();
   1479     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1480     _cf = (LO8(eax)) != 0;
   1481     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36085055: neg al */
   1482     _flag_k = FK_NARROW(FK_CMP, 24);
   1483     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36085057: sbb eax, eax */
   1484       eax = _sc ? 0xFFFFFFFFu : 0;
   1485       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1486       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1488     eax = eax & 0xFFFFFFFEu; /* 0x36085059: and eax, 0xfffffffe */
   1489     _cf = 0;
   1490     _flag_k = FK_TEST;
   1491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   1492     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1493     eax = eax + 2; /* 0x3608505C: add eax, 2 */
   1494     _flag_k = FK_ADD;
   1495     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608505F: ret  */
   1496     RECOMP_REGS_OUT();
   1497 }
   1498 
   1499 void sub_36085060(void) {
   1500     int _fpu_cmp = 0;
   1501     uint32_t _cf = 0;
   1502     int _df = 1;
   1503     uint32_t _flag_k = FK_NONE;
   1504     uint32_t _flag_a = 0, _flag_b = 0;
   1505     uint32_t _itail_tgt = 0;
   1506     RECOMP_REGS_LOCALS
   1507     RECOMP_ENTER(0x36085060u);
   1508 
   1509 L_36085060:
   1510     PUSH32(esp, ebx); /* 0x36085060: push ebx */
   1511     ebx = MEM32(0x3616FF70); /* 0x36085061: mov ebx, dword ptr [0x3616ff70] */
   1512     PUSH32(esp, esi); /* 0x36085067: push esi */
   1513     PUSH32(esp, edi); /* 0x36085068: push edi */
   1514     PUSH32(esp, 0); /* 0x36085069: push 0 */
   1515     PUSH32(esp, 0x361B2CD8u); /* 0x3608506B: push 0x361b2cd8 */
   1516     esi = ecx; /* 0x36085070: mov esi, ecx */
   1517     PUSH32(esp, 0x361B2CC0u); /* 0x36085072: push 0x361b2cc0 */
   1518     edi = esi + 0x4; /* 0x36085077: lea edi, [esi + 4] */
   1519     PUSH32(esp, 0); /* 0x3608507A: push 0 */
   1520     PUSH32(esp, edi); /* 0x3608507C: push edi */
   1521     RECOMP_ICALL(ebx); /* 0x3608507D: call ebx */
   1522     RECOMP_FLAGS_IN();
   1523     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1525     esp = esp + 4; /* 0x3608507F: add esp, 4 */
   1526     _flag_k = FK_ADD;
   1527     PUSH32(esp, eax); /* 0x36085082: push eax */
   1528     RECOMP_ICALL(0x3615FD86u); /* 0x36085083: call 0x3615fd86 */ /* not lifted */
   1529     RECOMP_FLAGS_IN();
   1530     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1532     esp = esp + 0x14u; /* 0x36085088: add esp, 0x14 */
   1533     _flag_k = FK_ADD;
   1534     /* test eax, eax */ /* 0x3608508B: test eax, eax */
   1535     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1536     _cf = 0;
   1537     _flag_k = FK_TEST;
   1538     eax = MEM32(esi + 0x20); /* 0x3608508D: mov eax, dword ptr [esi + 0x20] */
   1539     if (TEST_Z(_flag_a, _flag_b)) goto L_360850AB; /* 0x36085090: je 0x360850ab */
   1540 L_36085092:
   1541     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1542     eax = eax - 1; /* 0x36085092: dec eax */
   1543     _flag_k = FK_DEC;
   1544     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_360850A8; /* 0x36085093: jne 0x360850a8 */
   1545 L_36085095:
   1546     PUSH32(esp, edi); /* 0x36085095: push edi */
   1547     RECOMP_ICALL(ebx); /* 0x36085096: call ebx */
   1548     RECOMP_FLAGS_IN();
   1549     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1550     ecx = 0; /* 0x36085098: xor ecx, ecx */
   1551     _cf = 0;
   1552     _flag_k = FK_TEST;
   1553     SET_LO8(ecx, MEM8(esi + 0x28)); /* 0x3608509A: mov cl, byte ptr [esi + 0x28] */
   1554     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1555     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1556     esp = esp + 4; /* 0x3608509D: add esp, 4 */
   1557     _flag_k = FK_ADD;
   1558     PUSH32(esp, ecx); /* 0x360850A0: push ecx */
   1559     ecx = eax; /* 0x360850A1: mov ecx, eax */
   1560     RECOMP_ICALL(0x36071460u); /* 0x360850A3: call 0x36071460 */ /* not lifted */
   1561     RECOMP_FLAGS_IN();
   1562 L_360850A8:
   1563     eax = MEM32(esi + 0x20); /* 0x360850A8: mov eax, dword ptr [esi + 0x20] */
   1564 L_360850AB:
   1565     edi = POP32_VAL(esp); /* 0x360850AB: pop edi */
   1566     esi = POP32_VAL(esp); /* 0x360850AC: pop esi */
   1567     ebx = POP32_VAL(esp); /* 0x360850AD: pop ebx */
   1568     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360850AE: ret  */
   1569     RECOMP_REGS_OUT();
   1570 }
   1571 
   1572 void sub_360850B0(void) {
   1573     int _fpu_cmp = 0;
   1574     uint32_t _cf = 0;
   1575     int _df = 1;
   1576     uint32_t _flag_k = FK_NONE;
   1577     uint32_t _flag_a = 0, _flag_b = 0;
   1578     uint32_t _itail_tgt = 0;
   1579     RECOMP_REGS_LOCALS
   1580     RECOMP_ENTER(0x360850B0u);
   1581 
   1582 L_360850B0:
   1583     PUSH32(esp, esi); /* 0x360850B0: push esi */
   1584     esi = ecx; /* 0x360850B1: mov esi, ecx */
   1585     eax = esi + 0x4; /* 0x360850B3: lea eax, [esi + 4] */
   1586     PUSH32(esp, edi); /* 0x360850B6: push edi */
   1587     PUSH32(esp, eax); /* 0x360850B7: push eax */
   1588     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360850B8: call dword ptr [0x3616ff70] */
   1589     RECOMP_FLAGS_IN();
   1590     edi = eax; /* 0x360850BE: mov edi, eax */
   1591     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1592     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1593     esp = esp + 4; /* 0x360850C0: add esp, 4 */
   1594     _flag_k = FK_ADD;
   1595     ecx = edi; /* 0x360850C3: mov ecx, edi */
   1596     RECOMP_ICALL(0x36071450u); /* 0x360850C5: call 0x36071450 */ /* not lifted */
   1597     RECOMP_FLAGS_IN();
   1598     /* test LO8(eax), LO8(eax) */ /* 0x360850CA: test al, al */
   1599     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1600     _cf = 0;
   1601     _flag_k = FK_NARROW(FK_TEST, 24);
   1602     if (TEST_Z(_flag_a, _flag_b)) goto L_360850E7; /* 0x360850CC: je 0x360850e7 */
   1603 L_360850CE:
   1604     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1605     ecx = 0; /* 0x360850CE: xor ecx, ecx */
   1606     _cf = 0;
   1607     _flag_k = FK_TEST;
   1608     SET_LO8(ecx, MEM8(esi + 0x28)); /* 0x360850D0: mov cl, byte ptr [esi + 0x28] */
   1609     PUSH32(esp, ebx); /* 0x360850D3: push ebx */
   1610     ebx = 1; /* 0x360850D4: mov ebx, 1 */
   1611     PUSH32(esp, ecx); /* 0x360850D9: push ecx */
   1612     ecx = edi; /* 0x360850DA: mov ecx, edi */
   1613     RECOMP_ICALL(0x36071460u); /* 0x360850DC: call 0x36071460 */ /* not lifted */
   1614     RECOMP_FLAGS_IN();
   1615     eax = ebx; /* 0x360850E1: mov eax, ebx */
   1616     ebx = POP32_VAL(esp); /* 0x360850E3: pop ebx */
   1617     edi = POP32_VAL(esp); /* 0x360850E4: pop edi */
   1618     esi = POP32_VAL(esp); /* 0x360850E5: pop esi */
   1619     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360850E6: ret  */
   1620 L_360850E7:
   1621     edi = POP32_VAL(esp); /* 0x360850E7: pop edi */
   1622     eax = 2; /* 0x360850E8: mov eax, 2 */
   1623     esi = POP32_VAL(esp); /* 0x360850ED: pop esi */
   1624     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360850EE: ret  */
   1625     RECOMP_REGS_OUT();
   1626 }
   1627 
   1628 void sub_360850F0(void) {
   1629     int _fpu_cmp = 0;
   1630     uint32_t _cf = 0;
   1631     int _df = 1;
   1632     uint32_t _flag_k = FK_NONE;
   1633     uint32_t _flag_a = 0, _flag_b = 0;
   1634     uint32_t _itail_tgt = 0;
   1635     RECOMP_REGS_LOCALS
   1636     RECOMP_ENTER(0x360850F0u);
   1637 
   1638 L_360850F0:
   1639     PUSH32(esp, ebp); /* 0x360850F0: push ebp */
   1640     ebp = esp; /* 0x360850F1: mov ebp, esp */
   1641     PUSH32(esp, esi); /* 0x360850F3: push esi */
   1642     PUSH32(esp, edi); /* 0x360850F4: push edi */
   1643     edi = MEM32(ebp + 0x8); /* 0x360850F5: mov edi, dword ptr [ebp + 8] */
   1644     esi = ecx; /* 0x360850F8: mov esi, ecx */
   1645     PUSH32(esp, edi); /* 0x360850FA: push edi */
   1646     RECOMP_ICALL(MEM32(0x3616FD30)); /* 0x360850FB: call dword ptr [0x3616fd30] */
   1647     RECOMP_FLAGS_IN();
   1648     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1649     eax = 0; /* 0x36085101: xor eax, eax */
   1650     _cf = 0;
   1651     _flag_k = FK_TEST;
   1652     SET_LO8(eax, MEM8(esi + 0x28)); /* 0x36085103: mov al, byte ptr [esi + 0x28] */
   1653     ecx = edi; /* 0x36085106: mov ecx, edi */
   1654     PUSH32(esp, eax); /* 0x36085108: push eax */
   1655     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36085109: call dword ptr [0x3616faec] */
   1656     RECOMP_FLAGS_IN();
   1657     edi = POP32_VAL(esp); /* 0x3608510F: pop edi */
   1658     esi = POP32_VAL(esp); /* 0x36085110: pop esi */
   1659     ebp = POP32_VAL(esp); /* 0x36085111: pop ebp */
   1660     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36085112: ret 4 */
   1661     RECOMP_REGS_OUT();
   1662 }
   1663 
   1664 void sub_36085120(void) {
   1665     int _fpu_cmp = 0;
   1666     uint32_t _cf = 0;
   1667     int _df = 1;
   1668     uint32_t _flag_k = FK_NONE;
   1669     uint32_t _flag_a = 0, _flag_b = 0;
   1670     uint32_t _itail_tgt = 0;
   1671     RECOMP_REGS_LOCALS
   1672     RECOMP_ENTER(0x36085120u);
   1673 
   1674 L_36085120:
   1675     PUSH32(esp, ebp); /* 0x36085120: push ebp */
   1676     ebp = esp; /* 0x36085121: mov ebp, esp */
   1677     PUSH32(esp, esi); /* 0x36085123: push esi */
   1678     PUSH32(esp, edi); /* 0x36085124: push edi */
   1679     edi = MEM32(ebp + 0x8); /* 0x36085125: mov edi, dword ptr [ebp + 8] */
   1680     esi = ecx; /* 0x36085128: mov esi, ecx */
   1681     PUSH32(esp, edi); /* 0x3608512A: push edi */
   1682     RECOMP_ICALL(MEM32(0x3616FD34)); /* 0x3608512B: call dword ptr [0x3616fd34] */
   1683     RECOMP_FLAGS_IN();
   1684     /* test eax, eax */ /* 0x36085131: test eax, eax */
   1685     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1686     _cf = 0;
   1687     _flag_k = FK_TEST;
   1688     if (TEST_NZ(_flag_a, _flag_b)) goto L_36085159; /* 0x36085133: jne 0x36085159 */
   1689 L_36085135:
   1690     eax = ebp + 0x8; /* 0x36085135: lea eax, [ebp + 8] */
   1691     PUSH32(esp, eax); /* 0x36085138: push eax */
   1692     ecx = edi; /* 0x36085139: mov ecx, edi */
   1693     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3608513B: call dword ptr [0x3616fa8c] */
   1694     RECOMP_FLAGS_IN();
   1695     eax = MEM32(ebp + 0x8); /* 0x36085141: mov eax, dword ptr [ebp + 8] */
   1696     /* test eax, eax */ /* 0x36085144: test eax, eax */
   1697     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1698     _cf = 0;
   1699     _flag_k = FK_TEST;
   1700     SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36085146: setne cl */
   1701     MEM8(esi + 0x28) = (uint8_t)(LO8(ecx)); /* 0x36085149: mov byte ptr [esi + 0x28], cl */
   1702     ecx = edi; /* 0x3608514C: mov ecx, edi */
   1703     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3608514E: call dword ptr [0x3616fadc] */
   1704     RECOMP_FLAGS_IN();
   1705     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1706     _cf = (eax) != 0;
   1707     eax = (uint32_t)(-(int32_t)eax); /* 0x36085154: neg eax */
   1708     _flag_k = FK_CMP;
   1709     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36085156: sbb eax, eax */
   1710       eax = _sc ? 0xFFFFFFFFu : 0;
   1711       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1712       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1714     eax = eax + 1; /* 0x36085158: inc eax */
   1715     _flag_k = FK_INC;
   1716 L_36085159:
   1717     edi = POP32_VAL(esp); /* 0x36085159: pop edi */
   1718     esi = POP32_VAL(esp); /* 0x3608515A: pop esi */
   1719     ebp = POP32_VAL(esp); /* 0x3608515B: pop ebp */
   1720     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608515C: ret 4 */
   1721     RECOMP_REGS_OUT();
   1722 }
   1723 
   1724 void sub_36085160(void) {
   1725     int _fpu_cmp = 0;
   1726     uint32_t _cf = 0;
   1727     int _df = 1;
   1728     uint32_t _flag_k = FK_NONE;
   1729     uint32_t _flag_a = 0, _flag_b = 0;
   1730     uint32_t _itail_tgt = 0;
   1731     RECOMP_REGS_LOCALS
   1732     RECOMP_ENTER(0x36085160u);
   1733 
   1734 L_36085160:
   1735     PUSH32(esp, ebp); /* 0x36085160: push ebp */
   1736     ebp = esp; /* 0x36085161: mov ebp, esp */
   1737     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085163: push -1 */
   1738     PUSH32(esp, 0x36165AB9u); /* 0x36085165: push 0x36165ab9 */
   1739     eax = MEM32(FS_BASE + (0)); /* 0x3608516A: mov eax, dword ptr fs:[0] */
   1740     PUSH32(esp, eax); /* 0x36085170: push eax */
   1741     MEM32(FS_BASE + (0)) = esp; /* 0x36085171: mov dword ptr fs:[0], esp */
   1742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1744     esp = esp - 0x14u; /* 0x36085178: sub esp, 0x14 */
   1745     _flag_k = FK_CMP;
   1746     SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x3608517B: mov al, byte ptr [ebp + 0x13] */
   1747     PUSH32(esp, ebx); /* 0x3608517E: push ebx */
   1748     PUSH32(esp, esi); /* 0x3608517F: push esi */
   1749     esi = ecx; /* 0x36085180: mov esi, ecx */
   1750     PUSH32(esp, edi); /* 0x36085182: push edi */
   1751     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1752     ecx = ecx | 0xFFFFFFFFu; /* 0x36085183: or ecx, 0xffffffff */
   1753     _cf = 0;
   1754     _flag_k = FK_TEST;
   1755     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36085186: mov byte ptr [ebp - 0x20], al */
   1756     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1757     eax = 0; /* 0x36085189: xor eax, eax */
   1758     _cf = 0;
   1759     _flag_k = FK_TEST;
   1760     edi = 0x361B4194u; /* 0x3608518B: mov edi, 0x361b4194 */
   1761     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x36085190: repne scasb al, byte ptr es:[edi] */
   1762     ecx = ~ecx; /* 0x36085192: not ecx */
   1763     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1764     ecx = ecx - 1; /* 0x36085194: dec ecx */
   1765     _flag_k = FK_DEC;
   1766     ebx = ecx; /* 0x36085195: mov ebx, ecx */
   1767     PUSH32(esp, 1); /* 0x36085197: push 1 */
   1768     PUSH32(esp, ebx); /* 0x36085199: push ebx */
   1769     ecx = ebp + (-0x20); /* 0x3608519A: lea ecx, [ebp - 0x20] */
   1770     MEM32(ebp + (-0x10)) = esi; /* 0x3608519D: mov dword ptr [ebp - 0x10], esi */
   1771     MEM32(ebp + (-0x1C)) = eax; /* 0x360851A0: mov dword ptr [ebp - 0x1c], eax */
   1772     MEM32(ebp + (-0x18)) = eax; /* 0x360851A3: mov dword ptr [ebp - 0x18], eax */
   1773     MEM32(ebp + (-0x14)) = eax; /* 0x360851A6: mov dword ptr [ebp - 0x14], eax */
   1774     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360851A9: call dword ptr [0x3616f00c] */
   1775     RECOMP_FLAGS_IN();
   1776     /* test LO8(eax), LO8(eax) */ /* 0x360851AF: test al, al */
   1777     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1778     _cf = 0;
   1779     _flag_k = FK_NARROW(FK_TEST, 24);
   1780     if (TEST_Z(_flag_a, _flag_b)) goto L_360851D8; /* 0x360851B1: je 0x360851d8 */
   1781 L_360851B3:
   1782     edi = MEM32(ebp + (-0x1C)); /* 0x360851B3: mov edi, dword ptr [ebp - 0x1c] */
   1783     ecx = ebx; /* 0x360851B6: mov ecx, ebx */
   1784     edx = ecx; /* 0x360851B8: mov edx, ecx */
   1785     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360851BA: shr ecx, 2 */
   1786     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1787     ecx = ecx >> 2u; /* 0x360851BA: shr ecx, 2 */
   1788     esi = 0x361B4194u; /* 0x360851BD: mov esi, 0x361b4194 */
   1789     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360851C2: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1790     ecx = edx; /* 0x360851C4: mov ecx, edx */
   1791     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   1792     ecx = ecx & 3; /* 0x360851C6: and ecx, 3 */
   1793     _cf = 0;
   1794     _flag_k = FK_TEST;
   1795     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360851C9: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   1796     eax = MEM32(ebp + (-0x1C)); /* 0x360851CB: mov eax, dword ptr [ebp - 0x1c] */
   1797     esi = MEM32(ebp + (-0x10)); /* 0x360851CE: mov esi, dword ptr [ebp - 0x10] */
   1798     MEM32(ebp + (-0x18)) = ebx; /* 0x360851D1: mov dword ptr [ebp - 0x18], ebx */
   1799     MEM8(ebx + eax) = (uint8_t)(0); /* 0x360851D4: mov byte ptr [ebx + eax], 0 */
   1800 L_360851D8:
   1801     edx = MEM32(ebp + 0x8); /* 0x360851D8: mov edx, dword ptr [ebp + 8] */
   1802     ecx = ebp + (-0x20); /* 0x360851DB: lea ecx, [ebp - 0x20] */
   1803     PUSH32(esp, ecx); /* 0x360851DE: push ecx */
   1804     PUSH32(esp, edx); /* 0x360851DF: push edx */
   1805     ecx = esi; /* 0x360851E0: mov ecx, esi */
   1806     MEM32(ebp + (-0x4)) = 0; /* 0x360851E2: mov dword ptr [ebp - 4], 0 */
   1807     RECOMP_ICALL(MEM32(0x3616FD28)); /* 0x360851E9: call dword ptr [0x3616fd28] */
   1808     RECOMP_FLAGS_IN();
   1809     eax = MEM32(ebp + (-0x1C)); /* 0x360851EF: mov eax, dword ptr [ebp - 0x1c] */
   1810     /* test eax, eax */ /* 0x360851F2: test eax, eax */
   1811     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1812     _cf = 0;
   1813     _flag_k = FK_TEST;
   1814     if (TEST_Z(_flag_a, _flag_b)) goto L_36085212; /* 0x360851F4: je 0x36085212 */
   1815 L_360851F6:
   1816     ecx = eax + (-0x1); /* 0x360851F6: lea ecx, [eax - 1] */
   1817     SET_LO8(eax, MEM8(ecx)); /* 0x360851F9: mov al, byte ptr [ecx] */
   1818     /* test LO8(eax), LO8(eax) */ /* 0x360851FB: test al, al */
   1819     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1820     _cf = 0;
   1821     _flag_k = FK_NARROW(FK_TEST, 24);
   1822     if (TEST_Z(_flag_a, _flag_b)) goto L_36085209; /* 0x360851FD: je 0x36085209 */
   1823 L_360851FF:
   1824     /* cmp LO8(eax), 0xFFu */ /* 0x360851FF: cmp al, 0xff */
   1825     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   1826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1827     _flag_k = FK_NARROW(FK_CMP, 24);
   1828     if (CMP_EQ(_flag_a, _flag_b)) goto L_36085209; /* 0x36085201: je 0x36085209 */
   1829 L_36085203:
   1830     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1831     SET_LO8(eax, LO8(eax) - 1); /* 0x36085203: dec al */
   1832     _flag_k = FK_NARROW(FK_DEC, 24);
   1833     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36085205: mov byte ptr [ecx], al */
   1834     goto L_36085212; /* 0x36085207: jmp 0x36085212 */
   1835 L_36085209:
   1836     PUSH32(esp, ecx); /* 0x36085209: push ecx */
   1837     RECOMP_ICALL(0x3615FCC4u); /* 0x3608520A: call 0x3615fcc4 */ /* not lifted */
   1838     RECOMP_FLAGS_IN();
   1839     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1840     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1841     esp = esp + 4; /* 0x3608520F: add esp, 4 */
   1842     _flag_k = FK_ADD;
   1843 L_36085212:
   1844     ecx = MEM32(ebp + 0xC); /* 0x36085212: mov ecx, dword ptr [ebp + 0xc] */
   1845     eax = esi + 0x28; /* 0x36085215: lea eax, [esi + 0x28] */
   1846     /* cmp eax, ecx */ /* 0x36085218: cmp eax, ecx */
   1847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1849     _flag_k = FK_CMP;
   1850     if (CMP_EQ(_flag_a, _flag_b)) goto L_36085226; /* 0x3608521A: je 0x36085226 */
   1851 L_3608521C:
   1852     edx = MEM32(ecx); /* 0x3608521C: mov edx, dword ptr [ecx] */
   1853     MEM32(eax) = edx; /* 0x3608521E: mov dword ptr [eax], edx */
   1854     ecx = MEM32(ecx + 0x4); /* 0x36085220: mov ecx, dword ptr [ecx + 4] */
   1855     MEM32(eax + 0x4) = ecx; /* 0x36085223: mov dword ptr [eax + 4], ecx */
   1856 L_36085226:
   1857     eax = MEM32(ebp + 0x14); /* 0x36085226: mov eax, dword ptr [ebp + 0x14] */
   1858     ecx = MEM32(eax); /* 0x36085229: mov ecx, dword ptr [eax] */
   1859     edx = esi + 0x30; /* 0x3608522B: lea edx, [esi + 0x30] */
   1860     MEM32(edx) = ecx; /* 0x3608522E: mov dword ptr [edx], ecx */
   1861     ecx = MEM32(eax + 0x4); /* 0x36085230: mov ecx, dword ptr [eax + 4] */
   1862     MEM32(edx + 0x4) = ecx; /* 0x36085233: mov dword ptr [edx + 4], ecx */
   1863     eax = MEM32(eax + 0x8); /* 0x36085236: mov eax, dword ptr [eax + 8] */
   1864     MEM32(edx + 0x8) = eax; /* 0x36085239: mov dword ptr [edx + 8], eax */
   1865     edx = MEM32(ebp + 0x18); /* 0x3608523C: mov edx, dword ptr [ebp + 0x18] */
   1866     eax = MEM32(edx); /* 0x3608523F: mov eax, dword ptr [edx] */
   1867     ecx = esi + 0x3C; /* 0x36085241: lea ecx, [esi + 0x3c] */
   1868     MEM32(ecx) = eax; /* 0x36085244: mov dword ptr [ecx], eax */
   1869     eax = MEM32(edx + 0x4); /* 0x36085246: mov eax, dword ptr [edx + 4] */
   1870     MEM32(ecx + 0x4) = eax; /* 0x36085249: mov dword ptr [ecx + 4], eax */
   1871     eax = MEM32(edx + 0x8); /* 0x3608524C: mov eax, dword ptr [edx + 8] */
   1872     MEM32(ecx + 0x8) = eax; /* 0x3608524F: mov dword ptr [ecx + 8], eax */
   1873     edx = MEM32(edx + 0xC); /* 0x36085252: mov edx, dword ptr [edx + 0xc] */
   1874     MEM32(ecx + 0xC) = edx; /* 0x36085255: mov dword ptr [ecx + 0xc], edx */
   1875     ecx = MEM32(ebp + 0x1C); /* 0x36085258: mov ecx, dword ptr [ebp + 0x1c] */
   1876     edx = MEM32(ecx); /* 0x3608525B: mov edx, dword ptr [ecx] */
   1877     eax = esi + 0x4C; /* 0x3608525D: lea eax, [esi + 0x4c] */
   1878     MEM32(eax) = edx; /* 0x36085260: mov dword ptr [eax], edx */
   1879     edx = MEM32(ecx + 0x4); /* 0x36085262: mov edx, dword ptr [ecx + 4] */
   1880     MEM32(eax + 0x4) = edx; /* 0x36085265: mov dword ptr [eax + 4], edx */
   1881     ecx = MEM32(ecx + 0x8); /* 0x36085268: mov ecx, dword ptr [ecx + 8] */
   1882     MEM32(eax + 0x8) = ecx; /* 0x3608526B: mov dword ptr [eax + 8], ecx */
   1883     eax = MEM32(ebp + 0x20); /* 0x3608526E: mov eax, dword ptr [ebp + 0x20] */
   1884     ecx = MEM32(eax); /* 0x36085271: mov ecx, dword ptr [eax] */
   1885     edx = esi + 0x58; /* 0x36085273: lea edx, [esi + 0x58] */
   1886     MEM32(edx) = ecx; /* 0x36085276: mov dword ptr [edx], ecx */
   1887     ecx = MEM32(eax + 0x4); /* 0x36085278: mov ecx, dword ptr [eax + 4] */
   1888     MEM32(edx + 0x4) = ecx; /* 0x3608527B: mov dword ptr [edx + 4], ecx */
   1889     ecx = MEM32(eax + 0x8); /* 0x3608527E: mov ecx, dword ptr [eax + 8] */
   1890     MEM32(edx + 0x8) = ecx; /* 0x36085281: mov dword ptr [edx + 8], ecx */
   1891     eax = MEM32(eax + 0xC); /* 0x36085284: mov eax, dword ptr [eax + 0xc] */
   1892     SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x36085287: mov cl, byte ptr [ebp + 0x10] */
   1893     MEM32(edx + 0xC) = eax; /* 0x3608528A: mov dword ptr [edx + 0xc], eax */
   1894     MEM8(esi + 0x68) = (uint8_t)(LO8(ecx)); /* 0x3608528D: mov byte ptr [esi + 0x68], cl */
   1895     ecx = MEM32(ebp + (-0xC)); /* 0x36085290: mov ecx, dword ptr [ebp - 0xc] */
   1896     edi = POP32_VAL(esp); /* 0x36085293: pop edi */
   1897     MEM32(esi) = 0x36170538u; /* 0x36085294: mov dword ptr [esi], 0x36170538 */
   1898     eax = esi; /* 0x3608529A: mov eax, esi */
   1899     esi = POP32_VAL(esp); /* 0x3608529C: pop esi */
   1900     ebx = POP32_VAL(esp); /* 0x3608529D: pop ebx */
   1901     MEM32(FS_BASE + (0)) = ecx; /* 0x3608529E: mov dword ptr fs:[0], ecx */
   1902     esp = ebp; /* 0x360852A5: mov esp, ebp */
   1903     ebp = POP32_VAL(esp); /* 0x360852A7: pop ebp */
   1904     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x360852A8: ret 0x1c */
   1905     RECOMP_REGS_OUT();
   1906 }
   1907 
   1908 void sub_360852B0(void) {
   1909     int _fpu_cmp = 0;
   1910     uint32_t _cf = 0;
   1911     int _df = 1;
   1912     uint32_t _flag_k = FK_NONE;
   1913     uint32_t _flag_a = 0, _flag_b = 0;
   1914     uint32_t _itail_tgt = 0;
   1915     RECOMP_REGS_LOCALS
   1916     RECOMP_ENTER(0x360852B0u);
   1917 
   1918 L_360852B0:
   1919     PUSH32(esp, ebx); /* 0x360852B0: push ebx */
   1920     ebx = MEM32(0x3616FF70); /* 0x360852B1: mov ebx, dword ptr [0x3616ff70] */
   1921     PUSH32(esp, esi); /* 0x360852B7: push esi */
   1922     PUSH32(esp, edi); /* 0x360852B8: push edi */
   1923     PUSH32(esp, 0); /* 0x360852B9: push 0 */
   1924     PUSH32(esp, 0x361B2CD8u); /* 0x360852BB: push 0x361b2cd8 */
   1925     esi = ecx; /* 0x360852C0: mov esi, ecx */
   1926     PUSH32(esp, 0x361B2CC0u); /* 0x360852C2: push 0x361b2cc0 */
   1927     eax = esi + 0x4; /* 0x360852C7: lea eax, [esi + 4] */
   1928     PUSH32(esp, 0); /* 0x360852CA: push 0 */
   1929     PUSH32(esp, eax); /* 0x360852CC: push eax */
   1930     RECOMP_ICALL(ebx); /* 0x360852CD: call ebx */
   1931     RECOMP_FLAGS_IN();
   1932     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1933     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1934     esp = esp + 4; /* 0x360852CF: add esp, 4 */
   1935     _flag_k = FK_ADD;
   1936     PUSH32(esp, eax); /* 0x360852D2: push eax */
   1937     RECOMP_ICALL(0x3615FD86u); /* 0x360852D3: call 0x3615fd86 */ /* not lifted */
   1938     RECOMP_FLAGS_IN();
   1939     edi = eax; /* 0x360852D8: mov edi, eax */
   1940     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1941     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1942     esp = esp + 0x14u; /* 0x360852DA: add esp, 0x14 */
   1943     _flag_k = FK_ADD;
   1944     /* test edi, edi */ /* 0x360852DD: test edi, edi */
   1945     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1946     _cf = 0;
   1947     _flag_k = FK_TEST;
   1948     if (TEST_NZ(_flag_a, _flag_b)) goto L_360852EA; /* 0x360852DF: jne 0x360852ea */
   1949 L_360852E1:
   1950     edi = POP32_VAL(esp); /* 0x360852E1: pop edi */
   1951     esi = POP32_VAL(esp); /* 0x360852E2: pop esi */
   1952     eax = 2; /* 0x360852E3: mov eax, 2 */
   1953     ebx = POP32_VAL(esp); /* 0x360852E8: pop ebx */
   1954     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360852E9: ret  */
   1955 L_360852EA:
   1956     PUSH32(esp, 0); /* 0x360852EA: push 0 */
   1957     PUSH32(esp, 0x361B7C18u); /* 0x360852EC: push 0x361b7c18 */
   1958     PUSH32(esp, 0x361B2CC0u); /* 0x360852F1: push 0x361b2cc0 */
   1959     ecx = esi + 0x28; /* 0x360852F6: lea ecx, [esi + 0x28] */
   1960     PUSH32(esp, 0); /* 0x360852F9: push 0 */
   1961     PUSH32(esp, ecx); /* 0x360852FB: push ecx */
   1962     RECOMP_ICALL(ebx); /* 0x360852FC: call ebx */
   1963     RECOMP_FLAGS_IN();
   1964     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1965     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1966     esp = esp + 4; /* 0x360852FE: add esp, 4 */
   1967     _flag_k = FK_ADD;
   1968     PUSH32(esp, eax); /* 0x36085301: push eax */
   1969     RECOMP_ICALL(0x3615FD86u); /* 0x36085302: call 0x3615fd86 */ /* not lifted */
   1970     RECOMP_FLAGS_IN();
   1971     ecx = eax; /* 0x36085307: mov ecx, eax */
   1972     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1973     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1974     esp = esp + 0x14u; /* 0x36085309: add esp, 0x14 */
   1975     _flag_k = FK_ADD;
   1976     /* test ecx, ecx */ /* 0x3608530C: test ecx, ecx */
   1977     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1978     _cf = 0;
   1979     _flag_k = FK_TEST;
   1980     if (TEST_Z(_flag_a, _flag_b)) goto L_36085339; /* 0x3608530E: je 0x36085339 */
   1981 L_36085310:
   1982     SET_LO8(eax, MEM8(esi + 0x68)); /* 0x36085310: mov al, byte ptr [esi + 0x68] */
   1983     /* test LO8(eax), LO8(eax) */ /* 0x36085313: test al, al */
   1984     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1985     _cf = 0;
   1986     _flag_k = FK_NARROW(FK_TEST, 24);
   1987     if (TEST_Z(_flag_a, _flag_b)) goto L_3608532B; /* 0x36085315: je 0x3608532b */
   1988 L_36085317:
   1989     edx = esi + 0x58; /* 0x36085317: lea edx, [esi + 0x58] */
   1990     PUSH32(esp, edx); /* 0x3608531A: push edx */
   1991     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x4Cu);
   1992     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1993     esi = esi + 0x4Cu; /* 0x3608531B: add esi, 0x4c */
   1994     _flag_k = FK_ADD;
   1995     PUSH32(esp, esi); /* 0x3608531E: push esi */
   1996     PUSH32(esp, edi); /* 0x3608531F: push edi */
   1997     RECOMP_ICALL(0x36099D40u); /* 0x36085320: call 0x36099d40 */ /* not lifted */
   1998     RECOMP_FLAGS_IN();
   1999     edi = POP32_VAL(esp); /* 0x36085325: pop edi */
   2000     esi = POP32_VAL(esp); /* 0x36085326: pop esi */
   2001     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2002     eax = 0; /* 0x36085327: xor eax, eax */
   2003     _cf = 0;
   2004     _flag_k = FK_TEST;
   2005     ebx = POP32_VAL(esp); /* 0x36085329: pop ebx */
   2006     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608532A: ret  */
   2007 L_3608532B:
   2008     eax = esi + 0x58; /* 0x3608532B: lea eax, [esi + 0x58] */
   2009     PUSH32(esp, eax); /* 0x3608532E: push eax */
   2010     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x4Cu);
   2011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2012     esi = esi + 0x4Cu; /* 0x3608532F: add esi, 0x4c */
   2013     _flag_k = FK_ADD;
   2014     PUSH32(esp, esi); /* 0x36085332: push esi */
   2015     PUSH32(esp, edi); /* 0x36085333: push edi */
   2016     RECOMP_ICALL(0x36099E20u); /* 0x36085334: call 0x36099e20 */ /* not lifted */
   2017     RECOMP_FLAGS_IN();
   2018 L_36085339:
   2019     edi = POP32_VAL(esp); /* 0x36085339: pop edi */
   2020     esi = POP32_VAL(esp); /* 0x3608533A: pop esi */
   2021     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2022     eax = 0; /* 0x3608533B: xor eax, eax */
   2023     _cf = 0;
   2024     _flag_k = FK_TEST;
   2025     ebx = POP32_VAL(esp); /* 0x3608533D: pop ebx */
   2026     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608533E: ret  */
   2027     RECOMP_REGS_OUT();
   2028 }
   2029 
   2030 void sub_36085340(void) {
   2031     int _fpu_cmp = 0;
   2032     uint32_t _cf = 0;
   2033     int _df = 1;
   2034     uint32_t _flag_k = FK_NONE;
   2035     uint32_t _flag_a = 0, _flag_b = 0;
   2036     uint32_t _itail_tgt = 0;
   2037     RECOMP_REGS_LOCALS
   2038     RECOMP_ENTER(0x36085340u);
   2039 
   2040 L_36085340:
   2041     PUSH32(esp, ebx); /* 0x36085340: push ebx */
   2042     PUSH32(esp, esi); /* 0x36085341: push esi */
   2043     PUSH32(esp, edi); /* 0x36085342: push edi */
   2044     edi = MEM32(0x3616FF70); /* 0x36085343: mov edi, dword ptr [0x3616ff70] */
   2045     PUSH32(esp, 0); /* 0x36085349: push 0 */
   2046     PUSH32(esp, 0x361B2CD8u); /* 0x3608534B: push 0x361b2cd8 */
   2047     esi = ecx; /* 0x36085350: mov esi, ecx */
   2048     PUSH32(esp, 0x361B2CC0u); /* 0x36085352: push 0x361b2cc0 */
   2049     eax = esi + 0x4; /* 0x36085357: lea eax, [esi + 4] */
   2050     PUSH32(esp, 0); /* 0x3608535A: push 0 */
   2051     PUSH32(esp, eax); /* 0x3608535C: push eax */
   2052     RECOMP_ICALL(edi); /* 0x3608535D: call edi */
   2053     RECOMP_FLAGS_IN();
   2054     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2055     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2056     esp = esp + 4; /* 0x3608535F: add esp, 4 */
   2057     _flag_k = FK_ADD;
   2058     PUSH32(esp, eax); /* 0x36085362: push eax */
   2059     RECOMP_ICALL(0x3615FD86u); /* 0x36085363: call 0x3615fd86 */ /* not lifted */
   2060     RECOMP_FLAGS_IN();
   2061     ebx = eax; /* 0x36085368: mov ebx, eax */
   2062     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2063     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2064     esp = esp + 0x14u; /* 0x3608536A: add esp, 0x14 */
   2065     _flag_k = FK_ADD;
   2066     /* test ebx, ebx */ /* 0x3608536D: test ebx, ebx */
   2067     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2068     _cf = 0;
   2069     _flag_k = FK_TEST;
   2070     if (TEST_Z(_flag_a, _flag_b)) goto L_36085402; /* 0x3608536F: je 0x36085402 */
   2071 L_36085375:
   2072     PUSH32(esp, 0); /* 0x36085375: push 0 */
   2073     PUSH32(esp, 0x361B7C18u); /* 0x36085377: push 0x361b7c18 */
   2074     PUSH32(esp, 0x361B2CC0u); /* 0x3608537C: push 0x361b2cc0 */
   2075     ecx = esi + 0x28; /* 0x36085381: lea ecx, [esi + 0x28] */
   2076     PUSH32(esp, 0); /* 0x36085384: push 0 */
   2077     PUSH32(esp, ecx); /* 0x36085386: push ecx */
   2078     RECOMP_ICALL(edi); /* 0x36085387: call edi */
   2079     RECOMP_FLAGS_IN();
   2080     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2081     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2082     esp = esp + 4; /* 0x36085389: add esp, 4 */
   2083     _flag_k = FK_ADD;
   2084     PUSH32(esp, eax); /* 0x3608538C: push eax */
   2085     RECOMP_ICALL(0x3615FD86u); /* 0x3608538D: call 0x3615fd86 */ /* not lifted */
   2086     RECOMP_FLAGS_IN();
   2087     edi = eax; /* 0x36085392: mov edi, eax */
   2088     eax = MEM32(esi + 0x20); /* 0x36085394: mov eax, dword ptr [esi + 0x20] */
   2089     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2090     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2091     esp = esp + 0x14u; /* 0x36085397: add esp, 0x14 */
   2092     _flag_k = FK_ADD;
   2093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0);
   2094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2095     eax = eax - 0; /* 0x3608539A: sub eax, 0 */
   2096     _flag_k = FK_CMP;
   2097     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_360853D0; /* 0x3608539D: je 0x360853d0 */
   2098 L_3608539F:
   2099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2100     eax = eax - 1; /* 0x3608539F: dec eax */
   2101     _flag_k = FK_DEC;
   2102     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36085402; /* 0x360853A0: jne 0x36085402 */
   2103 L_360853A2:
   2104     ecx = esi; /* 0x360853A2: mov ecx, esi */
   2105     RECOMP_ICALL(MEM32(0x3616FD2C)); /* 0x360853A4: call dword ptr [0x3616fd2c] */
   2106     RECOMP_FLAGS_IN();
   2107     /* cmp LO8(eax), 1 */ /* 0x360853AA: cmp al, 1 */
   2108     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2110     _flag_k = FK_NARROW(FK_CMP, 24);
   2111     if (CMP_NE(_flag_a, _flag_b)) goto L_36085402; /* 0x360853AC: jne 0x36085402 */
   2112 L_360853AE:
   2113     /* test edi, edi */ /* 0x360853AE: test edi, edi */
   2114     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2115     _cf = 0;
   2116     _flag_k = FK_TEST;
   2117     if (TEST_Z(_flag_a, _flag_b)) goto L_36085402; /* 0x360853B0: je 0x36085402 */
   2118 L_360853B2:
   2119     SET_LO8(eax, MEM8(esi + 0x68)); /* 0x360853B2: mov al, byte ptr [esi + 0x68] */
   2120     /* test LO8(eax), LO8(eax) */ /* 0x360853B5: test al, al */
   2121     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2122     _cf = 0;
   2123     _flag_k = FK_NARROW(FK_TEST, 24);
   2124     if (TEST_NZ(_flag_a, _flag_b)) goto L_360853F2; /* 0x360853B7: jne 0x360853f2 */
   2125 L_360853B9:
   2126     ecx = esi + 0x58; /* 0x360853B9: lea ecx, [esi + 0x58] */
   2127     PUSH32(esp, ecx); /* 0x360853BC: push ecx */
   2128     edx = esi + 0x4C; /* 0x360853BD: lea edx, [esi + 0x4c] */
   2129     PUSH32(esp, edx); /* 0x360853C0: push edx */
   2130     PUSH32(esp, ebx); /* 0x360853C1: push ebx */
   2131     ecx = edi; /* 0x360853C2: mov ecx, edi */
   2132     RECOMP_ICALL(0x36099E20u); /* 0x360853C4: call 0x36099e20 */ /* not lifted */
   2133     RECOMP_FLAGS_IN();
   2134     eax = MEM32(esi + 0x20); /* 0x360853C9: mov eax, dword ptr [esi + 0x20] */
   2135     edi = POP32_VAL(esp); /* 0x360853CC: pop edi */
   2136     esi = POP32_VAL(esp); /* 0x360853CD: pop esi */
   2137     ebx = POP32_VAL(esp); /* 0x360853CE: pop ebx */
   2138     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360853CF: ret  */
   2139 L_360853D0:
   2140     /* test edi, edi */ /* 0x360853D0: test edi, edi */
   2141     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2142     _cf = 0;
   2143     _flag_k = FK_TEST;
   2144     if (TEST_Z(_flag_a, _flag_b)) goto L_36085402; /* 0x360853D2: je 0x36085402 */
   2145 L_360853D4:
   2146     SET_LO8(eax, MEM8(esi + 0x68)); /* 0x360853D4: mov al, byte ptr [esi + 0x68] */
   2147     /* test LO8(eax), LO8(eax) */ /* 0x360853D7: test al, al */
   2148     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2149     _cf = 0;
   2150     _flag_k = FK_NARROW(FK_TEST, 24);
   2151     if (TEST_Z(_flag_a, _flag_b)) goto L_360853F2; /* 0x360853D9: je 0x360853f2 */
   2152 L_360853DB:
   2153     eax = esi + 0x58; /* 0x360853DB: lea eax, [esi + 0x58] */
   2154     PUSH32(esp, eax); /* 0x360853DE: push eax */
   2155     ecx = esi + 0x4C; /* 0x360853DF: lea ecx, [esi + 0x4c] */
   2156     PUSH32(esp, ecx); /* 0x360853E2: push ecx */
   2157     PUSH32(esp, ebx); /* 0x360853E3: push ebx */
   2158     ecx = edi; /* 0x360853E4: mov ecx, edi */
   2159     RECOMP_ICALL(0x36099E20u); /* 0x360853E6: call 0x36099e20 */ /* not lifted */
   2160     RECOMP_FLAGS_IN();
   2161     eax = MEM32(esi + 0x20); /* 0x360853EB: mov eax, dword ptr [esi + 0x20] */
   2162     edi = POP32_VAL(esp); /* 0x360853EE: pop edi */
   2163     esi = POP32_VAL(esp); /* 0x360853EF: pop esi */
   2164     ebx = POP32_VAL(esp); /* 0x360853F0: pop ebx */
   2165     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360853F1: ret  */
   2166 L_360853F2:
   2167     edx = esi + 0x58; /* 0x360853F2: lea edx, [esi + 0x58] */
   2168     PUSH32(esp, edx); /* 0x360853F5: push edx */
   2169     eax = esi + 0x4C; /* 0x360853F6: lea eax, [esi + 0x4c] */
   2170     PUSH32(esp, eax); /* 0x360853F9: push eax */
   2171     PUSH32(esp, ebx); /* 0x360853FA: push ebx */
   2172     ecx = edi; /* 0x360853FB: mov ecx, edi */
   2173     RECOMP_ICALL(0x36099D40u); /* 0x360853FD: call 0x36099d40 */ /* not lifted */
   2174     RECOMP_FLAGS_IN();
   2175 L_36085402:
   2176     eax = MEM32(esi + 0x20); /* 0x36085402: mov eax, dword ptr [esi + 0x20] */
   2177     edi = POP32_VAL(esp); /* 0x36085405: pop edi */
   2178     esi = POP32_VAL(esp); /* 0x36085406: pop esi */
   2179     ebx = POP32_VAL(esp); /* 0x36085407: pop ebx */
   2180     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085408: ret  */
   2181     RECOMP_REGS_OUT();
   2182 }
   2183 
   2184 void sub_36085410(void) {
   2185     int _fpu_cmp = 0;
   2186     uint32_t _cf = 0;
   2187     int _df = 1;
   2188     uint32_t _flag_k = FK_NONE;
   2189     uint32_t _flag_a = 0, _flag_b = 0;
   2190     uint32_t _itail_tgt = 0;
   2191     RECOMP_REGS_LOCALS
   2192     RECOMP_ENTER(0x36085410u);
   2193 
   2194 L_36085410:
   2195     PUSH32(esp, ebx); /* 0x36085410: push ebx */
   2196     ebx = MEM32(0x3616FF70); /* 0x36085411: mov ebx, dword ptr [0x3616ff70] */
   2197     PUSH32(esp, esi); /* 0x36085417: push esi */
   2198     PUSH32(esp, edi); /* 0x36085418: push edi */
   2199     PUSH32(esp, 0); /* 0x36085419: push 0 */
   2200     PUSH32(esp, 0x361B2CD8u); /* 0x3608541B: push 0x361b2cd8 */
   2201     esi = ecx; /* 0x36085420: mov esi, ecx */
   2202     PUSH32(esp, 0x361B2CC0u); /* 0x36085422: push 0x361b2cc0 */
   2203     eax = esi + 0x4; /* 0x36085427: lea eax, [esi + 4] */
   2204     PUSH32(esp, 0); /* 0x3608542A: push 0 */
   2205     PUSH32(esp, eax); /* 0x3608542C: push eax */
   2206     RECOMP_ICALL(ebx); /* 0x3608542D: call ebx */
   2207     RECOMP_FLAGS_IN();
   2208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2210     esp = esp + 4; /* 0x3608542F: add esp, 4 */
   2211     _flag_k = FK_ADD;
   2212     PUSH32(esp, eax); /* 0x36085432: push eax */
   2213     RECOMP_ICALL(0x3615FD86u); /* 0x36085433: call 0x3615fd86 */ /* not lifted */
   2214     RECOMP_FLAGS_IN();
   2215     edi = eax; /* 0x36085438: mov edi, eax */
   2216     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2217     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2218     esp = esp + 0x14u; /* 0x3608543A: add esp, 0x14 */
   2219     _flag_k = FK_ADD;
   2220     /* test edi, edi */ /* 0x3608543D: test edi, edi */
   2221     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2222     _cf = 0;
   2223     _flag_k = FK_TEST;
   2224     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608544A; /* 0x3608543F: jne 0x3608544a */
   2225 L_36085441:
   2226     edi = POP32_VAL(esp); /* 0x36085441: pop edi */
   2227     esi = POP32_VAL(esp); /* 0x36085442: pop esi */
   2228     eax = 2; /* 0x36085443: mov eax, 2 */
   2229     ebx = POP32_VAL(esp); /* 0x36085448: pop ebx */
   2230     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085449: ret  */
   2231 L_3608544A:
   2232     PUSH32(esp, 0); /* 0x3608544A: push 0 */
   2233     PUSH32(esp, 0x361B7C18u); /* 0x3608544C: push 0x361b7c18 */
   2234     PUSH32(esp, 0x361B2CC0u); /* 0x36085451: push 0x361b2cc0 */
   2235     ecx = esi + 0x28; /* 0x36085456: lea ecx, [esi + 0x28] */
   2236     PUSH32(esp, 0); /* 0x36085459: push 0 */
   2237     PUSH32(esp, ecx); /* 0x3608545B: push ecx */
   2238     RECOMP_ICALL(ebx); /* 0x3608545C: call ebx */
   2239     RECOMP_FLAGS_IN();
   2240     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2242     esp = esp + 4; /* 0x3608545E: add esp, 4 */
   2243     _flag_k = FK_ADD;
   2244     PUSH32(esp, eax); /* 0x36085461: push eax */
   2245     RECOMP_ICALL(0x3615FD86u); /* 0x36085462: call 0x3615fd86 */ /* not lifted */
   2246     RECOMP_FLAGS_IN();
   2247     ecx = eax; /* 0x36085467: mov ecx, eax */
   2248     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2249     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2250     esp = esp + 0x14u; /* 0x36085469: add esp, 0x14 */
   2251     _flag_k = FK_ADD;
   2252     /* test ecx, ecx */ /* 0x3608546C: test ecx, ecx */
   2253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2254     _cf = 0;
   2255     _flag_k = FK_TEST;
   2256     if (TEST_Z(_flag_a, _flag_b)) goto L_3608549C; /* 0x3608546E: je 0x3608549c */
   2257 L_36085470:
   2258     SET_LO8(eax, MEM8(esi + 0x68)); /* 0x36085470: mov al, byte ptr [esi + 0x68] */
   2259     /* test LO8(eax), LO8(eax) */ /* 0x36085473: test al, al */
   2260     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2261     _cf = 0;
   2262     _flag_k = FK_NARROW(FK_TEST, 24);
   2263     if (TEST_Z(_flag_a, _flag_b)) goto L_3608548E; /* 0x36085475: je 0x3608548e */
   2264 L_36085477:
   2265     edx = esi + 0x58; /* 0x36085477: lea edx, [esi + 0x58] */
   2266     PUSH32(esp, edx); /* 0x3608547A: push edx */
   2267     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x4Cu);
   2268     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2269     esi = esi + 0x4Cu; /* 0x3608547B: add esi, 0x4c */
   2270     _flag_k = FK_ADD;
   2271     PUSH32(esp, esi); /* 0x3608547E: push esi */
   2272     PUSH32(esp, edi); /* 0x3608547F: push edi */
   2273     RECOMP_ICALL(0x36099D40u); /* 0x36085480: call 0x36099d40 */ /* not lifted */
   2274     RECOMP_FLAGS_IN();
   2275     edi = POP32_VAL(esp); /* 0x36085485: pop edi */
   2276     esi = POP32_VAL(esp); /* 0x36085486: pop esi */
   2277     eax = 1; /* 0x36085487: mov eax, 1 */
   2278     ebx = POP32_VAL(esp); /* 0x3608548C: pop ebx */
   2279     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608548D: ret  */
   2280 L_3608548E:
   2281     eax = esi + 0x58; /* 0x3608548E: lea eax, [esi + 0x58] */
   2282     PUSH32(esp, eax); /* 0x36085491: push eax */
   2283     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x4Cu);
   2284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2285     esi = esi + 0x4Cu; /* 0x36085492: add esi, 0x4c */
   2286     _flag_k = FK_ADD;
   2287     PUSH32(esp, esi); /* 0x36085495: push esi */
   2288     PUSH32(esp, edi); /* 0x36085496: push edi */
   2289     RECOMP_ICALL(0x36099E20u); /* 0x36085497: call 0x36099e20 */ /* not lifted */
   2290     RECOMP_FLAGS_IN();
   2291 L_3608549C:
   2292     edi = POP32_VAL(esp); /* 0x3608549C: pop edi */
   2293     esi = POP32_VAL(esp); /* 0x3608549D: pop esi */
   2294     eax = 1; /* 0x3608549E: mov eax, 1 */
   2295     ebx = POP32_VAL(esp); /* 0x360854A3: pop ebx */
   2296     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360854A4: ret  */
   2297     RECOMP_REGS_OUT();
   2298 }
   2299 
   2300 void sub_360854B0(void) {
   2301     int _fpu_cmp = 0;
   2302     uint32_t _cf = 0;
   2303     int _df = 1;
   2304     uint32_t _flag_k = FK_NONE;
   2305     uint32_t _flag_a = 0, _flag_b = 0;
   2306     uint32_t _itail_tgt = 0;
   2307     RECOMP_REGS_LOCALS
   2308     RECOMP_ENTER(0x360854B0u);
   2309 
   2310 L_360854B0:
   2311     PUSH32(esp, ebp); /* 0x360854B0: push ebp */
   2312     ebp = esp; /* 0x360854B1: mov ebp, esp */
   2313     PUSH32(esp, ebx); /* 0x360854B3: push ebx */
   2314     ebx = MEM32(ebp + 0x8); /* 0x360854B4: mov ebx, dword ptr [ebp + 8] */
   2315     PUSH32(esp, esi); /* 0x360854B7: push esi */
   2316     PUSH32(esp, edi); /* 0x360854B8: push edi */
   2317     esi = ecx; /* 0x360854B9: mov esi, ecx */
   2318     PUSH32(esp, ebx); /* 0x360854BB: push ebx */
   2319     RECOMP_ICALL(MEM32(0x3616FD30)); /* 0x360854BC: call dword ptr [0x3616fd30] */
   2320     RECOMP_FLAGS_IN();
   2321     eax = esi + 0x28; /* 0x360854C2: lea eax, [esi + 0x28] */
   2322     PUSH32(esp, eax); /* 0x360854C5: push eax */
   2323     PUSH32(esp, ebx); /* 0x360854C6: push ebx */
   2324     RECOMP_ICALL(0x3615B840u); /* 0x360854C7: call 0x3615b840 */ /* not lifted */
   2325     RECOMP_FLAGS_IN();
   2326     SET_LO8(eax, MEM8(esi + 0x68)); /* 0x360854CC: mov al, byte ptr [esi + 0x68] */
   2327     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2328     ecx = 0; /* 0x360854CF: xor ecx, ecx */
   2329     _cf = 0;
   2330     _flag_k = FK_TEST;
   2331     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2333     esp = esp + 8; /* 0x360854D1: add esp, 8 */
   2334     _flag_k = FK_ADD;
   2335     /* test LO8(eax), LO8(eax) */ /* 0x360854D4: test al, al */
   2336     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2337     _cf = 0;
   2338     _flag_k = FK_NARROW(FK_TEST, 24);
   2339     SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360854D6: setne cl */
   2340     PUSH32(esp, ecx); /* 0x360854D9: push ecx */
   2341     ecx = ebx; /* 0x360854DA: mov ecx, ebx */
   2342     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x360854DC: call dword ptr [0x3616faec] */
   2343     RECOMP_FLAGS_IN();
   2344     edx = MEM32(esi + 0x38); /* 0x360854E2: mov edx, dword ptr [esi + 0x38] */
   2345     eax = MEM32(esi + 0x34); /* 0x360854E5: mov eax, dword ptr [esi + 0x34] */
   2346     ecx = MEM32(esi + 0x30); /* 0x360854E8: mov ecx, dword ptr [esi + 0x30] */
   2347     edi = MEM32(0x3616FAD4); /* 0x360854EB: mov edi, dword ptr [0x3616fad4] */
   2348     PUSH32(esp, edx); /* 0x360854F1: push edx */
   2349     PUSH32(esp, eax); /* 0x360854F2: push eax */
   2350     PUSH32(esp, ecx); /* 0x360854F3: push ecx */
   2351     ecx = ebx; /* 0x360854F4: mov ecx, ebx */
   2352     RECOMP_ICALL(edi); /* 0x360854F6: call edi */
   2353     RECOMP_FLAGS_IN();
   2354     ecx = eax; /* 0x360854F8: mov ecx, eax */
   2355     RECOMP_ICALL(edi); /* 0x360854FA: call edi */
   2356     RECOMP_FLAGS_IN();
   2357     ecx = eax; /* 0x360854FC: mov ecx, eax */
   2358     RECOMP_ICALL(edi); /* 0x360854FE: call edi */
   2359     RECOMP_FLAGS_IN();
   2360     edx = MEM32(esi + 0x48); /* 0x36085500: mov edx, dword ptr [esi + 0x48] */
   2361     eax = MEM32(esi + 0x44); /* 0x36085503: mov eax, dword ptr [esi + 0x44] */
   2362     ecx = MEM32(esi + 0x40); /* 0x36085506: mov ecx, dword ptr [esi + 0x40] */
   2363     PUSH32(esp, edx); /* 0x36085509: push edx */
   2364     edx = MEM32(esi + 0x3C); /* 0x3608550A: mov edx, dword ptr [esi + 0x3c] */
   2365     PUSH32(esp, eax); /* 0x3608550D: push eax */
   2366     PUSH32(esp, ecx); /* 0x3608550E: push ecx */
   2367     PUSH32(esp, edx); /* 0x3608550F: push edx */
   2368     ecx = ebx; /* 0x36085510: mov ecx, ebx */
   2369     RECOMP_ICALL(edi); /* 0x36085512: call edi */
   2370     RECOMP_FLAGS_IN();
   2371     ecx = eax; /* 0x36085514: mov ecx, eax */
   2372     RECOMP_ICALL(edi); /* 0x36085516: call edi */
   2373     RECOMP_FLAGS_IN();
   2374     ecx = eax; /* 0x36085518: mov ecx, eax */
   2375     RECOMP_ICALL(edi); /* 0x3608551A: call edi */
   2376     RECOMP_FLAGS_IN();
   2377     ecx = eax; /* 0x3608551C: mov ecx, eax */
   2378     RECOMP_ICALL(edi); /* 0x3608551E: call edi */
   2379     RECOMP_FLAGS_IN();
   2380     eax = MEM32(esi + 0x48); /* 0x36085520: mov eax, dword ptr [esi + 0x48] */
   2381     ecx = MEM32(esi + 0x44); /* 0x36085523: mov ecx, dword ptr [esi + 0x44] */
   2382     edx = MEM32(esi + 0x40); /* 0x36085526: mov edx, dword ptr [esi + 0x40] */
   2383     PUSH32(esp, eax); /* 0x36085529: push eax */
   2384     eax = MEM32(esi + 0x3C); /* 0x3608552A: mov eax, dword ptr [esi + 0x3c] */
   2385     PUSH32(esp, ecx); /* 0x3608552D: push ecx */
   2386     PUSH32(esp, edx); /* 0x3608552E: push edx */
   2387     PUSH32(esp, eax); /* 0x3608552F: push eax */
   2388     ecx = ebx; /* 0x36085530: mov ecx, ebx */
   2389     RECOMP_ICALL(edi); /* 0x36085532: call edi */
   2390     RECOMP_FLAGS_IN();
   2391     ecx = eax; /* 0x36085534: mov ecx, eax */
   2392     RECOMP_ICALL(edi); /* 0x36085536: call edi */
   2393     RECOMP_FLAGS_IN();
   2394     ecx = eax; /* 0x36085538: mov ecx, eax */
   2395     RECOMP_ICALL(edi); /* 0x3608553A: call edi */
   2396     RECOMP_FLAGS_IN();
   2397     ecx = eax; /* 0x3608553C: mov ecx, eax */
   2398     RECOMP_ICALL(edi); /* 0x3608553E: call edi */
   2399     RECOMP_FLAGS_IN();
   2400     ecx = MEM32(esi + 0x54); /* 0x36085540: mov ecx, dword ptr [esi + 0x54] */
   2401     edx = MEM32(esi + 0x50); /* 0x36085543: mov edx, dword ptr [esi + 0x50] */
   2402     eax = MEM32(esi + 0x4C); /* 0x36085546: mov eax, dword ptr [esi + 0x4c] */
   2403     PUSH32(esp, ecx); /* 0x36085549: push ecx */
   2404     PUSH32(esp, edx); /* 0x3608554A: push edx */
   2405     PUSH32(esp, eax); /* 0x3608554B: push eax */
   2406     ecx = ebx; /* 0x3608554C: mov ecx, ebx */
   2407     RECOMP_ICALL(edi); /* 0x3608554E: call edi */
   2408     RECOMP_FLAGS_IN();
   2409     ecx = eax; /* 0x36085550: mov ecx, eax */
   2410     RECOMP_ICALL(edi); /* 0x36085552: call edi */
   2411     RECOMP_FLAGS_IN();
   2412     ecx = eax; /* 0x36085554: mov ecx, eax */
   2413     RECOMP_ICALL(edi); /* 0x36085556: call edi */
   2414     RECOMP_FLAGS_IN();
   2415     ecx = MEM32(esi + 0x64); /* 0x36085558: mov ecx, dword ptr [esi + 0x64] */
   2416     edx = MEM32(esi + 0x60); /* 0x3608555B: mov edx, dword ptr [esi + 0x60] */
   2417     eax = MEM32(esi + 0x5C); /* 0x3608555E: mov eax, dword ptr [esi + 0x5c] */
   2418     PUSH32(esp, ecx); /* 0x36085561: push ecx */
   2419     PUSH32(esp, edx); /* 0x36085562: push edx */
   2420     ecx = MEM32(esi + 0x58); /* 0x36085563: mov ecx, dword ptr [esi + 0x58] */
   2421     PUSH32(esp, eax); /* 0x36085566: push eax */
   2422     PUSH32(esp, ecx); /* 0x36085567: push ecx */
   2423     ecx = ebx; /* 0x36085568: mov ecx, ebx */
   2424     RECOMP_ICALL(edi); /* 0x3608556A: call edi */
   2425     RECOMP_FLAGS_IN();
   2426     ecx = eax; /* 0x3608556C: mov ecx, eax */
   2427     RECOMP_ICALL(edi); /* 0x3608556E: call edi */
   2428     RECOMP_FLAGS_IN();
   2429     ecx = eax; /* 0x36085570: mov ecx, eax */
   2430     RECOMP_ICALL(edi); /* 0x36085572: call edi */
   2431     RECOMP_FLAGS_IN();
   2432     ecx = eax; /* 0x36085574: mov ecx, eax */
   2433     RECOMP_ICALL(edi); /* 0x36085576: call edi */
   2434     RECOMP_FLAGS_IN();
   2435     edi = POP32_VAL(esp); /* 0x36085578: pop edi */
   2436     esi = POP32_VAL(esp); /* 0x36085579: pop esi */
   2437     ebx = POP32_VAL(esp); /* 0x3608557A: pop ebx */
   2438     ebp = POP32_VAL(esp); /* 0x3608557B: pop ebp */
   2439     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608557C: ret 4 */
   2440     RECOMP_REGS_OUT();
   2441 }
   2442 
   2443 void sub_36085580(void) {
   2444     int _fpu_cmp = 0;
   2445     uint32_t _cf = 0;
   2446     int _df = 1;
   2447     uint32_t _flag_k = FK_NONE;
   2448     uint32_t _flag_a = 0, _flag_b = 0;
   2449     uint32_t _itail_tgt = 0;
   2450     RECOMP_REGS_LOCALS
   2451     RECOMP_ENTER(0x36085580u);
   2452 
   2453 L_36085580:
   2454     PUSH32(esp, ebp); /* 0x36085580: push ebp */
   2455     ebp = esp; /* 0x36085581: mov ebp, esp */
   2456     PUSH32(esp, ecx); /* 0x36085583: push ecx */
   2457     PUSH32(esp, ebx); /* 0x36085584: push ebx */
   2458     ebx = MEM32(ebp + 0x8); /* 0x36085585: mov ebx, dword ptr [ebp + 8] */
   2459     PUSH32(esp, edi); /* 0x36085588: push edi */
   2460     edi = ecx; /* 0x36085589: mov edi, ecx */
   2461     PUSH32(esp, ebx); /* 0x3608558B: push ebx */
   2462     MEM32(ebp + (-0x4)) = edi; /* 0x3608558C: mov dword ptr [ebp - 4], edi */
   2463     RECOMP_ICALL(MEM32(0x3616FD34)); /* 0x3608558F: call dword ptr [0x3616fd34] */
   2464     RECOMP_FLAGS_IN();
   2465     /* test eax, eax */ /* 0x36085595: test eax, eax */
   2466     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2467     _cf = 0;
   2468     _flag_k = FK_TEST;
   2469     if (TEST_NZ(_flag_a, _flag_b)) goto L_36085666; /* 0x36085597: jne 0x36085666 */
   2470 L_3608559D:
   2471     PUSH32(esp, esi); /* 0x3608559D: push esi */
   2472     eax = edi + 0x28; /* 0x3608559E: lea eax, [edi + 0x28] */
   2473     PUSH32(esp, eax); /* 0x360855A1: push eax */
   2474     PUSH32(esp, ebx); /* 0x360855A2: push ebx */
   2475     RECOMP_ICALL(0x3615B870u); /* 0x360855A3: call 0x3615b870 */ /* not lifted */
   2476     RECOMP_FLAGS_IN();
   2477     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2478     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2479     esp = esp + 8; /* 0x360855A8: add esp, 8 */
   2480     _flag_k = FK_ADD;
   2481     ecx = ebp + 0x8; /* 0x360855AB: lea ecx, [ebp + 8] */
   2482     PUSH32(esp, ecx); /* 0x360855AE: push ecx */
   2483     ecx = ebx; /* 0x360855AF: mov ecx, ebx */
   2484     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360855B1: call dword ptr [0x3616fa8c] */
   2485     RECOMP_FLAGS_IN();
   2486     esi = MEM32(ebp + 0x8); /* 0x360855B7: mov esi, dword ptr [ebp + 8] */
   2487     eax = edi + 0x30; /* 0x360855BA: lea eax, [edi + 0x30] */
   2488     /* test esi, esi */ /* 0x360855BD: test esi, esi */
   2489     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2490     _cf = 0;
   2491     _flag_k = FK_TEST;
   2492     esi = MEM32(0x3616FAD0); /* 0x360855BF: mov esi, dword ptr [0x3616fad0] */
   2493     SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360855C5: setne dl */
   2494     ecx = eax + 0x8; /* 0x360855C8: lea ecx, [eax + 8] */
   2495     PUSH32(esp, ecx); /* 0x360855CB: push ecx */
   2496     MEM8(edi + 0x68) = (uint8_t)(LO8(edx)); /* 0x360855CC: mov byte ptr [edi + 0x68], dl */
   2497     edx = eax + 0x4; /* 0x360855CF: lea edx, [eax + 4] */
   2498     PUSH32(esp, edx); /* 0x360855D2: push edx */
   2499     PUSH32(esp, eax); /* 0x360855D3: push eax */
   2500     ecx = ebx; /* 0x360855D4: mov ecx, ebx */
   2501     RECOMP_ICALL(esi); /* 0x360855D6: call esi */
   2502     RECOMP_FLAGS_IN();
   2503     ecx = eax; /* 0x360855D8: mov ecx, eax */
   2504     RECOMP_ICALL(esi); /* 0x360855DA: call esi */
   2505     RECOMP_FLAGS_IN();
   2506     ecx = eax; /* 0x360855DC: mov ecx, eax */
   2507     RECOMP_ICALL(esi); /* 0x360855DE: call esi */
   2508     RECOMP_FLAGS_IN();
   2509     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3Cu);
   2510     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2511     edi = edi + 0x3Cu; /* 0x360855E0: add edi, 0x3c */
   2512     _flag_k = FK_ADD;
   2513     eax = edi + 0xC; /* 0x360855E3: lea eax, [edi + 0xc] */
   2514     PUSH32(esp, eax); /* 0x360855E6: push eax */
   2515     ecx = edi + 0x8; /* 0x360855E7: lea ecx, [edi + 8] */
   2516     PUSH32(esp, ecx); /* 0x360855EA: push ecx */
   2517     edx = edi + 0x4; /* 0x360855EB: lea edx, [edi + 4] */
   2518     PUSH32(esp, edx); /* 0x360855EE: push edx */
   2519     PUSH32(esp, edi); /* 0x360855EF: push edi */
   2520     ecx = ebx; /* 0x360855F0: mov ecx, ebx */
   2521     RECOMP_ICALL(esi); /* 0x360855F2: call esi */
   2522     RECOMP_FLAGS_IN();
   2523     ecx = eax; /* 0x360855F4: mov ecx, eax */
   2524     RECOMP_ICALL(esi); /* 0x360855F6: call esi */
   2525     RECOMP_FLAGS_IN();
   2526     ecx = eax; /* 0x360855F8: mov ecx, eax */
   2527     RECOMP_ICALL(esi); /* 0x360855FA: call esi */
   2528     RECOMP_FLAGS_IN();
   2529     ecx = eax; /* 0x360855FC: mov ecx, eax */
   2530     RECOMP_ICALL(esi); /* 0x360855FE: call esi */
   2531     RECOMP_FLAGS_IN();
   2532     eax = edi + 0xC; /* 0x36085600: lea eax, [edi + 0xc] */
   2533     PUSH32(esp, eax); /* 0x36085603: push eax */
   2534     ecx = edi + 0x8; /* 0x36085604: lea ecx, [edi + 8] */
   2535     PUSH32(esp, ecx); /* 0x36085607: push ecx */
   2536     edx = edi + 0x4; /* 0x36085608: lea edx, [edi + 4] */
   2537     PUSH32(esp, edx); /* 0x3608560B: push edx */
   2538     PUSH32(esp, edi); /* 0x3608560C: push edi */
   2539     ecx = ebx; /* 0x3608560D: mov ecx, ebx */
   2540     RECOMP_ICALL(esi); /* 0x3608560F: call esi */
   2541     RECOMP_FLAGS_IN();
   2542     ecx = eax; /* 0x36085611: mov ecx, eax */
   2543     RECOMP_ICALL(esi); /* 0x36085613: call esi */
   2544     RECOMP_FLAGS_IN();
   2545     ecx = eax; /* 0x36085615: mov ecx, eax */
   2546     RECOMP_ICALL(esi); /* 0x36085617: call esi */
   2547     RECOMP_FLAGS_IN();
   2548     ecx = eax; /* 0x36085619: mov ecx, eax */
   2549     RECOMP_ICALL(esi); /* 0x3608561B: call esi */
   2550     RECOMP_FLAGS_IN();
   2551     edi = MEM32(ebp + (-0x4)); /* 0x3608561D: mov edi, dword ptr [ebp - 4] */
   2552     eax = edi + 0x4C; /* 0x36085620: lea eax, [edi + 0x4c] */
   2553     ecx = eax + 0x8; /* 0x36085623: lea ecx, [eax + 8] */
   2554     PUSH32(esp, ecx); /* 0x36085626: push ecx */
   2555     edx = eax + 0x4; /* 0x36085627: lea edx, [eax + 4] */
   2556     PUSH32(esp, edx); /* 0x3608562A: push edx */
   2557     PUSH32(esp, eax); /* 0x3608562B: push eax */
   2558     ecx = ebx; /* 0x3608562C: mov ecx, ebx */
   2559     RECOMP_ICALL(esi); /* 0x3608562E: call esi */
   2560     RECOMP_FLAGS_IN();
   2561     ecx = eax; /* 0x36085630: mov ecx, eax */
   2562     RECOMP_ICALL(esi); /* 0x36085632: call esi */
   2563     RECOMP_FLAGS_IN();
   2564     ecx = eax; /* 0x36085634: mov ecx, eax */
   2565     RECOMP_ICALL(esi); /* 0x36085636: call esi */
   2566     RECOMP_FLAGS_IN();
   2567     eax = edi + 0x58; /* 0x36085638: lea eax, [edi + 0x58] */
   2568     ecx = eax + 0xC; /* 0x3608563B: lea ecx, [eax + 0xc] */
   2569     PUSH32(esp, ecx); /* 0x3608563E: push ecx */
   2570     edx = eax + 0x8; /* 0x3608563F: lea edx, [eax + 8] */
   2571     PUSH32(esp, edx); /* 0x36085642: push edx */
   2572     ecx = eax + 0x4; /* 0x36085643: lea ecx, [eax + 4] */
   2573     PUSH32(esp, ecx); /* 0x36085646: push ecx */
   2574     PUSH32(esp, eax); /* 0x36085647: push eax */
   2575     ecx = ebx; /* 0x36085648: mov ecx, ebx */
   2576     RECOMP_ICALL(esi); /* 0x3608564A: call esi */
   2577     RECOMP_FLAGS_IN();
   2578     ecx = eax; /* 0x3608564C: mov ecx, eax */
   2579     RECOMP_ICALL(esi); /* 0x3608564E: call esi */
   2580     RECOMP_FLAGS_IN();
   2581     ecx = eax; /* 0x36085650: mov ecx, eax */
   2582     RECOMP_ICALL(esi); /* 0x36085652: call esi */
   2583     RECOMP_FLAGS_IN();
   2584     ecx = eax; /* 0x36085654: mov ecx, eax */
   2585     RECOMP_ICALL(esi); /* 0x36085656: call esi */
   2586     RECOMP_FLAGS_IN();
   2587     ecx = ebx; /* 0x36085658: mov ecx, ebx */
   2588     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3608565A: call dword ptr [0x3616fadc] */
   2589     RECOMP_FLAGS_IN();
   2590     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2591     _cf = (eax) != 0;
   2592     eax = (uint32_t)(-(int32_t)eax); /* 0x36085660: neg eax */
   2593     _flag_k = FK_CMP;
   2594     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36085662: sbb eax, eax */
   2595       eax = _sc ? 0xFFFFFFFFu : 0;
   2596       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2597       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2598     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2599     eax = eax + 1; /* 0x36085664: inc eax */
   2600     _flag_k = FK_INC;
   2601     esi = POP32_VAL(esp); /* 0x36085665: pop esi */
   2602 L_36085666:
   2603     edi = POP32_VAL(esp); /* 0x36085666: pop edi */
   2604     ebx = POP32_VAL(esp); /* 0x36085667: pop ebx */
   2605     esp = ebp; /* 0x36085668: mov esp, ebp */
   2606     ebp = POP32_VAL(esp); /* 0x3608566A: pop ebp */
   2607     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608566B: ret 4 */
   2608     RECOMP_REGS_OUT();
   2609 }
   2610 
   2611 void sub_36085670(void) {
   2612     int _fpu_cmp = 0;
   2613     uint32_t _cf = 0;
   2614     int _df = 1;
   2615     uint32_t _flag_k = FK_NONE;
   2616     uint32_t _flag_a = 0, _flag_b = 0;
   2617     uint32_t _itail_tgt = 0;
   2618     RECOMP_REGS_LOCALS
   2619     RECOMP_ENTER(0x36085670u);
   2620 
   2621 L_36085670:
   2622     PUSH32(esp, ebp); /* 0x36085670: push ebp */
   2623     ebp = esp; /* 0x36085671: mov ebp, esp */
   2624     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085673: push -1 */
   2625     PUSH32(esp, 0x36165AD8u); /* 0x36085675: push 0x36165ad8 */
   2626     eax = MEM32(FS_BASE + (0)); /* 0x3608567A: mov eax, dword ptr fs:[0] */
   2627     PUSH32(esp, eax); /* 0x36085680: push eax */
   2628     MEM32(FS_BASE + (0)) = esp; /* 0x36085681: mov dword ptr fs:[0], esp */
   2629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2631     esp = esp - 0x10u; /* 0x36085688: sub esp, 0x10 */
   2632     _flag_k = FK_CMP;
   2633     eax = MEM32(ebp + 0xC); /* 0x3608568B: mov eax, dword ptr [ebp + 0xc] */
   2634     PUSH32(esp, esi); /* 0x3608568E: push esi */
   2635     PUSH32(esp, edi); /* 0x3608568F: push edi */
   2636     esi = ecx; /* 0x36085690: mov esi, ecx */
   2637     ecx = MEM32(ebp + 0x8); /* 0x36085692: mov ecx, dword ptr [ebp + 8] */
   2638     PUSH32(esp, eax); /* 0x36085695: push eax */
   2639     PUSH32(esp, ecx); /* 0x36085696: push ecx */
   2640     ecx = esi; /* 0x36085697: mov ecx, esi */
   2641     MEM32(ebp + (-0x10)) = esi; /* 0x36085699: mov dword ptr [ebp - 0x10], esi */
   2642     RECOMP_ICALL(0x36086B70u); /* 0x3608569C: call 0x36086b70 */ /* not lifted */
   2643     RECOMP_FLAGS_IN();
   2644     MEM32(esi + 0xC) = 0xFFFFFFFFu; /* 0x360856A1: mov dword ptr [esi + 0xc], 0xffffffff */
   2645     MEM32(esi + 0x24) = 0; /* 0x360856A8: mov dword ptr [esi + 0x24], 0 */
   2646     MEM32(esi + 0x28) = 0; /* 0x360856AF: mov dword ptr [esi + 0x28], 0 */
   2647     edx = MEM32(esi + 0x8); /* 0x360856B6: mov edx, dword ptr [esi + 8] */
   2648     edi = esi + 0x24; /* 0x360856B9: lea edi, [esi + 0x24] */
   2649     MEM32(esi) = 0x36171B70u; /* 0x360856BC: mov dword ptr [esi], 0x36171b70 */
   2650     eax = MEM32(edx + 0x178); /* 0x360856C2: mov eax, dword ptr [edx + 0x178] */
   2651     MEM8(eax + 0x5) = (uint8_t)(0); /* 0x360856C8: mov byte ptr [eax + 5], 0 */
   2652     ecx = MEM32(esi + 0x8); /* 0x360856CC: mov ecx, dword ptr [esi + 8] */
   2653     ecx = MEM32(ecx + 0x158); /* 0x360856CF: mov ecx, dword ptr [ecx + 0x158] */
   2654     MEM32(ebp + (-0x4)) = 0; /* 0x360856D5: mov dword ptr [ebp - 4], 0 */
   2655     RECOMP_ICALL(0x36066840u); /* 0x360856DC: call 0x36066840 */ /* not lifted */
   2656     RECOMP_FLAGS_IN();
   2657     edx = MEM32(esi + 0x8); /* 0x360856E1: mov edx, dword ptr [esi + 8] */
   2658     MEM32(esi + 0x18) = eax; /* 0x360856E4: mov dword ptr [esi + 0x18], eax */
   2659     ecx = MEM32(edx + 0x158); /* 0x360856E7: mov ecx, dword ptr [edx + 0x158] */
   2660     RECOMP_ICALL(0x36066B00u); /* 0x360856ED: call 0x36066b00 */ /* not lifted */
   2661     RECOMP_FLAGS_IN();
   2662     ecx = MEM32(eax); /* 0x360856F2: mov ecx, dword ptr [eax] */
   2663     MEM32(edi) = ecx; /* 0x360856F4: mov dword ptr [edi], ecx */
   2664     edx = MEM32(eax + 0x4); /* 0x360856F6: mov edx, dword ptr [eax + 4] */
   2665     eax = MEM32(esi + 0x8); /* 0x360856F9: mov eax, dword ptr [esi + 8] */
   2666     MEM32(edi + 0x4) = edx; /* 0x360856FC: mov dword ptr [edi + 4], edx */
   2667     ecx = MEM32(eax + 0x158); /* 0x360856FF: mov ecx, dword ptr [eax + 0x158] */
   2668     edx = MEM32(ecx + 0x4); /* 0x36085705: mov edx, dword ptr [ecx + 4] */
   2669     MEM32(esi + 0x10) = edx; /* 0x36085708: mov dword ptr [esi + 0x10], edx */
   2670     eax = MEM32(eax + 0x158); /* 0x3608570B: mov eax, dword ptr [eax + 0x158] */
   2671     eax = MEM32(eax); /* 0x36085711: mov eax, dword ptr [eax] */
   2672     ecx = eax + 0xE4; /* 0x36085713: lea ecx, [eax + 0xe4] */
   2673     eax = MEM32(ecx); /* 0x36085719: mov eax, dword ptr [ecx] */
   2674     PUSH32(esp, 0x80u); /* 0x3608571B: push 0x80 */
   2675     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x36085720: call dword ptr [eax + 0x1c] */
   2676     RECOMP_FLAGS_IN();
   2677     /* test LO8(eax), LO8(eax) */ /* 0x36085723: test al, al */
   2678     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2679     _cf = 0;
   2680     _flag_k = FK_NARROW(FK_TEST, 24);
   2681     if (TEST_Z(_flag_a, _flag_b)) goto L_360858B6; /* 0x36085725: je 0x360858b6 */
   2682 L_3608572B:
   2683     PUSH32(esp, edi); /* 0x3608572B: push edi */
   2684     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3608572C: call dword ptr [0x3616ff70] */
   2685     RECOMP_FLAGS_IN();
   2686     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2688     esp = esp + 4; /* 0x36085732: add esp, 4 */
   2689     _flag_k = FK_ADD;
   2690     /* test eax, eax */ /* 0x36085735: test eax, eax */
   2691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2692     _cf = 0;
   2693     _flag_k = FK_TEST;
   2694     MEM32(ebp + 0x8) = eax; /* 0x36085737: mov dword ptr [ebp + 8], eax */
   2695     if (TEST_Z(_flag_a, _flag_b)) goto L_360858A8; /* 0x3608573A: je 0x360858a8 */
   2696 L_36085740:
   2697     ecx = MEM32(esi + 0x10); /* 0x36085740: mov ecx, dword ptr [esi + 0x10] */
   2698     /* test ecx, ecx */ /* 0x36085743: test ecx, ecx */
   2699     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2700     _cf = 0;
   2701     _flag_k = FK_TEST;
   2702     ecx = MEM32(esi + 0x8); /* 0x36085745: mov ecx, dword ptr [esi + 8] */
   2703     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608584B; /* 0x36085748: jne 0x3608584b */
   2704 L_3608574E:
   2705     edi = MEM32(ecx + 0x174); /* 0x3608574E: mov edi, dword ptr [ecx + 0x174] */
   2706     ecx = MEM32(esi + 0x18); /* 0x36085754: mov ecx, dword ptr [esi + 0x18] */
   2707     edx = MEM32(edi); /* 0x36085757: mov edx, dword ptr [edi] */
   2708     eax = MEM32(ecx); /* 0x36085759: mov eax, dword ptr [ecx] */
   2709     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608575B: push -1 */
   2710     PUSH32(esp, 0); /* 0x3608575D: push 0 */
   2711     PUSH32(esp, 0); /* 0x3608575F: push 0 */
   2712     PUSH32(esp, 1); /* 0x36085761: push 1 */
   2713     PUSH32(esp, 0); /* 0x36085763: push 0 */
   2714     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085765: push -1 */
   2715     PUSH32(esp, 0); /* 0x36085767: push 0 */
   2716     PUSH32(esp, 0); /* 0x36085769: push 0 */
   2717     PUSH32(esp, 0x3F800000u); /* 0x3608576B: push 0x3f800000 */
   2718     PUSH32(esp, 2); /* 0x36085770: push 2 */
   2719     PUSH32(esp, 0x178u); /* 0x36085772: push 0x178 */
   2720     MEM32(ebp + 0xC) = edx; /* 0x36085777: mov dword ptr [ebp + 0xc], edx */
   2721     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608577A: call dword ptr [eax + 4] */
   2722     RECOMP_FLAGS_IN();
   2723     edx = MEM32(ebp + 0xC); /* 0x3608577D: mov edx, dword ptr [ebp + 0xc] */
   2724     PUSH32(esp, eax); /* 0x36085780: push eax */
   2725     ecx = edi; /* 0x36085781: mov ecx, edi */
   2726     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36085783: call dword ptr [edx + 0x14] */
   2727     RECOMP_FLAGS_IN();
   2728     MEM32(esi + 0xC) = eax; /* 0x36085786: mov dword ptr [esi + 0xc], eax */
   2729     RECOMP_ICALL(0x360F7B00u); /* 0x36085789: call 0x360f7b00 */ /* not lifted */
   2730     RECOMP_FLAGS_IN();
   2731     MEM32(eax + 0x54) = 4; /* 0x3608578E: mov dword ptr [eax + 0x54], 4 */
   2732     eax = MEM32(ebp + 0x8); /* 0x36085795: mov eax, dword ptr [ebp + 8] */
   2733     edx = MEM32(esi + 0x8); /* 0x36085798: mov edx, dword ptr [esi + 8] */
   2734     ecx = MEM32(esi + 0x18); /* 0x3608579B: mov ecx, dword ptr [esi + 0x18] */
   2735     PUSH32(esp, 0); /* 0x3608579E: push 0 */
   2736     PUSH32(esp, eax); /* 0x360857A0: push eax */
   2737     eax = MEM32(ecx); /* 0x360857A1: mov eax, dword ptr [ecx] */
   2738     PUSH32(esp, edx); /* 0x360857A3: push edx */
   2739     PUSH32(esp, 2); /* 0x360857A4: push 2 */
   2740     PUSH32(esp, 0x1ACu); /* 0x360857A6: push 0x1ac */
   2741     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360857AB: call dword ptr [eax + 4] */
   2742     RECOMP_FLAGS_IN();
   2743     PUSH32(esp, eax); /* 0x360857AE: push eax */
   2744     RECOMP_ICALL(0x360F7B00u); /* 0x360857AF: call 0x360f7b00 */ /* not lifted */
   2745     RECOMP_FLAGS_IN();
   2746     ecx = eax; /* 0x360857B4: mov ecx, eax */
   2747     RECOMP_ICALL(0x360F84E0u); /* 0x360857B6: call 0x360f84e0 */ /* not lifted */
   2748     RECOMP_FLAGS_IN();
   2749     PUSH32(esp, 0x45BB8000u); /* 0x360857BB: push 0x45bb8000 */
   2750     PUSH32(esp, eax); /* 0x360857C0: push eax */
   2751     MEM32(esi + 0x14) = eax; /* 0x360857C1: mov dword ptr [esi + 0x14], eax */
   2752     RECOMP_ICALL(0x360F7B00u); /* 0x360857C4: call 0x360f7b00 */ /* not lifted */
   2753     RECOMP_FLAGS_IN();
   2754     ecx = eax; /* 0x360857C9: mov ecx, eax */
   2755     RECOMP_ICALL(0x360FB600u); /* 0x360857CB: call 0x360fb600 */ /* not lifted */
   2756     RECOMP_FLAGS_IN();
   2757     edi = MEM32(esi + 0x18); /* 0x360857D0: mov edi, dword ptr [esi + 0x18] */
   2758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2760     esp = esp - 0xCu; /* 0x360857D3: sub esp, 0xc */
   2761     _flag_k = FK_CMP;
   2762     ecx = esp; /* 0x360857D6: mov ecx, esp */
   2763     PUSH32(esp, 1); /* 0x360857D8: push 1 */
   2764     PUSH32(esp, 0x64u); /* 0x360857DA: push 0x64 */
   2765     PUSH32(esp, 0); /* 0x360857DC: push 0 */
   2766     MEM32(ebp + (-0x1C)) = 0; /* 0x360857DE: mov dword ptr [ebp - 0x1c], 0 */
   2767     edx = MEM32(ebp + (-0x1C)); /* 0x360857E5: mov edx, dword ptr [ebp - 0x1c] */
   2768     MEM32(ecx) = edx; /* 0x360857E8: mov dword ptr [ecx], edx */
   2769     MEM32(ebp + (-0x18)) = 0; /* 0x360857EA: mov dword ptr [ebp - 0x18], 0 */
   2770     eax = MEM32(ebp + (-0x18)); /* 0x360857F1: mov eax, dword ptr [ebp - 0x18] */
   2771     PUSH32(esp, 0); /* 0x360857F4: push 0 */
   2772     MEM32(ecx + 0x4) = eax; /* 0x360857F6: mov dword ptr [ecx + 4], eax */
   2773     MEM32(ebp + (-0x14)) = 0; /* 0x360857F9: mov dword ptr [ebp - 0x14], 0 */
   2774     edx = MEM32(ebp + (-0x14)); /* 0x36085800: mov edx, dword ptr [ebp - 0x14] */
   2775     PUSH32(esp, 0x3F19999Au); /* 0x36085803: push 0x3f19999a */
   2776     MEM32(ecx + 0x8) = edx; /* 0x36085808: mov dword ptr [ecx + 8], edx */
   2777     ecx = MEM32(esi + 0x8); /* 0x3608580B: mov ecx, dword ptr [esi + 8] */
   2778     PUSH32(esp, 0x3E4CCCCDu); /* 0x3608580E: push 0x3e4ccccd */
   2779     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085813: call dword ptr [0x3616ffb0] */
   2780     RECOMP_FLAGS_IN();
   2781     edx = MEM32(eax); /* 0x36085819: mov edx, dword ptr [eax] */
   2782     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2784     esp = esp - 0xCu; /* 0x3608581B: sub esp, 0xc */
   2785     _flag_k = FK_CMP;
   2786     ecx = esp; /* 0x3608581E: mov ecx, esp */
   2787     MEM32(ecx) = edx; /* 0x36085820: mov dword ptr [ecx], edx */
   2788     edx = MEM32(eax + 0x4); /* 0x36085822: mov edx, dword ptr [eax + 4] */
   2789     eax = MEM32(eax + 0x8); /* 0x36085825: mov eax, dword ptr [eax + 8] */
   2790     MEM32(ecx + 0x4) = edx; /* 0x36085828: mov dword ptr [ecx + 4], edx */
   2791     edx = MEM32(edi); /* 0x3608582B: mov edx, dword ptr [edi] */
   2792     PUSH32(esp, 2); /* 0x3608582D: push 2 */
   2793     MEM32(ecx + 0x8) = eax; /* 0x3608582F: mov dword ptr [ecx + 8], eax */
   2794     PUSH32(esp, 0x10Du); /* 0x36085832: push 0x10d */
   2795     ecx = edi; /* 0x36085837: mov ecx, edi */
   2796     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085839: call dword ptr [edx + 4] */
   2797     RECOMP_FLAGS_IN();
   2798     PUSH32(esp, eax); /* 0x3608583C: push eax */
   2799     RECOMP_ICALL(0x3601C590u); /* 0x3608583D: call 0x3601c590 */ /* not lifted */
   2800     RECOMP_FLAGS_IN();
   2801     ecx = eax; /* 0x36085842: mov ecx, eax */
   2802     RECOMP_ICALL(0x3601CBF0u); /* 0x36085844: call 0x3601cbf0 */ /* not lifted */
   2803     RECOMP_FLAGS_IN();
   2804     goto L_360858B6; /* 0x36085849: jmp 0x360858b6 */
   2805 L_3608584B:
   2806     edx = MEM32(eax + 0x8); /* 0x3608584B: mov edx, dword ptr [eax + 8] */
   2807     edi = MEM32(ecx + 0x8); /* 0x3608584E: mov edi, dword ptr [ecx + 8] */
   2808     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   2809     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2810     ecx = ecx + 4; /* 0x36085851: add ecx, 4 */
   2811     _flag_k = FK_ADD;
   2812     /* cmp edx, edi */ /* 0x36085854: cmp edx, edi */
   2813     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   2814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2815     _flag_k = FK_CMP;
   2816     if (CMP_NE(_flag_a, _flag_b)) goto L_3608585F; /* 0x36085856: jne 0x3608585f */
   2817 L_36085858:
   2818     eax = MEM32(eax + 0x4); /* 0x36085858: mov eax, dword ptr [eax + 4] */
   2819     /* cmp eax, MEM32(ecx) */ /* 0x3608585B: cmp eax, dword ptr [ecx] */
   2820     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2821     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2822     _flag_k = FK_CMP;
   2823     if (CMP_EQ(_flag_a, _flag_b)) goto L_36085870; /* 0x3608585D: je 0x36085870 */
   2824 L_3608585F:
   2825     ecx = MEM32(esi + 0x18); /* 0x3608585F: mov ecx, dword ptr [esi + 0x18] */
   2826     edx = MEM32(ecx); /* 0x36085862: mov edx, dword ptr [ecx] */
   2827     PUSH32(esp, 2); /* 0x36085864: push 2 */
   2828     PUSH32(esp, 0x179u); /* 0x36085866: push 0x179 */
   2829     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608586B: call dword ptr [edx + 4] */
   2830     RECOMP_FLAGS_IN();
   2831     goto L_3608587F; /* 0x3608586E: jmp 0x3608587f */
   2832 L_36085870:
   2833     ecx = MEM32(esi + 0x18); /* 0x36085870: mov ecx, dword ptr [esi + 0x18] */
   2834     eax = MEM32(ecx); /* 0x36085873: mov eax, dword ptr [ecx] */
   2835     PUSH32(esp, 2); /* 0x36085875: push 2 */
   2836     PUSH32(esp, 0x17Au); /* 0x36085877: push 0x17a */
   2837     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608587C: call dword ptr [eax + 4] */
   2838     RECOMP_FLAGS_IN();
   2839 L_3608587F:
   2840     ecx = MEM32(esi + 0x8); /* 0x3608587F: mov ecx, dword ptr [esi + 8] */
   2841     ecx = MEM32(ecx + 0x174); /* 0x36085882: mov ecx, dword ptr [ecx + 0x174] */
   2842     edx = MEM32(ecx); /* 0x36085888: mov edx, dword ptr [ecx] */
   2843     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608588A: push -1 */
   2844     PUSH32(esp, 0); /* 0x3608588C: push 0 */
   2845     PUSH32(esp, 0); /* 0x3608588E: push 0 */
   2846     PUSH32(esp, 1); /* 0x36085890: push 1 */
   2847     PUSH32(esp, 0); /* 0x36085892: push 0 */
   2848     PUSH32(esp, 1); /* 0x36085894: push 1 */
   2849     PUSH32(esp, 0); /* 0x36085896: push 0 */
   2850     PUSH32(esp, 0); /* 0x36085898: push 0 */
   2851     PUSH32(esp, 0x3F800000u); /* 0x3608589A: push 0x3f800000 */
   2852     PUSH32(esp, eax); /* 0x3608589F: push eax */
   2853     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x360858A0: call dword ptr [edx + 0x14] */
   2854     RECOMP_FLAGS_IN();
   2855     MEM32(esi + 0xC) = eax; /* 0x360858A3: mov dword ptr [esi + 0xc], eax */
   2856     goto L_360858B6; /* 0x360858A6: jmp 0x360858b6 */
   2857 L_360858A8:
   2858     eax = MEM32(esi + 0x8); /* 0x360858A8: mov eax, dword ptr [esi + 8] */
   2859     ecx = MEM32(eax + 0x158); /* 0x360858AB: mov ecx, dword ptr [eax + 0x158] */
   2860     RECOMP_ICALL(0x360667B0u); /* 0x360858B1: call 0x360667b0 */ /* not lifted */
   2861     RECOMP_FLAGS_IN();
   2862 L_360858B6:
   2863     ecx = MEM32(esi + 0x8); /* 0x360858B6: mov ecx, dword ptr [esi + 8] */
   2864     ecx = MEM32(ecx + 0x158); /* 0x360858B9: mov ecx, dword ptr [ecx + 0x158] */
   2865     RECOMP_ICALL(0x36066860u); /* 0x360858BF: call 0x36066860 */ /* not lifted */
   2866     RECOMP_FLAGS_IN();
   2867     ecx = MEM32(ebp + (-0xC)); /* 0x360858C4: mov ecx, dword ptr [ebp - 0xc] */
   2868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2869     eax = eax - 1; /* 0x360858C7: dec eax */
   2870     _flag_k = FK_DEC;
   2871     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2872     _cf = (eax) != 0;
   2873     eax = (uint32_t)(-(int32_t)eax); /* 0x360858C8: neg eax */
   2874     _flag_k = FK_CMP;
   2875     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x360858CA: sbb al, al */
   2876       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   2877       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2878       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2879     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2880     SET_LO8(eax, LO8(eax) + 1); /* 0x360858CC: inc al */
   2881     _flag_k = FK_NARROW(FK_INC, 24);
   2882     MEM8(esi + 0x20) = (uint8_t)(LO8(eax)); /* 0x360858CE: mov byte ptr [esi + 0x20], al */
   2883     edi = POP32_VAL(esp); /* 0x360858D1: pop edi */
   2884     eax = esi; /* 0x360858D2: mov eax, esi */
   2885     MEM32(FS_BASE + (0)) = ecx; /* 0x360858D4: mov dword ptr fs:[0], ecx */
   2886     esi = POP32_VAL(esp); /* 0x360858DB: pop esi */
   2887     esp = ebp; /* 0x360858DC: mov esp, ebp */
   2888     ebp = POP32_VAL(esp); /* 0x360858DE: pop ebp */
   2889     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360858DF: ret 8 */
   2890     RECOMP_REGS_OUT();
   2891 }
   2892 
   2893 void sub_360857F1(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(0x360857F1u);
   2902 
   2903 L_360857F1:
   2904     eax = MEM32(ebp + (-0x18)); /* 0x360857F1: mov eax, dword ptr [ebp - 0x18] */
   2905     PUSH32(esp, 0); /* 0x360857F4: push 0 */
   2906     MEM32(ecx + 0x4) = eax; /* 0x360857F6: mov dword ptr [ecx + 4], eax */
   2907     MEM32(ebp + (-0x14)) = 0; /* 0x360857F9: mov dword ptr [ebp - 0x14], 0 */
   2908     edx = MEM32(ebp + (-0x14)); /* 0x36085800: mov edx, dword ptr [ebp - 0x14] */
   2909     PUSH32(esp, 0x3F19999Au); /* 0x36085803: push 0x3f19999a */
   2910     MEM32(ecx + 0x8) = edx; /* 0x36085808: mov dword ptr [ecx + 8], edx */
   2911     ecx = MEM32(esi + 0x8); /* 0x3608580B: mov ecx, dword ptr [esi + 8] */
   2912     PUSH32(esp, 0x3E4CCCCDu); /* 0x3608580E: push 0x3e4ccccd */
   2913     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085813: call dword ptr [0x3616ffb0] */
   2914     RECOMP_FLAGS_IN();
   2915     edx = MEM32(eax); /* 0x36085819: mov edx, dword ptr [eax] */
   2916     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2918     esp = esp - 0xCu; /* 0x3608581B: sub esp, 0xc */
   2919     _flag_k = FK_CMP;
   2920     ecx = esp; /* 0x3608581E: mov ecx, esp */
   2921     MEM32(ecx) = edx; /* 0x36085820: mov dword ptr [ecx], edx */
   2922     edx = MEM32(eax + 0x4); /* 0x36085822: mov edx, dword ptr [eax + 4] */
   2923     eax = MEM32(eax + 0x8); /* 0x36085825: mov eax, dword ptr [eax + 8] */
   2924     MEM32(ecx + 0x4) = edx; /* 0x36085828: mov dword ptr [ecx + 4], edx */
   2925     edx = MEM32(edi); /* 0x3608582B: mov edx, dword ptr [edi] */
   2926     PUSH32(esp, 2); /* 0x3608582D: push 2 */
   2927     MEM32(ecx + 0x8) = eax; /* 0x3608582F: mov dword ptr [ecx + 8], eax */
   2928     PUSH32(esp, 0x10Du); /* 0x36085832: push 0x10d */
   2929     ecx = edi; /* 0x36085837: mov ecx, edi */
   2930     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085839: call dword ptr [edx + 4] */
   2931     RECOMP_FLAGS_IN();
   2932     PUSH32(esp, eax); /* 0x3608583C: push eax */
   2933     RECOMP_ICALL(0x3601C590u); /* 0x3608583D: call 0x3601c590 */ /* not lifted */
   2934     RECOMP_FLAGS_IN();
   2935     ecx = eax; /* 0x36085842: mov ecx, eax */
   2936     RECOMP_ICALL(0x3601CBF0u); /* 0x36085844: call 0x3601cbf0 */ /* not lifted */
   2937     RECOMP_FLAGS_IN();
   2938     goto L_360858B6; /* 0x36085849: jmp 0x360858b6 */
   2939 L_360858B6:
   2940     ecx = MEM32(esi + 0x8); /* 0x360858B6: mov ecx, dword ptr [esi + 8] */
   2941     ecx = MEM32(ecx + 0x158); /* 0x360858B9: mov ecx, dword ptr [ecx + 0x158] */
   2942     RECOMP_ICALL(0x36066860u); /* 0x360858BF: call 0x36066860 */ /* not lifted */
   2943     RECOMP_FLAGS_IN();
   2944     ecx = MEM32(ebp + (-0xC)); /* 0x360858C4: mov ecx, dword ptr [ebp - 0xc] */
   2945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2946     eax = eax - 1; /* 0x360858C7: dec eax */
   2947     _flag_k = FK_DEC;
   2948     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2949     _cf = (eax) != 0;
   2950     eax = (uint32_t)(-(int32_t)eax); /* 0x360858C8: neg eax */
   2951     _flag_k = FK_CMP;
   2952     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x360858CA: sbb al, al */
   2953       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   2954       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2955       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2956     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2957     SET_LO8(eax, LO8(eax) + 1); /* 0x360858CC: inc al */
   2958     _flag_k = FK_NARROW(FK_INC, 24);
   2959     MEM8(esi + 0x20) = (uint8_t)(LO8(eax)); /* 0x360858CE: mov byte ptr [esi + 0x20], al */
   2960     edi = POP32_VAL(esp); /* 0x360858D1: pop edi */
   2961     eax = esi; /* 0x360858D2: mov eax, esi */
   2962     MEM32(FS_BASE + (0)) = ecx; /* 0x360858D4: mov dword ptr fs:[0], ecx */
   2963     esi = POP32_VAL(esp); /* 0x360858DB: pop esi */
   2964     esp = ebp; /* 0x360858DC: mov esp, ebp */
   2965     ebp = POP32_VAL(esp); /* 0x360858DE: pop ebp */
   2966     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360858DF: ret 8 */
   2967     RECOMP_REGS_OUT();
   2968 }
   2969 
   2970 void sub_360858B6(void) {
   2971     int _fpu_cmp = 0;
   2972     uint32_t _cf = 0;
   2973     int _df = 1;
   2974     uint32_t _flag_k = FK_NONE;
   2975     uint32_t _flag_a = 0, _flag_b = 0;
   2976     uint32_t _itail_tgt = 0;
   2977     RECOMP_REGS_LOCALS
   2978     RECOMP_ENTER(0x360858B6u);
   2979 
   2980 L_360858B6:
   2981     ecx = MEM32(esi + 0x8); /* 0x360858B6: mov ecx, dword ptr [esi + 8] */
   2982     ecx = MEM32(ecx + 0x158); /* 0x360858B9: mov ecx, dword ptr [ecx + 0x158] */
   2983     RECOMP_ICALL(0x36066860u); /* 0x360858BF: call 0x36066860 */ /* not lifted */
   2984     RECOMP_FLAGS_IN();
   2985     ecx = MEM32(ebp + (-0xC)); /* 0x360858C4: mov ecx, dword ptr [ebp - 0xc] */
   2986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2987     eax = eax - 1; /* 0x360858C7: dec eax */
   2988     _flag_k = FK_DEC;
   2989     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2990     _cf = (eax) != 0;
   2991     eax = (uint32_t)(-(int32_t)eax); /* 0x360858C8: neg eax */
   2992     _flag_k = FK_CMP;
   2993     { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x360858CA: sbb al, al */
   2994       SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0);
   2995       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2996       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2997     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2998     SET_LO8(eax, LO8(eax) + 1); /* 0x360858CC: inc al */
   2999     _flag_k = FK_NARROW(FK_INC, 24);
   3000     MEM8(esi + 0x20) = (uint8_t)(LO8(eax)); /* 0x360858CE: mov byte ptr [esi + 0x20], al */
   3001     edi = POP32_VAL(esp); /* 0x360858D1: pop edi */
   3002     eax = esi; /* 0x360858D2: mov eax, esi */
   3003     MEM32(FS_BASE + (0)) = ecx; /* 0x360858D4: mov dword ptr fs:[0], ecx */
   3004     esi = POP32_VAL(esp); /* 0x360858DB: pop esi */
   3005     esp = ebp; /* 0x360858DC: mov esp, ebp */
   3006     ebp = POP32_VAL(esp); /* 0x360858DE: pop ebp */
   3007     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360858DF: ret 8 */
   3008     RECOMP_REGS_OUT();
   3009 }
   3010 
   3011 void sub_360858F0(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(0x360858F0u);
   3020 
   3021 L_360858F0:
   3022     MEM32(ecx) = 0x36171B7Cu; /* 0x360858F0: mov dword ptr [ecx], 0x36171b7c */
   3023 L_360858F6:
   3024     { _itail_tgt = (uint32_t)(MEM32(0x3616FD38)); goto _ljump; }
   3025     { RECOMP_REGS_OUT(); return; } /* end of function */
   3026   _ljump:
   3027     switch (_itail_tgt) {
   3028       case 0x360858F0u: goto L_360858F0;
   3029       case 0x360858F6u: goto L_360858F6;
   3030       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3031     }
   3032     RECOMP_REGS_OUT();
   3033 }
   3034 
   3035 void sub_36085900(void) {
   3036     int _fpu_cmp = 0;
   3037     uint32_t _cf = 0;
   3038     int _df = 1;
   3039     uint32_t _flag_k = FK_NONE;
   3040     uint32_t _flag_a = 0, _flag_b = 0;
   3041     uint32_t _itail_tgt = 0;
   3042     RECOMP_REGS_LOCALS
   3043     RECOMP_ENTER(0x36085900u);
   3044 
   3045 L_36085900:
   3046     PUSH32(esp, ebp); /* 0x36085900: push ebp */
   3047     ebp = esp; /* 0x36085901: mov ebp, esp */
   3048     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3049     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3050     esp = esp - 0x10u; /* 0x36085903: sub esp, 0x10 */
   3051     _flag_k = FK_CMP;
   3052     PUSH32(esp, ebx); /* 0x36085906: push ebx */
   3053     PUSH32(esp, esi); /* 0x36085907: push esi */
   3054     esi = ecx; /* 0x36085908: mov esi, ecx */
   3055     edx = MEM32(esi + 0x18); /* 0x3608590A: mov edx, dword ptr [esi + 0x18] */
   3056     /* test edx, edx */ /* 0x3608590D: test edx, edx */
   3057     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3058     _cf = 0;
   3059     _flag_k = FK_TEST;
   3060     PUSH32(esp, edi); /* 0x3608590F: push edi */
   3061     if (TEST_Z(_flag_a, _flag_b)) goto L_36085D10; /* 0x36085910: je 0x36085d10 */
   3062 L_36085916:
   3063     eax = MEM32(esi + 0x8); /* 0x36085916: mov eax, dword ptr [esi + 8] */
   3064     ecx = MEM32(eax + 0x158); /* 0x36085919: mov ecx, dword ptr [eax + 0x158] */
   3065     SET_LO8(ebx, MEM8(ecx + 0xC)); /* 0x3608591F: mov bl, byte ptr [ecx + 0xc] */
   3066     /* test LO8(ebx), LO8(ebx) */ /* 0x36085922: test bl, bl */
   3067     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   3068     _cf = 0;
   3069     _flag_k = FK_NARROW(FK_TEST, 24);
   3070     if (TEST_NZ(_flag_a, _flag_b)) goto L_36085CEE; /* 0x36085924: jne 0x36085cee */
   3071 L_3608592A:
   3072     edi = MEM32(esi + 0xC); /* 0x3608592A: mov edi, dword ptr [esi + 0xc] */
   3073     /* test edi, edi */ /* 0x3608592D: test edi, edi */
   3074     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3075     _cf = 0;
   3076     _flag_k = FK_TEST;
   3077     if (TEST_LE(_flag_a, _flag_b)) goto L_36085CEE; /* 0x3608592F: jle 0x36085cee */
   3078 L_36085935:
   3079     /* test MEM8(eax + 0x11C), 0x10u */ /* 0x36085935: test byte ptr [eax + 0x11c], 0x10 */
   3080     _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   3081     _cf = 0;
   3082     _flag_k = FK_NARROW(FK_TEST, 24);
   3083     if (TEST_Z(_flag_a, _flag_b)) goto L_36085955; /* 0x3608593C: je 0x36085955 */
   3084 L_3608593E:
   3085     RECOMP_ICALL(0x36066A70u); /* 0x3608593E: call 0x36066a70 */ /* not lifted */
   3086     RECOMP_FLAGS_IN();
   3087     PUSH32(esp, 0); /* 0x36085943: push 0 */
   3088     PUSH32(esp, 0xBu); /* 0x36085945: push 0xb */
   3089     ecx = esi; /* 0x36085947: mov ecx, esi */
   3090     RECOMP_ICALL(0x36086BD0u); /* 0x36085949: call 0x36086bd0 */ /* not lifted */
   3091     RECOMP_FLAGS_IN();
   3092     edi = POP32_VAL(esp); /* 0x3608594E: pop edi */
   3093     esi = POP32_VAL(esp); /* 0x3608594F: pop esi */
   3094     ebx = POP32_VAL(esp); /* 0x36085950: pop ebx */
   3095     esp = ebp; /* 0x36085951: mov esp, ebp */
   3096     ebp = POP32_VAL(esp); /* 0x36085953: pop ebp */
   3097     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085954: ret  */
   3098 L_36085955:
   3099     edx = MEM32(esi + 0x10); /* 0x36085955: mov edx, dword ptr [esi + 0x10] */
   3100     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0);
   3101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3102     edx = edx - 0; /* 0x36085958: sub edx, 0 */
   3103     _flag_k = FK_CMP;
   3104     if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_36085B44; /* 0x3608595B: je 0x36085b44 */
   3105 L_36085961:
   3106     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3107     edx = edx - 1; /* 0x36085961: dec edx */
   3108     _flag_k = FK_DEC;
   3109     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3608598E; /* 0x36085962: je 0x3608598e */
   3110 L_36085964:
   3111     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   3112     edx = edx - 1; /* 0x36085964: dec edx */
   3113     _flag_k = FK_DEC;
   3114     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36085CE5; /* 0x36085965: jne 0x36085ce5 */
   3115 L_3608596B:
   3116     eax = MEM32(eax + 0x174); /* 0x3608596B: mov eax, dword ptr [eax + 0x174] */
   3117     PUSH32(esp, edi); /* 0x36085971: push edi */
   3118     ecx = eax + 0x54; /* 0x36085972: lea ecx, [eax + 0x54] */
   3119     RECOMP_ICALL(0x3604E400u); /* 0x36085975: call 0x3604e400 */ /* not lifted */
   3120     RECOMP_FLAGS_IN();
   3121     /* test LO8(eax), LO8(eax) */ /* 0x3608597A: test al, al */
   3122     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3123     _cf = 0;
   3124     _flag_k = FK_NARROW(FK_TEST, 24);
   3125     if (TEST_Z(_flag_a, _flag_b)) goto L_36085CE5; /* 0x3608597C: je 0x36085ce5 */
   3126 L_36085982:
   3127     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(1);
   3128     MEM32(esi + 0x10) = MEM32(esi + 0x10) + 1; /* 0x36085982: inc dword ptr [esi + 0x10] */
   3129     _flag_k = FK_INC;
   3130     eax = esi; /* 0x36085985: mov eax, esi */
   3131     edi = POP32_VAL(esp); /* 0x36085987: pop edi */
   3132     esi = POP32_VAL(esp); /* 0x36085988: pop esi */
   3133     ebx = POP32_VAL(esp); /* 0x36085989: pop ebx */
   3134     esp = ebp; /* 0x3608598A: mov esp, ebp */
   3135     ebp = POP32_VAL(esp); /* 0x3608598C: pop ebp */
   3136     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608598D: ret  */
   3137 L_3608598E:
   3138     eax = MEM32(eax + 0x174); /* 0x3608598E: mov eax, dword ptr [eax + 0x174] */
   3139     PUSH32(esp, edi); /* 0x36085994: push edi */
   3140     ecx = eax + 0x54; /* 0x36085995: lea ecx, [eax + 0x54] */
   3141     RECOMP_ICALL(0x3604E400u); /* 0x36085998: call 0x3604e400 */ /* not lifted */
   3142     RECOMP_FLAGS_IN();
   3143     /* test LO8(eax), LO8(eax) */ /* 0x3608599D: 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_Z(_flag_a, _flag_b)) goto L_36085AD8; /* 0x3608599F: je 0x36085ad8 */
   3148 L_360859A5:
   3149     SET_LO8(eax, MEM8(esi + 0x20)); /* 0x360859A5: mov al, byte ptr [esi + 0x20] */
   3150     /* test LO8(eax), LO8(eax) */ /* 0x360859A8: test al, al */
   3151     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3152     _cf = 0;
   3153     _flag_k = FK_NARROW(FK_TEST, 24);
   3154     if (TEST_Z(_flag_a, _flag_b)) goto L_36085AB8; /* 0x360859AA: je 0x36085ab8 */
   3155 L_360859B0:
   3156     eax = esi + 0x24; /* 0x360859B0: lea eax, [esi + 0x24] */
   3157     PUSH32(esp, eax); /* 0x360859B3: push eax */
   3158     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360859B4: call dword ptr [0x3616ff70] */
   3159     RECOMP_FLAGS_IN();
   3160     edi = eax; /* 0x360859BA: mov edi, eax */
   3161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3163     esp = esp + 4; /* 0x360859BC: add esp, 4 */
   3164     _flag_k = FK_ADD;
   3165     /* test edi, edi */ /* 0x360859BF: test edi, edi */
   3166     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3167     _cf = 0;
   3168     _flag_k = FK_TEST;
   3169     if (TEST_Z(_flag_a, _flag_b)) goto L_36085AB8; /* 0x360859C1: je 0x36085ab8 */
   3170 L_360859C7:
   3171     ecx = MEM32(esi + 0x18); /* 0x360859C7: mov ecx, dword ptr [esi + 0x18] */
   3172     edx = MEM32(ecx); /* 0x360859CA: mov edx, dword ptr [ecx] */
   3173     PUSH32(esp, 2); /* 0x360859CC: push 2 */
   3174     PUSH32(esp, 0x19Eu); /* 0x360859CE: push 0x19e */
   3175     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360859D3: call dword ptr [edx + 4] */
   3176     RECOMP_FLAGS_IN();
   3177     /* test eax, eax */ /* 0x360859D6: test eax, eax */
   3178     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3179     _cf = 0;
   3180     _flag_k = FK_TEST;
   3181     if (TEST_Z(_flag_a, _flag_b)) goto L_36085A05; /* 0x360859D8: je 0x36085a05 */
   3182 L_360859DA:
   3183     RECOMP_ICALL(0x360F7B00u); /* 0x360859DA: call 0x360f7b00 */ /* not lifted */
   3184     RECOMP_FLAGS_IN();
   3185     PUSH32(esp, 0); /* 0x360859DF: push 0 */
   3186     PUSH32(esp, edi); /* 0x360859E1: push edi */
   3187     MEM32(eax + 0x54) = 4; /* 0x360859E2: mov dword ptr [eax + 0x54], 4 */
   3188     ecx = MEM32(esi + 0x18); /* 0x360859E9: mov ecx, dword ptr [esi + 0x18] */
   3189     eax = MEM32(ecx); /* 0x360859EC: mov eax, dword ptr [ecx] */
   3190     PUSH32(esp, 2); /* 0x360859EE: push 2 */
   3191     PUSH32(esp, 0x19Eu); /* 0x360859F0: push 0x19e */
   3192     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360859F5: call dword ptr [eax + 4] */
   3193     RECOMP_FLAGS_IN();
   3194     PUSH32(esp, eax); /* 0x360859F8: push eax */
   3195     RECOMP_ICALL(0x360F7B00u); /* 0x360859F9: call 0x360f7b00 */ /* not lifted */
   3196     RECOMP_FLAGS_IN();
   3197     ecx = eax; /* 0x360859FE: mov ecx, eax */
   3198     RECOMP_ICALL(0x360F81E0u); /* 0x36085A00: call 0x360f81e0 */ /* not lifted */
   3199     RECOMP_FLAGS_IN();
   3200 L_36085A05:
   3201     ecx = MEM32(esi + 0x18); /* 0x36085A05: mov ecx, dword ptr [esi + 0x18] */
   3202     edx = MEM32(ecx); /* 0x36085A08: mov edx, dword ptr [ecx] */
   3203     PUSH32(esp, 2); /* 0x36085A0A: push 2 */
   3204     PUSH32(esp, 0x169u); /* 0x36085A0C: push 0x169 */
   3205     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085A11: call dword ptr [edx + 4] */
   3206     RECOMP_FLAGS_IN();
   3207     /* test eax, eax */ /* 0x36085A14: test eax, eax */
   3208     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3209     _cf = 0;
   3210     _flag_k = FK_TEST;
   3211     if (TEST_Z(_flag_a, _flag_b)) goto L_36085A43; /* 0x36085A16: je 0x36085a43 */
   3212 L_36085A18:
   3213     RECOMP_ICALL(0x360F7B00u); /* 0x36085A18: call 0x360f7b00 */ /* not lifted */
   3214     RECOMP_FLAGS_IN();
   3215     PUSH32(esp, 0); /* 0x36085A1D: push 0 */
   3216     PUSH32(esp, edi); /* 0x36085A1F: push edi */
   3217     MEM32(eax + 0x54) = 4; /* 0x36085A20: mov dword ptr [eax + 0x54], 4 */
   3218     ecx = MEM32(esi + 0x18); /* 0x36085A27: mov ecx, dword ptr [esi + 0x18] */
   3219     eax = MEM32(ecx); /* 0x36085A2A: mov eax, dword ptr [ecx] */
   3220     PUSH32(esp, 2); /* 0x36085A2C: push 2 */
   3221     PUSH32(esp, 0x169u); /* 0x36085A2E: push 0x169 */
   3222     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36085A33: call dword ptr [eax + 4] */
   3223     RECOMP_FLAGS_IN();
   3224     PUSH32(esp, eax); /* 0x36085A36: push eax */
   3225     RECOMP_ICALL(0x360F7B00u); /* 0x36085A37: call 0x360f7b00 */ /* not lifted */
   3226     RECOMP_FLAGS_IN();
   3227     ecx = eax; /* 0x36085A3C: mov ecx, eax */
   3228     RECOMP_ICALL(0x360F81E0u); /* 0x36085A3E: call 0x360f81e0 */ /* not lifted */
   3229     RECOMP_FLAGS_IN();
   3230 L_36085A43:
   3231     ebx = MEM32(esi + 0x18); /* 0x36085A43: mov ebx, dword ptr [esi + 0x18] */
   3232     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3234     esp = esp - 0xCu; /* 0x36085A46: sub esp, 0xc */
   3235     _flag_k = FK_CMP;
   3236     ecx = esp; /* 0x36085A49: mov ecx, esp */
   3237     PUSH32(esp, 1); /* 0x36085A4B: push 1 */
   3238     PUSH32(esp, 0x64u); /* 0x36085A4D: push 0x64 */
   3239     PUSH32(esp, 0); /* 0x36085A4F: push 0 */
   3240     MEM32(ebp + (-0x10)) = 0; /* 0x36085A51: mov dword ptr [ebp - 0x10], 0 */
   3241     edx = MEM32(ebp + (-0x10)); /* 0x36085A58: mov edx, dword ptr [ebp - 0x10] */
   3242     MEM32(ecx) = edx; /* 0x36085A5B: mov dword ptr [ecx], edx */
   3243     MEM32(ebp + (-0xC)) = 0; /* 0x36085A5D: mov dword ptr [ebp - 0xc], 0 */
   3244     eax = MEM32(ebp + (-0xC)); /* 0x36085A64: mov eax, dword ptr [ebp - 0xc] */
   3245     PUSH32(esp, 0); /* 0x36085A67: push 0 */
   3246     MEM32(ecx + 0x4) = eax; /* 0x36085A69: mov dword ptr [ecx + 4], eax */
   3247     MEM32(ebp + (-0x8)) = 0; /* 0x36085A6C: mov dword ptr [ebp - 8], 0 */
   3248     edx = MEM32(ebp + (-0x8)); /* 0x36085A73: mov edx, dword ptr [ebp - 8] */
   3249     PUSH32(esp, 0x3F800000u); /* 0x36085A76: push 0x3f800000 */
   3250     MEM32(ecx + 0x8) = edx; /* 0x36085A7B: mov dword ptr [ecx + 8], edx */
   3251     PUSH32(esp, 0); /* 0x36085A7E: push 0 */
   3252     ecx = edi; /* 0x36085A80: mov ecx, edi */
   3253     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085A82: call dword ptr [0x3616ffb0] */
   3254     RECOMP_FLAGS_IN();
   3255     edx = MEM32(eax); /* 0x36085A88: mov edx, dword ptr [eax] */
   3256     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3258     esp = esp - 0xCu; /* 0x36085A8A: sub esp, 0xc */
   3259     _flag_k = FK_CMP;
   3260     ecx = esp; /* 0x36085A8D: mov ecx, esp */
   3261     MEM32(ecx) = edx; /* 0x36085A8F: mov dword ptr [ecx], edx */
   3262     edx = MEM32(eax + 0x4); /* 0x36085A91: mov edx, dword ptr [eax + 4] */
   3263     eax = MEM32(eax + 0x8); /* 0x36085A94: mov eax, dword ptr [eax + 8] */
   3264     MEM32(ecx + 0x4) = edx; /* 0x36085A97: mov dword ptr [ecx + 4], edx */
   3265     edx = MEM32(ebx); /* 0x36085A9A: mov edx, dword ptr [ebx] */
   3266     PUSH32(esp, 2); /* 0x36085A9C: push 2 */
   3267     MEM32(ecx + 0x8) = eax; /* 0x36085A9E: mov dword ptr [ecx + 8], eax */
   3268     PUSH32(esp, 0x110u); /* 0x36085AA1: push 0x110 */
   3269     ecx = ebx; /* 0x36085AA6: mov ecx, ebx */
   3270     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085AA8: call dword ptr [edx + 4] */
   3271     RECOMP_FLAGS_IN();
   3272     PUSH32(esp, eax); /* 0x36085AAB: push eax */
   3273     RECOMP_ICALL(0x3601C590u); /* 0x36085AAC: call 0x3601c590 */ /* not lifted */
   3274     RECOMP_FLAGS_IN();
   3275     ecx = eax; /* 0x36085AB1: mov ecx, eax */
   3276     RECOMP_ICALL(0x3601CBF0u); /* 0x36085AB3: call 0x3601cbf0 */ /* not lifted */
   3277     RECOMP_FLAGS_IN();
   3278 L_36085AB8:
   3279     eax = MEM32(esi + 0x8); /* 0x36085AB8: mov eax, dword ptr [esi + 8] */
   3280     ecx = MEM32(eax + 0x158); /* 0x36085ABB: mov ecx, dword ptr [eax + 0x158] */
   3281     RECOMP_ICALL(0x36066A70u); /* 0x36085AC1: call 0x36066a70 */ /* not lifted */
   3282     RECOMP_FLAGS_IN();
   3283     PUSH32(esp, 0); /* 0x36085AC6: push 0 */
   3284     PUSH32(esp, 0); /* 0x36085AC8: push 0 */
   3285     ecx = esi; /* 0x36085ACA: mov ecx, esi */
   3286     RECOMP_ICALL(0x36086BD0u); /* 0x36085ACC: call 0x36086bd0 */ /* not lifted */
   3287     RECOMP_FLAGS_IN();
   3288     edi = POP32_VAL(esp); /* 0x36085AD1: pop edi */
   3289     esi = POP32_VAL(esp); /* 0x36085AD2: pop esi */
   3290     ebx = POP32_VAL(esp); /* 0x36085AD3: pop ebx */
   3291     esp = ebp; /* 0x36085AD4: mov esp, ebp */
   3292     ebp = POP32_VAL(esp); /* 0x36085AD6: pop ebp */
   3293     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085AD7: ret  */
   3294 L_36085AD8:
   3295     edi = MEM32(esi + 0x18); /* 0x36085AD8: mov edi, dword ptr [esi + 0x18] */
   3296     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3297     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3298     esp = esp - 0xCu; /* 0x36085ADB: sub esp, 0xc */
   3299     _flag_k = FK_CMP;
   3300     ecx = esp; /* 0x36085ADE: mov ecx, esp */
   3301     PUSH32(esp, 1); /* 0x36085AE0: push 1 */
   3302     PUSH32(esp, 0x64u); /* 0x36085AE2: push 0x64 */
   3303     PUSH32(esp, 0); /* 0x36085AE4: push 0 */
   3304     MEM32(ebp + (-0x10)) = 0; /* 0x36085AE6: mov dword ptr [ebp - 0x10], 0 */
   3305     edx = MEM32(ebp + (-0x10)); /* 0x36085AED: mov edx, dword ptr [ebp - 0x10] */
   3306     MEM32(ecx) = edx; /* 0x36085AF0: mov dword ptr [ecx], edx */
   3307     MEM32(ebp + (-0xC)) = 0; /* 0x36085AF2: mov dword ptr [ebp - 0xc], 0 */
   3308     eax = MEM32(ebp + (-0xC)); /* 0x36085AF9: mov eax, dword ptr [ebp - 0xc] */
   3309     PUSH32(esp, 0); /* 0x36085AFC: push 0 */
   3310     MEM32(ecx + 0x4) = eax; /* 0x36085AFE: mov dword ptr [ecx + 4], eax */
   3311     MEM32(ebp + (-0x8)) = 0; /* 0x36085B01: mov dword ptr [ebp - 8], 0 */
   3312     edx = MEM32(ebp + (-0x8)); /* 0x36085B08: mov edx, dword ptr [ebp - 8] */
   3313     PUSH32(esp, 0x3F800000u); /* 0x36085B0B: push 0x3f800000 */
   3314     MEM32(ecx + 0x8) = edx; /* 0x36085B10: mov dword ptr [ecx + 8], edx */
   3315     ecx = MEM32(esi + 0x8); /* 0x36085B13: mov ecx, dword ptr [esi + 8] */
   3316     PUSH32(esp, 0x3E4CCCCDu); /* 0x36085B16: push 0x3e4ccccd */
   3317     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085B1B: call dword ptr [0x3616ffb0] */
   3318     RECOMP_FLAGS_IN();
   3319     edx = MEM32(eax); /* 0x36085B21: mov edx, dword ptr [eax] */
   3320     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3322     esp = esp - 0xCu; /* 0x36085B23: sub esp, 0xc */
   3323     _flag_k = FK_CMP;
   3324     ecx = esp; /* 0x36085B26: mov ecx, esp */
   3325     MEM32(ecx) = edx; /* 0x36085B28: mov dword ptr [ecx], edx */
   3326     edx = MEM32(eax + 0x4); /* 0x36085B2A: mov edx, dword ptr [eax + 4] */
   3327     eax = MEM32(eax + 0x8); /* 0x36085B2D: mov eax, dword ptr [eax + 8] */
   3328     MEM32(ecx + 0x4) = edx; /* 0x36085B30: mov dword ptr [ecx + 4], edx */
   3329     edx = MEM32(edi); /* 0x36085B33: mov edx, dword ptr [edi] */
   3330     PUSH32(esp, 2); /* 0x36085B35: push 2 */
   3331     MEM32(ecx + 0x8) = eax; /* 0x36085B37: mov dword ptr [ecx + 8], eax */
   3332     PUSH32(esp, 0x10Fu); /* 0x36085B3A: push 0x10f */
   3333     goto L_36085BC5; /* 0x36085B3F: jmp 0x36085bc5 */
   3334 L_36085B44:
   3335     RECOMP_ICALL(0x360653F0u); /* 0x36085B44: call 0x360653f0 */ /* not lifted */
   3336     RECOMP_FLAGS_IN();
   3337     /* test eax, eax */ /* 0x36085B49: test eax, eax */
   3338     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3339     _cf = 0;
   3340     _flag_k = FK_TEST;
   3341     ebx = 1; /* 0x36085B4B: mov ebx, 1 */
   3342     if (TEST_Z(_flag_a, _flag_b)) goto L_36085BE0; /* 0x36085B50: je 0x36085be0 */
   3343 L_36085B56:
   3344     /* cmp MEM32(eax + 0xC), ebx */ /* 0x36085B56: cmp dword ptr [eax + 0xc], ebx */
   3345     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(ebx);
   3346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3347     _flag_k = FK_CMP;
   3348     if (CMP_NE(_flag_a, _flag_b)) goto L_36085BE0; /* 0x36085B59: jne 0x36085be0 */
   3349 L_36085B5F:
   3350     edi = MEM32(esi + 0x18); /* 0x36085B5F: mov edi, dword ptr [esi + 0x18] */
   3351     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3353     esp = esp - 0xCu; /* 0x36085B62: sub esp, 0xc */
   3354     _flag_k = FK_CMP;
   3355     eax = esp; /* 0x36085B65: mov eax, esp */
   3356     PUSH32(esp, ebx); /* 0x36085B67: push ebx */
   3357     PUSH32(esp, 0x64u); /* 0x36085B68: push 0x64 */
   3358     PUSH32(esp, 0); /* 0x36085B6A: push 0 */
   3359     MEM32(ebp + (-0x10)) = 0; /* 0x36085B6C: mov dword ptr [ebp - 0x10], 0 */
   3360     ecx = MEM32(ebp + (-0x10)); /* 0x36085B73: mov ecx, dword ptr [ebp - 0x10] */
   3361     MEM32(eax) = ecx; /* 0x36085B76: mov dword ptr [eax], ecx */
   3362     MEM32(ebp + (-0xC)) = 0; /* 0x36085B78: mov dword ptr [ebp - 0xc], 0 */
   3363     edx = MEM32(ebp + (-0xC)); /* 0x36085B7F: mov edx, dword ptr [ebp - 0xc] */
   3364     PUSH32(esp, 0); /* 0x36085B82: push 0 */
   3365     MEM32(ebp + (-0x8)) = 0; /* 0x36085B84: mov dword ptr [ebp - 8], 0 */
   3366     ecx = MEM32(ebp + (-0x8)); /* 0x36085B8B: mov ecx, dword ptr [ebp - 8] */
   3367     MEM32(eax + 0x4) = edx; /* 0x36085B8E: mov dword ptr [eax + 4], edx */
   3368     PUSH32(esp, 0x3F800000u); /* 0x36085B91: push 0x3f800000 */
   3369     MEM32(eax + 0x8) = ecx; /* 0x36085B96: mov dword ptr [eax + 8], ecx */
   3370     ecx = MEM32(esi + 0x8); /* 0x36085B99: mov ecx, dword ptr [esi + 8] */
   3371     PUSH32(esp, 0x3E4CCCCDu); /* 0x36085B9C: push 0x3e4ccccd */
   3372     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085BA1: call dword ptr [0x3616ffb0] */
   3373     RECOMP_FLAGS_IN();
   3374     ecx = MEM32(eax); /* 0x36085BA7: mov ecx, dword ptr [eax] */
   3375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3377     esp = esp - 0xCu; /* 0x36085BA9: sub esp, 0xc */
   3378     _flag_k = FK_CMP;
   3379     edx = esp; /* 0x36085BAC: mov edx, esp */
   3380     MEM32(edx) = ecx; /* 0x36085BAE: mov dword ptr [edx], ecx */
   3381     ecx = MEM32(eax + 0x4); /* 0x36085BB0: mov ecx, dword ptr [eax + 4] */
   3382     eax = MEM32(eax + 0x8); /* 0x36085BB3: mov eax, dword ptr [eax + 8] */
   3383     MEM32(edx + 0x4) = ecx; /* 0x36085BB6: mov dword ptr [edx + 4], ecx */
   3384     PUSH32(esp, 2); /* 0x36085BB9: push 2 */
   3385     MEM32(edx + 0x8) = eax; /* 0x36085BBB: mov dword ptr [edx + 8], eax */
   3386     edx = MEM32(edi); /* 0x36085BBE: mov edx, dword ptr [edi] */
   3387     PUSH32(esp, 0x10Du); /* 0x36085BC0: push 0x10d */
   3388 L_36085BC5:
   3389     ecx = edi; /* 0x36085BC5: mov ecx, edi */
   3390     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085BC7: call dword ptr [edx + 4] */
   3391     RECOMP_FLAGS_IN();
   3392     PUSH32(esp, eax); /* 0x36085BCA: push eax */
   3393     RECOMP_ICALL(0x3601C590u); /* 0x36085BCB: call 0x3601c590 */ /* not lifted */
   3394     RECOMP_FLAGS_IN();
   3395     ecx = eax; /* 0x36085BD0: mov ecx, eax */
   3396     RECOMP_ICALL(0x3601CBF0u); /* 0x36085BD2: call 0x3601cbf0 */ /* not lifted */
   3397     RECOMP_FLAGS_IN();
   3398     eax = esi; /* 0x36085BD7: mov eax, esi */
   3399     edi = POP32_VAL(esp); /* 0x36085BD9: pop edi */
   3400     esi = POP32_VAL(esp); /* 0x36085BDA: pop esi */
   3401     ebx = POP32_VAL(esp); /* 0x36085BDB: pop ebx */
   3402     esp = ebp; /* 0x36085BDC: mov esp, ebp */
   3403     ebp = POP32_VAL(esp); /* 0x36085BDE: pop ebp */
   3404     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085BDF: ret  */
   3405 L_36085BE0:
   3406     _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(1);
   3407     MEM32(esi + 0x10) = MEM32(esi + 0x10) + 1; /* 0x36085BE0: inc dword ptr [esi + 0x10] */
   3408     _flag_k = FK_INC;
   3409     eax = MEM32(esi + 0x8); /* 0x36085BE3: mov eax, dword ptr [esi + 8] */
   3410     ecx = MEM32(eax + 0x158); /* 0x36085BE6: mov ecx, dword ptr [eax + 0x158] */
   3411     RECOMP_ICALL(0x36066940u); /* 0x36085BEC: call 0x36066940 */ /* not lifted */
   3412     RECOMP_FLAGS_IN();
   3413     ecx = MEM32(esi + 0x8); /* 0x36085BF1: mov ecx, dword ptr [esi + 8] */
   3414     edx = MEM32(ecx + 0x158); /* 0x36085BF4: mov edx, dword ptr [ecx + 0x158] */
   3415     MEM32(edx + 0x4) = ebx; /* 0x36085BFA: mov dword ptr [edx + 4], ebx */
   3416     eax = MEM32(esi + 0x8); /* 0x36085BFD: mov eax, dword ptr [esi + 8] */
   3417     ecx = MEM32(esi + 0x28); /* 0x36085C00: mov ecx, dword ptr [esi + 0x28] */
   3418     edx = MEM32(eax + 0x8); /* 0x36085C03: mov edx, dword ptr [eax + 8] */
   3419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   3420     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3421     eax = eax + 4; /* 0x36085C06: add eax, 4 */
   3422     _flag_k = FK_ADD;
   3423     /* cmp ecx, edx */ /* 0x36085C09: cmp ecx, edx */
   3424     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3426     _flag_k = FK_CMP;
   3427     edi = esi + 0x24; /* 0x36085C0B: lea edi, [esi + 0x24] */
   3428     if (CMP_NE(_flag_a, _flag_b)) goto L_36085C16; /* 0x36085C0E: jne 0x36085c16 */
   3429 L_36085C10:
   3430     edx = MEM32(edi); /* 0x36085C10: mov edx, dword ptr [edi] */
   3431     /* cmp edx, MEM32(eax) */ /* 0x36085C12: cmp edx, dword ptr [eax] */
   3432     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   3433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3434     _flag_k = FK_CMP;
   3435     if (CMP_EQ(_flag_a, _flag_b)) goto L_36085C63; /* 0x36085C14: je 0x36085c63 */
   3436 L_36085C16:
   3437     ecx = MEM32(esi + 0x18); /* 0x36085C16: mov ecx, dword ptr [esi + 0x18] */
   3438     eax = MEM32(ecx); /* 0x36085C19: mov eax, dword ptr [ecx] */
   3439     PUSH32(esp, 0x10u); /* 0x36085C1B: push 0x10 */
   3440     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x36085C1D: call dword ptr [eax + 0x1c] */
   3441     RECOMP_FLAGS_IN();
   3442     /* test LO8(eax), LO8(eax) */ /* 0x36085C20: test al, al */
   3443     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3444     _cf = 0;
   3445     _flag_k = FK_NARROW(FK_TEST, 24);
   3446     if (TEST_Z(_flag_a, _flag_b)) goto L_36085C63; /* 0x36085C22: je 0x36085c63 */
   3447 L_36085C24:
   3448     ecx = MEM32(esi + 0x14); /* 0x36085C24: mov ecx, dword ptr [esi + 0x14] */
   3449     PUSH32(esp, ecx); /* 0x36085C27: push ecx */
   3450     RECOMP_ICALL(0x360F7B00u); /* 0x36085C28: call 0x360f7b00 */ /* not lifted */
   3451     RECOMP_FLAGS_IN();
   3452     ecx = eax; /* 0x36085C2D: mov ecx, eax */
   3453     RECOMP_ICALL(0x360FB6C0u); /* 0x36085C2F: call 0x360fb6c0 */ /* not lifted */
   3454     RECOMP_FLAGS_IN();
   3455     ecx = MEM32(esi + 0x8); /* 0x36085C34: mov ecx, dword ptr [esi + 8] */
   3456     PUSH32(esp, edi); /* 0x36085C37: push edi */
   3457     RECOMP_ICALL(0x36072000u); /* 0x36085C38: call 0x36072000 */ /* not lifted */
   3458     RECOMP_FLAGS_IN();
   3459     ecx = eax; /* 0x36085C3D: mov ecx, eax */
   3460     RECOMP_ICALL(0x360564F0u); /* 0x36085C3F: call 0x360564f0 */ /* not lifted */
   3461     RECOMP_FLAGS_IN();
   3462     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x36085C44: fcomp qword ptr [0x36170808] */
   3463     fp_pop();
   3464     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36085C4A: fnstsw ax */
   3465     /* test HI8(eax), 0x41u */ /* 0x36085C4C: test ah, 0x41 */
   3466     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3467     _cf = 0;
   3468     _flag_k = FK_NARROW(FK_TEST, 24);
   3469     if (TEST_NZ(_flag_a, _flag_b)) goto L_36085C63; /* 0x36085C4F: jne 0x36085c63 */
   3470 L_36085C51:
   3471     PUSH32(esp, 0); /* 0x36085C51: push 0 */
   3472     PUSH32(esp, 7); /* 0x36085C53: push 7 */
   3473     ecx = esi; /* 0x36085C55: mov ecx, esi */
   3474     RECOMP_ICALL(0x36086BD0u); /* 0x36085C57: call 0x36086bd0 */ /* not lifted */
   3475     RECOMP_FLAGS_IN();
   3476     edi = POP32_VAL(esp); /* 0x36085C5C: pop edi */
   3477     esi = POP32_VAL(esp); /* 0x36085C5D: pop esi */
   3478     ebx = POP32_VAL(esp); /* 0x36085C5E: pop ebx */
   3479     esp = ebp; /* 0x36085C5F: mov esp, ebp */
   3480     ebp = POP32_VAL(esp); /* 0x36085C61: pop ebp */
   3481     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085C62: ret  */
   3482 L_36085C63:
   3483     eax = MEM32(esi + 0x8); /* 0x36085C63: mov eax, dword ptr [esi + 8] */
   3484     edx = MEM32(edi + 0x4); /* 0x36085C66: mov edx, dword ptr [edi + 4] */
   3485     ecx = MEM32(eax + 0x8); /* 0x36085C69: mov ecx, dword ptr [eax + 8] */
   3486     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   3487     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3488     eax = eax + 4; /* 0x36085C6C: add eax, 4 */
   3489     _flag_k = FK_ADD;
   3490     /* cmp edx, ecx */ /* 0x36085C6F: cmp edx, ecx */
   3491     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3493     _flag_k = FK_CMP;
   3494     if (CMP_NE(_flag_a, _flag_b)) goto L_36085C79; /* 0x36085C71: jne 0x36085c79 */
   3495 L_36085C73:
   3496     ecx = MEM32(edi); /* 0x36085C73: mov ecx, dword ptr [edi] */
   3497     /* cmp ecx, MEM32(eax) */ /* 0x36085C75: cmp ecx, dword ptr [eax] */
   3498     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   3499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3500     _flag_k = FK_CMP;
   3501     if (CMP_EQ(_flag_a, _flag_b)) goto L_36085C8A; /* 0x36085C77: je 0x36085c8a */
   3502 L_36085C79:
   3503     ecx = MEM32(esi + 0x18); /* 0x36085C79: mov ecx, dword ptr [esi + 0x18] */
   3504     edx = MEM32(ecx); /* 0x36085C7C: mov edx, dword ptr [ecx] */
   3505     PUSH32(esp, 2); /* 0x36085C7E: push 2 */
   3506     PUSH32(esp, 0x179u); /* 0x36085C80: push 0x179 */
   3507     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085C85: call dword ptr [edx + 4] */
   3508     RECOMP_FLAGS_IN();
   3509     goto L_36085C99; /* 0x36085C88: jmp 0x36085c99 */
   3510 L_36085C8A:
   3511     ecx = MEM32(esi + 0x18); /* 0x36085C8A: mov ecx, dword ptr [esi + 0x18] */
   3512     eax = MEM32(ecx); /* 0x36085C8D: mov eax, dword ptr [ecx] */
   3513     PUSH32(esp, 2); /* 0x36085C8F: push 2 */
   3514     PUSH32(esp, 0x17Au); /* 0x36085C91: push 0x17a */
   3515     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36085C96: call dword ptr [eax + 4] */
   3516     RECOMP_FLAGS_IN();
   3517 L_36085C99:
   3518     ecx = MEM32(esi + 0x8); /* 0x36085C99: mov ecx, dword ptr [esi + 8] */
   3519     edi = eax; /* 0x36085C9C: mov edi, eax */
   3520     RECOMP_ICALL(0x36071430u); /* 0x36085C9E: call 0x36071430 */ /* not lifted */
   3521     RECOMP_FLAGS_IN();
   3522     /* test LO8(eax), LO8(eax) */ /* 0x36085CA3: test al, al */
   3523     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3524     _cf = 0;
   3525     _flag_k = FK_NARROW(FK_TEST, 24);
   3526     ecx = MEM32(esi + 0x8); /* 0x36085CA5: mov ecx, dword ptr [esi + 8] */
   3527     ecx = MEM32(ecx + 0x174); /* 0x36085CA8: mov ecx, dword ptr [ecx + 0x174] */
   3528     edx = MEM32(ecx); /* 0x36085CAE: mov edx, dword ptr [ecx] */
   3529     if (TEST_Z(_flag_a, _flag_b)) goto L_36085CBB; /* 0x36085CB0: je 0x36085cbb */
   3530 L_36085CB2:
   3531     PUSH32(esp, 2); /* 0x36085CB2: push 2 */
   3532     eax = ebp + (-0x4); /* 0x36085CB4: lea eax, [ebp - 4] */
   3533     PUSH32(esp, eax); /* 0x36085CB7: push eax */
   3534     PUSH32(esp, ebx); /* 0x36085CB8: push ebx */
   3535     goto L_36085CC1; /* 0x36085CB9: jmp 0x36085cc1 */
   3536 L_36085CBB:
   3537     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085CBB: push -1 */
   3538     PUSH32(esp, 0); /* 0x36085CBD: push 0 */
   3539     PUSH32(esp, 0); /* 0x36085CBF: push 0 */
   3540 L_36085CC1:
   3541     PUSH32(esp, ebx); /* 0x36085CC1: push ebx */
   3542     PUSH32(esp, 0); /* 0x36085CC2: push 0 */
   3543     PUSH32(esp, ebx); /* 0x36085CC4: push ebx */
   3544     PUSH32(esp, 0); /* 0x36085CC5: push 0 */
   3545     PUSH32(esp, 0); /* 0x36085CC7: push 0 */
   3546     PUSH32(esp, 0x3F800000u); /* 0x36085CC9: push 0x3f800000 */
   3547     PUSH32(esp, edi); /* 0x36085CCE: push edi */
   3548     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36085CCF: call dword ptr [edx + 0x14] */
   3549     RECOMP_FLAGS_IN();
   3550     MEM32(esi + 0xC) = eax; /* 0x36085CD2: mov dword ptr [esi + 0xc], eax */
   3551     eax = MEM32(esi + 0x14); /* 0x36085CD5: mov eax, dword ptr [esi + 0x14] */
   3552     PUSH32(esp, eax); /* 0x36085CD8: push eax */
   3553     RECOMP_ICALL(0x360F7B00u); /* 0x36085CD9: call 0x360f7b00 */ /* not lifted */
   3554     RECOMP_FLAGS_IN();
   3555     ecx = eax; /* 0x36085CDE: mov ecx, eax */
   3556     RECOMP_ICALL(0x360FB6C0u); /* 0x36085CE0: call 0x360fb6c0 */ /* not lifted */
   3557     RECOMP_FLAGS_IN();
   3558 L_36085CE5:
   3559     eax = esi; /* 0x36085CE5: mov eax, esi */
   3560     edi = POP32_VAL(esp); /* 0x36085CE7: pop edi */
   3561     esi = POP32_VAL(esp); /* 0x36085CE8: pop esi */
   3562     ebx = POP32_VAL(esp); /* 0x36085CE9: pop ebx */
   3563     esp = ebp; /* 0x36085CEA: mov esp, ebp */
   3564     ebp = POP32_VAL(esp); /* 0x36085CEC: pop ebp */
   3565     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085CED: ret  */
   3566 L_36085CEE:
   3567     /* test edx, edx */ /* 0x36085CEE: test edx, edx */
   3568     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3569     _cf = 0;
   3570     _flag_k = FK_TEST;
   3571     if (TEST_Z(_flag_a, _flag_b)) goto L_36085D10; /* 0x36085CF0: je 0x36085d10 */
   3572 L_36085CF2:
   3573     ecx = MEM32(esi + 0x8); /* 0x36085CF2: mov ecx, dword ptr [esi + 8] */
   3574     ecx = MEM32(ecx + 0x158); /* 0x36085CF5: mov ecx, dword ptr [ecx + 0x158] */
   3575     RECOMP_ICALL(0x36066A70u); /* 0x36085CFB: call 0x36066a70 */ /* not lifted */
   3576     RECOMP_FLAGS_IN();
   3577     edx = MEM32(esi + 0x14); /* 0x36085D00: mov edx, dword ptr [esi + 0x14] */
   3578     PUSH32(esp, edx); /* 0x36085D03: push edx */
   3579     RECOMP_ICALL(0x360F7B00u); /* 0x36085D04: call 0x360f7b00 */ /* not lifted */
   3580     RECOMP_FLAGS_IN();
   3581     ecx = eax; /* 0x36085D09: mov ecx, eax */
   3582     RECOMP_ICALL(0x360FB530u); /* 0x36085D0B: call 0x360fb530 */ /* not lifted */
   3583     RECOMP_FLAGS_IN();
   3584 L_36085D10:
   3585     eax = MEM32(esi + 0x8); /* 0x36085D10: mov eax, dword ptr [esi + 8] */
   3586     ecx = MEM32(eax + 0x174); /* 0x36085D13: mov ecx, dword ptr [eax + 0x174] */
   3587     eax = MEM32(ecx + 0x58); /* 0x36085D19: mov eax, dword ptr [ecx + 0x58] */
   3588     edx = MEM32(ecx); /* 0x36085D1C: mov edx, dword ptr [ecx] */
   3589     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085D1E: push -1 */
   3590     PUSH32(esp, 0); /* 0x36085D20: push 0 */
   3591     PUSH32(esp, 1); /* 0x36085D22: push 1 */
   3592     PUSH32(esp, 0); /* 0x36085D24: push 0 */
   3593     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085D26: push -1 */
   3594     PUSH32(esp, 0); /* 0x36085D28: push 0 */
   3595     PUSH32(esp, 0); /* 0x36085D2A: push 0 */
   3596     PUSH32(esp, 0x3F800000u); /* 0x36085D2C: push 0x3f800000 */
   3597     PUSH32(esp, eax); /* 0x36085D31: push eax */
   3598     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36085D32: call dword ptr [edx + 0x18] */
   3599     RECOMP_FLAGS_IN();
   3600     ecx = MEM32(esi + 0x8); /* 0x36085D35: mov ecx, dword ptr [esi + 8] */
   3601     RECOMP_ICALL(0x3606D5A0u); /* 0x36085D38: call 0x3606d5a0 */ /* not lifted */
   3602     RECOMP_FLAGS_IN();
   3603     /* test eax, eax */ /* 0x36085D3D: test eax, eax */
   3604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3605     _cf = 0;
   3606     _flag_k = FK_TEST;
   3607     if (TEST_Z(_flag_a, _flag_b)) goto L_36085D4A; /* 0x36085D3F: je 0x36085d4a */
   3608 L_36085D41:
   3609     PUSH32(esp, 0); /* 0x36085D41: push 0 */
   3610     ecx = eax; /* 0x36085D43: mov ecx, eax */
   3611     RECOMP_ICALL(0x360480E0u); /* 0x36085D45: call 0x360480e0 */ /* not lifted */
   3612     RECOMP_FLAGS_IN();
   3613 L_36085D4A:
   3614     PUSH32(esp, 0); /* 0x36085D4A: push 0 */
   3615     PUSH32(esp, 0); /* 0x36085D4C: push 0 */
   3616     ecx = esi; /* 0x36085D4E: mov ecx, esi */
   3617     RECOMP_ICALL(0x36086BD0u); /* 0x36085D50: call 0x36086bd0 */ /* not lifted */
   3618     RECOMP_FLAGS_IN();
   3619     edi = POP32_VAL(esp); /* 0x36085D55: pop edi */
   3620     esi = POP32_VAL(esp); /* 0x36085D56: pop esi */
   3621     ebx = POP32_VAL(esp); /* 0x36085D57: pop ebx */
   3622     esp = ebp; /* 0x36085D58: mov esp, ebp */
   3623     ebp = POP32_VAL(esp); /* 0x36085D5A: pop ebp */
   3624     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085D5B: ret  */
   3625     RECOMP_REGS_OUT();
   3626 }
   3627 
   3628 void sub_36085BC5(void) {
   3629     int _fpu_cmp = 0;
   3630     uint32_t _cf = 0;
   3631     int _df = 1;
   3632     uint32_t _flag_k = FK_NONE;
   3633     uint32_t _flag_a = 0, _flag_b = 0;
   3634     uint32_t _itail_tgt = 0;
   3635     RECOMP_REGS_LOCALS
   3636     RECOMP_ENTER(0x36085BC5u);
   3637 
   3638 L_36085BC5:
   3639     ecx = edi; /* 0x36085BC5: mov ecx, edi */
   3640     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085BC7: call dword ptr [edx + 4] */
   3641     RECOMP_FLAGS_IN();
   3642     PUSH32(esp, eax); /* 0x36085BCA: push eax */
   3643     RECOMP_ICALL(0x3601C590u); /* 0x36085BCB: call 0x3601c590 */ /* not lifted */
   3644     RECOMP_FLAGS_IN();
   3645     ecx = eax; /* 0x36085BD0: mov ecx, eax */
   3646     RECOMP_ICALL(0x3601CBF0u); /* 0x36085BD2: call 0x3601cbf0 */ /* not lifted */
   3647     RECOMP_FLAGS_IN();
   3648     eax = esi; /* 0x36085BD7: mov eax, esi */
   3649     edi = POP32_VAL(esp); /* 0x36085BD9: pop edi */
   3650     esi = POP32_VAL(esp); /* 0x36085BDA: pop esi */
   3651     ebx = POP32_VAL(esp); /* 0x36085BDB: pop ebx */
   3652     esp = ebp; /* 0x36085BDC: mov esp, ebp */
   3653     ebp = POP32_VAL(esp); /* 0x36085BDE: pop ebp */
   3654     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36085BDF: ret  */
   3655     RECOMP_REGS_OUT();
   3656 }
   3657 
   3658 void sub_36085D60(void) {
   3659     int _fpu_cmp = 0;
   3660     uint32_t _cf = 0;
   3661     int _df = 1;
   3662     uint32_t _flag_k = FK_NONE;
   3663     uint32_t _flag_a = 0, _flag_b = 0;
   3664     uint32_t _itail_tgt = 0;
   3665     RECOMP_REGS_LOCALS
   3666     RECOMP_ENTER(0x36085D60u);
   3667 
   3668 L_36085D60:
   3669     PUSH32(esp, ebp); /* 0x36085D60: push ebp */
   3670     ebp = esp; /* 0x36085D61: mov ebp, esp */
   3671     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085D63: push -1 */
   3672     PUSH32(esp, 0x36165AF8u); /* 0x36085D65: push 0x36165af8 */
   3673     eax = MEM32(FS_BASE + (0)); /* 0x36085D6A: mov eax, dword ptr fs:[0] */
   3674     PUSH32(esp, eax); /* 0x36085D70: push eax */
   3675     MEM32(FS_BASE + (0)) = esp; /* 0x36085D71: mov dword ptr fs:[0], esp */
   3676     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   3677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3678     esp = esp - 0x34u; /* 0x36085D78: sub esp, 0x34 */
   3679     _flag_k = FK_CMP;
   3680     eax = MEM32(ebp + 0xC); /* 0x36085D7B: mov eax, dword ptr [ebp + 0xc] */
   3681     PUSH32(esp, ebx); /* 0x36085D7E: push ebx */
   3682     PUSH32(esp, esi); /* 0x36085D7F: push esi */
   3683     PUSH32(esp, edi); /* 0x36085D80: push edi */
   3684     esi = ecx; /* 0x36085D81: mov esi, ecx */
   3685     ecx = MEM32(ebp + 0x8); /* 0x36085D83: mov ecx, dword ptr [ebp + 8] */
   3686     PUSH32(esp, eax); /* 0x36085D86: push eax */
   3687     PUSH32(esp, ecx); /* 0x36085D87: push ecx */
   3688     ecx = esi; /* 0x36085D88: mov ecx, esi */
   3689     MEM32(ebp + (-0x10)) = esi; /* 0x36085D8A: mov dword ptr [ebp - 0x10], esi */
   3690     RECOMP_ICALL(0x36086B70u); /* 0x36085D8D: call 0x36086b70 */ /* not lifted */
   3691     RECOMP_FLAGS_IN();
   3692     edx = MEM32(esi + 0x8); /* 0x36085D92: mov edx, dword ptr [esi + 8] */
   3693     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3694     edi = 0; /* 0x36085D95: xor edi, edi */
   3695     _cf = 0;
   3696     _flag_k = FK_TEST;
   3697     MEM32(esi + 0xC) = edi; /* 0x36085D97: mov dword ptr [esi + 0xc], edi */
   3698     MEM32(esi + 0x10) = 0xFFFFFFFFu; /* 0x36085D9A: mov dword ptr [esi + 0x10], 0xffffffff */
   3699     MEM32(esi + 0x14) = edi; /* 0x36085DA1: mov dword ptr [esi + 0x14], edi */
   3700     MEM32(esi) = 0x36171B88u; /* 0x36085DA4: mov dword ptr [esi], 0x36171b88 */
   3701     ecx = MEM32(edx + 0x16C); /* 0x36085DAA: mov ecx, dword ptr [edx + 0x16c] */
   3702     /* cmp MEM32(ecx + 0x50), 1 */ /* 0x36085DB0: cmp dword ptr [ecx + 0x50], 1 */
   3703     _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1);
   3704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3705     _flag_k = FK_CMP;
   3706     MEM32(ebp + (-0x4)) = edi; /* 0x36085DB4: mov dword ptr [ebp - 4], edi */
   3707     if (CMP_EQ(_flag_a, _flag_b)) goto L_36085DC0; /* 0x36085DB7: je 0x36085dc0 */
   3708 L_36085DB9:
   3709     eax = MEM32(ecx); /* 0x36085DB9: mov eax, dword ptr [ecx] */
   3710     PUSH32(esp, 1); /* 0x36085DBB: push 1 */
   3711     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x36085DBD: call dword ptr [eax + 0x44] */
   3712     RECOMP_FLAGS_IN();
   3713 L_36085DC0:
   3714     ecx = MEM32(esi + 0x8); /* 0x36085DC0: mov ecx, dword ptr [esi + 8] */
   3715     RECOMP_ICALL(0x36071400u); /* 0x36085DC3: call 0x36071400 */ /* not lifted */
   3716     RECOMP_FLAGS_IN();
   3717     ecx = MEM32(esi + 0x8); /* 0x36085DC8: mov ecx, dword ptr [esi + 8] */
   3718     PUSH32(esp, 1); /* 0x36085DCB: push 1 */
   3719     RECOMP_ICALL(0x36071460u); /* 0x36085DCD: call 0x36071460 */ /* not lifted */
   3720     RECOMP_FLAGS_IN();
   3721     ecx = MEM32(esi + 0x8); /* 0x36085DD2: mov ecx, dword ptr [esi + 8] */
   3722     edx = MEM32(ecx + 0xE4); /* 0x36085DD5: mov edx, dword ptr [ecx + 0xe4] */
   3723     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   3724     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3725     ecx = ecx + 0xE4u; /* 0x36085DDB: add ecx, 0xe4 */
   3726     _flag_k = FK_ADD;
   3727     PUSH32(esp, 2); /* 0x36085DE1: push 2 */
   3728     PUSH32(esp, 0x1Bu); /* 0x36085DE3: push 0x1b */
   3729     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085DE5: call dword ptr [edx + 4] */
   3730     RECOMP_FLAGS_IN();
   3731     ecx = MEM32(esi + 0x8); /* 0x36085DE8: mov ecx, dword ptr [esi + 8] */
   3732     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085DEB: call dword ptr [0x3616ffb0] */
   3733     RECOMP_FLAGS_IN();
   3734     edx = eax; /* 0x36085DF1: mov edx, eax */
   3735     eax = MEM32(edx); /* 0x36085DF3: mov eax, dword ptr [edx] */
   3736     MEM32(ebp + (-0x40)) = eax; /* 0x36085DF5: mov dword ptr [ebp - 0x40], eax */
   3737     ecx = MEM32(edx + 0x4); /* 0x36085DF8: mov ecx, dword ptr [edx + 4] */
   3738     MEM32(ebp + (-0x3C)) = ecx; /* 0x36085DFB: mov dword ptr [ebp - 0x3c], ecx */
   3739     edx = MEM32(edx + 0x8); /* 0x36085DFE: mov edx, dword ptr [edx + 8] */
   3740     MEM32(ebp + (-0x30)) = ecx; /* 0x36085E01: mov dword ptr [ebp - 0x30], ecx */
   3741     ecx = MEM32(esi + 0x8); /* 0x36085E04: mov ecx, dword ptr [esi + 8] */
   3742     /* cmp ecx, edi */ /* 0x36085E07: cmp ecx, edi */
   3743     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3745     _flag_k = FK_CMP;
   3746     MEM32(ebp + (-0x38)) = edx; /* 0x36085E09: mov dword ptr [ebp - 0x38], edx */
   3747     MEM32(ebp + (-0x28)) = 0; /* 0x36085E0C: mov dword ptr [ebp - 0x28], 0 */
   3748     MEM32(ebp + (-0x24)) = 0x3F800000u; /* 0x36085E13: mov dword ptr [ebp - 0x24], 0x3f800000 */
   3749     MEM32(ebp + (-0x20)) = 0; /* 0x36085E1A: mov dword ptr [ebp - 0x20], 0 */
   3750     MEM32(ebp + (-0x34)) = eax; /* 0x36085E21: mov dword ptr [ebp - 0x34], eax */
   3751     MEM32(ebp + (-0x2C)) = edx; /* 0x36085E24: mov dword ptr [ebp - 0x2c], edx */
   3752     if (CMP_EQ(_flag_a, _flag_b)) goto L_36085E68; /* 0x36085E27: je 0x36085e68 */
   3753 L_36085E29:
   3754     edi = MEM32(0x3616FFAC); /* 0x36085E29: mov edi, dword ptr [0x3616ffac] */
   3755     RECOMP_ICALL(edi); /* 0x36085E2F: call edi */
   3756     RECOMP_FLAGS_IN();
   3757     /* test eax, eax */ /* 0x36085E31: test eax, eax */
   3758     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3759     _cf = 0;
   3760     _flag_k = FK_TEST;
   3761     if (TEST_Z(_flag_a, _flag_b)) goto L_36085E68; /* 0x36085E33: je 0x36085e68 */
   3762 L_36085E35:
   3763     ecx = MEM32(esi + 0x8); /* 0x36085E35: mov ecx, dword ptr [esi + 8] */
   3764     RECOMP_ICALL(edi); /* 0x36085E38: call edi */
   3765     RECOMP_FLAGS_IN();
   3766     ebx = MEM32(0x361700C0); /* 0x36085E3A: mov ebx, dword ptr [0x361700c0] */
   3767     ecx = eax; /* 0x36085E40: mov ecx, eax */
   3768     RECOMP_ICALL(ebx); /* 0x36085E42: call ebx */
   3769     RECOMP_FLAGS_IN();
   3770     /* test eax, eax */ /* 0x36085E44: test eax, eax */
   3771     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3772     _cf = 0;
   3773     _flag_k = FK_TEST;
   3774     if (TEST_Z(_flag_a, _flag_b)) goto L_36085E68; /* 0x36085E46: je 0x36085e68 */
   3775 L_36085E48:
   3776     ecx = MEM32(esi + 0x8); /* 0x36085E48: mov ecx, dword ptr [esi + 8] */
   3777     RECOMP_ICALL(edi); /* 0x36085E4B: call edi */
   3778     RECOMP_FLAGS_IN();
   3779     ecx = eax; /* 0x36085E4D: mov ecx, eax */
   3780     RECOMP_ICALL(ebx); /* 0x36085E4F: call ebx */
   3781     RECOMP_FLAGS_IN();
   3782     edx = MEM32(eax); /* 0x36085E51: mov edx, dword ptr [eax] */
   3783     PUSH32(esp, 0); /* 0x36085E53: push 0 */
   3784     PUSH32(esp, 0); /* 0x36085E55: push 0 */
   3785     ecx = ebp + (-0x28); /* 0x36085E57: lea ecx, [ebp - 0x28] */
   3786     PUSH32(esp, ecx); /* 0x36085E5A: push ecx */
   3787     ecx = ebp + (-0x34); /* 0x36085E5B: lea ecx, [ebp - 0x34] */
   3788     PUSH32(esp, ecx); /* 0x36085E5E: push ecx */
   3789     ecx = ebp + (-0x40); /* 0x36085E5F: lea ecx, [ebp - 0x40] */
   3790     PUSH32(esp, ecx); /* 0x36085E62: push ecx */
   3791     ecx = eax; /* 0x36085E63: mov ecx, eax */
   3792     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085E65: call dword ptr [edx + 4] */
   3793     RECOMP_FLAGS_IN();
   3794 L_36085E68:
   3795     PUSH32(esp, 0x361C54F8u); /* 0x36085E68: push 0x361c54f8 */
   3796     RECOMP_ICALL(0x3601C590u); /* 0x36085E6D: call 0x3601c590 */ /* not lifted */
   3797     RECOMP_FLAGS_IN();
   3798     ecx = eax; /* 0x36085E72: mov ecx, eax */
   3799     RECOMP_ICALL(0x3601CBC0u); /* 0x36085E74: call 0x3601cbc0 */ /* not lifted */
   3800     RECOMP_FLAGS_IN();
   3801     PUSH32(esp, 0x361C54E0u); /* 0x36085E79: push 0x361c54e0 */
   3802     MEM32(esi + 0x18) = eax; /* 0x36085E7E: mov dword ptr [esi + 0x18], eax */
   3803     RECOMP_ICALL(0x3601C590u); /* 0x36085E81: call 0x3601c590 */ /* not lifted */
   3804     RECOMP_FLAGS_IN();
   3805     ecx = eax; /* 0x36085E86: mov ecx, eax */
   3806     RECOMP_ICALL(0x3601CBC0u); /* 0x36085E88: call 0x3601cbc0 */ /* not lifted */
   3807     RECOMP_FLAGS_IN();
   3808     ecx = MEM32(esi + 0x8); /* 0x36085E8D: mov ecx, dword ptr [esi + 8] */
   3809     MEM32(esi + 0x1C) = eax; /* 0x36085E90: mov dword ptr [esi + 0x1c], eax */
   3810     RECOMP_ICALL(0x36072000u); /* 0x36085E93: call 0x36072000 */ /* not lifted */
   3811     RECOMP_FLAGS_IN();
   3812     ecx = eax; /* 0x36085E98: mov ecx, eax */
   3813     RECOMP_ICALL(0x360531F0u); /* 0x36085E9A: call 0x360531f0 */ /* not lifted */
   3814     RECOMP_FLAGS_IN();
   3815     eax = MEM32(esi + 0x8); /* 0x36085E9F: mov eax, dword ptr [esi + 8] */
   3816     edi = MEM32(eax + 0x174); /* 0x36085EA2: mov edi, dword ptr [eax + 0x174] */
   3817     edx = MEM32(eax + 0xE4); /* 0x36085EA8: mov edx, dword ptr [eax + 0xe4] */
   3818     ebx = MEM32(edi); /* 0x36085EAE: mov ebx, dword ptr [edi] */
   3819     PUSH32(esp, 0xFFFFFFFFu); /* 0x36085EB0: push -1 */
   3820     PUSH32(esp, 0); /* 0x36085EB2: push 0 */
   3821     PUSH32(esp, 0); /* 0x36085EB4: push 0 */
   3822     PUSH32(esp, 1); /* 0x36085EB6: push 1 */
   3823     PUSH32(esp, 0); /* 0x36085EB8: push 0 */
   3824     PUSH32(esp, 1); /* 0x36085EBA: push 1 */
   3825     PUSH32(esp, 0); /* 0x36085EBC: push 0 */
   3826     PUSH32(esp, 0); /* 0x36085EBE: push 0 */
   3827     PUSH32(esp, 0x3F800000u); /* 0x36085EC0: push 0x3f800000 */
   3828     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   3829     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3830     eax = eax + 0xE4u; /* 0x36085EC5: add eax, 0xe4 */
   3831     _flag_k = FK_ADD;
   3832     PUSH32(esp, 2); /* 0x36085ECA: push 2 */
   3833     PUSH32(esp, 0x183u); /* 0x36085ECC: push 0x183 */
   3834     ecx = eax; /* 0x36085ED1: mov ecx, eax */
   3835     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085ED3: call dword ptr [edx + 4] */
   3836     RECOMP_FLAGS_IN();
   3837     PUSH32(esp, eax); /* 0x36085ED6: push eax */
   3838     ecx = edi; /* 0x36085ED7: mov ecx, edi */
   3839     RECOMP_ICALL(MEM32(ebx + 0x14)); /* 0x36085ED9: call dword ptr [ebx + 0x14] */
   3840     RECOMP_FLAGS_IN();
   3841     /* test eax, eax */ /* 0x36085EDC: test eax, eax */
   3842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3843     _cf = 0;
   3844     _flag_k = FK_TEST;
   3845     MEM32(esi + 0x10) = eax; /* 0x36085EDE: mov dword ptr [esi + 0x10], eax */
   3846     if (TEST_LE(_flag_a, _flag_b)) goto L_36085F03; /* 0x36085EE1: jle 0x36085f03 */
   3847 L_36085EE3:
   3848     ecx = MEM32(esi + 0x8); /* 0x36085EE3: mov ecx, dword ptr [esi + 8] */
   3849     edx = MEM32(ecx + 0x174); /* 0x36085EE6: mov edx, dword ptr [ecx + 0x174] */
   3850     MEM32(edx + 0xC0) = eax; /* 0x36085EEC: mov dword ptr [edx + 0xc0], eax */
   3851     eax = MEM32(esi + 0x8); /* 0x36085EF2: mov eax, dword ptr [esi + 8] */
   3852     ecx = MEM32(eax + 0x174); /* 0x36085EF5: mov ecx, dword ptr [eax + 0x174] */
   3853     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
   3854     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3855     ecx = ecx + 0x54u; /* 0x36085EFB: add ecx, 0x54 */
   3856     _flag_k = FK_ADD;
   3857     RECOMP_ICALL(0x3604E350u); /* 0x36085EFE: call 0x3604e350 */ /* not lifted */
   3858     RECOMP_FLAGS_IN();
   3859 L_36085F03:
   3860     eax = MEM32(esi + 0x8); /* 0x36085F03: mov eax, dword ptr [esi + 8] */
   3861     SET_LO8(ecx, MEM8(eax + 0x1B4)); /* 0x36085F06: mov cl, byte ptr [eax + 0x1b4] */
   3862     /* test LO8(ecx), LO8(ecx) */ /* 0x36085F0C: test cl, cl */
   3863     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3864     _cf = 0;
   3865     _flag_k = FK_NARROW(FK_TEST, 24);
   3866     if (TEST_Z(_flag_a, _flag_b)) goto L_36085F9B; /* 0x36085F0E: je 0x36085f9b */
   3867 L_36085F14:
   3868     edx = MEM32(eax + 0x170); /* 0x36085F14: mov edx, dword ptr [eax + 0x170] */
   3869     ecx = MEM32(edx + 0x8); /* 0x36085F1A: mov ecx, dword ptr [edx + 8] */
   3870     /* test ecx, ecx */ /* 0x36085F1D: test ecx, ecx */
   3871     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3872     _cf = 0;
   3873     _flag_k = FK_TEST;
   3874     if (TEST_Z(_flag_a, _flag_b)) goto L_36085F9B; /* 0x36085F1F: je 0x36085f9b */
   3875 L_36085F21:
   3876     /* test eax, eax */ /* 0x36085F21: test eax, eax */
   3877     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3878     _cf = 0;
   3879     _flag_k = FK_TEST;
   3880     if (TEST_Z(_flag_a, _flag_b)) goto L_36086078; /* 0x36085F23: je 0x36086078 */
   3881 L_36085F29:
   3882     /* test edx, edx */ /* 0x36085F29: test edx, edx */
   3883     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3884     _cf = 0;
   3885     _flag_k = FK_TEST;
   3886     if (TEST_Z(_flag_a, _flag_b)) goto L_36086078; /* 0x36085F2B: je 0x36086078 */
   3887 L_36085F31:
   3888     PUSH32(esp, 0x1Eu); /* 0x36085F31: push 0x1e */
   3889     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   3890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3891     ecx = ecx + 0xCu; /* 0x36085F33: add ecx, 0xc */
   3892     _flag_k = FK_ADD;
   3893     RECOMP_ICALL(0x3608ABF0u); /* 0x36085F36: call 0x3608abf0 */ /* not lifted */
   3894     RECOMP_FLAGS_IN();
   3895     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3897     esp = esp - 0xCu; /* 0x36085F3B: sub esp, 0xc */
   3898     _flag_k = FK_CMP;
   3899     ecx = esp; /* 0x36085F3E: mov ecx, esp */
   3900     PUSH32(esp, 1); /* 0x36085F40: push 1 */
   3901     PUSH32(esp, 0x64u); /* 0x36085F42: push 0x64 */
   3902     PUSH32(esp, 0); /* 0x36085F44: push 0 */
   3903     MEM32(ebp + (-0x1C)) = 0; /* 0x36085F46: mov dword ptr [ebp - 0x1c], 0 */
   3904     edx = MEM32(ebp + (-0x1C)); /* 0x36085F4D: mov edx, dword ptr [ebp - 0x1c] */
   3905     MEM32(ecx) = edx; /* 0x36085F50: mov dword ptr [ecx], edx */
   3906     edi = eax; /* 0x36085F52: mov edi, eax */
   3907     MEM32(ebp + (-0x18)) = 0; /* 0x36085F54: mov dword ptr [ebp - 0x18], 0 */
   3908     eax = MEM32(ebp + (-0x18)); /* 0x36085F5B: mov eax, dword ptr [ebp - 0x18] */
   3909     PUSH32(esp, 0); /* 0x36085F5E: push 0 */
   3910     MEM32(ecx + 0x4) = eax; /* 0x36085F60: mov dword ptr [ecx + 4], eax */
   3911     MEM32(ebp + (-0x14)) = 0; /* 0x36085F63: mov dword ptr [ebp - 0x14], 0 */
   3912     edx = MEM32(ebp + (-0x14)); /* 0x36085F6A: mov edx, dword ptr [ebp - 0x14] */
   3913     PUSH32(esp, 0x3F800000u); /* 0x36085F6D: push 0x3f800000 */
   3914     MEM32(ecx + 0x8) = edx; /* 0x36085F72: mov dword ptr [ecx + 8], edx */
   3915     ecx = MEM32(esi + 0x8); /* 0x36085F75: mov ecx, dword ptr [esi + 8] */
   3916     PUSH32(esp, 0); /* 0x36085F78: push 0 */
   3917     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085F7A: call dword ptr [0x3616ffb0] */
   3918     RECOMP_FLAGS_IN();
   3919     edx = MEM32(eax); /* 0x36085F80: mov edx, dword ptr [eax] */
   3920     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3922     esp = esp - 0xCu; /* 0x36085F82: sub esp, 0xc */
   3923     _flag_k = FK_CMP;
   3924     ecx = esp; /* 0x36085F85: mov ecx, esp */
   3925     MEM32(ecx) = edx; /* 0x36085F87: mov dword ptr [ecx], edx */
   3926     edx = MEM32(eax + 0x4); /* 0x36085F89: mov edx, dword ptr [eax + 4] */
   3927     eax = MEM32(eax + 0x8); /* 0x36085F8C: mov eax, dword ptr [eax + 8] */
   3928     MEM32(ecx + 0x4) = edx; /* 0x36085F8F: mov dword ptr [ecx + 4], edx */
   3929     MEM32(ecx + 0x8) = eax; /* 0x36085F92: mov dword ptr [ecx + 8], eax */
   3930     PUSH32(esp, edi); /* 0x36085F95: push edi */
   3931     goto L_3608606C; /* 0x36085F96: jmp 0x3608606c */
   3932 L_36085F9B:
   3933     edx = MEM32(eax + 0xE4); /* 0x36085F9B: mov edx, dword ptr [eax + 0xe4] */
   3934     ecx = eax + 0xE4; /* 0x36085FA1: lea ecx, [eax + 0xe4] */
   3935     PUSH32(esp, 2); /* 0x36085FA7: push 2 */
   3936     PUSH32(esp, 0x3Bu); /* 0x36085FA9: push 0x3b */
   3937     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36085FAB: call dword ptr [edx + 4] */
   3938     RECOMP_FLAGS_IN();
   3939     /* cmp eax, 3 */ /* 0x36085FAE: cmp eax, 3 */
   3940     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   3941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3942     _flag_k = FK_CMP;
   3943     if (CMP_NE(_flag_a, _flag_b)) goto L_36086010; /* 0x36085FB1: jne 0x36086010 */
   3944 L_36085FB3:
   3945     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3947     esp = esp - 0xCu; /* 0x36085FB3: sub esp, 0xc */
   3948     _flag_k = FK_CMP;
   3949     eax = esp; /* 0x36085FB6: mov eax, esp */
   3950     PUSH32(esp, 1); /* 0x36085FB8: push 1 */
   3951     PUSH32(esp, 0x64u); /* 0x36085FBA: push 0x64 */
   3952     PUSH32(esp, 0); /* 0x36085FBC: push 0 */
   3953     MEM32(ebp + (-0x1C)) = 0; /* 0x36085FBE: mov dword ptr [ebp - 0x1c], 0 */
   3954     ecx = MEM32(ebp + (-0x1C)); /* 0x36085FC5: mov ecx, dword ptr [ebp - 0x1c] */
   3955     MEM32(eax) = ecx; /* 0x36085FC8: mov dword ptr [eax], ecx */
   3956     MEM32(ebp + (-0x18)) = 0; /* 0x36085FCA: mov dword ptr [ebp - 0x18], 0 */
   3957     edx = MEM32(ebp + (-0x18)); /* 0x36085FD1: mov edx, dword ptr [ebp - 0x18] */
   3958     PUSH32(esp, 0); /* 0x36085FD4: push 0 */
   3959     MEM32(ebp + (-0x14)) = 0; /* 0x36085FD6: mov dword ptr [ebp - 0x14], 0 */
   3960     ecx = MEM32(ebp + (-0x14)); /* 0x36085FDD: mov ecx, dword ptr [ebp - 0x14] */
   3961     MEM32(eax + 0x4) = edx; /* 0x36085FE0: mov dword ptr [eax + 4], edx */
   3962     PUSH32(esp, 0x3F800000u); /* 0x36085FE3: push 0x3f800000 */
   3963     MEM32(eax + 0x8) = ecx; /* 0x36085FE8: mov dword ptr [eax + 8], ecx */
   3964     ecx = MEM32(esi + 0x8); /* 0x36085FEB: mov ecx, dword ptr [esi + 8] */
   3965     PUSH32(esp, 0); /* 0x36085FEE: push 0 */
   3966     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085FF0: call dword ptr [0x3616ffb0] */
   3967     RECOMP_FLAGS_IN();
   3968     ecx = MEM32(eax); /* 0x36085FF6: mov ecx, dword ptr [eax] */
   3969     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3971     esp = esp - 0xCu; /* 0x36085FF8: sub esp, 0xc */
   3972     _flag_k = FK_CMP;
   3973     edx = esp; /* 0x36085FFB: mov edx, esp */
   3974     MEM32(edx) = ecx; /* 0x36085FFD: mov dword ptr [edx], ecx */
   3975     ecx = MEM32(eax + 0x4); /* 0x36085FFF: mov ecx, dword ptr [eax + 4] */
   3976     eax = MEM32(eax + 0x8); /* 0x36086002: mov eax, dword ptr [eax + 8] */
   3977     MEM32(edx + 0x4) = ecx; /* 0x36086005: mov dword ptr [edx + 4], ecx */
   3978     ecx = MEM32(esi + 0x18); /* 0x36086008: mov ecx, dword ptr [esi + 0x18] */
   3979     MEM32(edx + 0x8) = eax; /* 0x3608600B: mov dword ptr [edx + 8], eax */
   3980     goto L_3608606B; /* 0x3608600E: jmp 0x3608606b */
   3981 L_36086010:
   3982     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3984     esp = esp - 0xCu; /* 0x36086010: sub esp, 0xc */
   3985     _flag_k = FK_CMP;
   3986     edx = esp; /* 0x36086013: mov edx, esp */
   3987     PUSH32(esp, 1); /* 0x36086015: push 1 */
   3988     PUSH32(esp, 0x64u); /* 0x36086017: push 0x64 */
   3989     PUSH32(esp, 0); /* 0x36086019: push 0 */
   3990     MEM32(ebp + (-0x1C)) = 0; /* 0x3608601B: mov dword ptr [ebp - 0x1c], 0 */
   3991     eax = MEM32(ebp + (-0x1C)); /* 0x36086022: mov eax, dword ptr [ebp - 0x1c] */
   3992     MEM32(edx) = eax; /* 0x36086025: mov dword ptr [edx], eax */
   3993     PUSH32(esp, 0); /* 0x36086027: push 0 */
   3994     MEM32(ebp + (-0x18)) = 0; /* 0x36086029: mov dword ptr [ebp - 0x18], 0 */
   3995     ecx = MEM32(ebp + (-0x18)); /* 0x36086030: mov ecx, dword ptr [ebp - 0x18] */
   3996     MEM32(edx + 0x4) = ecx; /* 0x36086033: mov dword ptr [edx + 4], ecx */
   3997     ecx = MEM32(esi + 0x8); /* 0x36086036: mov ecx, dword ptr [esi + 8] */
   3998     PUSH32(esp, 0x3F800000u); /* 0x36086039: push 0x3f800000 */
   3999     MEM32(ebp + (-0x14)) = 0; /* 0x3608603E: mov dword ptr [ebp - 0x14], 0 */
   4000     eax = MEM32(ebp + (-0x14)); /* 0x36086045: mov eax, dword ptr [ebp - 0x14] */
   4001     PUSH32(esp, 0); /* 0x36086048: push 0 */
   4002     MEM32(edx + 0x8) = eax; /* 0x3608604A: mov dword ptr [edx + 8], eax */
   4003     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608604D: call dword ptr [0x3616ffb0] */
   4004     RECOMP_FLAGS_IN();
   4005     edx = MEM32(eax); /* 0x36086053: mov edx, dword ptr [eax] */
   4006     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4008     esp = esp - 0xCu; /* 0x36086055: sub esp, 0xc */
   4009     _flag_k = FK_CMP;
   4010     ecx = esp; /* 0x36086058: mov ecx, esp */
   4011     MEM32(ecx) = edx; /* 0x3608605A: mov dword ptr [ecx], edx */
   4012     edx = MEM32(eax + 0x4); /* 0x3608605C: mov edx, dword ptr [eax + 4] */
   4013     eax = MEM32(eax + 0x8); /* 0x3608605F: mov eax, dword ptr [eax + 8] */
   4014     MEM32(ecx + 0x4) = edx; /* 0x36086062: mov dword ptr [ecx + 4], edx */
   4015     MEM32(ecx + 0x8) = eax; /* 0x36086065: mov dword ptr [ecx + 8], eax */
   4016     ecx = MEM32(esi + 0x1C); /* 0x36086068: mov ecx, dword ptr [esi + 0x1c] */
   4017 L_3608606B:
   4018     PUSH32(esp, ecx); /* 0x3608606B: push ecx */
   4019 L_3608606C:
   4020     RECOMP_ICALL(0x3601C590u); /* 0x3608606C: call 0x3601c590 */ /* not lifted */
   4021     RECOMP_FLAGS_IN();
   4022     ecx = eax; /* 0x36086071: mov ecx, eax */
   4023     RECOMP_ICALL(0x3601CBF0u); /* 0x36086073: call 0x3601cbf0 */ /* not lifted */
   4024     RECOMP_FLAGS_IN();
   4025 L_36086078:
   4026     edx = MEM32(esi + 0x8); /* 0x36086078: mov edx, dword ptr [esi + 8] */
   4027     ecx = MEM32(edx + 0x158); /* 0x3608607B: mov ecx, dword ptr [edx + 0x158] */
   4028     RECOMP_ICALL(0x36066EA0u); /* 0x36086081: call 0x36066ea0 */ /* not lifted */
   4029     RECOMP_FLAGS_IN();
   4030     ecx = MEM32(esi + 0x8); /* 0x36086086: mov ecx, dword ptr [esi + 8] */
   4031     PUSH32(esp, 9); /* 0x36086089: push 9 */
   4032     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4034     ecx = ecx + 0xE4u; /* 0x3608608B: add ecx, 0xe4 */
   4035     _flag_k = FK_ADD;
   4036     RECOMP_ICALL(0x36002C10u); /* 0x36086091: call 0x36002c10 */ /* not lifted */
   4037     RECOMP_FLAGS_IN();
   4038     eax = MEM32(esi + 0x8); /* 0x36086096: mov eax, dword ptr [esi + 8] */
   4039     ecx = eax + 0xE4; /* 0x36086099: lea ecx, [eax + 0xe4] */
   4040     eax = MEM32(ecx); /* 0x3608609F: mov eax, dword ptr [ecx] */
   4041     PUSH32(esp, 0x20u); /* 0x360860A1: push 0x20 */
   4042     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x360860A3: call dword ptr [eax + 0x20] */
   4043     RECOMP_FLAGS_IN();
   4044     ecx = MEM32(esi + 0x8); /* 0x360860A6: mov ecx, dword ptr [esi + 8] */
   4045     PUSH32(esp, 0x14u); /* 0x360860A9: push 0x14 */
   4046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4047     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4048     ecx = ecx + 0xE4u; /* 0x360860AB: add ecx, 0xe4 */
   4049     _flag_k = FK_ADD;
   4050     RECOMP_ICALL(0x36002180u); /* 0x360860B1: call 0x36002180 */ /* not lifted */
   4051     RECOMP_FLAGS_IN();
   4052     /* test LO8(eax), LO8(eax) */ /* 0x360860B6: test al, al */
   4053     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4054     _cf = 0;
   4055     _flag_k = FK_NARROW(FK_TEST, 24);
   4056     if (TEST_Z(_flag_a, _flag_b)) goto L_360860F3; /* 0x360860B8: je 0x360860f3 */
   4057 L_360860BA:
   4058     eax = MEM32(esi + 0x8); /* 0x360860BA: mov eax, dword ptr [esi + 8] */
   4059     /* test eax, eax */ /* 0x360860BD: test eax, eax */
   4060     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4061     _cf = 0;
   4062     _flag_k = FK_TEST;
   4063     if (TEST_Z(_flag_a, _flag_b)) goto L_360860C9; /* 0x360860BF: je 0x360860c9 */
   4064 L_360860C1:
   4065     edx = eax + 0xE4; /* 0x360860C1: lea edx, [eax + 0xe4] */
   4066     goto L_360860CB; /* 0x360860C7: jmp 0x360860cb */
   4067 L_360860C9:
   4068     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4069     edx = 0; /* 0x360860C9: xor edx, edx */
   4070     _cf = 0;
   4071     _flag_k = FK_TEST;
   4072 L_360860CB:
   4073     edi = MEM32(eax + 0xE4); /* 0x360860CB: mov edi, dword ptr [eax + 0xe4] */
   4074     PUSH32(esp, 0x362EA510u); /* 0x360860D1: push 0x362ea510 */
   4075     PUSH32(esp, 0); /* 0x360860D6: push 0 */
   4076     PUSH32(esp, edx); /* 0x360860D8: push edx */
   4077     ecx = eax + 0xE4; /* 0x360860D9: lea ecx, [eax + 0xe4] */
   4078     PUSH32(esp, 0x14u); /* 0x360860DF: push 0x14 */
   4079     RECOMP_ICALL(0x360020C0u); /* 0x360860E1: call 0x360020c0 */ /* not lifted */
   4080     RECOMP_FLAGS_IN();
   4081     ecx = MEM32(esi + 0x8); /* 0x360860E6: mov ecx, dword ptr [esi + 8] */
   4082     PUSH32(esp, eax); /* 0x360860E9: push eax */
   4083     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4084     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4085     ecx = ecx + 0xE4u; /* 0x360860EA: add ecx, 0xe4 */
   4086     _flag_k = FK_ADD;
   4087     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x360860F0: call dword ptr [edi + 0x34] */
   4088     RECOMP_FLAGS_IN();
   4089 L_360860F3:
   4090     ecx = MEM32(ebp + (-0xC)); /* 0x360860F3: mov ecx, dword ptr [ebp - 0xc] */
   4091     edi = POP32_VAL(esp); /* 0x360860F6: pop edi */
   4092     eax = esi; /* 0x360860F7: mov eax, esi */
   4093     esi = POP32_VAL(esp); /* 0x360860F9: pop esi */
   4094     MEM32(FS_BASE + (0)) = ecx; /* 0x360860FA: mov dword ptr fs:[0], ecx */
   4095     ebx = POP32_VAL(esp); /* 0x36086101: pop ebx */
   4096     esp = ebp; /* 0x36086102: mov esp, ebp */
   4097     ebp = POP32_VAL(esp); /* 0x36086104: pop ebp */
   4098     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086105: ret 8 */
   4099     RECOMP_REGS_OUT();
   4100 }
   4101 
   4102 void sub_36085F5B(void) {
   4103     int _fpu_cmp = 0;
   4104     uint32_t _cf = 0;
   4105     int _df = 1;
   4106     uint32_t _flag_k = FK_NONE;
   4107     uint32_t _flag_a = 0, _flag_b = 0;
   4108     uint32_t _itail_tgt = 0;
   4109     RECOMP_REGS_LOCALS
   4110     RECOMP_ENTER(0x36085F5Bu);
   4111 
   4112 L_36085F5B:
   4113     eax = MEM32(ebp + (-0x18)); /* 0x36085F5B: mov eax, dword ptr [ebp - 0x18] */
   4114     PUSH32(esp, 0); /* 0x36085F5E: push 0 */
   4115     MEM32(ecx + 0x4) = eax; /* 0x36085F60: mov dword ptr [ecx + 4], eax */
   4116     MEM32(ebp + (-0x14)) = 0; /* 0x36085F63: mov dword ptr [ebp - 0x14], 0 */
   4117     edx = MEM32(ebp + (-0x14)); /* 0x36085F6A: mov edx, dword ptr [ebp - 0x14] */
   4118     PUSH32(esp, 0x3F800000u); /* 0x36085F6D: push 0x3f800000 */
   4119     MEM32(ecx + 0x8) = edx; /* 0x36085F72: mov dword ptr [ecx + 8], edx */
   4120     ecx = MEM32(esi + 0x8); /* 0x36085F75: mov ecx, dword ptr [esi + 8] */
   4121     PUSH32(esp, 0); /* 0x36085F78: push 0 */
   4122     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085F7A: call dword ptr [0x3616ffb0] */
   4123     RECOMP_FLAGS_IN();
   4124     edx = MEM32(eax); /* 0x36085F80: mov edx, dword ptr [eax] */
   4125     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4127     esp = esp - 0xCu; /* 0x36085F82: sub esp, 0xc */
   4128     _flag_k = FK_CMP;
   4129     ecx = esp; /* 0x36085F85: mov ecx, esp */
   4130     MEM32(ecx) = edx; /* 0x36085F87: mov dword ptr [ecx], edx */
   4131     edx = MEM32(eax + 0x4); /* 0x36085F89: mov edx, dword ptr [eax + 4] */
   4132     eax = MEM32(eax + 0x8); /* 0x36085F8C: mov eax, dword ptr [eax + 8] */
   4133     MEM32(ecx + 0x4) = edx; /* 0x36085F8F: mov dword ptr [ecx + 4], edx */
   4134     MEM32(ecx + 0x8) = eax; /* 0x36085F92: mov dword ptr [ecx + 8], eax */
   4135     PUSH32(esp, edi); /* 0x36085F95: push edi */
   4136     goto L_3608606C; /* 0x36085F96: jmp 0x3608606c */
   4137 L_3608606C:
   4138     RECOMP_ICALL(0x3601C590u); /* 0x3608606C: call 0x3601c590 */ /* not lifted */
   4139     RECOMP_FLAGS_IN();
   4140     ecx = eax; /* 0x36086071: mov ecx, eax */
   4141     RECOMP_ICALL(0x3601CBF0u); /* 0x36086073: call 0x3601cbf0 */ /* not lifted */
   4142     RECOMP_FLAGS_IN();
   4143     edx = MEM32(esi + 0x8); /* 0x36086078: mov edx, dword ptr [esi + 8] */
   4144     ecx = MEM32(edx + 0x158); /* 0x3608607B: mov ecx, dword ptr [edx + 0x158] */
   4145     RECOMP_ICALL(0x36066EA0u); /* 0x36086081: call 0x36066ea0 */ /* not lifted */
   4146     RECOMP_FLAGS_IN();
   4147     ecx = MEM32(esi + 0x8); /* 0x36086086: mov ecx, dword ptr [esi + 8] */
   4148     PUSH32(esp, 9); /* 0x36086089: push 9 */
   4149     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4151     ecx = ecx + 0xE4u; /* 0x3608608B: add ecx, 0xe4 */
   4152     _flag_k = FK_ADD;
   4153     RECOMP_ICALL(0x36002C10u); /* 0x36086091: call 0x36002c10 */ /* not lifted */
   4154     RECOMP_FLAGS_IN();
   4155     eax = MEM32(esi + 0x8); /* 0x36086096: mov eax, dword ptr [esi + 8] */
   4156     ecx = eax + 0xE4; /* 0x36086099: lea ecx, [eax + 0xe4] */
   4157     eax = MEM32(ecx); /* 0x3608609F: mov eax, dword ptr [ecx] */
   4158     PUSH32(esp, 0x20u); /* 0x360860A1: push 0x20 */
   4159     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x360860A3: call dword ptr [eax + 0x20] */
   4160     RECOMP_FLAGS_IN();
   4161     ecx = MEM32(esi + 0x8); /* 0x360860A6: mov ecx, dword ptr [esi + 8] */
   4162     PUSH32(esp, 0x14u); /* 0x360860A9: push 0x14 */
   4163     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4164     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4165     ecx = ecx + 0xE4u; /* 0x360860AB: add ecx, 0xe4 */
   4166     _flag_k = FK_ADD;
   4167     RECOMP_ICALL(0x36002180u); /* 0x360860B1: call 0x36002180 */ /* not lifted */
   4168     RECOMP_FLAGS_IN();
   4169     /* test LO8(eax), LO8(eax) */ /* 0x360860B6: test al, al */
   4170     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4171     _cf = 0;
   4172     _flag_k = FK_NARROW(FK_TEST, 24);
   4173     if (TEST_Z(_flag_a, _flag_b)) goto L_360860F3; /* 0x360860B8: je 0x360860f3 */
   4174 L_360860BA:
   4175     eax = MEM32(esi + 0x8); /* 0x360860BA: mov eax, dword ptr [esi + 8] */
   4176     /* test eax, eax */ /* 0x360860BD: test eax, eax */
   4177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4178     _cf = 0;
   4179     _flag_k = FK_TEST;
   4180     if (TEST_Z(_flag_a, _flag_b)) goto L_360860C9; /* 0x360860BF: je 0x360860c9 */
   4181 L_360860C1:
   4182     edx = eax + 0xE4; /* 0x360860C1: lea edx, [eax + 0xe4] */
   4183     goto L_360860CB; /* 0x360860C7: jmp 0x360860cb */
   4184 L_360860C9:
   4185     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4186     edx = 0; /* 0x360860C9: xor edx, edx */
   4187     _cf = 0;
   4188     _flag_k = FK_TEST;
   4189 L_360860CB:
   4190     edi = MEM32(eax + 0xE4); /* 0x360860CB: mov edi, dword ptr [eax + 0xe4] */
   4191     PUSH32(esp, 0x362EA510u); /* 0x360860D1: push 0x362ea510 */
   4192     PUSH32(esp, 0); /* 0x360860D6: push 0 */
   4193     PUSH32(esp, edx); /* 0x360860D8: push edx */
   4194     ecx = eax + 0xE4; /* 0x360860D9: lea ecx, [eax + 0xe4] */
   4195     PUSH32(esp, 0x14u); /* 0x360860DF: push 0x14 */
   4196     RECOMP_ICALL(0x360020C0u); /* 0x360860E1: call 0x360020c0 */ /* not lifted */
   4197     RECOMP_FLAGS_IN();
   4198     ecx = MEM32(esi + 0x8); /* 0x360860E6: mov ecx, dword ptr [esi + 8] */
   4199     PUSH32(esp, eax); /* 0x360860E9: push eax */
   4200     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4201     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4202     ecx = ecx + 0xE4u; /* 0x360860EA: add ecx, 0xe4 */
   4203     _flag_k = FK_ADD;
   4204     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x360860F0: call dword ptr [edi + 0x34] */
   4205     RECOMP_FLAGS_IN();
   4206 L_360860F3:
   4207     ecx = MEM32(ebp + (-0xC)); /* 0x360860F3: mov ecx, dword ptr [ebp - 0xc] */
   4208     edi = POP32_VAL(esp); /* 0x360860F6: pop edi */
   4209     eax = esi; /* 0x360860F7: mov eax, esi */
   4210     esi = POP32_VAL(esp); /* 0x360860F9: pop esi */
   4211     MEM32(FS_BASE + (0)) = ecx; /* 0x360860FA: mov dword ptr fs:[0], ecx */
   4212     ebx = POP32_VAL(esp); /* 0x36086101: pop ebx */
   4213     esp = ebp; /* 0x36086102: mov esp, ebp */
   4214     ebp = POP32_VAL(esp); /* 0x36086104: pop ebp */
   4215     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086105: ret 8 */
   4216     RECOMP_REGS_OUT();
   4217 }
   4218 
   4219 void sub_36085FD1(void) {
   4220     int _fpu_cmp = 0;
   4221     uint32_t _cf = 0;
   4222     int _df = 1;
   4223     uint32_t _flag_k = FK_NONE;
   4224     uint32_t _flag_a = 0, _flag_b = 0;
   4225     uint32_t _itail_tgt = 0;
   4226     RECOMP_REGS_LOCALS
   4227     RECOMP_ENTER(0x36085FD1u);
   4228 
   4229 L_36085FD1:
   4230     edx = MEM32(ebp + (-0x18)); /* 0x36085FD1: mov edx, dword ptr [ebp - 0x18] */
   4231     PUSH32(esp, 0); /* 0x36085FD4: push 0 */
   4232     MEM32(ebp + (-0x14)) = 0; /* 0x36085FD6: mov dword ptr [ebp - 0x14], 0 */
   4233     ecx = MEM32(ebp + (-0x14)); /* 0x36085FDD: mov ecx, dword ptr [ebp - 0x14] */
   4234     MEM32(eax + 0x4) = edx; /* 0x36085FE0: mov dword ptr [eax + 4], edx */
   4235     PUSH32(esp, 0x3F800000u); /* 0x36085FE3: push 0x3f800000 */
   4236     MEM32(eax + 0x8) = ecx; /* 0x36085FE8: mov dword ptr [eax + 8], ecx */
   4237     ecx = MEM32(esi + 0x8); /* 0x36085FEB: mov ecx, dword ptr [esi + 8] */
   4238     PUSH32(esp, 0); /* 0x36085FEE: push 0 */
   4239     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36085FF0: call dword ptr [0x3616ffb0] */
   4240     RECOMP_FLAGS_IN();
   4241     ecx = MEM32(eax); /* 0x36085FF6: mov ecx, dword ptr [eax] */
   4242     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4244     esp = esp - 0xCu; /* 0x36085FF8: sub esp, 0xc */
   4245     _flag_k = FK_CMP;
   4246     edx = esp; /* 0x36085FFB: mov edx, esp */
   4247     MEM32(edx) = ecx; /* 0x36085FFD: mov dword ptr [edx], ecx */
   4248     ecx = MEM32(eax + 0x4); /* 0x36085FFF: mov ecx, dword ptr [eax + 4] */
   4249     eax = MEM32(eax + 0x8); /* 0x36086002: mov eax, dword ptr [eax + 8] */
   4250     MEM32(edx + 0x4) = ecx; /* 0x36086005: mov dword ptr [edx + 4], ecx */
   4251     ecx = MEM32(esi + 0x18); /* 0x36086008: mov ecx, dword ptr [esi + 0x18] */
   4252     MEM32(edx + 0x8) = eax; /* 0x3608600B: mov dword ptr [edx + 8], eax */
   4253     goto L_3608606B; /* 0x3608600E: jmp 0x3608606b */
   4254 L_3608606B:
   4255     PUSH32(esp, ecx); /* 0x3608606B: push ecx */
   4256     RECOMP_ICALL(0x3601C590u); /* 0x3608606C: call 0x3601c590 */ /* not lifted */
   4257     RECOMP_FLAGS_IN();
   4258     ecx = eax; /* 0x36086071: mov ecx, eax */
   4259     RECOMP_ICALL(0x3601CBF0u); /* 0x36086073: call 0x3601cbf0 */ /* not lifted */
   4260     RECOMP_FLAGS_IN();
   4261     edx = MEM32(esi + 0x8); /* 0x36086078: mov edx, dword ptr [esi + 8] */
   4262     ecx = MEM32(edx + 0x158); /* 0x3608607B: mov ecx, dword ptr [edx + 0x158] */
   4263     RECOMP_ICALL(0x36066EA0u); /* 0x36086081: call 0x36066ea0 */ /* not lifted */
   4264     RECOMP_FLAGS_IN();
   4265     ecx = MEM32(esi + 0x8); /* 0x36086086: mov ecx, dword ptr [esi + 8] */
   4266     PUSH32(esp, 9); /* 0x36086089: push 9 */
   4267     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4268     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4269     ecx = ecx + 0xE4u; /* 0x3608608B: add ecx, 0xe4 */
   4270     _flag_k = FK_ADD;
   4271     RECOMP_ICALL(0x36002C10u); /* 0x36086091: call 0x36002c10 */ /* not lifted */
   4272     RECOMP_FLAGS_IN();
   4273     eax = MEM32(esi + 0x8); /* 0x36086096: mov eax, dword ptr [esi + 8] */
   4274     ecx = eax + 0xE4; /* 0x36086099: lea ecx, [eax + 0xe4] */
   4275     eax = MEM32(ecx); /* 0x3608609F: mov eax, dword ptr [ecx] */
   4276     PUSH32(esp, 0x20u); /* 0x360860A1: push 0x20 */
   4277     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x360860A3: call dword ptr [eax + 0x20] */
   4278     RECOMP_FLAGS_IN();
   4279     ecx = MEM32(esi + 0x8); /* 0x360860A6: mov ecx, dword ptr [esi + 8] */
   4280     PUSH32(esp, 0x14u); /* 0x360860A9: push 0x14 */
   4281     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4283     ecx = ecx + 0xE4u; /* 0x360860AB: add ecx, 0xe4 */
   4284     _flag_k = FK_ADD;
   4285     RECOMP_ICALL(0x36002180u); /* 0x360860B1: call 0x36002180 */ /* not lifted */
   4286     RECOMP_FLAGS_IN();
   4287     /* test LO8(eax), LO8(eax) */ /* 0x360860B6: test al, al */
   4288     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4289     _cf = 0;
   4290     _flag_k = FK_NARROW(FK_TEST, 24);
   4291     if (TEST_Z(_flag_a, _flag_b)) goto L_360860F3; /* 0x360860B8: je 0x360860f3 */
   4292 L_360860BA:
   4293     eax = MEM32(esi + 0x8); /* 0x360860BA: mov eax, dword ptr [esi + 8] */
   4294     /* test eax, eax */ /* 0x360860BD: test eax, eax */
   4295     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4296     _cf = 0;
   4297     _flag_k = FK_TEST;
   4298     if (TEST_Z(_flag_a, _flag_b)) goto L_360860C9; /* 0x360860BF: je 0x360860c9 */
   4299 L_360860C1:
   4300     edx = eax + 0xE4; /* 0x360860C1: lea edx, [eax + 0xe4] */
   4301     goto L_360860CB; /* 0x360860C7: jmp 0x360860cb */
   4302 L_360860C9:
   4303     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4304     edx = 0; /* 0x360860C9: xor edx, edx */
   4305     _cf = 0;
   4306     _flag_k = FK_TEST;
   4307 L_360860CB:
   4308     edi = MEM32(eax + 0xE4); /* 0x360860CB: mov edi, dword ptr [eax + 0xe4] */
   4309     PUSH32(esp, 0x362EA510u); /* 0x360860D1: push 0x362ea510 */
   4310     PUSH32(esp, 0); /* 0x360860D6: push 0 */
   4311     PUSH32(esp, edx); /* 0x360860D8: push edx */
   4312     ecx = eax + 0xE4; /* 0x360860D9: lea ecx, [eax + 0xe4] */
   4313     PUSH32(esp, 0x14u); /* 0x360860DF: push 0x14 */
   4314     RECOMP_ICALL(0x360020C0u); /* 0x360860E1: call 0x360020c0 */ /* not lifted */
   4315     RECOMP_FLAGS_IN();
   4316     ecx = MEM32(esi + 0x8); /* 0x360860E6: mov ecx, dword ptr [esi + 8] */
   4317     PUSH32(esp, eax); /* 0x360860E9: push eax */
   4318     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4319     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4320     ecx = ecx + 0xE4u; /* 0x360860EA: add ecx, 0xe4 */
   4321     _flag_k = FK_ADD;
   4322     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x360860F0: call dword ptr [edi + 0x34] */
   4323     RECOMP_FLAGS_IN();
   4324 L_360860F3:
   4325     ecx = MEM32(ebp + (-0xC)); /* 0x360860F3: mov ecx, dword ptr [ebp - 0xc] */
   4326     edi = POP32_VAL(esp); /* 0x360860F6: pop edi */
   4327     eax = esi; /* 0x360860F7: mov eax, esi */
   4328     esi = POP32_VAL(esp); /* 0x360860F9: pop esi */
   4329     MEM32(FS_BASE + (0)) = ecx; /* 0x360860FA: mov dword ptr fs:[0], ecx */
   4330     ebx = POP32_VAL(esp); /* 0x36086101: pop ebx */
   4331     esp = ebp; /* 0x36086102: mov esp, ebp */
   4332     ebp = POP32_VAL(esp); /* 0x36086104: pop ebp */
   4333     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086105: ret 8 */
   4334     RECOMP_REGS_OUT();
   4335 }
   4336 
   4337 void sub_36086030(void) {
   4338     int _fpu_cmp = 0;
   4339     uint32_t _cf = 0;
   4340     int _df = 1;
   4341     uint32_t _flag_k = FK_NONE;
   4342     uint32_t _flag_a = 0, _flag_b = 0;
   4343     uint32_t _itail_tgt = 0;
   4344     RECOMP_REGS_LOCALS
   4345     RECOMP_ENTER(0x36086030u);
   4346 
   4347 L_36086030:
   4348     ecx = MEM32(ebp + (-0x18)); /* 0x36086030: mov ecx, dword ptr [ebp - 0x18] */
   4349     MEM32(edx + 0x4) = ecx; /* 0x36086033: mov dword ptr [edx + 4], ecx */
   4350     ecx = MEM32(esi + 0x8); /* 0x36086036: mov ecx, dword ptr [esi + 8] */
   4351     PUSH32(esp, 0x3F800000u); /* 0x36086039: push 0x3f800000 */
   4352     MEM32(ebp + (-0x14)) = 0; /* 0x3608603E: mov dword ptr [ebp - 0x14], 0 */
   4353     eax = MEM32(ebp + (-0x14)); /* 0x36086045: mov eax, dword ptr [ebp - 0x14] */
   4354     PUSH32(esp, 0); /* 0x36086048: push 0 */
   4355     MEM32(edx + 0x8) = eax; /* 0x3608604A: mov dword ptr [edx + 8], eax */
   4356     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608604D: call dword ptr [0x3616ffb0] */
   4357     RECOMP_FLAGS_IN();
   4358     edx = MEM32(eax); /* 0x36086053: mov edx, dword ptr [eax] */
   4359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4361     esp = esp - 0xCu; /* 0x36086055: sub esp, 0xc */
   4362     _flag_k = FK_CMP;
   4363     ecx = esp; /* 0x36086058: mov ecx, esp */
   4364     MEM32(ecx) = edx; /* 0x3608605A: mov dword ptr [ecx], edx */
   4365     edx = MEM32(eax + 0x4); /* 0x3608605C: mov edx, dword ptr [eax + 4] */
   4366     eax = MEM32(eax + 0x8); /* 0x3608605F: mov eax, dword ptr [eax + 8] */
   4367     MEM32(ecx + 0x4) = edx; /* 0x36086062: mov dword ptr [ecx + 4], edx */
   4368     MEM32(ecx + 0x8) = eax; /* 0x36086065: mov dword ptr [ecx + 8], eax */
   4369     ecx = MEM32(esi + 0x1C); /* 0x36086068: mov ecx, dword ptr [esi + 0x1c] */
   4370     PUSH32(esp, ecx); /* 0x3608606B: push ecx */
   4371     RECOMP_ICALL(0x3601C590u); /* 0x3608606C: call 0x3601c590 */ /* not lifted */
   4372     RECOMP_FLAGS_IN();
   4373     ecx = eax; /* 0x36086071: mov ecx, eax */
   4374     RECOMP_ICALL(0x3601CBF0u); /* 0x36086073: call 0x3601cbf0 */ /* not lifted */
   4375     RECOMP_FLAGS_IN();
   4376     edx = MEM32(esi + 0x8); /* 0x36086078: mov edx, dword ptr [esi + 8] */
   4377     ecx = MEM32(edx + 0x158); /* 0x3608607B: mov ecx, dword ptr [edx + 0x158] */
   4378     RECOMP_ICALL(0x36066EA0u); /* 0x36086081: call 0x36066ea0 */ /* not lifted */
   4379     RECOMP_FLAGS_IN();
   4380     ecx = MEM32(esi + 0x8); /* 0x36086086: mov ecx, dword ptr [esi + 8] */
   4381     PUSH32(esp, 9); /* 0x36086089: push 9 */
   4382     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4383     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4384     ecx = ecx + 0xE4u; /* 0x3608608B: add ecx, 0xe4 */
   4385     _flag_k = FK_ADD;
   4386     RECOMP_ICALL(0x36002C10u); /* 0x36086091: call 0x36002c10 */ /* not lifted */
   4387     RECOMP_FLAGS_IN();
   4388     eax = MEM32(esi + 0x8); /* 0x36086096: mov eax, dword ptr [esi + 8] */
   4389     ecx = eax + 0xE4; /* 0x36086099: lea ecx, [eax + 0xe4] */
   4390     eax = MEM32(ecx); /* 0x3608609F: mov eax, dword ptr [ecx] */
   4391     PUSH32(esp, 0x20u); /* 0x360860A1: push 0x20 */
   4392     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x360860A3: call dword ptr [eax + 0x20] */
   4393     RECOMP_FLAGS_IN();
   4394     ecx = MEM32(esi + 0x8); /* 0x360860A6: mov ecx, dword ptr [esi + 8] */
   4395     PUSH32(esp, 0x14u); /* 0x360860A9: push 0x14 */
   4396     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4398     ecx = ecx + 0xE4u; /* 0x360860AB: add ecx, 0xe4 */
   4399     _flag_k = FK_ADD;
   4400     RECOMP_ICALL(0x36002180u); /* 0x360860B1: call 0x36002180 */ /* not lifted */
   4401     RECOMP_FLAGS_IN();
   4402     /* test LO8(eax), LO8(eax) */ /* 0x360860B6: test al, al */
   4403     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4404     _cf = 0;
   4405     _flag_k = FK_NARROW(FK_TEST, 24);
   4406     if (TEST_Z(_flag_a, _flag_b)) goto L_360860F3; /* 0x360860B8: je 0x360860f3 */
   4407 L_360860BA:
   4408     eax = MEM32(esi + 0x8); /* 0x360860BA: mov eax, dword ptr [esi + 8] */
   4409     /* test eax, eax */ /* 0x360860BD: test eax, eax */
   4410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4411     _cf = 0;
   4412     _flag_k = FK_TEST;
   4413     if (TEST_Z(_flag_a, _flag_b)) goto L_360860C9; /* 0x360860BF: je 0x360860c9 */
   4414 L_360860C1:
   4415     edx = eax + 0xE4; /* 0x360860C1: lea edx, [eax + 0xe4] */
   4416     goto L_360860CB; /* 0x360860C7: jmp 0x360860cb */
   4417 L_360860C9:
   4418     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4419     edx = 0; /* 0x360860C9: xor edx, edx */
   4420     _cf = 0;
   4421     _flag_k = FK_TEST;
   4422 L_360860CB:
   4423     edi = MEM32(eax + 0xE4); /* 0x360860CB: mov edi, dword ptr [eax + 0xe4] */
   4424     PUSH32(esp, 0x362EA510u); /* 0x360860D1: push 0x362ea510 */
   4425     PUSH32(esp, 0); /* 0x360860D6: push 0 */
   4426     PUSH32(esp, edx); /* 0x360860D8: push edx */
   4427     ecx = eax + 0xE4; /* 0x360860D9: lea ecx, [eax + 0xe4] */
   4428     PUSH32(esp, 0x14u); /* 0x360860DF: push 0x14 */
   4429     RECOMP_ICALL(0x360020C0u); /* 0x360860E1: call 0x360020c0 */ /* not lifted */
   4430     RECOMP_FLAGS_IN();
   4431     ecx = MEM32(esi + 0x8); /* 0x360860E6: mov ecx, dword ptr [esi + 8] */
   4432     PUSH32(esp, eax); /* 0x360860E9: push eax */
   4433     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4435     ecx = ecx + 0xE4u; /* 0x360860EA: add ecx, 0xe4 */
   4436     _flag_k = FK_ADD;
   4437     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x360860F0: call dword ptr [edi + 0x34] */
   4438     RECOMP_FLAGS_IN();
   4439 L_360860F3:
   4440     ecx = MEM32(ebp + (-0xC)); /* 0x360860F3: mov ecx, dword ptr [ebp - 0xc] */
   4441     edi = POP32_VAL(esp); /* 0x360860F6: pop edi */
   4442     eax = esi; /* 0x360860F7: mov eax, esi */
   4443     esi = POP32_VAL(esp); /* 0x360860F9: pop esi */
   4444     MEM32(FS_BASE + (0)) = ecx; /* 0x360860FA: mov dword ptr fs:[0], ecx */
   4445     ebx = POP32_VAL(esp); /* 0x36086101: pop ebx */
   4446     esp = ebp; /* 0x36086102: mov esp, ebp */
   4447     ebp = POP32_VAL(esp); /* 0x36086104: pop ebp */
   4448     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086105: ret 8 */
   4449     RECOMP_REGS_OUT();
   4450 }
   4451 
   4452 void sub_3608606B(void) {
   4453     int _fpu_cmp = 0;
   4454     uint32_t _cf = 0;
   4455     int _df = 1;
   4456     uint32_t _flag_k = FK_NONE;
   4457     uint32_t _flag_a = 0, _flag_b = 0;
   4458     uint32_t _itail_tgt = 0;
   4459     RECOMP_REGS_LOCALS
   4460     RECOMP_ENTER(0x3608606Bu);
   4461 
   4462 L_3608606B:
   4463     PUSH32(esp, ecx); /* 0x3608606B: push ecx */
   4464     RECOMP_ICALL(0x3601C590u); /* 0x3608606C: call 0x3601c590 */ /* not lifted */
   4465     RECOMP_FLAGS_IN();
   4466     ecx = eax; /* 0x36086071: mov ecx, eax */
   4467     RECOMP_ICALL(0x3601CBF0u); /* 0x36086073: call 0x3601cbf0 */ /* not lifted */
   4468     RECOMP_FLAGS_IN();
   4469     edx = MEM32(esi + 0x8); /* 0x36086078: mov edx, dword ptr [esi + 8] */
   4470     ecx = MEM32(edx + 0x158); /* 0x3608607B: mov ecx, dword ptr [edx + 0x158] */
   4471     RECOMP_ICALL(0x36066EA0u); /* 0x36086081: call 0x36066ea0 */ /* not lifted */
   4472     RECOMP_FLAGS_IN();
   4473     ecx = MEM32(esi + 0x8); /* 0x36086086: mov ecx, dword ptr [esi + 8] */
   4474     PUSH32(esp, 9); /* 0x36086089: push 9 */
   4475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4476     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4477     ecx = ecx + 0xE4u; /* 0x3608608B: add ecx, 0xe4 */
   4478     _flag_k = FK_ADD;
   4479     RECOMP_ICALL(0x36002C10u); /* 0x36086091: call 0x36002c10 */ /* not lifted */
   4480     RECOMP_FLAGS_IN();
   4481     eax = MEM32(esi + 0x8); /* 0x36086096: mov eax, dword ptr [esi + 8] */
   4482     ecx = eax + 0xE4; /* 0x36086099: lea ecx, [eax + 0xe4] */
   4483     eax = MEM32(ecx); /* 0x3608609F: mov eax, dword ptr [ecx] */
   4484     PUSH32(esp, 0x20u); /* 0x360860A1: push 0x20 */
   4485     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x360860A3: call dword ptr [eax + 0x20] */
   4486     RECOMP_FLAGS_IN();
   4487     ecx = MEM32(esi + 0x8); /* 0x360860A6: mov ecx, dword ptr [esi + 8] */
   4488     PUSH32(esp, 0x14u); /* 0x360860A9: push 0x14 */
   4489     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4490     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4491     ecx = ecx + 0xE4u; /* 0x360860AB: add ecx, 0xe4 */
   4492     _flag_k = FK_ADD;
   4493     RECOMP_ICALL(0x36002180u); /* 0x360860B1: call 0x36002180 */ /* not lifted */
   4494     RECOMP_FLAGS_IN();
   4495     /* test LO8(eax), LO8(eax) */ /* 0x360860B6: test al, al */
   4496     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4497     _cf = 0;
   4498     _flag_k = FK_NARROW(FK_TEST, 24);
   4499     if (TEST_Z(_flag_a, _flag_b)) goto L_360860F3; /* 0x360860B8: je 0x360860f3 */
   4500 L_360860BA:
   4501     eax = MEM32(esi + 0x8); /* 0x360860BA: mov eax, dword ptr [esi + 8] */
   4502     /* test eax, eax */ /* 0x360860BD: test eax, eax */
   4503     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4504     _cf = 0;
   4505     _flag_k = FK_TEST;
   4506     if (TEST_Z(_flag_a, _flag_b)) goto L_360860C9; /* 0x360860BF: je 0x360860c9 */
   4507 L_360860C1:
   4508     edx = eax + 0xE4; /* 0x360860C1: lea edx, [eax + 0xe4] */
   4509     goto L_360860CB; /* 0x360860C7: jmp 0x360860cb */
   4510 L_360860C9:
   4511     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4512     edx = 0; /* 0x360860C9: xor edx, edx */
   4513     _cf = 0;
   4514     _flag_k = FK_TEST;
   4515 L_360860CB:
   4516     edi = MEM32(eax + 0xE4); /* 0x360860CB: mov edi, dword ptr [eax + 0xe4] */
   4517     PUSH32(esp, 0x362EA510u); /* 0x360860D1: push 0x362ea510 */
   4518     PUSH32(esp, 0); /* 0x360860D6: push 0 */
   4519     PUSH32(esp, edx); /* 0x360860D8: push edx */
   4520     ecx = eax + 0xE4; /* 0x360860D9: lea ecx, [eax + 0xe4] */
   4521     PUSH32(esp, 0x14u); /* 0x360860DF: push 0x14 */
   4522     RECOMP_ICALL(0x360020C0u); /* 0x360860E1: call 0x360020c0 */ /* not lifted */
   4523     RECOMP_FLAGS_IN();
   4524     ecx = MEM32(esi + 0x8); /* 0x360860E6: mov ecx, dword ptr [esi + 8] */
   4525     PUSH32(esp, eax); /* 0x360860E9: push eax */
   4526     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4528     ecx = ecx + 0xE4u; /* 0x360860EA: add ecx, 0xe4 */
   4529     _flag_k = FK_ADD;
   4530     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x360860F0: call dword ptr [edi + 0x34] */
   4531     RECOMP_FLAGS_IN();
   4532 L_360860F3:
   4533     ecx = MEM32(ebp + (-0xC)); /* 0x360860F3: mov ecx, dword ptr [ebp - 0xc] */
   4534     edi = POP32_VAL(esp); /* 0x360860F6: pop edi */
   4535     eax = esi; /* 0x360860F7: mov eax, esi */
   4536     esi = POP32_VAL(esp); /* 0x360860F9: pop esi */
   4537     MEM32(FS_BASE + (0)) = ecx; /* 0x360860FA: mov dword ptr fs:[0], ecx */
   4538     ebx = POP32_VAL(esp); /* 0x36086101: pop ebx */
   4539     esp = ebp; /* 0x36086102: mov esp, ebp */
   4540     ebp = POP32_VAL(esp); /* 0x36086104: pop ebp */
   4541     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086105: ret 8 */
   4542     RECOMP_REGS_OUT();
   4543 }
   4544 
   4545 void sub_3608606C(void) {
   4546     int _fpu_cmp = 0;
   4547     uint32_t _cf = 0;
   4548     int _df = 1;
   4549     uint32_t _flag_k = FK_NONE;
   4550     uint32_t _flag_a = 0, _flag_b = 0;
   4551     uint32_t _itail_tgt = 0;
   4552     RECOMP_REGS_LOCALS
   4553     RECOMP_ENTER(0x3608606Cu);
   4554 
   4555 L_3608606C:
   4556     RECOMP_ICALL(0x3601C590u); /* 0x3608606C: call 0x3601c590 */ /* not lifted */
   4557     RECOMP_FLAGS_IN();
   4558     ecx = eax; /* 0x36086071: mov ecx, eax */
   4559     RECOMP_ICALL(0x3601CBF0u); /* 0x36086073: call 0x3601cbf0 */ /* not lifted */
   4560     RECOMP_FLAGS_IN();
   4561     edx = MEM32(esi + 0x8); /* 0x36086078: mov edx, dword ptr [esi + 8] */
   4562     ecx = MEM32(edx + 0x158); /* 0x3608607B: mov ecx, dword ptr [edx + 0x158] */
   4563     RECOMP_ICALL(0x36066EA0u); /* 0x36086081: call 0x36066ea0 */ /* not lifted */
   4564     RECOMP_FLAGS_IN();
   4565     ecx = MEM32(esi + 0x8); /* 0x36086086: mov ecx, dword ptr [esi + 8] */
   4566     PUSH32(esp, 9); /* 0x36086089: push 9 */
   4567     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4568     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4569     ecx = ecx + 0xE4u; /* 0x3608608B: add ecx, 0xe4 */
   4570     _flag_k = FK_ADD;
   4571     RECOMP_ICALL(0x36002C10u); /* 0x36086091: call 0x36002c10 */ /* not lifted */
   4572     RECOMP_FLAGS_IN();
   4573     eax = MEM32(esi + 0x8); /* 0x36086096: mov eax, dword ptr [esi + 8] */
   4574     ecx = eax + 0xE4; /* 0x36086099: lea ecx, [eax + 0xe4] */
   4575     eax = MEM32(ecx); /* 0x3608609F: mov eax, dword ptr [ecx] */
   4576     PUSH32(esp, 0x20u); /* 0x360860A1: push 0x20 */
   4577     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x360860A3: call dword ptr [eax + 0x20] */
   4578     RECOMP_FLAGS_IN();
   4579     ecx = MEM32(esi + 0x8); /* 0x360860A6: mov ecx, dword ptr [esi + 8] */
   4580     PUSH32(esp, 0x14u); /* 0x360860A9: push 0x14 */
   4581     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4582     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4583     ecx = ecx + 0xE4u; /* 0x360860AB: add ecx, 0xe4 */
   4584     _flag_k = FK_ADD;
   4585     RECOMP_ICALL(0x36002180u); /* 0x360860B1: call 0x36002180 */ /* not lifted */
   4586     RECOMP_FLAGS_IN();
   4587     /* test LO8(eax), LO8(eax) */ /* 0x360860B6: test al, al */
   4588     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4589     _cf = 0;
   4590     _flag_k = FK_NARROW(FK_TEST, 24);
   4591     if (TEST_Z(_flag_a, _flag_b)) goto L_360860F3; /* 0x360860B8: je 0x360860f3 */
   4592 L_360860BA:
   4593     eax = MEM32(esi + 0x8); /* 0x360860BA: mov eax, dword ptr [esi + 8] */
   4594     /* test eax, eax */ /* 0x360860BD: test eax, eax */
   4595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4596     _cf = 0;
   4597     _flag_k = FK_TEST;
   4598     if (TEST_Z(_flag_a, _flag_b)) goto L_360860C9; /* 0x360860BF: je 0x360860c9 */
   4599 L_360860C1:
   4600     edx = eax + 0xE4; /* 0x360860C1: lea edx, [eax + 0xe4] */
   4601     goto L_360860CB; /* 0x360860C7: jmp 0x360860cb */
   4602 L_360860C9:
   4603     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4604     edx = 0; /* 0x360860C9: xor edx, edx */
   4605     _cf = 0;
   4606     _flag_k = FK_TEST;
   4607 L_360860CB:
   4608     edi = MEM32(eax + 0xE4); /* 0x360860CB: mov edi, dword ptr [eax + 0xe4] */
   4609     PUSH32(esp, 0x362EA510u); /* 0x360860D1: push 0x362ea510 */
   4610     PUSH32(esp, 0); /* 0x360860D6: push 0 */
   4611     PUSH32(esp, edx); /* 0x360860D8: push edx */
   4612     ecx = eax + 0xE4; /* 0x360860D9: lea ecx, [eax + 0xe4] */
   4613     PUSH32(esp, 0x14u); /* 0x360860DF: push 0x14 */
   4614     RECOMP_ICALL(0x360020C0u); /* 0x360860E1: call 0x360020c0 */ /* not lifted */
   4615     RECOMP_FLAGS_IN();
   4616     ecx = MEM32(esi + 0x8); /* 0x360860E6: mov ecx, dword ptr [esi + 8] */
   4617     PUSH32(esp, eax); /* 0x360860E9: push eax */
   4618     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4620     ecx = ecx + 0xE4u; /* 0x360860EA: add ecx, 0xe4 */
   4621     _flag_k = FK_ADD;
   4622     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x360860F0: call dword ptr [edi + 0x34] */
   4623     RECOMP_FLAGS_IN();
   4624 L_360860F3:
   4625     ecx = MEM32(ebp + (-0xC)); /* 0x360860F3: mov ecx, dword ptr [ebp - 0xc] */
   4626     edi = POP32_VAL(esp); /* 0x360860F6: pop edi */
   4627     eax = esi; /* 0x360860F7: mov eax, esi */
   4628     esi = POP32_VAL(esp); /* 0x360860F9: pop esi */
   4629     MEM32(FS_BASE + (0)) = ecx; /* 0x360860FA: mov dword ptr fs:[0], ecx */
   4630     ebx = POP32_VAL(esp); /* 0x36086101: pop ebx */
   4631     esp = ebp; /* 0x36086102: mov esp, ebp */
   4632     ebp = POP32_VAL(esp); /* 0x36086104: pop ebp */
   4633     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086105: ret 8 */
   4634     RECOMP_REGS_OUT();
   4635 }
   4636 
   4637 void sub_360860CB(void) {
   4638     int _fpu_cmp = 0;
   4639     uint32_t _cf = 0;
   4640     int _df = 1;
   4641     uint32_t _flag_k = FK_NONE;
   4642     uint32_t _flag_a = 0, _flag_b = 0;
   4643     uint32_t _itail_tgt = 0;
   4644     RECOMP_REGS_LOCALS
   4645     RECOMP_ENTER(0x360860CBu);
   4646 
   4647 L_360860CB:
   4648     edi = MEM32(eax + 0xE4); /* 0x360860CB: mov edi, dword ptr [eax + 0xe4] */
   4649     PUSH32(esp, 0x362EA510u); /* 0x360860D1: push 0x362ea510 */
   4650     PUSH32(esp, 0); /* 0x360860D6: push 0 */
   4651     PUSH32(esp, edx); /* 0x360860D8: push edx */
   4652     ecx = eax + 0xE4; /* 0x360860D9: lea ecx, [eax + 0xe4] */
   4653     PUSH32(esp, 0x14u); /* 0x360860DF: push 0x14 */
   4654     RECOMP_ICALL(0x360020C0u); /* 0x360860E1: call 0x360020c0 */ /* not lifted */
   4655     RECOMP_FLAGS_IN();
   4656     ecx = MEM32(esi + 0x8); /* 0x360860E6: mov ecx, dword ptr [esi + 8] */
   4657     PUSH32(esp, eax); /* 0x360860E9: push eax */
   4658     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   4659     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4660     ecx = ecx + 0xE4u; /* 0x360860EA: add ecx, 0xe4 */
   4661     _flag_k = FK_ADD;
   4662     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x360860F0: call dword ptr [edi + 0x34] */
   4663     RECOMP_FLAGS_IN();
   4664     ecx = MEM32(ebp + (-0xC)); /* 0x360860F3: mov ecx, dword ptr [ebp - 0xc] */
   4665     edi = POP32_VAL(esp); /* 0x360860F6: pop edi */
   4666     eax = esi; /* 0x360860F7: mov eax, esi */
   4667     esi = POP32_VAL(esp); /* 0x360860F9: pop esi */
   4668     MEM32(FS_BASE + (0)) = ecx; /* 0x360860FA: mov dword ptr fs:[0], ecx */
   4669     ebx = POP32_VAL(esp); /* 0x36086101: pop ebx */
   4670     esp = ebp; /* 0x36086102: mov esp, ebp */
   4671     ebp = POP32_VAL(esp); /* 0x36086104: pop ebp */
   4672     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086105: ret 8 */
   4673     RECOMP_REGS_OUT();
   4674 }
   4675 
   4676 void sub_36086110(void) {
   4677     int _fpu_cmp = 0;
   4678     uint32_t _cf = 0;
   4679     int _df = 1;
   4680     uint32_t _flag_k = FK_NONE;
   4681     uint32_t _flag_a = 0, _flag_b = 0;
   4682     uint32_t _itail_tgt = 0;
   4683     RECOMP_REGS_LOCALS
   4684     RECOMP_ENTER(0x36086110u);
   4685 
   4686 L_36086110:
   4687     MEM32(ecx) = 0x36171B7Cu; /* 0x36086110: mov dword ptr [ecx], 0x36171b7c */
   4688 L_36086116:
   4689     { _itail_tgt = (uint32_t)(MEM32(0x3616FD38)); goto _ljump; }
   4690     { RECOMP_REGS_OUT(); return; } /* end of function */
   4691   _ljump:
   4692     switch (_itail_tgt) {
   4693       case 0x36086110u: goto L_36086110;
   4694       case 0x36086116u: goto L_36086116;
   4695       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4696     }
   4697     RECOMP_REGS_OUT();
   4698 }
   4699 
   4700 void sub_36086120(void) {
   4701     int _fpu_cmp = 0;
   4702     uint32_t _cf = 0;
   4703     int _df = 1;
   4704     uint32_t _flag_k = FK_NONE;
   4705     uint32_t _flag_a = 0, _flag_b = 0;
   4706     uint32_t _itail_tgt = 0;
   4707     RECOMP_REGS_LOCALS
   4708     RECOMP_ENTER(0x36086120u);
   4709 
   4710 L_36086120:
   4711     PUSH32(esp, ebp); /* 0x36086120: push ebp */
   4712     ebp = esp; /* 0x36086121: mov ebp, esp */
   4713     PUSH32(esp, 0xFFFFFFFFu); /* 0x36086123: push -1 */
   4714     PUSH32(esp, 0x36165B1Bu); /* 0x36086125: push 0x36165b1b */
   4715     eax = MEM32(FS_BASE + (0)); /* 0x3608612A: mov eax, dword ptr fs:[0] */
   4716     PUSH32(esp, eax); /* 0x36086130: push eax */
   4717     MEM32(FS_BASE + (0)) = esp; /* 0x36086131: mov dword ptr fs:[0], esp */
   4718     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4720     esp = esp - 8; /* 0x36086138: sub esp, 8 */
   4721     _flag_k = FK_CMP;
   4722     PUSH32(esp, esi); /* 0x3608613B: push esi */
   4723     esi = ecx; /* 0x3608613C: mov esi, ecx */
   4724     ecx = MEM32(esi + 0x8); /* 0x3608613E: mov ecx, dword ptr [esi + 8] */
   4725     PUSH32(esp, edi); /* 0x36086141: push edi */
   4726     RECOMP_ICALL(0x36071430u); /* 0x36086142: call 0x36071430 */ /* not lifted */
   4727     RECOMP_FLAGS_IN();
   4728     /* test LO8(eax), LO8(eax) */ /* 0x36086147: test al, al */
   4729     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4730     _cf = 0;
   4731     _flag_k = FK_NARROW(FK_TEST, 24);
   4732     if (TEST_Z(_flag_a, _flag_b)) goto L_36086155; /* 0x36086149: je 0x36086155 */
   4733 L_3608614B:
   4734     ecx = MEM32(esi + 0x8); /* 0x3608614B: mov ecx, dword ptr [esi + 8] */
   4735     PUSH32(esp, 1); /* 0x3608614E: push 1 */
   4736     RECOMP_ICALL(0x36071460u); /* 0x36086150: call 0x36071460 */ /* not lifted */
   4737     RECOMP_FLAGS_IN();
   4738 L_36086155:
   4739     ecx = MEM32(esi + 0x8); /* 0x36086155: mov ecx, dword ptr [esi + 8] */
   4740     SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x36086158: mov al, byte ptr [ecx + 0x1b4] */
   4741     /* test LO8(eax), LO8(eax) */ /* 0x3608615E: test al, al */
   4742     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4743     _cf = 0;
   4744     _flag_k = FK_NARROW(FK_TEST, 24);
   4745     if (TEST_Z(_flag_a, _flag_b)) goto L_36086171; /* 0x36086160: je 0x36086171 */
   4746 L_36086162:
   4747     eax = MEM32(ecx + 0x11C); /* 0x36086162: mov eax, dword ptr [ecx + 0x11c] */
   4748     /* test HI8(eax), 2 */ /* 0x36086168: test ah, 2 */
   4749     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   4750     _cf = 0;
   4751     _flag_k = FK_NARROW(FK_TEST, 24);
   4752     if (TEST_Z(_flag_a, _flag_b)) goto L_360862BB; /* 0x3608616B: je 0x360862bb */
   4753 L_36086171:
   4754     edx = MEM32(esi + 0x14); /* 0x36086171: mov edx, dword ptr [esi + 0x14] */
   4755     /* test edx, edx */ /* 0x36086174: test edx, edx */
   4756     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4757     _cf = 0;
   4758     _flag_k = FK_TEST;
   4759     if (TEST_LE(_flag_a, _flag_b)) goto L_36086224; /* 0x36086176: jle 0x36086224 */
   4760 L_3608617C:
   4761     eax = MEM32(0x3616FF74); /* 0x3608617C: mov eax, dword ptr [0x3616ff74] */
   4762     eax = MEM32(eax); /* 0x36086181: mov eax, dword ptr [eax] */
   4763     fp_push(*(float*)&MEM32(eax + 0x64)); /* 0x36086183: fld dword ptr [eax + 0x64] */
   4764     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36086186: fcom dword ptr [0x3617040c] */
   4765     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608618C: fnstsw ax */
   4766     /* test HI8(eax), 0x41u */ /* 0x3608618E: test ah, 0x41 */
   4767     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4768     _cf = 0;
   4769     _flag_k = FK_NARROW(FK_TEST, 24);
   4770     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608619B; /* 0x36086191: jne 0x3608619b */
   4771 L_36086193:
   4772     _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36086193: fadd dword ptr [esi + 0xc] */
   4773     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xC) = _v; } /* 0x36086196: fstp dword ptr [esi + 0xc] */
   4774     goto L_3608619D; /* 0x36086199: jmp 0x3608619d */
   4775 L_3608619B:
   4776     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3608619B: fstp st(0) */
   4777 L_3608619D:
   4778     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3608619D: fld dword ptr [esi + 0xc] */
   4779     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617158C)); /* 0x360861A0: fcomp dword ptr [0x3617158c] */
   4780     fp_pop();
   4781     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360861A6: fnstsw ax */
   4782     /* test HI8(eax), 0x41u */ /* 0x360861A8: test ah, 0x41 */
   4783     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4784     _cf = 0;
   4785     _flag_k = FK_NARROW(FK_TEST, 24);
   4786     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086222; /* 0x360861AB: jne 0x36086222 */
   4787 L_360861AD:
   4788     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x360861AD: mov al, byte ptr [ecx + 0x128] */
   4789     /* test LO8(eax), LO8(eax) */ /* 0x360861B3: test al, al */
   4790     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4791     _cf = 0;
   4792     _flag_k = FK_NARROW(FK_TEST, 24);
   4793     if (TEST_Z(_flag_a, _flag_b)) goto L_36086207; /* 0x360861B5: je 0x36086207 */
   4794 L_360861B7:
   4795     PUSH32(esp, 0x34u); /* 0x360861B7: push 0x34 */
   4796     RECOMP_ICALL(0x3615FD6Au); /* 0x360861B9: call 0x3615fd6a */ /* not lifted */
   4797     RECOMP_FLAGS_IN();
   4798     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4800     esp = esp + 4; /* 0x360861BE: add esp, 4 */
   4801     _flag_k = FK_ADD;
   4802     MEM32(ebp + (-0x14)) = eax; /* 0x360861C1: mov dword ptr [ebp - 0x14], eax */
   4803     /* test eax, eax */ /* 0x360861C4: test eax, eax */
   4804     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4805     _cf = 0;
   4806     _flag_k = FK_TEST;
   4807     MEM32(ebp + (-0x4)) = 0; /* 0x360861C6: mov dword ptr [ebp - 4], 0 */
   4808     if (TEST_Z(_flag_a, _flag_b)) goto L_360861EE; /* 0x360861CD: je 0x360861ee */
   4809 L_360861CF:
   4810     ecx = MEM32(esi + 0x8); /* 0x360861CF: mov ecx, dword ptr [esi + 8] */
   4811     PUSH32(esp, 0x362EA510u); /* 0x360861D2: push 0x362ea510 */
   4812     PUSH32(esp, 0x98u); /* 0x360861D7: push 0x98 */
   4813     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   4814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4815     ecx = ecx + 4; /* 0x360861DC: add ecx, 4 */
   4816     _flag_k = FK_ADD;
   4817     PUSH32(esp, 0x362EA510u); /* 0x360861DF: push 0x362ea510 */
   4818     PUSH32(esp, ecx); /* 0x360861E4: push ecx */
   4819     ecx = eax; /* 0x360861E5: mov ecx, eax */
   4820     RECOMP_ICALL(0x3607D4B0u); /* 0x360861E7: call 0x3607d4b0 */ /* not lifted */
   4821     RECOMP_FLAGS_IN();
   4822     goto L_360861F0; /* 0x360861EC: jmp 0x360861f0 */
   4823 L_360861EE:
   4824     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4825     eax = 0; /* 0x360861EE: xor eax, eax */
   4826     _cf = 0;
   4827     _flag_k = FK_TEST;
   4828 L_360861F0:
   4829     ecx = MEM32(esi + 0x8); /* 0x360861F0: mov ecx, dword ptr [esi + 8] */
   4830     edx = ebp + (-0x10); /* 0x360861F3: lea edx, [ebp - 0x10] */
   4831     PUSH32(esp, edx); /* 0x360861F6: push edx */
   4832     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360861F7: mov dword ptr [ebp - 4], 0xffffffff */
   4833     MEM32(ebp + (-0x10)) = eax; /* 0x360861FE: mov dword ptr [ebp - 0x10], eax */
   4834     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36086201: call dword ptr [0x3617004c] */
   4835     RECOMP_FLAGS_IN();
   4836 L_36086207:
   4837     PUSH32(esp, 0); /* 0x36086207: push 0 */
   4838     PUSH32(esp, 0); /* 0x36086209: push 0 */
   4839     ecx = esi; /* 0x3608620B: mov ecx, esi */
   4840     RECOMP_ICALL(0x36086BD0u); /* 0x3608620D: call 0x36086bd0 */ /* not lifted */
   4841     RECOMP_FLAGS_IN();
   4842     edi = POP32_VAL(esp); /* 0x36086212: pop edi */
   4843     esi = POP32_VAL(esp); /* 0x36086213: pop esi */
   4844     ecx = MEM32(ebp + (-0xC)); /* 0x36086214: mov ecx, dword ptr [ebp - 0xc] */
   4845     MEM32(FS_BASE + (0)) = ecx; /* 0x36086217: mov dword ptr fs:[0], ecx */
   4846     esp = ebp; /* 0x3608621E: mov esp, ebp */
   4847     ebp = POP32_VAL(esp); /* 0x36086220: pop ebp */
   4848     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086221: ret  */
   4849 L_36086222:
   4850     /* test edx, edx */ /* 0x36086222: test edx, edx */
   4851     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4852     _cf = 0;
   4853     _flag_k = FK_TEST;
   4854 L_36086224:
   4855     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_360862BB; /* 0x36086224: jne 0x360862bb */
   4856 L_3608622A:
   4857     ecx = MEM32(ecx + 0x174); /* 0x3608622A: mov ecx, dword ptr [ecx + 0x174] */
   4858     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
   4859     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4860     ecx = ecx + 0x54u; /* 0x36086230: add ecx, 0x54 */
   4861     _flag_k = FK_ADD;
   4862     RECOMP_ICALL(0x3604E3B0u); /* 0x36086233: call 0x3604e3b0 */ /* not lifted */
   4863     RECOMP_FLAGS_IN();
   4864     /* test LO8(eax), LO8(eax) */ /* 0x36086238: test al, al */
   4865     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4866     _cf = 0;
   4867     _flag_k = FK_NARROW(FK_TEST, 24);
   4868     if (TEST_Z(_flag_a, _flag_b)) goto L_360862BB; /* 0x3608623A: je 0x360862bb */
   4869 L_3608623C:
   4870     eax = MEM32(esi + 0x8); /* 0x3608623C: mov eax, dword ptr [esi + 8] */
   4871     edi = MEM32(eax + 0x11C); /* 0x3608623F: mov edi, dword ptr [eax + 0x11c] */
   4872     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   4873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4874     eax = eax + 0xE4u; /* 0x36086245: add eax, 0xe4 */
   4875     _flag_k = FK_ADD;
   4876     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFF7u);
   4877     edi = edi & 0xFFFFFFF7u; /* 0x3608624A: and edi, 0xfffffff7 */
   4878     _cf = 0;
   4879     _flag_k = FK_TEST;
   4880     MEM32(eax + 0x38) = edi; /* 0x3608624D: mov dword ptr [eax + 0x38], edi */
   4881     eax = MEM32(esi + 0x8); /* 0x36086250: mov eax, dword ptr [esi + 8] */
   4882     ecx = MEM32(eax + 0x11C); /* 0x36086253: mov ecx, dword ptr [eax + 0x11c] */
   4883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   4884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4885     eax = eax + 0xE4u; /* 0x36086259: add eax, 0xe4 */
   4886     _flag_k = FK_ADD;
   4887     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFEFu);
   4888     ecx = ecx & 0xFFFFFFEFu; /* 0x3608625E: and ecx, 0xffffffef */
   4889     _cf = 0;
   4890     _flag_k = FK_TEST;
   4891     MEM32(eax + 0x38) = ecx; /* 0x36086261: mov dword ptr [eax + 0x38], ecx */
   4892     eax = MEM32(esi + 0x8); /* 0x36086264: mov eax, dword ptr [esi + 8] */
   4893     ecx = MEM32(eax + 0x174); /* 0x36086267: mov ecx, dword ptr [eax + 0x174] */
   4894     MEM32(ecx + 0xC0) = 0; /* 0x3608626D: mov dword ptr [ecx + 0xc0], 0 */
   4895     ecx = MEM32(esi + 0x8); /* 0x36086277: mov ecx, dword ptr [esi + 8] */
   4896     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x3608627A: mov al, byte ptr [ecx + 0x128] */
   4897     /* test LO8(eax), LO8(eax) */ /* 0x36086280: test al, al */
   4898     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4899     _cf = 0;
   4900     _flag_k = FK_NARROW(FK_TEST, 24);
   4901     if (TEST_Z(_flag_a, _flag_b)) goto L_360862DD; /* 0x36086282: je 0x360862dd */
   4902 L_36086284:
   4903     RECOMP_ICALL(0x360F7B00u); /* 0x36086284: call 0x360f7b00 */ /* not lifted */
   4904     RECOMP_FLAGS_IN();
   4905     /* test eax, eax */ /* 0x36086289: test eax, eax */
   4906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4907     _cf = 0;
   4908     _flag_k = FK_TEST;
   4909     if (TEST_Z(_flag_a, _flag_b)) goto L_360862BB; /* 0x3608628B: je 0x360862bb */
   4910 L_3608628D:
   4911     PUSH32(esp, 0xBB8u); /* 0x3608628D: push 0xbb8 */
   4912     ecx = eax; /* 0x36086292: mov ecx, eax */
   4913     RECOMP_ICALL(0x360F8070u); /* 0x36086294: call 0x360f8070 */ /* not lifted */
   4914     RECOMP_FLAGS_IN();
   4915     edi = eax; /* 0x36086299: mov edi, eax */
   4916     /* test edi, edi */ /* 0x3608629B: test edi, edi */
   4917     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4918     _cf = 0;
   4919     _flag_k = FK_TEST;
   4920     MEM32(esi + 0x14) = edi; /* 0x3608629D: mov dword ptr [esi + 0x14], edi */
   4921     if (TEST_NZ(_flag_a, _flag_b)) goto L_360862CD; /* 0x360862A0: jne 0x360862cd */
   4922 L_360862A2:
   4923     MEM32(esi + 0x14) = 1; /* 0x360862A2: mov dword ptr [esi + 0x14], 1 */
   4924 L_360862A9:
   4925     eax = MEM32(esi + 0x8); /* 0x360862A9: mov eax, dword ptr [esi + 8] */
   4926     ecx = eax + 0xE4; /* 0x360862AC: lea ecx, [eax + 0xe4] */
   4927     eax = MEM32(ecx); /* 0x360862B2: mov eax, dword ptr [ecx] */
   4928     PUSH32(esp, 1); /* 0x360862B4: push 1 */
   4929     PUSH32(esp, 0x1Bu); /* 0x360862B6: push 0x1b */
   4930     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360862B8: call dword ptr [eax + 8] */
   4931     RECOMP_FLAGS_IN();
   4932 L_360862BB:
   4933     edi = POP32_VAL(esp); /* 0x360862BB: pop edi */
   4934     eax = esi; /* 0x360862BC: mov eax, esi */
   4935     esi = POP32_VAL(esp); /* 0x360862BE: pop esi */
   4936     ecx = MEM32(ebp + (-0xC)); /* 0x360862BF: mov ecx, dword ptr [ebp - 0xc] */
   4937     MEM32(FS_BASE + (0)) = ecx; /* 0x360862C2: mov dword ptr fs:[0], ecx */
   4938     esp = ebp; /* 0x360862C9: mov esp, ebp */
   4939     ebp = POP32_VAL(esp); /* 0x360862CB: pop ebp */
   4940     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360862CC: ret  */
   4941 L_360862CD:
   4942     ecx = MEM32(esi + 0x8); /* 0x360862CD: mov ecx, dword ptr [esi + 8] */
   4943     RECOMP_ICALL(0x36072000u); /* 0x360862D0: call 0x36072000 */ /* not lifted */
   4944     RECOMP_FLAGS_IN();
   4945     MEM32(eax + 0xA8) = edi; /* 0x360862D5: mov dword ptr [eax + 0xa8], edi */
   4946     RECOMP_BACKEDGE();
   4947     goto L_360862A9; /* 0x360862DB: jmp 0x360862a9 */
   4948 L_360862DD:
   4949     SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x360862DD: mov al, byte ptr [ecx + 0x1b4] */
   4950     /* test LO8(eax), LO8(eax) */ /* 0x360862E3: test al, al */
   4951     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4952     _cf = 0;
   4953     _flag_k = FK_NARROW(FK_TEST, 24);
   4954     RECOMP_BACKEDGE();
   4955     if (TEST_Z(_flag_a, _flag_b)) goto L_360862A9; /* 0x360862E5: je 0x360862a9 */
   4956 L_360862E7:
   4957     edx = MEM32(ecx); /* 0x360862E7: mov edx, dword ptr [ecx] */
   4958     PUSH32(esp, 0); /* 0x360862E9: push 0 */
   4959     RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x360862EB: call dword ptr [edx + 0x28] */
   4960     RECOMP_FLAGS_IN();
   4961     ecx = MEM32(ebp + (-0xC)); /* 0x360862EE: mov ecx, dword ptr [ebp - 0xc] */
   4962     edi = POP32_VAL(esp); /* 0x360862F1: pop edi */
   4963     eax = esi; /* 0x360862F2: mov eax, esi */
   4964     esi = POP32_VAL(esp); /* 0x360862F4: pop esi */
   4965     MEM32(FS_BASE + (0)) = ecx; /* 0x360862F5: mov dword ptr fs:[0], ecx */
   4966     esp = ebp; /* 0x360862FC: mov esp, ebp */
   4967     ebp = POP32_VAL(esp); /* 0x360862FE: pop ebp */
   4968     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360862FF: ret  */
   4969     RECOMP_REGS_OUT();
   4970 }
   4971 
   4972 void sub_36086300(void) {
   4973     int _fpu_cmp = 0;
   4974     uint32_t _cf = 0;
   4975     int _df = 1;
   4976     uint32_t _flag_k = FK_NONE;
   4977     uint32_t _flag_a = 0, _flag_b = 0;
   4978     uint32_t _itail_tgt = 0;
   4979     RECOMP_REGS_LOCALS
   4980     RECOMP_ENTER(0x36086300u);
   4981 
   4982 L_36086300:
   4983     PUSH32(esp, ebp); /* 0x36086300: push ebp */
   4984     ebp = esp; /* 0x36086301: mov ebp, esp */
   4985     PUSH32(esp, 0xFFFFFFFFu); /* 0x36086303: push -1 */
   4986     PUSH32(esp, 0x36165B38u); /* 0x36086305: push 0x36165b38 */
   4987     eax = MEM32(FS_BASE + (0)); /* 0x3608630A: mov eax, dword ptr fs:[0] */
   4988     PUSH32(esp, eax); /* 0x36086310: push eax */
   4989     MEM32(FS_BASE + (0)) = esp; /* 0x36086311: mov dword ptr fs:[0], esp */
   4990     PUSH32(esp, ecx); /* 0x36086318: push ecx */
   4991     eax = MEM32(ebp + 0xC); /* 0x36086319: mov eax, dword ptr [ebp + 0xc] */
   4992     PUSH32(esp, esi); /* 0x3608631C: push esi */
   4993     PUSH32(esp, edi); /* 0x3608631D: push edi */
   4994     esi = ecx; /* 0x3608631E: mov esi, ecx */
   4995     ecx = MEM32(ebp + 0x8); /* 0x36086320: mov ecx, dword ptr [ebp + 8] */
   4996     PUSH32(esp, eax); /* 0x36086323: push eax */
   4997     PUSH32(esp, ecx); /* 0x36086324: push ecx */
   4998     ecx = esi; /* 0x36086325: mov ecx, esi */
   4999     MEM32(ebp + (-0x10)) = esi; /* 0x36086327: mov dword ptr [ebp - 0x10], esi */
   5000     RECOMP_ICALL(0x36086B70u); /* 0x3608632A: call 0x36086b70 */ /* not lifted */
   5001     RECOMP_FLAGS_IN();
   5002     eax = MEM32(esi + 0x8); /* 0x3608632F: mov eax, dword ptr [esi + 8] */
   5003     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5004     edx = 0; /* 0x36086332: xor edx, edx */
   5005     _cf = 0;
   5006     _flag_k = FK_TEST;
   5007     MEM32(esi + 0xC) = edx; /* 0x36086334: mov dword ptr [esi + 0xc], edx */
   5008     MEM8(esi + 0x10) = (uint8_t)(LO8(edx)); /* 0x36086337: mov byte ptr [esi + 0x10], dl */
   5009     MEM32(esi + 0x14) = 0xFFFFFFFFu; /* 0x3608633A: mov dword ptr [esi + 0x14], 0xffffffff */
   5010     MEM32(esi) = 0x36171B94u; /* 0x36086341: mov dword ptr [esi], 0x36171b94 */
   5011     ecx = MEM32(eax + 0x16C); /* 0x36086347: mov ecx, dword ptr [eax + 0x16c] */
   5012     edi = MEM32(ecx + 0x58); /* 0x3608634D: mov edi, dword ptr [ecx + 0x58] */
   5013     /* cmp edi, edx */ /* 0x36086350: cmp edi, edx */
   5014     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx);
   5015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5016     _flag_k = FK_CMP;
   5017     eax = ecx + 0x58; /* 0x36086352: lea eax, [ecx + 0x58] */
   5018     MEM32(ebp + (-0x4)) = edx; /* 0x36086355: mov dword ptr [ebp - 4], edx */
   5019     if (CMP_NE(_flag_a, _flag_b)) goto L_3608635F; /* 0x36086358: jne 0x3608635f */
   5020 L_3608635A:
   5021     /* cmp MEM32(eax + 0x4), edx */ /* 0x3608635A: cmp dword ptr [eax + 4], edx */
   5022     _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx);
   5023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5024     _flag_k = FK_CMP;
   5025     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608636B; /* 0x3608635D: je 0x3608636b */
   5026 L_3608635F:
   5027     /* cmp MEM32(ecx + 0x50), 1 */ /* 0x3608635F: cmp dword ptr [ecx + 0x50], 1 */
   5028     _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1);
   5029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5030     _flag_k = FK_CMP;
   5031     if (CMP_NE(_flag_a, _flag_b)) goto L_3608636B; /* 0x36086363: jne 0x3608636b */
   5032 L_36086365:
   5033     edx = MEM32(ecx); /* 0x36086365: mov edx, dword ptr [ecx] */
   5034     PUSH32(esp, eax); /* 0x36086367: push eax */
   5035     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36086368: call dword ptr [edx + 0x40] */
   5036     RECOMP_FLAGS_IN();
   5037 L_3608636B:
   5038     eax = MEM32(esi + 0x8); /* 0x3608636B: mov eax, dword ptr [esi + 8] */
   5039     ecx = MEM32(eax + 0x174); /* 0x3608636E: mov ecx, dword ptr [eax + 0x174] */
   5040     edx = MEM32(ecx); /* 0x36086374: mov edx, dword ptr [ecx] */
   5041     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36086376: call dword ptr [edx + 4] */
   5042     RECOMP_FLAGS_IN();
   5043     ecx = MEM32(ebp + (-0xC)); /* 0x36086379: mov ecx, dword ptr [ebp - 0xc] */
   5044     edi = POP32_VAL(esp); /* 0x3608637C: pop edi */
   5045     eax = esi; /* 0x3608637D: mov eax, esi */
   5046     esi = POP32_VAL(esp); /* 0x3608637F: pop esi */
   5047     MEM32(FS_BASE + (0)) = ecx; /* 0x36086380: mov dword ptr fs:[0], ecx */
   5048     esp = ebp; /* 0x36086387: mov esp, ebp */
   5049     ebp = POP32_VAL(esp); /* 0x36086389: pop ebp */
   5050     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608638A: ret 8 */
   5051     RECOMP_REGS_OUT();
   5052 }
   5053 
   5054 void sub_36086390(void) {
   5055     int _fpu_cmp = 0;
   5056     uint32_t _cf = 0;
   5057     int _df = 1;
   5058     uint32_t _flag_k = FK_NONE;
   5059     uint32_t _flag_a = 0, _flag_b = 0;
   5060     uint32_t _itail_tgt = 0;
   5061     RECOMP_REGS_LOCALS
   5062     RECOMP_ENTER(0x36086390u);
   5063 
   5064 L_36086390:
   5065     PUSH32(esp, ebp); /* 0x36086390: push ebp */
   5066     ebp = esp; /* 0x36086391: mov ebp, esp */
   5067     PUSH32(esp, 0xFFFFFFFFu); /* 0x36086393: push -1 */
   5068     PUSH32(esp, 0x36165B5Bu); /* 0x36086395: push 0x36165b5b */
   5069     eax = MEM32(FS_BASE + (0)); /* 0x3608639A: mov eax, dword ptr fs:[0] */
   5070     PUSH32(esp, eax); /* 0x360863A0: push eax */
   5071     MEM32(FS_BASE + (0)) = esp; /* 0x360863A1: mov dword ptr fs:[0], esp */
   5072     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u);
   5073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5074     esp = esp - 0x58u; /* 0x360863A8: sub esp, 0x58 */
   5075     _flag_k = FK_CMP;
   5076     PUSH32(esp, ebx); /* 0x360863AB: push ebx */
   5077     PUSH32(esp, esi); /* 0x360863AC: push esi */
   5078     esi = ecx; /* 0x360863AD: mov esi, ecx */
   5079     eax = MEM32(esi + 0x8); /* 0x360863AF: mov eax, dword ptr [esi + 8] */
   5080     PUSH32(esp, edi); /* 0x360863B2: push edi */
   5081     edi = MEM32(eax + 0x16C); /* 0x360863B3: mov edi, dword ptr [eax + 0x16c] */
   5082     edx = MEM32(edi); /* 0x360863B9: mov edx, dword ptr [edi] */
   5083     ecx = edi; /* 0x360863BB: mov ecx, edi */
   5084     RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x360863BD: call dword ptr [edx + 0x50] */
   5085     RECOMP_FLAGS_IN();
   5086     ebx = eax; /* 0x360863C0: mov ebx, eax */
   5087     eax = MEM32(edi); /* 0x360863C2: mov eax, dword ptr [edi] */
   5088     ecx = edi; /* 0x360863C4: mov ecx, edi */
   5089     RECOMP_ICALL(MEM32(eax + 0x54)); /* 0x360863C6: call dword ptr [eax + 0x54] */
   5090     RECOMP_FLAGS_IN();
   5091     ecx = MEM32(esi + 0x8); /* 0x360863C9: mov ecx, dword ptr [esi + 8] */
   5092     ecx = MEM32(ecx + 0x16C); /* 0x360863CC: mov ecx, dword ptr [ecx + 0x16c] */
   5093     MEM32(ebp + (-0x14)) = eax; /* 0x360863D2: mov dword ptr [ebp - 0x14], eax */
   5094     MEM8(ebp + (-0xD)) = (uint8_t)(0); /* 0x360863D5: mov byte ptr [ebp - 0xd], 0 */
   5095     RECOMP_ICALL(0x3607A850u); /* 0x360863D9: call 0x3607a850 */ /* not lifted */
   5096     RECOMP_FLAGS_IN();
   5097     /* test LO8(eax), LO8(eax) */ /* 0x360863DE: test al, al */
   5098     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5099     _cf = 0;
   5100     _flag_k = FK_NARROW(FK_TEST, 24);
   5101     if (TEST_Z(_flag_a, _flag_b)) goto L_360863E6; /* 0x360863E0: je 0x360863e6 */
   5102 L_360863E2:
   5103     MEM8(ebp + (-0xD)) = (uint8_t)(1); /* 0x360863E2: mov byte ptr [ebp - 0xd], 1 */
   5104 L_360863E6:
   5105     /* test ebx, ebx */ /* 0x360863E6: test ebx, ebx */
   5106     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5107     _cf = 0;
   5108     _flag_k = FK_TEST;
   5109     if (TEST_Z(_flag_a, _flag_b)) goto L_360863FD; /* 0x360863E8: je 0x360863fd */
   5110 L_360863EA:
   5111     ecx = MEM32(ebx + 0x16C); /* 0x360863EA: mov ecx, dword ptr [ebx + 0x16c] */
   5112     RECOMP_ICALL(0x3607A850u); /* 0x360863F0: call 0x3607a850 */ /* not lifted */
   5113     RECOMP_FLAGS_IN();
   5114     /* test LO8(eax), LO8(eax) */ /* 0x360863F5: test al, al */
   5115     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5116     _cf = 0;
   5117     _flag_k = FK_NARROW(FK_TEST, 24);
   5118     if (TEST_Z(_flag_a, _flag_b)) goto L_360863FD; /* 0x360863F7: je 0x360863fd */
   5119 L_360863F9:
   5120     MEM8(ebp + (-0xD)) = (uint8_t)(1); /* 0x360863F9: mov byte ptr [ebp - 0xd], 1 */
   5121 L_360863FD:
   5122     eax = MEM32(esi + 0x8); /* 0x360863FD: mov eax, dword ptr [esi + 8] */
   5123     /* test MEM8(eax + 0x11C), 0x10u */ /* 0x36086400: test byte ptr [eax + 0x11c], 0x10 */
   5124     _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   5125     _cf = 0;
   5126     _flag_k = FK_NARROW(FK_TEST, 24);
   5127     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086442; /* 0x36086407: jne 0x36086442 */
   5128 L_36086409:
   5129     /* test ebx, ebx */ /* 0x36086409: test ebx, ebx */
   5130     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5131     _cf = 0;
   5132     _flag_k = FK_TEST;
   5133     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086439; /* 0x3608640B: jne 0x36086439 */
   5134 L_3608640D:
   5135     ecx = MEM32(ebp + (-0x14)); /* 0x3608640D: mov ecx, dword ptr [ebp - 0x14] */
   5136     /* test ecx, ecx */ /* 0x36086410: test ecx, ecx */
   5137     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5138     _cf = 0;
   5139     _flag_k = FK_TEST;
   5140     if (TEST_Z(_flag_a, _flag_b)) goto L_36086442; /* 0x36086412: je 0x36086442 */
   5141 L_36086414:
   5142     SET_LO8(ecx, MEM8(esi + 0x10)); /* 0x36086414: mov cl, byte ptr [esi + 0x10] */
   5143     /* test LO8(ecx), LO8(ecx) */ /* 0x36086417: test cl, cl */
   5144     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5145     _cf = 0;
   5146     _flag_k = FK_NARROW(FK_TEST, 24);
   5147     if (TEST_Z(_flag_a, _flag_b)) goto L_360864FB; /* 0x36086419: je 0x360864fb */
   5148 L_3608641F:
   5149     ecx = edi; /* 0x3608641F: mov ecx, edi */
   5150     RECOMP_ICALL(0x3607B2D0u); /* 0x36086421: call 0x3607b2d0 */ /* not lifted */
   5151     RECOMP_FLAGS_IN();
   5152     edi = POP32_VAL(esp); /* 0x36086426: pop edi */
   5153     eax = esi; /* 0x36086427: mov eax, esi */
   5154     esi = POP32_VAL(esp); /* 0x36086429: pop esi */
   5155     ebx = POP32_VAL(esp); /* 0x3608642A: pop ebx */
   5156     ecx = MEM32(ebp + (-0xC)); /* 0x3608642B: mov ecx, dword ptr [ebp - 0xc] */
   5157     MEM32(FS_BASE + (0)) = ecx; /* 0x3608642E: mov dword ptr fs:[0], ecx */
   5158     esp = ebp; /* 0x36086435: mov esp, ebp */
   5159     ebp = POP32_VAL(esp); /* 0x36086437: pop ebp */
   5160     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086438: ret  */
   5161 L_36086439:
   5162     /* test MEM8(ebx + 0x11C), 0x10u */ /* 0x36086439: test byte ptr [ebx + 0x11c], 0x10 */
   5163     _flag_a = (uint32_t)(MEM8(ebx + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   5164     _cf = 0;
   5165     _flag_k = FK_NARROW(FK_TEST, 24);
   5166     RECOMP_BACKEDGE();
   5167     if (TEST_Z(_flag_a, _flag_b)) goto L_36086414; /* 0x36086440: je 0x36086414 */
   5168 L_36086442:
   5169     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36086442: mov cl, byte ptr [ebp - 0xd] */
   5170     /* test LO8(ecx), LO8(ecx) */ /* 0x36086445: test cl, cl */
   5171     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5172     _cf = 0;
   5173     _flag_k = FK_NARROW(FK_TEST, 24);
   5174     RECOMP_BACKEDGE();
   5175     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086414; /* 0x36086447: jne 0x36086414 */
   5176 L_36086449:
   5177     /* test ebx, ebx */ /* 0x36086449: test ebx, ebx */
   5178     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5179     _cf = 0;
   5180     _flag_k = FK_TEST;
   5181     if (TEST_Z(_flag_a, _flag_b)) goto L_360864B9; /* 0x3608644B: je 0x360864b9 */
   5182 L_3608644D:
   5183     /* test MEM8(ebx + 0x11C), 0x10u */ /* 0x3608644D: test byte ptr [ebx + 0x11c], 0x10 */
   5184     _flag_a = (uint32_t)(MEM8(ebx + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   5185     _cf = 0;
   5186     _flag_k = FK_NARROW(FK_TEST, 24);
   5187     if (TEST_Z(_flag_a, _flag_b)) goto L_360864B9; /* 0x36086454: je 0x360864b9 */
   5188 L_36086456:
   5189     SET_LO8(ecx, MEM8(ebx + 0x1B4)); /* 0x36086456: mov cl, byte ptr [ebx + 0x1b4] */
   5190     /* test LO8(ecx), LO8(ecx) */ /* 0x3608645C: test cl, cl */
   5191     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5192     _cf = 0;
   5193     _flag_k = FK_NARROW(FK_TEST, 24);
   5194     if (TEST_Z(_flag_a, _flag_b)) goto L_360864B9; /* 0x3608645E: je 0x360864b9 */
   5195 L_36086460:
   5196     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36086460: mov cl, byte ptr [eax + 0x128] */
   5197     /* test LO8(ecx), LO8(ecx) */ /* 0x36086466: test cl, cl */
   5198     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5199     _cf = 0;
   5200     _flag_k = FK_NARROW(FK_TEST, 24);
   5201     if (TEST_Z(_flag_a, _flag_b)) goto L_360864B9; /* 0x36086468: je 0x360864b9 */
   5202 L_3608646A:
   5203     PUSH32(esp, 0x34u); /* 0x3608646A: push 0x34 */
   5204     RECOMP_ICALL(0x3615FD6Au); /* 0x3608646C: call 0x3615fd6a */ /* not lifted */
   5205     RECOMP_FLAGS_IN();
   5206     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5207     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5208     esp = esp + 4; /* 0x36086471: add esp, 4 */
   5209     _flag_k = FK_ADD;
   5210     MEM32(ebp + (-0x18)) = eax; /* 0x36086474: mov dword ptr [ebp - 0x18], eax */
   5211     /* test eax, eax */ /* 0x36086477: test eax, eax */
   5212     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5213     _cf = 0;
   5214     _flag_k = FK_TEST;
   5215     MEM32(ebp + (-0x4)) = 0; /* 0x36086479: mov dword ptr [ebp - 4], 0 */
   5216     if (TEST_Z(_flag_a, _flag_b)) goto L_360864A0; /* 0x36086480: je 0x360864a0 */
   5217 L_36086482:
   5218     edx = MEM32(esi + 0x8); /* 0x36086482: mov edx, dword ptr [esi + 8] */
   5219     PUSH32(esp, 0x362EA510u); /* 0x36086485: push 0x362ea510 */
   5220     PUSH32(esp, 0x98u); /* 0x3608648A: push 0x98 */
   5221     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   5222     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5223     ebx = ebx + 4; /* 0x3608648F: add ebx, 4 */
   5224     _flag_k = FK_ADD;
   5225     PUSH32(esp, ebx); /* 0x36086492: push ebx */
   5226     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   5227     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5228     edx = edx + 4; /* 0x36086493: add edx, 4 */
   5229     _flag_k = FK_ADD;
   5230     PUSH32(esp, edx); /* 0x36086496: push edx */
   5231     ecx = eax; /* 0x36086497: mov ecx, eax */
   5232     RECOMP_ICALL(0x3607D4B0u); /* 0x36086499: call 0x3607d4b0 */ /* not lifted */
   5233     RECOMP_FLAGS_IN();
   5234     goto L_360864A2; /* 0x3608649E: jmp 0x360864a2 */
   5235 L_360864A0:
   5236     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5237     eax = 0; /* 0x360864A0: xor eax, eax */
   5238     _cf = 0;
   5239     _flag_k = FK_TEST;
   5240 L_360864A2:
   5241     ecx = MEM32(esi + 0x8); /* 0x360864A2: mov ecx, dword ptr [esi + 8] */
   5242     MEM32(ebp + (-0x14)) = eax; /* 0x360864A5: mov dword ptr [ebp - 0x14], eax */
   5243     eax = ebp + (-0x14); /* 0x360864A8: lea eax, [ebp - 0x14] */
   5244     PUSH32(esp, eax); /* 0x360864AB: push eax */
   5245     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360864AC: mov dword ptr [ebp - 4], 0xffffffff */
   5246     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360864B3: call dword ptr [0x3617004c] */
   5247     RECOMP_FLAGS_IN();
   5248 L_360864B9:
   5249     ecx = MEM32(esi + 0x8); /* 0x360864B9: mov ecx, dword ptr [esi + 8] */
   5250     /* test MEM8(ecx + 0x11C), 0x10u */ /* 0x360864BC: test byte ptr [ecx + 0x11c], 0x10 */
   5251     _flag_a = (uint32_t)(MEM8(ecx + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   5252     _cf = 0;
   5253     _flag_k = FK_NARROW(FK_TEST, 24);
   5254     PUSH32(esp, 0); /* 0x360864C3: push 0 */
   5255     if (TEST_Z(_flag_a, _flag_b)) goto L_360864E1; /* 0x360864C5: je 0x360864e1 */
   5256 L_360864C7:
   5257     PUSH32(esp, 0xBu); /* 0x360864C7: push 0xb */
   5258     ecx = esi; /* 0x360864C9: mov ecx, esi */
   5259     RECOMP_ICALL(0x36086BD0u); /* 0x360864CB: call 0x36086bd0 */ /* not lifted */
   5260     RECOMP_FLAGS_IN();
   5261     edi = POP32_VAL(esp); /* 0x360864D0: pop edi */
   5262     esi = POP32_VAL(esp); /* 0x360864D1: pop esi */
   5263     ebx = POP32_VAL(esp); /* 0x360864D2: pop ebx */
   5264     ecx = MEM32(ebp + (-0xC)); /* 0x360864D3: mov ecx, dword ptr [ebp - 0xc] */
   5265     MEM32(FS_BASE + (0)) = ecx; /* 0x360864D6: mov dword ptr fs:[0], ecx */
   5266     esp = ebp; /* 0x360864DD: mov esp, ebp */
   5267     ebp = POP32_VAL(esp); /* 0x360864DF: pop ebp */
   5268     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360864E0: ret  */
   5269 L_360864E1:
   5270     PUSH32(esp, 0); /* 0x360864E1: push 0 */
   5271     ecx = esi; /* 0x360864E3: mov ecx, esi */
   5272     RECOMP_ICALL(0x36086BD0u); /* 0x360864E5: call 0x36086bd0 */ /* not lifted */
   5273     RECOMP_FLAGS_IN();
   5274     edi = POP32_VAL(esp); /* 0x360864EA: pop edi */
   5275     esi = POP32_VAL(esp); /* 0x360864EB: pop esi */
   5276     ebx = POP32_VAL(esp); /* 0x360864EC: pop ebx */
   5277     ecx = MEM32(ebp + (-0xC)); /* 0x360864ED: mov ecx, dword ptr [ebp - 0xc] */
   5278     MEM32(FS_BASE + (0)) = ecx; /* 0x360864F0: mov dword ptr fs:[0], ecx */
   5279     esp = ebp; /* 0x360864F7: mov esp, ebp */
   5280     ebp = POP32_VAL(esp); /* 0x360864F9: pop ebp */
   5281     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360864FA: ret  */
   5282 L_360864FB:
   5283     edx = MEM32(eax + 0x178); /* 0x360864FB: mov edx, dword ptr [eax + 0x178] */
   5284     SET_LO8(eax, MEM8(edx + 0x5)); /* 0x36086501: mov al, byte ptr [edx + 5] */
   5285     /* test LO8(eax), LO8(eax) */ /* 0x36086504: test al, al */
   5286     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5287     _cf = 0;
   5288     _flag_k = FK_NARROW(FK_TEST, 24);
   5289     if (TEST_Z(_flag_a, _flag_b)) goto L_36086524; /* 0x36086506: je 0x36086524 */
   5290 L_36086508:
   5291     PUSH32(esp, 0); /* 0x36086508: push 0 */
   5292     PUSH32(esp, 5); /* 0x3608650A: push 5 */
   5293     ecx = esi; /* 0x3608650C: mov ecx, esi */
   5294     RECOMP_ICALL(0x36086BD0u); /* 0x3608650E: call 0x36086bd0 */ /* not lifted */
   5295     RECOMP_FLAGS_IN();
   5296     edi = POP32_VAL(esp); /* 0x36086513: pop edi */
   5297     esi = POP32_VAL(esp); /* 0x36086514: pop esi */
   5298     ebx = POP32_VAL(esp); /* 0x36086515: pop ebx */
   5299     ecx = MEM32(ebp + (-0xC)); /* 0x36086516: mov ecx, dword ptr [ebp - 0xc] */
   5300     MEM32(FS_BASE + (0)) = ecx; /* 0x36086519: mov dword ptr fs:[0], ecx */
   5301     esp = ebp; /* 0x36086520: mov esp, ebp */
   5302     ebp = POP32_VAL(esp); /* 0x36086522: pop ebp */
   5303     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086523: ret  */
   5304 L_36086524:
   5305     eax = MEM32(0x3616FF74); /* 0x36086524: mov eax, dword ptr [0x3616ff74] */
   5306     ecx = MEM32(eax); /* 0x36086529: mov ecx, dword ptr [eax] */
   5307     fp_push(*(float*)&MEM32(ecx + 0x64)); /* 0x3608652B: fld dword ptr [ecx + 0x64] */
   5308     ecx = edi; /* 0x3608652E: mov ecx, edi */
   5309     _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36086530: fadd dword ptr [esi + 0xc] */
   5310     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xC) = _v; } /* 0x36086533: fstp dword ptr [esi + 0xc] */
   5311     RECOMP_ICALL(0x3607B2D0u); /* 0x36086536: call 0x3607b2d0 */ /* not lifted */
   5312     RECOMP_FLAGS_IN();
   5313     eax = MEM32(esi + 0x8); /* 0x3608653B: mov eax, dword ptr [esi + 8] */
   5314     edx = MEM32(eax + 0x178); /* 0x3608653E: mov edx, dword ptr [eax + 0x178] */
   5315     SET_LO8(ecx, MEM8(edx + 0x4)); /* 0x36086544: mov cl, byte ptr [edx + 4] */
   5316     /* test LO8(ecx), LO8(ecx) */ /* 0x36086547: test cl, cl */
   5317     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5318     _cf = 0;
   5319     _flag_k = FK_NARROW(FK_TEST, 24);
   5320     if (TEST_Z(_flag_a, _flag_b)) goto L_36086567; /* 0x36086549: je 0x36086567 */
   5321 L_3608654B:
   5322     PUSH32(esp, 0); /* 0x3608654B: push 0 */
   5323     PUSH32(esp, 4); /* 0x3608654D: push 4 */
   5324     ecx = esi; /* 0x3608654F: mov ecx, esi */
   5325     RECOMP_ICALL(0x36086BD0u); /* 0x36086551: call 0x36086bd0 */ /* not lifted */
   5326     RECOMP_FLAGS_IN();
   5327     edi = POP32_VAL(esp); /* 0x36086556: pop edi */
   5328     esi = POP32_VAL(esp); /* 0x36086557: pop esi */
   5329     ebx = POP32_VAL(esp); /* 0x36086558: pop ebx */
   5330     ecx = MEM32(ebp + (-0xC)); /* 0x36086559: mov ecx, dword ptr [ebp - 0xc] */
   5331     MEM32(FS_BASE + (0)) = ecx; /* 0x3608655C: mov dword ptr fs:[0], ecx */
   5332     esp = ebp; /* 0x36086563: mov esp, ebp */
   5333     ebp = POP32_VAL(esp); /* 0x36086565: pop ebp */
   5334     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086566: ret  */
   5335 L_36086567:
   5336     ecx = eax + 0xE4; /* 0x36086567: lea ecx, [eax + 0xe4] */
   5337     eax = MEM32(ecx); /* 0x3608656D: mov eax, dword ptr [ecx] */
   5338     PUSH32(esp, 0x00040000u); /* 0x3608656F: push 0x40000 */
   5339     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x36086574: call dword ptr [eax + 0x1c] */
   5340     RECOMP_FLAGS_IN();
   5341     /* test LO8(eax), LO8(eax) */ /* 0x36086577: test al, al */
   5342     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5343     _cf = 0;
   5344     _flag_k = FK_NARROW(FK_TEST, 24);
   5345     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608687E; /* 0x36086579: jne 0x3608687e */
   5346 L_3608657F:
   5347     ecx = MEM32(esi + 0x8); /* 0x3608657F: mov ecx, dword ptr [esi + 8] */
   5348     RECOMP_ICALL(0x36071430u); /* 0x36086582: call 0x36071430 */ /* not lifted */
   5349     RECOMP_FLAGS_IN();
   5350     /* test LO8(eax), LO8(eax) */ /* 0x36086587: test al, al */
   5351     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5352     _cf = 0;
   5353     _flag_k = FK_NARROW(FK_TEST, 24);
   5354     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608687E; /* 0x36086589: jne 0x3608687e */
   5355 L_3608658F:
   5356     ecx = MEM32(esi + 0x8); /* 0x3608658F: mov ecx, dword ptr [esi + 8] */
   5357     RECOMP_ICALL(0x36071440u); /* 0x36086592: call 0x36071440 */ /* not lifted */
   5358     RECOMP_FLAGS_IN();
   5359     /* test LO8(eax), LO8(eax) */ /* 0x36086597: test al, al */
   5360     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5361     _cf = 0;
   5362     _flag_k = FK_NARROW(FK_TEST, 24);
   5363     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608687E; /* 0x36086599: jne 0x3608687e */
   5364 L_3608659F:
   5365     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x3608659F: fld dword ptr [esi + 0xc] */
   5366     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171BA0)); /* 0x360865A2: fcomp dword ptr [0x36171ba0] */
   5367     fp_pop();
   5368     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360865A8: fnstsw ax */
   5369     /* test HI8(eax), 0x41u */ /* 0x360865AA: test ah, 0x41 */
   5370     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5371     _cf = 0;
   5372     _flag_k = FK_NARROW(FK_TEST, 24);
   5373     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086885; /* 0x360865AD: jne 0x36086885 */
   5374 L_360865B3:
   5375     ecx = ebp + (-0x64); /* 0x360865B3: lea ecx, [ebp - 0x64] */
   5376     PUSH32(esp, ecx); /* 0x360865B6: push ecx */
   5377     ecx = MEM32(esi + 0x8); /* 0x360865B7: mov ecx, dword ptr [esi + 8] */
   5378     MEM32(esi + 0xC) = 0; /* 0x360865BA: mov dword ptr [esi + 0xc], 0 */
   5379     MEM32(ebp + (-0x48)) = 0; /* 0x360865C1: mov dword ptr [ebp - 0x48], 0 */
   5380     MEM32(ebp + (-0x44)) = 0; /* 0x360865C8: mov dword ptr [ebp - 0x44], 0 */
   5381     MEM32(ebp + (-0x40)) = 0x3F800000u; /* 0x360865CF: mov dword ptr [ebp - 0x40], 0x3f800000 */
   5382     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360865D6: call dword ptr [0x36170048] */
   5383     RECOMP_FLAGS_IN();
   5384     edx = MEM32(ebp + (-0x48)); /* 0x360865DC: mov edx, dword ptr [ebp - 0x48] */
   5385     ecx = MEM32(ebp + (-0x40)); /* 0x360865DF: mov ecx, dword ptr [ebp - 0x40] */
   5386     edi = eax; /* 0x360865E2: mov edi, eax */
   5387     eax = MEM32(ebp + (-0x44)); /* 0x360865E4: mov eax, dword ptr [ebp - 0x44] */
   5388     MEM32(ebp + (-0x24)) = edx; /* 0x360865E7: mov dword ptr [ebp - 0x24], edx */
   5389     MEM32(ebp + (-0x20)) = eax; /* 0x360865EA: mov dword ptr [ebp - 0x20], eax */
   5390     edx = edi; /* 0x360865ED: mov edx, edi */
   5391     eax = MEM32(edx); /* 0x360865EF: mov eax, dword ptr [edx] */
   5392     MEM32(ebp + (-0x1C)) = ecx; /* 0x360865F1: mov dword ptr [ebp - 0x1c], ecx */
   5393     ecx = MEM32(edx + 0x4); /* 0x360865F4: mov ecx, dword ptr [edx + 4] */
   5394     edx = MEM32(edx + 0x8); /* 0x360865F7: mov edx, dword ptr [edx + 8] */
   5395     MEM32(ebp + (-0x30)) = eax; /* 0x360865FA: mov dword ptr [ebp - 0x30], eax */
   5396     eax = ebp + (-0x24); /* 0x360865FD: lea eax, [ebp - 0x24] */
   5397     MEM32(ebp + (-0x2C)) = ecx; /* 0x36086600: mov dword ptr [ebp - 0x2c], ecx */
   5398     PUSH32(esp, eax); /* 0x36086603: push eax */
   5399     ecx = ebp + (-0x30); /* 0x36086604: lea ecx, [ebp - 0x30] */
   5400     MEM32(ebp + (-0x28)) = edx; /* 0x36086607: mov dword ptr [ebp - 0x28], edx */
   5401     RECOMP_ICALL(MEM32(0x3617017C)); /* 0x3608660A: call dword ptr [0x3617017c] */
   5402     RECOMP_FLAGS_IN();
   5403     ecx = MEM32(eax); /* 0x36086610: mov ecx, dword ptr [eax] */
   5404     MEM32(ebp + (-0x48)) = ecx; /* 0x36086612: mov dword ptr [ebp - 0x48], ecx */
   5405     edx = MEM32(eax + 0x4); /* 0x36086615: mov edx, dword ptr [eax + 4] */
   5406     MEM32(ebp + (-0x44)) = edx; /* 0x36086618: mov dword ptr [ebp - 0x44], edx */
   5407     eax = MEM32(eax + 0x8); /* 0x3608661B: mov eax, dword ptr [eax + 8] */
   5408     ecx = ebp + (-0x48); /* 0x3608661E: lea ecx, [ebp - 0x48] */
   5409     PUSH32(esp, ecx); /* 0x36086621: push ecx */
   5410     edx = ebp + (-0x54); /* 0x36086622: lea edx, [ebp - 0x54] */
   5411     PUSH32(esp, edx); /* 0x36086625: push edx */
   5412     ecx = edi; /* 0x36086626: mov ecx, edi */
   5413     MEM32(ebp + (-0x40)) = eax; /* 0x36086628: mov dword ptr [ebp - 0x40], eax */
   5414     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3608662B: call dword ptr [0x36170180] */
   5415     RECOMP_FLAGS_IN();
   5416     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x36086631: fld dword ptr [edi + 0xc] */
   5417     ecx = MEM32(eax); /* 0x36086634: mov ecx, dword ptr [eax] */
   5418     _st[0] += _st[0]; /* 0x36086636: fadd st(0), st(0) */
   5419     MEM32(ebp + (-0x3C)) = ecx; /* 0x36086638: mov dword ptr [ebp - 0x3c], ecx */
   5420     edx = MEM32(eax + 0x4); /* 0x3608663B: mov edx, dword ptr [eax + 4] */
   5421     MEM32(ebp + (-0x38)) = edx; /* 0x3608663E: mov dword ptr [ebp - 0x38], edx */
   5422     eax = MEM32(eax + 0x8); /* 0x36086641: mov eax, dword ptr [eax + 8] */
   5423     PUSH32(esp, ecx); /* 0x36086644: push ecx */
   5424     ecx = ebp + (-0x48); /* 0x36086645: lea ecx, [ebp - 0x48] */
   5425     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36086648: fstp dword ptr [esp] */
   5426     MEM32(ebp + (-0x34)) = eax; /* 0x3608664B: mov dword ptr [ebp - 0x34], eax */
   5427     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3608664E: call dword ptr [0x36170184] */
   5428     RECOMP_FLAGS_IN();
   5429     PUSH32(esp, 0x40000000u); /* 0x36086654: push 0x40000000 */
   5430     ecx = ebp + (-0x3C); /* 0x36086659: lea ecx, [ebp - 0x3c] */
   5431     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3608665C: call dword ptr [0x36170184] */
   5432     RECOMP_FLAGS_IN();
   5433     ecx = ebp + (-0x48); /* 0x36086662: lea ecx, [ebp - 0x48] */
   5434     PUSH32(esp, ecx); /* 0x36086665: push ecx */
   5435     ecx = ebp + (-0x24); /* 0x36086666: lea ecx, [ebp - 0x24] */
   5436     RECOMP_ICALL(MEM32(0x36170178)); /* 0x36086669: call dword ptr [0x36170178] */
   5437     RECOMP_FLAGS_IN();
   5438     edx = ebp + (-0x3C); /* 0x3608666F: lea edx, [ebp - 0x3c] */
   5439     PUSH32(esp, edx); /* 0x36086672: push edx */
   5440     ecx = ebp + (-0x24); /* 0x36086673: lea ecx, [ebp - 0x24] */
   5441     RECOMP_ICALL(MEM32(0x36170178)); /* 0x36086676: call dword ptr [0x36170178] */
   5442     RECOMP_FLAGS_IN();
   5443     /* test ebx, ebx */ /* 0x3608667C: test ebx, ebx */
   5444     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5445     _cf = 0;
   5446     _flag_k = FK_TEST;
   5447     eax = MEM32(ebp + (-0x24)); /* 0x3608667E: mov eax, dword ptr [ebp - 0x24] */
   5448     ecx = MEM32(ebp + (-0x20)); /* 0x36086681: mov ecx, dword ptr [ebp - 0x20] */
   5449     edx = MEM32(ebp + (-0x1C)); /* 0x36086684: mov edx, dword ptr [ebp - 0x1c] */
   5450     MEM32(ebp + (-0x48)) = eax; /* 0x36086687: mov dword ptr [ebp - 0x48], eax */
   5451     MEM32(ebp + (-0x44)) = ecx; /* 0x3608668A: mov dword ptr [ebp - 0x44], ecx */
   5452     MEM32(ebp + (-0x40)) = edx; /* 0x3608668D: mov dword ptr [ebp - 0x40], edx */
   5453     MEM32(ebp + (-0x30)) = 0; /* 0x36086690: mov dword ptr [ebp - 0x30], 0 */
   5454     MEM32(ebp + (-0x28)) = 0; /* 0x36086697: mov dword ptr [ebp - 0x28], 0 */
   5455     if (TEST_Z(_flag_a, _flag_b)) goto L_360866F2; /* 0x3608669E: je 0x360866f2 */
   5456 L_360866A0:
   5457     ecx = MEM32(esi + 0x8); /* 0x360866A0: mov ecx, dword ptr [esi + 8] */
   5458     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360866A3: call dword ptr [0x3616ffb0] */
   5459     RECOMP_FLAGS_IN();
   5460     ecx = ebx; /* 0x360866A9: mov ecx, ebx */
   5461     edi = eax; /* 0x360866AB: mov edi, eax */
   5462     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360866AD: call dword ptr [0x3616ffb0] */
   5463     RECOMP_FLAGS_IN();
   5464     ecx = MEM32(eax); /* 0x360866B3: mov ecx, dword ptr [eax] */
   5465     edx = MEM32(eax + 0x4); /* 0x360866B5: mov edx, dword ptr [eax + 4] */
   5466     eax = MEM32(eax + 0x8); /* 0x360866B8: mov eax, dword ptr [eax + 8] */
   5467     MEM32(ebp + (-0x3C)) = ecx; /* 0x360866BB: mov dword ptr [ebp - 0x3c], ecx */
   5468     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x360866BE: fld dword ptr [ebp - 0x3c] */
   5469     _st[0] -= (double)*(float*)ADDR(edi); /* 0x360866C1: fsub dword ptr [edi] */
   5470     MEM32(ebp + (-0x38)) = edx; /* 0x360866C3: mov dword ptr [ebp - 0x38], edx */
   5471     MEM32(ebp + (-0x34)) = eax; /* 0x360866C6: mov dword ptr [ebp - 0x34], eax */
   5472     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x360866C9: fstp dword ptr [ebp - 0x3c] */
   5473     ecx = MEM32(ebp + (-0x3C)); /* 0x360866CC: mov ecx, dword ptr [ebp - 0x3c] */
   5474     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x360866CF: fld dword ptr [ebp - 0x38] */
   5475     MEM32(ebp + (-0x30)) = ecx; /* 0x360866D2: mov dword ptr [ebp - 0x30], ecx */
   5476     _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x360866D5: fsub dword ptr [edi + 4] */
   5477     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x360866D8: fstp dword ptr [ebp - 0x38] */
   5478     edx = MEM32(ebp + (-0x38)); /* 0x360866DB: mov edx, dword ptr [ebp - 0x38] */
   5479     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x360866DE: fld dword ptr [ebp - 0x34] */
   5480     MEM32(ebp + (-0x2C)) = edx; /* 0x360866E1: mov dword ptr [ebp - 0x2c], edx */
   5481     _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x360866E4: fsub dword ptr [edi + 8] */
   5482     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x360866E7: fstp dword ptr [ebp - 0x34] */
   5483     eax = MEM32(ebp + (-0x34)); /* 0x360866EA: mov eax, dword ptr [ebp - 0x34] */
   5484     MEM32(ebp + (-0x28)) = eax; /* 0x360866ED: mov dword ptr [ebp - 0x28], eax */
   5485     goto L_3608674E; /* 0x360866F0: jmp 0x3608674e */
   5486 L_360866F2:
   5487     eax = MEM32(ebp + (-0x14)); /* 0x360866F2: mov eax, dword ptr [ebp - 0x14] */
   5488     /* test eax, eax */ /* 0x360866F5: test eax, eax */
   5489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5490     _cf = 0;
   5491     _flag_k = FK_TEST;
   5492     if (TEST_Z(_flag_a, _flag_b)) goto L_3608674E; /* 0x360866F7: je 0x3608674e */
   5493 L_360866F9:
   5494     ecx = MEM32(esi + 0x8); /* 0x360866F9: mov ecx, dword ptr [esi + 8] */
   5495     ebx = MEM32(0x3616FFB0); /* 0x360866FC: mov ebx, dword ptr [0x3616ffb0] */
   5496     RECOMP_ICALL(ebx); /* 0x36086702: call ebx */
   5497     RECOMP_FLAGS_IN();
   5498     ecx = MEM32(ebp + (-0x14)); /* 0x36086704: mov ecx, dword ptr [ebp - 0x14] */
   5499     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu);
   5500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5501     ecx = ecx + 0x8Cu; /* 0x36086707: add ecx, 0x8c */
   5502     _flag_k = FK_ADD;
   5503     edi = eax; /* 0x3608670D: mov edi, eax */
   5504     RECOMP_ICALL(ebx); /* 0x3608670F: call ebx */
   5505     RECOMP_FLAGS_IN();
   5506     edx = MEM32(eax); /* 0x36086711: mov edx, dword ptr [eax] */
   5507     ecx = MEM32(eax + 0x4); /* 0x36086713: mov ecx, dword ptr [eax + 4] */
   5508     MEM32(ebp + (-0x3C)) = edx; /* 0x36086716: mov dword ptr [ebp - 0x3c], edx */
   5509     fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36086719: fld dword ptr [ebp - 0x3c] */
   5510     _st[0] -= (double)*(float*)ADDR(edi); /* 0x3608671C: fsub dword ptr [edi] */
   5511     edx = MEM32(eax + 0x8); /* 0x3608671E: mov edx, dword ptr [eax + 8] */
   5512     MEM32(ebp + (-0x38)) = ecx; /* 0x36086721: mov dword ptr [ebp - 0x38], ecx */
   5513     MEM32(ebp + (-0x34)) = edx; /* 0x36086724: mov dword ptr [ebp - 0x34], edx */
   5514     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36086727: fstp dword ptr [ebp - 0x3c] */
   5515     eax = MEM32(ebp + (-0x3C)); /* 0x3608672A: mov eax, dword ptr [ebp - 0x3c] */
   5516     fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x3608672D: fld dword ptr [ebp - 0x38] */
   5517     MEM32(ebp + (-0x30)) = eax; /* 0x36086730: mov dword ptr [ebp - 0x30], eax */
   5518     _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36086733: fsub dword ptr [edi + 4] */
   5519     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36086736: fstp dword ptr [ebp - 0x38] */
   5520     ecx = MEM32(ebp + (-0x38)); /* 0x36086739: mov ecx, dword ptr [ebp - 0x38] */
   5521     fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3608673C: fld dword ptr [ebp - 0x34] */
   5522     MEM32(ebp + (-0x2C)) = ecx; /* 0x3608673F: mov dword ptr [ebp - 0x2c], ecx */
   5523     _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36086742: fsub dword ptr [edi + 8] */
   5524     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36086745: fstp dword ptr [ebp - 0x34] */
   5525     edx = MEM32(ebp + (-0x34)); /* 0x36086748: mov edx, dword ptr [ebp - 0x34] */
   5526     MEM32(ebp + (-0x28)) = edx; /* 0x3608674B: mov dword ptr [ebp - 0x28], edx */
   5527 L_3608674E:
   5528     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3608674E: fld dword ptr [ebp - 0x24] */
   5529     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36086751: fcomp dword ptr [0x3617040c] */
   5530     fp_pop();
   5531     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086757: fnstsw ax */
   5532     /* test HI8(eax), 0x40u */ /* 0x36086759: test ah, 0x40 */
   5533     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5534     _cf = 0;
   5535     _flag_k = FK_NARROW(FK_TEST, 24);
   5536     if (TEST_Z(_flag_a, _flag_b)) goto L_36086782; /* 0x3608675C: je 0x36086782 */
   5537 L_3608675E:
   5538     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3608675E: fld dword ptr [ebp - 0x20] */
   5539     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36086761: fcomp dword ptr [0x3617040c] */
   5540     fp_pop();
   5541     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086767: fnstsw ax */
   5542     /* test HI8(eax), 0x40u */ /* 0x36086769: test ah, 0x40 */
   5543     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5544     _cf = 0;
   5545     _flag_k = FK_NARROW(FK_TEST, 24);
   5546     if (TEST_Z(_flag_a, _flag_b)) goto L_36086782; /* 0x3608676C: je 0x36086782 */
   5547 L_3608676E:
   5548     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3608676E: fld dword ptr [ebp - 0x1c] */
   5549     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36086771: fcomp dword ptr [0x3617040c] */
   5550     fp_pop();
   5551     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086777: fnstsw ax */
   5552     /* test HI8(eax), 0x40u */ /* 0x36086779: test ah, 0x40 */
   5553     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5554     _cf = 0;
   5555     _flag_k = FK_NARROW(FK_TEST, 24);
   5556     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086885; /* 0x3608677C: jne 0x36086885 */
   5557 L_36086782:
   5558     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36086782: fld dword ptr [ebp - 0x30] */
   5559     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36086785: fcomp dword ptr [0x3617040c] */
   5560     fp_pop();
   5561     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608678B: fnstsw ax */
   5562     /* test HI8(eax), 0x40u */ /* 0x3608678D: test ah, 0x40 */
   5563     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5564     _cf = 0;
   5565     _flag_k = FK_NARROW(FK_TEST, 24);
   5566     if (TEST_Z(_flag_a, _flag_b)) goto L_360867A6; /* 0x36086790: je 0x360867a6 */
   5567 L_36086792:
   5568     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36086792: fld dword ptr [ebp - 0x28] */
   5569     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36086795: fcomp dword ptr [0x3617040c] */
   5570     fp_pop();
   5571     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608679B: fnstsw ax */
   5572     /* test HI8(eax), 0x40u */ /* 0x3608679D: test ah, 0x40 */
   5573     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5574     _cf = 0;
   5575     _flag_k = FK_NARROW(FK_TEST, 24);
   5576     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086885; /* 0x360867A0: jne 0x36086885 */
   5577 L_360867A6:
   5578     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x360867A6: fld dword ptr [ebp - 0x1c] */
   5579     MEM32(ebp + (-0x2C)) = 0; /* 0x360867A9: mov dword ptr [ebp - 0x2c], 0 */
   5580     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x360867B0: fmul dword ptr [ebp - 0x1c] */
   5581     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x360867B3: fld dword ptr [ebp - 0x20] */
   5582     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x360867B6: fmul dword ptr [ebp - 0x20] */
   5583     { double _v = fp_pop(); _st[0] += _v; } /* 0x360867B9: faddp st(1) */
   5584     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x360867BB: fld dword ptr [ebp - 0x24] */
   5585     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x360867BE: fmul dword ptr [ebp - 0x24] */
   5586     { double _v = fp_pop(); _st[0] += _v; } /* 0x360867C1: faddp st(1) */
   5587     _st[0] = sqrt(_st[0]); /* 0x360867C3: fsqrt  */
   5588     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x360867C5: fdivr dword ptr [0x36170380] */
   5589     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x360867CB: fld dword ptr [ebp - 0x24] */
   5590     _st[0] *= _st[1]; /* 0x360867CE: fmul st(1) */
   5591     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x360867D0: fstp dword ptr [ebp - 0x48] */
   5592     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x360867D3: fld dword ptr [ebp - 0x44] */
   5593     _st[0] *= _st[1]; /* 0x360867D6: fmul st(1) */
   5594     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x360867D8: fstp dword ptr [ebp - 0x44] */
   5595     _st[0] *= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x360867DB: fmul dword ptr [ebp - 0x40] */
   5596     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x360867DE: fld dword ptr [ebp - 0x28] */
   5597     fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x360867E1: fld dword ptr [ebp - 0x30] */
   5598     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x360867E4: fmul dword ptr [ebp - 0x30] */
   5599     fp_push(_st[1]); /* 0x360867E7: fld st(1) */
   5600     _st[0] *= _st[2]; /* 0x360867E9: fmul st(2) */
   5601     { double _v = fp_pop(); _st[0] += _v; } /* 0x360867EB: faddp st(1) */
   5602     _st[0] = sqrt(_st[0]); /* 0x360867ED: fsqrt  */
   5603     { _st[1] = _st[0]; g_st_i64[1] = g_st_i64[0]; fp_pop(); } /* 0x360867EF: fstp st(1) */
   5604     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x360867F1: fdivr dword ptr [0x36170380] */
   5605     fp_push(_st[0]); /* 0x360867F7: fld st(0) */
   5606     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x360867F9: fmul dword ptr [ebp - 0x30] */
   5607     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x360867FC: fstp dword ptr [ebp - 0x30] */
   5608     _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x360867FF: fmul dword ptr [ebp - 0x28] */
   5609     fp_xch(1); /* 0x36086802: fxch st(1) */
   5610     _st[0] *= _st[1]; /* 0x36086804: fmul st(1) */
   5611     fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36086806: fld dword ptr [ebp - 0x48] */
   5612     _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36086809: fmul dword ptr [ebp - 0x30] */
   5613     { double _v = fp_pop(); _st[0] += _v; } /* 0x3608680C: faddp st(1) */
   5614     fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x3608680E: fld dword ptr [ebp - 0x44] */
   5615     _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36086811: fmul dword ptr [ebp - 0x2c] */
   5616     { double _v = fp_pop(); _st[0] += _v; } /* 0x36086814: faddp st(1) */
   5617     fp_xch(1); /* 0x36086816: fxch st(1) */
   5618     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36086818: fstp st(0) */
   5619     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170444)); /* 0x3608681A: fcom dword ptr [0x36170444] */
   5620     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086820: fnstsw ax */
   5621     /* test HI8(eax), 0x41u */ /* 0x36086822: test ah, 0x41 */
   5622     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5623     _cf = 0;
   5624     _flag_k = FK_NARROW(FK_TEST, 24);
   5625     if (TEST_Z(_flag_a, _flag_b)) goto L_36086832; /* 0x36086825: je 0x36086832 */
   5626 L_36086827:
   5627     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36086827: fstp st(0) */
   5628     MEM32(ebp + (-0x14)) = 0xBF800000u; /* 0x36086829: mov dword ptr [ebp - 0x14], 0xbf800000 */
   5629     goto L_3608684D; /* 0x36086830: jmp 0x3608684d */
   5630 L_36086832:
   5631     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36086832: fcom dword ptr [0x36170380] */
   5632     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086838: fnstsw ax */
   5633     /* test HI8(eax), 1 */ /* 0x3608683A: test ah, 1 */
   5634     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5635     _cf = 0;
   5636     _flag_k = FK_NARROW(FK_TEST, 24);
   5637     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608684A; /* 0x3608683D: jne 0x3608684a */
   5638 L_3608683F:
   5639     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3608683F: fstp st(0) */
   5640     MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x36086841: mov dword ptr [ebp - 0x14], 0x3f800000 */
   5641     goto L_3608684D; /* 0x36086848: jmp 0x3608684d */
   5642 L_3608684A:
   5643     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3608684A: fstp dword ptr [ebp - 0x14] */
   5644 L_3608684D:
   5645     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3608684D: fld dword ptr [ebp - 0x14] */
   5646     RECOMP_ICALL(0x3615FED6u); /* 0x36086850: call 0x3615fed6 */ /* not lifted */
   5647     RECOMP_FLAGS_IN();
   5648     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171B9C)); /* 0x36086855: fcomp dword ptr [0x36171b9c] */
   5649     fp_pop();
   5650     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608685B: fnstsw ax */
   5651     /* test HI8(eax), 0x41u */ /* 0x3608685D: test ah, 0x41 */
   5652     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5653     _cf = 0;
   5654     _flag_k = FK_NARROW(FK_TEST, 24);
   5655     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086885; /* 0x36086860: jne 0x36086885 */
   5656 L_36086862:
   5657     PUSH32(esp, 0); /* 0x36086862: push 0 */
   5658     PUSH32(esp, 7); /* 0x36086864: push 7 */
   5659     ecx = esi; /* 0x36086866: mov ecx, esi */
   5660     RECOMP_ICALL(0x36086BD0u); /* 0x36086868: call 0x36086bd0 */ /* not lifted */
   5661     RECOMP_FLAGS_IN();
   5662     edi = POP32_VAL(esp); /* 0x3608686D: pop edi */
   5663     esi = POP32_VAL(esp); /* 0x3608686E: pop esi */
   5664     ebx = POP32_VAL(esp); /* 0x3608686F: pop ebx */
   5665     ecx = MEM32(ebp + (-0xC)); /* 0x36086870: mov ecx, dword ptr [ebp - 0xc] */
   5666     MEM32(FS_BASE + (0)) = ecx; /* 0x36086873: mov dword ptr fs:[0], ecx */
   5667     esp = ebp; /* 0x3608687A: mov esp, ebp */
   5668     ebp = POP32_VAL(esp); /* 0x3608687C: pop ebp */
   5669     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608687D: ret  */
   5670 L_3608687E:
   5671     MEM32(esi + 0xC) = 0; /* 0x3608687E: mov dword ptr [esi + 0xc], 0 */
   5672 L_36086885:
   5673     ecx = MEM32(ebp + (-0xC)); /* 0x36086885: mov ecx, dword ptr [ebp - 0xc] */
   5674     edi = POP32_VAL(esp); /* 0x36086888: pop edi */
   5675     eax = esi; /* 0x36086889: mov eax, esi */
   5676     esi = POP32_VAL(esp); /* 0x3608688B: pop esi */
   5677     ebx = POP32_VAL(esp); /* 0x3608688C: pop ebx */
   5678     MEM32(FS_BASE + (0)) = ecx; /* 0x3608688D: mov dword ptr fs:[0], ecx */
   5679     esp = ebp; /* 0x36086894: mov esp, ebp */
   5680     ebp = POP32_VAL(esp); /* 0x36086896: pop ebp */
   5681     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086897: ret  */
   5682     RECOMP_REGS_OUT();
   5683 }
   5684 
   5685 void sub_360868A0(void) {
   5686     int _fpu_cmp = 0;
   5687     uint32_t _cf = 0;
   5688     int _df = 1;
   5689     uint32_t _flag_k = FK_NONE;
   5690     uint32_t _flag_a = 0, _flag_b = 0;
   5691     uint32_t _itail_tgt = 0;
   5692     RECOMP_REGS_LOCALS
   5693     RECOMP_ENTER(0x360868A0u);
   5694 
   5695 L_360868A0:
   5696     PUSH32(esp, ebp); /* 0x360868A0: push ebp */
   5697     ebp = esp; /* 0x360868A1: mov ebp, esp */
   5698     eax = MEM32(ebp + 0xC); /* 0x360868A3: mov eax, dword ptr [ebp + 0xc] */
   5699     PUSH32(esp, esi); /* 0x360868A6: push esi */
   5700     esi = ecx; /* 0x360868A7: mov esi, ecx */
   5701     ecx = MEM32(ebp + 0x8); /* 0x360868A9: mov ecx, dword ptr [ebp + 8] */
   5702     PUSH32(esp, eax); /* 0x360868AC: push eax */
   5703     PUSH32(esp, ecx); /* 0x360868AD: push ecx */
   5704     ecx = esi; /* 0x360868AE: mov ecx, esi */
   5705     RECOMP_ICALL(0x36086B70u); /* 0x360868B0: call 0x36086b70 */ /* not lifted */
   5706     RECOMP_FLAGS_IN();
   5707     edx = MEM32(esi + 0x8); /* 0x360868B5: mov edx, dword ptr [esi + 8] */
   5708     MEM32(esi) = 0x36171BA8u; /* 0x360868B8: mov dword ptr [esi], 0x36171ba8 */
   5709     eax = MEM32(edx + 0x178); /* 0x360868BE: mov eax, dword ptr [edx + 0x178] */
   5710     MEM8(eax + 0x4) = (uint8_t)(0); /* 0x360868C4: mov byte ptr [eax + 4], 0 */
   5711     eax = esi; /* 0x360868C8: mov eax, esi */
   5712     esi = POP32_VAL(esp); /* 0x360868CA: pop esi */
   5713     ebp = POP32_VAL(esp); /* 0x360868CB: pop ebp */
   5714     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360868CC: ret 8 */
   5715     RECOMP_REGS_OUT();
   5716 }
   5717 
   5718 void sub_360868D0(void) {
   5719     int _fpu_cmp = 0;
   5720     uint32_t _cf = 0;
   5721     int _df = 1;
   5722     uint32_t _flag_k = FK_NONE;
   5723     uint32_t _flag_a = 0, _flag_b = 0;
   5724     uint32_t _itail_tgt = 0;
   5725     RECOMP_REGS_LOCALS
   5726     RECOMP_ENTER(0x360868D0u);
   5727 
   5728 L_360868D0:
   5729     PUSH32(esp, esi); /* 0x360868D0: push esi */
   5730     esi = ecx; /* 0x360868D1: mov esi, ecx */
   5731     eax = MEM32(esi + 0x8); /* 0x360868D3: mov eax, dword ptr [esi + 8] */
   5732     ecx = MEM32(eax + 0x16C); /* 0x360868D6: mov ecx, dword ptr [eax + 0x16c] */
   5733     /* cmp MEM32(ecx + 0x50), 1 */ /* 0x360868DC: cmp dword ptr [ecx + 0x50], 1 */
   5734     _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1);
   5735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5736     _flag_k = FK_CMP;
   5737     if (CMP_EQ(_flag_a, _flag_b)) goto L_360868F8; /* 0x360868E0: je 0x360868f8 */
   5738 L_360868E2:
   5739     eax = MEM32(ecx); /* 0x360868E2: mov eax, dword ptr [ecx] */
   5740     RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x360868E4: call dword ptr [eax + 0x50] */
   5741     RECOMP_FLAGS_IN();
   5742     /* test eax, eax */ /* 0x360868E7: test eax, eax */
   5743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5744     _cf = 0;
   5745     _flag_k = FK_TEST;
   5746     if (TEST_Z(_flag_a, _flag_b)) goto L_3608690E; /* 0x360868E9: je 0x3608690e */
   5747 L_360868EB:
   5748     PUSH32(esp, 0); /* 0x360868EB: push 0 */
   5749     PUSH32(esp, 0xAu); /* 0x360868ED: push 0xa */
   5750     ecx = esi; /* 0x360868EF: mov ecx, esi */
   5751     RECOMP_ICALL(0x36086BD0u); /* 0x360868F1: call 0x36086bd0 */ /* not lifted */
   5752     RECOMP_FLAGS_IN();
   5753     esi = POP32_VAL(esp); /* 0x360868F6: pop esi */
   5754     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360868F7: ret  */
   5755 L_360868F8:
   5756     /* test MEM8(eax + 0x11C), 0x10u */ /* 0x360868F8: test byte ptr [eax + 0x11c], 0x10 */
   5757     _flag_a = (uint32_t)(MEM8(eax + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   5758     _cf = 0;
   5759     _flag_k = FK_NARROW(FK_TEST, 24);
   5760     if (TEST_Z(_flag_a, _flag_b)) goto L_3608690E; /* 0x360868FF: je 0x3608690e */
   5761 L_36086901:
   5762     PUSH32(esp, 0); /* 0x36086901: push 0 */
   5763     PUSH32(esp, 0xBu); /* 0x36086903: push 0xb */
   5764     ecx = esi; /* 0x36086905: mov ecx, esi */
   5765     RECOMP_ICALL(0x36086BD0u); /* 0x36086907: call 0x36086bd0 */ /* not lifted */
   5766     RECOMP_FLAGS_IN();
   5767     esi = POP32_VAL(esp); /* 0x3608690C: pop esi */
   5768     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608690D: ret  */
   5769 L_3608690E:
   5770     ecx = MEM32(esi + 0x8); /* 0x3608690E: mov ecx, dword ptr [esi + 8] */
   5771     fp_push(*(float*)&MEM32(ecx + 0x194)); /* 0x36086911: fld dword ptr [ecx + 0x194] */
   5772     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36086917: fcomp dword ptr [0x3617040c] */
   5773     fp_pop();
   5774     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608691D: fnstsw ax */
   5775     /* test HI8(eax), 0x40u */ /* 0x3608691F: test ah, 0x40 */
   5776     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5777     _cf = 0;
   5778     _flag_k = FK_NARROW(FK_TEST, 24);
   5779     if (TEST_Z(_flag_a, _flag_b)) goto L_3608694A; /* 0x36086922: je 0x3608694a */
   5780 L_36086924:
   5781     fp_push(*(float*)&MEM32(ecx + 0x198)); /* 0x36086924: fld dword ptr [ecx + 0x198] */
   5782     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3608692A: fcomp dword ptr [0x3617040c] */
   5783     fp_pop();
   5784     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086930: fnstsw ax */
   5785     /* test HI8(eax), 0x40u */ /* 0x36086932: test ah, 0x40 */
   5786     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5787     _cf = 0;
   5788     _flag_k = FK_NARROW(FK_TEST, 24);
   5789     if (TEST_Z(_flag_a, _flag_b)) goto L_3608694A; /* 0x36086935: je 0x3608694a */
   5790 L_36086937:
   5791     fp_push(*(float*)&MEM32(ecx + 0x19C)); /* 0x36086937: fld dword ptr [ecx + 0x19c] */
   5792     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3608693D: fcomp dword ptr [0x3617040c] */
   5793     fp_pop();
   5794     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086943: fnstsw ax */
   5795     /* test HI8(eax), 0x40u */ /* 0x36086945: test ah, 0x40 */
   5796     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   5797     _cf = 0;
   5798     _flag_k = FK_NARROW(FK_TEST, 24);
   5799     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608695D; /* 0x36086948: jne 0x3608695d */
   5800 L_3608694A:
   5801     RECOMP_ICALL(MEM32(0x3616FCA8)); /* 0x3608694A: call dword ptr [0x3616fca8] */
   5802     RECOMP_FLAGS_IN();
   5803     PUSH32(esp, 0); /* 0x36086950: push 0 */
   5804     PUSH32(esp, 7); /* 0x36086952: push 7 */
   5805     ecx = esi; /* 0x36086954: mov ecx, esi */
   5806     RECOMP_ICALL(0x36086BD0u); /* 0x36086956: call 0x36086bd0 */ /* not lifted */
   5807     RECOMP_FLAGS_IN();
   5808     esi = POP32_VAL(esp); /* 0x3608695B: pop esi */
   5809     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608695C: ret  */
   5810 L_3608695D:
   5811     eax = MEM32(ecx + 0x178); /* 0x3608695D: mov eax, dword ptr [ecx + 0x178] */
   5812     SET_LO8(edx, MEM8(eax + 0x4)); /* 0x36086963: mov dl, byte ptr [eax + 4] */
   5813     /* test LO8(edx), LO8(edx) */ /* 0x36086966: test dl, dl */
   5814     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5815     _cf = 0;
   5816     _flag_k = FK_NARROW(FK_TEST, 24);
   5817     if (TEST_Z(_flag_a, _flag_b)) goto L_36086977; /* 0x36086968: je 0x36086977 */
   5818 L_3608696A:
   5819     PUSH32(esp, 0); /* 0x3608696A: push 0 */
   5820     PUSH32(esp, 4); /* 0x3608696C: push 4 */
   5821     ecx = esi; /* 0x3608696E: mov ecx, esi */
   5822     RECOMP_ICALL(0x36086BD0u); /* 0x36086970: call 0x36086bd0 */ /* not lifted */
   5823     RECOMP_FLAGS_IN();
   5824     esi = POP32_VAL(esp); /* 0x36086975: pop esi */
   5825     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086976: ret  */
   5826 L_36086977:
   5827     SET_LO8(edx, MEM8(eax + 0x5)); /* 0x36086977: mov dl, byte ptr [eax + 5] */
   5828     /* test LO8(edx), LO8(edx) */ /* 0x3608697A: test dl, dl */
   5829     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   5830     _cf = 0;
   5831     _flag_k = FK_NARROW(FK_TEST, 24);
   5832     if (TEST_Z(_flag_a, _flag_b)) goto L_3608698B; /* 0x3608697C: je 0x3608698b */
   5833 L_3608697E:
   5834     PUSH32(esp, 0); /* 0x3608697E: push 0 */
   5835     PUSH32(esp, 5); /* 0x36086980: push 5 */
   5836     ecx = esi; /* 0x36086982: mov ecx, esi */
   5837     RECOMP_ICALL(0x36086BD0u); /* 0x36086984: call 0x36086bd0 */ /* not lifted */
   5838     RECOMP_FLAGS_IN();
   5839     esi = POP32_VAL(esp); /* 0x36086989: pop esi */
   5840     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608698A: ret  */
   5841 L_3608698B:
   5842     RECOMP_ICALL(0x36072000u); /* 0x3608698B: call 0x36072000 */ /* not lifted */
   5843     RECOMP_FLAGS_IN();
   5844     SET_LO8(ecx, MEM8(eax + 0x64)); /* 0x36086990: mov cl, byte ptr [eax + 0x64] */
   5845     /* test LO8(ecx), LO8(ecx) */ /* 0x36086993: test cl, cl */
   5846     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5847     _cf = 0;
   5848     _flag_k = FK_NARROW(FK_TEST, 24);
   5849     if (TEST_Z(_flag_a, _flag_b)) goto L_360869A4; /* 0x36086995: je 0x360869a4 */
   5850 L_36086997:
   5851     PUSH32(esp, 0); /* 0x36086997: push 0 */
   5852     PUSH32(esp, 6); /* 0x36086999: push 6 */
   5853     ecx = esi; /* 0x3608699B: mov ecx, esi */
   5854     RECOMP_ICALL(0x36086BD0u); /* 0x3608699D: call 0x36086bd0 */ /* not lifted */
   5855     RECOMP_FLAGS_IN();
   5856     esi = POP32_VAL(esp); /* 0x360869A2: pop esi */
   5857     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360869A3: ret  */
   5858 L_360869A4:
   5859     ecx = MEM32(esi + 0x8); /* 0x360869A4: mov ecx, dword ptr [esi + 8] */
   5860     ecx = MEM32(ecx + 0x16C); /* 0x360869A7: mov ecx, dword ptr [ecx + 0x16c] */
   5861     /* cmp MEM32(ecx + 0x50), 1 */ /* 0x360869AD: cmp dword ptr [ecx + 0x50], 1 */
   5862     _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1);
   5863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5864     _flag_k = FK_CMP;
   5865     if (CMP_EQ(_flag_a, _flag_b)) goto L_360869C9; /* 0x360869B1: je 0x360869c9 */
   5866 L_360869B3:
   5867     edx = MEM32(ecx); /* 0x360869B3: mov edx, dword ptr [ecx] */
   5868     RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x360869B5: call dword ptr [edx + 0x50] */
   5869     RECOMP_FLAGS_IN();
   5870     /* test eax, eax */ /* 0x360869B8: test eax, eax */
   5871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5872     _cf = 0;
   5873     _flag_k = FK_TEST;
   5874     if (TEST_Z(_flag_a, _flag_b)) goto L_360869C9; /* 0x360869BA: je 0x360869c9 */
   5875 L_360869BC:
   5876     PUSH32(esp, 0); /* 0x360869BC: push 0 */
   5877     PUSH32(esp, 0xAu); /* 0x360869BE: push 0xa */
   5878     ecx = esi; /* 0x360869C0: mov ecx, esi */
   5879     RECOMP_ICALL(0x36086BD0u); /* 0x360869C2: call 0x36086bd0 */ /* not lifted */
   5880     RECOMP_FLAGS_IN();
   5881     esi = POP32_VAL(esp); /* 0x360869C7: pop esi */
   5882     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360869C8: ret  */
   5883 L_360869C9:
   5884     eax = MEM32(esi + 0x8); /* 0x360869C9: mov eax, dword ptr [esi + 8] */
   5885     eax = MEM32(eax + 0x174); /* 0x360869CC: mov eax, dword ptr [eax + 0x174] */
   5886     ecx = MEM32(eax + 0x48); /* 0x360869D2: mov ecx, dword ptr [eax + 0x48] */
   5887     /* test ecx, ecx */ /* 0x360869D5: test ecx, ecx */
   5888     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5889     _cf = 0;
   5890     _flag_k = FK_TEST;
   5891     PUSH32(esp, edi); /* 0x360869D7: push edi */
   5892     if (TEST_Z(_flag_a, _flag_b)) goto L_36086A05; /* 0x360869D8: je 0x36086a05 */
   5893 L_360869DA:
   5894     edi = ecx; /* 0x360869DA: mov edi, ecx */
   5895     MEM32(eax + 0x48) = 0; /* 0x360869DC: mov dword ptr [eax + 0x48], 0 */
   5896     ecx = MEM32(esi + 0x8); /* 0x360869E3: mov ecx, dword ptr [esi + 8] */
   5897     ecx = MEM32(ecx + 0x174); /* 0x360869E6: mov ecx, dword ptr [ecx + 0x174] */
   5898     PUSH32(esp, edi); /* 0x360869EC: push edi */
   5899     RECOMP_ICALL(0x3610DEB0u); /* 0x360869ED: call 0x3610deb0 */ /* not lifted */
   5900     RECOMP_FLAGS_IN();
   5901     /* test LO8(eax), LO8(eax) */ /* 0x360869F2: test al, al */
   5902     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5903     _cf = 0;
   5904     _flag_k = FK_NARROW(FK_TEST, 24);
   5905     if (TEST_Z(_flag_a, _flag_b)) goto L_36086A05; /* 0x360869F4: je 0x36086a05 */
   5906 L_360869F6:
   5907     edx = MEM32(esi + 0x8); /* 0x360869F6: mov edx, dword ptr [esi + 8] */
   5908     PUSH32(esp, 1); /* 0x360869F9: push 1 */
   5909     PUSH32(esp, edi); /* 0x360869FB: push edi */
   5910     PUSH32(esp, edx); /* 0x360869FC: push edx */
   5911     RECOMP_ICALL(0x360185F0u); /* 0x360869FD: call 0x360185f0 */ /* not lifted */
   5912     RECOMP_FLAGS_IN();
   5913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5915     esp = esp + 0xCu; /* 0x36086A02: add esp, 0xc */
   5916     _flag_k = FK_ADD;
   5917 L_36086A05:
   5918     edi = POP32_VAL(esp); /* 0x36086A05: pop edi */
   5919     eax = esi; /* 0x36086A06: mov eax, esi */
   5920     esi = POP32_VAL(esp); /* 0x36086A08: pop esi */
   5921     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086A09: ret  */
   5922     RECOMP_REGS_OUT();
   5923 }
   5924 
   5925 void sub_36086A10(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(0x36086A10u);
   5934 
   5935 L_36086A10:
   5936     PUSH32(esp, ebp); /* 0x36086A10: push ebp */
   5937     ebp = esp; /* 0x36086A11: mov ebp, esp */
   5938     eax = MEM32(ebp + 0xC); /* 0x36086A13: mov eax, dword ptr [ebp + 0xc] */
   5939     PUSH32(esp, esi); /* 0x36086A16: push esi */
   5940     esi = ecx; /* 0x36086A17: mov esi, ecx */
   5941     ecx = MEM32(ebp + 0x8); /* 0x36086A19: mov ecx, dword ptr [ebp + 8] */
   5942     PUSH32(esp, eax); /* 0x36086A1C: push eax */
   5943     PUSH32(esp, ecx); /* 0x36086A1D: push ecx */
   5944     ecx = esi; /* 0x36086A1E: mov ecx, esi */
   5945     RECOMP_ICALL(0x36086B70u); /* 0x36086A20: call 0x36086b70 */ /* not lifted */
   5946     RECOMP_FLAGS_IN();
   5947     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5948     eax = 0; /* 0x36086A25: xor eax, eax */
   5949     _cf = 0;
   5950     _flag_k = FK_TEST;
   5951     MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36086A27: mov byte ptr [esi + 0x14], al */
   5952     MEM32(esi + 0xC) = eax; /* 0x36086A2A: mov dword ptr [esi + 0xc], eax */
   5953     MEM32(esi) = 0x36171BB4u; /* 0x36086A2D: mov dword ptr [esi], 0x36171bb4 */
   5954     MEM32(esi + 0x10) = 0x3F000000u; /* 0x36086A33: mov dword ptr [esi + 0x10], 0x3f000000 */
   5955     eax = esi; /* 0x36086A3A: mov eax, esi */
   5956     esi = POP32_VAL(esp); /* 0x36086A3C: pop esi */
   5957     ebp = POP32_VAL(esp); /* 0x36086A3D: pop ebp */
   5958     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086A3E: ret 8 */
   5959     RECOMP_REGS_OUT();
   5960 }
   5961 
   5962 void sub_36086A50(void) {
   5963     int _fpu_cmp = 0;
   5964     uint32_t _cf = 0;
   5965     int _df = 1;
   5966     uint32_t _flag_k = FK_NONE;
   5967     uint32_t _flag_a = 0, _flag_b = 0;
   5968     uint32_t _itail_tgt = 0;
   5969     RECOMP_REGS_LOCALS
   5970     RECOMP_ENTER(0x36086A50u);
   5971 
   5972 L_36086A50:
   5973     PUSH32(esp, ebp); /* 0x36086A50: push ebp */
   5974     ebp = esp; /* 0x36086A51: mov ebp, esp */
   5975     PUSH32(esp, esi); /* 0x36086A53: push esi */
   5976     esi = ecx; /* 0x36086A54: mov esi, ecx */
   5977     RECOMP_ICALL(0x36086110u); /* 0x36086A56: call 0x36086110 */ /* not lifted */
   5978     RECOMP_FLAGS_IN();
   5979     /* test MEM8(ebp + 0x8), 1 */ /* 0x36086A5B: test byte ptr [ebp + 8], 1 */
   5980     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5981     _cf = 0;
   5982     _flag_k = FK_NARROW(FK_TEST, 24);
   5983     if (TEST_Z(_flag_a, _flag_b)) goto L_36086A6A; /* 0x36086A5F: je 0x36086a6a */
   5984 L_36086A61:
   5985     PUSH32(esp, esi); /* 0x36086A61: push esi */
   5986     RECOMP_ICALL(0x3615FCC4u); /* 0x36086A62: call 0x3615fcc4 */ /* not lifted */
   5987     RECOMP_FLAGS_IN();
   5988     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5990     esp = esp + 4; /* 0x36086A67: add esp, 4 */
   5991     _flag_k = FK_ADD;
   5992 L_36086A6A:
   5993     eax = esi; /* 0x36086A6A: mov eax, esi */
   5994     esi = POP32_VAL(esp); /* 0x36086A6C: pop esi */
   5995     ebp = POP32_VAL(esp); /* 0x36086A6D: pop ebp */
   5996     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36086A6E: ret 4 */
   5997     RECOMP_REGS_OUT();
   5998 }
   5999 
   6000 void sub_36086A80(void) {
   6001     int _fpu_cmp = 0;
   6002     uint32_t _cf = 0;
   6003     int _df = 1;
   6004     uint32_t _flag_k = FK_NONE;
   6005     uint32_t _flag_a = 0, _flag_b = 0;
   6006     uint32_t _itail_tgt = 0;
   6007     RECOMP_REGS_LOCALS
   6008     RECOMP_ENTER(0x36086A80u);
   6009 
   6010 L_36086A80:
   6011     eax = MEM32(0x3616FF74); /* 0x36086A80: mov eax, dword ptr [0x3616ff74] */
   6012     PUSH32(esp, esi); /* 0x36086A85: push esi */
   6013     esi = ecx; /* 0x36086A86: mov esi, ecx */
   6014     ecx = MEM32(eax); /* 0x36086A88: mov ecx, dword ptr [eax] */
   6015     fp_push(*(float*)&MEM32(ecx + 0x64)); /* 0x36086A8A: fld dword ptr [ecx + 0x64] */
   6016     _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36086A8D: fadd dword ptr [esi + 0xc] */
   6017     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC) = _v; } /* 0x36086A90: fst dword ptr [esi + 0xc] */
   6018     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x36086A93: fcomp dword ptr [esi + 0x10] */
   6019     fp_pop();
   6020     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36086A96: fnstsw ax */
   6021     /* test HI8(eax), 0x41u */ /* 0x36086A98: test ah, 0x41 */
   6022     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6023     _cf = 0;
   6024     _flag_k = FK_NARROW(FK_TEST, 24);
   6025     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086AA4; /* 0x36086A9B: jne 0x36086aa4 */
   6026 L_36086A9D:
   6027     MEM32(esi + 0xC) = 0; /* 0x36086A9D: mov dword ptr [esi + 0xc], 0 */
   6028 L_36086AA4:
   6029     ecx = MEM32(esi + 0x8); /* 0x36086AA4: mov ecx, dword ptr [esi + 8] */
   6030     /* test MEM8(ecx + 0x11C), 0x10u */ /* 0x36086AA7: test byte ptr [ecx + 0x11c], 0x10 */
   6031     _flag_a = (uint32_t)(MEM8(ecx + 0x11C)) << 24; _flag_b = (uint32_t)(0x10u) << 24;
   6032     _cf = 0;
   6033     _flag_k = FK_NARROW(FK_TEST, 24);
   6034     if (TEST_Z(_flag_a, _flag_b)) goto L_36086AE2; /* 0x36086AAE: je 0x36086ae2 */
   6035 L_36086AB0:
   6036     edx = MEM32(ecx + 0x16C); /* 0x36086AB0: mov edx, dword ptr [ecx + 0x16c] */
   6037     /* cmp MEM32(edx + 0x50), 1 */ /* 0x36086AB6: cmp dword ptr [edx + 0x50], 1 */
   6038     _flag_a = (uint32_t)(MEM32(edx + 0x50)); _flag_b = (uint32_t)(1);
   6039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6040     _flag_k = FK_CMP;
   6041     PUSH32(esp, 1); /* 0x36086ABA: push 1 */
   6042     if (CMP_EQ(_flag_a, _flag_b)) goto L_36086AD0; /* 0x36086ABC: je 0x36086ad0 */
   6043 L_36086ABE:
   6044     RECOMP_ICALL(0x36071460u); /* 0x36086ABE: call 0x36071460 */ /* not lifted */
   6045     RECOMP_FLAGS_IN();
   6046     PUSH32(esp, 0); /* 0x36086AC3: push 0 */
   6047     PUSH32(esp, 0xAu); /* 0x36086AC5: push 0xa */
   6048     ecx = esi; /* 0x36086AC7: mov ecx, esi */
   6049     RECOMP_ICALL(0x36086BD0u); /* 0x36086AC9: call 0x36086bd0 */ /* not lifted */
   6050     RECOMP_FLAGS_IN();
   6051     esi = POP32_VAL(esp); /* 0x36086ACE: pop esi */
   6052     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086ACF: ret  */
   6053 L_36086AD0:
   6054     RECOMP_ICALL(0x36071460u); /* 0x36086AD0: call 0x36071460 */ /* not lifted */
   6055     RECOMP_FLAGS_IN();
   6056     PUSH32(esp, 0); /* 0x36086AD5: push 0 */
   6057     PUSH32(esp, 0xBu); /* 0x36086AD7: push 0xb */
   6058     ecx = esi; /* 0x36086AD9: mov ecx, esi */
   6059     RECOMP_ICALL(0x36086BD0u); /* 0x36086ADB: call 0x36086bd0 */ /* not lifted */
   6060     RECOMP_FLAGS_IN();
   6061     esi = POP32_VAL(esp); /* 0x36086AE0: pop esi */
   6062     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086AE1: ret  */
   6063 L_36086AE2:
   6064     ecx = MEM32(ecx + 0x16C); /* 0x36086AE2: mov ecx, dword ptr [ecx + 0x16c] */
   6065     /* cmp MEM32(ecx + 0x50), 1 */ /* 0x36086AE8: cmp dword ptr [ecx + 0x50], 1 */
   6066     _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1);
   6067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6068     _flag_k = FK_CMP;
   6069     if (CMP_EQ(_flag_a, _flag_b)) goto L_36086B05; /* 0x36086AEC: je 0x36086b05 */
   6070 L_36086AEE:
   6071     RECOMP_ICALL(0x3607B7C0u); /* 0x36086AEE: call 0x3607b7c0 */ /* not lifted */
   6072     RECOMP_FLAGS_IN();
   6073     /* test LO8(eax), LO8(eax) */ /* 0x36086AF3: test al, al */
   6074     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6075     _cf = 0;
   6076     _flag_k = FK_NARROW(FK_TEST, 24);
   6077     if (TEST_Z(_flag_a, _flag_b)) goto L_36086B05; /* 0x36086AF5: je 0x36086b05 */
   6078 L_36086AF7:
   6079     eax = MEM32(esi + 0x8); /* 0x36086AF7: mov eax, dword ptr [esi + 8] */
   6080     ecx = MEM32(eax + 0x16C); /* 0x36086AFA: mov ecx, dword ptr [eax + 0x16c] */
   6081     RECOMP_ICALL(0x3607B2D0u); /* 0x36086B00: call 0x3607b2d0 */ /* not lifted */
   6082     RECOMP_FLAGS_IN();
   6083 L_36086B05:
   6084     eax = MEM32(esi + 0x8); /* 0x36086B05: mov eax, dword ptr [esi + 8] */
   6085     ecx = MEM32(eax + 0x178); /* 0x36086B08: mov ecx, dword ptr [eax + 0x178] */
   6086     SET_LO8(edx, MEM8(ecx + 0x4)); /* 0x36086B0E: mov dl, byte ptr [ecx + 4] */
   6087     /* test LO8(edx), LO8(edx) */ /* 0x36086B11: test dl, dl */
   6088     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   6089     _cf = 0;
   6090     _flag_k = FK_NARROW(FK_TEST, 24);
   6091     if (TEST_Z(_flag_a, _flag_b)) goto L_36086B5A; /* 0x36086B13: je 0x36086b5a */
   6092 L_36086B15:
   6093     SET_LO8(ecx, MEM8(esi + 0x14)); /* 0x36086B15: mov cl, byte ptr [esi + 0x14] */
   6094     /* test LO8(ecx), LO8(ecx) */ /* 0x36086B18: test cl, cl */
   6095     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6096     _cf = 0;
   6097     _flag_k = FK_NARROW(FK_TEST, 24);
   6098     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086B5A; /* 0x36086B1A: jne 0x36086b5a */
   6099 L_36086B1C:
   6100     eax = MEM32(eax + 0x174); /* 0x36086B1C: mov eax, dword ptr [eax + 0x174] */
   6101     ecx = MEM32(eax + 0x48); /* 0x36086B22: mov ecx, dword ptr [eax + 0x48] */
   6102     /* test ecx, ecx */ /* 0x36086B25: test ecx, ecx */
   6103     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6104     _cf = 0;
   6105     _flag_k = FK_TEST;
   6106     PUSH32(esp, edi); /* 0x36086B27: push edi */
   6107     if (TEST_Z(_flag_a, _flag_b)) goto L_36086B55; /* 0x36086B28: je 0x36086b55 */
   6108 L_36086B2A:
   6109     MEM32(eax + 0x48) = 0; /* 0x36086B2A: mov dword ptr [eax + 0x48], 0 */
   6110     edx = MEM32(esi + 0x8); /* 0x36086B31: mov edx, dword ptr [esi + 8] */
   6111     edi = ecx; /* 0x36086B34: mov edi, ecx */
   6112     ecx = MEM32(edx + 0x174); /* 0x36086B36: mov ecx, dword ptr [edx + 0x174] */
   6113     PUSH32(esp, edi); /* 0x36086B3C: push edi */
   6114     RECOMP_ICALL(0x3610DEB0u); /* 0x36086B3D: call 0x3610deb0 */ /* not lifted */
   6115     RECOMP_FLAGS_IN();
   6116     /* test LO8(eax), LO8(eax) */ /* 0x36086B42: test al, al */
   6117     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6118     _cf = 0;
   6119     _flag_k = FK_NARROW(FK_TEST, 24);
   6120     if (TEST_Z(_flag_a, _flag_b)) goto L_36086B55; /* 0x36086B44: je 0x36086b55 */
   6121 L_36086B46:
   6122     eax = MEM32(esi + 0x8); /* 0x36086B46: mov eax, dword ptr [esi + 8] */
   6123     PUSH32(esp, 1); /* 0x36086B49: push 1 */
   6124     PUSH32(esp, edi); /* 0x36086B4B: push edi */
   6125     PUSH32(esp, eax); /* 0x36086B4C: push eax */
   6126     RECOMP_ICALL(0x360185F0u); /* 0x36086B4D: call 0x360185f0 */ /* not lifted */
   6127     RECOMP_FLAGS_IN();
   6128     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6129     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6130     esp = esp + 0xCu; /* 0x36086B52: add esp, 0xc */
   6131     _flag_k = FK_ADD;
   6132 L_36086B55:
   6133     edi = POP32_VAL(esp); /* 0x36086B55: pop edi */
   6134     eax = esi; /* 0x36086B56: mov eax, esi */
   6135     esi = POP32_VAL(esp); /* 0x36086B58: pop esi */
   6136     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086B59: ret  */
   6137 L_36086B5A:
   6138     PUSH32(esp, 0); /* 0x36086B5A: push 0 */
   6139     PUSH32(esp, 0); /* 0x36086B5C: push 0 */
   6140     ecx = esi; /* 0x36086B5E: mov ecx, esi */
   6141     RECOMP_ICALL(0x36086BD0u); /* 0x36086B60: call 0x36086bd0 */ /* not lifted */
   6142     RECOMP_FLAGS_IN();
   6143     esi = POP32_VAL(esp); /* 0x36086B65: pop esi */
   6144     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086B66: ret  */
   6145     RECOMP_REGS_OUT();
   6146 }
   6147 
   6148 void sub_36086B70(void) {
   6149     int _fpu_cmp = 0;
   6150     uint32_t _cf = 0;
   6151     int _df = 1;
   6152     uint32_t _flag_k = FK_NONE;
   6153     uint32_t _flag_a = 0, _flag_b = 0;
   6154     uint32_t _itail_tgt = 0;
   6155     RECOMP_REGS_LOCALS
   6156     RECOMP_ENTER(0x36086B70u);
   6157 
   6158 L_36086B70:
   6159     PUSH32(esp, ebp); /* 0x36086B70: push ebp */
   6160     ebp = esp; /* 0x36086B71: mov ebp, esp */
   6161     eax = MEM32(ebp + 0x8); /* 0x36086B73: mov eax, dword ptr [ebp + 8] */
   6162     PUSH32(esp, esi); /* 0x36086B76: push esi */
   6163     esi = ecx; /* 0x36086B77: mov esi, ecx */
   6164     PUSH32(esp, eax); /* 0x36086B79: push eax */
   6165     RECOMP_ICALL(MEM32(0x3616FD3C)); /* 0x36086B7A: call dword ptr [0x3616fd3c] */
   6166     RECOMP_FLAGS_IN();
   6167     ecx = MEM32(ebp + 0xC); /* 0x36086B80: mov ecx, dword ptr [ebp + 0xc] */
   6168     MEM32(esi + 0x8) = ecx; /* 0x36086B83: mov dword ptr [esi + 8], ecx */
   6169     MEM32(esi) = 0x36171C18u; /* 0x36086B86: mov dword ptr [esi], 0x36171c18 */
   6170     eax = esi; /* 0x36086B8C: mov eax, esi */
   6171     esi = POP32_VAL(esp); /* 0x36086B8E: pop esi */
   6172     ebp = POP32_VAL(esp); /* 0x36086B8F: pop ebp */
   6173     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086B90: ret 8 */
   6174     RECOMP_REGS_OUT();
   6175 }
   6176 
   6177 void sub_36086BA0(void) {
   6178     int _fpu_cmp = 0;
   6179     uint32_t _cf = 0;
   6180     int _df = 1;
   6181     uint32_t _flag_k = FK_NONE;
   6182     uint32_t _flag_a = 0, _flag_b = 0;
   6183     uint32_t _itail_tgt = 0;
   6184     RECOMP_REGS_LOCALS
   6185     RECOMP_ENTER(0x36086BA0u);
   6186 
   6187 L_36086BA0:
   6188     PUSH32(esp, ebp); /* 0x36086BA0: push ebp */
   6189     ebp = esp; /* 0x36086BA1: mov ebp, esp */
   6190     PUSH32(esp, esi); /* 0x36086BA3: push esi */
   6191     esi = ecx; /* 0x36086BA4: mov esi, ecx */
   6192     RECOMP_ICALL(0x360858F0u); /* 0x36086BA6: call 0x360858f0 */ /* not lifted */
   6193     RECOMP_FLAGS_IN();
   6194     /* test MEM8(ebp + 0x8), 1 */ /* 0x36086BAB: test byte ptr [ebp + 8], 1 */
   6195     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6196     _cf = 0;
   6197     _flag_k = FK_NARROW(FK_TEST, 24);
   6198     if (TEST_Z(_flag_a, _flag_b)) goto L_36086BBA; /* 0x36086BAF: je 0x36086bba */
   6199 L_36086BB1:
   6200     PUSH32(esp, esi); /* 0x36086BB1: push esi */
   6201     RECOMP_ICALL(0x3615FCC4u); /* 0x36086BB2: call 0x3615fcc4 */ /* not lifted */
   6202     RECOMP_FLAGS_IN();
   6203     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6204     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6205     esp = esp + 4; /* 0x36086BB7: add esp, 4 */
   6206     _flag_k = FK_ADD;
   6207 L_36086BBA:
   6208     eax = esi; /* 0x36086BBA: mov eax, esi */
   6209     esi = POP32_VAL(esp); /* 0x36086BBC: pop esi */
   6210     ebp = POP32_VAL(esp); /* 0x36086BBD: pop ebp */
   6211     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36086BBE: ret 4 */
   6212     RECOMP_REGS_OUT();
   6213 }
   6214 
   6215 void sub_36086BD0(void) {
   6216     int _fpu_cmp = 0;
   6217     uint32_t _cf = 0;
   6218     int _df = 1;
   6219     uint32_t _flag_k = FK_NONE;
   6220     uint32_t _flag_a = 0, _flag_b = 0;
   6221     uint32_t _itail_tgt = 0;
   6222     RECOMP_REGS_LOCALS
   6223     RECOMP_ENTER(0x36086BD0u);
   6224 
   6225 L_36086BD0:
   6226     PUSH32(esp, ebp); /* 0x36086BD0: push ebp */
   6227 L_36086BD1:
   6228     ebp = esp; /* 0x36086BD1: mov ebp, esp */
   6229 L_36086BD3:
   6230     eax = MEM32(FS_BASE + (0)); /* 0x36086BD3: mov eax, dword ptr fs:[0] */
   6231 L_36086BD9:
   6232     PUSH32(esp, 0xFFFFFFFFu); /* 0x36086BD9: push -1 */
   6233 L_36086BDB:
   6234     PUSH32(esp, 0x36165BB2u); /* 0x36086BDB: push 0x36165bb2 */
   6235 L_36086BE0:
   6236     PUSH32(esp, eax); /* 0x36086BE0: push eax */
   6237 L_36086BE1:
   6238     MEM32(FS_BASE + (0)) = esp; /* 0x36086BE1: mov dword ptr fs:[0], esp */
   6239 L_36086BE8:
   6240     PUSH32(esp, ebx); /* 0x36086BE8: push ebx */
   6241 L_36086BE9:
   6242     PUSH32(esp, esi); /* 0x36086BE9: push esi */
   6243 L_36086BEA:
   6244     PUSH32(esp, edi); /* 0x36086BEA: push edi */
   6245 L_36086BEB:
   6246     edi = MEM32(ebp + 0xC); /* 0x36086BEB: mov edi, dword ptr [ebp + 0xc] */
   6247 L_36086BEE:
   6248     /* test edi, edi */ /* 0x36086BEE: test edi, edi */
   6249     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6250     _cf = 0;
   6251     _flag_k = FK_TEST;
   6252 L_36086BF0:
   6253     esi = ecx; /* 0x36086BF0: mov esi, ecx */
   6254 L_36086BF2:
   6255     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36086BF7; /* 0x36086BF2: jne 0x36086bf7 */
   6256 L_36086BF4:
   6257     edi = MEM32(esi + 0x4); /* 0x36086BF4: mov edi, dword ptr [esi + 4] */
   6258 L_36086BF7:
   6259     ecx = MEM32(esi + 0x8); /* 0x36086BF7: mov ecx, dword ptr [esi + 8] */
   6260 L_36086BFA:
   6261     RECOMP_ICALL(0x36071AD0u); /* 0x36086BFA: call 0x36071ad0 */ /* not lifted */
   6262     RECOMP_FLAGS_IN();
   6263 L_36086BFF:
   6264     ebx = MEM32(ebp + 0x8); /* 0x36086BFF: mov ebx, dword ptr [ebp + 8] */
   6265 L_36086C02:
   6266     PUSH32(esp, ebx); /* 0x36086C02: push ebx */
   6267 L_36086C03:
   6268     RECOMP_ICALL(0x36086DE0u); /* 0x36086C03: call 0x36086de0 */ /* not lifted */
   6269     RECOMP_FLAGS_IN();
   6270 L_36086C08:
   6271     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6273     esp = esp + 4; /* 0x36086C08: add esp, 4 */
   6274     _flag_k = FK_ADD;
   6275 L_36086C0B:
   6276     /* test LO8(eax), LO8(eax) */ /* 0x36086C0B: test al, al */
   6277     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6278     _cf = 0;
   6279     _flag_k = FK_NARROW(FK_TEST, 24);
   6280 L_36086C0D:
   6281     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36086C18; /* 0x36086C0D: je 0x36086c18 */
   6282 L_36086C0F:
   6283     ecx = MEM32(esi + 0x8); /* 0x36086C0F: mov ecx, dword ptr [esi + 8] */
   6284 L_36086C12:
   6285     PUSH32(esp, ebx); /* 0x36086C12: push ebx */
   6286 L_36086C13:
   6287     RECOMP_ICALL(0x36071AE0u); /* 0x36086C13: call 0x36071ae0 */ /* not lifted */
   6288     RECOMP_FLAGS_IN();
   6289 L_36086C18:
   6290     /* cmp ebx, 0xBu */ /* 0x36086C18: cmp ebx, 0xb */
   6291     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xBu);
   6292     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6293     _flag_k = FK_CMP;
   6294 L_36086C1B:
   6295     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36086D93; /* 0x36086C1B: ja 0x36086d93 */
   6296 L_36086C21:
   6297     { _itail_tgt = (uint32_t)(MEM32(ebx * 4 + 0x36086DA8)); goto _ljump; }
   6298 L_36086C28:
   6299     PUSH32(esp, 0x10u); /* 0x36086C28: push 0x10 */
   6300 L_36086C2A:
   6301     RECOMP_ICALL(0x3615FD6Au); /* 0x36086C2A: call 0x3615fd6a */ /* not lifted */
   6302     RECOMP_FLAGS_IN();
   6303 L_36086C2F:
   6304     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6305     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6306     esp = esp + 4; /* 0x36086C2F: add esp, 4 */
   6307     _flag_k = FK_ADD;
   6308 L_36086C32:
   6309     MEM32(ebp + 0xC) = eax; /* 0x36086C32: mov dword ptr [ebp + 0xc], eax */
   6310 L_36086C35:
   6311     /* test eax, eax */ /* 0x36086C35: test eax, eax */
   6312     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6313     _cf = 0;
   6314     _flag_k = FK_TEST;
   6315 L_36086C37:
   6316     MEM32(ebp + (-0x4)) = 0; /* 0x36086C37: mov dword ptr [ebp - 4], 0 */
   6317 L_36086C3E:
   6318     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36086C5F; /* 0x36086C3E: je 0x36086c5f */
   6319 L_36086C40:
   6320     ecx = MEM32(esi + 0x8); /* 0x36086C40: mov ecx, dword ptr [esi + 8] */
   6321 L_36086C43:
   6322     PUSH32(esp, ecx); /* 0x36086C43: push ecx */
   6323 L_36086C44:
   6324     PUSH32(esp, edi); /* 0x36086C44: push edi */
   6325 L_36086C45:
   6326     ecx = eax; /* 0x36086C45: mov ecx, eax */
   6327 L_36086C47:
   6328     RECOMP_ICALL(0x360868A0u); /* 0x36086C47: call 0x360868a0 */ /* not lifted */
   6329     RECOMP_FLAGS_IN();
   6330 L_36086C4C:
   6331     ecx = MEM32(ebp + (-0xC)); /* 0x36086C4C: mov ecx, dword ptr [ebp - 0xc] */
   6332 L_36086C4F:
   6333     MEM32(FS_BASE + (0)) = ecx; /* 0x36086C4F: mov dword ptr fs:[0], ecx */
   6334 L_36086C56:
   6335     edi = POP32_VAL(esp); /* 0x36086C56: pop edi */
   6336 L_36086C57:
   6337     esi = POP32_VAL(esp); /* 0x36086C57: pop esi */
   6338 L_36086C58:
   6339     ebx = POP32_VAL(esp); /* 0x36086C58: pop ebx */
   6340 L_36086C59:
   6341     esp = ebp; /* 0x36086C59: mov esp, ebp */
   6342 L_36086C5B:
   6343     ebp = POP32_VAL(esp); /* 0x36086C5B: pop ebp */
   6344 L_36086C5C:
   6345     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086C5C: ret 8 */
   6346 L_36086C5F:
   6347     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6348     eax = 0; /* 0x36086C5F: xor eax, eax */
   6349     _cf = 0;
   6350     _flag_k = FK_TEST;
   6351 L_36086C61:
   6352     ecx = MEM32(ebp + (-0xC)); /* 0x36086C61: mov ecx, dword ptr [ebp - 0xc] */
   6353 L_36086C64:
   6354     MEM32(FS_BASE + (0)) = ecx; /* 0x36086C64: mov dword ptr fs:[0], ecx */
   6355 L_36086C6B:
   6356     edi = POP32_VAL(esp); /* 0x36086C6B: pop edi */
   6357 L_36086C6C:
   6358     esi = POP32_VAL(esp); /* 0x36086C6C: pop esi */
   6359 L_36086C6D:
   6360     ebx = POP32_VAL(esp); /* 0x36086C6D: pop ebx */
   6361 L_36086C6E:
   6362     esp = ebp; /* 0x36086C6E: mov esp, ebp */
   6363 L_36086C70:
   6364     ebp = POP32_VAL(esp); /* 0x36086C70: pop ebp */
   6365 L_36086C71:
   6366     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086C71: ret 8 */
   6367 L_36086C74:
   6368     PUSH32(esp, 0x18u); /* 0x36086C74: push 0x18 */
   6369 L_36086C76:
   6370     RECOMP_ICALL(0x3615FD6Au); /* 0x36086C76: call 0x3615fd6a */ /* not lifted */
   6371     RECOMP_FLAGS_IN();
   6372 L_36086C7B:
   6373     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6374     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6375     esp = esp + 4; /* 0x36086C7B: add esp, 4 */
   6376     _flag_k = FK_ADD;
   6377 L_36086C7E:
   6378     MEM32(ebp + 0xC) = eax; /* 0x36086C7E: mov dword ptr [ebp + 0xc], eax */
   6379 L_36086C81:
   6380     /* test eax, eax */ /* 0x36086C81: test eax, eax */
   6381     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6382     _cf = 0;
   6383     _flag_k = FK_TEST;
   6384 L_36086C83:
   6385     MEM32(ebp + (-0x4)) = 1; /* 0x36086C83: mov dword ptr [ebp - 4], 1 */
   6386 L_36086C8A:
   6387     RECOMP_BACKEDGE();
   6388     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36086C5F; /* 0x36086C8A: je 0x36086c5f */
   6389 L_36086C8C:
   6390     edx = MEM32(esi + 0x8); /* 0x36086C8C: mov edx, dword ptr [esi + 8] */
   6391 L_36086C8F:
   6392     PUSH32(esp, edx); /* 0x36086C8F: push edx */
   6393 L_36086C90:
   6394     PUSH32(esp, edi); /* 0x36086C90: push edi */
   6395 L_36086C91:
   6396     ecx = eax; /* 0x36086C91: mov ecx, eax */
   6397 L_36086C93:
   6398     RECOMP_ICALL(0x36086A10u); /* 0x36086C93: call 0x36086a10 */ /* not lifted */
   6399     RECOMP_FLAGS_IN();
   6400 L_36086C98:
   6401     ecx = MEM32(ebp + (-0xC)); /* 0x36086C98: mov ecx, dword ptr [ebp - 0xc] */
   6402 L_36086C9B:
   6403     MEM32(FS_BASE + (0)) = ecx; /* 0x36086C9B: mov dword ptr fs:[0], ecx */
   6404 L_36086CA2:
   6405     edi = POP32_VAL(esp); /* 0x36086CA2: pop edi */
   6406 L_36086CA3:
   6407     esi = POP32_VAL(esp); /* 0x36086CA3: pop esi */
   6408 L_36086CA4:
   6409     ebx = POP32_VAL(esp); /* 0x36086CA4: pop ebx */
   6410 L_36086CA5:
   6411     esp = ebp; /* 0x36086CA5: mov esp, ebp */
   6412 L_36086CA7:
   6413     ebp = POP32_VAL(esp); /* 0x36086CA7: pop ebp */
   6414 L_36086CA8:
   6415     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086CA8: ret 8 */
   6416 L_36086CAB:
   6417     PUSH32(esp, 0x2Cu); /* 0x36086CAB: push 0x2c */
   6418 L_36086CAD:
   6419     RECOMP_ICALL(0x3615FD6Au); /* 0x36086CAD: call 0x3615fd6a */ /* not lifted */
   6420     RECOMP_FLAGS_IN();
   6421 L_36086CB2:
   6422     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6423     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6424     esp = esp + 4; /* 0x36086CB2: add esp, 4 */
   6425     _flag_k = FK_ADD;
   6426 L_36086CB5:
   6427     MEM32(ebp + 0xC) = eax; /* 0x36086CB5: mov dword ptr [ebp + 0xc], eax */
   6428 L_36086CB8:
   6429     /* test eax, eax */ /* 0x36086CB8: test eax, eax */
   6430     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6431     _cf = 0;
   6432     _flag_k = FK_TEST;
   6433 L_36086CBA:
   6434     MEM32(ebp + (-0x4)) = 2; /* 0x36086CBA: mov dword ptr [ebp - 4], 2 */
   6435 L_36086CC1:
   6436     RECOMP_BACKEDGE();
   6437     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36086C5F; /* 0x36086CC1: je 0x36086c5f */
   6438 L_36086CC3:
   6439     ecx = MEM32(esi + 0x8); /* 0x36086CC3: mov ecx, dword ptr [esi + 8] */
   6440 L_36086CC6:
   6441     PUSH32(esp, ecx); /* 0x36086CC6: push ecx */
   6442 L_36086CC7:
   6443     PUSH32(esp, edi); /* 0x36086CC7: push edi */
   6444 L_36086CC8:
   6445     ecx = eax; /* 0x36086CC8: mov ecx, eax */
   6446 L_36086CCA:
   6447     RECOMP_ICALL(0x36085670u); /* 0x36086CCA: call 0x36085670 */ /* not lifted */
   6448     RECOMP_FLAGS_IN();
   6449 L_36086CCF:
   6450     ecx = MEM32(ebp + (-0xC)); /* 0x36086CCF: mov ecx, dword ptr [ebp - 0xc] */
   6451 L_36086CD2:
   6452     MEM32(FS_BASE + (0)) = ecx; /* 0x36086CD2: mov dword ptr fs:[0], ecx */
   6453 L_36086CD9:
   6454     edi = POP32_VAL(esp); /* 0x36086CD9: pop edi */
   6455 L_36086CDA:
   6456     esi = POP32_VAL(esp); /* 0x36086CDA: pop esi */
   6457 L_36086CDB:
   6458     ebx = POP32_VAL(esp); /* 0x36086CDB: pop ebx */
   6459 L_36086CDC:
   6460     esp = ebp; /* 0x36086CDC: mov esp, ebp */
   6461 L_36086CDE:
   6462     ebp = POP32_VAL(esp); /* 0x36086CDE: pop ebp */
   6463 L_36086CDF:
   6464     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086CDF: ret 8 */
   6465 L_36086CE2:
   6466     PUSH32(esp, 0x20u); /* 0x36086CE2: push 0x20 */
   6467 L_36086CE4:
   6468     RECOMP_ICALL(0x3615FD6Au); /* 0x36086CE4: call 0x3615fd6a */ /* not lifted */
   6469     RECOMP_FLAGS_IN();
   6470 L_36086CE9:
   6471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6473     esp = esp + 4; /* 0x36086CE9: add esp, 4 */
   6474     _flag_k = FK_ADD;
   6475 L_36086CEC:
   6476     MEM32(ebp + 0xC) = eax; /* 0x36086CEC: mov dword ptr [ebp + 0xc], eax */
   6477 L_36086CEF:
   6478     /* test eax, eax */ /* 0x36086CEF: test eax, eax */
   6479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6480     _cf = 0;
   6481     _flag_k = FK_TEST;
   6482 L_36086CF1:
   6483     MEM32(ebp + (-0x4)) = 3; /* 0x36086CF1: mov dword ptr [ebp - 4], 3 */
   6484 L_36086CF8:
   6485     RECOMP_BACKEDGE();
   6486     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36086C5F; /* 0x36086CF8: je 0x36086c5f */
   6487 L_36086CFE:
   6488     edx = MEM32(esi + 0x8); /* 0x36086CFE: mov edx, dword ptr [esi + 8] */
   6489 L_36086D01:
   6490     PUSH32(esp, edx); /* 0x36086D01: push edx */
   6491 L_36086D02:
   6492     PUSH32(esp, edi); /* 0x36086D02: push edi */
   6493 L_36086D03:
   6494     ecx = eax; /* 0x36086D03: mov ecx, eax */
   6495 L_36086D05:
   6496     RECOMP_ICALL(0x36086E60u); /* 0x36086D05: call 0x36086e60 */ /* not lifted */
   6497     RECOMP_FLAGS_IN();
   6498 L_36086D0A:
   6499     ecx = MEM32(ebp + (-0xC)); /* 0x36086D0A: mov ecx, dword ptr [ebp - 0xc] */
   6500 L_36086D0D:
   6501     MEM32(FS_BASE + (0)) = ecx; /* 0x36086D0D: mov dword ptr fs:[0], ecx */
   6502 L_36086D14:
   6503     edi = POP32_VAL(esp); /* 0x36086D14: pop edi */
   6504 L_36086D15:
   6505     esi = POP32_VAL(esp); /* 0x36086D15: pop esi */
   6506 L_36086D16:
   6507     ebx = POP32_VAL(esp); /* 0x36086D16: pop ebx */
   6508 L_36086D17:
   6509     esp = ebp; /* 0x36086D17: mov esp, ebp */
   6510 L_36086D19:
   6511     ebp = POP32_VAL(esp); /* 0x36086D19: pop ebp */
   6512 L_36086D1A:
   6513     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086D1A: ret 8 */
   6514 L_36086D1D:
   6515     PUSH32(esp, 0x18u); /* 0x36086D1D: push 0x18 */
   6516 L_36086D1F:
   6517     RECOMP_ICALL(0x3615FD6Au); /* 0x36086D1F: call 0x3615fd6a */ /* not lifted */
   6518     RECOMP_FLAGS_IN();
   6519 L_36086D24:
   6520     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6521     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6522     esp = esp + 4; /* 0x36086D24: add esp, 4 */
   6523     _flag_k = FK_ADD;
   6524 L_36086D27:
   6525     MEM32(ebp + 0xC) = eax; /* 0x36086D27: mov dword ptr [ebp + 0xc], eax */
   6526 L_36086D2A:
   6527     /* test eax, eax */ /* 0x36086D2A: test eax, eax */
   6528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6529     _cf = 0;
   6530     _flag_k = FK_TEST;
   6531 L_36086D2C:
   6532     MEM32(ebp + (-0x4)) = 4; /* 0x36086D2C: mov dword ptr [ebp - 4], 4 */
   6533 L_36086D33:
   6534     RECOMP_BACKEDGE();
   6535     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36086C5F; /* 0x36086D33: je 0x36086c5f */
   6536 L_36086D39:
   6537     ecx = MEM32(esi + 0x8); /* 0x36086D39: mov ecx, dword ptr [esi + 8] */
   6538 L_36086D3C:
   6539     PUSH32(esp, ecx); /* 0x36086D3C: push ecx */
   6540 L_36086D3D:
   6541     PUSH32(esp, edi); /* 0x36086D3D: push edi */
   6542 L_36086D3E:
   6543     ecx = eax; /* 0x36086D3E: mov ecx, eax */
   6544 L_36086D40:
   6545     RECOMP_ICALL(0x36086300u); /* 0x36086D40: call 0x36086300 */ /* not lifted */
   6546     RECOMP_FLAGS_IN();
   6547 L_36086D45:
   6548     ecx = MEM32(ebp + (-0xC)); /* 0x36086D45: mov ecx, dword ptr [ebp - 0xc] */
   6549 L_36086D48:
   6550     MEM32(FS_BASE + (0)) = ecx; /* 0x36086D48: mov dword ptr fs:[0], ecx */
   6551 L_36086D4F:
   6552     edi = POP32_VAL(esp); /* 0x36086D4F: pop edi */
   6553 L_36086D50:
   6554     esi = POP32_VAL(esp); /* 0x36086D50: pop esi */
   6555 L_36086D51:
   6556     ebx = POP32_VAL(esp); /* 0x36086D51: pop ebx */
   6557 L_36086D52:
   6558     esp = ebp; /* 0x36086D52: mov esp, ebp */
   6559 L_36086D54:
   6560     ebp = POP32_VAL(esp); /* 0x36086D54: pop ebp */
   6561 L_36086D55:
   6562     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086D55: ret 8 */
   6563 L_36086D58:
   6564     PUSH32(esp, 0x20u); /* 0x36086D58: push 0x20 */
   6565 L_36086D5A:
   6566     RECOMP_ICALL(0x3615FD6Au); /* 0x36086D5A: call 0x3615fd6a */ /* not lifted */
   6567     RECOMP_FLAGS_IN();
   6568 L_36086D5F:
   6569     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6570     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6571     esp = esp + 4; /* 0x36086D5F: add esp, 4 */
   6572     _flag_k = FK_ADD;
   6573 L_36086D62:
   6574     MEM32(ebp + 0xC) = eax; /* 0x36086D62: mov dword ptr [ebp + 0xc], eax */
   6575 L_36086D65:
   6576     /* test eax, eax */ /* 0x36086D65: test eax, eax */
   6577     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6578     _cf = 0;
   6579     _flag_k = FK_TEST;
   6580 L_36086D67:
   6581     MEM32(ebp + (-0x4)) = 5; /* 0x36086D67: mov dword ptr [ebp - 4], 5 */
   6582 L_36086D6E:
   6583     RECOMP_BACKEDGE();
   6584     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36086C5F; /* 0x36086D6E: je 0x36086c5f */
   6585 L_36086D74:
   6586     edx = MEM32(esi + 0x8); /* 0x36086D74: mov edx, dword ptr [esi + 8] */
   6587 L_36086D77:
   6588     PUSH32(esp, edx); /* 0x36086D77: push edx */
   6589 L_36086D78:
   6590     PUSH32(esp, edi); /* 0x36086D78: push edi */
   6591 L_36086D79:
   6592     ecx = eax; /* 0x36086D79: mov ecx, eax */
   6593 L_36086D7B:
   6594     RECOMP_ICALL(0x36085D60u); /* 0x36086D7B: call 0x36085d60 */ /* not lifted */
   6595     RECOMP_FLAGS_IN();
   6596 L_36086D80:
   6597     ecx = MEM32(ebp + (-0xC)); /* 0x36086D80: mov ecx, dword ptr [ebp - 0xc] */
   6598 L_36086D83:
   6599     MEM32(FS_BASE + (0)) = ecx; /* 0x36086D83: mov dword ptr fs:[0], ecx */
   6600 L_36086D8A:
   6601     edi = POP32_VAL(esp); /* 0x36086D8A: pop edi */
   6602 L_36086D8B:
   6603     esi = POP32_VAL(esp); /* 0x36086D8B: pop esi */
   6604 L_36086D8C:
   6605     ebx = POP32_VAL(esp); /* 0x36086D8C: pop ebx */
   6606 L_36086D8D:
   6607     esp = ebp; /* 0x36086D8D: mov esp, ebp */
   6608 L_36086D8F:
   6609     ebp = POP32_VAL(esp); /* 0x36086D8F: pop ebp */
   6610 L_36086D90:
   6611     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086D90: ret 8 */
   6612 L_36086D93:
   6613     ecx = MEM32(ebp + (-0xC)); /* 0x36086D93: mov ecx, dword ptr [ebp - 0xc] */
   6614 L_36086D96:
   6615     edi = POP32_VAL(esp); /* 0x36086D96: pop edi */
   6616 L_36086D97:
   6617     eax = esi; /* 0x36086D97: mov eax, esi */
   6618 L_36086D99:
   6619     esi = POP32_VAL(esp); /* 0x36086D99: pop esi */
   6620 L_36086D9A:
   6621     MEM32(FS_BASE + (0)) = ecx; /* 0x36086D9A: mov dword ptr fs:[0], ecx */
   6622 L_36086DA1:
   6623     ebx = POP32_VAL(esp); /* 0x36086DA1: pop ebx */
   6624 L_36086DA2:
   6625     esp = ebp; /* 0x36086DA2: mov esp, ebp */
   6626 L_36086DA4:
   6627     ebp = POP32_VAL(esp); /* 0x36086DA4: pop ebp */
   6628 L_36086DA5:
   6629     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086DA5: ret 8 */
   6630   _ljump:
   6631     switch (_itail_tgt) {
   6632       case 0x36086BD0u: goto L_36086BD0;
   6633       case 0x36086BD1u: goto L_36086BD1;
   6634       case 0x36086BD3u: goto L_36086BD3;
   6635       case 0x36086BD9u: goto L_36086BD9;
   6636       case 0x36086BDBu: goto L_36086BDB;
   6637       case 0x36086BE0u: goto L_36086BE0;
   6638       case 0x36086BE1u: goto L_36086BE1;
   6639       case 0x36086BE8u: goto L_36086BE8;
   6640       case 0x36086BE9u: goto L_36086BE9;
   6641       case 0x36086BEAu: goto L_36086BEA;
   6642       case 0x36086BEBu: goto L_36086BEB;
   6643       case 0x36086BEEu: goto L_36086BEE;
   6644       case 0x36086BF0u: goto L_36086BF0;
   6645       case 0x36086BF2u: goto L_36086BF2;
   6646       case 0x36086BF4u: goto L_36086BF4;
   6647       case 0x36086BF7u: goto L_36086BF7;
   6648       case 0x36086BFAu: goto L_36086BFA;
   6649       case 0x36086BFFu: goto L_36086BFF;
   6650       case 0x36086C02u: goto L_36086C02;
   6651       case 0x36086C03u: goto L_36086C03;
   6652       case 0x36086C08u: goto L_36086C08;
   6653       case 0x36086C0Bu: goto L_36086C0B;
   6654       case 0x36086C0Du: goto L_36086C0D;
   6655       case 0x36086C0Fu: goto L_36086C0F;
   6656       case 0x36086C12u: goto L_36086C12;
   6657       case 0x36086C13u: goto L_36086C13;
   6658       case 0x36086C18u: goto L_36086C18;
   6659       case 0x36086C1Bu: goto L_36086C1B;
   6660       case 0x36086C21u: goto L_36086C21;
   6661       case 0x36086C28u: goto L_36086C28;
   6662       case 0x36086C2Au: goto L_36086C2A;
   6663       case 0x36086C2Fu: goto L_36086C2F;
   6664       case 0x36086C32u: goto L_36086C32;
   6665       case 0x36086C35u: goto L_36086C35;
   6666       case 0x36086C37u: goto L_36086C37;
   6667       case 0x36086C3Eu: goto L_36086C3E;
   6668       case 0x36086C40u: goto L_36086C40;
   6669       case 0x36086C43u: goto L_36086C43;
   6670       case 0x36086C44u: goto L_36086C44;
   6671       case 0x36086C45u: goto L_36086C45;
   6672       case 0x36086C47u: goto L_36086C47;
   6673       case 0x36086C4Cu: goto L_36086C4C;
   6674       case 0x36086C4Fu: goto L_36086C4F;
   6675       case 0x36086C56u: goto L_36086C56;
   6676       case 0x36086C57u: goto L_36086C57;
   6677       case 0x36086C58u: goto L_36086C58;
   6678       case 0x36086C59u: goto L_36086C59;
   6679       case 0x36086C5Bu: goto L_36086C5B;
   6680       case 0x36086C5Cu: goto L_36086C5C;
   6681       case 0x36086C5Fu: goto L_36086C5F;
   6682       case 0x36086C61u: goto L_36086C61;
   6683       case 0x36086C64u: goto L_36086C64;
   6684       case 0x36086C6Bu: goto L_36086C6B;
   6685       case 0x36086C6Cu: goto L_36086C6C;
   6686       case 0x36086C6Du: goto L_36086C6D;
   6687       case 0x36086C6Eu: goto L_36086C6E;
   6688       case 0x36086C70u: goto L_36086C70;
   6689       case 0x36086C71u: goto L_36086C71;
   6690       case 0x36086C74u: goto L_36086C74;
   6691       case 0x36086C76u: goto L_36086C76;
   6692       case 0x36086C7Bu: goto L_36086C7B;
   6693       case 0x36086C7Eu: goto L_36086C7E;
   6694       case 0x36086C81u: goto L_36086C81;
   6695       case 0x36086C83u: goto L_36086C83;
   6696       case 0x36086C8Au: goto L_36086C8A;
   6697       case 0x36086C8Cu: goto L_36086C8C;
   6698       case 0x36086C8Fu: goto L_36086C8F;
   6699       case 0x36086C90u: goto L_36086C90;
   6700       case 0x36086C91u: goto L_36086C91;
   6701       case 0x36086C93u: goto L_36086C93;
   6702       case 0x36086C98u: goto L_36086C98;
   6703       case 0x36086C9Bu: goto L_36086C9B;
   6704       case 0x36086CA2u: goto L_36086CA2;
   6705       case 0x36086CA3u: goto L_36086CA3;
   6706       case 0x36086CA4u: goto L_36086CA4;
   6707       case 0x36086CA5u: goto L_36086CA5;
   6708       case 0x36086CA7u: goto L_36086CA7;
   6709       case 0x36086CA8u: goto L_36086CA8;
   6710       case 0x36086CABu: goto L_36086CAB;
   6711       case 0x36086CADu: goto L_36086CAD;
   6712       case 0x36086CB2u: goto L_36086CB2;
   6713       case 0x36086CB5u: goto L_36086CB5;
   6714       case 0x36086CB8u: goto L_36086CB8;
   6715       case 0x36086CBAu: goto L_36086CBA;
   6716       case 0x36086CC1u: goto L_36086CC1;
   6717       case 0x36086CC3u: goto L_36086CC3;
   6718       case 0x36086CC6u: goto L_36086CC6;
   6719       case 0x36086CC7u: goto L_36086CC7;
   6720       case 0x36086CC8u: goto L_36086CC8;
   6721       case 0x36086CCAu: goto L_36086CCA;
   6722       case 0x36086CCFu: goto L_36086CCF;
   6723       case 0x36086CD2u: goto L_36086CD2;
   6724       case 0x36086CD9u: goto L_36086CD9;
   6725       case 0x36086CDAu: goto L_36086CDA;
   6726       case 0x36086CDBu: goto L_36086CDB;
   6727       case 0x36086CDCu: goto L_36086CDC;
   6728       case 0x36086CDEu: goto L_36086CDE;
   6729       case 0x36086CDFu: goto L_36086CDF;
   6730       case 0x36086CE2u: goto L_36086CE2;
   6731       case 0x36086CE4u: goto L_36086CE4;
   6732       case 0x36086CE9u: goto L_36086CE9;
   6733       case 0x36086CECu: goto L_36086CEC;
   6734       case 0x36086CEFu: goto L_36086CEF;
   6735       case 0x36086CF1u: goto L_36086CF1;
   6736       case 0x36086CF8u: goto L_36086CF8;
   6737       case 0x36086CFEu: goto L_36086CFE;
   6738       case 0x36086D01u: goto L_36086D01;
   6739       case 0x36086D02u: goto L_36086D02;
   6740       case 0x36086D03u: goto L_36086D03;
   6741       case 0x36086D05u: goto L_36086D05;
   6742       case 0x36086D0Au: goto L_36086D0A;
   6743       case 0x36086D0Du: goto L_36086D0D;
   6744       case 0x36086D14u: goto L_36086D14;
   6745       case 0x36086D15u: goto L_36086D15;
   6746       case 0x36086D16u: goto L_36086D16;
   6747       case 0x36086D17u: goto L_36086D17;
   6748       case 0x36086D19u: goto L_36086D19;
   6749       case 0x36086D1Au: goto L_36086D1A;
   6750       case 0x36086D1Du: goto L_36086D1D;
   6751       case 0x36086D1Fu: goto L_36086D1F;
   6752       case 0x36086D24u: goto L_36086D24;
   6753       case 0x36086D27u: goto L_36086D27;
   6754       case 0x36086D2Au: goto L_36086D2A;
   6755       case 0x36086D2Cu: goto L_36086D2C;
   6756       case 0x36086D33u: goto L_36086D33;
   6757       case 0x36086D39u: goto L_36086D39;
   6758       case 0x36086D3Cu: goto L_36086D3C;
   6759       case 0x36086D3Du: goto L_36086D3D;
   6760       case 0x36086D3Eu: goto L_36086D3E;
   6761       case 0x36086D40u: goto L_36086D40;
   6762       case 0x36086D45u: goto L_36086D45;
   6763       case 0x36086D48u: goto L_36086D48;
   6764       case 0x36086D4Fu: goto L_36086D4F;
   6765       case 0x36086D50u: goto L_36086D50;
   6766       case 0x36086D51u: goto L_36086D51;
   6767       case 0x36086D52u: goto L_36086D52;
   6768       case 0x36086D54u: goto L_36086D54;
   6769       case 0x36086D55u: goto L_36086D55;
   6770       case 0x36086D58u: goto L_36086D58;
   6771       case 0x36086D5Au: goto L_36086D5A;
   6772       case 0x36086D5Fu: goto L_36086D5F;
   6773       case 0x36086D62u: goto L_36086D62;
   6774       case 0x36086D65u: goto L_36086D65;
   6775       case 0x36086D67u: goto L_36086D67;
   6776       case 0x36086D6Eu: goto L_36086D6E;
   6777       case 0x36086D74u: goto L_36086D74;
   6778       case 0x36086D77u: goto L_36086D77;
   6779       case 0x36086D78u: goto L_36086D78;
   6780       case 0x36086D79u: goto L_36086D79;
   6781       case 0x36086D7Bu: goto L_36086D7B;
   6782       case 0x36086D80u: goto L_36086D80;
   6783       case 0x36086D83u: goto L_36086D83;
   6784       case 0x36086D8Au: goto L_36086D8A;
   6785       case 0x36086D8Bu: goto L_36086D8B;
   6786       case 0x36086D8Cu: goto L_36086D8C;
   6787       case 0x36086D8Du: goto L_36086D8D;
   6788       case 0x36086D8Fu: goto L_36086D8F;
   6789       case 0x36086D90u: goto L_36086D90;
   6790       case 0x36086D93u: goto L_36086D93;
   6791       case 0x36086D96u: goto L_36086D96;
   6792       case 0x36086D97u: goto L_36086D97;
   6793       case 0x36086D99u: goto L_36086D99;
   6794       case 0x36086D9Au: goto L_36086D9A;
   6795       case 0x36086DA1u: goto L_36086DA1;
   6796       case 0x36086DA2u: goto L_36086DA2;
   6797       case 0x36086DA4u: goto L_36086DA4;
   6798       case 0x36086DA5u: goto L_36086DA5;
   6799       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6800     }
   6801     RECOMP_REGS_OUT();
   6802 }
   6803 
   6804 void sub_36086DE0(void) {
   6805     int _fpu_cmp = 0;
   6806     uint32_t _cf = 0;
   6807     int _df = 1;
   6808     uint32_t _flag_k = FK_NONE;
   6809     uint32_t _flag_a = 0, _flag_b = 0;
   6810     uint32_t _itail_tgt = 0;
   6811     RECOMP_REGS_LOCALS
   6812     RECOMP_ENTER(0x36086DE0u);
   6813 
   6814 L_36086DE0:
   6815     PUSH32(esp, ebp); /* 0x36086DE0: push ebp */
   6816     ebp = esp; /* 0x36086DE1: mov ebp, esp */
   6817     ecx = MEM32(ebp + 0x8); /* 0x36086DE3: mov ecx, dword ptr [ebp + 8] */
   6818     eax = 0x36171BBCu; /* 0x36086DE6: mov eax, 0x36171bbc */
   6819 L_36086DEB:
   6820     /* cmp ecx, MEM32(eax) */ /* 0x36086DEB: cmp ecx, dword ptr [eax] */
   6821     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   6822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6823     _flag_k = FK_CMP;
   6824     if (CMP_EQ(_flag_a, _flag_b)) goto L_36086DFD; /* 0x36086DED: je 0x36086dfd */
   6825 L_36086DEF:
   6826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6827     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6828     eax = eax + 4; /* 0x36086DEF: add eax, 4 */
   6829     _flag_k = FK_ADD;
   6830     /* cmp eax, 0x36171C14u */ /* 0x36086DF2: cmp eax, 0x36171c14 */
   6831     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x36171C14u);
   6832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6833     _flag_k = FK_CMP;
   6834     RECOMP_BACKEDGE();
   6835     if (CMP_L(_flag_a, _flag_b)) goto L_36086DEB; /* 0x36086DF7: jl 0x36086deb */
   6836 L_36086DF9:
   6837     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6838     SET_LO8(eax, 0); /* 0x36086DF9: xor al, al */
   6839     _cf = 0;
   6840     _flag_k = FK_NARROW(FK_TEST, 24);
   6841     ebp = POP32_VAL(esp); /* 0x36086DFB: pop ebp */
   6842     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086DFC: ret  */
   6843 L_36086DFD:
   6844     SET_LO8(eax, 1); /* 0x36086DFD: mov al, 1 */
   6845     ebp = POP32_VAL(esp); /* 0x36086DFF: pop ebp */
   6846     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086E00: ret  */
   6847     RECOMP_REGS_OUT();
   6848 }
   6849 
   6850 void sub_36086E10(void) {
   6851     int _fpu_cmp = 0;
   6852     uint32_t _cf = 0;
   6853     int _df = 1;
   6854     uint32_t _flag_k = FK_NONE;
   6855     uint32_t _flag_a = 0, _flag_b = 0;
   6856     uint32_t _itail_tgt = 0;
   6857     RECOMP_REGS_LOCALS
   6858     RECOMP_ENTER(0x36086E10u);
   6859 
   6860 L_36086E10:
   6861     goto L_36086E20; /* 0x36086E10: jmp 0x36086e20 */
   6862 L_36086E20:
   6863     PUSH32(esp, ebp); /* 0x36086E20: push ebp */
   6864     ebp = esp; /* 0x36086E21: mov ebp, esp */
   6865     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6866     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6867     esp = esp - 0xCu; /* 0x36086E23: sub esp, 0xc */
   6868     _flag_k = FK_CMP;
   6869     MEM32(ebp + (-0xC)) = 0; /* 0x36086E26: mov dword ptr [ebp - 0xc], 0 */
   6870     eax = MEM32(ebp + (-0xC)); /* 0x36086E2D: mov eax, dword ptr [ebp - 0xc] */
   6871     MEM32(ebp + (-0x8)) = 0; /* 0x36086E30: mov dword ptr [ebp - 8], 0 */
   6872     ecx = MEM32(ebp + (-0x8)); /* 0x36086E37: mov ecx, dword ptr [ebp - 8] */
   6873     MEM32(ebp + (-0x4)) = 0; /* 0x36086E3A: mov dword ptr [ebp - 4], 0 */
   6874     edx = MEM32(ebp + (-0x4)); /* 0x36086E41: mov edx, dword ptr [ebp - 4] */
   6875     MEM32(0x36306AE8) = eax; /* 0x36086E44: mov dword ptr [0x36306ae8], eax */
   6876     MEM32(0x36306AEC) = ecx; /* 0x36086E49: mov dword ptr [0x36306aec], ecx */
   6877     MEM32(0x36306AF0) = edx; /* 0x36086E4F: mov dword ptr [0x36306af0], edx */
   6878     esp = ebp; /* 0x36086E55: mov esp, ebp */
   6879     ebp = POP32_VAL(esp); /* 0x36086E57: pop ebp */
   6880     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086E58: ret  */
   6881     RECOMP_REGS_OUT();
   6882 }
   6883 
   6884 void sub_36086E20(void) {
   6885     int _fpu_cmp = 0;
   6886     uint32_t _cf = 0;
   6887     int _df = 1;
   6888     uint32_t _flag_k = FK_NONE;
   6889     uint32_t _flag_a = 0, _flag_b = 0;
   6890     uint32_t _itail_tgt = 0;
   6891     RECOMP_REGS_LOCALS
   6892     RECOMP_ENTER(0x36086E20u);
   6893 
   6894 L_36086E20:
   6895     PUSH32(esp, ebp); /* 0x36086E20: push ebp */
   6896     ebp = esp; /* 0x36086E21: mov ebp, esp */
   6897     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6899     esp = esp - 0xCu; /* 0x36086E23: sub esp, 0xc */
   6900     _flag_k = FK_CMP;
   6901     MEM32(ebp + (-0xC)) = 0; /* 0x36086E26: mov dword ptr [ebp - 0xc], 0 */
   6902     eax = MEM32(ebp + (-0xC)); /* 0x36086E2D: mov eax, dword ptr [ebp - 0xc] */
   6903     MEM32(ebp + (-0x8)) = 0; /* 0x36086E30: mov dword ptr [ebp - 8], 0 */
   6904     ecx = MEM32(ebp + (-0x8)); /* 0x36086E37: mov ecx, dword ptr [ebp - 8] */
   6905     MEM32(ebp + (-0x4)) = 0; /* 0x36086E3A: mov dword ptr [ebp - 4], 0 */
   6906     edx = MEM32(ebp + (-0x4)); /* 0x36086E41: mov edx, dword ptr [ebp - 4] */
   6907     MEM32(0x36306AE8) = eax; /* 0x36086E44: mov dword ptr [0x36306ae8], eax */
   6908     MEM32(0x36306AEC) = ecx; /* 0x36086E49: mov dword ptr [0x36306aec], ecx */
   6909     MEM32(0x36306AF0) = edx; /* 0x36086E4F: mov dword ptr [0x36306af0], edx */
   6910     esp = ebp; /* 0x36086E55: mov esp, ebp */
   6911     ebp = POP32_VAL(esp); /* 0x36086E57: pop ebp */
   6912     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36086E58: ret  */
   6913     RECOMP_REGS_OUT();
   6914 }
   6915 
   6916 void sub_36086E60(void) {
   6917     int _fpu_cmp = 0;
   6918     uint32_t _cf = 0;
   6919     int _df = 1;
   6920     uint32_t _flag_k = FK_NONE;
   6921     uint32_t _flag_a = 0, _flag_b = 0;
   6922     uint32_t _itail_tgt = 0;
   6923     RECOMP_REGS_LOCALS
   6924     RECOMP_ENTER(0x36086E60u);
   6925 
   6926 L_36086E60:
   6927     PUSH32(esp, ebp); /* 0x36086E60: push ebp */
   6928     ebp = esp; /* 0x36086E61: mov ebp, esp */
   6929     PUSH32(esp, 0xFFFFFFFFu); /* 0x36086E63: push -1 */
   6930     PUSH32(esp, 0x36165BC8u); /* 0x36086E65: push 0x36165bc8 */
   6931     eax = MEM32(FS_BASE + (0)); /* 0x36086E6A: mov eax, dword ptr fs:[0] */
   6932     PUSH32(esp, eax); /* 0x36086E70: push eax */
   6933     MEM32(FS_BASE + (0)) = esp; /* 0x36086E71: mov dword ptr fs:[0], esp */
   6934     PUSH32(esp, ecx); /* 0x36086E78: push ecx */
   6935     eax = MEM32(ebp + 0xC); /* 0x36086E79: mov eax, dword ptr [ebp + 0xc] */
   6936     PUSH32(esp, esi); /* 0x36086E7C: push esi */
   6937     PUSH32(esp, edi); /* 0x36086E7D: push edi */
   6938     esi = ecx; /* 0x36086E7E: mov esi, ecx */
   6939     ecx = MEM32(ebp + 0x8); /* 0x36086E80: mov ecx, dword ptr [ebp + 8] */
   6940     PUSH32(esp, eax); /* 0x36086E83: push eax */
   6941     PUSH32(esp, ecx); /* 0x36086E84: push ecx */
   6942     ecx = esi; /* 0x36086E85: mov ecx, esi */
   6943     MEM32(ebp + (-0x10)) = esi; /* 0x36086E87: mov dword ptr [ebp - 0x10], esi */
   6944     RECOMP_ICALL(0x36086B70u); /* 0x36086E8A: call 0x36086b70 */ /* not lifted */
   6945     RECOMP_FLAGS_IN();
   6946     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6947     edi = 0; /* 0x36086E8F: xor edi, edi */
   6948     _cf = 0;
   6949     _flag_k = FK_TEST;
   6950     MEM32(esi + 0xC) = 0x41100000u; /* 0x36086E91: mov dword ptr [esi + 0xc], 0x41100000 */
   6951     MEM32(esi + 0x14) = edi; /* 0x36086E98: mov dword ptr [esi + 0x14], edi */
   6952     MEM32(esi + 0x18) = 0x3F800000u; /* 0x36086E9B: mov dword ptr [esi + 0x18], 0x3f800000 */
   6953     MEM32(esi + 0x1C) = edi; /* 0x36086EA2: mov dword ptr [esi + 0x1c], edi */
   6954     ecx = esi; /* 0x36086EA5: mov ecx, esi */
   6955     MEM32(ebp + (-0x4)) = edi; /* 0x36086EA7: mov dword ptr [ebp - 4], edi */
   6956     MEM32(esi) = 0x36171C24u; /* 0x36086EAA: mov dword ptr [esi], 0x36171c24 */
   6957     RECOMP_ICALL(0x360870D0u); /* 0x36086EB0: call 0x360870d0 */ /* not lifted */
   6958     RECOMP_FLAGS_IN();
   6959     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36086EB5: fstp st(0) */
   6960     eax = MEM32(esi + 0x8); /* 0x36086EB7: mov eax, dword ptr [esi + 8] */
   6961     edx = MEM32(eax + 0xE4); /* 0x36086EBA: mov edx, dword ptr [eax + 0xe4] */
   6962     ecx = eax + 0xE4; /* 0x36086EC0: lea ecx, [eax + 0xe4] */
   6963     PUSH32(esp, 0x00040000u); /* 0x36086EC6: push 0x40000 */
   6964     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36086ECB: call dword ptr [edx + 0x1c] */
   6965     RECOMP_FLAGS_IN();
   6966     /* test LO8(eax), LO8(eax) */ /* 0x36086ECE: test al, al */
   6967     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6968     _cf = 0;
   6969     _flag_k = FK_NARROW(FK_TEST, 24);
   6970     if (TEST_Z(_flag_a, _flag_b)) goto L_36086ED5; /* 0x36086ED0: je 0x36086ed5 */
   6971 L_36086ED2:
   6972     MEM32(esi + 0x10) = edi; /* 0x36086ED2: mov dword ptr [esi + 0x10], edi */
   6973 L_36086ED5:
   6974     ecx = MEM32(ebp + (-0xC)); /* 0x36086ED5: mov ecx, dword ptr [ebp - 0xc] */
   6975     edi = POP32_VAL(esp); /* 0x36086ED8: pop edi */
   6976     eax = esi; /* 0x36086ED9: mov eax, esi */
   6977     esi = POP32_VAL(esp); /* 0x36086EDB: pop esi */
   6978     MEM32(FS_BASE + (0)) = ecx; /* 0x36086EDC: mov dword ptr fs:[0], ecx */
   6979     esp = ebp; /* 0x36086EE3: mov esp, ebp */
   6980     ebp = POP32_VAL(esp); /* 0x36086EE5: pop ebp */
   6981     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36086EE6: ret 8 */
   6982     RECOMP_REGS_OUT();
   6983 }
   6984 
   6985 void sub_36086EF0(void) {
   6986     int _fpu_cmp = 0;
   6987     uint32_t _cf = 0;
   6988     int _df = 1;
   6989     uint32_t _flag_k = FK_NONE;
   6990     uint32_t _flag_a = 0, _flag_b = 0;
   6991     uint32_t _itail_tgt = 0;
   6992     RECOMP_REGS_LOCALS
   6993     RECOMP_ENTER(0x36086EF0u);
   6994 
   6995 L_36086EF0:
   6996     PUSH32(esp, ebp); /* 0x36086EF0: push ebp */
   6997     ebp = esp; /* 0x36086EF1: mov ebp, esp */
   6998     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6999     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7000     esp = esp - 0xCu; /* 0x36086EF3: sub esp, 0xc */
   7001     _flag_k = FK_CMP;
   7002     SET_LO8(eax, MEM8(0x36306AE4)); /* 0x36086EF6: mov al, byte ptr [0x36306ae4] */
   7003     PUSH32(esp, ebx); /* 0x36086EFB: push ebx */
   7004     PUSH32(esp, esi); /* 0x36086EFC: push esi */
   7005     ebx = 1; /* 0x36086EFD: mov ebx, 1 */
   7006     /* test LO8(ebx), LO8(eax) */ /* 0x36086F02: test bl, al */
   7007     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7008     _cf = 0;
   7009     _flag_k = FK_NARROW(FK_TEST, 24);
   7010     PUSH32(esp, edi); /* 0x36086F04: push edi */
   7011     esi = ecx; /* 0x36086F05: mov esi, ecx */
   7012     if (TEST_NZ(_flag_a, _flag_b)) goto L_36086F3E; /* 0x36086F07: jne 0x36086f3e */
   7013 L_36086F09:
   7014     SET_LO8(edx, LO8(eax)); /* 0x36086F09: mov dl, al */
   7015     _flag_a = (uint32_t)((LO8(edx) | LO8(ebx))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(ebx))) << 24;
   7016     SET_LO8(edx, LO8(edx) | LO8(ebx)); /* 0x36086F0B: or dl, bl */
   7017     _cf = 0;
   7018     _flag_k = FK_NARROW(FK_TEST, 24);
   7019     PUSH32(esp, 0x360870C0u); /* 0x36086F0D: push 0x360870c0 */
   7020     MEM8(0x36306AE4) = (uint8_t)(LO8(edx)); /* 0x36086F12: mov byte ptr [0x36306ae4], dl */
   7021     MEM32(0x36306AD8) = 0; /* 0x36086F18: mov dword ptr [0x36306ad8], 0 */
   7022     MEM32(0x36306ADC) = 0; /* 0x36086F22: mov dword ptr [0x36306adc], 0 */
   7023     MEM32(0x36306AE0) = 0; /* 0x36086F2C: mov dword ptr [0x36306ae0], 0 */
   7024     RECOMP_ICALL(0x3615FEB2u); /* 0x36086F36: call 0x3615feb2 */ /* not lifted */
   7025     RECOMP_FLAGS_IN();
   7026     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7027     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7028     esp = esp + 4; /* 0x36086F3B: add esp, 4 */
   7029     _flag_k = FK_ADD;
   7030 L_36086F3E:
   7031     edx = MEM32(esi + 0x8); /* 0x36086F3E: mov edx, dword ptr [esi + 8] */
   7032     eax = MEM32(edx + 0x16C); /* 0x36086F41: mov eax, dword ptr [edx + 0x16c] */
   7033     /* cmp MEM32(eax + 0x50), ebx */ /* 0x36086F47: cmp dword ptr [eax + 0x50], ebx */
   7034     _flag_a = (uint32_t)(MEM32(eax + 0x50)); _flag_b = (uint32_t)(ebx);
   7035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7036     _flag_k = FK_CMP;
   7037     if (CMP_EQ(_flag_a, _flag_b)) goto L_36086F77; /* 0x36086F4A: je 0x36086f77 */
   7038 L_36086F4C:
   7039     edx = MEM32(eax); /* 0x36086F4C: mov edx, dword ptr [eax] */
   7040     ecx = eax; /* 0x36086F4E: mov ecx, eax */
   7041     RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x36086F50: call dword ptr [edx + 0x50] */
   7042     RECOMP_FLAGS_IN();
   7043     edi = eax; /* 0x36086F53: mov edi, eax */
   7044     /* test edi, edi */ /* 0x36086F55: test edi, edi */
   7045     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7046     _cf = 0;
   7047     _flag_k = FK_TEST;
   7048     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087048; /* 0x36086F57: jne 0x36087048 */
   7049 L_36086F5D:
   7050     eax = MEM32(esi + 0x8); /* 0x36086F5D: mov eax, dword ptr [esi + 8] */
   7051     ecx = MEM32(eax + 0x16C); /* 0x36086F60: mov ecx, dword ptr [eax + 0x16c] */
   7052     edx = MEM32(ecx); /* 0x36086F66: mov edx, dword ptr [ecx] */
   7053     RECOMP_ICALL(MEM32(edx + 0x54)); /* 0x36086F68: call dword ptr [edx + 0x54] */
   7054     RECOMP_FLAGS_IN();
   7055     /* test eax, eax */ /* 0x36086F6B: test eax, eax */
   7056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7057     _cf = 0;
   7058     _flag_k = FK_TEST;
   7059     if (TEST_Z(_flag_a, _flag_b)) goto L_36086FC2; /* 0x36086F6D: je 0x36086fc2 */
   7060 L_36086F6F:
   7061     edi = eax + 0x8C; /* 0x36086F6F: lea edi, [eax + 0x8c] */
   7062     goto L_36086FBA; /* 0x36086F75: jmp 0x36086fba */
   7063 L_36086F77:
   7064     ecx = MEM32(edx + 0x158); /* 0x36086F77: mov ecx, dword ptr [edx + 0x158] */
   7065     edi = MEM32(ecx + 0x4); /* 0x36086F7D: mov edi, dword ptr [ecx + 4] */
   7066     /* test edi, edi */ /* 0x36086F80: test edi, edi */
   7067     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7068     _cf = 0;
   7069     _flag_k = FK_TEST;
   7070     if (TEST_Z(_flag_a, _flag_b)) goto L_36086F92; /* 0x36086F82: je 0x36086f92 */
   7071 L_36086F84:
   7072     RECOMP_ICALL(0x36066B00u); /* 0x36086F84: call 0x36066b00 */ /* not lifted */
   7073     RECOMP_FLAGS_IN();
   7074     PUSH32(esp, eax); /* 0x36086F89: push eax */
   7075     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36086F8A: call dword ptr [0x3616ff70] */
   7076     RECOMP_FLAGS_IN();
   7077     goto L_36086FB5; /* 0x36086F90: jmp 0x36086fb5 */
   7078 L_36086F92:
   7079     ecx = MEM32(eax + 0x5C); /* 0x36086F92: mov ecx, dword ptr [eax + 0x5c] */
   7080     /* cmp ecx, MEM32(0x362EA514) */ /* 0x36086F95: cmp ecx, dword ptr [0x362ea514] */
   7081     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x362EA514));
   7082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7083     _flag_k = FK_CMP;
   7084     if (CMP_NE(_flag_a, _flag_b)) goto L_36086FAC; /* 0x36086F9B: jne 0x36086fac */
   7085 L_36086F9D:
   7086     ecx = MEM32(eax + 0x58); /* 0x36086F9D: mov ecx, dword ptr [eax + 0x58] */
   7087     /* cmp ecx, MEM32(0x362EA510) */ /* 0x36086FA0: cmp ecx, dword ptr [0x362ea510] */
   7088     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x362EA510));
   7089     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7090     _flag_k = FK_CMP;
   7091     if (CMP_EQ(_flag_a, _flag_b)) goto L_360870AA; /* 0x36086FA6: je 0x360870aa */
   7092 L_36086FAC:
   7093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x58u);
   7094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7095     eax = eax + 0x58u; /* 0x36086FAC: add eax, 0x58 */
   7096     _flag_k = FK_ADD;
   7097     PUSH32(esp, eax); /* 0x36086FAF: push eax */
   7098     RECOMP_ICALL(0x3606DA90u); /* 0x36086FB0: call 0x3606da90 */ /* not lifted */
   7099     RECOMP_FLAGS_IN();
   7100 L_36086FB5:
   7101     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7102     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7103     esp = esp + 4; /* 0x36086FB5: add esp, 4 */
   7104     _flag_k = FK_ADD;
   7105     edi = eax; /* 0x36086FB8: mov edi, eax */
   7106 L_36086FBA:
   7107     /* test edi, edi */ /* 0x36086FBA: test edi, edi */
   7108     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7109     _cf = 0;
   7110     _flag_k = FK_TEST;
   7111     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087048; /* 0x36086FBC: jne 0x36087048 */
   7112 L_36086FC2:
   7113     edx = MEM32(esi + 0x8); /* 0x36086FC2: mov edx, dword ptr [esi + 8] */
   7114     ecx = MEM32(edx + 0x16C); /* 0x36086FC5: mov ecx, dword ptr [edx + 0x16c] */
   7115     eax = MEM32(ecx); /* 0x36086FCB: mov eax, dword ptr [ecx] */
   7116     RECOMP_ICALL(MEM32(eax + 0x54)); /* 0x36086FCD: call dword ptr [eax + 0x54] */
   7117     RECOMP_FLAGS_IN();
   7118     edi = eax; /* 0x36086FD0: mov edi, eax */
   7119     /* test edi, edi */ /* 0x36086FD2: test edi, edi */
   7120     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7121     _cf = 0;
   7122     _flag_k = FK_TEST;
   7123     if (TEST_Z(_flag_a, _flag_b)) goto L_3608703C; /* 0x36086FD4: je 0x3608703c */
   7124 L_36086FD6:
   7125     ecx = MEM32(esi + 0x8); /* 0x36086FD6: mov ecx, dword ptr [esi + 8] */
   7126     ebx = MEM32(0x3616FFB0); /* 0x36086FD9: mov ebx, dword ptr [0x3616ffb0] */
   7127     RECOMP_ICALL(ebx); /* 0x36086FDF: call ebx */
   7128     RECOMP_FLAGS_IN();
   7129     ecx = edi + 0x8C; /* 0x36086FE1: lea ecx, [edi + 0x8c] */
   7130     esi = eax; /* 0x36086FE7: mov esi, eax */
   7131     RECOMP_ICALL(ebx); /* 0x36086FE9: call ebx */
   7132     RECOMP_FLAGS_IN();
   7133     ecx = MEM32(eax); /* 0x36086FEB: mov ecx, dword ptr [eax] */
   7134     edx = MEM32(eax + 0x4); /* 0x36086FED: mov edx, dword ptr [eax + 4] */
   7135     eax = MEM32(eax + 0x8); /* 0x36086FF0: mov eax, dword ptr [eax + 8] */
   7136     MEM32(ebp + (-0xC)) = ecx; /* 0x36086FF3: mov dword ptr [ebp - 0xc], ecx */
   7137     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36086FF6: fld dword ptr [ebp - 0xc] */
   7138     _st[0] -= (double)*(float*)ADDR(esi); /* 0x36086FF9: fsub dword ptr [esi] */
   7139     MEM32(ebp + (-0x8)) = edx; /* 0x36086FFB: mov dword ptr [ebp - 8], edx */
   7140     MEM32(ebp + (-0x4)) = eax; /* 0x36086FFE: mov dword ptr [ebp - 4], eax */
   7141     edi = POP32_VAL(esp); /* 0x36087001: pop edi */
   7142     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36087002: fstp dword ptr [ebp - 0xc] */
   7143     ecx = MEM32(ebp + (-0xC)); /* 0x36087005: mov ecx, dword ptr [ebp - 0xc] */
   7144     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36087008: fld dword ptr [ebp - 8] */
   7145     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3608700B: fsub dword ptr [esi + 4] */
   7146     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3608700E: fstp dword ptr [ebp - 8] */
   7147     edx = MEM32(ebp + (-0x8)); /* 0x36087011: mov edx, dword ptr [ebp - 8] */
   7148     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36087014: fld dword ptr [ebp - 4] */
   7149     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x36087017: fsub dword ptr [esi + 8] */
   7150     esi = POP32_VAL(esp); /* 0x3608701A: pop esi */
   7151     MEM32(0x36306AD8) = ecx; /* 0x3608701B: mov dword ptr [0x36306ad8], ecx */
   7152     MEM32(0x36306ADC) = edx; /* 0x36087021: mov dword ptr [0x36306adc], edx */
   7153     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36087027: fstp dword ptr [ebp - 4] */
   7154     eax = MEM32(ebp + (-0x4)); /* 0x3608702A: mov eax, dword ptr [ebp - 4] */
   7155     MEM32(0x36306AE0) = eax; /* 0x3608702D: mov dword ptr [0x36306ae0], eax */
   7156     eax = 0x36306AD8u; /* 0x36087032: mov eax, 0x36306ad8 */
   7157     ebx = POP32_VAL(esp); /* 0x36087037: pop ebx */
   7158     esp = ebp; /* 0x36087038: mov esp, ebp */
   7159     ebp = POP32_VAL(esp); /* 0x3608703A: pop ebp */
   7160     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608703B: ret  */
   7161 L_3608703C:
   7162     edi = POP32_VAL(esp); /* 0x3608703C: pop edi */
   7163     esi = POP32_VAL(esp); /* 0x3608703D: pop esi */
   7164     eax = 0x36306AE8u; /* 0x3608703E: mov eax, 0x36306ae8 */
   7165     ebx = POP32_VAL(esp); /* 0x36087043: pop ebx */
   7166     esp = ebp; /* 0x36087044: mov esp, ebp */
   7167     ebp = POP32_VAL(esp); /* 0x36087046: pop ebp */
   7168     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087047: ret  */
   7169 L_36087048:
   7170     ecx = MEM32(esi + 0x8); /* 0x36087048: mov ecx, dword ptr [esi + 8] */
   7171     ebx = MEM32(0x3616FFB0); /* 0x3608704B: mov ebx, dword ptr [0x3616ffb0] */
   7172     RECOMP_ICALL(ebx); /* 0x36087051: call ebx */
   7173     RECOMP_FLAGS_IN();
   7174     ecx = edi; /* 0x36087053: mov ecx, edi */
   7175     esi = eax; /* 0x36087055: mov esi, eax */
   7176     RECOMP_ICALL(ebx); /* 0x36087057: call ebx */
   7177     RECOMP_FLAGS_IN();
   7178     ecx = MEM32(eax); /* 0x36087059: mov ecx, dword ptr [eax] */
   7179     edx = MEM32(eax + 0x4); /* 0x3608705B: mov edx, dword ptr [eax + 4] */
   7180     eax = MEM32(eax + 0x8); /* 0x3608705E: mov eax, dword ptr [eax + 8] */
   7181     MEM32(ebp + (-0xC)) = ecx; /* 0x36087061: mov dword ptr [ebp - 0xc], ecx */
   7182     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36087064: fld dword ptr [ebp - 0xc] */
   7183     _st[0] -= (double)*(float*)ADDR(esi); /* 0x36087067: fsub dword ptr [esi] */
   7184     MEM32(ebp + (-0x8)) = edx; /* 0x36087069: mov dword ptr [ebp - 8], edx */
   7185     MEM32(ebp + (-0x4)) = eax; /* 0x3608706C: mov dword ptr [ebp - 4], eax */
   7186     edi = POP32_VAL(esp); /* 0x3608706F: pop edi */
   7187     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36087070: fstp dword ptr [ebp - 0xc] */
   7188     ecx = MEM32(ebp + (-0xC)); /* 0x36087073: mov ecx, dword ptr [ebp - 0xc] */
   7189     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36087076: fld dword ptr [ebp - 8] */
   7190     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x36087079: fsub dword ptr [esi + 4] */
   7191     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3608707C: fstp dword ptr [ebp - 8] */
   7192     edx = MEM32(ebp + (-0x8)); /* 0x3608707F: mov edx, dword ptr [ebp - 8] */
   7193     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36087082: fld dword ptr [ebp - 4] */
   7194     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x36087085: fsub dword ptr [esi + 8] */
   7195     esi = POP32_VAL(esp); /* 0x36087088: pop esi */
   7196     MEM32(0x36306AD8) = ecx; /* 0x36087089: mov dword ptr [0x36306ad8], ecx */
   7197     MEM32(0x36306ADC) = edx; /* 0x3608708F: mov dword ptr [0x36306adc], edx */
   7198     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36087095: fstp dword ptr [ebp - 4] */
   7199     eax = MEM32(ebp + (-0x4)); /* 0x36087098: mov eax, dword ptr [ebp - 4] */
   7200     MEM32(0x36306AE0) = eax; /* 0x3608709B: mov dword ptr [0x36306ae0], eax */
   7201     eax = 0x36306AD8u; /* 0x360870A0: mov eax, 0x36306ad8 */
   7202     ebx = POP32_VAL(esp); /* 0x360870A5: pop ebx */
   7203     esp = ebp; /* 0x360870A6: mov esp, ebp */
   7204     ebp = POP32_VAL(esp); /* 0x360870A8: pop ebp */
   7205     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360870A9: ret  */
   7206 L_360870AA:
   7207     edi = POP32_VAL(esp); /* 0x360870AA: pop edi */
   7208     esi = POP32_VAL(esp); /* 0x360870AB: pop esi */
   7209     eax = edx + 0x194; /* 0x360870AC: lea eax, [edx + 0x194] */
   7210     ebx = POP32_VAL(esp); /* 0x360870B2: pop ebx */
   7211     esp = ebp; /* 0x360870B3: mov esp, ebp */
   7212     ebp = POP32_VAL(esp); /* 0x360870B5: pop ebp */
   7213     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360870B6: ret  */
   7214     RECOMP_REGS_OUT();
   7215 }
   7216 
   7217 void sub_360870C0(void) {
   7218     int _fpu_cmp = 0;
   7219     uint32_t _cf = 0;
   7220     int _df = 1;
   7221     uint32_t _flag_k = FK_NONE;
   7222     uint32_t _flag_a = 0, _flag_b = 0;
   7223     uint32_t _itail_tgt = 0;
   7224     RECOMP_REGS_LOCALS
   7225     RECOMP_ENTER(0x360870C0u);
   7226 
   7227 L_360870C0:
   7228     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360870C0: ret  */
   7229     RECOMP_REGS_OUT();
   7230 }
   7231 
   7232 void sub_360870D0(void) {
   7233     int _fpu_cmp = 0;
   7234     uint32_t _cf = 0;
   7235     int _df = 1;
   7236     uint32_t _flag_k = FK_NONE;
   7237     uint32_t _flag_a = 0, _flag_b = 0;
   7238     uint32_t _itail_tgt = 0;
   7239     RECOMP_REGS_LOCALS
   7240     RECOMP_ENTER(0x360870D0u);
   7241 
   7242 L_360870D0:
   7243     PUSH32(esp, ebp); /* 0x360870D0: push ebp */
   7244     ebp = esp; /* 0x360870D1: mov ebp, esp */
   7245     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u);
   7246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7247     esp = esp - 0x58u; /* 0x360870D3: sub esp, 0x58 */
   7248     _flag_k = FK_CMP;
   7249     PUSH32(esp, esi); /* 0x360870D6: push esi */
   7250     esi = ecx; /* 0x360870D7: mov esi, ecx */
   7251     RECOMP_ICALL(0x36086EF0u); /* 0x360870D9: call 0x36086ef0 */ /* not lifted */
   7252     RECOMP_FLAGS_IN();
   7253     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360870DE: fld dword ptr [0x3617040c] */
   7254     fp_push(*(float*)&MEM32(0x36306AE8)); /* 0x360870E4: fld dword ptr [0x36306ae8] */
   7255     ecx = eax; /* 0x360870EA: mov ecx, eax */
   7256     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx)); /* 0x360870EC: fcomp dword ptr [ecx] */
   7257     fp_pop();
   7258     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360870EE: fnstsw ax */
   7259     /* test HI8(eax), 0x40u */ /* 0x360870F0: test ah, 0x40 */
   7260     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7261     _cf = 0;
   7262     _flag_k = FK_NARROW(FK_TEST, 24);
   7263     if (TEST_Z(_flag_a, _flag_b)) goto L_36087121; /* 0x360870F3: je 0x36087121 */
   7264 L_360870F5:
   7265     fp_push(*(float*)&MEM32(0x36306AEC)); /* 0x360870F5: fld dword ptr [0x36306aec] */
   7266     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x4)); /* 0x360870FB: fcomp dword ptr [ecx + 4] */
   7267     fp_pop();
   7268     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360870FE: fnstsw ax */
   7269     /* test HI8(eax), 0x40u */ /* 0x36087100: test ah, 0x40 */
   7270     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7271     _cf = 0;
   7272     _flag_k = FK_NARROW(FK_TEST, 24);
   7273     if (TEST_Z(_flag_a, _flag_b)) goto L_36087121; /* 0x36087103: je 0x36087121 */
   7274 L_36087105:
   7275     fp_push(*(float*)&MEM32(0x36306AF0)); /* 0x36087105: fld dword ptr [0x36306af0] */
   7276     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x3608710B: fcomp dword ptr [ecx + 8] */
   7277     fp_pop();
   7278     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608710E: fnstsw ax */
   7279     /* test HI8(eax), 0x40u */ /* 0x36087110: test ah, 0x40 */
   7280     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7281     _cf = 0;
   7282     _flag_k = FK_NARROW(FK_TEST, 24);
   7283     if (TEST_Z(_flag_a, _flag_b)) goto L_36087121; /* 0x36087113: je 0x36087121 */
   7284 L_36087115:
   7285     MEM32(esi + 0x10) = 0; /* 0x36087115: mov dword ptr [esi + 0x10], 0 */
   7286     goto L_360872DA; /* 0x3608711C: jmp 0x360872da */
   7287 L_36087121:
   7288     eax = ecx; /* 0x36087121: mov eax, ecx */
   7289     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36087123: fstp st(0) */
   7290     edx = MEM32(eax); /* 0x36087125: mov edx, dword ptr [eax] */
   7291     MEM32(ebp + (-0xC)) = edx; /* 0x36087127: mov dword ptr [ebp - 0xc], edx */
   7292     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3608712A: fld dword ptr [ebp - 0xc] */
   7293     edx = MEM32(eax + 0x4); /* 0x3608712D: mov edx, dword ptr [eax + 4] */
   7294     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36087130: fcomp dword ptr [0x3617040c] */
   7295     fp_pop();
   7296     eax = MEM32(eax + 0x8); /* 0x36087136: mov eax, dword ptr [eax + 8] */
   7297     MEM32(ebp + (-0x4)) = eax; /* 0x36087139: mov dword ptr [ebp - 4], eax */
   7298     MEM32(ebp + (-0x8)) = edx; /* 0x3608713C: mov dword ptr [ebp - 8], edx */
   7299     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608713F: fnstsw ax */
   7300     /* test HI8(eax), 0x40u */ /* 0x36087141: test ah, 0x40 */
   7301     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7302     _cf = 0;
   7303     _flag_k = FK_NARROW(FK_TEST, 24);
   7304     if (TEST_Z(_flag_a, _flag_b)) goto L_36087166; /* 0x36087144: je 0x36087166 */
   7305 L_36087146:
   7306     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36087146: fld dword ptr [ebp - 8] */
   7307     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36087149: fcomp dword ptr [0x3617040c] */
   7308     fp_pop();
   7309     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608714F: fnstsw ax */
   7310     /* test HI8(eax), 0x40u */ /* 0x36087151: test ah, 0x40 */
   7311     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7312     _cf = 0;
   7313     _flag_k = FK_NARROW(FK_TEST, 24);
   7314     if (TEST_Z(_flag_a, _flag_b)) goto L_36087166; /* 0x36087154: je 0x36087166 */
   7315 L_36087156:
   7316     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36087156: fld dword ptr [ebp - 4] */
   7317     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36087159: fcomp dword ptr [0x3617040c] */
   7318     fp_pop();
   7319     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608715F: fnstsw ax */
   7320     /* test HI8(eax), 0x40u */ /* 0x36087161: test ah, 0x40 */
   7321     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7322     _cf = 0;
   7323     _flag_k = FK_NARROW(FK_TEST, 24);
   7324     if (TEST_NZ(_flag_a, _flag_b)) goto L_360871A4; /* 0x36087164: jne 0x360871a4 */
   7325 L_36087166:
   7326     edx = MEM32(ecx); /* 0x36087166: mov edx, dword ptr [ecx] */
   7327     eax = MEM32(ecx + 0x4); /* 0x36087168: mov eax, dword ptr [ecx + 4] */
   7328     ecx = MEM32(ecx + 0x8); /* 0x3608716B: mov ecx, dword ptr [ecx + 8] */
   7329     MEM32(ebp + (-0x10)) = ecx; /* 0x3608716E: mov dword ptr [ebp - 0x10], ecx */
   7330     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36087171: fld dword ptr [ebp - 0x10] */
   7331     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36087174: fmul dword ptr [ebp - 0x10] */
   7332     MEM32(ebp + (-0x18)) = edx; /* 0x36087177: mov dword ptr [ebp - 0x18], edx */
   7333     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608717A: fld dword ptr [ebp - 0x18] */
   7334     MEM32(ebp + (-0x14)) = eax; /* 0x3608717D: mov dword ptr [ebp - 0x14], eax */
   7335     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36087180: fmul dword ptr [ebp - 0x18] */
   7336     PUSH32(esp, ecx); /* 0x36087183: push ecx */
   7337     ecx = ebp + (-0x18); /* 0x36087184: lea ecx, [ebp - 0x18] */
   7338     { double _v = fp_pop(); _st[0] += _v; } /* 0x36087187: faddp st(1) */
   7339     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36087189: fld dword ptr [ebp - 0x14] */
   7340     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3608718C: fmul dword ptr [ebp - 0x14] */
   7341     { double _v = fp_pop(); _st[0] += _v; } /* 0x3608718F: faddp st(1) */
   7342     _st[0] = sqrt(_st[0]); /* 0x36087191: fsqrt  */
   7343     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36087193: fdivr dword ptr [0x36170380] */
   7344     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36087199: fstp dword ptr [esp] */
   7345     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3608719C: call dword ptr [0x36170184] */
   7346     RECOMP_FLAGS_IN();
   7347     goto L_360871CB; /* 0x360871A2: jmp 0x360871cb */
   7348 L_360871A4:
   7349     MEM32(ebp + (-0x18)) = 0; /* 0x360871A4: mov dword ptr [ebp - 0x18], 0 */
   7350     edx = MEM32(ebp + (-0x18)); /* 0x360871AB: mov edx, dword ptr [ebp - 0x18] */
   7351     MEM32(ebp + (-0x14)) = 0; /* 0x360871AE: mov dword ptr [ebp - 0x14], 0 */
   7352     eax = MEM32(ebp + (-0x14)); /* 0x360871B5: mov eax, dword ptr [ebp - 0x14] */
   7353     MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x360871B8: mov dword ptr [ebp - 0x10], 0x3f800000 */
   7354     ecx = MEM32(ebp + (-0x10)); /* 0x360871BF: mov ecx, dword ptr [ebp - 0x10] */
   7355     MEM32(ebp + (-0xC)) = edx; /* 0x360871C2: mov dword ptr [ebp - 0xc], edx */
   7356     MEM32(ebp + (-0x8)) = eax; /* 0x360871C5: mov dword ptr [ebp - 8], eax */
   7357     MEM32(ebp + (-0x4)) = ecx; /* 0x360871C8: mov dword ptr [ebp - 4], ecx */
   7358 L_360871CB:
   7359     ecx = MEM32(esi + 0x8); /* 0x360871CB: mov ecx, dword ptr [esi + 8] */
   7360     PUSH32(esp, edi); /* 0x360871CE: push edi */
   7361     edx = ebp + (-0x58); /* 0x360871CF: lea edx, [ebp - 0x58] */
   7362     PUSH32(esp, edx); /* 0x360871D2: push edx */
   7363     MEM32(ebp + (-0x24)) = 0; /* 0x360871D3: mov dword ptr [ebp - 0x24], 0 */
   7364     MEM32(ebp + (-0x20)) = 0; /* 0x360871DA: mov dword ptr [ebp - 0x20], 0 */
   7365     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x360871E1: mov dword ptr [ebp - 0x1c], 0x3f800000 */
   7366     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360871E8: call dword ptr [0x36170048] */
   7367     RECOMP_FLAGS_IN();
   7368     ecx = MEM32(ebp + (-0x20)); /* 0x360871EE: mov ecx, dword ptr [ebp - 0x20] */
   7369     edx = MEM32(ebp + (-0x1C)); /* 0x360871F1: mov edx, dword ptr [ebp - 0x1c] */
   7370     edi = eax; /* 0x360871F4: mov edi, eax */
   7371     eax = MEM32(ebp + (-0x24)); /* 0x360871F6: mov eax, dword ptr [ebp - 0x24] */
   7372     MEM32(ebp + (-0x18)) = eax; /* 0x360871F9: mov dword ptr [ebp - 0x18], eax */
   7373     MEM32(ebp + (-0x14)) = ecx; /* 0x360871FC: mov dword ptr [ebp - 0x14], ecx */
   7374     eax = ebp + (-0x18); /* 0x360871FF: lea eax, [ebp - 0x18] */
   7375     PUSH32(esp, eax); /* 0x36087202: push eax */
   7376     ecx = ebp + (-0x3C); /* 0x36087203: lea ecx, [ebp - 0x3c] */
   7377     PUSH32(esp, ecx); /* 0x36087206: push ecx */
   7378     ecx = edi; /* 0x36087207: mov ecx, edi */
   7379     MEM32(ebp + (-0x10)) = edx; /* 0x36087209: mov dword ptr [ebp - 0x10], edx */
   7380     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3608720C: call dword ptr [0x36170180] */
   7381     RECOMP_FLAGS_IN();
   7382     edx = MEM32(eax); /* 0x36087212: mov edx, dword ptr [eax] */
   7383     MEM32(ebp + (-0x24)) = edx; /* 0x36087214: mov dword ptr [ebp - 0x24], edx */
   7384     ecx = MEM32(eax + 0x4); /* 0x36087217: mov ecx, dword ptr [eax + 4] */
   7385     MEM32(ebp + (-0x20)) = ecx; /* 0x3608721A: mov dword ptr [ebp - 0x20], ecx */
   7386     edx = MEM32(eax + 0x8); /* 0x3608721D: mov edx, dword ptr [eax + 8] */
   7387     eax = ebp + (-0x24); /* 0x36087220: lea eax, [ebp - 0x24] */
   7388     PUSH32(esp, eax); /* 0x36087223: push eax */
   7389     ecx = ebp + (-0x48); /* 0x36087224: lea ecx, [ebp - 0x48] */
   7390     PUSH32(esp, ecx); /* 0x36087227: push ecx */
   7391     ecx = edi; /* 0x36087228: mov ecx, edi */
   7392     MEM32(ebp + (-0x1C)) = edx; /* 0x3608722A: mov dword ptr [ebp - 0x1c], edx */
   7393     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3608722D: call dword ptr [0x36170180] */
   7394     RECOMP_FLAGS_IN();
   7395     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x36087233: fld dword ptr [edi + 0xc] */
   7396     edx = MEM32(eax); /* 0x36087236: mov edx, dword ptr [eax] */
   7397     _st[0] += _st[0]; /* 0x36087238: fadd st(0), st(0) */
   7398     MEM32(ebp + (-0x30)) = edx; /* 0x3608723A: mov dword ptr [ebp - 0x30], edx */
   7399     ecx = MEM32(eax + 0x4); /* 0x3608723D: mov ecx, dword ptr [eax + 4] */
   7400     MEM32(ebp + (-0x2C)) = ecx; /* 0x36087240: mov dword ptr [ebp - 0x2c], ecx */
   7401     edx = MEM32(eax + 0x8); /* 0x36087243: mov edx, dword ptr [eax + 8] */
   7402     PUSH32(esp, ecx); /* 0x36087246: push ecx */
   7403     ecx = ebp + (-0x24); /* 0x36087247: lea ecx, [ebp - 0x24] */
   7404     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3608724A: fstp dword ptr [esp] */
   7405     MEM32(ebp + (-0x28)) = edx; /* 0x3608724D: mov dword ptr [ebp - 0x28], edx */
   7406     RECOMP_ICALL(MEM32(0x36170184)); /* 0x36087250: call dword ptr [0x36170184] */
   7407     RECOMP_FLAGS_IN();
   7408     PUSH32(esp, 0x40000000u); /* 0x36087256: push 0x40000000 */
   7409     ecx = ebp + (-0x30); /* 0x3608725B: lea ecx, [ebp - 0x30] */
   7410     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3608725E: call dword ptr [0x36170184] */
   7411     RECOMP_FLAGS_IN();
   7412     eax = ebp + (-0x24); /* 0x36087264: lea eax, [ebp - 0x24] */
   7413     PUSH32(esp, eax); /* 0x36087267: push eax */
   7414     ecx = ebp + (-0x18); /* 0x36087268: lea ecx, [ebp - 0x18] */
   7415     RECOMP_ICALL(MEM32(0x36170178)); /* 0x3608726B: call dword ptr [0x36170178] */
   7416     RECOMP_FLAGS_IN();
   7417     ecx = ebp + (-0x30); /* 0x36087271: lea ecx, [ebp - 0x30] */
   7418     PUSH32(esp, ecx); /* 0x36087274: push ecx */
   7419     ecx = ebp + (-0x18); /* 0x36087275: lea ecx, [ebp - 0x18] */
   7420     RECOMP_ICALL(MEM32(0x36170178)); /* 0x36087278: call dword ptr [0x36170178] */
   7421     RECOMP_FLAGS_IN();
   7422     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608727E: fld dword ptr [ebp - 0x18] */
   7423     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36087281: fmul dword ptr [ebp - 4] */
   7424     edi = POP32_VAL(esp); /* 0x36087284: pop edi */
   7425     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36087285: fld dword ptr [ebp - 0x10] */
   7426     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36087288: fmul dword ptr [ebp - 0xc] */
   7427     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3608728B: fsubp st(1) */
   7428     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608728D: fld dword ptr [ebp - 0x18] */
   7429     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36087290: fmul dword ptr [ebp - 0xc] */
   7430     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36087293: fld dword ptr [ebp - 0x10] */
   7431     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36087296: fmul dword ptr [ebp - 4] */
   7432     { double _v = fp_pop(); _st[0] += _v; } /* 0x36087299: faddp st(1) */
   7433     fp_push(_st[1]); /* 0x3608729B: fld st(1) */
   7434     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3608729D: fcomp dword ptr [0x3617040c] */
   7435     fp_pop();
   7436     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360872A3: fnstsw ax */
   7437     /* test HI8(eax), 0x40u */ /* 0x360872A5: test ah, 0x40 */
   7438     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7439     _cf = 0;
   7440     _flag_k = FK_NARROW(FK_TEST, 24);
   7441     if (TEST_Z(_flag_a, _flag_b)) goto L_360872C2; /* 0x360872A8: je 0x360872c2 */
   7442 L_360872AA:
   7443     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360872AA: fcom dword ptr [0x3617040c] */
   7444     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360872B0: fnstsw ax */
   7445     /* test HI8(eax), 0x40u */ /* 0x360872B2: test ah, 0x40 */
   7446     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7447     _cf = 0;
   7448     _flag_k = FK_NARROW(FK_TEST, 24);
   7449     if (TEST_Z(_flag_a, _flag_b)) goto L_360872C2; /* 0x360872B5: je 0x360872c2 */
   7450 L_360872B7:
   7451     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360872B7: fstp st(0) */
   7452     MEM32(esi + 0x10) = 0; /* 0x360872B9: mov dword ptr [esi + 0x10], 0 */
   7453     goto L_360872CD; /* 0x360872C0: jmp 0x360872cd */
   7454 L_360872C2:
   7455     fp_push(_st[1]); /* 0x360872C2: fld st(1) */
   7456     fp_xch(1); /* 0x360872C4: fxch st(1) */
   7457     { double _x = fp_pop(); _st[0] = atan2(_st[0], _x); } /* 0x360872C6: fpatan  */
   7458     _st[0] = fabs(_st[0]); /* 0x360872C8: fabs  */
   7459     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x360872CA: fstp dword ptr [esi + 0x10] */
   7460 L_360872CD:
   7461     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360872CD: fcom dword ptr [0x3617040c] */
   7462     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360872D3: fnstsw ax */
   7463     /* test HI8(eax), 1 */ /* 0x360872D5: test ah, 1 */
   7464     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7465     _cf = 0;
   7466     _flag_k = FK_NARROW(FK_TEST, 24);
   7467     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087308; /* 0x360872D8: jne 0x36087308 */
   7468 L_360872DA:
   7469     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7470     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7471     esi = esi + 0x14u; /* 0x360872DA: add esi, 0x14 */
   7472     _flag_k = FK_ADD;
   7473     MEM32(ebp + (-0x24)) = 0; /* 0x360872DD: mov dword ptr [ebp - 0x24], 0 */
   7474     edx = MEM32(ebp + (-0x24)); /* 0x360872E4: mov edx, dword ptr [ebp - 0x24] */
   7475     MEM32(esi) = edx; /* 0x360872E7: mov dword ptr [esi], edx */
   7476     MEM32(ebp + (-0x20)) = 0xBF800000u; /* 0x360872E9: mov dword ptr [ebp - 0x20], 0xbf800000 */
   7477     eax = MEM32(ebp + (-0x20)); /* 0x360872F0: mov eax, dword ptr [ebp - 0x20] */
   7478     MEM32(ebp + (-0x1C)) = 0; /* 0x360872F3: mov dword ptr [ebp - 0x1c], 0 */
   7479     ecx = MEM32(ebp + (-0x1C)); /* 0x360872FA: mov ecx, dword ptr [ebp - 0x1c] */
   7480     MEM32(esi + 0x4) = eax; /* 0x360872FD: mov dword ptr [esi + 4], eax */
   7481     MEM32(esi + 0x8) = ecx; /* 0x36087300: mov dword ptr [esi + 8], ecx */
   7482     esi = POP32_VAL(esp); /* 0x36087303: pop esi */
   7483     esp = ebp; /* 0x36087304: mov esp, ebp */
   7484     ebp = POP32_VAL(esp); /* 0x36087306: pop ebp */
   7485     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087307: ret  */
   7486 L_36087308:
   7487     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7489     esi = esi + 0x14u; /* 0x36087308: add esi, 0x14 */
   7490     _flag_k = FK_ADD;
   7491     MEM32(ebp + (-0x24)) = 0; /* 0x3608730B: mov dword ptr [ebp - 0x24], 0 */
   7492     edx = MEM32(ebp + (-0x24)); /* 0x36087312: mov edx, dword ptr [ebp - 0x24] */
   7493     MEM32(esi) = edx; /* 0x36087315: mov dword ptr [esi], edx */
   7494     MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x36087317: mov dword ptr [ebp - 0x20], 0x3f800000 */
   7495     eax = MEM32(ebp + (-0x20)); /* 0x3608731E: mov eax, dword ptr [ebp - 0x20] */
   7496     MEM32(ebp + (-0x1C)) = 0; /* 0x36087321: mov dword ptr [ebp - 0x1c], 0 */
   7497     ecx = MEM32(ebp + (-0x1C)); /* 0x36087328: mov ecx, dword ptr [ebp - 0x1c] */
   7498     MEM32(esi + 0x4) = eax; /* 0x3608732B: mov dword ptr [esi + 4], eax */
   7499     MEM32(esi + 0x8) = ecx; /* 0x3608732E: mov dword ptr [esi + 8], ecx */
   7500     esi = POP32_VAL(esp); /* 0x36087331: pop esi */
   7501     esp = ebp; /* 0x36087332: mov esp, ebp */
   7502     ebp = POP32_VAL(esp); /* 0x36087334: pop ebp */
   7503     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087335: ret  */
   7504     RECOMP_REGS_OUT();
   7505 }
   7506 
   7507 void sub_360871AB(void) {
   7508     int _fpu_cmp = 0;
   7509     uint32_t _cf = 0;
   7510     int _df = 1;
   7511     uint32_t _flag_k = FK_NONE;
   7512     uint32_t _flag_a = 0, _flag_b = 0;
   7513     uint32_t _itail_tgt = 0;
   7514     RECOMP_REGS_LOCALS
   7515     RECOMP_ENTER(0x360871ABu);
   7516 
   7517 L_360871AB:
   7518     edx = MEM32(ebp + (-0x18)); /* 0x360871AB: mov edx, dword ptr [ebp - 0x18] */
   7519     MEM32(ebp + (-0x14)) = 0; /* 0x360871AE: mov dword ptr [ebp - 0x14], 0 */
   7520     eax = MEM32(ebp + (-0x14)); /* 0x360871B5: mov eax, dword ptr [ebp - 0x14] */
   7521     MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x360871B8: mov dword ptr [ebp - 0x10], 0x3f800000 */
   7522     ecx = MEM32(ebp + (-0x10)); /* 0x360871BF: mov ecx, dword ptr [ebp - 0x10] */
   7523     MEM32(ebp + (-0xC)) = edx; /* 0x360871C2: mov dword ptr [ebp - 0xc], edx */
   7524     MEM32(ebp + (-0x8)) = eax; /* 0x360871C5: mov dword ptr [ebp - 8], eax */
   7525     MEM32(ebp + (-0x4)) = ecx; /* 0x360871C8: mov dword ptr [ebp - 4], ecx */
   7526     ecx = MEM32(esi + 0x8); /* 0x360871CB: mov ecx, dword ptr [esi + 8] */
   7527     PUSH32(esp, edi); /* 0x360871CE: push edi */
   7528     edx = ebp + (-0x58); /* 0x360871CF: lea edx, [ebp - 0x58] */
   7529     PUSH32(esp, edx); /* 0x360871D2: push edx */
   7530     MEM32(ebp + (-0x24)) = 0; /* 0x360871D3: mov dword ptr [ebp - 0x24], 0 */
   7531     MEM32(ebp + (-0x20)) = 0; /* 0x360871DA: mov dword ptr [ebp - 0x20], 0 */
   7532     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x360871E1: mov dword ptr [ebp - 0x1c], 0x3f800000 */
   7533     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360871E8: call dword ptr [0x36170048] */
   7534     RECOMP_FLAGS_IN();
   7535     ecx = MEM32(ebp + (-0x20)); /* 0x360871EE: mov ecx, dword ptr [ebp - 0x20] */
   7536     edx = MEM32(ebp + (-0x1C)); /* 0x360871F1: mov edx, dword ptr [ebp - 0x1c] */
   7537     edi = eax; /* 0x360871F4: mov edi, eax */
   7538     eax = MEM32(ebp + (-0x24)); /* 0x360871F6: mov eax, dword ptr [ebp - 0x24] */
   7539     MEM32(ebp + (-0x18)) = eax; /* 0x360871F9: mov dword ptr [ebp - 0x18], eax */
   7540     MEM32(ebp + (-0x14)) = ecx; /* 0x360871FC: mov dword ptr [ebp - 0x14], ecx */
   7541     eax = ebp + (-0x18); /* 0x360871FF: lea eax, [ebp - 0x18] */
   7542     PUSH32(esp, eax); /* 0x36087202: push eax */
   7543     ecx = ebp + (-0x3C); /* 0x36087203: lea ecx, [ebp - 0x3c] */
   7544     PUSH32(esp, ecx); /* 0x36087206: push ecx */
   7545     ecx = edi; /* 0x36087207: mov ecx, edi */
   7546     MEM32(ebp + (-0x10)) = edx; /* 0x36087209: mov dword ptr [ebp - 0x10], edx */
   7547     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3608720C: call dword ptr [0x36170180] */
   7548     RECOMP_FLAGS_IN();
   7549     edx = MEM32(eax); /* 0x36087212: mov edx, dword ptr [eax] */
   7550     MEM32(ebp + (-0x24)) = edx; /* 0x36087214: mov dword ptr [ebp - 0x24], edx */
   7551     ecx = MEM32(eax + 0x4); /* 0x36087217: mov ecx, dword ptr [eax + 4] */
   7552     MEM32(ebp + (-0x20)) = ecx; /* 0x3608721A: mov dword ptr [ebp - 0x20], ecx */
   7553     edx = MEM32(eax + 0x8); /* 0x3608721D: mov edx, dword ptr [eax + 8] */
   7554     eax = ebp + (-0x24); /* 0x36087220: lea eax, [ebp - 0x24] */
   7555     PUSH32(esp, eax); /* 0x36087223: push eax */
   7556     ecx = ebp + (-0x48); /* 0x36087224: lea ecx, [ebp - 0x48] */
   7557     PUSH32(esp, ecx); /* 0x36087227: push ecx */
   7558     ecx = edi; /* 0x36087228: mov ecx, edi */
   7559     MEM32(ebp + (-0x1C)) = edx; /* 0x3608722A: mov dword ptr [ebp - 0x1c], edx */
   7560     RECOMP_ICALL(MEM32(0x36170180)); /* 0x3608722D: call dword ptr [0x36170180] */
   7561     RECOMP_FLAGS_IN();
   7562     fp_push(*(float*)&MEM32(edi + 0xC)); /* 0x36087233: fld dword ptr [edi + 0xc] */
   7563     edx = MEM32(eax); /* 0x36087236: mov edx, dword ptr [eax] */
   7564     _st[0] += _st[0]; /* 0x36087238: fadd st(0), st(0) */
   7565     MEM32(ebp + (-0x30)) = edx; /* 0x3608723A: mov dword ptr [ebp - 0x30], edx */
   7566     ecx = MEM32(eax + 0x4); /* 0x3608723D: mov ecx, dword ptr [eax + 4] */
   7567     MEM32(ebp + (-0x2C)) = ecx; /* 0x36087240: mov dword ptr [ebp - 0x2c], ecx */
   7568     edx = MEM32(eax + 0x8); /* 0x36087243: mov edx, dword ptr [eax + 8] */
   7569     PUSH32(esp, ecx); /* 0x36087246: push ecx */
   7570     ecx = ebp + (-0x24); /* 0x36087247: lea ecx, [ebp - 0x24] */
   7571     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3608724A: fstp dword ptr [esp] */
   7572     MEM32(ebp + (-0x28)) = edx; /* 0x3608724D: mov dword ptr [ebp - 0x28], edx */
   7573     RECOMP_ICALL(MEM32(0x36170184)); /* 0x36087250: call dword ptr [0x36170184] */
   7574     RECOMP_FLAGS_IN();
   7575     PUSH32(esp, 0x40000000u); /* 0x36087256: push 0x40000000 */
   7576     ecx = ebp + (-0x30); /* 0x3608725B: lea ecx, [ebp - 0x30] */
   7577     RECOMP_ICALL(MEM32(0x36170184)); /* 0x3608725E: call dword ptr [0x36170184] */
   7578     RECOMP_FLAGS_IN();
   7579     eax = ebp + (-0x24); /* 0x36087264: lea eax, [ebp - 0x24] */
   7580     PUSH32(esp, eax); /* 0x36087267: push eax */
   7581     ecx = ebp + (-0x18); /* 0x36087268: lea ecx, [ebp - 0x18] */
   7582     RECOMP_ICALL(MEM32(0x36170178)); /* 0x3608726B: call dword ptr [0x36170178] */
   7583     RECOMP_FLAGS_IN();
   7584     ecx = ebp + (-0x30); /* 0x36087271: lea ecx, [ebp - 0x30] */
   7585     PUSH32(esp, ecx); /* 0x36087274: push ecx */
   7586     ecx = ebp + (-0x18); /* 0x36087275: lea ecx, [ebp - 0x18] */
   7587     RECOMP_ICALL(MEM32(0x36170178)); /* 0x36087278: call dword ptr [0x36170178] */
   7588     RECOMP_FLAGS_IN();
   7589     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608727E: fld dword ptr [ebp - 0x18] */
   7590     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36087281: fmul dword ptr [ebp - 4] */
   7591     edi = POP32_VAL(esp); /* 0x36087284: pop edi */
   7592     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36087285: fld dword ptr [ebp - 0x10] */
   7593     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36087288: fmul dword ptr [ebp - 0xc] */
   7594     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3608728B: fsubp st(1) */
   7595     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608728D: fld dword ptr [ebp - 0x18] */
   7596     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36087290: fmul dword ptr [ebp - 0xc] */
   7597     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36087293: fld dword ptr [ebp - 0x10] */
   7598     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36087296: fmul dword ptr [ebp - 4] */
   7599     { double _v = fp_pop(); _st[0] += _v; } /* 0x36087299: faddp st(1) */
   7600     fp_push(_st[1]); /* 0x3608729B: fld st(1) */
   7601     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3608729D: fcomp dword ptr [0x3617040c] */
   7602     fp_pop();
   7603     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360872A3: fnstsw ax */
   7604     /* test HI8(eax), 0x40u */ /* 0x360872A5: test ah, 0x40 */
   7605     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7606     _cf = 0;
   7607     _flag_k = FK_NARROW(FK_TEST, 24);
   7608     if (TEST_Z(_flag_a, _flag_b)) goto L_360872C2; /* 0x360872A8: je 0x360872c2 */
   7609 L_360872AA:
   7610     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360872AA: fcom dword ptr [0x3617040c] */
   7611     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360872B0: fnstsw ax */
   7612     /* test HI8(eax), 0x40u */ /* 0x360872B2: test ah, 0x40 */
   7613     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   7614     _cf = 0;
   7615     _flag_k = FK_NARROW(FK_TEST, 24);
   7616     if (TEST_Z(_flag_a, _flag_b)) goto L_360872C2; /* 0x360872B5: je 0x360872c2 */
   7617 L_360872B7:
   7618     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360872B7: fstp st(0) */
   7619     MEM32(esi + 0x10) = 0; /* 0x360872B9: mov dword ptr [esi + 0x10], 0 */
   7620     goto L_360872CD; /* 0x360872C0: jmp 0x360872cd */
   7621 L_360872C2:
   7622     fp_push(_st[1]); /* 0x360872C2: fld st(1) */
   7623     fp_xch(1); /* 0x360872C4: fxch st(1) */
   7624     { double _x = fp_pop(); _st[0] = atan2(_st[0], _x); } /* 0x360872C6: fpatan  */
   7625     _st[0] = fabs(_st[0]); /* 0x360872C8: fabs  */
   7626     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x360872CA: fstp dword ptr [esi + 0x10] */
   7627 L_360872CD:
   7628     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360872CD: fcom dword ptr [0x3617040c] */
   7629     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360872D3: fnstsw ax */
   7630     /* test HI8(eax), 1 */ /* 0x360872D5: test ah, 1 */
   7631     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7632     _cf = 0;
   7633     _flag_k = FK_NARROW(FK_TEST, 24);
   7634     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087308; /* 0x360872D8: jne 0x36087308 */
   7635 L_360872DA:
   7636     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7638     esi = esi + 0x14u; /* 0x360872DA: add esi, 0x14 */
   7639     _flag_k = FK_ADD;
   7640     MEM32(ebp + (-0x24)) = 0; /* 0x360872DD: mov dword ptr [ebp - 0x24], 0 */
   7641     edx = MEM32(ebp + (-0x24)); /* 0x360872E4: mov edx, dword ptr [ebp - 0x24] */
   7642     MEM32(esi) = edx; /* 0x360872E7: mov dword ptr [esi], edx */
   7643     MEM32(ebp + (-0x20)) = 0xBF800000u; /* 0x360872E9: mov dword ptr [ebp - 0x20], 0xbf800000 */
   7644     eax = MEM32(ebp + (-0x20)); /* 0x360872F0: mov eax, dword ptr [ebp - 0x20] */
   7645     MEM32(ebp + (-0x1C)) = 0; /* 0x360872F3: mov dword ptr [ebp - 0x1c], 0 */
   7646     ecx = MEM32(ebp + (-0x1C)); /* 0x360872FA: mov ecx, dword ptr [ebp - 0x1c] */
   7647     MEM32(esi + 0x4) = eax; /* 0x360872FD: mov dword ptr [esi + 4], eax */
   7648     MEM32(esi + 0x8) = ecx; /* 0x36087300: mov dword ptr [esi + 8], ecx */
   7649     esi = POP32_VAL(esp); /* 0x36087303: pop esi */
   7650     esp = ebp; /* 0x36087304: mov esp, ebp */
   7651     ebp = POP32_VAL(esp); /* 0x36087306: pop ebp */
   7652     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087307: ret  */
   7653 L_36087308:
   7654     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7655     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7656     esi = esi + 0x14u; /* 0x36087308: add esi, 0x14 */
   7657     _flag_k = FK_ADD;
   7658     MEM32(ebp + (-0x24)) = 0; /* 0x3608730B: mov dword ptr [ebp - 0x24], 0 */
   7659     edx = MEM32(ebp + (-0x24)); /* 0x36087312: mov edx, dword ptr [ebp - 0x24] */
   7660     MEM32(esi) = edx; /* 0x36087315: mov dword ptr [esi], edx */
   7661     MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x36087317: mov dword ptr [ebp - 0x20], 0x3f800000 */
   7662     eax = MEM32(ebp + (-0x20)); /* 0x3608731E: mov eax, dword ptr [ebp - 0x20] */
   7663     MEM32(ebp + (-0x1C)) = 0; /* 0x36087321: mov dword ptr [ebp - 0x1c], 0 */
   7664     ecx = MEM32(ebp + (-0x1C)); /* 0x36087328: mov ecx, dword ptr [ebp - 0x1c] */
   7665     MEM32(esi + 0x4) = eax; /* 0x3608732B: mov dword ptr [esi + 4], eax */
   7666     MEM32(esi + 0x8) = ecx; /* 0x3608732E: mov dword ptr [esi + 8], ecx */
   7667     esi = POP32_VAL(esp); /* 0x36087331: pop esi */
   7668     esp = ebp; /* 0x36087332: mov esp, ebp */
   7669     ebp = POP32_VAL(esp); /* 0x36087334: pop ebp */
   7670     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087335: ret  */
   7671     RECOMP_REGS_OUT();
   7672 }
   7673 
   7674 void sub_360872CD(void) {
   7675     int _fpu_cmp = 0;
   7676     uint32_t _cf = 0;
   7677     int _df = 1;
   7678     uint32_t _flag_k = FK_NONE;
   7679     uint32_t _flag_a = 0, _flag_b = 0;
   7680     uint32_t _itail_tgt = 0;
   7681     RECOMP_REGS_LOCALS
   7682     RECOMP_ENTER(0x360872CDu);
   7683 
   7684 L_360872CD:
   7685     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360872CD: fcom dword ptr [0x3617040c] */
   7686     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360872D3: fnstsw ax */
   7687     /* test HI8(eax), 1 */ /* 0x360872D5: test ah, 1 */
   7688     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7689     _cf = 0;
   7690     _flag_k = FK_NARROW(FK_TEST, 24);
   7691     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087308; /* 0x360872D8: jne 0x36087308 */
   7692 L_360872DA:
   7693     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7694     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7695     esi = esi + 0x14u; /* 0x360872DA: add esi, 0x14 */
   7696     _flag_k = FK_ADD;
   7697     MEM32(ebp + (-0x24)) = 0; /* 0x360872DD: mov dword ptr [ebp - 0x24], 0 */
   7698     edx = MEM32(ebp + (-0x24)); /* 0x360872E4: mov edx, dword ptr [ebp - 0x24] */
   7699     MEM32(esi) = edx; /* 0x360872E7: mov dword ptr [esi], edx */
   7700     MEM32(ebp + (-0x20)) = 0xBF800000u; /* 0x360872E9: mov dword ptr [ebp - 0x20], 0xbf800000 */
   7701     eax = MEM32(ebp + (-0x20)); /* 0x360872F0: mov eax, dword ptr [ebp - 0x20] */
   7702     MEM32(ebp + (-0x1C)) = 0; /* 0x360872F3: mov dword ptr [ebp - 0x1c], 0 */
   7703     ecx = MEM32(ebp + (-0x1C)); /* 0x360872FA: mov ecx, dword ptr [ebp - 0x1c] */
   7704     MEM32(esi + 0x4) = eax; /* 0x360872FD: mov dword ptr [esi + 4], eax */
   7705     MEM32(esi + 0x8) = ecx; /* 0x36087300: mov dword ptr [esi + 8], ecx */
   7706     esi = POP32_VAL(esp); /* 0x36087303: pop esi */
   7707     esp = ebp; /* 0x36087304: mov esp, ebp */
   7708     ebp = POP32_VAL(esp); /* 0x36087306: pop ebp */
   7709     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087307: ret  */
   7710 L_36087308:
   7711     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7712     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7713     esi = esi + 0x14u; /* 0x36087308: add esi, 0x14 */
   7714     _flag_k = FK_ADD;
   7715     MEM32(ebp + (-0x24)) = 0; /* 0x3608730B: mov dword ptr [ebp - 0x24], 0 */
   7716     edx = MEM32(ebp + (-0x24)); /* 0x36087312: mov edx, dword ptr [ebp - 0x24] */
   7717     MEM32(esi) = edx; /* 0x36087315: mov dword ptr [esi], edx */
   7718     MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x36087317: mov dword ptr [ebp - 0x20], 0x3f800000 */
   7719     eax = MEM32(ebp + (-0x20)); /* 0x3608731E: mov eax, dword ptr [ebp - 0x20] */
   7720     MEM32(ebp + (-0x1C)) = 0; /* 0x36087321: mov dword ptr [ebp - 0x1c], 0 */
   7721     ecx = MEM32(ebp + (-0x1C)); /* 0x36087328: mov ecx, dword ptr [ebp - 0x1c] */
   7722     MEM32(esi + 0x4) = eax; /* 0x3608732B: mov dword ptr [esi + 4], eax */
   7723     MEM32(esi + 0x8) = ecx; /* 0x3608732E: mov dword ptr [esi + 8], ecx */
   7724     esi = POP32_VAL(esp); /* 0x36087331: pop esi */
   7725     esp = ebp; /* 0x36087332: mov esp, ebp */
   7726     ebp = POP32_VAL(esp); /* 0x36087334: pop ebp */
   7727     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087335: ret  */
   7728     RECOMP_REGS_OUT();
   7729 }
   7730 
   7731 void sub_360872DA(void) {
   7732     int _fpu_cmp = 0;
   7733     uint32_t _cf = 0;
   7734     int _df = 1;
   7735     uint32_t _flag_k = FK_NONE;
   7736     uint32_t _flag_a = 0, _flag_b = 0;
   7737     uint32_t _itail_tgt = 0;
   7738     RECOMP_REGS_LOCALS
   7739     RECOMP_ENTER(0x360872DAu);
   7740 
   7741 L_360872DA:
   7742     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7744     esi = esi + 0x14u; /* 0x360872DA: add esi, 0x14 */
   7745     _flag_k = FK_ADD;
   7746     MEM32(ebp + (-0x24)) = 0; /* 0x360872DD: mov dword ptr [ebp - 0x24], 0 */
   7747     edx = MEM32(ebp + (-0x24)); /* 0x360872E4: mov edx, dword ptr [ebp - 0x24] */
   7748     MEM32(esi) = edx; /* 0x360872E7: mov dword ptr [esi], edx */
   7749     MEM32(ebp + (-0x20)) = 0xBF800000u; /* 0x360872E9: mov dword ptr [ebp - 0x20], 0xbf800000 */
   7750     eax = MEM32(ebp + (-0x20)); /* 0x360872F0: mov eax, dword ptr [ebp - 0x20] */
   7751     MEM32(ebp + (-0x1C)) = 0; /* 0x360872F3: mov dword ptr [ebp - 0x1c], 0 */
   7752     ecx = MEM32(ebp + (-0x1C)); /* 0x360872FA: mov ecx, dword ptr [ebp - 0x1c] */
   7753     MEM32(esi + 0x4) = eax; /* 0x360872FD: mov dword ptr [esi + 4], eax */
   7754     MEM32(esi + 0x8) = ecx; /* 0x36087300: mov dword ptr [esi + 8], ecx */
   7755     esi = POP32_VAL(esp); /* 0x36087303: pop esi */
   7756     esp = ebp; /* 0x36087304: mov esp, ebp */
   7757     ebp = POP32_VAL(esp); /* 0x36087306: pop ebp */
   7758     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087307: ret  */
   7759     RECOMP_REGS_OUT();
   7760 }
   7761 
   7762 void sub_36087308(void) {
   7763     int _fpu_cmp = 0;
   7764     uint32_t _cf = 0;
   7765     int _df = 1;
   7766     uint32_t _flag_k = FK_NONE;
   7767     uint32_t _flag_a = 0, _flag_b = 0;
   7768     uint32_t _itail_tgt = 0;
   7769     RECOMP_REGS_LOCALS
   7770     RECOMP_ENTER(0x36087308u);
   7771 
   7772 L_36087308:
   7773     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   7774     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7775     esi = esi + 0x14u; /* 0x36087308: add esi, 0x14 */
   7776     _flag_k = FK_ADD;
   7777     MEM32(ebp + (-0x24)) = 0; /* 0x3608730B: mov dword ptr [ebp - 0x24], 0 */
   7778     edx = MEM32(ebp + (-0x24)); /* 0x36087312: mov edx, dword ptr [ebp - 0x24] */
   7779     MEM32(esi) = edx; /* 0x36087315: mov dword ptr [esi], edx */
   7780     MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x36087317: mov dword ptr [ebp - 0x20], 0x3f800000 */
   7781     eax = MEM32(ebp + (-0x20)); /* 0x3608731E: mov eax, dword ptr [ebp - 0x20] */
   7782     MEM32(ebp + (-0x1C)) = 0; /* 0x36087321: mov dword ptr [ebp - 0x1c], 0 */
   7783     ecx = MEM32(ebp + (-0x1C)); /* 0x36087328: mov ecx, dword ptr [ebp - 0x1c] */
   7784     MEM32(esi + 0x4) = eax; /* 0x3608732B: mov dword ptr [esi + 4], eax */
   7785     MEM32(esi + 0x8) = ecx; /* 0x3608732E: mov dword ptr [esi + 8], ecx */
   7786     esi = POP32_VAL(esp); /* 0x36087331: pop esi */
   7787     esp = ebp; /* 0x36087332: mov esp, ebp */
   7788     ebp = POP32_VAL(esp); /* 0x36087334: pop ebp */
   7789     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087335: ret  */
   7790     RECOMP_REGS_OUT();
   7791 }
   7792 
   7793 void sub_36087340(void) {
   7794     int _fpu_cmp = 0;
   7795     uint32_t _cf = 0;
   7796     int _df = 1;
   7797     uint32_t _flag_k = FK_NONE;
   7798     uint32_t _flag_a = 0, _flag_b = 0;
   7799     uint32_t _itail_tgt = 0;
   7800     RECOMP_REGS_LOCALS
   7801     RECOMP_ENTER(0x36087340u);
   7802 
   7803 L_36087340:
   7804     PUSH32(esp, ebp); /* 0x36087340: push ebp */
   7805     ebp = esp; /* 0x36087341: mov ebp, esp */
   7806     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u);
   7807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7808     esp = esp - 0x48u; /* 0x36087343: sub esp, 0x48 */
   7809     _flag_k = FK_CMP;
   7810     PUSH32(esp, esi); /* 0x36087346: push esi */
   7811     esi = ecx; /* 0x36087347: mov esi, ecx */
   7812     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36087349: fld dword ptr [esi + 0xc] */
   7813     eax = esi + 0x14; /* 0x3608734C: lea eax, [esi + 0x14] */
   7814     ecx = MEM32(eax); /* 0x3608734F: mov ecx, dword ptr [eax] */
   7815     _st[0] *= (double)*(float*)ADDR(0x36171C2C); /* 0x36087351: fmul dword ptr [0x36171c2c] */
   7816     edx = MEM32(eax + 0x4); /* 0x36087357: mov edx, dword ptr [eax + 4] */
   7817     eax = MEM32(eax + 0x8); /* 0x3608735A: mov eax, dword ptr [eax + 8] */
   7818     MEM32(ebp + (-0x14)) = ecx; /* 0x3608735D: mov dword ptr [ebp - 0x14], ecx */
   7819     ecx = MEM32(0x3616FF74); /* 0x36087360: mov ecx, dword ptr [0x3616ff74] */
   7820     MEM32(ebp + (-0x10)) = edx; /* 0x36087366: mov dword ptr [ebp - 0x10], edx */
   7821     edx = MEM32(ecx); /* 0x36087369: mov edx, dword ptr [ecx] */
   7822     _st[0] *= (double)*(float*)ADDR(edx + 0x64); /* 0x3608736B: fmul dword ptr [edx + 0x64] */
   7823     MEM32(ebp + (-0xC)) = eax; /* 0x3608736E: mov dword ptr [ebp - 0xc], eax */
   7824     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36087371: fst dword ptr [ebp - 4] */
   7825     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x36087374: fcomp dword ptr [esi + 0x10] */
   7826     fp_pop();
   7827     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36087377: fnstsw ax */
   7828     /* test HI8(eax), 0x41u */ /* 0x36087379: test ah, 0x41 */
   7829     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7830     _cf = 0;
   7831     _flag_k = FK_NARROW(FK_TEST, 24);
   7832     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087384; /* 0x3608737C: jne 0x36087384 */
   7833 L_3608737E:
   7834     eax = MEM32(esi + 0x10); /* 0x3608737E: mov eax, dword ptr [esi + 0x10] */
   7835     MEM32(ebp + (-0x4)) = eax; /* 0x36087381: mov dword ptr [ebp - 4], eax */
   7836 L_36087384:
   7837     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36087384: fld dword ptr [ebp - 4] */
   7838     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36087387: fcomp dword ptr [0x3617040c] */
   7839     fp_pop();
   7840     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608738D: fnstsw ax */
   7841     /* test HI8(eax), 1 */ /* 0x3608738F: test ah, 1 */
   7842     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7843     _cf = 0;
   7844     _flag_k = FK_NARROW(FK_TEST, 24);
   7845     if (TEST_NZ(_flag_a, _flag_b)) goto L_360873AF; /* 0x36087392: jne 0x360873af */
   7846 L_36087394:
   7847     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36087394: fld dword ptr [ebp - 4] */
   7848     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x36087397: fcomp qword ptr [0x361708b8] */
   7849     fp_pop();
   7850     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608739D: fnstsw ax */
   7851     /* test HI8(eax), 1 */ /* 0x3608739F: test ah, 1 */
   7852     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7853     _cf = 0;
   7854     _flag_k = FK_NARROW(FK_TEST, 24);
   7855     if (TEST_Z(_flag_a, _flag_b)) goto L_360873AF; /* 0x360873A2: je 0x360873af */
   7856 L_360873A4:
   7857     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360873A4: fld dword ptr [ebp - 4] */
   7858     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360873A7: fmul dword ptr [0x36170464] */
   7859     goto L_360873D3; /* 0x360873AD: jmp 0x360873d3 */
   7860 L_360873AF:
   7861     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360873AF: fld dword ptr [ebp - 4] */
   7862     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7864     esp = esp - 8; /* 0x360873B2: sub esp, 8 */
   7865     _flag_k = FK_CMP;
   7866     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x360873B5: fmul dword ptr [0x361708b4] */
   7867     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x360873BB: fst dword ptr [ebp - 8] */
   7868     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x360873BE: fstp qword ptr [esp] */
   7869     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x360873C1: call dword ptr [0x3616f198] */
   7870     RECOMP_FLAGS_IN();
   7871     _st[0] = (double)*(float*)ADDR(ebp + (-0x8)) - _st[0]; /* 0x360873C7: fsubr dword ptr [ebp - 8] */
   7872     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7873     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7874     esp = esp + 8; /* 0x360873CA: add esp, 8 */
   7875     _flag_k = FK_ADD;
   7876     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x360873CD: fmul dword ptr [0x361708b0] */
   7877 L_360873D3:
   7878     fp_push(_st[0]); /* 0x360873D3: fld st(0) */
   7879     ecx = ebp + (-0x48); /* 0x360873D5: lea ecx, [ebp - 0x48] */
   7880     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x360873D8: fsin  */
   7881     PUSH32(esp, ecx); /* 0x360873DA: push ecx */
   7882     ecx = MEM32(esi + 0x8); /* 0x360873DB: mov ecx, dword ptr [esi + 8] */
   7883     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x360873DE: fld dword ptr [ebp - 0x14] */
   7884     _st[0] *= _st[1]; /* 0x360873E1: fmul st(1) */
   7885     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x360873E3: fstp dword ptr [ebp - 0x28] */
   7886     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x360873E6: fld dword ptr [ebp - 0x10] */
   7887     _st[0] *= _st[1]; /* 0x360873E9: fmul st(1) */
   7888     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x360873EB: fstp dword ptr [ebp - 0x24] */
   7889     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x360873EE: fld dword ptr [ebp - 0xc] */
   7890     _st[0] *= _st[1]; /* 0x360873F1: fmul st(1) */
   7891     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x360873F3: fstp dword ptr [ebp - 0x20] */
   7892     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360873F6: fstp st(0) */
   7893     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360873F8: fcos  */
   7894     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x360873FA: fstp dword ptr [ebp - 0x1c] */
   7895     RECOMP_ICALL(MEM32(0x361700AC)); /* 0x360873FD: call dword ptr [0x361700ac] */
   7896     RECOMP_FLAGS_IN();
   7897     ecx = MEM32(ebp + (-0x24)); /* 0x36087403: mov ecx, dword ptr [ebp - 0x24] */
   7898     edx = MEM32(ebp + (-0x28)); /* 0x36087406: mov edx, dword ptr [ebp - 0x28] */
   7899     MEM32(ebp + (-0x14)) = ecx; /* 0x36087409: mov dword ptr [ebp - 0x14], ecx */
   7900     ecx = MEM32(ebp + (-0x1C)); /* 0x3608740C: mov ecx, dword ptr [ebp - 0x1c] */
   7901     MEM32(ebp + (-0x18)) = edx; /* 0x3608740F: mov dword ptr [ebp - 0x18], edx */
   7902     edx = MEM32(ebp + (-0x20)); /* 0x36087412: mov edx, dword ptr [ebp - 0x20] */
   7903     MEM32(ebp + (-0xC)) = ecx; /* 0x36087415: mov dword ptr [ebp - 0xc], ecx */
   7904     PUSH32(esp, eax); /* 0x36087418: push eax */
   7905     ecx = ebp + (-0x18); /* 0x36087419: lea ecx, [ebp - 0x18] */
   7906     MEM32(ebp + (-0x10)) = edx; /* 0x3608741C: mov dword ptr [ebp - 0x10], edx */
   7907     RECOMP_ICALL(MEM32(0x3617019C)); /* 0x3608741F: call dword ptr [0x3617019c] */
   7908     RECOMP_FLAGS_IN();
   7909     edx = MEM32(eax); /* 0x36087425: mov edx, dword ptr [eax] */
   7910     MEM32(ebp + (-0x38)) = edx; /* 0x36087427: mov dword ptr [ebp - 0x38], edx */
   7911     ecx = MEM32(eax + 0x4); /* 0x3608742A: mov ecx, dword ptr [eax + 4] */
   7912     MEM32(ebp + (-0x34)) = ecx; /* 0x3608742D: mov dword ptr [ebp - 0x34], ecx */
   7913     edx = MEM32(eax + 0x8); /* 0x36087430: mov edx, dword ptr [eax + 8] */
   7914     ecx = ebp + (-0x38); /* 0x36087433: lea ecx, [ebp - 0x38] */
   7915     MEM32(ebp + (-0x30)) = edx; /* 0x36087436: mov dword ptr [ebp - 0x30], edx */
   7916     eax = MEM32(eax + 0xC); /* 0x36087439: mov eax, dword ptr [eax + 0xc] */
   7917     PUSH32(esp, ecx); /* 0x3608743C: push ecx */
   7918     ecx = MEM32(esi + 0x8); /* 0x3608743D: mov ecx, dword ptr [esi + 8] */
   7919     MEM32(ebp + (-0x2C)) = eax; /* 0x36087440: mov dword ptr [ebp - 0x2c], eax */
   7920     RECOMP_ICALL(MEM32(0x3616FC68)); /* 0x36087443: call dword ptr [0x3616fc68] */
   7921     RECOMP_FLAGS_IN();
   7922     fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36087449: fld dword ptr [esi + 0x10] */
   7923     _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3608744C: fsub dword ptr [ebp - 4] */
   7924     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x10) = _v; } /* 0x3608744F: fst dword ptr [esi + 0x10] */
   7925     fp_push(*(float*)&MEM32(0x36170E8C)); /* 0x36087452: fld dword ptr [0x36170e8c] */
   7926     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x36087458: fcomp st(1) */
   7927     fp_pop();
   7928     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608745A: fnstsw ax */
   7929     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3608745C: fstp st(0) */
   7930     /* test HI8(eax), 0x41u */ /* 0x3608745E: test ah, 0x41 */
   7931     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7932     _cf = 0;
   7933     _flag_k = FK_NARROW(FK_TEST, 24);
   7934     if (TEST_NZ(_flag_a, _flag_b)) goto L_360874F5; /* 0x36087461: jne 0x360874f5 */
   7935 L_36087467:
   7936     edx = MEM32(esi + 0x8); /* 0x36087467: mov edx, dword ptr [esi + 8] */
   7937     eax = MEM32(0x3616FC18); /* 0x3608746A: mov eax, dword ptr [0x3616fc18] */
   7938     ecx = MEM32(eax); /* 0x3608746F: mov ecx, dword ptr [eax] */
   7939     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x194u);
   7940     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7941     edx = edx + 0x194u; /* 0x36087471: add edx, 0x194 */
   7942     _flag_k = FK_ADD;
   7943     MEM32(edx) = ecx; /* 0x36087477: mov dword ptr [edx], ecx */
   7944     ecx = MEM32(eax + 0x4); /* 0x36087479: mov ecx, dword ptr [eax + 4] */
   7945     MEM32(edx + 0x4) = ecx; /* 0x3608747C: mov dword ptr [edx + 4], ecx */
   7946     eax = MEM32(eax + 0x8); /* 0x3608747F: mov eax, dword ptr [eax + 8] */
   7947     MEM32(edx + 0x8) = eax; /* 0x36087482: mov dword ptr [edx + 8], eax */
   7948     eax = MEM32(esi + 0x8); /* 0x36087485: mov eax, dword ptr [esi + 8] */
   7949     ecx = MEM32(eax + 0x16C); /* 0x36087488: mov ecx, dword ptr [eax + 0x16c] */
   7950     edx = MEM32(ecx + 0x5C); /* 0x3608748E: mov edx, dword ptr [ecx + 0x5c] */
   7951     /* cmp edx, MEM32(0x362EA514) */ /* 0x36087491: cmp edx, dword ptr [0x362ea514] */
   7952     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x362EA514));
   7953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7954     _flag_k = FK_CMP;
   7955     if (CMP_NE(_flag_a, _flag_b)) goto L_360874A4; /* 0x36087497: jne 0x360874a4 */
   7956 L_36087499:
   7957     edx = MEM32(ecx + 0x58); /* 0x36087499: mov edx, dword ptr [ecx + 0x58] */
   7958     /* cmp edx, MEM32(0x362EA510) */ /* 0x3608749C: cmp edx, dword ptr [0x362ea510] */
   7959     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(0x362EA510));
   7960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7961     _flag_k = FK_CMP;
   7962     if (CMP_EQ(_flag_a, _flag_b)) goto L_360874B4; /* 0x360874A2: je 0x360874b4 */
   7963 L_360874A4:
   7964     PUSH32(esp, 0); /* 0x360874A4: push 0 */
   7965     PUSH32(esp, 0xAu); /* 0x360874A6: push 0xa */
   7966     ecx = esi; /* 0x360874A8: mov ecx, esi */
   7967     RECOMP_ICALL(0x36086BD0u); /* 0x360874AA: call 0x36086bd0 */ /* not lifted */
   7968     RECOMP_FLAGS_IN();
   7969     esi = POP32_VAL(esp); /* 0x360874AF: pop esi */
   7970     esp = ebp; /* 0x360874B0: mov esp, ebp */
   7971     ebp = POP32_VAL(esp); /* 0x360874B2: pop ebp */
   7972     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360874B3: ret  */
   7973 L_360874B4:
   7974     eax = MEM32(eax + 0x158); /* 0x360874B4: mov eax, dword ptr [eax + 0x158] */
   7975     edx = MEM32(eax + 0x4); /* 0x360874BA: mov edx, dword ptr [eax + 4] */
   7976     /* test edx, edx */ /* 0x360874BD: test edx, edx */
   7977     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7978     _cf = 0;
   7979     _flag_k = FK_TEST;
   7980     if (TEST_Z(_flag_a, _flag_b)) goto L_360874D1; /* 0x360874BF: je 0x360874d1 */
   7981 L_360874C1:
   7982     PUSH32(esp, 0); /* 0x360874C1: push 0 */
   7983     PUSH32(esp, 5); /* 0x360874C3: push 5 */
   7984     ecx = esi; /* 0x360874C5: mov ecx, esi */
   7985     RECOMP_ICALL(0x36086BD0u); /* 0x360874C7: call 0x36086bd0 */ /* not lifted */
   7986     RECOMP_FLAGS_IN();
   7987     esi = POP32_VAL(esp); /* 0x360874CC: pop esi */
   7988     esp = ebp; /* 0x360874CD: mov esp, ebp */
   7989     ebp = POP32_VAL(esp); /* 0x360874CF: pop ebp */
   7990     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360874D0: ret  */
   7991 L_360874D1:
   7992     /* cmp MEM32(ecx + 0x50), 1 */ /* 0x360874D1: cmp dword ptr [ecx + 0x50], 1 */
   7993     _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1);
   7994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7995     _flag_k = FK_CMP;
   7996     PUSH32(esp, 0); /* 0x360874D5: push 0 */
   7997     if (CMP_EQ(_flag_a, _flag_b)) goto L_360874E7; /* 0x360874D7: je 0x360874e7 */
   7998 L_360874D9:
   7999     PUSH32(esp, 0xAu); /* 0x360874D9: push 0xa */
   8000     ecx = esi; /* 0x360874DB: mov ecx, esi */
   8001     RECOMP_ICALL(0x36086BD0u); /* 0x360874DD: call 0x36086bd0 */ /* not lifted */
   8002     RECOMP_FLAGS_IN();
   8003     esi = POP32_VAL(esp); /* 0x360874E2: pop esi */
   8004     esp = ebp; /* 0x360874E3: mov esp, ebp */
   8005     ebp = POP32_VAL(esp); /* 0x360874E5: pop ebp */
   8006     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360874E6: ret  */
   8007 L_360874E7:
   8008     PUSH32(esp, 0); /* 0x360874E7: push 0 */
   8009     ecx = esi; /* 0x360874E9: mov ecx, esi */
   8010     RECOMP_ICALL(0x36086BD0u); /* 0x360874EB: call 0x36086bd0 */ /* not lifted */
   8011     RECOMP_FLAGS_IN();
   8012     esi = POP32_VAL(esp); /* 0x360874F0: pop esi */
   8013     esp = ebp; /* 0x360874F1: mov esp, ebp */
   8014     ebp = POP32_VAL(esp); /* 0x360874F3: pop ebp */
   8015     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360874F4: ret  */
   8016 L_360874F5:
   8017     eax = esi; /* 0x360874F5: mov eax, esi */
   8018     esi = POP32_VAL(esp); /* 0x360874F7: pop esi */
   8019     esp = ebp; /* 0x360874F8: mov esp, ebp */
   8020     ebp = POP32_VAL(esp); /* 0x360874FA: pop ebp */
   8021     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360874FB: ret  */
   8022     RECOMP_REGS_OUT();
   8023 }
   8024 
   8025 void sub_36087500(void) {
   8026     int _fpu_cmp = 0;
   8027     uint32_t _cf = 0;
   8028     int _df = 1;
   8029     uint32_t _flag_k = FK_NONE;
   8030     uint32_t _flag_a = 0, _flag_b = 0;
   8031     uint32_t _itail_tgt = 0;
   8032     RECOMP_REGS_LOCALS
   8033     RECOMP_ENTER(0x36087500u);
   8034 
   8035 L_36087500:
   8036     PUSH32(esp, ebp); /* 0x36087500: push ebp */
   8037     ebp = esp; /* 0x36087501: mov ebp, esp */
   8038     PUSH32(esp, 0xFFFFFFFFu); /* 0x36087503: push -1 */
   8039     PUSH32(esp, 0x36165BE9u); /* 0x36087505: push 0x36165be9 */
   8040     eax = MEM32(FS_BASE + (0)); /* 0x3608750A: mov eax, dword ptr fs:[0] */
   8041     PUSH32(esp, eax); /* 0x36087510: push eax */
   8042     MEM32(FS_BASE + (0)) = esp; /* 0x36087511: mov dword ptr fs:[0], esp */
   8043     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8045     esp = esp - 8; /* 0x36087518: sub esp, 8 */
   8046     _flag_k = FK_CMP;
   8047     PUSH32(esp, esi); /* 0x3608751B: push esi */
   8048     esi = ecx; /* 0x3608751C: mov esi, ecx */
   8049     MEM32(ebp + (-0x10)) = esi; /* 0x3608751E: mov dword ptr [ebp - 0x10], esi */
   8050     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36087521: call dword ptr [0x3616ffd0] */
   8051     RECOMP_FLAGS_IN();
   8052     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8053     ecx = 0; /* 0x36087527: xor ecx, ecx */
   8054     _cf = 0;
   8055     _flag_k = FK_TEST;
   8056     eax = esi + 0x20; /* 0x36087529: lea eax, [esi + 0x20] */
   8057     edx = ebp + (-0x14); /* 0x3608752C: lea edx, [ebp - 0x14] */
   8058     /* cmp eax, edx */ /* 0x3608752F: cmp eax, edx */
   8059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   8060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8061     _flag_k = FK_CMP;
   8062     MEM32(ebp + (-0x4)) = ecx; /* 0x36087531: mov dword ptr [ebp - 4], ecx */
   8063     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608753B; /* 0x36087534: je 0x3608753b */
   8064 L_36087536:
   8065     MEM32(eax) = ecx; /* 0x36087536: mov dword ptr [eax], ecx */
   8066     MEM32(eax + 0x4) = ecx; /* 0x36087538: mov dword ptr [eax + 4], ecx */
   8067 L_3608753B:
   8068     ecx = esi; /* 0x3608753B: mov ecx, esi */
   8069     MEM32(esi) = 0x36171C34u; /* 0x3608753D: mov dword ptr [esi], 0x36171c34 */
   8070     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36087543: call dword ptr [0x3616fc20] */
   8071     RECOMP_FLAGS_IN();
   8072     ecx = MEM32(ebp + (-0xC)); /* 0x36087549: mov ecx, dword ptr [ebp - 0xc] */
   8073     eax = esi; /* 0x3608754C: mov eax, esi */
   8074     esi = POP32_VAL(esp); /* 0x3608754E: pop esi */
   8075     MEM32(FS_BASE + (0)) = ecx; /* 0x3608754F: mov dword ptr fs:[0], ecx */
   8076     esp = ebp; /* 0x36087556: mov esp, ebp */
   8077     ebp = POP32_VAL(esp); /* 0x36087558: pop ebp */
   8078     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087559: ret  */
   8079     RECOMP_REGS_OUT();
   8080 }
   8081 
   8082 void sub_36087560(void) {
   8083     int _fpu_cmp = 0;
   8084     uint32_t _cf = 0;
   8085     int _df = 1;
   8086     uint32_t _flag_k = FK_NONE;
   8087     uint32_t _flag_a = 0, _flag_b = 0;
   8088     uint32_t _itail_tgt = 0;
   8089     RECOMP_REGS_LOCALS
   8090     RECOMP_ENTER(0x36087560u);
   8091 
   8092 L_36087560:
   8093     PUSH32(esp, ebp); /* 0x36087560: push ebp */
   8094     ebp = esp; /* 0x36087561: mov ebp, esp */
   8095     PUSH32(esp, esi); /* 0x36087563: push esi */
   8096     esi = ecx; /* 0x36087564: mov esi, ecx */
   8097     RECOMP_ICALL(0x36087690u); /* 0x36087566: call 0x36087690 */ /* not lifted */
   8098     RECOMP_FLAGS_IN();
   8099     /* test MEM8(ebp + 0x8), 1 */ /* 0x3608756B: test byte ptr [ebp + 8], 1 */
   8100     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   8101     _cf = 0;
   8102     _flag_k = FK_NARROW(FK_TEST, 24);
   8103     if (TEST_Z(_flag_a, _flag_b)) goto L_3608757A; /* 0x3608756F: je 0x3608757a */
   8104 L_36087571:
   8105     PUSH32(esp, esi); /* 0x36087571: push esi */
   8106     RECOMP_ICALL(0x3615FCC4u); /* 0x36087572: call 0x3615fcc4 */ /* not lifted */
   8107     RECOMP_FLAGS_IN();
   8108     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8109     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8110     esp = esp + 4; /* 0x36087577: add esp, 4 */
   8111     _flag_k = FK_ADD;
   8112 L_3608757A:
   8113     eax = esi; /* 0x3608757A: mov eax, esi */
   8114     esi = POP32_VAL(esp); /* 0x3608757C: pop esi */
   8115     ebp = POP32_VAL(esp); /* 0x3608757D: pop ebp */
   8116     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608757E: ret 4 */
   8117     RECOMP_REGS_OUT();
   8118 }
   8119 
   8120 void sub_36087590(void) {
   8121     int _fpu_cmp = 0;
   8122     uint32_t _cf = 0;
   8123     int _df = 1;
   8124     uint32_t _flag_k = FK_NONE;
   8125     uint32_t _flag_a = 0, _flag_b = 0;
   8126     uint32_t _itail_tgt = 0;
   8127     RECOMP_REGS_LOCALS
   8128     RECOMP_ENTER(0x36087590u);
   8129 
   8130 L_36087590:
   8131     PUSH32(esp, ebp); /* 0x36087590: push ebp */
   8132     ebp = esp; /* 0x36087591: mov ebp, esp */
   8133     PUSH32(esp, 0xFFFFFFFFu); /* 0x36087593: push -1 */
   8134     PUSH32(esp, 0x36165C12u); /* 0x36087595: push 0x36165c12 */
   8135     eax = MEM32(FS_BASE + (0)); /* 0x3608759A: mov eax, dword ptr fs:[0] */
   8136     PUSH32(esp, eax); /* 0x360875A0: push eax */
   8137     MEM32(FS_BASE + (0)) = esp; /* 0x360875A1: mov dword ptr fs:[0], esp */
   8138     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8140     esp = esp - 0x14u; /* 0x360875A8: sub esp, 0x14 */
   8141     _flag_k = FK_CMP;
   8142     SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x360875AB: mov al, byte ptr [ebp + 0x13] */
   8143     PUSH32(esp, ebx); /* 0x360875AE: push ebx */
   8144     PUSH32(esp, esi); /* 0x360875AF: push esi */
   8145     esi = ecx; /* 0x360875B0: mov esi, ecx */
   8146     PUSH32(esp, edi); /* 0x360875B2: push edi */
   8147     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   8148     ecx = ecx | 0xFFFFFFFFu; /* 0x360875B3: or ecx, 0xffffffff */
   8149     _cf = 0;
   8150     _flag_k = FK_TEST;
   8151     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x360875B6: mov byte ptr [ebp - 0x20], al */
   8152     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8153     eax = 0; /* 0x360875B9: xor eax, eax */
   8154     _cf = 0;
   8155     _flag_k = FK_TEST;
   8156     edi = 0x361B40BCu; /* 0x360875BB: mov edi, 0x361b40bc */
   8157     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360875C0: repne scasb al, byte ptr es:[edi] */
   8158     ecx = ~ecx; /* 0x360875C2: not ecx */
   8159     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8160     ecx = ecx - 1; /* 0x360875C4: dec ecx */
   8161     _flag_k = FK_DEC;
   8162     ebx = ecx; /* 0x360875C5: mov ebx, ecx */
   8163     PUSH32(esp, 1); /* 0x360875C7: push 1 */
   8164     PUSH32(esp, ebx); /* 0x360875C9: push ebx */
   8165     ecx = ebp + (-0x20); /* 0x360875CA: lea ecx, [ebp - 0x20] */
   8166     MEM32(ebp + (-0x10)) = esi; /* 0x360875CD: mov dword ptr [ebp - 0x10], esi */
   8167     MEM32(ebp + (-0x1C)) = eax; /* 0x360875D0: mov dword ptr [ebp - 0x1c], eax */
   8168     MEM32(ebp + (-0x18)) = eax; /* 0x360875D3: mov dword ptr [ebp - 0x18], eax */
   8169     MEM32(ebp + (-0x14)) = eax; /* 0x360875D6: mov dword ptr [ebp - 0x14], eax */
   8170     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360875D9: call dword ptr [0x3616f00c] */
   8171     RECOMP_FLAGS_IN();
   8172     /* test LO8(eax), LO8(eax) */ /* 0x360875DF: test al, al */
   8173     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8174     _cf = 0;
   8175     _flag_k = FK_NARROW(FK_TEST, 24);
   8176     if (TEST_Z(_flag_a, _flag_b)) goto L_36087608; /* 0x360875E1: je 0x36087608 */
   8177 L_360875E3:
   8178     edi = MEM32(ebp + (-0x1C)); /* 0x360875E3: mov edi, dword ptr [ebp - 0x1c] */
   8179     ecx = ebx; /* 0x360875E6: mov ecx, ebx */
   8180     edx = ecx; /* 0x360875E8: mov edx, ecx */
   8181     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360875EA: shr ecx, 2 */
   8182     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8183     ecx = ecx >> 2u; /* 0x360875EA: shr ecx, 2 */
   8184     esi = 0x361B40BCu; /* 0x360875ED: mov esi, 0x361b40bc */
   8185     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360875F2: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   8186     ecx = edx; /* 0x360875F4: mov ecx, edx */
   8187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   8188     ecx = ecx & 3; /* 0x360875F6: and ecx, 3 */
   8189     _cf = 0;
   8190     _flag_k = FK_TEST;
   8191     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360875F9: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   8192     eax = MEM32(ebp + (-0x1C)); /* 0x360875FB: mov eax, dword ptr [ebp - 0x1c] */
   8193     esi = MEM32(ebp + (-0x10)); /* 0x360875FE: mov esi, dword ptr [ebp - 0x10] */
   8194     MEM32(ebp + (-0x18)) = ebx; /* 0x36087601: mov dword ptr [ebp - 0x18], ebx */
   8195     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36087604: mov byte ptr [eax + ebx], 0 */
   8196 L_36087608:
   8197     edx = MEM32(ebp + 0x8); /* 0x36087608: mov edx, dword ptr [ebp + 8] */
   8198     ecx = ebp + (-0x20); /* 0x3608760B: lea ecx, [ebp - 0x20] */
   8199     PUSH32(esp, ecx); /* 0x3608760E: push ecx */
   8200     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8201     edi = 0; /* 0x3608760F: xor edi, edi */
   8202     _cf = 0;
   8203     _flag_k = FK_TEST;
   8204     PUSH32(esp, edx); /* 0x36087611: push edx */
   8205     ecx = esi; /* 0x36087612: mov ecx, esi */
   8206     MEM32(ebp + (-0x4)) = edi; /* 0x36087614: mov dword ptr [ebp - 4], edi */
   8207     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x36087617: call dword ptr [0x3616fc0c] */
   8208     RECOMP_FLAGS_IN();
   8209     ecx = MEM32(ebp + (-0x1C)); /* 0x3608761D: mov ecx, dword ptr [ebp - 0x1c] */
   8210     /* cmp ecx, edi */ /* 0x36087620: cmp ecx, edi */
   8211     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   8212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8213     _flag_k = FK_CMP;
   8214     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36087622: mov byte ptr [ebp - 4], 2 */
   8215     if (CMP_EQ(_flag_a, _flag_b)) goto L_36087643; /* 0x36087626: je 0x36087643 */
   8216 L_36087628:
   8217     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36087628: mov al, byte ptr [ecx - 1] */
   8218     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8219     ecx = ecx - 1; /* 0x3608762B: dec ecx */
   8220     _flag_k = FK_DEC;
   8221     /* test LO8(eax), LO8(eax) */ /* 0x3608762C: test al, al */
   8222     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8223     _cf = 0;
   8224     _flag_k = FK_NARROW(FK_TEST, 24);
   8225     if (TEST_Z(_flag_a, _flag_b)) goto L_3608763A; /* 0x3608762E: je 0x3608763a */
   8226 L_36087630:
   8227     /* cmp LO8(eax), 0xFFu */ /* 0x36087630: cmp al, 0xff */
   8228     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   8229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8230     _flag_k = FK_NARROW(FK_CMP, 24);
   8231     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608763A; /* 0x36087632: je 0x3608763a */
   8232 L_36087634:
   8233     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8234     SET_LO8(eax, LO8(eax) - 1); /* 0x36087634: dec al */
   8235     _flag_k = FK_NARROW(FK_DEC, 24);
   8236     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36087636: mov byte ptr [ecx], al */
   8237     goto L_36087643; /* 0x36087638: jmp 0x36087643 */
   8238 L_3608763A:
   8239     PUSH32(esp, ecx); /* 0x3608763A: push ecx */
   8240     RECOMP_ICALL(0x3615FCC4u); /* 0x3608763B: call 0x3615fcc4 */ /* not lifted */
   8241     RECOMP_FLAGS_IN();
   8242     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8243     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8244     esp = esp + 4; /* 0x36087640: add esp, 4 */
   8245     _flag_k = FK_ADD;
   8246 L_36087643:
   8247     ecx = MEM32(ebp + 0xC); /* 0x36087643: mov ecx, dword ptr [ebp + 0xc] */
   8248     eax = esi + 0x20; /* 0x36087646: lea eax, [esi + 0x20] */
   8249     /* cmp eax, ecx */ /* 0x36087649: cmp eax, ecx */
   8250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8252     _flag_k = FK_CMP;
   8253     MEM32(ebp + (-0x1C)) = edi; /* 0x3608764B: mov dword ptr [ebp - 0x1c], edi */
   8254     MEM32(ebp + (-0x18)) = edi; /* 0x3608764E: mov dword ptr [ebp - 0x18], edi */
   8255     MEM32(ebp + (-0x14)) = edi; /* 0x36087651: mov dword ptr [ebp - 0x14], edi */
   8256     if (CMP_EQ(_flag_a, _flag_b)) goto L_36087660; /* 0x36087654: je 0x36087660 */
   8257 L_36087656:
   8258     edx = MEM32(ecx); /* 0x36087656: mov edx, dword ptr [ecx] */
   8259     MEM32(eax) = edx; /* 0x36087658: mov dword ptr [eax], edx */
   8260     ecx = MEM32(ecx + 0x4); /* 0x3608765A: mov ecx, dword ptr [ecx + 4] */
   8261     MEM32(eax + 0x4) = ecx; /* 0x3608765D: mov dword ptr [eax + 4], ecx */
   8262 L_36087660:
   8263     SET_LO8(edx, MEM8(ebp + 0x10)); /* 0x36087660: mov dl, byte ptr [ebp + 0x10] */
   8264     ecx = esi; /* 0x36087663: mov ecx, esi */
   8265     MEM8(esi + 0x28) = (uint8_t)(LO8(edx)); /* 0x36087665: mov byte ptr [esi + 0x28], dl */
   8266     MEM32(esi) = 0x36171C34u; /* 0x36087668: mov dword ptr [esi], 0x36171c34 */
   8267     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3608766E: call dword ptr [0x3616fc20] */
   8268     RECOMP_FLAGS_IN();
   8269     ecx = MEM32(ebp + (-0xC)); /* 0x36087674: mov ecx, dword ptr [ebp - 0xc] */
   8270     edi = POP32_VAL(esp); /* 0x36087677: pop edi */
   8271     eax = esi; /* 0x36087678: mov eax, esi */
   8272     esi = POP32_VAL(esp); /* 0x3608767A: pop esi */
   8273     ebx = POP32_VAL(esp); /* 0x3608767B: pop ebx */
   8274     MEM32(FS_BASE + (0)) = ecx; /* 0x3608767C: mov dword ptr fs:[0], ecx */
   8275     esp = ebp; /* 0x36087683: mov esp, ebp */
   8276     ebp = POP32_VAL(esp); /* 0x36087685: pop ebp */
   8277     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36087686: ret 0xc */
   8278     RECOMP_REGS_OUT();
   8279 }
   8280 
   8281 void sub_36087690(void) {
   8282     int _fpu_cmp = 0;
   8283     uint32_t _cf = 0;
   8284     int _df = 1;
   8285     uint32_t _flag_k = FK_NONE;
   8286     uint32_t _flag_a = 0, _flag_b = 0;
   8287     uint32_t _itail_tgt = 0;
   8288     RECOMP_REGS_LOCALS
   8289     RECOMP_ENTER(0x36087690u);
   8290 
   8291 L_36087690:
   8292     MEM32(ecx) = 0x36171C34u; /* 0x36087690: mov dword ptr [ecx], 0x36171c34 */
   8293 L_36087696:
   8294     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   8295     { RECOMP_REGS_OUT(); return; } /* end of function */
   8296   _ljump:
   8297     switch (_itail_tgt) {
   8298       case 0x36087690u: goto L_36087690;
   8299       case 0x36087696u: goto L_36087696;
   8300       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   8301     }
   8302     RECOMP_REGS_OUT();
   8303 }
   8304 
   8305 void sub_360876A0(void) {
   8306     int _fpu_cmp = 0;
   8307     uint32_t _cf = 0;
   8308     int _df = 1;
   8309     uint32_t _flag_k = FK_NONE;
   8310     uint32_t _flag_a = 0, _flag_b = 0;
   8311     uint32_t _itail_tgt = 0;
   8312     RECOMP_REGS_LOCALS
   8313     RECOMP_ENTER(0x360876A0u);
   8314 
   8315 L_360876A0:
   8316     PUSH32(esp, esi); /* 0x360876A0: push esi */
   8317     PUSH32(esp, edi); /* 0x360876A1: push edi */
   8318     esi = ecx; /* 0x360876A2: mov esi, ecx */
   8319     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x360876A4: call dword ptr [0x3616fc20] */
   8320     RECOMP_FLAGS_IN();
   8321     eax = esi + 0x4; /* 0x360876AA: lea eax, [esi + 4] */
   8322     PUSH32(esp, eax); /* 0x360876AD: push eax */
   8323     RECOMP_ICALL(0x3606DA90u); /* 0x360876AE: call 0x3606da90 */ /* not lifted */
   8324     RECOMP_FLAGS_IN();
   8325     edi = eax; /* 0x360876B3: mov edi, eax */
   8326     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8328     esp = esp + 4; /* 0x360876B5: add esp, 4 */
   8329     _flag_k = FK_ADD;
   8330     /* test edi, edi */ /* 0x360876B8: test edi, edi */
   8331     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8332     _cf = 0;
   8333     _flag_k = FK_TEST;
   8334     if (TEST_Z(_flag_a, _flag_b)) goto L_360876EC; /* 0x360876BA: je 0x360876ec */
   8335 L_360876BC:
   8336     PUSH32(esp, 0); /* 0x360876BC: push 0 */
   8337     PUSH32(esp, 0x361B2CA0u); /* 0x360876BE: push 0x361b2ca0 */
   8338     PUSH32(esp, 0x361B2CC0u); /* 0x360876C3: push 0x361b2cc0 */
   8339     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u);
   8340     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8341     esi = esi + 0x20u; /* 0x360876C8: add esi, 0x20 */
   8342     _flag_k = FK_ADD;
   8343     PUSH32(esp, 0); /* 0x360876CB: push 0 */
   8344     PUSH32(esp, esi); /* 0x360876CD: push esi */
   8345     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360876CE: call dword ptr [0x3616ff70] */
   8346     RECOMP_FLAGS_IN();
   8347     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8348     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8349     esp = esp + 4; /* 0x360876D4: add esp, 4 */
   8350     _flag_k = FK_ADD;
   8351     PUSH32(esp, eax); /* 0x360876D7: push eax */
   8352     RECOMP_ICALL(0x3615FD86u); /* 0x360876D8: call 0x3615fd86 */ /* not lifted */
   8353     RECOMP_FLAGS_IN();
   8354     ecx = MEM32(edi + 0x16C); /* 0x360876DD: mov ecx, dword ptr [edi + 0x16c] */
   8355     edx = MEM32(ecx); /* 0x360876E3: mov edx, dword ptr [ecx] */
   8356     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8357     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8358     esp = esp + 0x14u; /* 0x360876E5: add esp, 0x14 */
   8359     _flag_k = FK_ADD;
   8360     PUSH32(esp, esi); /* 0x360876E8: push esi */
   8361     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x360876E9: call dword ptr [edx + 0x40] */
   8362     RECOMP_FLAGS_IN();
   8363 L_360876EC:
   8364     edi = POP32_VAL(esp); /* 0x360876EC: pop edi */
   8365     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8366     eax = 0; /* 0x360876ED: xor eax, eax */
   8367     _cf = 0;
   8368     _flag_k = FK_TEST;
   8369     esi = POP32_VAL(esp); /* 0x360876EF: pop esi */
   8370     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360876F0: ret  */
   8371     RECOMP_REGS_OUT();
   8372 }
   8373 
   8374 void sub_36087700(void) {
   8375     int _fpu_cmp = 0;
   8376     uint32_t _cf = 0;
   8377     int _df = 1;
   8378     uint32_t _flag_k = FK_NONE;
   8379     uint32_t _flag_a = 0, _flag_b = 0;
   8380     uint32_t _itail_tgt = 0;
   8381     RECOMP_REGS_LOCALS
   8382     RECOMP_ENTER(0x36087700u);
   8383 
   8384 L_36087700:
   8385     PUSH32(esp, ebp); /* 0x36087700: push ebp */
   8386     ebp = esp; /* 0x36087701: mov ebp, esp */
   8387     PUSH32(esp, esi); /* 0x36087703: push esi */
   8388     esi = ecx; /* 0x36087704: mov esi, ecx */
   8389     PUSH32(esp, edi); /* 0x36087706: push edi */
   8390     edi = MEM32(ebp + 0x8); /* 0x36087707: mov edi, dword ptr [ebp + 8] */
   8391     eax = esi + 0x20; /* 0x3608770A: lea eax, [esi + 0x20] */
   8392     PUSH32(esp, eax); /* 0x3608770D: push eax */
   8393     PUSH32(esp, edi); /* 0x3608770E: push edi */
   8394     RECOMP_ICALL(0x3615B870u); /* 0x3608770F: call 0x3615b870 */ /* not lifted */
   8395     RECOMP_FLAGS_IN();
   8396     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8398     esp = esp + 8; /* 0x36087714: add esp, 8 */
   8399     _flag_k = FK_ADD;
   8400     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u);
   8401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8402     esi = esi + 0x28u; /* 0x36087717: add esi, 0x28 */
   8403     _flag_k = FK_ADD;
   8404     PUSH32(esp, esi); /* 0x3608771A: push esi */
   8405     ecx = edi; /* 0x3608771B: mov ecx, edi */
   8406     RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3608771D: call dword ptr [0x3616fae0] */
   8407     RECOMP_FLAGS_IN();
   8408     ecx = edi; /* 0x36087723: mov ecx, edi */
   8409     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36087725: call dword ptr [0x3616fadc] */
   8410     RECOMP_FLAGS_IN();
   8411     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   8412     _cf = (eax) != 0;
   8413     eax = (uint32_t)(-(int32_t)eax); /* 0x3608772B: neg eax */
   8414     _flag_k = FK_CMP;
   8415     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3608772D: sbb eax, eax */
   8416       eax = _sc ? 0xFFFFFFFFu : 0;
   8417       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   8418       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   8419     edi = POP32_VAL(esp); /* 0x3608772F: pop edi */
   8420     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8421     eax = eax + 1; /* 0x36087730: inc eax */
   8422     _flag_k = FK_INC;
   8423     esi = POP32_VAL(esp); /* 0x36087731: pop esi */
   8424     ebp = POP32_VAL(esp); /* 0x36087732: pop ebp */
   8425     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36087733: ret 4 */
   8426     RECOMP_REGS_OUT();
   8427 }
   8428 
   8429 void sub_36087740(void) {
   8430     int _fpu_cmp = 0;
   8431     uint32_t _cf = 0;
   8432     int _df = 1;
   8433     uint32_t _flag_k = FK_NONE;
   8434     uint32_t _flag_a = 0, _flag_b = 0;
   8435     uint32_t _itail_tgt = 0;
   8436     RECOMP_REGS_LOCALS
   8437     RECOMP_ENTER(0x36087740u);
   8438 
   8439 L_36087740:
   8440     PUSH32(esp, ebp); /* 0x36087740: push ebp */
   8441     ebp = esp; /* 0x36087741: mov ebp, esp */
   8442     PUSH32(esp, esi); /* 0x36087743: push esi */
   8443     esi = ecx; /* 0x36087744: mov esi, ecx */
   8444     PUSH32(esp, edi); /* 0x36087746: push edi */
   8445     edi = MEM32(ebp + 0x8); /* 0x36087747: mov edi, dword ptr [ebp + 8] */
   8446     eax = esi + 0x20; /* 0x3608774A: lea eax, [esi + 0x20] */
   8447     PUSH32(esp, eax); /* 0x3608774D: push eax */
   8448     PUSH32(esp, edi); /* 0x3608774E: push edi */
   8449     RECOMP_ICALL(0x3615B840u); /* 0x3608774F: call 0x3615b840 */ /* not lifted */
   8450     RECOMP_FLAGS_IN();
   8451     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8452     ecx = 0; /* 0x36087754: xor ecx, ecx */
   8453     _cf = 0;
   8454     _flag_k = FK_TEST;
   8455     SET_LO8(ecx, MEM8(esi + 0x28)); /* 0x36087756: mov cl, byte ptr [esi + 0x28] */
   8456     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8457     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8458     esp = esp + 8; /* 0x36087759: add esp, 8 */
   8459     _flag_k = FK_ADD;
   8460     PUSH32(esp, ecx); /* 0x3608775C: push ecx */
   8461     ecx = edi; /* 0x3608775D: mov ecx, edi */
   8462     RECOMP_ICALL(MEM32(0x3616FAE8)); /* 0x3608775F: call dword ptr [0x3616fae8] */
   8463     RECOMP_FLAGS_IN();
   8464     edi = POP32_VAL(esp); /* 0x36087765: pop edi */
   8465     esi = POP32_VAL(esp); /* 0x36087766: pop esi */
   8466     ebp = POP32_VAL(esp); /* 0x36087767: pop ebp */
   8467     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36087768: ret 4 */
   8468     RECOMP_REGS_OUT();
   8469 }
   8470 
   8471 void sub_36087770(void) {
   8472     int _fpu_cmp = 0;
   8473     uint32_t _cf = 0;
   8474     int _df = 1;
   8475     uint32_t _flag_k = FK_NONE;
   8476     uint32_t _flag_a = 0, _flag_b = 0;
   8477     uint32_t _itail_tgt = 0;
   8478     RECOMP_REGS_LOCALS
   8479     RECOMP_ENTER(0x36087770u);
   8480 
   8481 L_36087770:
   8482     eax = ecx + 0x4; /* 0x36087770: lea eax, [ecx + 4] */
   8483     /* cmp MEM32(eax), 0xC350u */ /* 0x36087773: cmp dword ptr [eax], 0xc350 */
   8484     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xC350u);
   8485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8486     _flag_k = FK_CMP;
   8487     if (CMP_EQ(_flag_a, _flag_b)) goto L_36087781; /* 0x36087779: je 0x36087781 */
   8488 L_3608777B:
   8489     eax = 3; /* 0x3608777B: mov eax, 3 */
   8490     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087780: ret  */
   8491 L_36087781:
   8492     PUSH32(esp, eax); /* 0x36087781: push eax */
   8493     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36087782: call dword ptr [0x3616ff70] */
   8494     RECOMP_FLAGS_IN();
   8495     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8496     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8497     esp = esp + 4; /* 0x36087788: add esp, 4 */
   8498     _flag_k = FK_ADD;
   8499     /* test eax, eax */ /* 0x3608778B: test eax, eax */
   8500     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8501     _cf = 0;
   8502     _flag_k = FK_TEST;
   8503     if (TEST_Z(_flag_a, _flag_b)) goto L_3608779D; /* 0x3608778D: je 0x3608779d */
   8504 L_3608778F:
   8505     /* cmp MEM8(eax + 0x94), 1 */ /* 0x3608778F: cmp byte ptr [eax + 0x94], 1 */
   8506     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   8507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8508     _flag_k = FK_NARROW(FK_CMP, 24);
   8509     eax = 2; /* 0x36087796: mov eax, 2 */
   8510     if (CMP_EQ(_flag_a, _flag_b)) goto L_360877A2; /* 0x3608779B: je 0x360877a2 */
   8511 L_3608779D:
   8512     eax = 1; /* 0x3608779D: mov eax, 1 */
   8513 L_360877A2:
   8514     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360877A2: ret  */
   8515     RECOMP_REGS_OUT();
   8516 }
   8517 
   8518 void sub_360877B0(void) {
   8519     int _fpu_cmp = 0;
   8520     uint32_t _cf = 0;
   8521     int _df = 1;
   8522     uint32_t _flag_k = FK_NONE;
   8523     uint32_t _flag_a = 0, _flag_b = 0;
   8524     uint32_t _itail_tgt = 0;
   8525     RECOMP_REGS_LOCALS
   8526     RECOMP_ENTER(0x360877B0u);
   8527 
   8528 L_360877B0:
   8529     goto L_360877C0; /* 0x360877B0: jmp 0x360877c0 */
   8530 L_360877C0:
   8531     MEM32(0x36306B00) = 0; /* 0x360877C0: mov dword ptr [0x36306b00], 0 */
   8532     MEM32(0x36306B04) = 0xDEADBEEFu; /* 0x360877CA: mov dword ptr [0x36306b04], 0xdeadbeef */
   8533     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360877D4: ret  */
   8534     RECOMP_REGS_OUT();
   8535 }
   8536 
   8537 void sub_360877C0(void) {
   8538     int _fpu_cmp = 0;
   8539     uint32_t _cf = 0;
   8540     int _df = 1;
   8541     uint32_t _flag_k = FK_NONE;
   8542     uint32_t _flag_a = 0, _flag_b = 0;
   8543     uint32_t _itail_tgt = 0;
   8544     RECOMP_REGS_LOCALS
   8545     RECOMP_ENTER(0x360877C0u);
   8546 
   8547 L_360877C0:
   8548     MEM32(0x36306B00) = 0; /* 0x360877C0: mov dword ptr [0x36306b00], 0 */
   8549     MEM32(0x36306B04) = 0xDEADBEEFu; /* 0x360877CA: mov dword ptr [0x36306b04], 0xdeadbeef */
   8550     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360877D4: ret  */
   8551     RECOMP_REGS_OUT();
   8552 }
   8553 
   8554 void sub_360877E0(void) {
   8555     int _fpu_cmp = 0;
   8556     uint32_t _cf = 0;
   8557     int _df = 1;
   8558     uint32_t _flag_k = FK_NONE;
   8559     uint32_t _flag_a = 0, _flag_b = 0;
   8560     uint32_t _itail_tgt = 0;
   8561     RECOMP_REGS_LOCALS
   8562     RECOMP_ENTER(0x360877E0u);
   8563 
   8564 L_360877E0:
   8565     goto L_360877F0; /* 0x360877E0: jmp 0x360877f0 */
   8566 L_360877F0:
   8567     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8568     eax = 0; /* 0x360877F0: xor eax, eax */
   8569     _cf = 0;
   8570     _flag_k = FK_TEST;
   8571     MEM32(0x36306AF8) = eax; /* 0x360877F2: mov dword ptr [0x36306af8], eax */
   8572     MEM32(0x36306AFC) = eax; /* 0x360877F7: mov dword ptr [0x36306afc], eax */
   8573     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360877FC: ret  */
   8574     RECOMP_REGS_OUT();
   8575 }
   8576 
   8577 void sub_360877F0(void) {
   8578     int _fpu_cmp = 0;
   8579     uint32_t _cf = 0;
   8580     int _df = 1;
   8581     uint32_t _flag_k = FK_NONE;
   8582     uint32_t _flag_a = 0, _flag_b = 0;
   8583     uint32_t _itail_tgt = 0;
   8584     RECOMP_REGS_LOCALS
   8585     RECOMP_ENTER(0x360877F0u);
   8586 
   8587 L_360877F0:
   8588     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8589     eax = 0; /* 0x360877F0: xor eax, eax */
   8590     _cf = 0;
   8591     _flag_k = FK_TEST;
   8592     MEM32(0x36306AF8) = eax; /* 0x360877F2: mov dword ptr [0x36306af8], eax */
   8593     MEM32(0x36306AFC) = eax; /* 0x360877F7: mov dword ptr [0x36306afc], eax */
   8594     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360877FC: ret  */
   8595     RECOMP_REGS_OUT();
   8596 }
   8597 
   8598 void sub_36087800(void) {
   8599     int _fpu_cmp = 0;
   8600     uint32_t _cf = 0;
   8601     int _df = 1;
   8602     uint32_t _flag_k = FK_NONE;
   8603     uint32_t _flag_a = 0, _flag_b = 0;
   8604     uint32_t _itail_tgt = 0;
   8605     RECOMP_REGS_LOCALS
   8606     RECOMP_ENTER(0x36087800u);
   8607 
   8608 L_36087800:
   8609     PUSH32(esp, esi); /* 0x36087800: push esi */
   8610     esi = ecx; /* 0x36087801: mov esi, ecx */
   8611     RECOMP_ICALL(MEM32(0x3616FFE0)); /* 0x36087803: call dword ptr [0x3616ffe0] */
   8612     RECOMP_FLAGS_IN();
   8613     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8614     eax = 0; /* 0x36087809: xor eax, eax */
   8615     _cf = 0;
   8616     _flag_k = FK_TEST;
   8617     MEM32(esi + 0x28) = eax; /* 0x3608780B: mov dword ptr [esi + 0x28], eax */
   8618     MEM32(esi + 0x2C) = eax; /* 0x3608780E: mov dword ptr [esi + 0x2c], eax */
   8619     MEM32(esi + 0x30) = eax; /* 0x36087811: mov dword ptr [esi + 0x30], eax */
   8620     MEM32(esi) = 0x36171C58u; /* 0x36087814: mov dword ptr [esi], 0x36171c58 */
   8621     eax = esi; /* 0x3608781A: mov eax, esi */
   8622     esi = POP32_VAL(esp); /* 0x3608781C: pop esi */
   8623     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608781D: ret  */
   8624     RECOMP_REGS_OUT();
   8625 }
   8626 
   8627 void sub_36087820(void) {
   8628     int _fpu_cmp = 0;
   8629     uint32_t _cf = 0;
   8630     int _df = 1;
   8631     uint32_t _flag_k = FK_NONE;
   8632     uint32_t _flag_a = 0, _flag_b = 0;
   8633     uint32_t _itail_tgt = 0;
   8634     RECOMP_REGS_LOCALS
   8635     RECOMP_ENTER(0x36087820u);
   8636 
   8637 L_36087820:
   8638     PUSH32(esp, ebp); /* 0x36087820: push ebp */
   8639     ebp = esp; /* 0x36087821: mov ebp, esp */
   8640     PUSH32(esp, esi); /* 0x36087823: push esi */
   8641     esi = ecx; /* 0x36087824: mov esi, ecx */
   8642     RECOMP_ICALL(0x36087940u); /* 0x36087826: call 0x36087940 */ /* not lifted */
   8643     RECOMP_FLAGS_IN();
   8644     /* test MEM8(ebp + 0x8), 1 */ /* 0x3608782B: test byte ptr [ebp + 8], 1 */
   8645     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   8646     _cf = 0;
   8647     _flag_k = FK_NARROW(FK_TEST, 24);
   8648     if (TEST_Z(_flag_a, _flag_b)) goto L_3608783A; /* 0x3608782F: je 0x3608783a */
   8649 L_36087831:
   8650     PUSH32(esp, esi); /* 0x36087831: push esi */
   8651     RECOMP_ICALL(0x3615FCC4u); /* 0x36087832: call 0x3615fcc4 */ /* not lifted */
   8652     RECOMP_FLAGS_IN();
   8653     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8654     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8655     esp = esp + 4; /* 0x36087837: add esp, 4 */
   8656     _flag_k = FK_ADD;
   8657 L_3608783A:
   8658     eax = esi; /* 0x3608783A: mov eax, esi */
   8659     esi = POP32_VAL(esp); /* 0x3608783C: pop esi */
   8660     ebp = POP32_VAL(esp); /* 0x3608783D: pop ebp */
   8661     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608783E: ret 4 */
   8662     RECOMP_REGS_OUT();
   8663 }
   8664 
   8665 void sub_36087850(void) {
   8666     int _fpu_cmp = 0;
   8667     uint32_t _cf = 0;
   8668     int _df = 1;
   8669     uint32_t _flag_k = FK_NONE;
   8670     uint32_t _flag_a = 0, _flag_b = 0;
   8671     uint32_t _itail_tgt = 0;
   8672     RECOMP_REGS_LOCALS
   8673     RECOMP_ENTER(0x36087850u);
   8674 
   8675 L_36087850:
   8676     PUSH32(esp, ebp); /* 0x36087850: push ebp */
   8677     ebp = esp; /* 0x36087851: mov ebp, esp */
   8678     PUSH32(esp, 0xFFFFFFFFu); /* 0x36087853: push -1 */
   8679     PUSH32(esp, 0x36165C32u); /* 0x36087855: push 0x36165c32 */
   8680     eax = MEM32(FS_BASE + (0)); /* 0x3608785A: mov eax, dword ptr fs:[0] */
   8681     PUSH32(esp, eax); /* 0x36087860: push eax */
   8682     MEM32(FS_BASE + (0)) = esp; /* 0x36087861: mov dword ptr fs:[0], esp */
   8683     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8685     esp = esp - 0x14u; /* 0x36087868: sub esp, 0x14 */
   8686     _flag_k = FK_CMP;
   8687     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3608786B: mov al, byte ptr [ebp + 0xb] */
   8688     PUSH32(esp, ebx); /* 0x3608786E: push ebx */
   8689     PUSH32(esp, esi); /* 0x3608786F: push esi */
   8690     esi = ecx; /* 0x36087870: mov esi, ecx */
   8691     PUSH32(esp, edi); /* 0x36087872: push edi */
   8692     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   8693     ecx = ecx | 0xFFFFFFFFu; /* 0x36087873: or ecx, 0xffffffff */
   8694     _cf = 0;
   8695     _flag_k = FK_TEST;
   8696     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36087876: mov byte ptr [ebp - 0x20], al */
   8697     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8698     eax = 0; /* 0x36087879: xor eax, eax */
   8699     _cf = 0;
   8700     _flag_k = FK_TEST;
   8701     edi = 0x361B40D8u; /* 0x3608787B: mov edi, 0x361b40d8 */
   8702     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x36087880: repne scasb al, byte ptr es:[edi] */
   8703     ecx = ~ecx; /* 0x36087882: not ecx */
   8704     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8705     ecx = ecx - 1; /* 0x36087884: dec ecx */
   8706     _flag_k = FK_DEC;
   8707     ebx = ecx; /* 0x36087885: mov ebx, ecx */
   8708     PUSH32(esp, 1); /* 0x36087887: push 1 */
   8709     PUSH32(esp, ebx); /* 0x36087889: push ebx */
   8710     ecx = ebp + (-0x20); /* 0x3608788A: lea ecx, [ebp - 0x20] */
   8711     MEM32(ebp + (-0x10)) = esi; /* 0x3608788D: mov dword ptr [ebp - 0x10], esi */
   8712     MEM32(ebp + (-0x1C)) = eax; /* 0x36087890: mov dword ptr [ebp - 0x1c], eax */
   8713     MEM32(ebp + (-0x18)) = eax; /* 0x36087893: mov dword ptr [ebp - 0x18], eax */
   8714     MEM32(ebp + (-0x14)) = eax; /* 0x36087896: mov dword ptr [ebp - 0x14], eax */
   8715     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36087899: call dword ptr [0x3616f00c] */
   8716     RECOMP_FLAGS_IN();
   8717     /* test LO8(eax), LO8(eax) */ /* 0x3608789F: test al, al */
   8718     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8719     _cf = 0;
   8720     _flag_k = FK_NARROW(FK_TEST, 24);
   8721     if (TEST_Z(_flag_a, _flag_b)) goto L_360878C8; /* 0x360878A1: je 0x360878c8 */
   8722 L_360878A3:
   8723     edi = MEM32(ebp + (-0x1C)); /* 0x360878A3: mov edi, dword ptr [ebp - 0x1c] */
   8724     ecx = ebx; /* 0x360878A6: mov ecx, ebx */
   8725     edx = ecx; /* 0x360878A8: mov edx, ecx */
   8726     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360878AA: shr ecx, 2 */
   8727     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   8728     ecx = ecx >> 2u; /* 0x360878AA: shr ecx, 2 */
   8729     esi = 0x361B40D8u; /* 0x360878AD: mov esi, 0x361b40d8 */
   8730     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360878B2: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   8731     ecx = edx; /* 0x360878B4: mov ecx, edx */
   8732     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   8733     ecx = ecx & 3; /* 0x360878B6: and ecx, 3 */
   8734     _cf = 0;
   8735     _flag_k = FK_TEST;
   8736     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360878B9: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   8737     eax = MEM32(ebp + (-0x1C)); /* 0x360878BB: mov eax, dword ptr [ebp - 0x1c] */
   8738     esi = MEM32(ebp + (-0x10)); /* 0x360878BE: mov esi, dword ptr [ebp - 0x10] */
   8739     MEM32(ebp + (-0x18)) = ebx; /* 0x360878C1: mov dword ptr [ebp - 0x18], ebx */
   8740     MEM8(ebx + eax) = (uint8_t)(0); /* 0x360878C4: mov byte ptr [ebx + eax], 0 */
   8741 L_360878C8:
   8742     edx = MEM32(ebp + 0x8); /* 0x360878C8: mov edx, dword ptr [ebp + 8] */
   8743     ecx = ebp + (-0x20); /* 0x360878CB: lea ecx, [ebp - 0x20] */
   8744     PUSH32(esp, ecx); /* 0x360878CE: push ecx */
   8745     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8746     edi = 0; /* 0x360878CF: xor edi, edi */
   8747     _cf = 0;
   8748     _flag_k = FK_TEST;
   8749     PUSH32(esp, edx); /* 0x360878D1: push edx */
   8750     ecx = esi; /* 0x360878D2: mov ecx, esi */
   8751     MEM32(ebp + (-0x4)) = edi; /* 0x360878D4: mov dword ptr [ebp - 4], edi */
   8752     RECOMP_ICALL(MEM32(0x3616FD28)); /* 0x360878D7: call dword ptr [0x3616fd28] */
   8753     RECOMP_FLAGS_IN();
   8754     eax = MEM32(ebp + (-0x1C)); /* 0x360878DD: mov eax, dword ptr [ebp - 0x1c] */
   8755     /* cmp eax, edi */ /* 0x360878E0: cmp eax, edi */
   8756     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   8757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8758     _flag_k = FK_CMP;
   8759     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x360878E2: mov byte ptr [ebp - 4], 2 */
   8760     if (CMP_EQ(_flag_a, _flag_b)) goto L_36087904; /* 0x360878E6: je 0x36087904 */
   8761 L_360878E8:
   8762     ecx = eax + (-0x1); /* 0x360878E8: lea ecx, [eax - 1] */
   8763     SET_LO8(eax, MEM8(ecx)); /* 0x360878EB: mov al, byte ptr [ecx] */
   8764     /* test LO8(eax), LO8(eax) */ /* 0x360878ED: test al, al */
   8765     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8766     _cf = 0;
   8767     _flag_k = FK_NARROW(FK_TEST, 24);
   8768     if (TEST_Z(_flag_a, _flag_b)) goto L_360878FB; /* 0x360878EF: je 0x360878fb */
   8769 L_360878F1:
   8770     /* cmp LO8(eax), 0xFFu */ /* 0x360878F1: cmp al, 0xff */
   8771     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   8772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8773     _flag_k = FK_NARROW(FK_CMP, 24);
   8774     if (CMP_EQ(_flag_a, _flag_b)) goto L_360878FB; /* 0x360878F3: je 0x360878fb */
   8775 L_360878F5:
   8776     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8777     SET_LO8(eax, LO8(eax) - 1); /* 0x360878F5: dec al */
   8778     _flag_k = FK_NARROW(FK_DEC, 24);
   8779     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360878F7: mov byte ptr [ecx], al */
   8780     goto L_36087904; /* 0x360878F9: jmp 0x36087904 */
   8781 L_360878FB:
   8782     PUSH32(esp, ecx); /* 0x360878FB: push ecx */
   8783     RECOMP_ICALL(0x3615FCC4u); /* 0x360878FC: call 0x3615fcc4 */ /* not lifted */
   8784     RECOMP_FLAGS_IN();
   8785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8786     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8787     esp = esp + 4; /* 0x36087901: add esp, 4 */
   8788     _flag_k = FK_ADD;
   8789 L_36087904:
   8790     ecx = MEM32(ebp + 0x10); /* 0x36087904: mov ecx, dword ptr [ebp + 0x10] */
   8791     eax = MEM32(ebp + 0xC); /* 0x36087907: mov eax, dword ptr [ebp + 0xc] */
   8792     MEM32(esi + 0x2C) = ecx; /* 0x3608790A: mov dword ptr [esi + 0x2c], ecx */
   8793     ecx = esi; /* 0x3608790D: mov ecx, esi */
   8794     MEM32(ebp + (-0x1C)) = edi; /* 0x3608790F: mov dword ptr [ebp - 0x1c], edi */
   8795     MEM32(ebp + (-0x18)) = edi; /* 0x36087912: mov dword ptr [ebp - 0x18], edi */
   8796     MEM32(ebp + (-0x14)) = edi; /* 0x36087915: mov dword ptr [ebp - 0x14], edi */
   8797     MEM32(esi + 0x28) = eax; /* 0x36087918: mov dword ptr [esi + 0x28], eax */
   8798     MEM32(esi) = 0x36171C58u; /* 0x3608791B: mov dword ptr [esi], 0x36171c58 */
   8799     RECOMP_ICALL(0x360879A0u); /* 0x36087921: call 0x360879a0 */ /* not lifted */
   8800     RECOMP_FLAGS_IN();
   8801     ecx = MEM32(ebp + (-0xC)); /* 0x36087926: mov ecx, dword ptr [ebp - 0xc] */
   8802     MEM32(esi + 0x30) = eax; /* 0x36087929: mov dword ptr [esi + 0x30], eax */
   8803     edi = POP32_VAL(esp); /* 0x3608792C: pop edi */
   8804     eax = esi; /* 0x3608792D: mov eax, esi */
   8805     esi = POP32_VAL(esp); /* 0x3608792F: pop esi */
   8806     ebx = POP32_VAL(esp); /* 0x36087930: pop ebx */
   8807     MEM32(FS_BASE + (0)) = ecx; /* 0x36087931: mov dword ptr fs:[0], ecx */
   8808     esp = ebp; /* 0x36087938: mov esp, ebp */
   8809     ebp = POP32_VAL(esp); /* 0x3608793A: pop ebp */
   8810     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608793B: ret 0xc */
   8811     RECOMP_REGS_OUT();
   8812 }
   8813 
   8814 void sub_36087940(void) {
   8815     int _fpu_cmp = 0;
   8816     uint32_t _cf = 0;
   8817     int _df = 1;
   8818     uint32_t _flag_k = FK_NONE;
   8819     uint32_t _flag_a = 0, _flag_b = 0;
   8820     uint32_t _itail_tgt = 0;
   8821     RECOMP_REGS_LOCALS
   8822     RECOMP_ENTER(0x36087940u);
   8823 
   8824 L_36087940:
   8825     PUSH32(esp, ebp); /* 0x36087940: push ebp */
   8826     ebp = esp; /* 0x36087941: mov ebp, esp */
   8827     PUSH32(esp, 0xFFFFFFFFu); /* 0x36087943: push -1 */
   8828     PUSH32(esp, 0x36165C49u); /* 0x36087945: push 0x36165c49 */
   8829     eax = MEM32(FS_BASE + (0)); /* 0x3608794A: mov eax, dword ptr fs:[0] */
   8830     PUSH32(esp, eax); /* 0x36087950: push eax */
   8831     MEM32(FS_BASE + (0)) = esp; /* 0x36087951: mov dword ptr fs:[0], esp */
   8832     PUSH32(esp, ecx); /* 0x36087958: push ecx */
   8833     PUSH32(esp, esi); /* 0x36087959: push esi */
   8834     esi = ecx; /* 0x3608795A: mov esi, ecx */
   8835     MEM32(ebp + (-0x10)) = esi; /* 0x3608795C: mov dword ptr [ebp - 0x10], esi */
   8836     MEM32(esi) = 0x36171C58u; /* 0x3608795F: mov dword ptr [esi], 0x36171c58 */
   8837     ecx = MEM32(esi + 0x28); /* 0x36087965: mov ecx, dword ptr [esi + 0x28] */
   8838     /* test ecx, ecx */ /* 0x36087968: test ecx, ecx */
   8839     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8840     _cf = 0;
   8841     _flag_k = FK_TEST;
   8842     MEM32(ebp + (-0x4)) = 0; /* 0x3608796A: mov dword ptr [ebp - 4], 0 */
   8843     if (TEST_Z(_flag_a, _flag_b)) goto L_36087978; /* 0x36087971: je 0x36087978 */
   8844 L_36087973:
   8845     RECOMP_ICALL(0x3604BEB0u); /* 0x36087973: call 0x3604beb0 */ /* not lifted */
   8846     RECOMP_FLAGS_IN();
   8847 L_36087978:
   8848     ecx = esi; /* 0x36087978: mov ecx, esi */
   8849     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608797A: mov dword ptr [ebp - 4], 0xffffffff */
   8850     RECOMP_ICALL(MEM32(0x3616FFE4)); /* 0x36087981: call dword ptr [0x3616ffe4] */
   8851     RECOMP_FLAGS_IN();
   8852     ecx = MEM32(ebp + (-0xC)); /* 0x36087987: mov ecx, dword ptr [ebp - 0xc] */
   8853     esi = POP32_VAL(esp); /* 0x3608798A: pop esi */
   8854     MEM32(FS_BASE + (0)) = ecx; /* 0x3608798B: mov dword ptr fs:[0], ecx */
   8855     esp = ebp; /* 0x36087992: mov esp, ebp */
   8856     ebp = POP32_VAL(esp); /* 0x36087994: pop ebp */
   8857     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087995: ret  */
   8858     RECOMP_REGS_OUT();
   8859 }
   8860 
   8861 void sub_360879A0(void) {
   8862     int _fpu_cmp = 0;
   8863     uint32_t _cf = 0;
   8864     int _df = 1;
   8865     uint32_t _flag_k = FK_NONE;
   8866     uint32_t _flag_a = 0, _flag_b = 0;
   8867     uint32_t _itail_tgt = 0;
   8868     RECOMP_REGS_LOCALS
   8869     RECOMP_ENTER(0x360879A0u);
   8870 
   8871 L_360879A0:
   8872     PUSH32(esp, 0); /* 0x360879A0: push 0 */
   8873     PUSH32(esp, 0x361B2CD8u); /* 0x360879A2: push 0x361b2cd8 */
   8874     PUSH32(esp, 0x361B2CC0u); /* 0x360879A7: push 0x361b2cc0 */
   8875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   8876     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8877     ecx = ecx + 4; /* 0x360879AC: add ecx, 4 */
   8878     _flag_k = FK_ADD;
   8879     PUSH32(esp, 0); /* 0x360879AF: push 0 */
   8880     PUSH32(esp, ecx); /* 0x360879B1: push ecx */
   8881     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360879B2: call dword ptr [0x3616ff70] */
   8882     RECOMP_FLAGS_IN();
   8883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8885     esp = esp + 4; /* 0x360879B8: add esp, 4 */
   8886     _flag_k = FK_ADD;
   8887     PUSH32(esp, eax); /* 0x360879BB: push eax */
   8888     RECOMP_ICALL(0x3615FD86u); /* 0x360879BC: call 0x3615fd86 */ /* not lifted */
   8889     RECOMP_FLAGS_IN();
   8890     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8891     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8892     esp = esp + 0x14u; /* 0x360879C1: add esp, 0x14 */
   8893     _flag_k = FK_ADD;
   8894     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360879C4: ret  */
   8895     RECOMP_REGS_OUT();
   8896 }
   8897 
   8898 void sub_360879D0(void) {
   8899     int _fpu_cmp = 0;
   8900     uint32_t _cf = 0;
   8901     int _df = 1;
   8902     uint32_t _flag_k = FK_NONE;
   8903     uint32_t _flag_a = 0, _flag_b = 0;
   8904     uint32_t _itail_tgt = 0;
   8905     RECOMP_REGS_LOCALS
   8906     RECOMP_ENTER(0x360879D0u);
   8907 
   8908 L_360879D0:
   8909     PUSH32(esp, esi); /* 0x360879D0: push esi */
   8910     esi = ecx; /* 0x360879D1: mov esi, ecx */
   8911     RECOMP_ICALL(0x360879A0u); /* 0x360879D3: call 0x360879a0 */ /* not lifted */
   8912     RECOMP_FLAGS_IN();
   8913     /* test eax, eax */ /* 0x360879D8: test eax, eax */
   8914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8915     _cf = 0;
   8916     _flag_k = FK_TEST;
   8917     MEM32(esi + 0x30) = eax; /* 0x360879DA: mov dword ptr [esi + 0x30], eax */
   8918     if (TEST_NZ(_flag_a, _flag_b)) goto L_360879E6; /* 0x360879DD: jne 0x360879e6 */
   8919 L_360879DF:
   8920     eax = 2; /* 0x360879DF: mov eax, 2 */
   8921     esi = POP32_VAL(esp); /* 0x360879E4: pop esi */
   8922     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360879E5: ret  */
   8923 L_360879E6:
   8924     eax = MEM32(esi + 0x28); /* 0x360879E6: mov eax, dword ptr [esi + 0x28] */
   8925     ecx = MEM32(eax + 0xC); /* 0x360879E9: mov ecx, dword ptr [eax + 0xc] */
   8926     /* cmp ecx, MEM32(esi + 0x8) */ /* 0x360879EC: cmp ecx, dword ptr [esi + 8] */
   8927     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8929     _flag_k = FK_CMP;
   8930     if (CMP_EQ(_flag_a, _flag_b)) goto L_360879F8; /* 0x360879EF: je 0x360879f8 */
   8931 L_360879F1:
   8932     eax = 2; /* 0x360879F1: mov eax, 2 */
   8933     esi = POP32_VAL(esp); /* 0x360879F6: pop esi */
   8934     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360879F7: ret  */
   8935 L_360879F8:
   8936     edx = MEM32(esi + 0x2C); /* 0x360879F8: mov edx, dword ptr [esi + 0x2c] */
   8937     PUSH32(esp, eax); /* 0x360879FB: push eax */
   8938     PUSH32(esp, edx); /* 0x360879FC: push edx */
   8939     ecx = esi; /* 0x360879FD: mov ecx, esi */
   8940     RECOMP_ICALL(0x36087BB0u); /* 0x360879FF: call 0x36087bb0 */ /* not lifted */
   8941     RECOMP_FLAGS_IN();
   8942     /* cmp eax, 2 */ /* 0x36087A04: cmp eax, 2 */
   8943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   8944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8945     _flag_k = FK_CMP;
   8946     if (CMP_NE(_flag_a, _flag_b)) goto L_36087A24; /* 0x36087A07: jne 0x36087a24 */
   8947 L_36087A09:
   8948     eax = MEM32(esi + 0x28); /* 0x36087A09: mov eax, dword ptr [esi + 0x28] */
   8949     ecx = MEM32(esi + 0x2C); /* 0x36087A0C: mov ecx, dword ptr [esi + 0x2c] */
   8950     PUSH32(esp, eax); /* 0x36087A0F: push eax */
   8951     PUSH32(esp, ecx); /* 0x36087A10: push ecx */
   8952     ecx = MEM32(esi + 0x30); /* 0x36087A11: mov ecx, dword ptr [esi + 0x30] */
   8953     RECOMP_ICALL(0x36071DD0u); /* 0x36087A14: call 0x36071dd0 */ /* not lifted */
   8954     RECOMP_FLAGS_IN();
   8955     ecx = eax; /* 0x36087A19: mov ecx, eax */
   8956     RECOMP_ICALL(0x3604CC50u); /* 0x36087A1B: call 0x3604cc50 */ /* not lifted */
   8957     RECOMP_FLAGS_IN();
   8958     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8959     eax = 0; /* 0x36087A20: xor eax, eax */
   8960     _cf = 0;
   8961     _flag_k = FK_TEST;
   8962     esi = POP32_VAL(esp); /* 0x36087A22: pop esi */
   8963     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087A23: ret  */
   8964 L_36087A24:
   8965     eax = 3; /* 0x36087A24: mov eax, 3 */
   8966     esi = POP32_VAL(esp); /* 0x36087A29: pop esi */
   8967     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087A2A: ret  */
   8968     RECOMP_REGS_OUT();
   8969 }
   8970 
   8971 void sub_36087A30(void) {
   8972     int _fpu_cmp = 0;
   8973     uint32_t _cf = 0;
   8974     int _df = 1;
   8975     uint32_t _flag_k = FK_NONE;
   8976     uint32_t _flag_a = 0, _flag_b = 0;
   8977     uint32_t _itail_tgt = 0;
   8978     RECOMP_REGS_LOCALS
   8979     RECOMP_ENTER(0x36087A30u);
   8980 
   8981 L_36087A30:
   8982     PUSH32(esp, ebp); /* 0x36087A30: push ebp */
   8983     ebp = esp; /* 0x36087A31: mov ebp, esp */
   8984     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8986     esp = esp - 8; /* 0x36087A33: sub esp, 8 */
   8987     _flag_k = FK_CMP;
   8988     eax = MEM32(0x3616FF74); /* 0x36087A36: mov eax, dword ptr [0x3616ff74] */
   8989     ecx = MEM32(eax); /* 0x36087A3B: mov ecx, dword ptr [eax] */
   8990     edx = MEM32(ecx); /* 0x36087A3D: mov edx, dword ptr [ecx] */
   8991     PUSH32(esp, esi); /* 0x36087A3F: push esi */
   8992     eax = ebp + (-0x8); /* 0x36087A40: lea eax, [ebp - 8] */
   8993     PUSH32(esp, eax); /* 0x36087A43: push eax */
   8994     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x36087A44: call dword ptr [edx + 0x24] */
   8995     RECOMP_FLAGS_IN();
   8996     ecx = MEM32(ebp + 0x8); /* 0x36087A47: mov ecx, dword ptr [ebp + 8] */
   8997     esi = MEM32(eax + 0x4); /* 0x36087A4A: mov esi, dword ptr [eax + 4] */
   8998     edx = MEM32(ecx + 0x4); /* 0x36087A4D: mov edx, dword ptr [ecx + 4] */
   8999     /* cmp edx, esi */ /* 0x36087A50: cmp edx, esi */
   9000     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   9001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9002     _flag_k = FK_CMP;
   9003     esi = POP32_VAL(esp); /* 0x36087A52: pop esi */
   9004     if (CMP_NE(_flag_a, _flag_b)) goto L_36087A64; /* 0x36087A53: jne 0x36087a64 */
   9005 L_36087A55:
   9006     ecx = MEM32(ecx); /* 0x36087A55: mov ecx, dword ptr [ecx] */
   9007     /* cmp ecx, MEM32(eax) */ /* 0x36087A57: cmp ecx, dword ptr [eax] */
   9008     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   9009     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9010     _flag_k = FK_CMP;
   9011     if (CMP_NE(_flag_a, _flag_b)) goto L_36087A64; /* 0x36087A59: jne 0x36087a64 */
   9012 L_36087A5B:
   9013     eax = 1; /* 0x36087A5B: mov eax, 1 */
   9014     esp = ebp; /* 0x36087A60: mov esp, ebp */
   9015     ebp = POP32_VAL(esp); /* 0x36087A62: pop ebp */
   9016     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087A63: ret  */
   9017 L_36087A64:
   9018     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9019     eax = 0; /* 0x36087A64: xor eax, eax */
   9020     _cf = 0;
   9021     _flag_k = FK_TEST;
   9022     esp = ebp; /* 0x36087A66: mov esp, ebp */
   9023     ebp = POP32_VAL(esp); /* 0x36087A68: pop ebp */
   9024     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087A69: ret  */
   9025     RECOMP_REGS_OUT();
   9026 }
   9027 
   9028 void sub_36087A70(void) {
   9029     int _fpu_cmp = 0;
   9030     uint32_t _cf = 0;
   9031     int _df = 1;
   9032     uint32_t _flag_k = FK_NONE;
   9033     uint32_t _flag_a = 0, _flag_b = 0;
   9034     uint32_t _itail_tgt = 0;
   9035     RECOMP_REGS_LOCALS
   9036     RECOMP_ENTER(0x36087A70u);
   9037 
   9038 L_36087A70:
   9039     PUSH32(esp, esi); /* 0x36087A70: push esi */
   9040     esi = ecx; /* 0x36087A71: mov esi, ecx */
   9041     RECOMP_ICALL(0x360879A0u); /* 0x36087A73: call 0x360879a0 */ /* not lifted */
   9042     RECOMP_FLAGS_IN();
   9043     /* test eax, eax */ /* 0x36087A78: test eax, eax */
   9044     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9045     _cf = 0;
   9046     _flag_k = FK_TEST;
   9047     MEM32(esi + 0x30) = eax; /* 0x36087A7A: mov dword ptr [esi + 0x30], eax */
   9048     if (TEST_Z(_flag_a, _flag_b)) goto L_36087B23; /* 0x36087A7D: je 0x36087b23 */
   9049 L_36087A83:
   9050     ecx = eax; /* 0x36087A83: mov ecx, eax */
   9051     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x36087A85: call dword ptr [0x361700a8] */
   9052     RECOMP_FLAGS_IN();
   9053     eax = MEM32(esi + 0x20); /* 0x36087A8B: mov eax, dword ptr [esi + 0x20] */
   9054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9055     eax = eax - 1; /* 0x36087A8E: dec eax */
   9056     _flag_k = FK_DEC;
   9057     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_36087AB0; /* 0x36087A8F: je 0x36087ab0 */
   9058 L_36087A91:
   9059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9060     eax = eax - 1; /* 0x36087A91: dec eax */
   9061     _flag_k = FK_DEC;
   9062     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36087B23; /* 0x36087A92: jne 0x36087b23 */
   9063 L_36087A98:
   9064     eax = MEM32(esi + 0x2C); /* 0x36087A98: mov eax, dword ptr [esi + 0x2c] */
   9065     ecx = MEM32(esi + 0x30); /* 0x36087A9B: mov ecx, dword ptr [esi + 0x30] */
   9066     PUSH32(esp, eax); /* 0x36087A9E: push eax */
   9067     RECOMP_ICALL(0x36071DD0u); /* 0x36087A9F: call 0x36071dd0 */ /* not lifted */
   9068     RECOMP_FLAGS_IN();
   9069     ecx = eax; /* 0x36087AA4: mov ecx, eax */
   9070     RECOMP_ICALL(0x3604D0C0u); /* 0x36087AA6: call 0x3604d0c0 */ /* not lifted */
   9071     RECOMP_FLAGS_IN();
   9072     eax = MEM32(esi + 0x20); /* 0x36087AAB: mov eax, dword ptr [esi + 0x20] */
   9073     esi = POP32_VAL(esp); /* 0x36087AAE: pop esi */
   9074     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087AAF: ret  */
   9075 L_36087AB0:
   9076     PUSH32(esp, edi); /* 0x36087AB0: push edi */
   9077     edi = MEM32(esi + 0x30); /* 0x36087AB1: mov edi, dword ptr [esi + 0x30] */
   9078     ecx = esi; /* 0x36087AB4: mov ecx, esi */
   9079     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   9080     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9081     edi = edi + 4; /* 0x36087AB6: add edi, 4 */
   9082     _flag_k = FK_ADD;
   9083     RECOMP_ICALL(MEM32(0x3616FD2C)); /* 0x36087AB9: call dword ptr [0x3616fd2c] */
   9084     RECOMP_FLAGS_IN();
   9085     PUSH32(esp, edi); /* 0x36087ABF: push edi */
   9086     RECOMP_ICALL(0x36087A30u); /* 0x36087AC0: call 0x36087a30 */ /* not lifted */
   9087     RECOMP_FLAGS_IN();
   9088     ecx = MEM32(esi + 0x30); /* 0x36087AC5: mov ecx, dword ptr [esi + 0x30] */
   9089     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   9090     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9091     ecx = ecx + 4; /* 0x36087AC8: add ecx, 4 */
   9092     _flag_k = FK_ADD;
   9093     PUSH32(esp, ecx); /* 0x36087ACB: push ecx */
   9094     RECOMP_ICALL(0x36087A30u); /* 0x36087ACC: call 0x36087a30 */ /* not lifted */
   9095     RECOMP_FLAGS_IN();
   9096     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9097     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9098     esp = esp + 8; /* 0x36087AD1: add esp, 8 */
   9099     _flag_k = FK_ADD;
   9100     /* test LO8(eax), LO8(eax) */ /* 0x36087AD4: test al, al */
   9101     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9102     _cf = 0;
   9103     _flag_k = FK_NARROW(FK_TEST, 24);
   9104     edi = POP32_VAL(esp); /* 0x36087AD6: pop edi */
   9105     if (TEST_Z(_flag_a, _flag_b)) goto L_36087AF5; /* 0x36087AD7: je 0x36087af5 */
   9106 L_36087AD9:
   9107     edx = MEM32(esi + 0x28); /* 0x36087AD9: mov edx, dword ptr [esi + 0x28] */
   9108     eax = MEM32(esi + 0x2C); /* 0x36087ADC: mov eax, dword ptr [esi + 0x2c] */
   9109     ecx = MEM32(esi + 0x30); /* 0x36087ADF: mov ecx, dword ptr [esi + 0x30] */
   9110     PUSH32(esp, edx); /* 0x36087AE2: push edx */
   9111     PUSH32(esp, eax); /* 0x36087AE3: push eax */
   9112     RECOMP_ICALL(0x36071DD0u); /* 0x36087AE4: call 0x36071dd0 */ /* not lifted */
   9113     RECOMP_FLAGS_IN();
   9114     ecx = eax; /* 0x36087AE9: mov ecx, eax */
   9115     RECOMP_ICALL(0x3604CCC0u); /* 0x36087AEB: call 0x3604ccc0 */ /* not lifted */
   9116     RECOMP_FLAGS_IN();
   9117     eax = MEM32(esi + 0x20); /* 0x36087AF0: mov eax, dword ptr [esi + 0x20] */
   9118     esi = POP32_VAL(esp); /* 0x36087AF3: pop esi */
   9119     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087AF4: ret  */
   9120 L_36087AF5:
   9121     ecx = MEM32(esi + 0x28); /* 0x36087AF5: mov ecx, dword ptr [esi + 0x28] */
   9122     edx = MEM32(esi + 0x2C); /* 0x36087AF8: mov edx, dword ptr [esi + 0x2c] */
   9123     PUSH32(esp, ecx); /* 0x36087AFB: push ecx */
   9124     ecx = MEM32(esi + 0x30); /* 0x36087AFC: mov ecx, dword ptr [esi + 0x30] */
   9125     PUSH32(esp, edx); /* 0x36087AFF: push edx */
   9126     RECOMP_ICALL(0x36071DD0u); /* 0x36087B00: call 0x36071dd0 */ /* not lifted */
   9127     RECOMP_FLAGS_IN();
   9128     ecx = eax; /* 0x36087B05: mov ecx, eax */
   9129     RECOMP_ICALL(0x3604CC50u); /* 0x36087B07: call 0x3604cc50 */ /* not lifted */
   9130     RECOMP_FLAGS_IN();
   9131     eax = MEM32(esi + 0x28); /* 0x36087B0C: mov eax, dword ptr [esi + 0x28] */
   9132     ecx = MEM32(esi + 0x2C); /* 0x36087B0F: mov ecx, dword ptr [esi + 0x2c] */
   9133     PUSH32(esp, eax); /* 0x36087B12: push eax */
   9134     PUSH32(esp, ecx); /* 0x36087B13: push ecx */
   9135     ecx = MEM32(esi + 0x30); /* 0x36087B14: mov ecx, dword ptr [esi + 0x30] */
   9136     RECOMP_ICALL(0x36071DD0u); /* 0x36087B17: call 0x36071dd0 */ /* not lifted */
   9137     RECOMP_FLAGS_IN();
   9138     ecx = eax; /* 0x36087B1C: mov ecx, eax */
   9139     RECOMP_ICALL(0x3604CCC0u); /* 0x36087B1E: call 0x3604ccc0 */ /* not lifted */
   9140     RECOMP_FLAGS_IN();
   9141 L_36087B23:
   9142     eax = MEM32(esi + 0x20); /* 0x36087B23: mov eax, dword ptr [esi + 0x20] */
   9143     esi = POP32_VAL(esp); /* 0x36087B26: pop esi */
   9144     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087B27: ret  */
   9145     RECOMP_REGS_OUT();
   9146 }
   9147 
   9148 void sub_36087B30(void) {
   9149     int _fpu_cmp = 0;
   9150     uint32_t _cf = 0;
   9151     int _df = 1;
   9152     uint32_t _flag_k = FK_NONE;
   9153     uint32_t _flag_a = 0, _flag_b = 0;
   9154     uint32_t _itail_tgt = 0;
   9155     RECOMP_REGS_LOCALS
   9156     RECOMP_ENTER(0x36087B30u);
   9157 
   9158 L_36087B30:
   9159     PUSH32(esp, esi); /* 0x36087B30: push esi */
   9160     esi = ecx; /* 0x36087B31: mov esi, ecx */
   9161     RECOMP_ICALL(0x360879A0u); /* 0x36087B33: call 0x360879a0 */ /* not lifted */
   9162     RECOMP_FLAGS_IN();
   9163     /* test eax, eax */ /* 0x36087B38: test eax, eax */
   9164     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9165     _cf = 0;
   9166     _flag_k = FK_TEST;
   9167     MEM32(esi + 0x30) = eax; /* 0x36087B3A: mov dword ptr [esi + 0x30], eax */
   9168     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087B46; /* 0x36087B3D: jne 0x36087b46 */
   9169 L_36087B3F:
   9170     eax = 2; /* 0x36087B3F: mov eax, 2 */
   9171     esi = POP32_VAL(esp); /* 0x36087B44: pop esi */
   9172     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087B45: ret  */
   9173 L_36087B46:
   9174     ecx = MEM32(esi + 0x28); /* 0x36087B46: mov ecx, dword ptr [esi + 0x28] */
   9175     edx = MEM32(ecx + 0xC); /* 0x36087B49: mov edx, dword ptr [ecx + 0xc] */
   9176     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36087B4C: cmp edx, dword ptr [esi + 8] */
   9177     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9178     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9179     _flag_k = FK_CMP;
   9180     if (CMP_EQ(_flag_a, _flag_b)) goto L_36087B58; /* 0x36087B4F: je 0x36087b58 */
   9181 L_36087B51:
   9182     eax = 2; /* 0x36087B51: mov eax, 2 */
   9183     esi = POP32_VAL(esp); /* 0x36087B56: pop esi */
   9184     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087B57: ret  */
   9185 L_36087B58:
   9186     PUSH32(esp, edi); /* 0x36087B58: push edi */
   9187     ecx = eax; /* 0x36087B59: mov ecx, eax */
   9188     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x36087B5B: call dword ptr [0x361700a8] */
   9189     RECOMP_FLAGS_IN();
   9190     eax = MEM32(esi + 0x28); /* 0x36087B61: mov eax, dword ptr [esi + 0x28] */
   9191     ecx = MEM32(esi + 0x2C); /* 0x36087B64: mov ecx, dword ptr [esi + 0x2c] */
   9192     PUSH32(esp, eax); /* 0x36087B67: push eax */
   9193     PUSH32(esp, ecx); /* 0x36087B68: push ecx */
   9194     ecx = MEM32(esi + 0x30); /* 0x36087B69: mov ecx, dword ptr [esi + 0x30] */
   9195     RECOMP_ICALL(0x36071DD0u); /* 0x36087B6C: call 0x36071dd0 */ /* not lifted */
   9196     RECOMP_FLAGS_IN();
   9197     ecx = eax; /* 0x36087B71: mov ecx, eax */
   9198     RECOMP_ICALL(0x3604D350u); /* 0x36087B73: call 0x3604d350 */ /* not lifted */
   9199     RECOMP_FLAGS_IN();
   9200     /* cmp eax, 2 */ /* 0x36087B78: cmp eax, 2 */
   9201     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   9202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9203     _flag_k = FK_CMP;
   9204     if (CMP_NE(_flag_a, _flag_b)) goto L_36087B9E; /* 0x36087B7B: jne 0x36087b9e */
   9205 L_36087B7D:
   9206     edx = MEM32(esi + 0x28); /* 0x36087B7D: mov edx, dword ptr [esi + 0x28] */
   9207     eax = MEM32(esi + 0x2C); /* 0x36087B80: mov eax, dword ptr [esi + 0x2c] */
   9208     ecx = MEM32(esi + 0x30); /* 0x36087B83: mov ecx, dword ptr [esi + 0x30] */
   9209     PUSH32(esp, edx); /* 0x36087B86: push edx */
   9210     PUSH32(esp, eax); /* 0x36087B87: push eax */
   9211     edi = 1; /* 0x36087B88: mov edi, 1 */
   9212     RECOMP_ICALL(0x36071DD0u); /* 0x36087B8D: call 0x36071dd0 */ /* not lifted */
   9213     RECOMP_FLAGS_IN();
   9214     ecx = eax; /* 0x36087B92: mov ecx, eax */
   9215     RECOMP_ICALL(0x3604CCC0u); /* 0x36087B94: call 0x3604ccc0 */ /* not lifted */
   9216     RECOMP_FLAGS_IN();
   9217     eax = edi; /* 0x36087B99: mov eax, edi */
   9218     edi = POP32_VAL(esp); /* 0x36087B9B: pop edi */
   9219     esi = POP32_VAL(esp); /* 0x36087B9C: pop esi */
   9220     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087B9D: ret  */
   9221 L_36087B9E:
   9222     edi = 2; /* 0x36087B9E: mov edi, 2 */
   9223     eax = edi; /* 0x36087BA3: mov eax, edi */
   9224     edi = POP32_VAL(esp); /* 0x36087BA5: pop edi */
   9225     esi = POP32_VAL(esp); /* 0x36087BA6: pop esi */
   9226     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087BA7: ret  */
   9227     RECOMP_REGS_OUT();
   9228 }
   9229 
   9230 void sub_36087BB0(void) {
   9231     int _fpu_cmp = 0;
   9232     uint32_t _cf = 0;
   9233     int _df = 1;
   9234     uint32_t _flag_k = FK_NONE;
   9235     uint32_t _flag_a = 0, _flag_b = 0;
   9236     uint32_t _itail_tgt = 0;
   9237     RECOMP_REGS_LOCALS
   9238     RECOMP_ENTER(0x36087BB0u);
   9239 
   9240 L_36087BB0:
   9241     PUSH32(esp, ebp); /* 0x36087BB0: push ebp */
   9242     ebp = esp; /* 0x36087BB1: mov ebp, esp */
   9243     ecx = MEM32(ecx + 0x30); /* 0x36087BB3: mov ecx, dword ptr [ecx + 0x30] */
   9244     /* test ecx, ecx */ /* 0x36087BB6: test ecx, ecx */
   9245     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9246     _cf = 0;
   9247     _flag_k = FK_TEST;
   9248     if (TEST_Z(_flag_a, _flag_b)) goto L_36087BD2; /* 0x36087BB8: je 0x36087bd2 */
   9249 L_36087BBA:
   9250     eax = MEM32(ebp + 0xC); /* 0x36087BBA: mov eax, dword ptr [ebp + 0xc] */
   9251     edx = MEM32(ebp + 0x8); /* 0x36087BBD: mov edx, dword ptr [ebp + 8] */
   9252     PUSH32(esp, eax); /* 0x36087BC0: push eax */
   9253     PUSH32(esp, edx); /* 0x36087BC1: push edx */
   9254     RECOMP_ICALL(0x36071DD0u); /* 0x36087BC2: call 0x36071dd0 */ /* not lifted */
   9255     RECOMP_FLAGS_IN();
   9256     ecx = eax; /* 0x36087BC7: mov ecx, eax */
   9257     RECOMP_ICALL(0x3604D350u); /* 0x36087BC9: call 0x3604d350 */ /* not lifted */
   9258     RECOMP_FLAGS_IN();
   9259     ebp = POP32_VAL(esp); /* 0x36087BCE: pop ebp */
   9260     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36087BCF: ret 8 */
   9261 L_36087BD2:
   9262     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9263     eax = 0; /* 0x36087BD2: xor eax, eax */
   9264     _cf = 0;
   9265     _flag_k = FK_TEST;
   9266     ebp = POP32_VAL(esp); /* 0x36087BD4: pop ebp */
   9267     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36087BD5: ret 8 */
   9268     RECOMP_REGS_OUT();
   9269 }
   9270 
   9271 void sub_36087BE0(void) {
   9272     int _fpu_cmp = 0;
   9273     uint32_t _cf = 0;
   9274     int _df = 1;
   9275     uint32_t _flag_k = FK_NONE;
   9276     uint32_t _flag_a = 0, _flag_b = 0;
   9277     uint32_t _itail_tgt = 0;
   9278     RECOMP_REGS_LOCALS
   9279     RECOMP_ENTER(0x36087BE0u);
   9280 
   9281 L_36087BE0:
   9282     PUSH32(esp, ebp); /* 0x36087BE0: push ebp */
   9283     ebp = esp; /* 0x36087BE1: mov ebp, esp */
   9284     PUSH32(esp, esi); /* 0x36087BE3: push esi */
   9285     PUSH32(esp, edi); /* 0x36087BE4: push edi */
   9286     edi = MEM32(ebp + 0x8); /* 0x36087BE5: mov edi, dword ptr [ebp + 8] */
   9287     esi = ecx; /* 0x36087BE8: mov esi, ecx */
   9288     PUSH32(esp, edi); /* 0x36087BEA: push edi */
   9289     RECOMP_ICALL(MEM32(0x3616FD30)); /* 0x36087BEB: call dword ptr [0x3616fd30] */
   9290     RECOMP_FLAGS_IN();
   9291     eax = MEM32(esi + 0x2C); /* 0x36087BF1: mov eax, dword ptr [esi + 0x2c] */
   9292     PUSH32(esp, eax); /* 0x36087BF4: push eax */
   9293     PUSH32(esp, edi); /* 0x36087BF5: push edi */
   9294     RECOMP_ICALL(0x36001220u); /* 0x36087BF6: call 0x36001220 */ /* not lifted */
   9295     RECOMP_FLAGS_IN();
   9296     ecx = MEM32(esi + 0x28); /* 0x36087BFB: mov ecx, dword ptr [esi + 0x28] */
   9297     PUSH32(esp, ecx); /* 0x36087BFE: push ecx */
   9298     PUSH32(esp, edi); /* 0x36087BFF: push edi */
   9299     RECOMP_ICALL(0x3604C450u); /* 0x36087C00: call 0x3604c450 */ /* not lifted */
   9300     RECOMP_FLAGS_IN();
   9301     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9303     esp = esp + 0x10u; /* 0x36087C05: add esp, 0x10 */
   9304     _flag_k = FK_ADD;
   9305     edi = POP32_VAL(esp); /* 0x36087C08: pop edi */
   9306     esi = POP32_VAL(esp); /* 0x36087C09: pop esi */
   9307     ebp = POP32_VAL(esp); /* 0x36087C0A: pop ebp */
   9308     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36087C0B: ret 4 */
   9309     RECOMP_REGS_OUT();
   9310 }
   9311 
   9312 void sub_36087C10(void) {
   9313     int _fpu_cmp = 0;
   9314     uint32_t _cf = 0;
   9315     int _df = 1;
   9316     uint32_t _flag_k = FK_NONE;
   9317     uint32_t _flag_a = 0, _flag_b = 0;
   9318     uint32_t _itail_tgt = 0;
   9319     RECOMP_REGS_LOCALS
   9320     RECOMP_ENTER(0x36087C10u);
   9321 
   9322 L_36087C10:
   9323     PUSH32(esp, ebp); /* 0x36087C10: push ebp */
   9324     ebp = esp; /* 0x36087C11: mov ebp, esp */
   9325     PUSH32(esp, ebx); /* 0x36087C13: push ebx */
   9326     ebx = MEM32(ebp + 0x8); /* 0x36087C14: mov ebx, dword ptr [ebp + 8] */
   9327     PUSH32(esp, esi); /* 0x36087C17: push esi */
   9328     esi = ecx; /* 0x36087C18: mov esi, ecx */
   9329     PUSH32(esp, ebx); /* 0x36087C1A: push ebx */
   9330     RECOMP_ICALL(MEM32(0x3616FD34)); /* 0x36087C1B: call dword ptr [0x3616fd34] */
   9331     RECOMP_FLAGS_IN();
   9332     /* test eax, eax */ /* 0x36087C21: test eax, eax */
   9333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9334     _cf = 0;
   9335     _flag_k = FK_TEST;
   9336     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087C72; /* 0x36087C23: jne 0x36087c72 */
   9337 L_36087C25:
   9338     PUSH32(esp, edi); /* 0x36087C25: push edi */
   9339     edi = esi + 0x2C; /* 0x36087C26: lea edi, [esi + 0x2c] */
   9340     PUSH32(esp, edi); /* 0x36087C29: push edi */
   9341     PUSH32(esp, ebx); /* 0x36087C2A: push ebx */
   9342     RECOMP_ICALL(0x36001240u); /* 0x36087C2B: call 0x36001240 */ /* not lifted */
   9343     RECOMP_FLAGS_IN();
   9344     eax = MEM32(esi + 0x28); /* 0x36087C30: mov eax, dword ptr [esi + 0x28] */
   9345     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9347     esp = esp + 8; /* 0x36087C33: add esp, 8 */
   9348     _flag_k = FK_ADD;
   9349     /* test eax, eax */ /* 0x36087C36: test eax, eax */
   9350     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9351     _cf = 0;
   9352     _flag_k = FK_TEST;
   9353     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087C48; /* 0x36087C38: jne 0x36087c48 */
   9354 L_36087C3A:
   9355     eax = MEM32(edi); /* 0x36087C3A: mov eax, dword ptr [edi] */
   9356     PUSH32(esp, eax); /* 0x36087C3C: push eax */
   9357     RECOMP_ICALL(0x3604C140u); /* 0x36087C3D: call 0x3604c140 */ /* not lifted */
   9358     RECOMP_FLAGS_IN();
   9359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9361     esp = esp + 4; /* 0x36087C42: add esp, 4 */
   9362     _flag_k = FK_ADD;
   9363     MEM32(esi + 0x28) = eax; /* 0x36087C45: mov dword ptr [esi + 0x28], eax */
   9364 L_36087C48:
   9365     esi = MEM32(esi + 0x28); /* 0x36087C48: mov esi, dword ptr [esi + 0x28] */
   9366     /* test esi, esi */ /* 0x36087C4B: test esi, esi */
   9367     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9368     _cf = 0;
   9369     _flag_k = FK_TEST;
   9370     edi = POP32_VAL(esp); /* 0x36087C4D: pop edi */
   9371     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087C5B; /* 0x36087C4E: jne 0x36087c5b */
   9372 L_36087C50:
   9373     esi = POP32_VAL(esp); /* 0x36087C50: pop esi */
   9374     eax = 1; /* 0x36087C51: mov eax, 1 */
   9375     ebx = POP32_VAL(esp); /* 0x36087C56: pop ebx */
   9376     ebp = POP32_VAL(esp); /* 0x36087C57: pop ebp */
   9377     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36087C58: ret 4 */
   9378 L_36087C5B:
   9379     PUSH32(esp, esi); /* 0x36087C5B: push esi */
   9380     PUSH32(esp, ebx); /* 0x36087C5C: push ebx */
   9381     RECOMP_ICALL(0x3604C500u); /* 0x36087C5D: call 0x3604c500 */ /* not lifted */
   9382     RECOMP_FLAGS_IN();
   9383     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9384     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9385     esp = esp + 8; /* 0x36087C62: add esp, 8 */
   9386     _flag_k = FK_ADD;
   9387     ecx = ebx; /* 0x36087C65: mov ecx, ebx */
   9388     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36087C67: call dword ptr [0x3616fadc] */
   9389     RECOMP_FLAGS_IN();
   9390     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   9391     _cf = (eax) != 0;
   9392     eax = (uint32_t)(-(int32_t)eax); /* 0x36087C6D: neg eax */
   9393     _flag_k = FK_CMP;
   9394     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36087C6F: sbb eax, eax */
   9395       eax = _sc ? 0xFFFFFFFFu : 0;
   9396       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   9397       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   9398     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9399     eax = eax + 1; /* 0x36087C71: inc eax */
   9400     _flag_k = FK_INC;
   9401 L_36087C72:
   9402     esi = POP32_VAL(esp); /* 0x36087C72: pop esi */
   9403     ebx = POP32_VAL(esp); /* 0x36087C73: pop ebx */
   9404     ebp = POP32_VAL(esp); /* 0x36087C74: pop ebp */
   9405     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36087C75: ret 4 */
   9406     RECOMP_REGS_OUT();
   9407 }
   9408 
   9409 void sub_36087C80(void) {
   9410     int _fpu_cmp = 0;
   9411     uint32_t _cf = 0;
   9412     int _df = 1;
   9413     uint32_t _flag_k = FK_NONE;
   9414     uint32_t _flag_a = 0, _flag_b = 0;
   9415     uint32_t _itail_tgt = 0;
   9416     RECOMP_REGS_LOCALS
   9417     RECOMP_ENTER(0x36087C80u);
   9418 
   9419 L_36087C80:
   9420     goto L_36087C90; /* 0x36087C80: jmp 0x36087c90 */
   9421 L_36087C90:
   9422     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9423     eax = 0; /* 0x36087C90: xor eax, eax */
   9424     _cf = 0;
   9425     _flag_k = FK_TEST;
   9426     MEM32(0x36306B08) = eax; /* 0x36087C92: mov dword ptr [0x36306b08], eax */
   9427     MEM32(0x36306B0C) = eax; /* 0x36087C97: mov dword ptr [0x36306b0c], eax */
   9428     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087C9C: ret  */
   9429     RECOMP_REGS_OUT();
   9430 }
   9431 
   9432 void sub_36087C90(void) {
   9433     int _fpu_cmp = 0;
   9434     uint32_t _cf = 0;
   9435     int _df = 1;
   9436     uint32_t _flag_k = FK_NONE;
   9437     uint32_t _flag_a = 0, _flag_b = 0;
   9438     uint32_t _itail_tgt = 0;
   9439     RECOMP_REGS_LOCALS
   9440     RECOMP_ENTER(0x36087C90u);
   9441 
   9442 L_36087C90:
   9443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9444     eax = 0; /* 0x36087C90: xor eax, eax */
   9445     _cf = 0;
   9446     _flag_k = FK_TEST;
   9447     MEM32(0x36306B08) = eax; /* 0x36087C92: mov dword ptr [0x36306b08], eax */
   9448     MEM32(0x36306B0C) = eax; /* 0x36087C97: mov dword ptr [0x36306b0c], eax */
   9449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087C9C: ret  */
   9450     RECOMP_REGS_OUT();
   9451 }
   9452 
   9453 void sub_36087CA0(void) {
   9454     int _fpu_cmp = 0;
   9455     uint32_t _cf = 0;
   9456     int _df = 1;
   9457     uint32_t _flag_k = FK_NONE;
   9458     uint32_t _flag_a = 0, _flag_b = 0;
   9459     uint32_t _itail_tgt = 0;
   9460     RECOMP_REGS_LOCALS
   9461     RECOMP_ENTER(0x36087CA0u);
   9462 
   9463 L_36087CA0:
   9464     PUSH32(esp, ebp); /* 0x36087CA0: push ebp */
   9465     ebp = esp; /* 0x36087CA1: mov ebp, esp */
   9466     PUSH32(esp, 0xFFFFFFFFu); /* 0x36087CA3: push -1 */
   9467     PUSH32(esp, 0x36165C69u); /* 0x36087CA5: push 0x36165c69 */
   9468     eax = MEM32(FS_BASE + (0)); /* 0x36087CAA: mov eax, dword ptr fs:[0] */
   9469     PUSH32(esp, eax); /* 0x36087CB0: push eax */
   9470     MEM32(FS_BASE + (0)) = esp; /* 0x36087CB1: mov dword ptr fs:[0], esp */
   9471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9473     esp = esp - 8; /* 0x36087CB8: sub esp, 8 */
   9474     _flag_k = FK_CMP;
   9475     PUSH32(esp, ebx); /* 0x36087CBB: push ebx */
   9476     PUSH32(esp, esi); /* 0x36087CBC: push esi */
   9477     esi = ecx; /* 0x36087CBD: mov esi, ecx */
   9478     MEM32(ebp + (-0x14)) = esi; /* 0x36087CBF: mov dword ptr [ebp - 0x14], esi */
   9479     RECOMP_ICALL(MEM32(0x3616FFE0)); /* 0x36087CC2: call dword ptr [0x3616ffe0] */
   9480     RECOMP_FLAGS_IN();
   9481     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9482     ebx = 0; /* 0x36087CC8: xor ebx, ebx */
   9483     _cf = 0;
   9484     _flag_k = FK_TEST;
   9485     MEM32(esi + 0x28) = ebx; /* 0x36087CCA: mov dword ptr [esi + 0x28], ebx */
   9486     MEM32(esi + 0x2C) = ebx; /* 0x36087CCD: mov dword ptr [esi + 0x2c], ebx */
   9487     MEM32(esi + 0x30) = ebx; /* 0x36087CD0: mov dword ptr [esi + 0x30], ebx */
   9488     MEM32(esi + 0x34) = ebx; /* 0x36087CD3: mov dword ptr [esi + 0x34], ebx */
   9489     MEM32(esi + 0x38) = ebx; /* 0x36087CD6: mov dword ptr [esi + 0x38], ebx */
   9490     MEM32(esi + 0x3C) = ebx; /* 0x36087CD9: mov dword ptr [esi + 0x3c], ebx */
   9491     PUSH32(esp, 0x10u); /* 0x36087CDC: push 0x10 */
   9492     MEM32(ebp + (-0x4)) = ebx; /* 0x36087CDE: mov dword ptr [ebp - 4], ebx */
   9493     MEM32(esi + 0x44) = ebx; /* 0x36087CE1: mov dword ptr [esi + 0x44], ebx */
   9494     MEM32(esi + 0x48) = ebx; /* 0x36087CE4: mov dword ptr [esi + 0x48], ebx */
   9495     MEM8(esi + 0x4C) = (uint8_t)(LO8(ebx)); /* 0x36087CE7: mov byte ptr [esi + 0x4c], bl */
   9496     MEM32(esi) = 0x36171C88u; /* 0x36087CEA: mov dword ptr [esi], 0x36171c88 */
   9497     RECOMP_ICALL(0x3615FD6Au); /* 0x36087CF0: call 0x3615fd6a */ /* not lifted */
   9498     RECOMP_FLAGS_IN();
   9499     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9501     esp = esp + 4; /* 0x36087CF5: add esp, 4 */
   9502     _flag_k = FK_ADD;
   9503     /* cmp eax, ebx */ /* 0x36087CF8: cmp eax, ebx */
   9504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   9505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9506     _flag_k = FK_CMP;
   9507     if (CMP_EQ(_flag_a, _flag_b)) goto L_36087D1F; /* 0x36087CFA: je 0x36087d1f */
   9508 L_36087CFC:
   9509     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36087CFC: mov cl, byte ptr [ebp - 0xd] */
   9510     MEM32(eax + 0x4) = ebx; /* 0x36087CFF: mov dword ptr [eax + 4], ebx */
   9511     MEM32(eax + 0x8) = ebx; /* 0x36087D02: mov dword ptr [eax + 8], ebx */
   9512     MEM32(eax + 0xC) = ebx; /* 0x36087D05: mov dword ptr [eax + 0xc], ebx */
   9513     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x36087D08: mov byte ptr [eax], cl */
   9514     MEM32(esi + 0x44) = eax; /* 0x36087D0A: mov dword ptr [esi + 0x44], eax */
   9515     eax = esi; /* 0x36087D0D: mov eax, esi */
   9516     esi = POP32_VAL(esp); /* 0x36087D0F: pop esi */
   9517     ebx = POP32_VAL(esp); /* 0x36087D10: pop ebx */
   9518     ecx = MEM32(ebp + (-0xC)); /* 0x36087D11: mov ecx, dword ptr [ebp - 0xc] */
   9519     MEM32(FS_BASE + (0)) = ecx; /* 0x36087D14: mov dword ptr fs:[0], ecx */
   9520     esp = ebp; /* 0x36087D1B: mov esp, ebp */
   9521     ebp = POP32_VAL(esp); /* 0x36087D1D: pop ebp */
   9522     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087D1E: ret  */
   9523 L_36087D1F:
   9524     ecx = MEM32(ebp + (-0xC)); /* 0x36087D1F: mov ecx, dword ptr [ebp - 0xc] */
   9525     MEM32(esi + 0x44) = ebx; /* 0x36087D22: mov dword ptr [esi + 0x44], ebx */
   9526     eax = esi; /* 0x36087D25: mov eax, esi */
   9527     esi = POP32_VAL(esp); /* 0x36087D27: pop esi */
   9528     ebx = POP32_VAL(esp); /* 0x36087D28: pop ebx */
   9529     MEM32(FS_BASE + (0)) = ecx; /* 0x36087D29: mov dword ptr fs:[0], ecx */
   9530     esp = ebp; /* 0x36087D30: mov esp, ebp */
   9531     ebp = POP32_VAL(esp); /* 0x36087D32: pop ebp */
   9532     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087D33: ret  */
   9533     RECOMP_REGS_OUT();
   9534 }
   9535 
   9536 void sub_36087D40(void) {
   9537     int _fpu_cmp = 0;
   9538     uint32_t _cf = 0;
   9539     int _df = 1;
   9540     uint32_t _flag_k = FK_NONE;
   9541     uint32_t _flag_a = 0, _flag_b = 0;
   9542     uint32_t _itail_tgt = 0;
   9543     RECOMP_REGS_LOCALS
   9544     RECOMP_ENTER(0x36087D40u);
   9545 
   9546 L_36087D40:
   9547     PUSH32(esp, ebp); /* 0x36087D40: push ebp */
   9548     ebp = esp; /* 0x36087D41: mov ebp, esp */
   9549     PUSH32(esp, esi); /* 0x36087D43: push esi */
   9550     esi = ecx; /* 0x36087D44: mov esi, ecx */
   9551     RECOMP_ICALL(0x36087D70u); /* 0x36087D46: call 0x36087d70 */ /* not lifted */
   9552     RECOMP_FLAGS_IN();
   9553     /* test MEM8(ebp + 0x8), 1 */ /* 0x36087D4B: test byte ptr [ebp + 8], 1 */
   9554     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   9555     _cf = 0;
   9556     _flag_k = FK_NARROW(FK_TEST, 24);
   9557     if (TEST_Z(_flag_a, _flag_b)) goto L_36087D5A; /* 0x36087D4F: je 0x36087d5a */
   9558 L_36087D51:
   9559     PUSH32(esp, esi); /* 0x36087D51: push esi */
   9560     RECOMP_ICALL(0x3615FCC4u); /* 0x36087D52: call 0x3615fcc4 */ /* not lifted */
   9561     RECOMP_FLAGS_IN();
   9562     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9563     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9564     esp = esp + 4; /* 0x36087D57: add esp, 4 */
   9565     _flag_k = FK_ADD;
   9566 L_36087D5A:
   9567     eax = esi; /* 0x36087D5A: mov eax, esi */
   9568     esi = POP32_VAL(esp); /* 0x36087D5C: pop esi */
   9569     ebp = POP32_VAL(esp); /* 0x36087D5D: pop ebp */
   9570     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36087D5E: ret 4 */
   9571     RECOMP_REGS_OUT();
   9572 }
   9573 
   9574 void sub_36087D70(void) {
   9575     int _fpu_cmp = 0;
   9576     uint32_t _cf = 0;
   9577     int _df = 1;
   9578     uint32_t _flag_k = FK_NONE;
   9579     uint32_t _flag_a = 0, _flag_b = 0;
   9580     uint32_t _itail_tgt = 0;
   9581     RECOMP_REGS_LOCALS
   9582     RECOMP_ENTER(0x36087D70u);
   9583 
   9584 L_36087D70:
   9585     PUSH32(esp, ebp); /* 0x36087D70: push ebp */
   9586     ebp = esp; /* 0x36087D71: mov ebp, esp */
   9587     PUSH32(esp, ecx); /* 0x36087D73: push ecx */
   9588     PUSH32(esp, esi); /* 0x36087D74: push esi */
   9589     PUSH32(esp, edi); /* 0x36087D75: push edi */
   9590     edi = ecx; /* 0x36087D76: mov edi, ecx */
   9591     esi = MEM32(edi + 0x44); /* 0x36087D78: mov esi, dword ptr [edi + 0x44] */
   9592     /* test esi, esi */ /* 0x36087D7B: test esi, esi */
   9593     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9594     _cf = 0;
   9595     _flag_k = FK_TEST;
   9596     MEM32(edi) = 0x36171C88u; /* 0x36087D7D: mov dword ptr [edi], 0x36171c88 */
   9597     if (TEST_Z(_flag_a, _flag_b)) goto L_36087DAF; /* 0x36087D83: je 0x36087daf */
   9598 L_36087D85:
   9599     eax = MEM32(esi + 0x4); /* 0x36087D85: mov eax, dword ptr [esi + 4] */
   9600     PUSH32(esp, eax); /* 0x36087D88: push eax */
   9601     MEM32(ebp + (-0x4)) = eax; /* 0x36087D89: mov dword ptr [ebp - 4], eax */
   9602     RECOMP_ICALL(0x3615FCC4u); /* 0x36087D8C: call 0x3615fcc4 */ /* not lifted */
   9603     RECOMP_FLAGS_IN();
   9604     PUSH32(esp, esi); /* 0x36087D91: push esi */
   9605     MEM32(esi + 0x4) = 0; /* 0x36087D92: mov dword ptr [esi + 4], 0 */
   9606     MEM32(esi + 0x8) = 0; /* 0x36087D99: mov dword ptr [esi + 8], 0 */
   9607     MEM32(esi + 0xC) = 0; /* 0x36087DA0: mov dword ptr [esi + 0xc], 0 */
   9608     RECOMP_ICALL(0x3615FCC4u); /* 0x36087DA7: call 0x3615fcc4 */ /* not lifted */
   9609     RECOMP_FLAGS_IN();
   9610     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9611     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9612     esp = esp + 8; /* 0x36087DAC: add esp, 8 */
   9613     _flag_k = FK_ADD;
   9614 L_36087DAF:
   9615     ecx = edi; /* 0x36087DAF: mov ecx, edi */
   9616     RECOMP_ICALL(MEM32(0x3616FFE4)); /* 0x36087DB1: call dword ptr [0x3616ffe4] */
   9617     RECOMP_FLAGS_IN();
   9618     edi = POP32_VAL(esp); /* 0x36087DB7: pop edi */
   9619     esi = POP32_VAL(esp); /* 0x36087DB8: pop esi */
   9620     esp = ebp; /* 0x36087DB9: mov esp, ebp */
   9621     ebp = POP32_VAL(esp); /* 0x36087DBB: pop ebp */
   9622     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087DBC: ret  */
   9623     RECOMP_REGS_OUT();
   9624 }
   9625 
   9626 void sub_36087DC0(void) {
   9627     int _fpu_cmp = 0;
   9628     uint32_t _cf = 0;
   9629     int _df = 1;
   9630     uint32_t _flag_k = FK_NONE;
   9631     uint32_t _flag_a = 0, _flag_b = 0;
   9632     uint32_t _itail_tgt = 0;
   9633     RECOMP_REGS_LOCALS
   9634     RECOMP_ENTER(0x36087DC0u);
   9635 
   9636 L_36087DC0:
   9637     PUSH32(esp, esi); /* 0x36087DC0: push esi */
   9638     PUSH32(esp, edi); /* 0x36087DC1: push edi */
   9639     PUSH32(esp, 0); /* 0x36087DC2: push 0 */
   9640     PUSH32(esp, 0x361B2CD8u); /* 0x36087DC4: push 0x361b2cd8 */
   9641     edi = ecx; /* 0x36087DC9: mov edi, ecx */
   9642     PUSH32(esp, 0x361B2CC0u); /* 0x36087DCB: push 0x361b2cc0 */
   9643     eax = edi + 0x4; /* 0x36087DD0: lea eax, [edi + 4] */
   9644     PUSH32(esp, 0); /* 0x36087DD3: push 0 */
   9645     PUSH32(esp, eax); /* 0x36087DD5: push eax */
   9646     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36087DD6: call dword ptr [0x3616ff70] */
   9647     RECOMP_FLAGS_IN();
   9648     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9649     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9650     esp = esp + 4; /* 0x36087DDC: add esp, 4 */
   9651     _flag_k = FK_ADD;
   9652     PUSH32(esp, eax); /* 0x36087DDF: push eax */
   9653     RECOMP_ICALL(0x3615FD86u); /* 0x36087DE0: call 0x3615fd86 */ /* not lifted */
   9654     RECOMP_FLAGS_IN();
   9655     esi = eax; /* 0x36087DE5: mov esi, eax */
   9656     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9657     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9658     esp = esp + 0x14u; /* 0x36087DE7: add esp, 0x14 */
   9659     _flag_k = FK_ADD;
   9660     /* test esi, esi */ /* 0x36087DEA: test esi, esi */
   9661     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9662     _cf = 0;
   9663     _flag_k = FK_TEST;
   9664     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087DF6; /* 0x36087DEC: jne 0x36087df6 */
   9665 L_36087DEE:
   9666     edi = POP32_VAL(esp); /* 0x36087DEE: pop edi */
   9667     eax = 2; /* 0x36087DEF: mov eax, 2 */
   9668     esi = POP32_VAL(esp); /* 0x36087DF4: pop esi */
   9669     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087DF5: ret  */
   9670 L_36087DF6:
   9671     ecx = edi + 0x34; /* 0x36087DF6: lea ecx, [edi + 0x34] */
   9672     PUSH32(esp, ecx); /* 0x36087DF9: push ecx */
   9673     ecx = esi; /* 0x36087DFA: mov ecx, esi */
   9674     RECOMP_ICALL(0x360711B0u); /* 0x36087DFC: call 0x360711b0 */ /* not lifted */
   9675     RECOMP_FLAGS_IN();
   9676     /* test LO8(eax), LO8(eax) */ /* 0x36087E01: test al, al */
   9677     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9678     _cf = 0;
   9679     _flag_k = FK_NARROW(FK_TEST, 24);
   9680     if (TEST_Z(_flag_a, _flag_b)) goto L_36087E35; /* 0x36087E03: je 0x36087e35 */
   9681 L_36087E05:
   9682     ecx = esi; /* 0x36087E05: mov ecx, esi */
   9683     RECOMP_ICALL(0x3606D5A0u); /* 0x36087E07: call 0x3606d5a0 */ /* not lifted */
   9684     RECOMP_FLAGS_IN();
   9685     ecx = eax; /* 0x36087E0C: mov ecx, eax */
   9686     RECOMP_ICALL(0x36047900u); /* 0x36087E0E: call 0x36047900 */ /* not lifted */
   9687     RECOMP_FLAGS_IN();
   9688     ecx = MEM32(edi + 0x48); /* 0x36087E13: mov ecx, dword ptr [edi + 0x48] */
   9689     edx = MEM32(eax); /* 0x36087E16: mov edx, dword ptr [eax] */
   9690     PUSH32(esp, ecx); /* 0x36087E18: push ecx */
   9691     ecx = eax; /* 0x36087E19: mov ecx, eax */
   9692     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36087E1B: call dword ptr [edx + 0x18] */
   9693     RECOMP_FLAGS_IN();
   9694     ecx = esi; /* 0x36087E1E: mov ecx, esi */
   9695     RECOMP_ICALL(0x3606D5A0u); /* 0x36087E20: call 0x3606d5a0 */ /* not lifted */
   9696     RECOMP_FLAGS_IN();
   9697     ecx = eax; /* 0x36087E25: mov ecx, eax */
   9698     RECOMP_ICALL(0x36047900u); /* 0x36087E27: call 0x36047900 */ /* not lifted */
   9699     RECOMP_FLAGS_IN();
   9700     edx = MEM32(eax); /* 0x36087E2C: mov edx, dword ptr [eax] */
   9701     PUSH32(esp, 1); /* 0x36087E2E: push 1 */
   9702     ecx = eax; /* 0x36087E30: mov ecx, eax */
   9703     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36087E32: call dword ptr [edx + 0x18] */
   9704     RECOMP_FLAGS_IN();
   9705 L_36087E35:
   9706     edi = POP32_VAL(esp); /* 0x36087E35: pop edi */
   9707     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9708     eax = 0; /* 0x36087E36: xor eax, eax */
   9709     _cf = 0;
   9710     _flag_k = FK_TEST;
   9711     esi = POP32_VAL(esp); /* 0x36087E38: pop esi */
   9712     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087E39: ret  */
   9713     RECOMP_REGS_OUT();
   9714 }