aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0046.c (358113B)


      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_360982D3(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(0x360982D3u);
     17 
     18 L_360982D3:
     19     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x360982D3: fld dword ptr [ebp - 0xc] */
     20     edx = MEM32(ebp + (-0x18)); /* 0x360982D6: mov edx, dword ptr [ebp - 0x18] */
     21     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x360982D9: fmul dword ptr [ebp - 0xc] */
     22     ecx = esp; /* 0x360982DC: mov ecx, esp */
     23     MEM32(ecx) = edx; /* 0x360982DE: mov dword ptr [ecx], edx */
     24     MEM32(ebp + (-0x14)) = 0; /* 0x360982E0: mov dword ptr [ebp - 0x14], 0 */
     25     { double _v = fp_pop(); _st[0] += _v; } /* 0x360982E7: faddp st(1) */
     26     eax = MEM32(ebp + (-0x14)); /* 0x360982E9: mov eax, dword ptr [ebp - 0x14] */
     27     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360982EC: fld dword ptr [ebp - 4] */
     28     MEM32(ebp + (-0x10)) = 0; /* 0x360982EF: mov dword ptr [ebp - 0x10], 0 */
     29     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x360982F6: fmul dword ptr [ebp - 4] */
     30     edx = MEM32(ebp + (-0x10)); /* 0x360982F9: mov edx, dword ptr [ebp - 0x10] */
     31     MEM32(ecx + 0x4) = eax; /* 0x360982FC: mov dword ptr [ecx + 4], eax */
     32     MEM32(ecx + 0x8) = edx; /* 0x360982FF: mov dword ptr [ecx + 8], edx */
     33     { double _v = fp_pop(); _st[0] += _v; } /* 0x36098302: faddp st(1) */
     34     PUSH32(esp, 1); /* 0x36098304: push 1 */
     35     _st[0] = sqrt(_st[0]); /* 0x36098306: fsqrt  */
     36     _st[0] = (double)*(float*)ADDR(0x3617158C) - _st[0]; /* 0x36098308: fsubr dword ptr [0x3617158c] */
     37     _st[0] *= (double)*(float*)ADDR(0x361709C0); /* 0x3609830E: fmul dword ptr [0x361709c0] */
     38     _st[0] += (double)*(float*)ADDR(0x36170888); /* 0x36098314: fadd dword ptr [0x36170888] */
     39     RECOMP_ICALL(0x3615FD8Cu); /* 0x3609831A: call 0x3615fd8c */ /* not lifted */
     40     RECOMP_FLAGS_IN();
     41     PUSH32(esp, eax); /* 0x3609831F: push eax */
     42     PUSH32(esp, 0); /* 0x36098320: push 0 */
     43     PUSH32(esp, 0); /* 0x36098322: push 0 */
     44     PUSH32(esp, 0x3F800000u); /* 0x36098324: push 0x3f800000 */
     45     PUSH32(esp, 0); /* 0x36098329: push 0 */
     46     ecx = edi + 0x8C; /* 0x3609832B: lea ecx, [edi + 0x8c] */
     47     RECOMP_ICALL(ebx); /* 0x36098331: call ebx */
     48     RECOMP_FLAGS_IN();
     49     edx = MEM32(eax); /* 0x36098333: mov edx, dword ptr [eax] */
     50     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
     51     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     52     esp = esp - 0xCu; /* 0x36098335: sub esp, 0xc */
     53     _flag_k = FK_CMP;
     54     ecx = esp; /* 0x36098338: mov ecx, esp */
     55     MEM32(ecx) = edx; /* 0x3609833A: mov dword ptr [ecx], edx */
     56     edx = MEM32(eax + 0x4); /* 0x3609833C: mov edx, dword ptr [eax + 4] */
     57     eax = MEM32(eax + 0x8); /* 0x3609833F: mov eax, dword ptr [eax + 8] */
     58     MEM32(ecx + 0x4) = edx; /* 0x36098342: mov dword ptr [ecx + 4], edx */
     59     MEM32(ecx + 0x8) = eax; /* 0x36098345: mov dword ptr [ecx + 8], eax */
     60     ecx = MEM32(edi + 0x1CC); /* 0x36098348: mov ecx, dword ptr [edi + 0x1cc] */
     61     PUSH32(esp, ecx); /* 0x3609834E: push ecx */
     62     RECOMP_ICALL(0x3601C590u); /* 0x3609834F: call 0x3601c590 */ /* not lifted */
     63     RECOMP_FLAGS_IN();
     64     ecx = eax; /* 0x36098354: mov ecx, eax */
     65     RECOMP_ICALL(0x3601CBF0u); /* 0x36098356: call 0x3601cbf0 */ /* not lifted */
     66     RECOMP_FLAGS_IN();
     67     PUSH32(esp, 0x40400000u); /* 0x3609835B: push 0x40400000 */
     68     RECOMP_ICALL(0x3601C590u); /* 0x36098360: call 0x3601c590 */ /* not lifted */
     69     RECOMP_FLAGS_IN();
     70     ecx = eax; /* 0x36098365: mov ecx, eax */
     71     RECOMP_ICALL(0x3601CDF0u); /* 0x36098367: call 0x3601cdf0 */ /* not lifted */
     72     RECOMP_FLAGS_IN();
     73     edi = POP32_VAL(esp); /* 0x3609836C: pop edi */
     74     esi = POP32_VAL(esp); /* 0x3609836D: pop esi */
     75     ebx = POP32_VAL(esp); /* 0x3609836E: pop ebx */
     76     esp = ebp; /* 0x3609836F: mov esp, ebp */
     77     ebp = POP32_VAL(esp); /* 0x36098371: pop ebp */
     78     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098372: ret 4 */
     79     RECOMP_REGS_OUT();
     80 }
     81 
     82 void sub_36098380(void) {
     83     int _fpu_cmp = 0;
     84     uint32_t _cf = 0;
     85     int _df = 1;
     86     uint32_t _flag_k = FK_NONE;
     87     uint32_t _flag_a = 0, _flag_b = 0;
     88     uint32_t _itail_tgt = 0;
     89     RECOMP_REGS_LOCALS
     90     RECOMP_ENTER(0x36098380u);
     91 
     92 L_36098380:
     93     PUSH32(esp, ebp); /* 0x36098380: push ebp */
     94     ebp = esp; /* 0x36098381: mov ebp, esp */
     95     PUSH32(esp, ebx); /* 0x36098383: push ebx */
     96     ebx = MEM32(ebp + 0x8); /* 0x36098384: mov ebx, dword ptr [ebp + 8] */
     97     PUSH32(esp, esi); /* 0x36098387: push esi */
     98     esi = ecx; /* 0x36098388: mov esi, ecx */
     99     PUSH32(esp, ebx); /* 0x3609838A: push ebx */
    100     RECOMP_ICALL(0x360A8D60u); /* 0x3609838B: call 0x360a8d60 */ /* not lifted */
    101     RECOMP_FLAGS_IN();
    102     /* test LO8(ebx), LO8(ebx) */ /* 0x36098390: test bl, bl */
    103     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    104     _cf = 0;
    105     _flag_k = FK_NARROW(FK_TEST, 24);
    106     if (TEST_Z(_flag_a, _flag_b)) goto L_360983A4; /* 0x36098392: je 0x360983a4 */
    107 L_36098394:
    108     eax = MEM32(esi); /* 0x36098394: mov eax, dword ptr [esi] */
    109     ecx = esi; /* 0x36098396: mov ecx, esi */
    110     RECOMP_ICALL(MEM32(eax + 0x124)); /* 0x36098398: call dword ptr [eax + 0x124] */
    111     RECOMP_FLAGS_IN();
    112     esi = POP32_VAL(esp); /* 0x3609839E: pop esi */
    113     ebx = POP32_VAL(esp); /* 0x3609839F: pop ebx */
    114     ebp = POP32_VAL(esp); /* 0x360983A0: pop ebp */
    115     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360983A1: ret 4 */
    116 L_360983A4:
    117     edx = MEM32(esi); /* 0x360983A4: mov edx, dword ptr [esi] */
    118     ecx = esi; /* 0x360983A6: mov ecx, esi */
    119     RECOMP_ICALL(MEM32(edx + 0x128)); /* 0x360983A8: call dword ptr [edx + 0x128] */
    120     RECOMP_FLAGS_IN();
    121     esi = POP32_VAL(esp); /* 0x360983AE: pop esi */
    122     ebx = POP32_VAL(esp); /* 0x360983AF: pop ebx */
    123     ebp = POP32_VAL(esp); /* 0x360983B0: pop ebp */
    124     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360983B1: ret 4 */
    125     RECOMP_REGS_OUT();
    126 }
    127 
    128 void sub_360983C0(void) {
    129     int _fpu_cmp = 0;
    130     uint32_t _cf = 0;
    131     int _df = 1;
    132     uint32_t _flag_k = FK_NONE;
    133     uint32_t _flag_a = 0, _flag_b = 0;
    134     uint32_t _itail_tgt = 0;
    135     RECOMP_REGS_LOCALS
    136     RECOMP_ENTER(0x360983C0u);
    137 
    138 L_360983C0:
    139     PUSH32(esp, ebp); /* 0x360983C0: push ebp */
    140     ebp = esp; /* 0x360983C1: mov ebp, esp */
    141     PUSH32(esp, ebx); /* 0x360983C3: push ebx */
    142     ebx = MEM32(ebp + 0x8); /* 0x360983C4: mov ebx, dword ptr [ebp + 8] */
    143     PUSH32(esp, esi); /* 0x360983C7: push esi */
    144     esi = ecx; /* 0x360983C8: mov esi, ecx */
    145     PUSH32(esp, ebx); /* 0x360983CA: push ebx */
    146     RECOMP_ICALL(0x360A8E10u); /* 0x360983CB: call 0x360a8e10 */ /* not lifted */
    147     RECOMP_FLAGS_IN();
    148     /* test LO8(ebx), LO8(ebx) */ /* 0x360983D0: test bl, bl */
    149     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
    150     _cf = 0;
    151     _flag_k = FK_NARROW(FK_TEST, 24);
    152     if (TEST_NZ(_flag_a, _flag_b)) goto L_360983FC; /* 0x360983D2: jne 0x360983fc */
    153 L_360983D4:
    154     PUSH32(esp, 1); /* 0x360983D4: push 1 */
    155     ecx = esi; /* 0x360983D6: mov ecx, esi */
    156     RECOMP_ICALL(0x3609D3B0u); /* 0x360983D8: call 0x3609d3b0 */ /* not lifted */
    157     RECOMP_FLAGS_IN();
    158     PUSH32(esp, 3); /* 0x360983DD: push 3 */
    159     ecx = esi; /* 0x360983DF: mov ecx, esi */
    160     RECOMP_ICALL(0x3609D390u); /* 0x360983E1: call 0x3609d390 */ /* not lifted */
    161     RECOMP_FLAGS_IN();
    162     PUSH32(esp, 3); /* 0x360983E6: push 3 */
    163     ecx = esi; /* 0x360983E8: mov ecx, esi */
    164     RECOMP_ICALL(0x3609D430u); /* 0x360983EA: call 0x3609d430 */ /* not lifted */
    165     RECOMP_FLAGS_IN();
    166     eax = MEM32(0x361C5F64); /* 0x360983EF: mov eax, dword ptr [0x361c5f64] */
    167     PUSH32(esp, eax); /* 0x360983F4: push eax */
    168     ecx = esi; /* 0x360983F5: mov ecx, esi */
    169     RECOMP_ICALL(0x3609F150u); /* 0x360983F7: call 0x3609f150 */ /* not lifted */
    170     RECOMP_FLAGS_IN();
    171 L_360983FC:
    172     esi = POP32_VAL(esp); /* 0x360983FC: pop esi */
    173     ebx = POP32_VAL(esp); /* 0x360983FD: pop ebx */
    174     ebp = POP32_VAL(esp); /* 0x360983FE: pop ebp */
    175     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360983FF: ret 4 */
    176     RECOMP_REGS_OUT();
    177 }
    178 
    179 void sub_36098410(void) {
    180     int _fpu_cmp = 0;
    181     uint32_t _cf = 0;
    182     int _df = 1;
    183     uint32_t _flag_k = FK_NONE;
    184     uint32_t _flag_a = 0, _flag_b = 0;
    185     uint32_t _itail_tgt = 0;
    186     RECOMP_REGS_LOCALS
    187     RECOMP_ENTER(0x36098410u);
    188 
    189 L_36098410:
    190     eax = MEM32(ecx); /* 0x36098410: mov eax, dword ptr [ecx] */
    191     PUSH32(esp, 0x40u); /* 0x36098412: push 0x40 */
    192     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x36098414: call dword ptr [eax + 0x18] */
    193     RECOMP_FLAGS_IN();
    194     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098417: ret 4 */
    195     RECOMP_REGS_OUT();
    196 }
    197 
    198 void sub_36098420(void) {
    199     int _fpu_cmp = 0;
    200     uint32_t _cf = 0;
    201     int _df = 1;
    202     uint32_t _flag_k = FK_NONE;
    203     uint32_t _flag_a = 0, _flag_b = 0;
    204     uint32_t _itail_tgt = 0;
    205     RECOMP_REGS_LOCALS
    206     RECOMP_ENTER(0x36098420u);
    207 
    208 L_36098420:
    209     PUSH32(esp, ebp); /* 0x36098420: push ebp */
    210     ebp = esp; /* 0x36098421: mov ebp, esp */
    211     eax = MEM32(ebp + 0x8); /* 0x36098423: mov eax, dword ptr [ebp + 8] */
    212     PUSH32(esp, esi); /* 0x36098426: push esi */
    213     PUSH32(esp, edi); /* 0x36098427: push edi */
    214     esi = ecx; /* 0x36098428: mov esi, ecx */
    215     PUSH32(esp, eax); /* 0x3609842A: push eax */
    216     RECOMP_ICALL(0x3608EDE0u); /* 0x3609842B: call 0x3608ede0 */ /* not lifted */
    217     RECOMP_FLAGS_IN();
    218     edi = MEM32(esi); /* 0x36098430: mov edi, dword ptr [esi] */
    219     PUSH32(esp, 2); /* 0x36098432: push 2 */
    220     PUSH32(esp, 0x1Eu); /* 0x36098434: push 0x1e */
    221     ecx = esi; /* 0x36098436: mov ecx, esi */
    222     RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36098438: call dword ptr [edi + 4] */
    223     RECOMP_FLAGS_IN();
    224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
    225     eax = eax & 0xFFFFFFFEu; /* 0x3609843B: and eax, 0xfffffffe */
    226     _cf = 0;
    227     _flag_k = FK_TEST;
    228     PUSH32(esp, eax); /* 0x3609843E: push eax */
    229     PUSH32(esp, 0x1Eu); /* 0x3609843F: push 0x1e */
    230     ecx = esi; /* 0x36098441: mov ecx, esi */
    231     RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36098443: call dword ptr [edi + 8] */
    232     RECOMP_FLAGS_IN();
    233     edx = MEM32(esi); /* 0x36098446: mov edx, dword ptr [esi] */
    234     PUSH32(esp, 0x00080000u); /* 0x36098448: push 0x80000 */
    235     ecx = esi; /* 0x3609844D: mov ecx, esi */
    236     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3609844F: call dword ptr [edx + 0x18] */
    237     RECOMP_FLAGS_IN();
    238     eax = MEM32(esi); /* 0x36098452: mov eax, dword ptr [esi] */
    239     PUSH32(esp, 0x200u); /* 0x36098454: push 0x200 */
    240     ecx = esi; /* 0x36098459: mov ecx, esi */
    241     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x3609845B: call dword ptr [eax + 0x18] */
    242     RECOMP_FLAGS_IN();
    243     edi = POP32_VAL(esp); /* 0x3609845E: pop edi */
    244     esi = POP32_VAL(esp); /* 0x3609845F: pop esi */
    245     ebp = POP32_VAL(esp); /* 0x36098460: pop ebp */
    246     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098461: ret 4 */
    247     RECOMP_REGS_OUT();
    248 }
    249 
    250 void sub_36098470(void) {
    251     int _fpu_cmp = 0;
    252     uint32_t _cf = 0;
    253     int _df = 1;
    254     uint32_t _flag_k = FK_NONE;
    255     uint32_t _flag_a = 0, _flag_b = 0;
    256     uint32_t _itail_tgt = 0;
    257     RECOMP_REGS_LOCALS
    258     RECOMP_ENTER(0x36098470u);
    259 
    260 L_36098470:
    261     PUSH32(esp, ebp); /* 0x36098470: push ebp */
    262     ebp = esp; /* 0x36098471: mov ebp, esp */
    263     PUSH32(esp, esi); /* 0x36098473: push esi */
    264     esi = ecx; /* 0x36098474: mov esi, ecx */
    265     SET_LO8(eax, MEM8(esi + 0x1BD)); /* 0x36098476: mov al, byte ptr [esi + 0x1bd] */
    266     /* test LO8(eax), LO8(eax) */ /* 0x3609847C: test al, al */
    267     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    268     _cf = 0;
    269     _flag_k = FK_NARROW(FK_TEST, 24);
    270     if (TEST_NZ(_flag_a, _flag_b)) goto L_36098495; /* 0x3609847E: jne 0x36098495 */
    271 L_36098480:
    272     eax = MEM32(ebp + 0x8); /* 0x36098480: mov eax, dword ptr [ebp + 8] */
    273     PUSH32(esp, eax); /* 0x36098483: push eax */
    274     RECOMP_ICALL(0x360A8DF0u); /* 0x36098484: call 0x360a8df0 */ /* not lifted */
    275     RECOMP_FLAGS_IN();
    276     edx = MEM32(esi); /* 0x36098489: mov edx, dword ptr [esi] */
    277     PUSH32(esp, 1); /* 0x3609848B: push 1 */
    278     ecx = esi; /* 0x3609848D: mov ecx, esi */
    279     RECOMP_ICALL(MEM32(edx + 0x130)); /* 0x3609848F: call dword ptr [edx + 0x130] */
    280     RECOMP_FLAGS_IN();
    281 L_36098495:
    282     esi = POP32_VAL(esp); /* 0x36098495: pop esi */
    283     ebp = POP32_VAL(esp); /* 0x36098496: pop ebp */
    284     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098497: ret 4 */
    285     RECOMP_REGS_OUT();
    286 }
    287 
    288 void sub_360984A0(void) {
    289     int _fpu_cmp = 0;
    290     uint32_t _cf = 0;
    291     int _df = 1;
    292     uint32_t _flag_k = FK_NONE;
    293     uint32_t _flag_a = 0, _flag_b = 0;
    294     uint32_t _itail_tgt = 0;
    295     RECOMP_REGS_LOCALS
    296     RECOMP_ENTER(0x360984A0u);
    297 
    298 L_360984A0:
    299     PUSH32(esp, ebp); /* 0x360984A0: push ebp */
    300     ebp = esp; /* 0x360984A1: mov ebp, esp */
    301     PUSH32(esp, esi); /* 0x360984A3: push esi */
    302     esi = ecx; /* 0x360984A4: mov esi, ecx */
    303     SET_LO8(eax, MEM8(esi + 0x1BC)); /* 0x360984A6: mov al, byte ptr [esi + 0x1bc] */
    304     /* test LO8(eax), LO8(eax) */ /* 0x360984AC: test al, al */
    305     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    306     _cf = 0;
    307     _flag_k = FK_NARROW(FK_TEST, 24);
    308     if (TEST_Z(_flag_a, _flag_b)) goto L_360984C5; /* 0x360984AE: je 0x360984c5 */
    309 L_360984B0:
    310     eax = MEM32(ebp + 0x8); /* 0x360984B0: mov eax, dword ptr [ebp + 8] */
    311     PUSH32(esp, eax); /* 0x360984B3: push eax */
    312     RECOMP_ICALL(0x360A8E00u); /* 0x360984B4: call 0x360a8e00 */ /* not lifted */
    313     RECOMP_FLAGS_IN();
    314     edx = MEM32(esi); /* 0x360984B9: mov edx, dword ptr [esi] */
    315     PUSH32(esp, 0); /* 0x360984BB: push 0 */
    316     ecx = esi; /* 0x360984BD: mov ecx, esi */
    317     RECOMP_ICALL(MEM32(edx + 0x12C)); /* 0x360984BF: call dword ptr [edx + 0x12c] */
    318     RECOMP_FLAGS_IN();
    319 L_360984C5:
    320     esi = POP32_VAL(esp); /* 0x360984C5: pop esi */
    321     ebp = POP32_VAL(esp); /* 0x360984C6: pop ebp */
    322     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360984C7: ret 4 */
    323     RECOMP_REGS_OUT();
    324 }
    325 
    326 void sub_360984D0(void) {
    327     int _fpu_cmp = 0;
    328     uint32_t _cf = 0;
    329     int _df = 1;
    330     uint32_t _flag_k = FK_NONE;
    331     uint32_t _flag_a = 0, _flag_b = 0;
    332     uint32_t _itail_tgt = 0;
    333     RECOMP_REGS_LOCALS
    334     RECOMP_ENTER(0x360984D0u);
    335 
    336     goto L_360984D0;
    337 L_36097E00:
    338     PUSH32(esp, ebp); /* 0x36097E00: push ebp */
    339     ebp = esp; /* 0x36097E01: mov ebp, esp */
    340     PUSH32(esp, esi); /* 0x36097E03: push esi */
    341     esi = ecx; /* 0x36097E04: mov esi, ecx */
    342     RECOMP_ICALL(0x3608B140u); /* 0x36097E06: call 0x3608b140 */ /* not lifted */
    343     RECOMP_FLAGS_IN();
    344     /* test MEM8(ebp + 0x8), 1 */ /* 0x36097E0B: test byte ptr [ebp + 8], 1 */
    345     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    346     _cf = 0;
    347     _flag_k = FK_NARROW(FK_TEST, 24);
    348     if (TEST_Z(_flag_a, _flag_b)) goto L_36097E1A; /* 0x36097E0F: je 0x36097e1a */
    349 L_36097E11:
    350     PUSH32(esp, esi); /* 0x36097E11: push esi */
    351     RECOMP_ICALL(0x3615FCC4u); /* 0x36097E12: call 0x3615fcc4 */ /* not lifted */
    352     RECOMP_FLAGS_IN();
    353     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    354     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    355     esp = esp + 4; /* 0x36097E17: add esp, 4 */
    356     _flag_k = FK_ADD;
    357 L_36097E1A:
    358     eax = esi; /* 0x36097E1A: mov eax, esi */
    359     esi = POP32_VAL(esp); /* 0x36097E1C: pop esi */
    360     ebp = POP32_VAL(esp); /* 0x36097E1D: pop ebp */
    361     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097E1E: ret 4 */
    362 L_360984D0:
    363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    365     ecx = ecx - 8; /* 0x360984D0: sub ecx, 8 */
    366     _flag_k = FK_CMP;
    367     RECOMP_BACKEDGE();
    368     goto L_36097E00; /* 0x360984D3: jmp 0x36097e00 */
    369     { RECOMP_REGS_OUT(); return; } /* end of function */
    370     RECOMP_REGS_OUT();
    371 }
    372 
    373 void sub_360984E0(void) {
    374     int _fpu_cmp = 0;
    375     uint32_t _cf = 0;
    376     int _df = 1;
    377     uint32_t _flag_k = FK_NONE;
    378     uint32_t _flag_a = 0, _flag_b = 0;
    379     uint32_t _itail_tgt = 0;
    380     RECOMP_REGS_LOCALS
    381     RECOMP_ENTER(0x360984E0u);
    382 
    383     goto L_360984E0;
    384 L_36097E00:
    385     PUSH32(esp, ebp); /* 0x36097E00: push ebp */
    386     ebp = esp; /* 0x36097E01: mov ebp, esp */
    387     PUSH32(esp, esi); /* 0x36097E03: push esi */
    388     esi = ecx; /* 0x36097E04: mov esi, ecx */
    389     RECOMP_ICALL(0x3608B140u); /* 0x36097E06: call 0x3608b140 */ /* not lifted */
    390     RECOMP_FLAGS_IN();
    391     /* test MEM8(ebp + 0x8), 1 */ /* 0x36097E0B: test byte ptr [ebp + 8], 1 */
    392     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    393     _cf = 0;
    394     _flag_k = FK_NARROW(FK_TEST, 24);
    395     if (TEST_Z(_flag_a, _flag_b)) goto L_36097E1A; /* 0x36097E0F: je 0x36097e1a */
    396 L_36097E11:
    397     PUSH32(esp, esi); /* 0x36097E11: push esi */
    398     RECOMP_ICALL(0x3615FCC4u); /* 0x36097E12: call 0x3615fcc4 */ /* not lifted */
    399     RECOMP_FLAGS_IN();
    400     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    402     esp = esp + 4; /* 0x36097E17: add esp, 4 */
    403     _flag_k = FK_ADD;
    404 L_36097E1A:
    405     eax = esi; /* 0x36097E1A: mov eax, esi */
    406     esi = POP32_VAL(esp); /* 0x36097E1C: pop esi */
    407     ebp = POP32_VAL(esp); /* 0x36097E1D: pop ebp */
    408     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097E1E: ret 4 */
    409 L_360984E0:
    410     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
    411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    412     ecx = ecx - 0x40u; /* 0x360984E0: sub ecx, 0x40 */
    413     _flag_k = FK_CMP;
    414     RECOMP_BACKEDGE();
    415     goto L_36097E00; /* 0x360984E3: jmp 0x36097e00 */
    416     { RECOMP_REGS_OUT(); return; } /* end of function */
    417     RECOMP_REGS_OUT();
    418 }
    419 
    420 void sub_360984F0(void) {
    421     int _fpu_cmp = 0;
    422     uint32_t _cf = 0;
    423     int _df = 1;
    424     uint32_t _flag_k = FK_NONE;
    425     uint32_t _flag_a = 0, _flag_b = 0;
    426     uint32_t _itail_tgt = 0;
    427     RECOMP_REGS_LOCALS
    428     RECOMP_ENTER(0x360984F0u);
    429 
    430     goto L_360984F0;
    431 L_36097E00:
    432     PUSH32(esp, ebp); /* 0x36097E00: push ebp */
    433     ebp = esp; /* 0x36097E01: mov ebp, esp */
    434     PUSH32(esp, esi); /* 0x36097E03: push esi */
    435     esi = ecx; /* 0x36097E04: mov esi, ecx */
    436     RECOMP_ICALL(0x3608B140u); /* 0x36097E06: call 0x3608b140 */ /* not lifted */
    437     RECOMP_FLAGS_IN();
    438     /* test MEM8(ebp + 0x8), 1 */ /* 0x36097E0B: test byte ptr [ebp + 8], 1 */
    439     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    440     _cf = 0;
    441     _flag_k = FK_NARROW(FK_TEST, 24);
    442     if (TEST_Z(_flag_a, _flag_b)) goto L_36097E1A; /* 0x36097E0F: je 0x36097e1a */
    443 L_36097E11:
    444     PUSH32(esp, esi); /* 0x36097E11: push esi */
    445     RECOMP_ICALL(0x3615FCC4u); /* 0x36097E12: call 0x3615fcc4 */ /* not lifted */
    446     RECOMP_FLAGS_IN();
    447     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    448     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    449     esp = esp + 4; /* 0x36097E17: add esp, 4 */
    450     _flag_k = FK_ADD;
    451 L_36097E1A:
    452     eax = esi; /* 0x36097E1A: mov eax, esi */
    453     esi = POP32_VAL(esp); /* 0x36097E1C: pop esi */
    454     ebp = POP32_VAL(esp); /* 0x36097E1D: pop ebp */
    455     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097E1E: ret 4 */
    456 L_360984F0:
    457     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u);
    458     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    459     ecx = ecx - 0x80u; /* 0x360984F0: sub ecx, 0x80 */
    460     _flag_k = FK_CMP;
    461     RECOMP_BACKEDGE();
    462     goto L_36097E00; /* 0x360984F6: jmp 0x36097e00 */
    463     { RECOMP_REGS_OUT(); return; } /* end of function */
    464     RECOMP_REGS_OUT();
    465 }
    466 
    467 void sub_36098500(void) {
    468     int _fpu_cmp = 0;
    469     uint32_t _cf = 0;
    470     int _df = 1;
    471     uint32_t _flag_k = FK_NONE;
    472     uint32_t _flag_a = 0, _flag_b = 0;
    473     uint32_t _itail_tgt = 0;
    474     RECOMP_REGS_LOCALS
    475     RECOMP_ENTER(0x36098500u);
    476 
    477     goto L_36098500;
    478 L_36097E00:
    479     PUSH32(esp, ebp); /* 0x36097E00: push ebp */
    480     ebp = esp; /* 0x36097E01: mov ebp, esp */
    481     PUSH32(esp, esi); /* 0x36097E03: push esi */
    482     esi = ecx; /* 0x36097E04: mov esi, ecx */
    483     RECOMP_ICALL(0x3608B140u); /* 0x36097E06: call 0x3608b140 */ /* not lifted */
    484     RECOMP_FLAGS_IN();
    485     /* test MEM8(ebp + 0x8), 1 */ /* 0x36097E0B: test byte ptr [ebp + 8], 1 */
    486     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    487     _cf = 0;
    488     _flag_k = FK_NARROW(FK_TEST, 24);
    489     if (TEST_Z(_flag_a, _flag_b)) goto L_36097E1A; /* 0x36097E0F: je 0x36097e1a */
    490 L_36097E11:
    491     PUSH32(esp, esi); /* 0x36097E11: push esi */
    492     RECOMP_ICALL(0x3615FCC4u); /* 0x36097E12: call 0x3615fcc4 */ /* not lifted */
    493     RECOMP_FLAGS_IN();
    494     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    495     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    496     esp = esp + 4; /* 0x36097E17: add esp, 4 */
    497     _flag_k = FK_ADD;
    498 L_36097E1A:
    499     eax = esi; /* 0x36097E1A: mov eax, esi */
    500     esi = POP32_VAL(esp); /* 0x36097E1C: pop esi */
    501     ebp = POP32_VAL(esp); /* 0x36097E1D: pop ebp */
    502     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097E1E: ret 4 */
    503 L_36098500:
    504     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu);
    505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    506     ecx = ecx - 0x8Cu; /* 0x36098500: sub ecx, 0x8c */
    507     _flag_k = FK_CMP;
    508     RECOMP_BACKEDGE();
    509     goto L_36097E00; /* 0x36098506: jmp 0x36097e00 */
    510     { RECOMP_REGS_OUT(); return; } /* end of function */
    511     RECOMP_REGS_OUT();
    512 }
    513 
    514 void sub_36098510(void) {
    515     int _fpu_cmp = 0;
    516     uint32_t _cf = 0;
    517     int _df = 1;
    518     uint32_t _flag_k = FK_NONE;
    519     uint32_t _flag_a = 0, _flag_b = 0;
    520     uint32_t _itail_tgt = 0;
    521     RECOMP_REGS_LOCALS
    522     RECOMP_ENTER(0x36098510u);
    523 
    524     goto L_36098510;
    525 L_36097E00:
    526     PUSH32(esp, ebp); /* 0x36097E00: push ebp */
    527     ebp = esp; /* 0x36097E01: mov ebp, esp */
    528     PUSH32(esp, esi); /* 0x36097E03: push esi */
    529     esi = ecx; /* 0x36097E04: mov esi, ecx */
    530     RECOMP_ICALL(0x3608B140u); /* 0x36097E06: call 0x3608b140 */ /* not lifted */
    531     RECOMP_FLAGS_IN();
    532     /* test MEM8(ebp + 0x8), 1 */ /* 0x36097E0B: test byte ptr [ebp + 8], 1 */
    533     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    534     _cf = 0;
    535     _flag_k = FK_NARROW(FK_TEST, 24);
    536     if (TEST_Z(_flag_a, _flag_b)) goto L_36097E1A; /* 0x36097E0F: je 0x36097e1a */
    537 L_36097E11:
    538     PUSH32(esp, esi); /* 0x36097E11: push esi */
    539     RECOMP_ICALL(0x3615FCC4u); /* 0x36097E12: call 0x3615fcc4 */ /* not lifted */
    540     RECOMP_FLAGS_IN();
    541     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    542     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    543     esp = esp + 4; /* 0x36097E17: add esp, 4 */
    544     _flag_k = FK_ADD;
    545 L_36097E1A:
    546     eax = esi; /* 0x36097E1A: mov eax, esi */
    547     esi = POP32_VAL(esp); /* 0x36097E1C: pop esi */
    548     ebp = POP32_VAL(esp); /* 0x36097E1D: pop ebp */
    549     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36097E1E: ret 4 */
    550 L_36098510:
    551     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xACu);
    552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    553     ecx = ecx - 0xACu; /* 0x36098510: sub ecx, 0xac */
    554     _flag_k = FK_CMP;
    555     RECOMP_BACKEDGE();
    556     goto L_36097E00; /* 0x36098516: jmp 0x36097e00 */
    557     { RECOMP_REGS_OUT(); return; } /* end of function */
    558     RECOMP_REGS_OUT();
    559 }
    560 
    561 void sub_36098520(void) {
    562     int _fpu_cmp = 0;
    563     uint32_t _cf = 0;
    564     int _df = 1;
    565     uint32_t _flag_k = FK_NONE;
    566     uint32_t _flag_a = 0, _flag_b = 0;
    567     uint32_t _itail_tgt = 0;
    568     RECOMP_REGS_LOCALS
    569     RECOMP_ENTER(0x36098520u);
    570 
    571     goto L_36098520;
    572 L_36098180:
    573     PUSH32(esp, esi); /* 0x36098180: push esi */
    574     esi = ecx; /* 0x36098181: mov esi, ecx */
    575     ecx = esi + 0x8C; /* 0x36098183: lea ecx, [esi + 0x8c] */
    576     RECOMP_ICALL(MEM32(0x3616FC6C)); /* 0x36098189: call dword ptr [0x3616fc6c] */
    577     RECOMP_FLAGS_IN();
    578     eax = MEM32(esi); /* 0x3609818F: mov eax, dword ptr [esi] */
    579     PUSH32(esp, 1); /* 0x36098191: push 1 */
    580     ecx = esi; /* 0x36098193: mov ecx, esi */
    581     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x36098195: call dword ptr [eax + 0x18] */
    582     RECOMP_FLAGS_IN();
    583     esi = POP32_VAL(esp); /* 0x36098198: pop esi */
    584     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098199: ret  */
    585 L_36098520:
    586     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1C0u);
    587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    588     ecx = ecx - 0x1C0u; /* 0x36098520: sub ecx, 0x1c0 */
    589     _flag_k = FK_CMP;
    590     RECOMP_BACKEDGE();
    591     goto L_36098180; /* 0x36098526: jmp 0x36098180 */
    592     { RECOMP_REGS_OUT(); return; } /* end of function */
    593     RECOMP_REGS_OUT();
    594 }
    595 
    596 void sub_36098530(void) {
    597     int _fpu_cmp = 0;
    598     uint32_t _cf = 0;
    599     int _df = 1;
    600     uint32_t _flag_k = FK_NONE;
    601     uint32_t _flag_a = 0, _flag_b = 0;
    602     uint32_t _itail_tgt = 0;
    603     RECOMP_REGS_LOCALS
    604     RECOMP_ENTER(0x36098530u);
    605 
    606     goto L_36098530;
    607 L_360981A0:
    608     PUSH32(esp, esi); /* 0x360981A0: push esi */
    609     esi = ecx; /* 0x360981A1: mov esi, ecx */
    610     ecx = esi + 0x8C; /* 0x360981A3: lea ecx, [esi + 0x8c] */
    611     RECOMP_ICALL(MEM32(0x3616FCA0)); /* 0x360981A9: call dword ptr [0x3616fca0] */
    612     RECOMP_FLAGS_IN();
    613     edx = MEM32(esi + 0x34); /* 0x360981AF: mov edx, dword ptr [esi + 0x34] */
    614     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
    615     edx = edx & 0xFFFFFFFEu; /* 0x360981B2: and edx, 0xfffffffe */
    616     _cf = 0;
    617     _flag_k = FK_TEST;
    618     eax = edx; /* 0x360981B5: mov eax, edx */
    619     PUSH32(esp, eax); /* 0x360981B7: push eax */
    620     MEM32(esi + 0x34) = edx; /* 0x360981B8: mov dword ptr [esi + 0x34], edx */
    621     edx = MEM32(esi); /* 0x360981BB: mov edx, dword ptr [esi] */
    622     PUSH32(esp, 0); /* 0x360981BD: push 0 */
    623     ecx = esi; /* 0x360981BF: mov ecx, esi */
    624     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360981C1: call dword ptr [edx + 8] */
    625     RECOMP_FLAGS_IN();
    626     esi = POP32_VAL(esp); /* 0x360981C4: pop esi */
    627     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360981C5: ret  */
    628 L_36098530:
    629     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1C0u);
    630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    631     ecx = ecx - 0x1C0u; /* 0x36098530: sub ecx, 0x1c0 */
    632     _flag_k = FK_CMP;
    633     RECOMP_BACKEDGE();
    634     goto L_360981A0; /* 0x36098536: jmp 0x360981a0 */
    635     { RECOMP_REGS_OUT(); return; } /* end of function */
    636     RECOMP_REGS_OUT();
    637 }
    638 
    639 void sub_36098540(void) {
    640     int _fpu_cmp = 0;
    641     uint32_t _cf = 0;
    642     int _df = 1;
    643     uint32_t _flag_k = FK_NONE;
    644     uint32_t _flag_a = 0, _flag_b = 0;
    645     uint32_t _itail_tgt = 0;
    646     RECOMP_REGS_LOCALS
    647     RECOMP_ENTER(0x36098540u);
    648 
    649 L_36098540:
    650     PUSH32(esp, ebp); /* 0x36098540: push ebp */
    651     ebp = esp; /* 0x36098541: mov ebp, esp */
    652     PUSH32(esp, 0xFFFFFFFFu); /* 0x36098543: push -1 */
    653     PUSH32(esp, 0x36166648u); /* 0x36098545: push 0x36166648 */
    654     eax = MEM32(FS_BASE + (0)); /* 0x3609854A: mov eax, dword ptr fs:[0] */
    655     PUSH32(esp, eax); /* 0x36098550: push eax */
    656     MEM32(FS_BASE + (0)) = esp; /* 0x36098551: mov dword ptr fs:[0], esp */
    657     PUSH32(esp, ecx); /* 0x36098558: push ecx */
    658     PUSH32(esp, esi); /* 0x36098559: push esi */
    659     esi = ecx; /* 0x3609855A: mov esi, ecx */
    660     MEM32(ebp + (-0x10)) = esi; /* 0x3609855C: mov dword ptr [ebp - 0x10], esi */
    661     RECOMP_ICALL(0x3608E780u); /* 0x3609855F: call 0x3608e780 */ /* not lifted */
    662     RECOMP_FLAGS_IN();
    663     eax = MEM32(ebp + 0x8); /* 0x36098564: mov eax, dword ptr [ebp + 8] */
    664     MEM32(esi + 0x80) = eax; /* 0x36098567: mov dword ptr [esi + 0x80], eax */
    665     eax = MEM32(ebp + 0xC); /* 0x3609856D: mov eax, dword ptr [ebp + 0xc] */
    666     MEM32(esi + 0x84) = eax; /* 0x36098570: mov dword ptr [esi + 0x84], eax */
    667     PUSH32(esp, eax); /* 0x36098576: push eax */
    668     PUSH32(esp, 0x17u); /* 0x36098577: push 0x17 */
    669     ecx = esi; /* 0x36098579: mov ecx, esi */
    670     MEM32(ebp + (-0x4)) = 0; /* 0x3609857B: mov dword ptr [ebp - 4], 0 */
    671     MEM32(esi) = 0x3617347Cu; /* 0x36098582: mov dword ptr [esi], 0x3617347c */
    672     MEM32(esi + 0x8) = 0x3617346Cu; /* 0x36098588: mov dword ptr [esi + 8], 0x3617346c */
    673     MEM32(esi + 0x40) = 0x36173464u; /* 0x3609858F: mov dword ptr [esi + 0x40], 0x36173464 */
    674     MEM32(esi + 0x4C) = 0x3617345Cu; /* 0x36098596: mov dword ptr [esi + 0x4c], 0x3617345c */
    675     RECOMP_ICALL(0x3602FE10u); /* 0x3609859D: call 0x3602fe10 */ /* not lifted */
    676     RECOMP_FLAGS_IN();
    677     ecx = esi; /* 0x360985A2: mov ecx, esi */
    678     RECOMP_ICALL(0x36098600u); /* 0x360985A4: call 0x36098600 */ /* not lifted */
    679     RECOMP_FLAGS_IN();
    680     ecx = MEM32(esi + 0x4); /* 0x360985A9: mov ecx, dword ptr [esi + 4] */
    681     edx = MEM32(ecx + 0x4); /* 0x360985AC: mov edx, dword ptr [ecx + 4] */
    682     ecx = MEM32(ebp + (-0xC)); /* 0x360985AF: mov ecx, dword ptr [ebp - 0xc] */
    683     MEM32(edx + 0x64) = 0x000FDE85u; /* 0x360985B2: mov dword ptr [edx + 0x64], 0xfde85 */
    684     MEM8(esi + 0x98) = (uint8_t)(0); /* 0x360985B9: mov byte ptr [esi + 0x98], 0 */
    685     eax = esi; /* 0x360985C0: mov eax, esi */
    686     esi = POP32_VAL(esp); /* 0x360985C2: pop esi */
    687     MEM32(FS_BASE + (0)) = ecx; /* 0x360985C3: mov dword ptr fs:[0], ecx */
    688     esp = ebp; /* 0x360985CA: mov esp, ebp */
    689     ebp = POP32_VAL(esp); /* 0x360985CC: pop ebp */
    690     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360985CD: ret 8 */
    691     RECOMP_REGS_OUT();
    692 }
    693 
    694 void sub_36098576(void) {
    695     int _fpu_cmp = 0;
    696     uint32_t _cf = 0;
    697     int _df = 1;
    698     uint32_t _flag_k = FK_NONE;
    699     uint32_t _flag_a = 0, _flag_b = 0;
    700     uint32_t _itail_tgt = 0;
    701     RECOMP_REGS_LOCALS
    702     RECOMP_ENTER(0x36098576u);
    703 
    704 L_36098576:
    705     PUSH32(esp, eax); /* 0x36098576: push eax */
    706     PUSH32(esp, 0x17u); /* 0x36098577: push 0x17 */
    707     ecx = esi; /* 0x36098579: mov ecx, esi */
    708     MEM32(ebp + (-0x4)) = 0; /* 0x3609857B: mov dword ptr [ebp - 4], 0 */
    709     MEM32(esi) = 0x3617347Cu; /* 0x36098582: mov dword ptr [esi], 0x3617347c */
    710     MEM32(esi + 0x8) = 0x3617346Cu; /* 0x36098588: mov dword ptr [esi + 8], 0x3617346c */
    711     MEM32(esi + 0x40) = 0x36173464u; /* 0x3609858F: mov dword ptr [esi + 0x40], 0x36173464 */
    712     MEM32(esi + 0x4C) = 0x3617345Cu; /* 0x36098596: mov dword ptr [esi + 0x4c], 0x3617345c */
    713     RECOMP_ICALL(0x3602FE10u); /* 0x3609859D: call 0x3602fe10 */ /* not lifted */
    714     RECOMP_FLAGS_IN();
    715     ecx = esi; /* 0x360985A2: mov ecx, esi */
    716     RECOMP_ICALL(0x36098600u); /* 0x360985A4: call 0x36098600 */ /* not lifted */
    717     RECOMP_FLAGS_IN();
    718     ecx = MEM32(esi + 0x4); /* 0x360985A9: mov ecx, dword ptr [esi + 4] */
    719     edx = MEM32(ecx + 0x4); /* 0x360985AC: mov edx, dword ptr [ecx + 4] */
    720     ecx = MEM32(ebp + (-0xC)); /* 0x360985AF: mov ecx, dword ptr [ebp - 0xc] */
    721     MEM32(edx + 0x64) = 0x000FDE85u; /* 0x360985B2: mov dword ptr [edx + 0x64], 0xfde85 */
    722     MEM8(esi + 0x98) = (uint8_t)(0); /* 0x360985B9: mov byte ptr [esi + 0x98], 0 */
    723     eax = esi; /* 0x360985C0: mov eax, esi */
    724     esi = POP32_VAL(esp); /* 0x360985C2: pop esi */
    725     MEM32(FS_BASE + (0)) = ecx; /* 0x360985C3: mov dword ptr fs:[0], ecx */
    726     esp = ebp; /* 0x360985CA: mov esp, ebp */
    727     ebp = POP32_VAL(esp); /* 0x360985CC: pop ebp */
    728     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360985CD: ret 8 */
    729     RECOMP_REGS_OUT();
    730 }
    731 
    732 void sub_360985C2(void) {
    733     int _fpu_cmp = 0;
    734     uint32_t _cf = 0;
    735     int _df = 1;
    736     uint32_t _flag_k = FK_NONE;
    737     uint32_t _flag_a = 0, _flag_b = 0;
    738     uint32_t _itail_tgt = 0;
    739     RECOMP_REGS_LOCALS
    740     RECOMP_ENTER(0x360985C2u);
    741 
    742 L_360985C2:
    743     esi = POP32_VAL(esp); /* 0x360985C2: pop esi */
    744     MEM32(FS_BASE + (0)) = ecx; /* 0x360985C3: mov dword ptr fs:[0], ecx */
    745     esp = ebp; /* 0x360985CA: mov esp, ebp */
    746     ebp = POP32_VAL(esp); /* 0x360985CC: pop ebp */
    747     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360985CD: ret 8 */
    748     RECOMP_REGS_OUT();
    749 }
    750 
    751 void sub_360985D0(void) {
    752     int _fpu_cmp = 0;
    753     uint32_t _cf = 0;
    754     int _df = 1;
    755     uint32_t _flag_k = FK_NONE;
    756     uint32_t _flag_a = 0, _flag_b = 0;
    757     uint32_t _itail_tgt = 0;
    758     RECOMP_REGS_LOCALS
    759     RECOMP_ENTER(0x360985D0u);
    760 
    761 L_360985D0:
    762     PUSH32(esp, ebp); /* 0x360985D0: push ebp */
    763     ebp = esp; /* 0x360985D1: mov ebp, esp */
    764     PUSH32(esp, esi); /* 0x360985D3: push esi */
    765     esi = ecx; /* 0x360985D4: mov esi, ecx */
    766     RECOMP_ICALL(0x360989F0u); /* 0x360985D6: call 0x360989f0 */ /* not lifted */
    767     RECOMP_FLAGS_IN();
    768     /* test MEM8(ebp + 0x8), 1 */ /* 0x360985DB: test byte ptr [ebp + 8], 1 */
    769     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    770     _cf = 0;
    771     _flag_k = FK_NARROW(FK_TEST, 24);
    772     if (TEST_Z(_flag_a, _flag_b)) goto L_360985EA; /* 0x360985DF: je 0x360985ea */
    773 L_360985E1:
    774     PUSH32(esp, esi); /* 0x360985E1: push esi */
    775     RECOMP_ICALL(0x3615FCC4u); /* 0x360985E2: call 0x3615fcc4 */ /* not lifted */
    776     RECOMP_FLAGS_IN();
    777     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    778     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    779     esp = esp + 4; /* 0x360985E7: add esp, 4 */
    780     _flag_k = FK_ADD;
    781 L_360985EA:
    782     eax = esi; /* 0x360985EA: mov eax, esi */
    783     esi = POP32_VAL(esp); /* 0x360985EC: pop esi */
    784     ebp = POP32_VAL(esp); /* 0x360985ED: pop ebp */
    785     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360985EE: ret 4 */
    786     RECOMP_REGS_OUT();
    787 }
    788 
    789 void sub_36098600(void) {
    790     int _fpu_cmp = 0;
    791     uint32_t _cf = 0;
    792     int _df = 1;
    793     uint32_t _flag_k = FK_NONE;
    794     uint32_t _flag_a = 0, _flag_b = 0;
    795     uint32_t _itail_tgt = 0;
    796     RECOMP_REGS_LOCALS
    797     RECOMP_ENTER(0x36098600u);
    798 
    799 L_36098600:
    800     PUSH32(esp, ebx); /* 0x36098600: push ebx */
    801     PUSH32(esp, esi); /* 0x36098601: push esi */
    802     PUSH32(esp, edi); /* 0x36098602: push edi */
    803     esi = ecx; /* 0x36098603: mov esi, ecx */
    804     eax = MEM32(esi); /* 0x36098605: mov eax, dword ptr [esi] */
    805     PUSH32(esp, 0xAu); /* 0x36098607: push 0xa */
    806     PUSH32(esp, 1); /* 0x36098609: push 1 */
    807     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3609860B: call dword ptr [eax + 0xc] */
    808     RECOMP_FLAGS_IN();
    809     edx = MEM32(esi); /* 0x3609860E: mov edx, dword ptr [esi] */
    810     PUSH32(esp, 0x3E8u); /* 0x36098610: push 0x3e8 */
    811     PUSH32(esp, 8); /* 0x36098615: push 8 */
    812     ecx = esi; /* 0x36098617: mov ecx, esi */
    813     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098619: call dword ptr [edx + 0xc] */
    814     RECOMP_FLAGS_IN();
    815     eax = MEM32(esi); /* 0x3609861C: mov eax, dword ptr [esi] */
    816     PUSH32(esp, 0); /* 0x3609861E: push 0 */
    817     PUSH32(esp, 0x175u); /* 0x36098620: push 0x175 */
    818     ecx = esi; /* 0x36098625: mov ecx, esi */
    819     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098627: call dword ptr [eax + 0xc] */
    820     RECOMP_FLAGS_IN();
    821     edx = MEM32(esi); /* 0x3609862A: mov edx, dword ptr [esi] */
    822     PUSH32(esp, 0); /* 0x3609862C: push 0 */
    823     PUSH32(esp, 0x38u); /* 0x3609862E: push 0x38 */
    824     ecx = esi; /* 0x36098630: mov ecx, esi */
    825     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098632: call dword ptr [edx + 0xc] */
    826     RECOMP_FLAGS_IN();
    827     eax = MEM32(esi); /* 0x36098635: mov eax, dword ptr [esi] */
    828     PUSH32(esp, 0); /* 0x36098637: push 0 */
    829     PUSH32(esp, 0x9Cu); /* 0x36098639: push 0x9c */
    830     ecx = esi; /* 0x3609863E: mov ecx, esi */
    831     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098640: call dword ptr [eax + 0xc] */
    832     RECOMP_FLAGS_IN();
    833     edx = MEM32(esi); /* 0x36098643: mov edx, dword ptr [esi] */
    834     PUSH32(esp, 0); /* 0x36098645: push 0 */
    835     PUSH32(esp, 0x19u); /* 0x36098647: push 0x19 */
    836     ecx = esi; /* 0x36098649: mov ecx, esi */
    837     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3609864B: call dword ptr [edx + 0xc] */
    838     RECOMP_FLAGS_IN();
    839     eax = MEM32(esi); /* 0x3609864E: mov eax, dword ptr [esi] */
    840     PUSH32(esp, 0); /* 0x36098650: push 0 */
    841     PUSH32(esp, 0x14Cu); /* 0x36098652: push 0x14c */
    842     ecx = esi; /* 0x36098657: mov ecx, esi */
    843     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098659: call dword ptr [eax + 0xc] */
    844     RECOMP_FLAGS_IN();
    845     edx = MEM32(esi); /* 0x3609865C: mov edx, dword ptr [esi] */
    846     PUSH32(esp, 0); /* 0x3609865E: push 0 */
    847     PUSH32(esp, 0x160u); /* 0x36098660: push 0x160 */
    848     ecx = esi; /* 0x36098665: mov ecx, esi */
    849     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098667: call dword ptr [edx + 0xc] */
    850     RECOMP_FLAGS_IN();
    851     eax = MEM32(esi); /* 0x3609866A: mov eax, dword ptr [esi] */
    852     PUSH32(esp, 0); /* 0x3609866C: push 0 */
    853     PUSH32(esp, 0xEu); /* 0x3609866E: push 0xe */
    854     ecx = esi; /* 0x36098670: mov ecx, esi */
    855     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098672: call dword ptr [eax + 0xc] */
    856     RECOMP_FLAGS_IN();
    857     edx = MEM32(esi); /* 0x36098675: mov edx, dword ptr [esi] */
    858     PUSH32(esp, 0); /* 0x36098677: push 0 */
    859     PUSH32(esp, 0xFu); /* 0x36098679: push 0xf */
    860     ecx = esi; /* 0x3609867B: mov ecx, esi */
    861     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3609867D: call dword ptr [edx + 0xc] */
    862     RECOMP_FLAGS_IN();
    863     eax = MEM32(esi); /* 0x36098680: mov eax, dword ptr [esi] */
    864     PUSH32(esp, 1); /* 0x36098682: push 1 */
    865     PUSH32(esp, 0); /* 0x36098684: push 0 */
    866     ecx = esi; /* 0x36098686: mov ecx, esi */
    867     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098688: call dword ptr [eax + 0xc] */
    868     RECOMP_FLAGS_IN();
    869     edx = MEM32(esi); /* 0x3609868B: mov edx, dword ptr [esi] */
    870     PUSH32(esp, 0xAu); /* 0x3609868D: push 0xa */
    871     PUSH32(esp, 0x1Bu); /* 0x3609868F: push 0x1b */
    872     ecx = esi; /* 0x36098691: mov ecx, esi */
    873     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098693: call dword ptr [edx + 0xc] */
    874     RECOMP_FLAGS_IN();
    875     eax = MEM32(esi); /* 0x36098696: mov eax, dword ptr [esi] */
    876     PUSH32(esp, 0); /* 0x36098698: push 0 */
    877     PUSH32(esp, 0x48u); /* 0x3609869A: push 0x48 */
    878     ecx = esi; /* 0x3609869C: mov ecx, esi */
    879     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3609869E: call dword ptr [eax + 0xc] */
    880     RECOMP_FLAGS_IN();
    881     eax = MEM32(esi + 0x84); /* 0x360986A1: mov eax, dword ptr [esi + 0x84] */
    882     edx = MEM32(esi); /* 0x360986A7: mov edx, dword ptr [esi] */
    883     PUSH32(esp, eax); /* 0x360986A9: push eax */
    884     PUSH32(esp, 0x4Bu); /* 0x360986AA: push 0x4b */
    885     ecx = esi; /* 0x360986AC: mov ecx, esi */
    886     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360986AE: call dword ptr [edx + 0xc] */
    887     RECOMP_FLAGS_IN();
    888     edx = MEM32(esi); /* 0x360986B1: mov edx, dword ptr [esi] */
    889     PUSH32(esp, 0); /* 0x360986B3: push 0 */
    890     PUSH32(esp, 0x1A6u); /* 0x360986B5: push 0x1a6 */
    891     ecx = esi; /* 0x360986BA: mov ecx, esi */
    892     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360986BC: call dword ptr [edx + 0xc] */
    893     RECOMP_FLAGS_IN();
    894     eax = MEM32(esi); /* 0x360986BF: mov eax, dword ptr [esi] */
    895     PUSH32(esp, 0); /* 0x360986C1: push 0 */
    896     PUSH32(esp, 0x181u); /* 0x360986C3: push 0x181 */
    897     ecx = esi; /* 0x360986C8: mov ecx, esi */
    898     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360986CA: call dword ptr [eax + 0xc] */
    899     RECOMP_FLAGS_IN();
    900     edx = MEM32(esi); /* 0x360986CD: mov edx, dword ptr [esi] */
    901     PUSH32(esp, 0); /* 0x360986CF: push 0 */
    902     PUSH32(esp, 0x182u); /* 0x360986D1: push 0x182 */
    903     ecx = esi; /* 0x360986D6: mov ecx, esi */
    904     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360986D8: call dword ptr [edx + 0xc] */
    905     RECOMP_FLAGS_IN();
    906     eax = MEM32(esi); /* 0x360986DB: mov eax, dword ptr [esi] */
    907     PUSH32(esp, 0x64u); /* 0x360986DD: push 0x64 */
    908     PUSH32(esp, 0xA8u); /* 0x360986DF: push 0xa8 */
    909     ecx = esi; /* 0x360986E4: mov ecx, esi */
    910     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360986E6: call dword ptr [eax + 0xc] */
    911     RECOMP_FLAGS_IN();
    912     edx = MEM32(esi); /* 0x360986E9: mov edx, dword ptr [esi] */
    913     PUSH32(esp, 0xCBu); /* 0x360986EB: push 0xcb */
    914     PUSH32(esp, 0x178u); /* 0x360986F0: push 0x178 */
    915     ecx = esi; /* 0x360986F5: mov ecx, esi */
    916     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360986F7: call dword ptr [edx + 0xc] */
    917     RECOMP_FLAGS_IN();
    918     eax = MEM32(esi); /* 0x360986FA: mov eax, dword ptr [esi] */
    919     PUSH32(esp, 0xC9u); /* 0x360986FC: push 0xc9 */
    920     PUSH32(esp, 0x179u); /* 0x36098701: push 0x179 */
    921     ecx = esi; /* 0x36098706: mov ecx, esi */
    922     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098708: call dword ptr [eax + 0xc] */
    923     RECOMP_FLAGS_IN();
    924     edx = MEM32(esi); /* 0x3609870B: mov edx, dword ptr [esi] */
    925     PUSH32(esp, 0xCAu); /* 0x3609870D: push 0xca */
    926     PUSH32(esp, 0x17Au); /* 0x36098712: push 0x17a */
    927     ecx = esi; /* 0x36098717: mov ecx, esi */
    928     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098719: call dword ptr [edx + 0xc] */
    929     RECOMP_FLAGS_IN();
    930     edi = MEM32(esi); /* 0x3609871C: mov edi, dword ptr [esi] */
    931     PUSH32(esp, 0x361C6150u); /* 0x3609871E: push 0x361c6150 */
    932     RECOMP_ICALL(0x3601C590u); /* 0x36098723: call 0x3601c590 */ /* not lifted */
    933     RECOMP_FLAGS_IN();
    934     ecx = eax; /* 0x36098728: mov ecx, eax */
    935     RECOMP_ICALL(0x3601CBC0u); /* 0x3609872A: call 0x3601cbc0 */ /* not lifted */
    936     RECOMP_FLAGS_IN();
    937     PUSH32(esp, eax); /* 0x3609872F: push eax */
    938     PUSH32(esp, 0x10Du); /* 0x36098730: push 0x10d */
    939     ecx = esi; /* 0x36098735: mov ecx, esi */
    940     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098737: call dword ptr [edi + 0xc] */
    941     RECOMP_FLAGS_IN();
    942     edi = MEM32(esi); /* 0x3609873A: mov edi, dword ptr [esi] */
    943     PUSH32(esp, 0x361C6138u); /* 0x3609873C: push 0x361c6138 */
    944     RECOMP_ICALL(0x3601C590u); /* 0x36098741: call 0x3601c590 */ /* not lifted */
    945     RECOMP_FLAGS_IN();
    946     ecx = eax; /* 0x36098746: mov ecx, eax */
    947     RECOMP_ICALL(0x3601CBC0u); /* 0x36098748: call 0x3601cbc0 */ /* not lifted */
    948     RECOMP_FLAGS_IN();
    949     PUSH32(esp, eax); /* 0x3609874D: push eax */
    950     PUSH32(esp, 0x10Eu); /* 0x3609874E: push 0x10e */
    951     ecx = esi; /* 0x36098753: mov ecx, esi */
    952     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098755: call dword ptr [edi + 0xc] */
    953     RECOMP_FLAGS_IN();
    954     edi = MEM32(esi); /* 0x36098758: mov edi, dword ptr [esi] */
    955     PUSH32(esp, 0x361C611Cu); /* 0x3609875A: push 0x361c611c */
    956     RECOMP_ICALL(0x3601C590u); /* 0x3609875F: call 0x3601c590 */ /* not lifted */
    957     RECOMP_FLAGS_IN();
    958     ecx = eax; /* 0x36098764: mov ecx, eax */
    959     RECOMP_ICALL(0x3601CBC0u); /* 0x36098766: call 0x3601cbc0 */ /* not lifted */
    960     RECOMP_FLAGS_IN();
    961     PUSH32(esp, eax); /* 0x3609876B: push eax */
    962     PUSH32(esp, 0x10Fu); /* 0x3609876C: push 0x10f */
    963     ecx = esi; /* 0x36098771: mov ecx, esi */
    964     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098773: call dword ptr [edi + 0xc] */
    965     RECOMP_FLAGS_IN();
    966     edi = MEM32(esi); /* 0x36098776: mov edi, dword ptr [esi] */
    967     PUSH32(esp, 0x361C6104u); /* 0x36098778: push 0x361c6104 */
    968     RECOMP_ICALL(0x3601C590u); /* 0x3609877D: call 0x3601c590 */ /* not lifted */
    969     RECOMP_FLAGS_IN();
    970     ecx = eax; /* 0x36098782: mov ecx, eax */
    971     RECOMP_ICALL(0x3601CBC0u); /* 0x36098784: call 0x3601cbc0 */ /* not lifted */
    972     RECOMP_FLAGS_IN();
    973     PUSH32(esp, eax); /* 0x36098789: push eax */
    974     PUSH32(esp, 0x110u); /* 0x3609878A: push 0x110 */
    975     ecx = esi; /* 0x3609878F: mov ecx, esi */
    976     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098791: call dword ptr [edi + 0xc] */
    977     RECOMP_FLAGS_IN();
    978     eax = MEM32(esi); /* 0x36098794: mov eax, dword ptr [esi] */
    979     PUSH32(esp, 0); /* 0x36098796: push 0 */
    980     PUSH32(esp, 0x3E7u); /* 0x36098798: push 0x3e7 */
    981     ecx = esi; /* 0x3609879D: mov ecx, esi */
    982     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3609879F: call dword ptr [eax + 0xc] */
    983     RECOMP_FLAGS_IN();
    984     edx = MEM32(esi); /* 0x360987A2: mov edx, dword ptr [esi] */
    985     PUSH32(esp, 0); /* 0x360987A4: push 0 */
    986     PUSH32(esp, 0x4Fu); /* 0x360987A6: push 0x4f */
    987     ecx = esi; /* 0x360987A8: mov ecx, esi */
    988     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360987AA: call dword ptr [edx + 0xc] */
    989     RECOMP_FLAGS_IN();
    990     eax = MEM32(esi); /* 0x360987AD: mov eax, dword ptr [esi] */
    991     PUSH32(esp, 0); /* 0x360987AF: push 0 */
    992     PUSH32(esp, 0x125u); /* 0x360987B1: push 0x125 */
    993     ecx = esi; /* 0x360987B6: mov ecx, esi */
    994     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360987B8: call dword ptr [eax + 0xc] */
    995     RECOMP_FLAGS_IN();
    996     edx = MEM32(esi); /* 0x360987BB: mov edx, dword ptr [esi] */
    997     PUSH32(esp, 0xC8u); /* 0x360987BD: push 0xc8 */
    998     PUSH32(esp, 0x126u); /* 0x360987C2: push 0x126 */
    999     ecx = esi; /* 0x360987C7: mov ecx, esi */
   1000     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360987C9: call dword ptr [edx + 0xc] */
   1001     RECOMP_FLAGS_IN();
   1002     eax = MEM32(esi); /* 0x360987CC: mov eax, dword ptr [esi] */
   1003     PUSH32(esp, 0xC8u); /* 0x360987CE: push 0xc8 */
   1004     PUSH32(esp, 0xD2u); /* 0x360987D3: push 0xd2 */
   1005     ecx = esi; /* 0x360987D8: mov ecx, esi */
   1006     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360987DA: call dword ptr [eax + 0xc] */
   1007     RECOMP_FLAGS_IN();
   1008     edx = MEM32(esi); /* 0x360987DD: mov edx, dword ptr [esi] */
   1009     PUSH32(esp, 0xC8u); /* 0x360987DF: push 0xc8 */
   1010     PUSH32(esp, 0xD3u); /* 0x360987E4: push 0xd3 */
   1011     ecx = esi; /* 0x360987E9: mov ecx, esi */
   1012     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360987EB: call dword ptr [edx + 0xc] */
   1013     RECOMP_FLAGS_IN();
   1014     PUSH32(esp, 0x17u); /* 0x360987EE: push 0x17 */
   1015     ecx = esi; /* 0x360987F0: mov ecx, esi */
   1016     RECOMP_ICALL(0x3608ED30u); /* 0x360987F2: call 0x3608ed30 */ /* not lifted */
   1017     RECOMP_FLAGS_IN();
   1018     PUSH32(esp, 0); /* 0x360987F7: push 0 */
   1019     ecx = esi; /* 0x360987F9: mov ecx, esi */
   1020     RECOMP_ICALL(0x3608ED30u); /* 0x360987FB: call 0x3608ed30 */ /* not lifted */
   1021     RECOMP_FLAGS_IN();
   1022     PUSH32(esp, 0x126u); /* 0x36098800: push 0x126 */
   1023     ecx = esi; /* 0x36098805: mov ecx, esi */
   1024     RECOMP_ICALL(0x3608ECC0u); /* 0x36098807: call 0x3608ecc0 */ /* not lifted */
   1025     RECOMP_FLAGS_IN();
   1026     PUSH32(esp, 0xD2u); /* 0x3609880C: push 0xd2 */
   1027     ecx = esi; /* 0x36098811: mov ecx, esi */
   1028     RECOMP_ICALL(0x3608ECC0u); /* 0x36098813: call 0x3608ecc0 */ /* not lifted */
   1029     RECOMP_FLAGS_IN();
   1030     PUSH32(esp, 0xD3u); /* 0x36098818: push 0xd3 */
   1031     ecx = esi; /* 0x3609881D: mov ecx, esi */
   1032     RECOMP_ICALL(0x3608ECC0u); /* 0x3609881F: call 0x3608ecc0 */ /* not lifted */
   1033     RECOMP_FLAGS_IN();
   1034     PUSH32(esp, 0x160u); /* 0x36098824: push 0x160 */
   1035     ecx = esi; /* 0x36098829: mov ecx, esi */
   1036     RECOMP_ICALL(0x3608ECC0u); /* 0x3609882B: call 0x3608ecc0 */ /* not lifted */
   1037     RECOMP_FLAGS_IN();
   1038     PUSH32(esp, 8); /* 0x36098830: push 8 */
   1039     ecx = esi; /* 0x36098832: mov ecx, esi */
   1040     RECOMP_ICALL(0x3608ECC0u); /* 0x36098834: call 0x3608ecc0 */ /* not lifted */
   1041     RECOMP_FLAGS_IN();
   1042     PUSH32(esp, 0x14Cu); /* 0x36098839: push 0x14c */
   1043     ecx = esi; /* 0x3609883E: mov ecx, esi */
   1044     RECOMP_ICALL(0x3608ECC0u); /* 0x36098840: call 0x3608ecc0 */ /* not lifted */
   1045     RECOMP_FLAGS_IN();
   1046     eax = MEM32(esi); /* 0x36098845: mov eax, dword ptr [esi] */
   1047     PUSH32(esp, 1); /* 0x36098847: push 1 */
   1048     PUSH32(esp, 0x195u); /* 0x36098849: push 0x195 */
   1049     ecx = esi; /* 0x3609884E: mov ecx, esi */
   1050     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098850: call dword ptr [eax + 0xc] */
   1051     RECOMP_FLAGS_IN();
   1052     edx = MEM32(esi); /* 0x36098853: mov edx, dword ptr [esi] */
   1053     PUSH32(esp, 1); /* 0x36098855: push 1 */
   1054     PUSH32(esp, 0x36u); /* 0x36098857: push 0x36 */
   1055     ecx = esi; /* 0x36098859: mov ecx, esi */
   1056     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3609885B: call dword ptr [edx + 0xc] */
   1057     RECOMP_FLAGS_IN();
   1058     eax = MEM32(esi); /* 0x3609885E: mov eax, dword ptr [esi] */
   1059     PUSH32(esp, 1); /* 0x36098860: push 1 */
   1060     PUSH32(esp, 0x197u); /* 0x36098862: push 0x197 */
   1061     ecx = esi; /* 0x36098867: mov ecx, esi */
   1062     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098869: call dword ptr [eax + 0xc] */
   1063     RECOMP_FLAGS_IN();
   1064     edx = MEM32(esi); /* 0x3609886C: mov edx, dword ptr [esi] */
   1065     PUSH32(esp, 0); /* 0x3609886E: push 0 */
   1066     PUSH32(esp, 0xB7u); /* 0x36098870: push 0xb7 */
   1067     ecx = esi; /* 0x36098875: mov ecx, esi */
   1068     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098877: call dword ptr [edx + 0xc] */
   1069     RECOMP_FLAGS_IN();
   1070     eax = MEM32(esi); /* 0x3609887A: mov eax, dword ptr [esi] */
   1071     PUSH32(esp, 4); /* 0x3609887C: push 4 */
   1072     PUSH32(esp, 0x4Cu); /* 0x3609887E: push 0x4c */
   1073     ecx = esi; /* 0x36098880: mov ecx, esi */
   1074     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098882: call dword ptr [eax + 0xc] */
   1075     RECOMP_FLAGS_IN();
   1076     edx = MEM32(esi); /* 0x36098885: mov edx, dword ptr [esi] */
   1077     PUSH32(esp, 0x14u); /* 0x36098887: push 0x14 */
   1078     PUSH32(esp, 0x11Fu); /* 0x36098889: push 0x11f */
   1079     ecx = esi; /* 0x3609888E: mov ecx, esi */
   1080     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098890: call dword ptr [edx + 0xc] */
   1081     RECOMP_FLAGS_IN();
   1082     eax = MEM32(esi); /* 0x36098893: mov eax, dword ptr [esi] */
   1083     PUSH32(esp, 0x3E8u); /* 0x36098895: push 0x3e8 */
   1084     PUSH32(esp, 0x4Au); /* 0x3609889A: push 0x4a */
   1085     ecx = esi; /* 0x3609889C: mov ecx, esi */
   1086     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3609889E: call dword ptr [eax + 0xc] */
   1087     RECOMP_FLAGS_IN();
   1088     edx = MEM32(esi); /* 0x360988A1: mov edx, dword ptr [esi] */
   1089     PUSH32(esp, 0); /* 0x360988A3: push 0 */
   1090     PUSH32(esp, 0x19Du); /* 0x360988A5: push 0x19d */
   1091     ecx = esi; /* 0x360988AA: mov ecx, esi */
   1092     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360988AC: call dword ptr [edx + 0xc] */
   1093     RECOMP_FLAGS_IN();
   1094     eax = MEM32(esi); /* 0x360988AF: mov eax, dword ptr [esi] */
   1095     PUSH32(esp, 2); /* 0x360988B1: push 2 */
   1096     PUSH32(esp, 0x17u); /* 0x360988B3: push 0x17 */
   1097     ecx = esi; /* 0x360988B5: mov ecx, esi */
   1098     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360988B7: call dword ptr [eax + 4] */
   1099     RECOMP_FLAGS_IN();
   1100     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360988BA: cdq  */
   1101     ecx = 0x61u; /* 0x360988BB: mov ecx, 0x61 */
   1102     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x360988C0: idiv ecx */
   1103       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   1104       else { eax = 0; edx = 0; } }
   1105     eax = 0x55555556u; /* 0x360988C2: mov eax, 0x55555556 */
   1106     edi = 0xAu; /* 0x360988C7: mov edi, 0xa */
   1107     ecx = edx; /* 0x360988CC: mov ecx, edx */
   1108     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360988CE: imul ecx */
   1109       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1110       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1111     eax = edx; /* 0x360988D0: mov eax, edx */
   1112     if (31u) _cf = (((edx) >> 30) & 1u); /* 0x360988D2: shr edx, 0x1f */
   1113     if (31u) { _flag_a = recomp_flags_pack((edx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1114     edx = edx >> 31u; /* 0x360988D2: shr edx, 0x1f */
   1115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1117     eax = eax + edx; /* 0x360988D5: add eax, edx */
   1118     _flag_k = FK_ADD;
   1119     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360988D7: cdq  */
   1120     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x360988D8: idiv edi */
   1121       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   1122       else { eax = 0; edx = 0; } }
   1123     eax = ecx; /* 0x360988DA: mov eax, ecx */
   1124     ecx = 5; /* 0x360988DC: mov ecx, 5 */
   1125     ebx = edx; /* 0x360988E1: mov ebx, edx */
   1126     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360988E3: cdq  */
   1127     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x360988E4: idiv ecx */
   1128       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   1129       else { eax = 0; edx = 0; } }
   1130     ecx = esi; /* 0x360988E6: mov ecx, esi */
   1131     eax = edx + edx * 4; /* 0x360988E8: lea eax, [edx + edx*4] */
   1132     edx = MEM32(esi); /* 0x360988EB: mov edx, dword ptr [esi] */
   1133     edi = eax + eax * 4; /* 0x360988ED: lea edi, [eax + eax*4] */
   1134     if (2u) _cf = (((edi) >> 30) & 1u); /* 0x360988F0: shl edi, 2 */
   1135     if (2u) { _flag_a = recomp_flags_pack((edi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1136     edi = edi << 2u; /* 0x360988F0: shl edi, 2 */
   1137     eax = edi + 0x4A38; /* 0x360988F3: lea eax, [edi + 0x4a38] */
   1138     PUSH32(esp, eax); /* 0x360988F9: push eax */
   1139     PUSH32(esp, 0x1ACu); /* 0x360988FA: push 0x1ac */
   1140     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360988FF: call dword ptr [edx + 0xc] */
   1141     RECOMP_FLAGS_IN();
   1142     edx = MEM32(esi); /* 0x36098902: mov edx, dword ptr [esi] */
   1143     PUSH32(esp, 0); /* 0x36098904: push 0 */
   1144     PUSH32(esp, 0x19Eu); /* 0x36098906: push 0x19e */
   1145     ecx = esi; /* 0x3609890B: mov ecx, esi */
   1146     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3609890D: call dword ptr [edx + 0xc] */
   1147     RECOMP_FLAGS_IN();
   1148     eax = MEM32(esi); /* 0x36098910: mov eax, dword ptr [esi] */
   1149     ecx = edi + 0x4650; /* 0x36098912: lea ecx, [edi + 0x4650] */
   1150     PUSH32(esp, ecx); /* 0x36098918: push ecx */
   1151     PUSH32(esp, 0x16Eu); /* 0x36098919: push 0x16e */
   1152     ecx = esi; /* 0x3609891E: mov ecx, esi */
   1153     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098920: call dword ptr [eax + 0xc] */
   1154     RECOMP_FLAGS_IN();
   1155     edx = MEM32(esi); /* 0x36098923: mov edx, dword ptr [esi] */
   1156     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x4268u);
   1157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1158     edi = edi + 0x4268u; /* 0x36098925: add edi, 0x4268 */
   1159     _flag_k = FK_ADD;
   1160     PUSH32(esp, edi); /* 0x3609892B: push edi */
   1161     PUSH32(esp, 0x1A3u); /* 0x3609892C: push 0x1a3 */
   1162     ecx = esi; /* 0x36098931: mov ecx, esi */
   1163     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098933: call dword ptr [edx + 0xc] */
   1164     RECOMP_FLAGS_IN();
   1165     ecx = MEM32(ebx * 4 + 0x361C60BC); /* 0x36098936: mov ecx, dword ptr [ebx*4 + 0x361c60bc] */
   1166     eax = MEM32(esi); /* 0x3609893D: mov eax, dword ptr [esi] */
   1167     PUSH32(esp, ecx); /* 0x3609893F: push ecx */
   1168     PUSH32(esp, 0x169u); /* 0x36098940: push 0x169 */
   1169     ecx = esi; /* 0x36098945: mov ecx, esi */
   1170     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098947: call dword ptr [eax + 0xc] */
   1171     RECOMP_FLAGS_IN();
   1172     edx = MEM32(esi); /* 0x3609894A: mov edx, dword ptr [esi] */
   1173     PUSH32(esp, 0x4000u); /* 0x3609894C: push 0x4000 */
   1174     ecx = esi; /* 0x36098951: mov ecx, esi */
   1175     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36098953: call dword ptr [edx + 0x18] */
   1176     RECOMP_FLAGS_IN();
   1177     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1178     eax = 0; /* 0x36098956: xor eax, eax */
   1179     _cf = 0;
   1180     _flag_k = FK_TEST;
   1181     PUSH32(esp, 0x19Du); /* 0x36098958: push 0x19d */
   1182     ecx = esi; /* 0x3609895D: mov ecx, esi */
   1183     MEM32(esi + 0x88) = eax; /* 0x3609895F: mov dword ptr [esi + 0x88], eax */
   1184     MEM32(esi + 0x90) = eax; /* 0x36098965: mov dword ptr [esi + 0x90], eax */
   1185     MEM32(esi + 0x8C) = eax; /* 0x3609896B: mov dword ptr [esi + 0x8c], eax */
   1186     MEM32(esi + 0x94) = eax; /* 0x36098971: mov dword ptr [esi + 0x94], eax */
   1187     RECOMP_ICALL(0x3608ECC0u); /* 0x36098977: call 0x3608ecc0 */ /* not lifted */
   1188     RECOMP_FLAGS_IN();
   1189     PUSH32(esp, 0x195u); /* 0x3609897C: push 0x195 */
   1190     ecx = esi; /* 0x36098981: mov ecx, esi */
   1191     RECOMP_ICALL(0x3608ECC0u); /* 0x36098983: call 0x3608ecc0 */ /* not lifted */
   1192     RECOMP_FLAGS_IN();
   1193     PUSH32(esp, 0x36u); /* 0x36098988: push 0x36 */
   1194     ecx = esi; /* 0x3609898A: mov ecx, esi */
   1195     RECOMP_ICALL(0x3608ECC0u); /* 0x3609898C: call 0x3608ecc0 */ /* not lifted */
   1196     RECOMP_FLAGS_IN();
   1197     PUSH32(esp, 0x197u); /* 0x36098991: push 0x197 */
   1198     ecx = esi; /* 0x36098996: mov ecx, esi */
   1199     RECOMP_ICALL(0x3608ECC0u); /* 0x36098998: call 0x3608ecc0 */ /* not lifted */
   1200     RECOMP_FLAGS_IN();
   1201     PUSH32(esp, 0xD2u); /* 0x3609899D: push 0xd2 */
   1202     ecx = esi; /* 0x360989A2: mov ecx, esi */
   1203     RECOMP_ICALL(0x3608ECC0u); /* 0x360989A4: call 0x3608ecc0 */ /* not lifted */
   1204     RECOMP_FLAGS_IN();
   1205     PUSH32(esp, 0x126u); /* 0x360989A9: push 0x126 */
   1206     ecx = esi; /* 0x360989AE: mov ecx, esi */
   1207     RECOMP_ICALL(0x3608ECC0u); /* 0x360989B0: call 0x3608ecc0 */ /* not lifted */
   1208     RECOMP_FLAGS_IN();
   1209     PUSH32(esp, 0xB7u); /* 0x360989B5: push 0xb7 */
   1210     ecx = esi; /* 0x360989BA: mov ecx, esi */
   1211     RECOMP_ICALL(0x3608ECC0u); /* 0x360989BC: call 0x3608ecc0 */ /* not lifted */
   1212     RECOMP_FLAGS_IN();
   1213     PUSH32(esp, 0x4Cu); /* 0x360989C1: push 0x4c */
   1214     ecx = esi; /* 0x360989C3: mov ecx, esi */
   1215     RECOMP_ICALL(0x3608ECC0u); /* 0x360989C5: call 0x3608ecc0 */ /* not lifted */
   1216     RECOMP_FLAGS_IN();
   1217     PUSH32(esp, 0x11Fu); /* 0x360989CA: push 0x11f */
   1218     ecx = esi; /* 0x360989CF: mov ecx, esi */
   1219     RECOMP_ICALL(0x3608ECC0u); /* 0x360989D1: call 0x3608ecc0 */ /* not lifted */
   1220     RECOMP_FLAGS_IN();
   1221     PUSH32(esp, 0xD3u); /* 0x360989D6: push 0xd3 */
   1222     ecx = esi; /* 0x360989DB: mov ecx, esi */
   1223     RECOMP_ICALL(0x3608ECC0u); /* 0x360989DD: call 0x3608ecc0 */ /* not lifted */
   1224     RECOMP_FLAGS_IN();
   1225     PUSH32(esp, 0x4Au); /* 0x360989E2: push 0x4a */
   1226     ecx = esi; /* 0x360989E4: mov ecx, esi */
   1227     RECOMP_ICALL(0x3608ECC0u); /* 0x360989E6: call 0x3608ecc0 */ /* not lifted */
   1228     RECOMP_FLAGS_IN();
   1229     edi = POP32_VAL(esp); /* 0x360989EB: pop edi */
   1230     esi = POP32_VAL(esp); /* 0x360989EC: pop esi */
   1231     ebx = POP32_VAL(esp); /* 0x360989ED: pop ebx */
   1232     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360989EE: ret  */
   1233     RECOMP_REGS_OUT();
   1234 }
   1235 
   1236 void sub_360986E6(void) {
   1237     int _fpu_cmp = 0;
   1238     uint32_t _cf = 0;
   1239     int _df = 1;
   1240     uint32_t _flag_k = FK_NONE;
   1241     uint32_t _flag_a = 0, _flag_b = 0;
   1242     uint32_t _itail_tgt = 0;
   1243     RECOMP_REGS_LOCALS
   1244     RECOMP_ENTER(0x360986E6u);
   1245 
   1246 L_360986E6:
   1247     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360986E6: call dword ptr [eax + 0xc] */
   1248     RECOMP_FLAGS_IN();
   1249     edx = MEM32(esi); /* 0x360986E9: mov edx, dword ptr [esi] */
   1250     PUSH32(esp, 0xCBu); /* 0x360986EB: push 0xcb */
   1251     PUSH32(esp, 0x178u); /* 0x360986F0: push 0x178 */
   1252     ecx = esi; /* 0x360986F5: mov ecx, esi */
   1253     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360986F7: call dword ptr [edx + 0xc] */
   1254     RECOMP_FLAGS_IN();
   1255     eax = MEM32(esi); /* 0x360986FA: mov eax, dword ptr [esi] */
   1256     PUSH32(esp, 0xC9u); /* 0x360986FC: push 0xc9 */
   1257     PUSH32(esp, 0x179u); /* 0x36098701: push 0x179 */
   1258     ecx = esi; /* 0x36098706: mov ecx, esi */
   1259     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098708: call dword ptr [eax + 0xc] */
   1260     RECOMP_FLAGS_IN();
   1261     edx = MEM32(esi); /* 0x3609870B: mov edx, dword ptr [esi] */
   1262     PUSH32(esp, 0xCAu); /* 0x3609870D: push 0xca */
   1263     PUSH32(esp, 0x17Au); /* 0x36098712: push 0x17a */
   1264     ecx = esi; /* 0x36098717: mov ecx, esi */
   1265     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098719: call dword ptr [edx + 0xc] */
   1266     RECOMP_FLAGS_IN();
   1267     edi = MEM32(esi); /* 0x3609871C: mov edi, dword ptr [esi] */
   1268     PUSH32(esp, 0x361C6150u); /* 0x3609871E: push 0x361c6150 */
   1269     RECOMP_ICALL(0x3601C590u); /* 0x36098723: call 0x3601c590 */ /* not lifted */
   1270     RECOMP_FLAGS_IN();
   1271     ecx = eax; /* 0x36098728: mov ecx, eax */
   1272     RECOMP_ICALL(0x3601CBC0u); /* 0x3609872A: call 0x3601cbc0 */ /* not lifted */
   1273     RECOMP_FLAGS_IN();
   1274     PUSH32(esp, eax); /* 0x3609872F: push eax */
   1275     PUSH32(esp, 0x10Du); /* 0x36098730: push 0x10d */
   1276     ecx = esi; /* 0x36098735: mov ecx, esi */
   1277     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098737: call dword ptr [edi + 0xc] */
   1278     RECOMP_FLAGS_IN();
   1279     edi = MEM32(esi); /* 0x3609873A: mov edi, dword ptr [esi] */
   1280     PUSH32(esp, 0x361C6138u); /* 0x3609873C: push 0x361c6138 */
   1281     RECOMP_ICALL(0x3601C590u); /* 0x36098741: call 0x3601c590 */ /* not lifted */
   1282     RECOMP_FLAGS_IN();
   1283     ecx = eax; /* 0x36098746: mov ecx, eax */
   1284     RECOMP_ICALL(0x3601CBC0u); /* 0x36098748: call 0x3601cbc0 */ /* not lifted */
   1285     RECOMP_FLAGS_IN();
   1286     PUSH32(esp, eax); /* 0x3609874D: push eax */
   1287     PUSH32(esp, 0x10Eu); /* 0x3609874E: push 0x10e */
   1288     ecx = esi; /* 0x36098753: mov ecx, esi */
   1289     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098755: call dword ptr [edi + 0xc] */
   1290     RECOMP_FLAGS_IN();
   1291     edi = MEM32(esi); /* 0x36098758: mov edi, dword ptr [esi] */
   1292     PUSH32(esp, 0x361C611Cu); /* 0x3609875A: push 0x361c611c */
   1293     RECOMP_ICALL(0x3601C590u); /* 0x3609875F: call 0x3601c590 */ /* not lifted */
   1294     RECOMP_FLAGS_IN();
   1295     ecx = eax; /* 0x36098764: mov ecx, eax */
   1296     RECOMP_ICALL(0x3601CBC0u); /* 0x36098766: call 0x3601cbc0 */ /* not lifted */
   1297     RECOMP_FLAGS_IN();
   1298     PUSH32(esp, eax); /* 0x3609876B: push eax */
   1299     PUSH32(esp, 0x10Fu); /* 0x3609876C: push 0x10f */
   1300     ecx = esi; /* 0x36098771: mov ecx, esi */
   1301     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098773: call dword ptr [edi + 0xc] */
   1302     RECOMP_FLAGS_IN();
   1303     edi = MEM32(esi); /* 0x36098776: mov edi, dword ptr [esi] */
   1304     PUSH32(esp, 0x361C6104u); /* 0x36098778: push 0x361c6104 */
   1305     RECOMP_ICALL(0x3601C590u); /* 0x3609877D: call 0x3601c590 */ /* not lifted */
   1306     RECOMP_FLAGS_IN();
   1307     ecx = eax; /* 0x36098782: mov ecx, eax */
   1308     RECOMP_ICALL(0x3601CBC0u); /* 0x36098784: call 0x3601cbc0 */ /* not lifted */
   1309     RECOMP_FLAGS_IN();
   1310     PUSH32(esp, eax); /* 0x36098789: push eax */
   1311     PUSH32(esp, 0x110u); /* 0x3609878A: push 0x110 */
   1312     ecx = esi; /* 0x3609878F: mov ecx, esi */
   1313     RECOMP_ICALL(MEM32(edi + 0xC)); /* 0x36098791: call dword ptr [edi + 0xc] */
   1314     RECOMP_FLAGS_IN();
   1315     eax = MEM32(esi); /* 0x36098794: mov eax, dword ptr [esi] */
   1316     PUSH32(esp, 0); /* 0x36098796: push 0 */
   1317     PUSH32(esp, 0x3E7u); /* 0x36098798: push 0x3e7 */
   1318     ecx = esi; /* 0x3609879D: mov ecx, esi */
   1319     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3609879F: call dword ptr [eax + 0xc] */
   1320     RECOMP_FLAGS_IN();
   1321     edx = MEM32(esi); /* 0x360987A2: mov edx, dword ptr [esi] */
   1322     PUSH32(esp, 0); /* 0x360987A4: push 0 */
   1323     PUSH32(esp, 0x4Fu); /* 0x360987A6: push 0x4f */
   1324     ecx = esi; /* 0x360987A8: mov ecx, esi */
   1325     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360987AA: call dword ptr [edx + 0xc] */
   1326     RECOMP_FLAGS_IN();
   1327     eax = MEM32(esi); /* 0x360987AD: mov eax, dword ptr [esi] */
   1328     PUSH32(esp, 0); /* 0x360987AF: push 0 */
   1329     PUSH32(esp, 0x125u); /* 0x360987B1: push 0x125 */
   1330     ecx = esi; /* 0x360987B6: mov ecx, esi */
   1331     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360987B8: call dword ptr [eax + 0xc] */
   1332     RECOMP_FLAGS_IN();
   1333     edx = MEM32(esi); /* 0x360987BB: mov edx, dword ptr [esi] */
   1334     PUSH32(esp, 0xC8u); /* 0x360987BD: push 0xc8 */
   1335     PUSH32(esp, 0x126u); /* 0x360987C2: push 0x126 */
   1336     ecx = esi; /* 0x360987C7: mov ecx, esi */
   1337     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360987C9: call dword ptr [edx + 0xc] */
   1338     RECOMP_FLAGS_IN();
   1339     eax = MEM32(esi); /* 0x360987CC: mov eax, dword ptr [esi] */
   1340     PUSH32(esp, 0xC8u); /* 0x360987CE: push 0xc8 */
   1341     PUSH32(esp, 0xD2u); /* 0x360987D3: push 0xd2 */
   1342     ecx = esi; /* 0x360987D8: mov ecx, esi */
   1343     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360987DA: call dword ptr [eax + 0xc] */
   1344     RECOMP_FLAGS_IN();
   1345     edx = MEM32(esi); /* 0x360987DD: mov edx, dword ptr [esi] */
   1346     PUSH32(esp, 0xC8u); /* 0x360987DF: push 0xc8 */
   1347     PUSH32(esp, 0xD3u); /* 0x360987E4: push 0xd3 */
   1348     ecx = esi; /* 0x360987E9: mov ecx, esi */
   1349     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360987EB: call dword ptr [edx + 0xc] */
   1350     RECOMP_FLAGS_IN();
   1351     PUSH32(esp, 0x17u); /* 0x360987EE: push 0x17 */
   1352     ecx = esi; /* 0x360987F0: mov ecx, esi */
   1353     RECOMP_ICALL(0x3608ED30u); /* 0x360987F2: call 0x3608ed30 */ /* not lifted */
   1354     RECOMP_FLAGS_IN();
   1355     PUSH32(esp, 0); /* 0x360987F7: push 0 */
   1356     ecx = esi; /* 0x360987F9: mov ecx, esi */
   1357     RECOMP_ICALL(0x3608ED30u); /* 0x360987FB: call 0x3608ed30 */ /* not lifted */
   1358     RECOMP_FLAGS_IN();
   1359     PUSH32(esp, 0x126u); /* 0x36098800: push 0x126 */
   1360     ecx = esi; /* 0x36098805: mov ecx, esi */
   1361     RECOMP_ICALL(0x3608ECC0u); /* 0x36098807: call 0x3608ecc0 */ /* not lifted */
   1362     RECOMP_FLAGS_IN();
   1363     PUSH32(esp, 0xD2u); /* 0x3609880C: push 0xd2 */
   1364     ecx = esi; /* 0x36098811: mov ecx, esi */
   1365     RECOMP_ICALL(0x3608ECC0u); /* 0x36098813: call 0x3608ecc0 */ /* not lifted */
   1366     RECOMP_FLAGS_IN();
   1367     PUSH32(esp, 0xD3u); /* 0x36098818: push 0xd3 */
   1368     ecx = esi; /* 0x3609881D: mov ecx, esi */
   1369     RECOMP_ICALL(0x3608ECC0u); /* 0x3609881F: call 0x3608ecc0 */ /* not lifted */
   1370     RECOMP_FLAGS_IN();
   1371     PUSH32(esp, 0x160u); /* 0x36098824: push 0x160 */
   1372     ecx = esi; /* 0x36098829: mov ecx, esi */
   1373     RECOMP_ICALL(0x3608ECC0u); /* 0x3609882B: call 0x3608ecc0 */ /* not lifted */
   1374     RECOMP_FLAGS_IN();
   1375     PUSH32(esp, 8); /* 0x36098830: push 8 */
   1376     ecx = esi; /* 0x36098832: mov ecx, esi */
   1377     RECOMP_ICALL(0x3608ECC0u); /* 0x36098834: call 0x3608ecc0 */ /* not lifted */
   1378     RECOMP_FLAGS_IN();
   1379     PUSH32(esp, 0x14Cu); /* 0x36098839: push 0x14c */
   1380     ecx = esi; /* 0x3609883E: mov ecx, esi */
   1381     RECOMP_ICALL(0x3608ECC0u); /* 0x36098840: call 0x3608ecc0 */ /* not lifted */
   1382     RECOMP_FLAGS_IN();
   1383     eax = MEM32(esi); /* 0x36098845: mov eax, dword ptr [esi] */
   1384     PUSH32(esp, 1); /* 0x36098847: push 1 */
   1385     PUSH32(esp, 0x195u); /* 0x36098849: push 0x195 */
   1386     ecx = esi; /* 0x3609884E: mov ecx, esi */
   1387     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098850: call dword ptr [eax + 0xc] */
   1388     RECOMP_FLAGS_IN();
   1389     edx = MEM32(esi); /* 0x36098853: mov edx, dword ptr [esi] */
   1390     PUSH32(esp, 1); /* 0x36098855: push 1 */
   1391     PUSH32(esp, 0x36u); /* 0x36098857: push 0x36 */
   1392     ecx = esi; /* 0x36098859: mov ecx, esi */
   1393     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3609885B: call dword ptr [edx + 0xc] */
   1394     RECOMP_FLAGS_IN();
   1395     eax = MEM32(esi); /* 0x3609885E: mov eax, dword ptr [esi] */
   1396     PUSH32(esp, 1); /* 0x36098860: push 1 */
   1397     PUSH32(esp, 0x197u); /* 0x36098862: push 0x197 */
   1398     ecx = esi; /* 0x36098867: mov ecx, esi */
   1399     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098869: call dword ptr [eax + 0xc] */
   1400     RECOMP_FLAGS_IN();
   1401     edx = MEM32(esi); /* 0x3609886C: mov edx, dword ptr [esi] */
   1402     PUSH32(esp, 0); /* 0x3609886E: push 0 */
   1403     PUSH32(esp, 0xB7u); /* 0x36098870: push 0xb7 */
   1404     ecx = esi; /* 0x36098875: mov ecx, esi */
   1405     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098877: call dword ptr [edx + 0xc] */
   1406     RECOMP_FLAGS_IN();
   1407     eax = MEM32(esi); /* 0x3609887A: mov eax, dword ptr [esi] */
   1408     PUSH32(esp, 4); /* 0x3609887C: push 4 */
   1409     PUSH32(esp, 0x4Cu); /* 0x3609887E: push 0x4c */
   1410     ecx = esi; /* 0x36098880: mov ecx, esi */
   1411     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098882: call dword ptr [eax + 0xc] */
   1412     RECOMP_FLAGS_IN();
   1413     edx = MEM32(esi); /* 0x36098885: mov edx, dword ptr [esi] */
   1414     PUSH32(esp, 0x14u); /* 0x36098887: push 0x14 */
   1415     PUSH32(esp, 0x11Fu); /* 0x36098889: push 0x11f */
   1416     ecx = esi; /* 0x3609888E: mov ecx, esi */
   1417     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098890: call dword ptr [edx + 0xc] */
   1418     RECOMP_FLAGS_IN();
   1419     eax = MEM32(esi); /* 0x36098893: mov eax, dword ptr [esi] */
   1420     PUSH32(esp, 0x3E8u); /* 0x36098895: push 0x3e8 */
   1421     PUSH32(esp, 0x4Au); /* 0x3609889A: push 0x4a */
   1422     ecx = esi; /* 0x3609889C: mov ecx, esi */
   1423     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3609889E: call dword ptr [eax + 0xc] */
   1424     RECOMP_FLAGS_IN();
   1425     edx = MEM32(esi); /* 0x360988A1: mov edx, dword ptr [esi] */
   1426     PUSH32(esp, 0); /* 0x360988A3: push 0 */
   1427     PUSH32(esp, 0x19Du); /* 0x360988A5: push 0x19d */
   1428     ecx = esi; /* 0x360988AA: mov ecx, esi */
   1429     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360988AC: call dword ptr [edx + 0xc] */
   1430     RECOMP_FLAGS_IN();
   1431     eax = MEM32(esi); /* 0x360988AF: mov eax, dword ptr [esi] */
   1432     PUSH32(esp, 2); /* 0x360988B1: push 2 */
   1433     PUSH32(esp, 0x17u); /* 0x360988B3: push 0x17 */
   1434     ecx = esi; /* 0x360988B5: mov ecx, esi */
   1435     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360988B7: call dword ptr [eax + 4] */
   1436     RECOMP_FLAGS_IN();
   1437     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360988BA: cdq  */
   1438     ecx = 0x61u; /* 0x360988BB: mov ecx, 0x61 */
   1439     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x360988C0: idiv ecx */
   1440       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   1441       else { eax = 0; edx = 0; } }
   1442     eax = 0x55555556u; /* 0x360988C2: mov eax, 0x55555556 */
   1443     edi = 0xAu; /* 0x360988C7: mov edi, 0xa */
   1444     ecx = edx; /* 0x360988CC: mov ecx, edx */
   1445     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360988CE: imul ecx */
   1446       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   1447       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   1448     eax = edx; /* 0x360988D0: mov eax, edx */
   1449     if (31u) _cf = (((edx) >> 30) & 1u); /* 0x360988D2: shr edx, 0x1f */
   1450     if (31u) { _flag_a = recomp_flags_pack((edx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1451     edx = edx >> 31u; /* 0x360988D2: shr edx, 0x1f */
   1452     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1453     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1454     eax = eax + edx; /* 0x360988D5: add eax, edx */
   1455     _flag_k = FK_ADD;
   1456     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360988D7: cdq  */
   1457     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)edi; /* 0x360988D8: idiv edi */
   1458       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   1459       else { eax = 0; edx = 0; } }
   1460     eax = ecx; /* 0x360988DA: mov eax, ecx */
   1461     ecx = 5; /* 0x360988DC: mov ecx, 5 */
   1462     ebx = edx; /* 0x360988E1: mov ebx, edx */
   1463     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360988E3: cdq  */
   1464     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x360988E4: idiv ecx */
   1465       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   1466       else { eax = 0; edx = 0; } }
   1467     ecx = esi; /* 0x360988E6: mov ecx, esi */
   1468     eax = edx + edx * 4; /* 0x360988E8: lea eax, [edx + edx*4] */
   1469     edx = MEM32(esi); /* 0x360988EB: mov edx, dword ptr [esi] */
   1470     edi = eax + eax * 4; /* 0x360988ED: lea edi, [eax + eax*4] */
   1471     if (2u) _cf = (((edi) >> 30) & 1u); /* 0x360988F0: shl edi, 2 */
   1472     if (2u) { _flag_a = recomp_flags_pack((edi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1473     edi = edi << 2u; /* 0x360988F0: shl edi, 2 */
   1474     eax = edi + 0x4A38; /* 0x360988F3: lea eax, [edi + 0x4a38] */
   1475     PUSH32(esp, eax); /* 0x360988F9: push eax */
   1476     PUSH32(esp, 0x1ACu); /* 0x360988FA: push 0x1ac */
   1477     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360988FF: call dword ptr [edx + 0xc] */
   1478     RECOMP_FLAGS_IN();
   1479     edx = MEM32(esi); /* 0x36098902: mov edx, dword ptr [esi] */
   1480     PUSH32(esp, 0); /* 0x36098904: push 0 */
   1481     PUSH32(esp, 0x19Eu); /* 0x36098906: push 0x19e */
   1482     ecx = esi; /* 0x3609890B: mov ecx, esi */
   1483     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3609890D: call dword ptr [edx + 0xc] */
   1484     RECOMP_FLAGS_IN();
   1485     eax = MEM32(esi); /* 0x36098910: mov eax, dword ptr [esi] */
   1486     ecx = edi + 0x4650; /* 0x36098912: lea ecx, [edi + 0x4650] */
   1487     PUSH32(esp, ecx); /* 0x36098918: push ecx */
   1488     PUSH32(esp, 0x16Eu); /* 0x36098919: push 0x16e */
   1489     ecx = esi; /* 0x3609891E: mov ecx, esi */
   1490     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098920: call dword ptr [eax + 0xc] */
   1491     RECOMP_FLAGS_IN();
   1492     edx = MEM32(esi); /* 0x36098923: mov edx, dword ptr [esi] */
   1493     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x4268u);
   1494     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1495     edi = edi + 0x4268u; /* 0x36098925: add edi, 0x4268 */
   1496     _flag_k = FK_ADD;
   1497     PUSH32(esp, edi); /* 0x3609892B: push edi */
   1498     PUSH32(esp, 0x1A3u); /* 0x3609892C: push 0x1a3 */
   1499     ecx = esi; /* 0x36098931: mov ecx, esi */
   1500     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36098933: call dword ptr [edx + 0xc] */
   1501     RECOMP_FLAGS_IN();
   1502     ecx = MEM32(ebx * 4 + 0x361C60BC); /* 0x36098936: mov ecx, dword ptr [ebx*4 + 0x361c60bc] */
   1503     eax = MEM32(esi); /* 0x3609893D: mov eax, dword ptr [esi] */
   1504     PUSH32(esp, ecx); /* 0x3609893F: push ecx */
   1505     PUSH32(esp, 0x169u); /* 0x36098940: push 0x169 */
   1506     ecx = esi; /* 0x36098945: mov ecx, esi */
   1507     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36098947: call dword ptr [eax + 0xc] */
   1508     RECOMP_FLAGS_IN();
   1509     edx = MEM32(esi); /* 0x3609894A: mov edx, dword ptr [esi] */
   1510     PUSH32(esp, 0x4000u); /* 0x3609894C: push 0x4000 */
   1511     ecx = esi; /* 0x36098951: mov ecx, esi */
   1512     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36098953: call dword ptr [edx + 0x18] */
   1513     RECOMP_FLAGS_IN();
   1514     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1515     eax = 0; /* 0x36098956: xor eax, eax */
   1516     _cf = 0;
   1517     _flag_k = FK_TEST;
   1518     PUSH32(esp, 0x19Du); /* 0x36098958: push 0x19d */
   1519     ecx = esi; /* 0x3609895D: mov ecx, esi */
   1520     MEM32(esi + 0x88) = eax; /* 0x3609895F: mov dword ptr [esi + 0x88], eax */
   1521     MEM32(esi + 0x90) = eax; /* 0x36098965: mov dword ptr [esi + 0x90], eax */
   1522     MEM32(esi + 0x8C) = eax; /* 0x3609896B: mov dword ptr [esi + 0x8c], eax */
   1523     MEM32(esi + 0x94) = eax; /* 0x36098971: mov dword ptr [esi + 0x94], eax */
   1524     RECOMP_ICALL(0x3608ECC0u); /* 0x36098977: call 0x3608ecc0 */ /* not lifted */
   1525     RECOMP_FLAGS_IN();
   1526     PUSH32(esp, 0x195u); /* 0x3609897C: push 0x195 */
   1527     ecx = esi; /* 0x36098981: mov ecx, esi */
   1528     RECOMP_ICALL(0x3608ECC0u); /* 0x36098983: call 0x3608ecc0 */ /* not lifted */
   1529     RECOMP_FLAGS_IN();
   1530     PUSH32(esp, 0x36u); /* 0x36098988: push 0x36 */
   1531     ecx = esi; /* 0x3609898A: mov ecx, esi */
   1532     RECOMP_ICALL(0x3608ECC0u); /* 0x3609898C: call 0x3608ecc0 */ /* not lifted */
   1533     RECOMP_FLAGS_IN();
   1534     PUSH32(esp, 0x197u); /* 0x36098991: push 0x197 */
   1535     ecx = esi; /* 0x36098996: mov ecx, esi */
   1536     RECOMP_ICALL(0x3608ECC0u); /* 0x36098998: call 0x3608ecc0 */ /* not lifted */
   1537     RECOMP_FLAGS_IN();
   1538     PUSH32(esp, 0xD2u); /* 0x3609899D: push 0xd2 */
   1539     ecx = esi; /* 0x360989A2: mov ecx, esi */
   1540     RECOMP_ICALL(0x3608ECC0u); /* 0x360989A4: call 0x3608ecc0 */ /* not lifted */
   1541     RECOMP_FLAGS_IN();
   1542     PUSH32(esp, 0x126u); /* 0x360989A9: push 0x126 */
   1543     ecx = esi; /* 0x360989AE: mov ecx, esi */
   1544     RECOMP_ICALL(0x3608ECC0u); /* 0x360989B0: call 0x3608ecc0 */ /* not lifted */
   1545     RECOMP_FLAGS_IN();
   1546     PUSH32(esp, 0xB7u); /* 0x360989B5: push 0xb7 */
   1547     ecx = esi; /* 0x360989BA: mov ecx, esi */
   1548     RECOMP_ICALL(0x3608ECC0u); /* 0x360989BC: call 0x3608ecc0 */ /* not lifted */
   1549     RECOMP_FLAGS_IN();
   1550     PUSH32(esp, 0x4Cu); /* 0x360989C1: push 0x4c */
   1551     ecx = esi; /* 0x360989C3: mov ecx, esi */
   1552     RECOMP_ICALL(0x3608ECC0u); /* 0x360989C5: call 0x3608ecc0 */ /* not lifted */
   1553     RECOMP_FLAGS_IN();
   1554     PUSH32(esp, 0x11Fu); /* 0x360989CA: push 0x11f */
   1555     ecx = esi; /* 0x360989CF: mov ecx, esi */
   1556     RECOMP_ICALL(0x3608ECC0u); /* 0x360989D1: call 0x3608ecc0 */ /* not lifted */
   1557     RECOMP_FLAGS_IN();
   1558     PUSH32(esp, 0xD3u); /* 0x360989D6: push 0xd3 */
   1559     ecx = esi; /* 0x360989DB: mov ecx, esi */
   1560     RECOMP_ICALL(0x3608ECC0u); /* 0x360989DD: call 0x3608ecc0 */ /* not lifted */
   1561     RECOMP_FLAGS_IN();
   1562     PUSH32(esp, 0x4Au); /* 0x360989E2: push 0x4a */
   1563     ecx = esi; /* 0x360989E4: mov ecx, esi */
   1564     RECOMP_ICALL(0x3608ECC0u); /* 0x360989E6: call 0x3608ecc0 */ /* not lifted */
   1565     RECOMP_FLAGS_IN();
   1566     edi = POP32_VAL(esp); /* 0x360989EB: pop edi */
   1567     esi = POP32_VAL(esp); /* 0x360989EC: pop esi */
   1568     ebx = POP32_VAL(esp); /* 0x360989ED: pop ebx */
   1569     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360989EE: ret  */
   1570     RECOMP_REGS_OUT();
   1571 }
   1572 
   1573 void sub_360989F0(void) {
   1574     int _fpu_cmp = 0;
   1575     uint32_t _cf = 0;
   1576     int _df = 1;
   1577     uint32_t _flag_k = FK_NONE;
   1578     uint32_t _flag_a = 0, _flag_b = 0;
   1579     uint32_t _itail_tgt = 0;
   1580     RECOMP_REGS_LOCALS
   1581     RECOMP_ENTER(0x360989F0u);
   1582 
   1583     goto L_360989F0;
   1584 L_3608EA50:
   1585     PUSH32(esp, ebp); /* 0x3608EA50: push ebp */
   1586     ebp = esp; /* 0x3608EA51: mov ebp, esp */
   1587     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608EA53: push -1 */
   1588     PUSH32(esp, 0x36166176u); /* 0x3608EA55: push 0x36166176 */
   1589     eax = MEM32(FS_BASE + (0)); /* 0x3608EA5A: mov eax, dword ptr fs:[0] */
   1590     PUSH32(esp, eax); /* 0x3608EA60: push eax */
   1591     MEM32(FS_BASE + (0)) = esp; /* 0x3608EA61: mov dword ptr fs:[0], esp */
   1592     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1594     esp = esp - 0x18u; /* 0x3608EA68: sub esp, 0x18 */
   1595     _flag_k = FK_CMP;
   1596     PUSH32(esp, ebx); /* 0x3608EA6B: push ebx */
   1597     PUSH32(esp, esi); /* 0x3608EA6C: push esi */
   1598     esi = ecx; /* 0x3608EA6D: mov esi, ecx */
   1599     PUSH32(esp, edi); /* 0x3608EA6F: push edi */
   1600     MEM32(ebp + (-0x1C)) = esi; /* 0x3608EA70: mov dword ptr [ebp - 0x1c], esi */
   1601     MEM32(esi) = 0x361729F8u; /* 0x3608EA73: mov dword ptr [esi], 0x361729f8 */
   1602     MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608EA79: mov dword ptr [esi + 8], 0x361729e8 */
   1603     MEM32(esi + 0x40) = 0x361729E0u; /* 0x3608EA80: mov dword ptr [esi + 0x40], 0x361729e0 */
   1604     MEM32(esi + 0x4C) = 0x361729D8u; /* 0x3608EA87: mov dword ptr [esi + 0x4c], 0x361729d8 */
   1605     eax = MEM32(esi + 0x6C); /* 0x3608EA8E: mov eax, dword ptr [esi + 0x6c] */
   1606     ecx = MEM32(eax + 0x4); /* 0x3608EA91: mov ecx, dword ptr [eax + 4] */
   1607     ecx = MEM32(ecx); /* 0x3608EA94: mov ecx, dword ptr [ecx] */
   1608     MEM32(ebp + (-0x10)) = ecx; /* 0x3608EA96: mov dword ptr [ebp - 0x10], ecx */
   1609     eax = MEM32(eax + 0x4); /* 0x3608EA99: mov eax, dword ptr [eax + 4] */
   1610     /* cmp ecx, eax */ /* 0x3608EA9C: cmp ecx, eax */
   1611     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1613     _flag_k = FK_CMP;
   1614     MEM32(ebp + (-0x4)) = 2; /* 0x3608EA9E: mov dword ptr [ebp - 4], 2 */
   1615     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAD7; /* 0x3608EAA5: je 0x3608ead7 */
   1616 L_3608EAA7:
   1617     edi = MEM32(ecx + 0x10); /* 0x3608EAA7: mov edi, dword ptr [ecx + 0x10] */
   1618     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1619     ebx = 0; /* 0x3608EAAA: xor ebx, ebx */
   1620     _cf = 0;
   1621     _flag_k = FK_TEST;
   1622     /* cmp edi, ebx */ /* 0x3608EAAC: cmp edi, ebx */
   1623     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1625     _flag_k = FK_CMP;
   1626     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAC0; /* 0x3608EAAE: je 0x3608eac0 */
   1627 L_3608EAB0:
   1628     ecx = edi; /* 0x3608EAB0: mov ecx, edi */
   1629     RECOMP_ICALL(0x360055D0u); /* 0x3608EAB2: call 0x360055d0 */ /* not lifted */
   1630     RECOMP_FLAGS_IN();
   1631     PUSH32(esp, edi); /* 0x3608EAB7: push edi */
   1632     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAB8: call 0x3615fcc4 */ /* not lifted */
   1633     RECOMP_FLAGS_IN();
   1634     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1635     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1636     esp = esp + 4; /* 0x3608EABD: add esp, 4 */
   1637     _flag_k = FK_ADD;
   1638 L_3608EAC0:
   1639     ecx = ebp + (-0x10); /* 0x3608EAC0: lea ecx, [ebp - 0x10] */
   1640     RECOMP_ICALL(0x36064140u); /* 0x3608EAC3: call 0x36064140 */ /* not lifted */
   1641     RECOMP_FLAGS_IN();
   1642     eax = MEM32(esi + 0x6C); /* 0x3608EAC8: mov eax, dword ptr [esi + 0x6c] */
   1643     eax = MEM32(eax + 0x4); /* 0x3608EACB: mov eax, dword ptr [eax + 4] */
   1644     ecx = MEM32(ebp + (-0x10)); /* 0x3608EACE: mov ecx, dword ptr [ebp - 0x10] */
   1645     /* cmp ecx, eax */ /* 0x3608EAD1: cmp ecx, eax */
   1646     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1648     _flag_k = FK_CMP;
   1649     RECOMP_BACKEDGE();
   1650     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EAA7; /* 0x3608EAD3: jne 0x3608eaa7 */
   1651 L_3608EAD5:
   1652     goto L_3608EAD9; /* 0x3608EAD5: jmp 0x3608ead9 */
   1653 L_3608EAD7:
   1654     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1655     ebx = 0; /* 0x3608EAD7: xor ebx, ebx */
   1656     _cf = 0;
   1657     _flag_k = FK_TEST;
   1658 L_3608EAD9:
   1659     edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */
   1660     /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */
   1661     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1663     _flag_k = FK_CMP;
   1664     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */
   1665 L_3608EAE0:
   1666     ecx = edi; /* 0x3608EAE0: mov ecx, edi */
   1667     RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */
   1668     RECOMP_FLAGS_IN();
   1669     PUSH32(esp, edi); /* 0x3608EAE7: push edi */
   1670     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */
   1671     RECOMP_FLAGS_IN();
   1672     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1674     esp = esp + 4; /* 0x3608EAED: add esp, 4 */
   1675     _flag_k = FK_ADD;
   1676 L_3608EAF0:
   1677     edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */
   1678     /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */
   1679     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1681     _flag_k = FK_CMP;
   1682     MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */
   1683     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */
   1684 L_3608EAFA:
   1685     ecx = edi; /* 0x3608EAFA: mov ecx, edi */
   1686     RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */
   1687     RECOMP_FLAGS_IN();
   1688     PUSH32(esp, edi); /* 0x3608EB01: push edi */
   1689     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */
   1690     RECOMP_FLAGS_IN();
   1691     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1692     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1693     esp = esp + 4; /* 0x3608EB07: add esp, 4 */
   1694     _flag_k = FK_ADD;
   1695 L_3608EB0A:
   1696     edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */
   1697     /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */
   1698     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1700     _flag_k = FK_CMP;
   1701     MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */
   1702     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */
   1703 L_3608EB14:
   1704     ecx = edi; /* 0x3608EB14: mov ecx, edi */
   1705     RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */
   1706     RECOMP_FLAGS_IN();
   1707     PUSH32(esp, edi); /* 0x3608EB1B: push edi */
   1708     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */
   1709     RECOMP_FLAGS_IN();
   1710     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1711     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1712     esp = esp + 4; /* 0x3608EB21: add esp, 4 */
   1713     _flag_k = FK_ADD;
   1714 L_3608EB24:
   1715     edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */
   1716     /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */
   1717     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1719     _flag_k = FK_CMP;
   1720     MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */
   1721     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */
   1722 L_3608EB2E:
   1723     ecx = edi; /* 0x3608EB2E: mov ecx, edi */
   1724     RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */
   1725     RECOMP_FLAGS_IN();
   1726     PUSH32(esp, edi); /* 0x3608EB35: push edi */
   1727     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */
   1728     RECOMP_FLAGS_IN();
   1729     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1730     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1731     esp = esp + 4; /* 0x3608EB3B: add esp, 4 */
   1732     _flag_k = FK_ADD;
   1733 L_3608EB3E:
   1734     edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */
   1735     /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */
   1736     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1738     _flag_k = FK_CMP;
   1739     MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */
   1740     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */
   1741 L_3608EB48:
   1742     ecx = edi; /* 0x3608EB48: mov ecx, edi */
   1743     RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */
   1744     RECOMP_FLAGS_IN();
   1745     PUSH32(esp, edi); /* 0x3608EB4F: push edi */
   1746     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */
   1747     RECOMP_FLAGS_IN();
   1748     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1749     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1750     esp = esp + 4; /* 0x3608EB55: add esp, 4 */
   1751     _flag_k = FK_ADD;
   1752 L_3608EB58:
   1753     eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */
   1754     MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */
   1755     ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */
   1756     eax = ecx; /* 0x3608EB61: mov eax, ecx */
   1757     ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */
   1758     /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */
   1759     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   1760     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1761     _flag_k = FK_CMP;
   1762     MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */
   1763     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */
   1764 L_3608EB70:
   1765     eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */
   1766     /* test eax, eax */ /* 0x3608EB73: test eax, eax */
   1767     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1768     _cf = 0;
   1769     _flag_k = FK_TEST;
   1770     MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */
   1771     if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */
   1772 L_3608EB7A:
   1773     ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */
   1774     edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */
   1775     /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */
   1776     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   1777     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1778     _flag_k = FK_CMP;
   1779     MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */
   1780     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */
   1781 L_3608EB87:
   1782     PUSH32(esp, 0); /* 0x3608EB87: push 0 */
   1783     ecx = edi; /* 0x3608EB89: mov ecx, edi */
   1784     RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */
   1785     RECOMP_FLAGS_IN();
   1786     eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */
   1787     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   1788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1789     edi = edi + 8; /* 0x3608EB93: add edi, 8 */
   1790     _flag_k = FK_ADD;
   1791     /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */
   1792     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1794     _flag_k = FK_CMP;
   1795     RECOMP_BACKEDGE();
   1796     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */
   1797 L_3608EB9A:
   1798     eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */
   1799 L_3608EB9D:
   1800     eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */
   1801     PUSH32(esp, eax); /* 0x3608EBA0: push eax */
   1802     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */
   1803     RECOMP_FLAGS_IN();
   1804     eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */
   1805     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1806     ecx = 0; /* 0x3608EBA9: xor ecx, ecx */
   1807     _cf = 0;
   1808     _flag_k = FK_TEST;
   1809     PUSH32(esp, eax); /* 0x3608EBAB: push eax */
   1810     MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */
   1811     MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */
   1812     MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */
   1813     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */
   1814     RECOMP_FLAGS_IN();
   1815     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1816     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1817     esp = esp + 8; /* 0x3608EBBA: add esp, 8 */
   1818     _flag_k = FK_ADD;
   1819 L_3608EBBD:
   1820     eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */
   1821     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */
   1822     /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */
   1823     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1824     _cf = 0;
   1825     _flag_k = FK_NARROW(FK_TEST, 24);
   1826     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */
   1827 L_3608EBC7:
   1828     PUSH32(esp, eax); /* 0x3608EBC7: push eax */
   1829     RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */
   1830     RECOMP_FLAGS_IN();
   1831     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1833     esp = esp + 4; /* 0x3608EBCD: add esp, 4 */
   1834     _flag_k = FK_ADD;
   1835     goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */
   1836 L_3608EBD2:
   1837     eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */
   1838     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */
   1839     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1841     _flag_k = FK_CMP;
   1842     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */
   1843 L_3608EBDA:
   1844     ebx = eax; /* 0x3608EBDA: mov ebx, eax */
   1845     eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */
   1846     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */
   1847     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1849     _flag_k = FK_CMP;
   1850     RECOMP_BACKEDGE();
   1851     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */
   1852 L_3608EBE4:
   1853     /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */
   1854     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax);
   1855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1856     _flag_k = FK_CMP;
   1857     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */
   1858 L_3608EBE9:
   1859     ebx = eax; /* 0x3608EBE9: mov ebx, eax */
   1860 L_3608EBEB:
   1861     /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */
   1862     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
   1863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1864     _flag_k = FK_CMP;
   1865     RECOMP_BACKEDGE();
   1866     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */
   1867 L_3608EBF0:
   1868     ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */
   1869     eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */
   1870     edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */
   1871     PUSH32(esp, eax); /* 0x3608EBF8: push eax */
   1872     PUSH32(esp, edx); /* 0x3608EBF9: push edx */
   1873     eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */
   1874     PUSH32(esp, eax); /* 0x3608EBFD: push eax */
   1875     RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */
   1876     RECOMP_FLAGS_IN();
   1877     edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */
   1878     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1879     ebx = 0; /* 0x3608EC06: xor ebx, ebx */
   1880     _cf = 0;
   1881     _flag_k = FK_TEST;
   1882     /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */
   1883     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1885     _flag_k = FK_CMP;
   1886     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */
   1887 L_3608EC0C:
   1888     eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */
   1889     ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */
   1890     PUSH32(esp, eax); /* 0x3608EC11: push eax */
   1891     PUSH32(esp, ecx); /* 0x3608EC12: push ecx */
   1892     ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */
   1893     PUSH32(esp, ecx); /* 0x3608EC16: push ecx */
   1894     ecx = edi; /* 0x3608EC17: mov ecx, edi */
   1895     RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */
   1896     RECOMP_FLAGS_IN();
   1897     eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */
   1898     PUSH32(esp, eax); /* 0x3608EC21: push eax */
   1899     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */
   1900     RECOMP_FLAGS_IN();
   1901     eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */
   1902     PUSH32(esp, eax); /* 0x3608EC2A: push eax */
   1903     MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */
   1904     MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */
   1905     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */
   1906     RECOMP_FLAGS_IN();
   1907     PUSH32(esp, edi); /* 0x3608EC36: push edi */
   1908     MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */
   1909     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */
   1910     RECOMP_FLAGS_IN();
   1911     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1912     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1913     esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */
   1914     _flag_k = FK_ADD;
   1915 L_3608EC42:
   1916     eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */
   1917     /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */
   1918     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1920     _flag_k = FK_CMP;
   1921     edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */
   1922     MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */
   1923     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */
   1924 L_3608EC52:
   1925     PUSH32(esp, eax); /* 0x3608EC52: push eax */
   1926     RECOMP_ICALL(edi); /* 0x3608EC53: call edi */
   1927     RECOMP_FLAGS_IN();
   1928     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1930     esp = esp + 4; /* 0x3608EC55: add esp, 4 */
   1931     _flag_k = FK_ADD;
   1932     MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */
   1933 L_3608EC5B:
   1934     eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */
   1935     /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */
   1936     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1938     _flag_k = FK_CMP;
   1939     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */
   1940 L_3608EC62:
   1941     PUSH32(esp, eax); /* 0x3608EC62: push eax */
   1942     RECOMP_ICALL(edi); /* 0x3608EC63: call edi */
   1943     RECOMP_FLAGS_IN();
   1944     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1945     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1946     esp = esp + 4; /* 0x3608EC65: add esp, 4 */
   1947     _flag_k = FK_ADD;
   1948     MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */
   1949 L_3608EC6B:
   1950     ecx = esi; /* 0x3608EC6B: mov ecx, esi */
   1951     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1952     _cf = (ecx) != 0;
   1953     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */
   1954     _flag_k = FK_CMP;
   1955     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */
   1956       ecx = _sc ? 0xFFFFFFFFu : 0;
   1957       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1958       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1959     eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */
   1960     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1961     ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */
   1962     _cf = 0;
   1963     _flag_k = FK_TEST;
   1964     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */
   1965     RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */
   1966     RECOMP_FLAGS_IN();
   1967     ecx = esi; /* 0x3608EC7F: mov ecx, esi */
   1968     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1969     _cf = (ecx) != 0;
   1970     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */
   1971     _flag_k = FK_CMP;
   1972     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */
   1973       ecx = _sc ? 0xFFFFFFFFu : 0;
   1974       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1975       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1976     eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */
   1977     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1978     ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */
   1979     _cf = 0;
   1980     _flag_k = FK_TEST;
   1981     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */
   1982     RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */
   1983     RECOMP_FLAGS_IN();
   1984     ecx = esi; /* 0x3608EC93: mov ecx, esi */
   1985     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */
   1986     RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */
   1987     RECOMP_FLAGS_IN();
   1988     ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */
   1989     edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */
   1990     esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */
   1991     ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */
   1992     MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */
   1993     esp = ebp; /* 0x3608ECAE: mov esp, ebp */
   1994     ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */
   1995     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret  */
   1996 L_360989F0:
   1997     MEM32(ecx) = 0x3617347Cu; /* 0x360989F0: mov dword ptr [ecx], 0x3617347c */
   1998     MEM32(ecx + 0x8) = 0x3617346Cu; /* 0x360989F6: mov dword ptr [ecx + 8], 0x3617346c */
   1999     MEM32(ecx + 0x40) = 0x36173464u; /* 0x360989FD: mov dword ptr [ecx + 0x40], 0x36173464 */
   2000     MEM32(ecx + 0x4C) = 0x3617345Cu; /* 0x36098A04: mov dword ptr [ecx + 0x4c], 0x3617345c */
   2001     RECOMP_BACKEDGE();
   2002     goto L_3608EA50; /* 0x36098A0B: jmp 0x3608ea50 */
   2003     { RECOMP_REGS_OUT(); return; } /* end of function */
   2004     RECOMP_REGS_OUT();
   2005 }
   2006 
   2007 void sub_36098A10(void) {
   2008     int _fpu_cmp = 0;
   2009     uint32_t _cf = 0;
   2010     int _df = 1;
   2011     uint32_t _flag_k = FK_NONE;
   2012     uint32_t _flag_a = 0, _flag_b = 0;
   2013     uint32_t _itail_tgt = 0;
   2014     RECOMP_REGS_LOCALS
   2015     RECOMP_ENTER(0x36098A10u);
   2016 
   2017 L_36098A10:
   2018     PUSH32(esp, ebp); /* 0x36098A10: push ebp */
   2019     ebp = esp; /* 0x36098A11: mov ebp, esp */
   2020     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u);
   2021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2022     esp = esp - 0x40u; /* 0x36098A13: sub esp, 0x40 */
   2023     _flag_k = FK_CMP;
   2024     eax = MEM32(ebp + 0x8); /* 0x36098A16: mov eax, dword ptr [ebp + 8] */
   2025     PUSH32(esp, ebx); /* 0x36098A19: push ebx */
   2026     PUSH32(esp, esi); /* 0x36098A1A: push esi */
   2027     PUSH32(esp, edi); /* 0x36098A1B: push edi */
   2028     esi = ecx; /* 0x36098A1C: mov esi, ecx */
   2029     PUSH32(esp, eax); /* 0x36098A1E: push eax */
   2030     MEM32(ebp + (-0x4)) = esi; /* 0x36098A1F: mov dword ptr [ebp - 4], esi */
   2031     RECOMP_ICALL(0x3608EDE0u); /* 0x36098A22: call 0x3608ede0 */ /* not lifted */
   2032     RECOMP_FLAGS_IN();
   2033     edx = MEM32(esi); /* 0x36098A27: mov edx, dword ptr [esi] */
   2034     PUSH32(esp, 2); /* 0x36098A29: push 2 */
   2035     PUSH32(esp, 0x17u); /* 0x36098A2B: push 0x17 */
   2036     ecx = esi; /* 0x36098A2D: mov ecx, esi */
   2037     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36098A2F: call dword ptr [edx + 4] */
   2038     RECOMP_FLAGS_IN();
   2039     MEM32(ebp + (-0xC)) = eax; /* 0x36098A32: mov dword ptr [ebp - 0xc], eax */
   2040     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2041     eax = 0; /* 0x36098A35: xor eax, eax */
   2042     _cf = 0;
   2043     _flag_k = FK_TEST;
   2044     MEM32(ebp + (-0x8)) = eax; /* 0x36098A37: mov dword ptr [ebp - 8], eax */
   2045 L_36098A3A:
   2046     PUSH32(esp, eax); /* 0x36098A3A: push eax */
   2047     ecx = esi; /* 0x36098A3B: mov ecx, esi */
   2048     RECOMP_ICALL(0x360020C0u); /* 0x36098A3D: call 0x360020c0 */ /* not lifted */
   2049     RECOMP_FLAGS_IN();
   2050     edi = eax; /* 0x36098A42: mov edi, eax */
   2051     /* test edi, edi */ /* 0x36098A44: test edi, edi */
   2052     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2053     _cf = 0;
   2054     _flag_k = FK_TEST;
   2055     MEM32(ebp + (-0x10)) = edi; /* 0x36098A46: mov dword ptr [ebp - 0x10], edi */
   2056     if (TEST_Z(_flag_a, _flag_b)) goto L_36098AD4; /* 0x36098A49: je 0x36098ad4 */
   2057 L_36098A4F:
   2058     eax = ebp + (-0x40); /* 0x36098A4F: lea eax, [ebp - 0x40] */
   2059     PUSH32(esp, eax); /* 0x36098A52: push eax */
   2060     ecx = edi; /* 0x36098A53: mov ecx, edi */
   2061     RECOMP_ICALL(0x360C02D0u); /* 0x36098A55: call 0x360c02d0 */ /* not lifted */
   2062     RECOMP_FLAGS_IN();
   2063     ecx = MEM32(eax); /* 0x36098A5A: mov ecx, dword ptr [eax] */
   2064     edx = MEM32(eax + 0x4); /* 0x36098A5C: mov edx, dword ptr [eax + 4] */
   2065     esi = MEM32(eax + 0x8); /* 0x36098A5F: mov esi, dword ptr [eax + 8] */
   2066     ebx = MEM32(eax + 0xC); /* 0x36098A62: mov ebx, dword ptr [eax + 0xc] */
   2067     eax = ebp + (-0x30); /* 0x36098A65: lea eax, [ebp - 0x30] */
   2068     MEM32(ebp + (-0x20)) = ecx; /* 0x36098A68: mov dword ptr [ebp - 0x20], ecx */
   2069     PUSH32(esp, eax); /* 0x36098A6B: push eax */
   2070     ecx = edi; /* 0x36098A6C: mov ecx, edi */
   2071     MEM32(ebp + (-0x1C)) = edx; /* 0x36098A6E: mov dword ptr [ebp - 0x1c], edx */
   2072     RECOMP_ICALL(0x360C0300u); /* 0x36098A71: call 0x360c0300 */ /* not lifted */
   2073     RECOMP_FLAGS_IN();
   2074     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36098A76: cmp esi, dword ptr [eax + 8] */
   2075     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2077     _flag_k = FK_CMP;
   2078     if (CMP_EQ(_flag_a, _flag_b)) goto L_36098AD1; /* 0x36098A79: je 0x36098ad1 */
   2079 L_36098A7B:
   2080     edi = MEM32(esi); /* 0x36098A7B: mov edi, dword ptr [esi] */
   2081     ecx = MEM32(ebp + (-0xC)); /* 0x36098A7D: mov ecx, dword ptr [ebp - 0xc] */
   2082     MEM32(edi + 0x4) = ecx; /* 0x36098A80: mov dword ptr [edi + 4], ecx */
   2083     ecx = MEM32(ebp + 0x8); /* 0x36098A83: mov ecx, dword ptr [ebp + 8] */
   2084     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36098A86: call dword ptr [0x3616fadc] */
   2085     RECOMP_FLAGS_IN();
   2086     /* test eax, eax */ /* 0x36098A8C: test eax, eax */
   2087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2088     _cf = 0;
   2089     _flag_k = FK_TEST;
   2090     if (TEST_Z(_flag_a, _flag_b)) goto L_36098AED; /* 0x36098A8E: je 0x36098aed */
   2091 L_36098A90:
   2092     PUSH32(esp, 0x3E7u); /* 0x36098A90: push 0x3e7 */
   2093     ecx = edi; /* 0x36098A95: mov ecx, edi */
   2094     RECOMP_ICALL(0x360BD190u); /* 0x36098A97: call 0x360bd190 */ /* not lifted */
   2095     RECOMP_FLAGS_IN();
   2096     eax = MEM32(ebp + (-0x1C)); /* 0x36098A9C: mov eax, dword ptr [ebp - 0x1c] */
   2097     /* cmp esi, eax */ /* 0x36098A9F: cmp esi, eax */
   2098     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2099     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2100     _flag_k = FK_CMP;
   2101     if (CMP_EQ(_flag_a, _flag_b)) goto L_36098AC0; /* 0x36098AA1: je 0x36098ac0 */
   2102 L_36098AA3:
   2103     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   2104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2105     esi = esi + 4; /* 0x36098AA3: add esi, 4 */
   2106     _flag_k = FK_ADD;
   2107     /* cmp esi, eax */ /* 0x36098AA6: cmp esi, eax */
   2108     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2110     _flag_k = FK_CMP;
   2111     if (CMP_NE(_flag_a, _flag_b)) goto L_36098AC0; /* 0x36098AA8: jne 0x36098ac0 */
   2112 L_36098AAA:
   2113     eax = MEM32(ebx + 0x4); /* 0x36098AAA: mov eax, dword ptr [ebx + 4] */
   2114     /* test eax, eax */ /* 0x36098AAD: test eax, eax */
   2115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2116     _cf = 0;
   2117     _flag_k = FK_TEST;
   2118     if (TEST_Z(_flag_a, _flag_b)) goto L_36098AC0; /* 0x36098AAF: je 0x36098ac0 */
   2119 L_36098AB1:
   2120     esi = MEM32(ebx + 0x4); /* 0x36098AB1: mov esi, dword ptr [ebx + 4] */
   2121     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   2122     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2123     ebx = ebx + 4; /* 0x36098AB4: add ebx, 4 */
   2124     _flag_k = FK_ADD;
   2125     edx = esi + 0x1000; /* 0x36098AB7: lea edx, [esi + 0x1000] */
   2126     MEM32(ebp + (-0x1C)) = edx; /* 0x36098ABD: mov dword ptr [ebp - 0x1c], edx */
   2127 L_36098AC0:
   2128     ecx = MEM32(ebp + (-0x10)); /* 0x36098AC0: mov ecx, dword ptr [ebp - 0x10] */
   2129     eax = ebp + (-0x30); /* 0x36098AC3: lea eax, [ebp - 0x30] */
   2130     PUSH32(esp, eax); /* 0x36098AC6: push eax */
   2131     RECOMP_ICALL(0x360C0300u); /* 0x36098AC7: call 0x360c0300 */ /* not lifted */
   2132     RECOMP_FLAGS_IN();
   2133     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36098ACC: cmp esi, dword ptr [eax + 8] */
   2134     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2136     _flag_k = FK_CMP;
   2137     RECOMP_BACKEDGE();
   2138     if (CMP_NE(_flag_a, _flag_b)) goto L_36098A7B; /* 0x36098ACF: jne 0x36098a7b */
   2139 L_36098AD1:
   2140     esi = MEM32(ebp + (-0x4)); /* 0x36098AD1: mov esi, dword ptr [ebp - 4] */
   2141 L_36098AD4:
   2142     eax = MEM32(ebp + (-0x8)); /* 0x36098AD4: mov eax, dword ptr [ebp - 8] */
   2143     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2144     eax = eax + 1; /* 0x36098AD7: inc eax */
   2145     _flag_k = FK_INC;
   2146     /* cmp eax, 0x1Bu */ /* 0x36098AD8: cmp eax, 0x1b */
   2147     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Bu);
   2148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2149     _flag_k = FK_CMP;
   2150     MEM32(ebp + (-0x8)) = eax; /* 0x36098ADB: mov dword ptr [ebp - 8], eax */
   2151     RECOMP_BACKEDGE();
   2152     if (CMP_L(_flag_a, _flag_b)) goto L_36098A3A; /* 0x36098ADE: jl 0x36098a3a */
   2153 L_36098AE4:
   2154     edi = POP32_VAL(esp); /* 0x36098AE4: pop edi */
   2155     esi = POP32_VAL(esp); /* 0x36098AE5: pop esi */
   2156     ebx = POP32_VAL(esp); /* 0x36098AE6: pop ebx */
   2157     esp = ebp; /* 0x36098AE7: mov esp, ebp */
   2158     ebp = POP32_VAL(esp); /* 0x36098AE9: pop ebp */
   2159     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098AEA: ret 4 */
   2160 L_36098AED:
   2161     ecx = MEM32(ebp + (-0x4)); /* 0x36098AED: mov ecx, dword ptr [ebp - 4] */
   2162     edx = MEM32(ecx); /* 0x36098AF0: mov edx, dword ptr [ecx] */
   2163     PUSH32(esp, 0); /* 0x36098AF2: push 0 */
   2164     PUSH32(esp, 0x3E7u); /* 0x36098AF4: push 0x3e7 */
   2165     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36098AF9: call dword ptr [edx + 8] */
   2166     RECOMP_FLAGS_IN();
   2167     edi = POP32_VAL(esp); /* 0x36098AFC: pop edi */
   2168     esi = POP32_VAL(esp); /* 0x36098AFD: pop esi */
   2169     ebx = POP32_VAL(esp); /* 0x36098AFE: pop ebx */
   2170     esp = ebp; /* 0x36098AFF: mov esp, ebp */
   2171     ebp = POP32_VAL(esp); /* 0x36098B01: pop ebp */
   2172     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098B02: ret 4 */
   2173     RECOMP_REGS_OUT();
   2174 }
   2175 
   2176 void sub_36098B10(void) {
   2177     int _fpu_cmp = 0;
   2178     uint32_t _cf = 0;
   2179     int _df = 1;
   2180     uint32_t _flag_k = FK_NONE;
   2181     uint32_t _flag_a = 0, _flag_b = 0;
   2182     uint32_t _itail_tgt = 0;
   2183     RECOMP_REGS_LOCALS
   2184     RECOMP_ENTER(0x36098B10u);
   2185 
   2186 L_36098B10:
   2187     PUSH32(esp, ebp); /* 0x36098B10: push ebp */
   2188     ebp = esp; /* 0x36098B11: mov ebp, esp */
   2189     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u);
   2190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2191     esp = esp - 0x40u; /* 0x36098B13: sub esp, 0x40 */
   2192     _flag_k = FK_CMP;
   2193     PUSH32(esp, ebx); /* 0x36098B16: push ebx */
   2194     PUSH32(esp, esi); /* 0x36098B17: push esi */
   2195     PUSH32(esp, edi); /* 0x36098B18: push edi */
   2196     esi = ecx; /* 0x36098B19: mov esi, ecx */
   2197     eax = MEM32(esi); /* 0x36098B1B: mov eax, dword ptr [esi] */
   2198     PUSH32(esp, 2); /* 0x36098B1D: push 2 */
   2199     PUSH32(esp, 0x17u); /* 0x36098B1F: push 0x17 */
   2200     MEM32(ebp + (-0x10)) = esi; /* 0x36098B21: mov dword ptr [ebp - 0x10], esi */
   2201     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36098B24: call dword ptr [eax + 4] */
   2202     RECOMP_FLAGS_IN();
   2203     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2204     edi = 0; /* 0x36098B27: xor edi, edi */
   2205     _cf = 0;
   2206     _flag_k = FK_TEST;
   2207     MEM32(ebp + (-0xC)) = eax; /* 0x36098B29: mov dword ptr [ebp - 0xc], eax */
   2208     MEM32(ebp + (-0x8)) = edi; /* 0x36098B2C: mov dword ptr [ebp - 8], edi */
   2209 L_36098B2F:
   2210     PUSH32(esp, edi); /* 0x36098B2F: push edi */
   2211     ecx = esi; /* 0x36098B30: mov ecx, esi */
   2212     RECOMP_ICALL(0x360020C0u); /* 0x36098B32: call 0x360020c0 */ /* not lifted */
   2213     RECOMP_FLAGS_IN();
   2214     /* test eax, eax */ /* 0x36098B37: test eax, eax */
   2215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2216     _cf = 0;
   2217     _flag_k = FK_TEST;
   2218     MEM32(ebp + (-0x4)) = eax; /* 0x36098B39: mov dword ptr [ebp - 4], eax */
   2219     if (TEST_Z(_flag_a, _flag_b)) goto L_36098BAF; /* 0x36098B3C: je 0x36098baf */
   2220 L_36098B3E:
   2221     ecx = ebp + (-0x30); /* 0x36098B3E: lea ecx, [ebp - 0x30] */
   2222     PUSH32(esp, ecx); /* 0x36098B41: push ecx */
   2223     ecx = eax; /* 0x36098B42: mov ecx, eax */
   2224     RECOMP_ICALL(0x360C02D0u); /* 0x36098B44: call 0x360c02d0 */ /* not lifted */
   2225     RECOMP_FLAGS_IN();
   2226     edx = MEM32(eax); /* 0x36098B49: mov edx, dword ptr [eax] */
   2227     edi = MEM32(eax + 0x4); /* 0x36098B4B: mov edi, dword ptr [eax + 4] */
   2228     esi = MEM32(eax + 0x8); /* 0x36098B4E: mov esi, dword ptr [eax + 8] */
   2229     ebx = MEM32(eax + 0xC); /* 0x36098B51: mov ebx, dword ptr [eax + 0xc] */
   2230     ecx = MEM32(ebp + (-0x4)); /* 0x36098B54: mov ecx, dword ptr [ebp - 4] */
   2231     eax = ebp + (-0x20); /* 0x36098B57: lea eax, [ebp - 0x20] */
   2232     PUSH32(esp, eax); /* 0x36098B5A: push eax */
   2233     MEM32(ebp + (-0x40)) = edx; /* 0x36098B5B: mov dword ptr [ebp - 0x40], edx */
   2234     RECOMP_ICALL(0x360C0300u); /* 0x36098B5E: call 0x360c0300 */ /* not lifted */
   2235     RECOMP_FLAGS_IN();
   2236     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36098B63: cmp esi, dword ptr [eax + 8] */
   2237     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2238     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2239     _flag_k = FK_CMP;
   2240     if (CMP_EQ(_flag_a, _flag_b)) goto L_36098BA9; /* 0x36098B66: je 0x36098ba9 */
   2241 L_36098B68:
   2242     ecx = MEM32(esi); /* 0x36098B68: mov ecx, dword ptr [esi] */
   2243     edx = MEM32(ebp + (-0xC)); /* 0x36098B6A: mov edx, dword ptr [ebp - 0xc] */
   2244     PUSH32(esp, 0x3E7u); /* 0x36098B6D: push 0x3e7 */
   2245     MEM32(ecx + 0x4) = edx; /* 0x36098B72: mov dword ptr [ecx + 4], edx */
   2246     RECOMP_ICALL(0x360BD190u); /* 0x36098B75: call 0x360bd190 */ /* not lifted */
   2247     RECOMP_FLAGS_IN();
   2248     /* cmp esi, edi */ /* 0x36098B7A: cmp esi, edi */
   2249     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2251     _flag_k = FK_CMP;
   2252     if (CMP_EQ(_flag_a, _flag_b)) goto L_36098B98; /* 0x36098B7C: je 0x36098b98 */
   2253 L_36098B7E:
   2254     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   2255     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2256     esi = esi + 4; /* 0x36098B7E: add esi, 4 */
   2257     _flag_k = FK_ADD;
   2258     /* cmp esi, edi */ /* 0x36098B81: cmp esi, edi */
   2259     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   2260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2261     _flag_k = FK_CMP;
   2262     if (CMP_NE(_flag_a, _flag_b)) goto L_36098B98; /* 0x36098B83: jne 0x36098b98 */
   2263 L_36098B85:
   2264     eax = MEM32(ebx + 0x4); /* 0x36098B85: mov eax, dword ptr [ebx + 4] */
   2265     /* test eax, eax */ /* 0x36098B88: test eax, eax */
   2266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2267     _cf = 0;
   2268     _flag_k = FK_TEST;
   2269     if (TEST_Z(_flag_a, _flag_b)) goto L_36098B98; /* 0x36098B8A: je 0x36098b98 */
   2270 L_36098B8C:
   2271     esi = MEM32(ebx + 0x4); /* 0x36098B8C: mov esi, dword ptr [ebx + 4] */
   2272     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   2273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2274     ebx = ebx + 4; /* 0x36098B8F: add ebx, 4 */
   2275     _flag_k = FK_ADD;
   2276     edi = esi + 0x1000; /* 0x36098B92: lea edi, [esi + 0x1000] */
   2277 L_36098B98:
   2278     ecx = MEM32(ebp + (-0x4)); /* 0x36098B98: mov ecx, dword ptr [ebp - 4] */
   2279     eax = ebp + (-0x20); /* 0x36098B9B: lea eax, [ebp - 0x20] */
   2280     PUSH32(esp, eax); /* 0x36098B9E: push eax */
   2281     RECOMP_ICALL(0x360C0300u); /* 0x36098B9F: call 0x360c0300 */ /* not lifted */
   2282     RECOMP_FLAGS_IN();
   2283     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36098BA4: cmp esi, dword ptr [eax + 8] */
   2284     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2286     _flag_k = FK_CMP;
   2287     RECOMP_BACKEDGE();
   2288     if (CMP_NE(_flag_a, _flag_b)) goto L_36098B68; /* 0x36098BA7: jne 0x36098b68 */
   2289 L_36098BA9:
   2290     edi = MEM32(ebp + (-0x8)); /* 0x36098BA9: mov edi, dword ptr [ebp - 8] */
   2291     esi = MEM32(ebp + (-0x10)); /* 0x36098BAC: mov esi, dword ptr [ebp - 0x10] */
   2292 L_36098BAF:
   2293     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2294     edi = edi + 1; /* 0x36098BAF: inc edi */
   2295     _flag_k = FK_INC;
   2296     /* cmp edi, 0x1Bu */ /* 0x36098BB0: cmp edi, 0x1b */
   2297     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Bu);
   2298     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2299     _flag_k = FK_CMP;
   2300     MEM32(ebp + (-0x8)) = edi; /* 0x36098BB3: mov dword ptr [ebp - 8], edi */
   2301     RECOMP_BACKEDGE();
   2302     if (CMP_L(_flag_a, _flag_b)) goto L_36098B2F; /* 0x36098BB6: jl 0x36098b2f */
   2303 L_36098BBC:
   2304     edi = POP32_VAL(esp); /* 0x36098BBC: pop edi */
   2305     esi = POP32_VAL(esp); /* 0x36098BBD: pop esi */
   2306     ebx = POP32_VAL(esp); /* 0x36098BBE: pop ebx */
   2307     esp = ebp; /* 0x36098BBF: mov esp, ebp */
   2308     ebp = POP32_VAL(esp); /* 0x36098BC1: pop ebp */
   2309     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098BC2: ret 4 */
   2310     RECOMP_REGS_OUT();
   2311 }
   2312 
   2313 void sub_36098BD0(void) {
   2314     int _fpu_cmp = 0;
   2315     uint32_t _cf = 0;
   2316     int _df = 1;
   2317     uint32_t _flag_k = FK_NONE;
   2318     uint32_t _flag_a = 0, _flag_b = 0;
   2319     uint32_t _itail_tgt = 0;
   2320     RECOMP_REGS_LOCALS
   2321     RECOMP_ENTER(0x36098BD0u);
   2322 
   2323 L_36098BD0:
   2324     eax = MEM32(ecx); /* 0x36098BD0: mov eax, dword ptr [ecx] */
   2325     PUSH32(esp, 2); /* 0x36098BD2: push 2 */
   2326     PUSH32(esp, 0x197u); /* 0x36098BD4: push 0x197 */
   2327     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36098BD9: call dword ptr [eax + 4] */
   2328     RECOMP_FLAGS_IN();
   2329     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098BDC: ret  */
   2330     RECOMP_REGS_OUT();
   2331 }
   2332 
   2333 void sub_36098BE0(void) {
   2334     int _fpu_cmp = 0;
   2335     uint32_t _cf = 0;
   2336     int _df = 1;
   2337     uint32_t _flag_k = FK_NONE;
   2338     uint32_t _flag_a = 0, _flag_b = 0;
   2339     uint32_t _itail_tgt = 0;
   2340     RECOMP_REGS_LOCALS
   2341     RECOMP_ENTER(0x36098BE0u);
   2342 
   2343 L_36098BE0:
   2344     fp_push(*(float*)&MEM32(ecx + 0x8C)); /* 0x36098BE0: fld dword ptr [ecx + 0x8c] */
   2345 L_36098BE6:
   2346     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36098BE6: fcomp dword ptr [0x3617040c] */
   2347     fp_pop();
   2348 L_36098BEC:
   2349     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36098BEC: fnstsw ax */
   2350 L_36098BEE:
   2351     /* test HI8(eax), 0x41u */ /* 0x36098BEE: test ah, 0x41 */
   2352     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   2353     _cf = 0;
   2354     _flag_k = FK_NARROW(FK_TEST, 24);
   2355 L_36098BF1:
   2356     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36098BFE; /* 0x36098BF1: jne 0x36098bfe */
   2357 L_36098BF3:
   2358     fp_push(*(float*)&MEM32(ecx + 0x8C)); /* 0x36098BF3: fld dword ptr [ecx + 0x8c] */
   2359 L_36098BF9:
   2360     goto L_3615FD8C; /* 0x36098BF9: jmp 0x3615fd8c */
   2361 L_36098BFE:
   2362     eax = MEM32(ecx); /* 0x36098BFE: mov eax, dword ptr [ecx] */
   2363 L_36098C00:
   2364     PUSH32(esp, 2); /* 0x36098C00: push 2 */
   2365 L_36098C02:
   2366     PUSH32(esp, 8); /* 0x36098C02: push 8 */
   2367 L_36098C04:
   2368     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36098C04: call dword ptr [eax + 4] */
   2369     RECOMP_FLAGS_IN();
   2370 L_36098C07:
   2371     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098C07: ret  */
   2372 L_3615FD8C:
   2373     { _itail_tgt = (uint32_t)(MEM32(0x3616F284)); goto _ljump; }
   2374     { RECOMP_REGS_OUT(); return; } /* end of function */
   2375   _ljump:
   2376     switch (_itail_tgt) {
   2377       case 0x36098BE0u: goto L_36098BE0;
   2378       case 0x36098BE6u: goto L_36098BE6;
   2379       case 0x36098BECu: goto L_36098BEC;
   2380       case 0x36098BEEu: goto L_36098BEE;
   2381       case 0x36098BF1u: goto L_36098BF1;
   2382       case 0x36098BF3u: goto L_36098BF3;
   2383       case 0x36098BF9u: goto L_36098BF9;
   2384       case 0x36098BFEu: goto L_36098BFE;
   2385       case 0x36098C00u: goto L_36098C00;
   2386       case 0x36098C02u: goto L_36098C02;
   2387       case 0x36098C04u: goto L_36098C04;
   2388       case 0x36098C07u: goto L_36098C07;
   2389       case 0x3615FD8Cu: goto L_3615FD8C;
   2390       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2391     }
   2392     RECOMP_REGS_OUT();
   2393 }
   2394 
   2395 void sub_36098C10(void) {
   2396     int _fpu_cmp = 0;
   2397     uint32_t _cf = 0;
   2398     int _df = 1;
   2399     uint32_t _flag_k = FK_NONE;
   2400     uint32_t _flag_a = 0, _flag_b = 0;
   2401     uint32_t _itail_tgt = 0;
   2402     RECOMP_REGS_LOCALS
   2403     RECOMP_ENTER(0x36098C10u);
   2404 
   2405 L_36098C10:
   2406     PUSH32(esp, ebp); /* 0x36098C10: push ebp */
   2407     ebp = esp; /* 0x36098C11: mov ebp, esp */
   2408     PUSH32(esp, ecx); /* 0x36098C13: push ecx */
   2409     eax = MEM32(ecx); /* 0x36098C14: mov eax, dword ptr [ecx] */
   2410     PUSH32(esp, esi); /* 0x36098C16: push esi */
   2411     PUSH32(esp, 2); /* 0x36098C17: push 2 */
   2412     PUSH32(esp, 0x11Fu); /* 0x36098C19: push 0x11f */
   2413     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36098C1E: call dword ptr [eax + 4] */
   2414     RECOMP_FLAGS_IN();
   2415     ecx = MEM32(ebp + 0x8); /* 0x36098C21: mov ecx, dword ptr [ebp + 8] */
   2416     edx = MEM32(ecx + 0xE4); /* 0x36098C24: mov edx, dword ptr [ecx + 0xe4] */
   2417     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   2418     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2419     ecx = ecx + 0xE4u; /* 0x36098C2A: add ecx, 0xe4 */
   2420     _flag_k = FK_ADD;
   2421     PUSH32(esp, 0); /* 0x36098C30: push 0 */
   2422     esi = eax; /* 0x36098C32: mov esi, eax */
   2423     PUSH32(esp, 0x17Du); /* 0x36098C34: push 0x17d */
   2424     MEM32(ebp + (-0x4)) = esi; /* 0x36098C39: mov dword ptr [ebp - 4], esi */
   2425     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36098C3C: call dword ptr [edx + 4] */
   2426     RECOMP_FLAGS_IN();
   2427     eax = (uint32_t)((int32_t)eax * (int32_t)esi); /* 0x36098C3F: imul eax, esi */
   2428     MEM32(ebp + 0x8) = eax; /* 0x36098C42: mov dword ptr [ebp + 8], eax */
   2429     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36098C45: fild dword ptr [ebp + 8] */
   2430     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x36098C48: fmul dword ptr [0x36170894] */
   2431     _st[0] = _st[0] + (double)(int32_t)MEM32(ebp + (-0x4)); /* 0x36098C4E: fiadd dword ptr [ebp - 4] */
   2432     RECOMP_ICALL(0x3615FD8Cu); /* 0x36098C51: call 0x3615fd8c */ /* not lifted */
   2433     RECOMP_FLAGS_IN();
   2434     /* cmp eax, 0x28u */ /* 0x36098C56: cmp eax, 0x28 */
   2435     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u);
   2436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2437     _flag_k = FK_CMP;
   2438     esi = POP32_VAL(esp); /* 0x36098C59: pop esi */
   2439     if (CMP_LE(_flag_a, _flag_b)) goto L_36098C61; /* 0x36098C5A: jle 0x36098c61 */
   2440 L_36098C5C:
   2441     eax = 0x28u; /* 0x36098C5C: mov eax, 0x28 */
   2442 L_36098C61:
   2443     esp = ebp; /* 0x36098C61: mov esp, ebp */
   2444     ebp = POP32_VAL(esp); /* 0x36098C63: pop ebp */
   2445     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36098C64: ret 4 */
   2446     RECOMP_REGS_OUT();
   2447 }
   2448 
   2449 void sub_36098C70(void) {
   2450     int _fpu_cmp = 0;
   2451     uint32_t _cf = 0;
   2452     int _df = 1;
   2453     uint32_t _flag_k = FK_NONE;
   2454     uint32_t _flag_a = 0, _flag_b = 0;
   2455     uint32_t _itail_tgt = 0;
   2456     RECOMP_REGS_LOCALS
   2457     RECOMP_ENTER(0x36098C70u);
   2458 
   2459 L_36098C70:
   2460     PUSH32(esp, ebp); /* 0x36098C70: push ebp */
   2461     ebp = esp; /* 0x36098C71: mov ebp, esp */
   2462     PUSH32(esp, ebx); /* 0x36098C73: push ebx */
   2463     PUSH32(esp, esi); /* 0x36098C74: push esi */
   2464     PUSH32(esp, edi); /* 0x36098C75: push edi */
   2465     edi = MEM32(ebp + 0xC); /* 0x36098C76: mov edi, dword ptr [ebp + 0xc] */
   2466     /* test edi, edi */ /* 0x36098C79: test edi, edi */
   2467     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2468     _cf = 0;
   2469     _flag_k = FK_TEST;
   2470     esi = ecx; /* 0x36098C7B: mov esi, ecx */
   2471     if (TEST_Z(_flag_a, _flag_b)) goto L_36098C87; /* 0x36098C7D: je 0x36098c87 */
   2472 L_36098C7F:
   2473     eax = edi + 0xE4; /* 0x36098C7F: lea eax, [edi + 0xe4] */
   2474     goto L_36098C89; /* 0x36098C85: jmp 0x36098c89 */
   2475 L_36098C87:
   2476     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2477     eax = 0; /* 0x36098C87: xor eax, eax */
   2478     _cf = 0;
   2479     _flag_k = FK_TEST;
   2480 L_36098C89:
   2481     ebx = MEM32(esi); /* 0x36098C89: mov ebx, dword ptr [esi] */
   2482     PUSH32(esp, 0x362EA510u); /* 0x36098C8B: push 0x362ea510 */
   2483     PUSH32(esp, 0); /* 0x36098C90: push 0 */
   2484     PUSH32(esp, eax); /* 0x36098C92: push eax */
   2485     PUSH32(esp, 4); /* 0x36098C93: push 4 */
   2486     ecx = esi; /* 0x36098C95: mov ecx, esi */
   2487     RECOMP_ICALL(0x360020C0u); /* 0x36098C97: call 0x360020c0 */ /* not lifted */
   2488     RECOMP_FLAGS_IN();
   2489     PUSH32(esp, eax); /* 0x36098C9C: push eax */
   2490     ecx = esi; /* 0x36098C9D: mov ecx, esi */
   2491     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36098C9F: call dword ptr [ebx + 0x34] */
   2492     RECOMP_FLAGS_IN();
   2493     /* test edi, edi */ /* 0x36098CA2: test edi, edi */
   2494     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2495     _cf = 0;
   2496     _flag_k = FK_TEST;
   2497     if (TEST_Z(_flag_a, _flag_b)) goto L_36098CAE; /* 0x36098CA4: je 0x36098cae */
   2498 L_36098CA6:
   2499     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xE4u);
   2500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2501     edi = edi + 0xE4u; /* 0x36098CA6: add edi, 0xe4 */
   2502     _flag_k = FK_ADD;
   2503     goto L_36098CB0; /* 0x36098CAC: jmp 0x36098cb0 */
   2504 L_36098CAE:
   2505     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2506     edi = 0; /* 0x36098CAE: xor edi, edi */
   2507     _cf = 0;
   2508     _flag_k = FK_TEST;
   2509 L_36098CB0:
   2510     ebx = MEM32(esi); /* 0x36098CB0: mov ebx, dword ptr [esi] */
   2511     PUSH32(esp, 0x362EA510u); /* 0x36098CB2: push 0x362ea510 */
   2512     PUSH32(esp, 0); /* 0x36098CB7: push 0 */
   2513     PUSH32(esp, edi); /* 0x36098CB9: push edi */
   2514     PUSH32(esp, 0); /* 0x36098CBA: push 0 */
   2515     ecx = esi; /* 0x36098CBC: mov ecx, esi */
   2516     RECOMP_ICALL(0x360020C0u); /* 0x36098CBE: call 0x360020c0 */ /* not lifted */
   2517     RECOMP_FLAGS_IN();
   2518     PUSH32(esp, eax); /* 0x36098CC3: push eax */
   2519     ecx = esi; /* 0x36098CC4: mov ecx, esi */
   2520     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36098CC6: call dword ptr [ebx + 0x34] */
   2521     RECOMP_FLAGS_IN();
   2522     edi = POP32_VAL(esp); /* 0x36098CC9: pop edi */
   2523     esi = POP32_VAL(esp); /* 0x36098CCA: pop esi */
   2524     ebx = POP32_VAL(esp); /* 0x36098CCB: pop ebx */
   2525     ebp = POP32_VAL(esp); /* 0x36098CCC: pop ebp */
   2526     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36098CCD: ret 0xc */
   2527     RECOMP_REGS_OUT();
   2528 }
   2529 
   2530 void sub_36098CD0(void) {
   2531     int _fpu_cmp = 0;
   2532     uint32_t _cf = 0;
   2533     int _df = 1;
   2534     uint32_t _flag_k = FK_NONE;
   2535     uint32_t _flag_a = 0, _flag_b = 0;
   2536     uint32_t _itail_tgt = 0;
   2537     RECOMP_REGS_LOCALS
   2538     RECOMP_ENTER(0x36098CD0u);
   2539 
   2540 L_36098CD0:
   2541     PUSH32(esp, ebp); /* 0x36098CD0: push ebp */
   2542     ebp = esp; /* 0x36098CD1: mov ebp, esp */
   2543     eax = MEM32(ebp + 0xC); /* 0x36098CD3: mov eax, dword ptr [ebp + 0xc] */
   2544     /* test eax, eax */ /* 0x36098CD6: test eax, eax */
   2545     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2546     _cf = 0;
   2547     _flag_k = FK_TEST;
   2548     PUSH32(esp, esi); /* 0x36098CD8: push esi */
   2549     PUSH32(esp, edi); /* 0x36098CD9: push edi */
   2550     esi = ecx; /* 0x36098CDA: mov esi, ecx */
   2551     if (TEST_Z(_flag_a, _flag_b)) goto L_36098CE5; /* 0x36098CDC: je 0x36098ce5 */
   2552 L_36098CDE:
   2553     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   2554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2555     eax = eax + 0xE4u; /* 0x36098CDE: add eax, 0xe4 */
   2556     _flag_k = FK_ADD;
   2557     goto L_36098CE7; /* 0x36098CE3: jmp 0x36098ce7 */
   2558 L_36098CE5:
   2559     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2560     eax = 0; /* 0x36098CE5: xor eax, eax */
   2561     _cf = 0;
   2562     _flag_k = FK_TEST;
   2563 L_36098CE7:
   2564     edi = MEM32(esi); /* 0x36098CE7: mov edi, dword ptr [esi] */
   2565     PUSH32(esp, 0x362EA510u); /* 0x36098CE9: push 0x362ea510 */
   2566     PUSH32(esp, 0); /* 0x36098CEE: push 0 */
   2567     PUSH32(esp, eax); /* 0x36098CF0: push eax */
   2568     PUSH32(esp, 0); /* 0x36098CF1: push 0 */
   2569     ecx = esi; /* 0x36098CF3: mov ecx, esi */
   2570     RECOMP_ICALL(0x360020C0u); /* 0x36098CF5: call 0x360020c0 */ /* not lifted */
   2571     RECOMP_FLAGS_IN();
   2572     PUSH32(esp, eax); /* 0x36098CFA: push eax */
   2573     ecx = esi; /* 0x36098CFB: mov ecx, esi */
   2574     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x36098CFD: call dword ptr [edi + 0x34] */
   2575     RECOMP_FLAGS_IN();
   2576     edi = POP32_VAL(esp); /* 0x36098D00: pop edi */
   2577     esi = POP32_VAL(esp); /* 0x36098D01: pop esi */
   2578     ebp = POP32_VAL(esp); /* 0x36098D02: pop ebp */
   2579     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36098D03: ret 8 */
   2580     RECOMP_REGS_OUT();
   2581 }
   2582 
   2583 void sub_36098D10(void) {
   2584     int _fpu_cmp = 0;
   2585     uint32_t _cf = 0;
   2586     int _df = 1;
   2587     uint32_t _flag_k = FK_NONE;
   2588     uint32_t _flag_a = 0, _flag_b = 0;
   2589     uint32_t _itail_tgt = 0;
   2590     RECOMP_REGS_LOCALS
   2591     RECOMP_ENTER(0x36098D10u);
   2592 
   2593 L_36098D10:
   2594     PUSH32(esp, ebp); /* 0x36098D10: push ebp */
   2595     ebp = esp; /* 0x36098D11: mov ebp, esp */
   2596     PUSH32(esp, esi); /* 0x36098D13: push esi */
   2597     esi = ecx; /* 0x36098D14: mov esi, ecx */
   2598     ecx = MEM32(ebp + 0xC); /* 0x36098D16: mov ecx, dword ptr [ebp + 0xc] */
   2599     eax = MEM32(esi); /* 0x36098D19: mov eax, dword ptr [esi] */
   2600     PUSH32(esp, ecx); /* 0x36098D1B: push ecx */
   2601     ecx = esi; /* 0x36098D1C: mov ecx, esi */
   2602     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x36098D1E: call dword ptr [eax + 0x88] */
   2603     RECOMP_FLAGS_IN();
   2604     edx = MEM32(esi); /* 0x36098D24: mov edx, dword ptr [esi] */
   2605     PUSH32(esp, eax); /* 0x36098D26: push eax */
   2606     eax = MEM32(ebp + 0x8); /* 0x36098D27: mov eax, dword ptr [ebp + 8] */
   2607     PUSH32(esp, eax); /* 0x36098D2A: push eax */
   2608     ecx = esi; /* 0x36098D2B: mov ecx, esi */
   2609     RECOMP_ICALL(MEM32(edx + 0x84)); /* 0x36098D2D: call dword ptr [edx + 0x84] */
   2610     RECOMP_FLAGS_IN();
   2611     PUSH32(esp, eax); /* 0x36098D33: push eax */
   2612     RECOMP_ICALL(0x3602EAC0u); /* 0x36098D34: call 0x3602eac0 */ /* not lifted */
   2613     RECOMP_FLAGS_IN();
   2614     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2615     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2616     esp = esp + 8; /* 0x36098D39: add esp, 8 */
   2617     _flag_k = FK_ADD;
   2618     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2619     eax = eax - 1; /* 0x36098D3C: dec eax */
   2620     _flag_k = FK_DEC;
   2621     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2622     _cf = (eax) != 0;
   2623     eax = (uint32_t)(-(int32_t)eax); /* 0x36098D3D: neg eax */
   2624     _flag_k = FK_CMP;
   2625     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36098D3F: sbb eax, eax */
   2626       eax = _sc ? 0xFFFFFFFFu : 0;
   2627       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2628       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2629     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2631     eax = eax + 4; /* 0x36098D41: add eax, 4 */
   2632     _flag_k = FK_ADD;
   2633     esi = POP32_VAL(esp); /* 0x36098D44: pop esi */
   2634     ebp = POP32_VAL(esp); /* 0x36098D45: pop ebp */
   2635     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36098D46: ret 8 */
   2636     RECOMP_REGS_OUT();
   2637 }
   2638 
   2639 void sub_36098D50(void) {
   2640     int _fpu_cmp = 0;
   2641     uint32_t _cf = 0;
   2642     int _df = 1;
   2643     uint32_t _flag_k = FK_NONE;
   2644     uint32_t _flag_a = 0, _flag_b = 0;
   2645     uint32_t _itail_tgt = 0;
   2646     RECOMP_REGS_LOCALS
   2647     RECOMP_ENTER(0x36098D50u);
   2648 
   2649     goto L_36098D50;
   2650 L_360985D0:
   2651     PUSH32(esp, ebp); /* 0x360985D0: push ebp */
   2652     ebp = esp; /* 0x360985D1: mov ebp, esp */
   2653     PUSH32(esp, esi); /* 0x360985D3: push esi */
   2654     esi = ecx; /* 0x360985D4: mov esi, ecx */
   2655     RECOMP_ICALL(0x360989F0u); /* 0x360985D6: call 0x360989f0 */ /* not lifted */
   2656     RECOMP_FLAGS_IN();
   2657     /* test MEM8(ebp + 0x8), 1 */ /* 0x360985DB: test byte ptr [ebp + 8], 1 */
   2658     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2659     _cf = 0;
   2660     _flag_k = FK_NARROW(FK_TEST, 24);
   2661     if (TEST_Z(_flag_a, _flag_b)) goto L_360985EA; /* 0x360985DF: je 0x360985ea */
   2662 L_360985E1:
   2663     PUSH32(esp, esi); /* 0x360985E1: push esi */
   2664     RECOMP_ICALL(0x3615FCC4u); /* 0x360985E2: call 0x3615fcc4 */ /* not lifted */
   2665     RECOMP_FLAGS_IN();
   2666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2668     esp = esp + 4; /* 0x360985E7: add esp, 4 */
   2669     _flag_k = FK_ADD;
   2670 L_360985EA:
   2671     eax = esi; /* 0x360985EA: mov eax, esi */
   2672     esi = POP32_VAL(esp); /* 0x360985EC: pop esi */
   2673     ebp = POP32_VAL(esp); /* 0x360985ED: pop ebp */
   2674     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360985EE: ret 4 */
   2675 L_36098D50:
   2676     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   2677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2678     ecx = ecx - 8; /* 0x36098D50: sub ecx, 8 */
   2679     _flag_k = FK_CMP;
   2680     RECOMP_BACKEDGE();
   2681     goto L_360985D0; /* 0x36098D53: jmp 0x360985d0 */
   2682     { RECOMP_REGS_OUT(); return; } /* end of function */
   2683     RECOMP_REGS_OUT();
   2684 }
   2685 
   2686 void sub_36098D60(void) {
   2687     int _fpu_cmp = 0;
   2688     uint32_t _cf = 0;
   2689     int _df = 1;
   2690     uint32_t _flag_k = FK_NONE;
   2691     uint32_t _flag_a = 0, _flag_b = 0;
   2692     uint32_t _itail_tgt = 0;
   2693     RECOMP_REGS_LOCALS
   2694     RECOMP_ENTER(0x36098D60u);
   2695 
   2696     goto L_36098D60;
   2697 L_360985D0:
   2698     PUSH32(esp, ebp); /* 0x360985D0: push ebp */
   2699     ebp = esp; /* 0x360985D1: mov ebp, esp */
   2700     PUSH32(esp, esi); /* 0x360985D3: push esi */
   2701     esi = ecx; /* 0x360985D4: mov esi, ecx */
   2702     RECOMP_ICALL(0x360989F0u); /* 0x360985D6: call 0x360989f0 */ /* not lifted */
   2703     RECOMP_FLAGS_IN();
   2704     /* test MEM8(ebp + 0x8), 1 */ /* 0x360985DB: test byte ptr [ebp + 8], 1 */
   2705     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2706     _cf = 0;
   2707     _flag_k = FK_NARROW(FK_TEST, 24);
   2708     if (TEST_Z(_flag_a, _flag_b)) goto L_360985EA; /* 0x360985DF: je 0x360985ea */
   2709 L_360985E1:
   2710     PUSH32(esp, esi); /* 0x360985E1: push esi */
   2711     RECOMP_ICALL(0x3615FCC4u); /* 0x360985E2: call 0x3615fcc4 */ /* not lifted */
   2712     RECOMP_FLAGS_IN();
   2713     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2714     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2715     esp = esp + 4; /* 0x360985E7: add esp, 4 */
   2716     _flag_k = FK_ADD;
   2717 L_360985EA:
   2718     eax = esi; /* 0x360985EA: mov eax, esi */
   2719     esi = POP32_VAL(esp); /* 0x360985EC: pop esi */
   2720     ebp = POP32_VAL(esp); /* 0x360985ED: pop ebp */
   2721     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360985EE: ret 4 */
   2722 L_36098D60:
   2723     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
   2724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2725     ecx = ecx - 0x40u; /* 0x36098D60: sub ecx, 0x40 */
   2726     _flag_k = FK_CMP;
   2727     RECOMP_BACKEDGE();
   2728     goto L_360985D0; /* 0x36098D63: jmp 0x360985d0 */
   2729     { RECOMP_REGS_OUT(); return; } /* end of function */
   2730     RECOMP_REGS_OUT();
   2731 }
   2732 
   2733 void sub_36098D70(void) {
   2734     int _fpu_cmp = 0;
   2735     uint32_t _cf = 0;
   2736     int _df = 1;
   2737     uint32_t _flag_k = FK_NONE;
   2738     uint32_t _flag_a = 0, _flag_b = 0;
   2739     uint32_t _itail_tgt = 0;
   2740     RECOMP_REGS_LOCALS
   2741     RECOMP_ENTER(0x36098D70u);
   2742 
   2743     goto L_36098D70;
   2744 L_360985D0:
   2745     PUSH32(esp, ebp); /* 0x360985D0: push ebp */
   2746     ebp = esp; /* 0x360985D1: mov ebp, esp */
   2747     PUSH32(esp, esi); /* 0x360985D3: push esi */
   2748     esi = ecx; /* 0x360985D4: mov esi, ecx */
   2749     RECOMP_ICALL(0x360989F0u); /* 0x360985D6: call 0x360989f0 */ /* not lifted */
   2750     RECOMP_FLAGS_IN();
   2751     /* test MEM8(ebp + 0x8), 1 */ /* 0x360985DB: test byte ptr [ebp + 8], 1 */
   2752     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2753     _cf = 0;
   2754     _flag_k = FK_NARROW(FK_TEST, 24);
   2755     if (TEST_Z(_flag_a, _flag_b)) goto L_360985EA; /* 0x360985DF: je 0x360985ea */
   2756 L_360985E1:
   2757     PUSH32(esp, esi); /* 0x360985E1: push esi */
   2758     RECOMP_ICALL(0x3615FCC4u); /* 0x360985E2: call 0x3615fcc4 */ /* not lifted */
   2759     RECOMP_FLAGS_IN();
   2760     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2761     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2762     esp = esp + 4; /* 0x360985E7: add esp, 4 */
   2763     _flag_k = FK_ADD;
   2764 L_360985EA:
   2765     eax = esi; /* 0x360985EA: mov eax, esi */
   2766     esi = POP32_VAL(esp); /* 0x360985EC: pop esi */
   2767     ebp = POP32_VAL(esp); /* 0x360985ED: pop ebp */
   2768     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360985EE: ret 4 */
   2769 L_36098D70:
   2770     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
   2771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2772     ecx = ecx - 0x4Cu; /* 0x36098D70: sub ecx, 0x4c */
   2773     _flag_k = FK_CMP;
   2774     RECOMP_BACKEDGE();
   2775     goto L_360985D0; /* 0x36098D73: jmp 0x360985d0 */
   2776     { RECOMP_REGS_OUT(); return; } /* end of function */
   2777     RECOMP_REGS_OUT();
   2778 }
   2779 
   2780 void sub_36098D80(void) {
   2781     int _fpu_cmp = 0;
   2782     uint32_t _cf = 0;
   2783     int _df = 1;
   2784     uint32_t _flag_k = FK_NONE;
   2785     uint32_t _flag_a = 0, _flag_b = 0;
   2786     uint32_t _itail_tgt = 0;
   2787     RECOMP_REGS_LOCALS
   2788     RECOMP_ENTER(0x36098D80u);
   2789 
   2790 L_36098D80:
   2791     goto L_36098D90; /* 0x36098D80: jmp 0x36098d90 */
   2792 L_36098D90:
   2793     MEM32(0x36306C1C) = 0x361B2FF4u; /* 0x36098D90: mov dword ptr [0x36306c1c], 0x361b2ff4 */
   2794     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098D9A: ret  */
   2795     RECOMP_REGS_OUT();
   2796 }
   2797 
   2798 void sub_36098D90(void) {
   2799     int _fpu_cmp = 0;
   2800     uint32_t _cf = 0;
   2801     int _df = 1;
   2802     uint32_t _flag_k = FK_NONE;
   2803     uint32_t _flag_a = 0, _flag_b = 0;
   2804     uint32_t _itail_tgt = 0;
   2805     RECOMP_REGS_LOCALS
   2806     RECOMP_ENTER(0x36098D90u);
   2807 
   2808 L_36098D90:
   2809     MEM32(0x36306C1C) = 0x361B2FF4u; /* 0x36098D90: mov dword ptr [0x36306c1c], 0x361b2ff4 */
   2810     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098D9A: ret  */
   2811     RECOMP_REGS_OUT();
   2812 }
   2813 
   2814 void sub_36098DA0(void) {
   2815     int _fpu_cmp = 0;
   2816     uint32_t _cf = 0;
   2817     int _df = 1;
   2818     uint32_t _flag_k = FK_NONE;
   2819     uint32_t _flag_a = 0, _flag_b = 0;
   2820     uint32_t _itail_tgt = 0;
   2821     RECOMP_REGS_LOCALS
   2822     RECOMP_ENTER(0x36098DA0u);
   2823 
   2824 L_36098DA0:
   2825     goto L_36098DB0; /* 0x36098DA0: jmp 0x36098db0 */
   2826 L_36098DB0:
   2827     MEM32(0x36306C18) = 0x361B3028u; /* 0x36098DB0: mov dword ptr [0x36306c18], 0x361b3028 */
   2828     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098DBA: ret  */
   2829     RECOMP_REGS_OUT();
   2830 }
   2831 
   2832 void sub_36098DB0(void) {
   2833     int _fpu_cmp = 0;
   2834     uint32_t _cf = 0;
   2835     int _df = 1;
   2836     uint32_t _flag_k = FK_NONE;
   2837     uint32_t _flag_a = 0, _flag_b = 0;
   2838     uint32_t _itail_tgt = 0;
   2839     RECOMP_REGS_LOCALS
   2840     RECOMP_ENTER(0x36098DB0u);
   2841 
   2842 L_36098DB0:
   2843     MEM32(0x36306C18) = 0x361B3028u; /* 0x36098DB0: mov dword ptr [0x36306c18], 0x361b3028 */
   2844     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098DBA: ret  */
   2845     RECOMP_REGS_OUT();
   2846 }
   2847 
   2848 void sub_36098DC0(void) {
   2849     int _fpu_cmp = 0;
   2850     uint32_t _cf = 0;
   2851     int _df = 1;
   2852     uint32_t _flag_k = FK_NONE;
   2853     uint32_t _flag_a = 0, _flag_b = 0;
   2854     uint32_t _itail_tgt = 0;
   2855     RECOMP_REGS_LOCALS
   2856     RECOMP_ENTER(0x36098DC0u);
   2857 
   2858 L_36098DC0:
   2859     goto L_36098DD0; /* 0x36098DC0: jmp 0x36098dd0 */
   2860 L_36098DD0:
   2861     MEM32(0x36306C14) = 0x361B3064u; /* 0x36098DD0: mov dword ptr [0x36306c14], 0x361b3064 */
   2862     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098DDA: ret  */
   2863     RECOMP_REGS_OUT();
   2864 }
   2865 
   2866 void sub_36098DD0(void) {
   2867     int _fpu_cmp = 0;
   2868     uint32_t _cf = 0;
   2869     int _df = 1;
   2870     uint32_t _flag_k = FK_NONE;
   2871     uint32_t _flag_a = 0, _flag_b = 0;
   2872     uint32_t _itail_tgt = 0;
   2873     RECOMP_REGS_LOCALS
   2874     RECOMP_ENTER(0x36098DD0u);
   2875 
   2876 L_36098DD0:
   2877     MEM32(0x36306C14) = 0x361B3064u; /* 0x36098DD0: mov dword ptr [0x36306c14], 0x361b3064 */
   2878     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098DDA: ret  */
   2879     RECOMP_REGS_OUT();
   2880 }
   2881 
   2882 void sub_36098DE0(void) {
   2883     int _fpu_cmp = 0;
   2884     uint32_t _cf = 0;
   2885     int _df = 1;
   2886     uint32_t _flag_k = FK_NONE;
   2887     uint32_t _flag_a = 0, _flag_b = 0;
   2888     uint32_t _itail_tgt = 0;
   2889     RECOMP_REGS_LOCALS
   2890     RECOMP_ENTER(0x36098DE0u);
   2891 
   2892 L_36098DE0:
   2893     goto L_36098DF0; /* 0x36098DE0: jmp 0x36098df0 */
   2894 L_36098DF0:
   2895     MEM32(0x36306C10) = 0x361B3098u; /* 0x36098DF0: mov dword ptr [0x36306c10], 0x361b3098 */
   2896     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098DFA: ret  */
   2897     RECOMP_REGS_OUT();
   2898 }
   2899 
   2900 void sub_36098DF0(void) {
   2901     int _fpu_cmp = 0;
   2902     uint32_t _cf = 0;
   2903     int _df = 1;
   2904     uint32_t _flag_k = FK_NONE;
   2905     uint32_t _flag_a = 0, _flag_b = 0;
   2906     uint32_t _itail_tgt = 0;
   2907     RECOMP_REGS_LOCALS
   2908     RECOMP_ENTER(0x36098DF0u);
   2909 
   2910 L_36098DF0:
   2911     MEM32(0x36306C10) = 0x361B3098u; /* 0x36098DF0: mov dword ptr [0x36306c10], 0x361b3098 */
   2912     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098DFA: ret  */
   2913     RECOMP_REGS_OUT();
   2914 }
   2915 
   2916 void sub_36098E00(void) {
   2917     int _fpu_cmp = 0;
   2918     uint32_t _cf = 0;
   2919     int _df = 1;
   2920     uint32_t _flag_k = FK_NONE;
   2921     uint32_t _flag_a = 0, _flag_b = 0;
   2922     uint32_t _itail_tgt = 0;
   2923     RECOMP_REGS_LOCALS
   2924     RECOMP_ENTER(0x36098E00u);
   2925 
   2926 L_36098E00:
   2927     goto L_36098E10; /* 0x36098E00: jmp 0x36098e10 */
   2928 L_36098E10:
   2929     MEM32(0x36306C0C) = 0x361B30CCu; /* 0x36098E10: mov dword ptr [0x36306c0c], 0x361b30cc */
   2930     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E1A: ret  */
   2931     RECOMP_REGS_OUT();
   2932 }
   2933 
   2934 void sub_36098E10(void) {
   2935     int _fpu_cmp = 0;
   2936     uint32_t _cf = 0;
   2937     int _df = 1;
   2938     uint32_t _flag_k = FK_NONE;
   2939     uint32_t _flag_a = 0, _flag_b = 0;
   2940     uint32_t _itail_tgt = 0;
   2941     RECOMP_REGS_LOCALS
   2942     RECOMP_ENTER(0x36098E10u);
   2943 
   2944 L_36098E10:
   2945     MEM32(0x36306C0C) = 0x361B30CCu; /* 0x36098E10: mov dword ptr [0x36306c0c], 0x361b30cc */
   2946     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E1A: ret  */
   2947     RECOMP_REGS_OUT();
   2948 }
   2949 
   2950 void sub_36098E20(void) {
   2951     int _fpu_cmp = 0;
   2952     uint32_t _cf = 0;
   2953     int _df = 1;
   2954     uint32_t _flag_k = FK_NONE;
   2955     uint32_t _flag_a = 0, _flag_b = 0;
   2956     uint32_t _itail_tgt = 0;
   2957     RECOMP_REGS_LOCALS
   2958     RECOMP_ENTER(0x36098E20u);
   2959 
   2960 L_36098E20:
   2961     goto L_36098E30; /* 0x36098E20: jmp 0x36098e30 */
   2962 L_36098E30:
   2963     MEM32(0x36306C08) = 0x361B3100u; /* 0x36098E30: mov dword ptr [0x36306c08], 0x361b3100 */
   2964     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E3A: ret  */
   2965     RECOMP_REGS_OUT();
   2966 }
   2967 
   2968 void sub_36098E30(void) {
   2969     int _fpu_cmp = 0;
   2970     uint32_t _cf = 0;
   2971     int _df = 1;
   2972     uint32_t _flag_k = FK_NONE;
   2973     uint32_t _flag_a = 0, _flag_b = 0;
   2974     uint32_t _itail_tgt = 0;
   2975     RECOMP_REGS_LOCALS
   2976     RECOMP_ENTER(0x36098E30u);
   2977 
   2978 L_36098E30:
   2979     MEM32(0x36306C08) = 0x361B3100u; /* 0x36098E30: mov dword ptr [0x36306c08], 0x361b3100 */
   2980     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E3A: ret  */
   2981     RECOMP_REGS_OUT();
   2982 }
   2983 
   2984 void sub_36098E40(void) {
   2985     int _fpu_cmp = 0;
   2986     uint32_t _cf = 0;
   2987     int _df = 1;
   2988     uint32_t _flag_k = FK_NONE;
   2989     uint32_t _flag_a = 0, _flag_b = 0;
   2990     uint32_t _itail_tgt = 0;
   2991     RECOMP_REGS_LOCALS
   2992     RECOMP_ENTER(0x36098E40u);
   2993 
   2994 L_36098E40:
   2995     goto L_36098E50; /* 0x36098E40: jmp 0x36098e50 */
   2996 L_36098E50:
   2997     MEM32(0x36306C04) = 0x361B3138u; /* 0x36098E50: mov dword ptr [0x36306c04], 0x361b3138 */
   2998     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E5A: ret  */
   2999     RECOMP_REGS_OUT();
   3000 }
   3001 
   3002 void sub_36098E50(void) {
   3003     int _fpu_cmp = 0;
   3004     uint32_t _cf = 0;
   3005     int _df = 1;
   3006     uint32_t _flag_k = FK_NONE;
   3007     uint32_t _flag_a = 0, _flag_b = 0;
   3008     uint32_t _itail_tgt = 0;
   3009     RECOMP_REGS_LOCALS
   3010     RECOMP_ENTER(0x36098E50u);
   3011 
   3012 L_36098E50:
   3013     MEM32(0x36306C04) = 0x361B3138u; /* 0x36098E50: mov dword ptr [0x36306c04], 0x361b3138 */
   3014     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E5A: ret  */
   3015     RECOMP_REGS_OUT();
   3016 }
   3017 
   3018 void sub_36098E60(void) {
   3019     int _fpu_cmp = 0;
   3020     uint32_t _cf = 0;
   3021     int _df = 1;
   3022     uint32_t _flag_k = FK_NONE;
   3023     uint32_t _flag_a = 0, _flag_b = 0;
   3024     uint32_t _itail_tgt = 0;
   3025     RECOMP_REGS_LOCALS
   3026     RECOMP_ENTER(0x36098E60u);
   3027 
   3028 L_36098E60:
   3029     goto L_36098E70; /* 0x36098E60: jmp 0x36098e70 */
   3030 L_36098E70:
   3031     MEM32(0x36306C00) = 0x361B57A8u; /* 0x36098E70: mov dword ptr [0x36306c00], 0x361b57a8 */
   3032     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E7A: ret  */
   3033     RECOMP_REGS_OUT();
   3034 }
   3035 
   3036 void sub_36098E70(void) {
   3037     int _fpu_cmp = 0;
   3038     uint32_t _cf = 0;
   3039     int _df = 1;
   3040     uint32_t _flag_k = FK_NONE;
   3041     uint32_t _flag_a = 0, _flag_b = 0;
   3042     uint32_t _itail_tgt = 0;
   3043     RECOMP_REGS_LOCALS
   3044     RECOMP_ENTER(0x36098E70u);
   3045 
   3046 L_36098E70:
   3047     MEM32(0x36306C00) = 0x361B57A8u; /* 0x36098E70: mov dword ptr [0x36306c00], 0x361b57a8 */
   3048     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E7A: ret  */
   3049     RECOMP_REGS_OUT();
   3050 }
   3051 
   3052 void sub_36098E80(void) {
   3053     int _fpu_cmp = 0;
   3054     uint32_t _cf = 0;
   3055     int _df = 1;
   3056     uint32_t _flag_k = FK_NONE;
   3057     uint32_t _flag_a = 0, _flag_b = 0;
   3058     uint32_t _itail_tgt = 0;
   3059     RECOMP_REGS_LOCALS
   3060     RECOMP_ENTER(0x36098E80u);
   3061 
   3062 L_36098E80:
   3063     goto L_36098E90; /* 0x36098E80: jmp 0x36098e90 */
   3064 L_36098E90:
   3065     MEM32(0x36306BFC) = 0x361B57E0u; /* 0x36098E90: mov dword ptr [0x36306bfc], 0x361b57e0 */
   3066     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E9A: ret  */
   3067     RECOMP_REGS_OUT();
   3068 }
   3069 
   3070 void sub_36098E90(void) {
   3071     int _fpu_cmp = 0;
   3072     uint32_t _cf = 0;
   3073     int _df = 1;
   3074     uint32_t _flag_k = FK_NONE;
   3075     uint32_t _flag_a = 0, _flag_b = 0;
   3076     uint32_t _itail_tgt = 0;
   3077     RECOMP_REGS_LOCALS
   3078     RECOMP_ENTER(0x36098E90u);
   3079 
   3080 L_36098E90:
   3081     MEM32(0x36306BFC) = 0x361B57E0u; /* 0x36098E90: mov dword ptr [0x36306bfc], 0x361b57e0 */
   3082     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098E9A: ret  */
   3083     RECOMP_REGS_OUT();
   3084 }
   3085 
   3086 void sub_36098EA0(void) {
   3087     int _fpu_cmp = 0;
   3088     uint32_t _cf = 0;
   3089     int _df = 1;
   3090     uint32_t _flag_k = FK_NONE;
   3091     uint32_t _flag_a = 0, _flag_b = 0;
   3092     uint32_t _itail_tgt = 0;
   3093     RECOMP_REGS_LOCALS
   3094     RECOMP_ENTER(0x36098EA0u);
   3095 
   3096 L_36098EA0:
   3097     goto L_36098EB0; /* 0x36098EA0: jmp 0x36098eb0 */
   3098 L_36098EB0:
   3099     MEM32(0x36306BF8) = 0x361B5814u; /* 0x36098EB0: mov dword ptr [0x36306bf8], 0x361b5814 */
   3100     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098EBA: ret  */
   3101     RECOMP_REGS_OUT();
   3102 }
   3103 
   3104 void sub_36098EB0(void) {
   3105     int _fpu_cmp = 0;
   3106     uint32_t _cf = 0;
   3107     int _df = 1;
   3108     uint32_t _flag_k = FK_NONE;
   3109     uint32_t _flag_a = 0, _flag_b = 0;
   3110     uint32_t _itail_tgt = 0;
   3111     RECOMP_REGS_LOCALS
   3112     RECOMP_ENTER(0x36098EB0u);
   3113 
   3114 L_36098EB0:
   3115     MEM32(0x36306BF8) = 0x361B5814u; /* 0x36098EB0: mov dword ptr [0x36306bf8], 0x361b5814 */
   3116     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098EBA: ret  */
   3117     RECOMP_REGS_OUT();
   3118 }
   3119 
   3120 void sub_36098EC0(void) {
   3121     int _fpu_cmp = 0;
   3122     uint32_t _cf = 0;
   3123     int _df = 1;
   3124     uint32_t _flag_k = FK_NONE;
   3125     uint32_t _flag_a = 0, _flag_b = 0;
   3126     uint32_t _itail_tgt = 0;
   3127     RECOMP_REGS_LOCALS
   3128     RECOMP_ENTER(0x36098EC0u);
   3129 
   3130 L_36098EC0:
   3131     goto L_36098ED0; /* 0x36098EC0: jmp 0x36098ed0 */
   3132 L_36098ED0:
   3133     MEM32(0x36306BF4) = 0x361B5850u; /* 0x36098ED0: mov dword ptr [0x36306bf4], 0x361b5850 */
   3134     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098EDA: ret  */
   3135     RECOMP_REGS_OUT();
   3136 }
   3137 
   3138 void sub_36098ED0(void) {
   3139     int _fpu_cmp = 0;
   3140     uint32_t _cf = 0;
   3141     int _df = 1;
   3142     uint32_t _flag_k = FK_NONE;
   3143     uint32_t _flag_a = 0, _flag_b = 0;
   3144     uint32_t _itail_tgt = 0;
   3145     RECOMP_REGS_LOCALS
   3146     RECOMP_ENTER(0x36098ED0u);
   3147 
   3148 L_36098ED0:
   3149     MEM32(0x36306BF4) = 0x361B5850u; /* 0x36098ED0: mov dword ptr [0x36306bf4], 0x361b5850 */
   3150     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098EDA: ret  */
   3151     RECOMP_REGS_OUT();
   3152 }
   3153 
   3154 void sub_36098EE0(void) {
   3155     int _fpu_cmp = 0;
   3156     uint32_t _cf = 0;
   3157     int _df = 1;
   3158     uint32_t _flag_k = FK_NONE;
   3159     uint32_t _flag_a = 0, _flag_b = 0;
   3160     uint32_t _itail_tgt = 0;
   3161     RECOMP_REGS_LOCALS
   3162     RECOMP_ENTER(0x36098EE0u);
   3163 
   3164 L_36098EE0:
   3165     goto L_36098EF0; /* 0x36098EE0: jmp 0x36098ef0 */
   3166 L_36098EF0:
   3167     MEM32(0x36306BF0) = 0x361B5888u; /* 0x36098EF0: mov dword ptr [0x36306bf0], 0x361b5888 */
   3168     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098EFA: ret  */
   3169     RECOMP_REGS_OUT();
   3170 }
   3171 
   3172 void sub_36098EF0(void) {
   3173     int _fpu_cmp = 0;
   3174     uint32_t _cf = 0;
   3175     int _df = 1;
   3176     uint32_t _flag_k = FK_NONE;
   3177     uint32_t _flag_a = 0, _flag_b = 0;
   3178     uint32_t _itail_tgt = 0;
   3179     RECOMP_REGS_LOCALS
   3180     RECOMP_ENTER(0x36098EF0u);
   3181 
   3182 L_36098EF0:
   3183     MEM32(0x36306BF0) = 0x361B5888u; /* 0x36098EF0: mov dword ptr [0x36306bf0], 0x361b5888 */
   3184     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098EFA: ret  */
   3185     RECOMP_REGS_OUT();
   3186 }
   3187 
   3188 void sub_36098F00(void) {
   3189     int _fpu_cmp = 0;
   3190     uint32_t _cf = 0;
   3191     int _df = 1;
   3192     uint32_t _flag_k = FK_NONE;
   3193     uint32_t _flag_a = 0, _flag_b = 0;
   3194     uint32_t _itail_tgt = 0;
   3195     RECOMP_REGS_LOCALS
   3196     RECOMP_ENTER(0x36098F00u);
   3197 
   3198 L_36098F00:
   3199     goto L_36098F10; /* 0x36098F00: jmp 0x36098f10 */
   3200 L_36098F10:
   3201     MEM32(0x36306BEC) = 0x361B5908u; /* 0x36098F10: mov dword ptr [0x36306bec], 0x361b5908 */
   3202     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F1A: ret  */
   3203     RECOMP_REGS_OUT();
   3204 }
   3205 
   3206 void sub_36098F10(void) {
   3207     int _fpu_cmp = 0;
   3208     uint32_t _cf = 0;
   3209     int _df = 1;
   3210     uint32_t _flag_k = FK_NONE;
   3211     uint32_t _flag_a = 0, _flag_b = 0;
   3212     uint32_t _itail_tgt = 0;
   3213     RECOMP_REGS_LOCALS
   3214     RECOMP_ENTER(0x36098F10u);
   3215 
   3216 L_36098F10:
   3217     MEM32(0x36306BEC) = 0x361B5908u; /* 0x36098F10: mov dword ptr [0x36306bec], 0x361b5908 */
   3218     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F1A: ret  */
   3219     RECOMP_REGS_OUT();
   3220 }
   3221 
   3222 void sub_36098F20(void) {
   3223     int _fpu_cmp = 0;
   3224     uint32_t _cf = 0;
   3225     int _df = 1;
   3226     uint32_t _flag_k = FK_NONE;
   3227     uint32_t _flag_a = 0, _flag_b = 0;
   3228     uint32_t _itail_tgt = 0;
   3229     RECOMP_REGS_LOCALS
   3230     RECOMP_ENTER(0x36098F20u);
   3231 
   3232 L_36098F20:
   3233     goto L_36098F30; /* 0x36098F20: jmp 0x36098f30 */
   3234 L_36098F30:
   3235     MEM32(0x36306BE8) = 0x361B5944u; /* 0x36098F30: mov dword ptr [0x36306be8], 0x361b5944 */
   3236     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F3A: ret  */
   3237     RECOMP_REGS_OUT();
   3238 }
   3239 
   3240 void sub_36098F30(void) {
   3241     int _fpu_cmp = 0;
   3242     uint32_t _cf = 0;
   3243     int _df = 1;
   3244     uint32_t _flag_k = FK_NONE;
   3245     uint32_t _flag_a = 0, _flag_b = 0;
   3246     uint32_t _itail_tgt = 0;
   3247     RECOMP_REGS_LOCALS
   3248     RECOMP_ENTER(0x36098F30u);
   3249 
   3250 L_36098F30:
   3251     MEM32(0x36306BE8) = 0x361B5944u; /* 0x36098F30: mov dword ptr [0x36306be8], 0x361b5944 */
   3252     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F3A: ret  */
   3253     RECOMP_REGS_OUT();
   3254 }
   3255 
   3256 void sub_36098F40(void) {
   3257     int _fpu_cmp = 0;
   3258     uint32_t _cf = 0;
   3259     int _df = 1;
   3260     uint32_t _flag_k = FK_NONE;
   3261     uint32_t _flag_a = 0, _flag_b = 0;
   3262     uint32_t _itail_tgt = 0;
   3263     RECOMP_REGS_LOCALS
   3264     RECOMP_ENTER(0x36098F40u);
   3265 
   3266 L_36098F40:
   3267     goto L_36098F50; /* 0x36098F40: jmp 0x36098f50 */
   3268 L_36098F50:
   3269     MEM32(0x36306BE4) = 0x361B5978u; /* 0x36098F50: mov dword ptr [0x36306be4], 0x361b5978 */
   3270     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F5A: ret  */
   3271     RECOMP_REGS_OUT();
   3272 }
   3273 
   3274 void sub_36098F50(void) {
   3275     int _fpu_cmp = 0;
   3276     uint32_t _cf = 0;
   3277     int _df = 1;
   3278     uint32_t _flag_k = FK_NONE;
   3279     uint32_t _flag_a = 0, _flag_b = 0;
   3280     uint32_t _itail_tgt = 0;
   3281     RECOMP_REGS_LOCALS
   3282     RECOMP_ENTER(0x36098F50u);
   3283 
   3284 L_36098F50:
   3285     MEM32(0x36306BE4) = 0x361B5978u; /* 0x36098F50: mov dword ptr [0x36306be4], 0x361b5978 */
   3286     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F5A: ret  */
   3287     RECOMP_REGS_OUT();
   3288 }
   3289 
   3290 void sub_36098F60(void) {
   3291     int _fpu_cmp = 0;
   3292     uint32_t _cf = 0;
   3293     int _df = 1;
   3294     uint32_t _flag_k = FK_NONE;
   3295     uint32_t _flag_a = 0, _flag_b = 0;
   3296     uint32_t _itail_tgt = 0;
   3297     RECOMP_REGS_LOCALS
   3298     RECOMP_ENTER(0x36098F60u);
   3299 
   3300 L_36098F60:
   3301     goto L_36098F70; /* 0x36098F60: jmp 0x36098f70 */
   3302 L_36098F70:
   3303     MEM32(0x36306BE0) = 0x361B59ACu; /* 0x36098F70: mov dword ptr [0x36306be0], 0x361b59ac */
   3304     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F7A: ret  */
   3305     RECOMP_REGS_OUT();
   3306 }
   3307 
   3308 void sub_36098F70(void) {
   3309     int _fpu_cmp = 0;
   3310     uint32_t _cf = 0;
   3311     int _df = 1;
   3312     uint32_t _flag_k = FK_NONE;
   3313     uint32_t _flag_a = 0, _flag_b = 0;
   3314     uint32_t _itail_tgt = 0;
   3315     RECOMP_REGS_LOCALS
   3316     RECOMP_ENTER(0x36098F70u);
   3317 
   3318 L_36098F70:
   3319     MEM32(0x36306BE0) = 0x361B59ACu; /* 0x36098F70: mov dword ptr [0x36306be0], 0x361b59ac */
   3320     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36098F7A: ret  */
   3321     RECOMP_REGS_OUT();
   3322 }
   3323 
   3324 void sub_36098F80(void) {
   3325     int _fpu_cmp = 0;
   3326     uint32_t _cf = 0;
   3327     int _df = 1;
   3328     uint32_t _flag_k = FK_NONE;
   3329     uint32_t _flag_a = 0, _flag_b = 0;
   3330     uint32_t _itail_tgt = 0;
   3331     RECOMP_REGS_LOCALS
   3332     RECOMP_ENTER(0x36098F80u);
   3333 
   3334 L_36098F80:
   3335     PUSH32(esp, ebp); /* 0x36098F80: push ebp */
   3336     ebp = esp; /* 0x36098F81: mov ebp, esp */
   3337     PUSH32(esp, 0xFFFFFFFFu); /* 0x36098F83: push -1 */
   3338     PUSH32(esp, 0x36166673u); /* 0x36098F85: push 0x36166673 */
   3339     eax = MEM32(FS_BASE + (0)); /* 0x36098F8A: mov eax, dword ptr fs:[0] */
   3340     PUSH32(esp, eax); /* 0x36098F90: push eax */
   3341     MEM32(FS_BASE + (0)) = esp; /* 0x36098F91: mov dword ptr fs:[0], esp */
   3342     PUSH32(esp, ecx); /* 0x36098F98: push ecx */
   3343     eax = MEM32(ebp + 0xC); /* 0x36098F99: mov eax, dword ptr [ebp + 0xc] */
   3344     PUSH32(esp, ebx); /* 0x36098F9C: push ebx */
   3345     PUSH32(esp, esi); /* 0x36098F9D: push esi */
   3346     PUSH32(esp, edi); /* 0x36098F9E: push edi */
   3347     edi = ecx; /* 0x36098F9F: mov edi, ecx */
   3348     ecx = MEM32(ebp + 0x8); /* 0x36098FA1: mov ecx, dword ptr [ebp + 8] */
   3349     PUSH32(esp, eax); /* 0x36098FA4: push eax */
   3350     PUSH32(esp, ecx); /* 0x36098FA5: push ecx */
   3351     ecx = edi; /* 0x36098FA6: mov ecx, edi */
   3352     MEM32(ebp + (-0x10)) = edi; /* 0x36098FA8: mov dword ptr [ebp - 0x10], edi */
   3353     RECOMP_ICALL(0x3609C3C0u); /* 0x36098FAB: call 0x3609c3c0 */ /* not lifted */
   3354     RECOMP_FLAGS_IN();
   3355     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3356     ebx = 0; /* 0x36098FB0: xor ebx, ebx */
   3357     _cf = 0;
   3358     _flag_k = FK_TEST;
   3359     MEM32(edi + 0x1C4) = ebx; /* 0x36098FB2: mov dword ptr [edi + 0x1c4], ebx */
   3360     MEM32(edi + 0x1C8) = ebx; /* 0x36098FB8: mov dword ptr [edi + 0x1c8], ebx */
   3361     MEM32(edi + 0x1CC) = ebx; /* 0x36098FBE: mov dword ptr [edi + 0x1cc], ebx */
   3362     MEM32(edi + 0x1D0) = ebx; /* 0x36098FC4: mov dword ptr [edi + 0x1d0], ebx */
   3363     MEM32(edi + 0x1D4) = ebx; /* 0x36098FCA: mov dword ptr [edi + 0x1d4], ebx */
   3364     MEM32(edi + 0x1D8) = ebx; /* 0x36098FD0: mov dword ptr [edi + 0x1d8], ebx */
   3365     PUSH32(esp, 0x14u); /* 0x36098FD6: push 0x14 */
   3366     MEM32(ebp + (-0x4)) = ebx; /* 0x36098FD8: mov dword ptr [ebp - 4], ebx */
   3367     MEM32(edi + 0x1DC) = ebx; /* 0x36098FDB: mov dword ptr [edi + 0x1dc], ebx */
   3368     MEM32(edi + 0x1E0) = ebx; /* 0x36098FE1: mov dword ptr [edi + 0x1e0], ebx */
   3369     MEM32(edi) = 0x3617362Cu; /* 0x36098FE7: mov dword ptr [edi], 0x3617362c */
   3370     MEM32(edi + 0x8) = 0x3617361Cu; /* 0x36098FED: mov dword ptr [edi + 8], 0x3617361c */
   3371     MEM32(edi + 0x40) = 0x36173614u; /* 0x36098FF4: mov dword ptr [edi + 0x40], 0x36173614 */
   3372     MEM32(edi + 0x4C) = 0x3617360Cu; /* 0x36098FFB: mov dword ptr [edi + 0x4c], 0x3617360c */
   3373     MEM32(edi + 0x80) = 0x361735F8u; /* 0x36099002: mov dword ptr [edi + 0x80], 0x361735f8 */
   3374     MEM32(edi + 0x8C) = 0x36173554u; /* 0x3609900C: mov dword ptr [edi + 0x8c], 0x36173554 */
   3375     MEM32(edi + 0xA8) = 0x3617353Cu; /* 0x36099016: mov dword ptr [edi + 0xa8], 0x3617353c */
   3376     MEM32(edi + 0xAC) = 0x36173534u; /* 0x36099020: mov dword ptr [edi + 0xac], 0x36173534 */
   3377     RECOMP_ICALL(0x3615FD6Au); /* 0x3609902A: call 0x3615fd6a */ /* not lifted */
   3378     RECOMP_FLAGS_IN();
   3379     esi = eax; /* 0x3609902F: mov esi, eax */
   3380     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3381     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3382     esp = esp + 4; /* 0x36099031: add esp, 4 */
   3383     _flag_k = FK_ADD;
   3384     MEM32(ebp + 0x8) = esi; /* 0x36099034: mov dword ptr [ebp + 8], esi */
   3385     /* cmp esi, ebx */ /* 0x36099037: cmp esi, ebx */
   3386     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3388     _flag_k = FK_CMP;
   3389     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36099039: mov byte ptr [ebp - 4], 1 */
   3390     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609909C; /* 0x3609903D: je 0x3609909c */
   3391 L_3609903F:
   3392     SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x3609903F: mov dl, byte ptr [ebp + 0xf] */
   3393     SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x36099042: mov al, byte ptr [ebp + 0xf] */
   3394     PUSH32(esp, 0x1Cu); /* 0x36099045: push 0x1c */
   3395     MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x36099047: mov byte ptr [esi], dl */
   3396     MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x36099049: mov byte ptr [esi + 1], al */
   3397     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3609904C: mov byte ptr [esi + 0xc], bl */
   3398     RECOMP_ICALL(0x3615FD6Au); /* 0x3609904F: call 0x3615fd6a */ /* not lifted */
   3399     RECOMP_FLAGS_IN();
   3400     MEM32(eax + 0x4) = ebx; /* 0x36099054: mov dword ptr [eax + 4], ebx */
   3401     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x36099057: mov byte ptr [eax + 0x18], 1 */
   3402     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x3609905B: mov byte ptr [eax + 0x19], bl */
   3403     MEM32(esi + 0x8) = eax; /* 0x3609905E: mov dword ptr [esi + 8], eax */
   3404     MEM8(eax + 0x19) = (uint8_t)(1); /* 0x36099061: mov byte ptr [eax + 0x19], 1 */
   3405     eax = MEM32(esi + 0x8); /* 0x36099065: mov eax, dword ptr [esi + 8] */
   3406     MEM32(eax) = ebx; /* 0x36099068: mov dword ptr [eax], ebx */
   3407     ecx = MEM32(esi + 0x8); /* 0x3609906A: mov ecx, dword ptr [esi + 8] */
   3408     MEM32(ecx + 0x8) = ebx; /* 0x3609906D: mov dword ptr [ecx + 8], ebx */
   3409     edx = MEM32(esi + 0x8); /* 0x36099070: mov edx, dword ptr [esi + 8] */
   3410     PUSH32(esp, 0x1Cu); /* 0x36099073: push 0x1c */
   3411     MEM32(ebp + 0xC) = edx; /* 0x36099075: mov dword ptr [ebp + 0xc], edx */
   3412     RECOMP_ICALL(0x3615FD6Au); /* 0x36099078: call 0x3615fd6a */ /* not lifted */
   3413     RECOMP_FLAGS_IN();
   3414     ecx = MEM32(ebp + 0xC); /* 0x3609907D: mov ecx, dword ptr [ebp + 0xc] */
   3415     MEM32(eax + 0x4) = ecx; /* 0x36099080: mov dword ptr [eax + 4], ecx */
   3416     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36099083: mov byte ptr [eax + 0x18], bl */
   3417     MEM8(eax + 0x19) = (uint8_t)(LO8(ebx)); /* 0x36099086: mov byte ptr [eax + 0x19], bl */
   3418     MEM32(esi + 0x4) = eax; /* 0x36099089: mov dword ptr [esi + 4], eax */
   3419     MEM32(eax) = eax; /* 0x3609908C: mov dword ptr [eax], eax */
   3420     eax = MEM32(esi + 0x4); /* 0x3609908E: mov eax, dword ptr [esi + 4] */
   3421     MEM32(eax + 0x8) = eax; /* 0x36099091: mov dword ptr [eax + 8], eax */
   3422     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3423     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3424     esp = esp + 8; /* 0x36099094: add esp, 8 */
   3425     _flag_k = FK_ADD;
   3426     MEM32(esi + 0x10) = ebx; /* 0x36099097: mov dword ptr [esi + 0x10], ebx */
   3427     goto L_3609909E; /* 0x3609909A: jmp 0x3609909e */
   3428 L_3609909C:
   3429     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3430     esi = 0; /* 0x3609909C: xor esi, esi */
   3431     _cf = 0;
   3432     _flag_k = FK_TEST;
   3433 L_3609909E:
   3434     ecx = edi; /* 0x3609909E: mov ecx, edi */
   3435     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x360990A0: mov byte ptr [ebp - 4], bl */
   3436     MEM32(edi + 0x1E0) = esi; /* 0x360990A3: mov dword ptr [edi + 0x1e0], esi */
   3437     RECOMP_ICALL(0x36099100u); /* 0x360990A9: call 0x36099100 */ /* not lifted */
   3438     RECOMP_FLAGS_IN();
   3439     ecx = MEM32(ebp + (-0xC)); /* 0x360990AE: mov ecx, dword ptr [ebp - 0xc] */
   3440     eax = edi; /* 0x360990B1: mov eax, edi */
   3441     edi = POP32_VAL(esp); /* 0x360990B3: pop edi */
   3442     esi = POP32_VAL(esp); /* 0x360990B4: pop esi */
   3443     ebx = POP32_VAL(esp); /* 0x360990B5: pop ebx */
   3444     MEM32(FS_BASE + (0)) = ecx; /* 0x360990B6: mov dword ptr fs:[0], ecx */
   3445     esp = ebp; /* 0x360990BD: mov esp, ebp */
   3446     ebp = POP32_VAL(esp); /* 0x360990BF: pop ebp */
   3447     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360990C0: ret 8 */
   3448     RECOMP_REGS_OUT();
   3449 }
   3450 
   3451 void sub_360990D0(void) {
   3452     int _fpu_cmp = 0;
   3453     uint32_t _cf = 0;
   3454     int _df = 1;
   3455     uint32_t _flag_k = FK_NONE;
   3456     uint32_t _flag_a = 0, _flag_b = 0;
   3457     uint32_t _itail_tgt = 0;
   3458     RECOMP_REGS_LOCALS
   3459     RECOMP_ENTER(0x360990D0u);
   3460 
   3461 L_360990D0:
   3462     PUSH32(esp, ebp); /* 0x360990D0: push ebp */
   3463     ebp = esp; /* 0x360990D1: mov ebp, esp */
   3464     PUSH32(esp, esi); /* 0x360990D3: push esi */
   3465     esi = ecx; /* 0x360990D4: mov esi, ecx */
   3466     RECOMP_ICALL(0x360991E0u); /* 0x360990D6: call 0x360991e0 */ /* not lifted */
   3467     RECOMP_FLAGS_IN();
   3468     /* test MEM8(ebp + 0x8), 1 */ /* 0x360990DB: test byte ptr [ebp + 8], 1 */
   3469     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3470     _cf = 0;
   3471     _flag_k = FK_NARROW(FK_TEST, 24);
   3472     if (TEST_Z(_flag_a, _flag_b)) goto L_360990EA; /* 0x360990DF: je 0x360990ea */
   3473 L_360990E1:
   3474     PUSH32(esp, esi); /* 0x360990E1: push esi */
   3475     RECOMP_ICALL(0x3615FCC4u); /* 0x360990E2: call 0x3615fcc4 */ /* not lifted */
   3476     RECOMP_FLAGS_IN();
   3477     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3478     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3479     esp = esp + 4; /* 0x360990E7: add esp, 4 */
   3480     _flag_k = FK_ADD;
   3481 L_360990EA:
   3482     eax = esi; /* 0x360990EA: mov eax, esi */
   3483     esi = POP32_VAL(esp); /* 0x360990EC: pop esi */
   3484     ebp = POP32_VAL(esp); /* 0x360990ED: pop ebp */
   3485     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360990EE: ret 4 */
   3486     RECOMP_REGS_OUT();
   3487 }
   3488 
   3489 void sub_36099100(void) {
   3490     int _fpu_cmp = 0;
   3491     uint32_t _cf = 0;
   3492     int _df = 1;
   3493     uint32_t _flag_k = FK_NONE;
   3494     uint32_t _flag_a = 0, _flag_b = 0;
   3495     uint32_t _itail_tgt = 0;
   3496     RECOMP_REGS_LOCALS
   3497     RECOMP_ENTER(0x36099100u);
   3498 
   3499 L_36099100:
   3500     PUSH32(esp, ebp); /* 0x36099100: push ebp */
   3501     ebp = esp; /* 0x36099101: mov ebp, esp */
   3502     PUSH32(esp, 0xFFFFFFFFu); /* 0x36099103: push -1 */
   3503     PUSH32(esp, 0x3616668Bu); /* 0x36099105: push 0x3616668b */
   3504     eax = MEM32(FS_BASE + (0)); /* 0x3609910A: mov eax, dword ptr fs:[0] */
   3505     PUSH32(esp, eax); /* 0x36099110: push eax */
   3506     MEM32(FS_BASE + (0)) = esp; /* 0x36099111: mov dword ptr fs:[0], esp */
   3507     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3508     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3509     esp = esp - 8; /* 0x36099118: sub esp, 8 */
   3510     _flag_k = FK_CMP;
   3511     PUSH32(esp, ebx); /* 0x3609911B: push ebx */
   3512     PUSH32(esp, esi); /* 0x3609911C: push esi */
   3513     PUSH32(esp, edi); /* 0x3609911D: push edi */
   3514     PUSH32(esp, 0xCu); /* 0x3609911E: push 0xc */
   3515     esi = ecx; /* 0x36099120: mov esi, ecx */
   3516     RECOMP_ICALL(0x3615FD6Au); /* 0x36099122: call 0x3615fd6a */ /* not lifted */
   3517     RECOMP_FLAGS_IN();
   3518     edi = eax; /* 0x36099127: mov edi, eax */
   3519     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3520     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3521     esp = esp + 4; /* 0x36099129: add esp, 4 */
   3522     _flag_k = FK_ADD;
   3523     MEM32(ebp + (-0x14)) = edi; /* 0x3609912C: mov dword ptr [ebp - 0x14], edi */
   3524     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3525     ebx = 0; /* 0x3609912F: xor ebx, ebx */
   3526     _cf = 0;
   3527     _flag_k = FK_TEST;
   3528     /* cmp edi, ebx */ /* 0x36099131: cmp edi, ebx */
   3529     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3531     _flag_k = FK_CMP;
   3532     MEM32(ebp + (-0x4)) = ebx; /* 0x36099133: mov dword ptr [ebp - 4], ebx */
   3533     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099154; /* 0x36099136: je 0x36099154 */
   3534 L_36099138:
   3535     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36099138: mov al, byte ptr [ebp - 0xd] */
   3536     PUSH32(esp, 0xCu); /* 0x3609913B: push 0xc */
   3537     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3609913D: mov byte ptr [edi], al */
   3538     RECOMP_ICALL(0x3615FD6Au); /* 0x3609913F: call 0x3615fd6a */ /* not lifted */
   3539     RECOMP_FLAGS_IN();
   3540     MEM32(eax) = eax; /* 0x36099144: mov dword ptr [eax], eax */
   3541     MEM32(eax + 0x4) = eax; /* 0x36099146: mov dword ptr [eax + 4], eax */
   3542     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3543     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3544     esp = esp + 4; /* 0x36099149: add esp, 4 */
   3545     _flag_k = FK_ADD;
   3546     MEM32(edi + 0x4) = eax; /* 0x3609914C: mov dword ptr [edi + 4], eax */
   3547     MEM32(edi + 0x8) = ebx; /* 0x3609914F: mov dword ptr [edi + 8], ebx */
   3548     goto L_36099156; /* 0x36099152: jmp 0x36099156 */
   3549 L_36099154:
   3550     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3551     edi = 0; /* 0x36099154: xor edi, edi */
   3552     _cf = 0;
   3553     _flag_k = FK_TEST;
   3554 L_36099156:
   3555     edx = MEM32(esi + 0x34); /* 0x36099156: mov edx, dword ptr [esi + 0x34] */
   3556     MEM32(esi + 0x1E4) = edi; /* 0x36099159: mov dword ptr [esi + 0x1e4], edi */
   3557     MEM8(esi + 0x1C0) = (uint8_t)(LO8(ebx)); /* 0x3609915F: mov byte ptr [esi + 0x1c0], bl */
   3558     MEM32(esi + 0x1B0) = ebx; /* 0x36099165: mov dword ptr [esi + 0x1b0], ebx */
   3559     ecx = MEM32(edi + 0x4); /* 0x3609916B: mov ecx, dword ptr [edi + 4] */
   3560     eax = MEM32(ecx); /* 0x3609916E: mov eax, dword ptr [ecx] */
   3561     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFDFFu);
   3562     edx = edx & 0xFFFFFDFFu; /* 0x36099170: and edx, 0xfffffdff */
   3563     _cf = 0;
   3564     _flag_k = FK_TEST;
   3565     MEM32(esi + 0x1B4) = eax; /* 0x36099176: mov dword ptr [esi + 0x1b4], eax */
   3566     eax = edx; /* 0x3609917C: mov eax, edx */
   3567     PUSH32(esp, eax); /* 0x3609917E: push eax */
   3568     MEM32(esi + 0x34) = edx; /* 0x3609917F: mov dword ptr [esi + 0x34], edx */
   3569     edx = MEM32(esi); /* 0x36099182: mov edx, dword ptr [esi] */
   3570     PUSH32(esp, ebx); /* 0x36099184: push ebx */
   3571     ecx = esi; /* 0x36099185: mov ecx, esi */
   3572     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36099187: mov dword ptr [ebp - 4], 0xffffffff */
   3573     MEM32(esi + 0x1B8) = ebx; /* 0x3609918E: mov dword ptr [esi + 0x1b8], ebx */
   3574     MEM32(esi + 0x1A8) = 0x43FA0000u; /* 0x36099194: mov dword ptr [esi + 0x1a8], 0x43fa0000 */
   3575     MEM32(esi + 0x1AC) = 0x42F60000u; /* 0x3609919E: mov dword ptr [esi + 0x1ac], 0x42f60000 */
   3576     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360991A8: call dword ptr [edx + 8] */
   3577     RECOMP_FLAGS_IN();
   3578     eax = MEM32(esi); /* 0x360991AB: mov eax, dword ptr [esi] */
   3579     PUSH32(esp, 0x00080000u); /* 0x360991AD: push 0x80000 */
   3580     ecx = esi; /* 0x360991B2: mov ecx, esi */
   3581     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x360991B4: call dword ptr [eax + 0x18] */
   3582     RECOMP_FLAGS_IN();
   3583     edx = MEM32(esi); /* 0x360991B7: mov edx, dword ptr [esi] */
   3584     PUSH32(esp, 0x20000000u); /* 0x360991B9: push 0x20000000 */
   3585     ecx = esi; /* 0x360991BE: mov ecx, esi */
   3586     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x360991C0: call dword ptr [edx + 0x18] */
   3587     RECOMP_FLAGS_IN();
   3588     ecx = MEM32(ebp + (-0xC)); /* 0x360991C3: mov ecx, dword ptr [ebp - 0xc] */
   3589     edi = POP32_VAL(esp); /* 0x360991C6: pop edi */
   3590     esi = POP32_VAL(esp); /* 0x360991C7: pop esi */
   3591     ebx = POP32_VAL(esp); /* 0x360991C8: pop ebx */
   3592     MEM32(FS_BASE + (0)) = ecx; /* 0x360991C9: mov dword ptr fs:[0], ecx */
   3593     esp = ebp; /* 0x360991D0: mov esp, ebp */
   3594     ebp = POP32_VAL(esp); /* 0x360991D2: pop ebp */
   3595     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360991D3: ret  */
   3596     RECOMP_REGS_OUT();
   3597 }
   3598 
   3599 void sub_360991E0(void) {
   3600     int _fpu_cmp = 0;
   3601     uint32_t _cf = 0;
   3602     int _df = 1;
   3603     uint32_t _flag_k = FK_NONE;
   3604     uint32_t _flag_a = 0, _flag_b = 0;
   3605     uint32_t _itail_tgt = 0;
   3606     RECOMP_REGS_LOCALS
   3607     RECOMP_ENTER(0x360991E0u);
   3608 
   3609 L_360991E0:
   3610     PUSH32(esp, ebp); /* 0x360991E0: push ebp */
   3611     ebp = esp; /* 0x360991E1: mov ebp, esp */
   3612     PUSH32(esp, 0xFFFFFFFFu); /* 0x360991E3: push -1 */
   3613     PUSH32(esp, 0x361666A8u); /* 0x360991E5: push 0x361666a8 */
   3614     eax = MEM32(FS_BASE + (0)); /* 0x360991EA: mov eax, dword ptr fs:[0] */
   3615     PUSH32(esp, eax); /* 0x360991F0: push eax */
   3616     MEM32(FS_BASE + (0)) = esp; /* 0x360991F1: mov dword ptr fs:[0], esp */
   3617     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3619     esp = esp - 0xCu; /* 0x360991F8: sub esp, 0xc */
   3620     _flag_k = FK_CMP;
   3621     PUSH32(esp, ebx); /* 0x360991FB: push ebx */
   3622     PUSH32(esp, esi); /* 0x360991FC: push esi */
   3623     esi = ecx; /* 0x360991FD: mov esi, ecx */
   3624     PUSH32(esp, edi); /* 0x360991FF: push edi */
   3625     MEM32(ebp + (-0x14)) = esi; /* 0x36099200: mov dword ptr [ebp - 0x14], esi */
   3626     MEM32(esi) = 0x3617362Cu; /* 0x36099203: mov dword ptr [esi], 0x3617362c */
   3627     MEM32(esi + 0x8) = 0x3617361Cu; /* 0x36099209: mov dword ptr [esi + 8], 0x3617361c */
   3628     MEM32(esi + 0x40) = 0x36173614u; /* 0x36099210: mov dword ptr [esi + 0x40], 0x36173614 */
   3629     MEM32(esi + 0x4C) = 0x3617360Cu; /* 0x36099217: mov dword ptr [esi + 0x4c], 0x3617360c */
   3630     MEM32(esi + 0x80) = 0x361735F8u; /* 0x3609921E: mov dword ptr [esi + 0x80], 0x361735f8 */
   3631     MEM32(esi + 0x8C) = 0x36173554u; /* 0x36099228: mov dword ptr [esi + 0x8c], 0x36173554 */
   3632     MEM32(esi + 0xA8) = 0x3617353Cu; /* 0x36099232: mov dword ptr [esi + 0xa8], 0x3617353c */
   3633     MEM32(esi + 0xAC) = 0x36173534u; /* 0x3609923C: mov dword ptr [esi + 0xac], 0x36173534 */
   3634     eax = MEM32(esi + 0x1E4); /* 0x36099246: mov eax, dword ptr [esi + 0x1e4] */
   3635     ecx = MEM32(eax + 0x4); /* 0x3609924C: mov ecx, dword ptr [eax + 4] */
   3636     edi = MEM32(ecx); /* 0x3609924F: mov edi, dword ptr [ecx] */
   3637     /* cmp edi, ecx */ /* 0x36099251: cmp edi, ecx */
   3638     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3640     _flag_k = FK_CMP;
   3641     MEM32(ebp + (-0x4)) = 0; /* 0x36099253: mov dword ptr [ebp - 4], 0 */
   3642     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099280; /* 0x3609925A: je 0x36099280 */
   3643 L_3609925C:
   3644     ebx = MEM32(edi + 0x8); /* 0x3609925C: mov ebx, dword ptr [edi + 8] */
   3645     /* test ebx, ebx */ /* 0x3609925F: test ebx, ebx */
   3646     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3647     _cf = 0;
   3648     _flag_k = FK_TEST;
   3649     if (TEST_Z(_flag_a, _flag_b)) goto L_36099273; /* 0x36099261: je 0x36099273 */
   3650 L_36099263:
   3651     ecx = ebx; /* 0x36099263: mov ecx, ebx */
   3652     RECOMP_ICALL(0x3609A6F0u); /* 0x36099265: call 0x3609a6f0 */ /* not lifted */
   3653     RECOMP_FLAGS_IN();
   3654     PUSH32(esp, ebx); /* 0x3609926A: push ebx */
   3655     RECOMP_ICALL(0x3615FCC4u); /* 0x3609926B: call 0x3615fcc4 */ /* not lifted */
   3656     RECOMP_FLAGS_IN();
   3657     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3658     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3659     esp = esp + 4; /* 0x36099270: add esp, 4 */
   3660     _flag_k = FK_ADD;
   3661 L_36099273:
   3662     eax = MEM32(esi + 0x1E4); /* 0x36099273: mov eax, dword ptr [esi + 0x1e4] */
   3663     edi = MEM32(edi); /* 0x36099279: mov edi, dword ptr [edi] */
   3664     /* cmp edi, MEM32(eax + 0x4) */ /* 0x3609927B: cmp edi, dword ptr [eax + 4] */
   3665     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   3666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3667     _flag_k = FK_CMP;
   3668     RECOMP_BACKEDGE();
   3669     if (CMP_NE(_flag_a, _flag_b)) goto L_3609925C; /* 0x3609927E: jne 0x3609925c */
   3670 L_36099280:
   3671     ecx = MEM32(esi + 0x1E4); /* 0x36099280: mov ecx, dword ptr [esi + 0x1e4] */
   3672     ebx = MEM32(ecx + 0x4); /* 0x36099286: mov ebx, dword ptr [ecx + 4] */
   3673     edi = MEM32(ebx); /* 0x36099289: mov edi, dword ptr [ebx] */
   3674     /* cmp edi, ebx */ /* 0x3609928B: cmp edi, ebx */
   3675     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3677     _flag_k = FK_CMP;
   3678     MEM32(ebp + (-0x10)) = ecx; /* 0x3609928D: mov dword ptr [ebp - 0x10], ecx */
   3679     if (CMP_EQ(_flag_a, _flag_b)) goto L_360992A9; /* 0x36099290: je 0x360992a9 */
   3680 L_36099292:
   3681     goto L_36099297; /* 0x36099292: jmp 0x36099297 */
   3682 L_36099294:
   3683     ecx = MEM32(ebp + (-0x10)); /* 0x36099294: mov ecx, dword ptr [ebp - 0x10] */
   3684 L_36099297:
   3685     eax = edi; /* 0x36099297: mov eax, edi */
   3686     edi = MEM32(edi); /* 0x36099299: mov edi, dword ptr [edi] */
   3687     PUSH32(esp, eax); /* 0x3609929B: push eax */
   3688     eax = ebp + (-0x18); /* 0x3609929C: lea eax, [ebp - 0x18] */
   3689     PUSH32(esp, eax); /* 0x3609929F: push eax */
   3690     RECOMP_ICALL(0x360C86A0u); /* 0x360992A0: call 0x360c86a0 */ /* not lifted */
   3691     RECOMP_FLAGS_IN();
   3692     /* cmp edi, ebx */ /* 0x360992A5: cmp edi, ebx */
   3693     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3695     _flag_k = FK_CMP;
   3696     RECOMP_BACKEDGE();
   3697     if (CMP_NE(_flag_a, _flag_b)) goto L_36099294; /* 0x360992A7: jne 0x36099294 */
   3698 L_360992A9:
   3699     ebx = MEM32(esi + 0x1E4); /* 0x360992A9: mov ebx, dword ptr [esi + 0x1e4] */
   3700     /* test ebx, ebx */ /* 0x360992AF: test ebx, ebx */
   3701     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3702     _cf = 0;
   3703     _flag_k = FK_TEST;
   3704     if (TEST_Z(_flag_a, _flag_b)) goto L_360992EE; /* 0x360992B1: je 0x360992ee */
   3705 L_360992B3:
   3706     eax = MEM32(ebx + 0x4); /* 0x360992B3: mov eax, dword ptr [ebx + 4] */
   3707     edi = MEM32(eax); /* 0x360992B6: mov edi, dword ptr [eax] */
   3708     /* cmp edi, eax */ /* 0x360992B8: cmp edi, eax */
   3709     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3711     _flag_k = FK_CMP;
   3712     MEM32(ebp + (-0x10)) = eax; /* 0x360992BA: mov dword ptr [ebp - 0x10], eax */
   3713     if (CMP_EQ(_flag_a, _flag_b)) goto L_360992D4; /* 0x360992BD: je 0x360992d4 */
   3714 L_360992BF:
   3715     eax = edi; /* 0x360992BF: mov eax, edi */
   3716     edi = MEM32(edi); /* 0x360992C1: mov edi, dword ptr [edi] */
   3717     PUSH32(esp, eax); /* 0x360992C3: push eax */
   3718     ecx = ebp + (-0x18); /* 0x360992C4: lea ecx, [ebp - 0x18] */
   3719     PUSH32(esp, ecx); /* 0x360992C7: push ecx */
   3720     ecx = ebx; /* 0x360992C8: mov ecx, ebx */
   3721     RECOMP_ICALL(0x360C86A0u); /* 0x360992CA: call 0x360c86a0 */ /* not lifted */
   3722     RECOMP_FLAGS_IN();
   3723     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x360992CF: cmp edi, dword ptr [ebp - 0x10] */
   3724     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
   3725     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3726     _flag_k = FK_CMP;
   3727     RECOMP_BACKEDGE();
   3728     if (CMP_NE(_flag_a, _flag_b)) goto L_360992BF; /* 0x360992D2: jne 0x360992bf */
   3729 L_360992D4:
   3730     eax = MEM32(ebx + 0x4); /* 0x360992D4: mov eax, dword ptr [ebx + 4] */
   3731     PUSH32(esp, eax); /* 0x360992D7: push eax */
   3732     RECOMP_ICALL(0x3615FCC4u); /* 0x360992D8: call 0x3615fcc4 */ /* not lifted */
   3733     RECOMP_FLAGS_IN();
   3734     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3735     eax = 0; /* 0x360992DD: xor eax, eax */
   3736     _cf = 0;
   3737     _flag_k = FK_TEST;
   3738     PUSH32(esp, ebx); /* 0x360992DF: push ebx */
   3739     MEM32(ebx + 0x4) = eax; /* 0x360992E0: mov dword ptr [ebx + 4], eax */
   3740     MEM32(ebx + 0x8) = eax; /* 0x360992E3: mov dword ptr [ebx + 8], eax */
   3741     RECOMP_ICALL(0x3615FCC4u); /* 0x360992E6: call 0x3615fcc4 */ /* not lifted */
   3742     RECOMP_FLAGS_IN();
   3743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3745     esp = esp + 8; /* 0x360992EB: add esp, 8 */
   3746     _flag_k = FK_ADD;
   3747 L_360992EE:
   3748     edi = MEM32(esi + 0x1E0); /* 0x360992EE: mov edi, dword ptr [esi + 0x1e0] */
   3749     /* test edi, edi */ /* 0x360992F4: test edi, edi */
   3750     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3751     _cf = 0;
   3752     _flag_k = FK_TEST;
   3753     MEM32(esi + 0x1E4) = 0; /* 0x360992F6: mov dword ptr [esi + 0x1e4], 0 */
   3754     if (TEST_Z(_flag_a, _flag_b)) goto L_3609933A; /* 0x36099300: je 0x3609933a */
   3755 L_36099302:
   3756     eax = MEM32(edi + 0x4); /* 0x36099302: mov eax, dword ptr [edi + 4] */
   3757     ecx = MEM32(eax); /* 0x36099305: mov ecx, dword ptr [eax] */
   3758     PUSH32(esp, eax); /* 0x36099307: push eax */
   3759     PUSH32(esp, ecx); /* 0x36099308: push ecx */
   3760     edx = ebp + (-0x18); /* 0x36099309: lea edx, [ebp - 0x18] */
   3761     PUSH32(esp, edx); /* 0x3609930C: push edx */
   3762     ecx = edi; /* 0x3609930D: mov ecx, edi */
   3763     RECOMP_ICALL(0x3609A780u); /* 0x3609930F: call 0x3609a780 */ /* not lifted */
   3764     RECOMP_FLAGS_IN();
   3765     eax = MEM32(edi + 0x4); /* 0x36099314: mov eax, dword ptr [edi + 4] */
   3766     PUSH32(esp, eax); /* 0x36099317: push eax */
   3767     RECOMP_ICALL(0x3615FCC4u); /* 0x36099318: call 0x3615fcc4 */ /* not lifted */
   3768     RECOMP_FLAGS_IN();
   3769     eax = MEM32(edi + 0x8); /* 0x3609931D: mov eax, dword ptr [edi + 8] */
   3770     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3771     ebx = 0; /* 0x36099320: xor ebx, ebx */
   3772     _cf = 0;
   3773     _flag_k = FK_TEST;
   3774     PUSH32(esp, eax); /* 0x36099322: push eax */
   3775     MEM32(edi + 0x4) = ebx; /* 0x36099323: mov dword ptr [edi + 4], ebx */
   3776     MEM32(edi + 0x10) = ebx; /* 0x36099326: mov dword ptr [edi + 0x10], ebx */
   3777     RECOMP_ICALL(0x3615FCC4u); /* 0x36099329: call 0x3615fcc4 */ /* not lifted */
   3778     RECOMP_FLAGS_IN();
   3779     PUSH32(esp, edi); /* 0x3609932E: push edi */
   3780     MEM32(edi + 0x8) = ebx; /* 0x3609932F: mov dword ptr [edi + 8], ebx */
   3781     RECOMP_ICALL(0x3615FCC4u); /* 0x36099332: call 0x3615fcc4 */ /* not lifted */
   3782     RECOMP_FLAGS_IN();
   3783     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3784     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3785     esp = esp + 0xCu; /* 0x36099337: add esp, 0xc */
   3786     _flag_k = FK_ADD;
   3787 L_3609933A:
   3788     eax = MEM32(esi + 0x1DC); /* 0x3609933A: mov eax, dword ptr [esi + 0x1dc] */
   3789     PUSH32(esp, 0); /* 0x36099340: push 0 */
   3790     PUSH32(esp, 0x361B6528u); /* 0x36099342: push 0x361b6528 */
   3791     PUSH32(esp, 0x361C6170u); /* 0x36099347: push 0x361c6170 */
   3792     PUSH32(esp, 0); /* 0x3609934C: push 0 */
   3793     PUSH32(esp, eax); /* 0x3609934E: push eax */
   3794     MEM32(esi + 0x1E0) = 0; /* 0x3609934F: mov dword ptr [esi + 0x1e0], 0 */
   3795     RECOMP_ICALL(0x3615FD86u); /* 0x36099359: call 0x3615fd86 */ /* not lifted */
   3796     RECOMP_FLAGS_IN();
   3797     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3798     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3799     esp = esp + 0x14u; /* 0x3609935E: add esp, 0x14 */
   3800     _flag_k = FK_ADD;
   3801     /* test eax, eax */ /* 0x36099361: test eax, eax */
   3802     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3803     _cf = 0;
   3804     _flag_k = FK_TEST;
   3805     if (TEST_Z(_flag_a, _flag_b)) goto L_36099394; /* 0x36099363: je 0x36099394 */
   3806 L_36099365:
   3807     ecx = MEM32(esi + 0x1DC); /* 0x36099365: mov ecx, dword ptr [esi + 0x1dc] */
   3808     PUSH32(esp, 0); /* 0x3609936B: push 0 */
   3809     PUSH32(esp, 0x361B6528u); /* 0x3609936D: push 0x361b6528 */
   3810     PUSH32(esp, 0x361C6170u); /* 0x36099372: push 0x361c6170 */
   3811     PUSH32(esp, 0); /* 0x36099377: push 0 */
   3812     PUSH32(esp, ecx); /* 0x36099379: push ecx */
   3813     RECOMP_ICALL(0x3615FD86u); /* 0x3609937A: call 0x3615fd86 */ /* not lifted */
   3814     RECOMP_FLAGS_IN();
   3815     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3816     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3817     esp = esp + 0x14u; /* 0x3609937F: add esp, 0x14 */
   3818     _flag_k = FK_ADD;
   3819     ecx = eax; /* 0x36099382: mov ecx, eax */
   3820     RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x36099384: call dword ptr [0x3616fb14] */
   3821     RECOMP_FLAGS_IN();
   3822     MEM32(esi + 0x1DC) = 0; /* 0x3609938A: mov dword ptr [esi + 0x1dc], 0 */
   3823 L_36099394:
   3824     ecx = esi; /* 0x36099394: mov ecx, esi */
   3825     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36099396: mov dword ptr [ebp - 4], 0xffffffff */
   3826     RECOMP_ICALL(0x3609CC20u); /* 0x3609939D: call 0x3609cc20 */ /* not lifted */
   3827     RECOMP_FLAGS_IN();
   3828     ecx = MEM32(ebp + (-0xC)); /* 0x360993A2: mov ecx, dword ptr [ebp - 0xc] */
   3829     edi = POP32_VAL(esp); /* 0x360993A5: pop edi */
   3830     esi = POP32_VAL(esp); /* 0x360993A6: pop esi */
   3831     ebx = POP32_VAL(esp); /* 0x360993A7: pop ebx */
   3832     MEM32(FS_BASE + (0)) = ecx; /* 0x360993A8: mov dword ptr fs:[0], ecx */
   3833     esp = ebp; /* 0x360993AF: mov esp, ebp */
   3834     ebp = POP32_VAL(esp); /* 0x360993B1: pop ebp */
   3835     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360993B2: ret  */
   3836     RECOMP_REGS_OUT();
   3837 }
   3838 
   3839 void sub_360993C0(void) {
   3840     int _fpu_cmp = 0;
   3841     uint32_t _cf = 0;
   3842     int _df = 1;
   3843     uint32_t _flag_k = FK_NONE;
   3844     uint32_t _flag_a = 0, _flag_b = 0;
   3845     uint32_t _itail_tgt = 0;
   3846     RECOMP_REGS_LOCALS
   3847     RECOMP_ENTER(0x360993C0u);
   3848 
   3849 L_360993C0:
   3850     PUSH32(esp, esi); /* 0x360993C0: push esi */
   3851     PUSH32(esp, edi); /* 0x360993C1: push edi */
   3852     esi = ecx; /* 0x360993C2: mov esi, ecx */
   3853     RECOMP_ICALL(0x3609C6C0u); /* 0x360993C4: call 0x3609c6c0 */ /* not lifted */
   3854     RECOMP_FLAGS_IN();
   3855     eax = MEM32(esi + 0x158); /* 0x360993C9: mov eax, dword ptr [esi + 0x158] */
   3856     ecx = MEM32(eax + 0x4); /* 0x360993CF: mov ecx, dword ptr [eax + 4] */
   3857     eax = MEM32(ecx); /* 0x360993D2: mov eax, dword ptr [ecx] */
   3858     MEM32(esi + 0x128) = eax; /* 0x360993D4: mov dword ptr [esi + 0x128], eax */
   3859     edx = MEM32(esi + 0x158); /* 0x360993DA: mov edx, dword ptr [esi + 0x158] */
   3860     ecx = MEM32(esi + 0x12C); /* 0x360993E0: mov ecx, dword ptr [esi + 0x12c] */
   3861     edi = MEM32(edx + 0x8); /* 0x360993E6: mov edi, dword ptr [edx + 8] */
   3862     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3863     eax = 0; /* 0x360993E9: xor eax, eax */
   3864     _cf = 0;
   3865     _flag_k = FK_TEST;
   3866     /* cmp ecx, edi */ /* 0x360993EB: cmp ecx, edi */
   3867     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   3868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3869     _flag_k = FK_CMP;
   3870     if (CMP_B(_flag_a, _flag_b)) goto L_360993F5; /* 0x360993ED: jb 0x360993f5 */
   3871 L_360993EF:
   3872     MEM32(esi + 0x12C) = eax; /* 0x360993EF: mov dword ptr [esi + 0x12c], eax */
   3873 L_360993F5:
   3874     /* cmp MEM32(esi + 0x12C), eax */ /* 0x360993F5: cmp dword ptr [esi + 0x12c], eax */
   3875     _flag_a = (uint32_t)(MEM32(esi + 0x12C)); _flag_b = (uint32_t)(eax);
   3876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3877     _flag_k = FK_CMP;
   3878     if (CMP_LE(_flag_a, _flag_b)) goto L_36099416; /* 0x360993FB: jle 0x36099416 */
   3879 L_360993FD:
   3880     edx = MEM32(esi + 0x128); /* 0x360993FD: mov edx, dword ptr [esi + 0x128] */
   3881     ecx = MEM32(edx); /* 0x36099403: mov ecx, dword ptr [edx] */
   3882     MEM32(esi + 0x128) = ecx; /* 0x36099405: mov dword ptr [esi + 0x128], ecx */
   3883     ecx = MEM32(esi + 0x12C); /* 0x3609940B: mov ecx, dword ptr [esi + 0x12c] */
   3884     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3885     eax = eax + 1; /* 0x36099411: inc eax */
   3886     _flag_k = FK_INC;
   3887     /* cmp eax, ecx */ /* 0x36099412: cmp eax, ecx */
   3888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3890     _flag_k = FK_CMP;
   3891     RECOMP_BACKEDGE();
   3892     if (CMP_L(_flag_a, _flag_b)) goto L_360993FD; /* 0x36099414: jl 0x360993fd */
   3893 L_36099416:
   3894     edi = POP32_VAL(esp); /* 0x36099416: pop edi */
   3895     SET_LO8(eax, 1); /* 0x36099417: mov al, 1 */
   3896     esi = POP32_VAL(esp); /* 0x36099419: pop esi */
   3897     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609941A: ret  */
   3898     RECOMP_REGS_OUT();
   3899 }
   3900 
   3901 void sub_36099420(void) {
   3902     int _fpu_cmp = 0;
   3903     uint32_t _cf = 0;
   3904     int _df = 1;
   3905     uint32_t _flag_k = FK_NONE;
   3906     uint32_t _flag_a = 0, _flag_b = 0;
   3907     uint32_t _itail_tgt = 0;
   3908     RECOMP_REGS_LOCALS
   3909     RECOMP_ENTER(0x36099420u);
   3910 
   3911 L_36099420:
   3912     PUSH32(esp, ebp); /* 0x36099420: push ebp */
   3913     ebp = esp; /* 0x36099421: mov ebp, esp */
   3914     PUSH32(esp, 0xFFFFFFFFu); /* 0x36099423: push -1 */
   3915     PUSH32(esp, 0x361666D0u); /* 0x36099425: push 0x361666d0 */
   3916     eax = MEM32(FS_BASE + (0)); /* 0x3609942A: mov eax, dword ptr fs:[0] */
   3917     PUSH32(esp, eax); /* 0x36099430: push eax */
   3918     MEM32(FS_BASE + (0)) = esp; /* 0x36099431: mov dword ptr fs:[0], esp */
   3919     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u);
   3920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3921     esp = esp - 0x54u; /* 0x36099438: sub esp, 0x54 */
   3922     _flag_k = FK_CMP;
   3923     PUSH32(esp, ebx); /* 0x3609943B: push ebx */
   3924     PUSH32(esp, esi); /* 0x3609943C: push esi */
   3925     ebx = ecx; /* 0x3609943D: mov ebx, ecx */
   3926     eax = MEM32(ebx + (-0x8C)); /* 0x3609943F: mov eax, dword ptr [ebx - 0x8c] */
   3927     PUSH32(esp, edi); /* 0x36099445: push edi */
   3928     esi = ebx + (-0x8C); /* 0x36099446: lea esi, [ebx - 0x8c] */
   3929     PUSH32(esp, 0x20000000u); /* 0x3609944C: push 0x20000000 */
   3930     ecx = esi; /* 0x36099451: mov ecx, esi */
   3931     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x36099453: call dword ptr [eax + 0x18] */
   3932     RECOMP_FLAGS_IN();
   3933     edx = MEM32(esi + 0x34); /* 0x36099456: mov edx, dword ptr [esi + 0x34] */
   3934     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x7FFFFFFFu);
   3935     edx = edx & 0x7FFFFFFFu; /* 0x36099459: and edx, 0x7fffffff */
   3936     _cf = 0;
   3937     _flag_k = FK_TEST;
   3938     eax = edx; /* 0x3609945F: mov eax, edx */
   3939     PUSH32(esp, eax); /* 0x36099461: push eax */
   3940     MEM32(esi + 0x34) = edx; /* 0x36099462: mov dword ptr [esi + 0x34], edx */
   3941     edx = MEM32(esi); /* 0x36099465: mov edx, dword ptr [esi] */
   3942     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3943     edi = 0; /* 0x36099467: xor edi, edi */
   3944     _cf = 0;
   3945     _flag_k = FK_TEST;
   3946     PUSH32(esp, edi); /* 0x36099469: push edi */
   3947     ecx = esi; /* 0x3609946A: mov ecx, esi */
   3948     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609946C: call dword ptr [edx + 8] */
   3949     RECOMP_FLAGS_IN();
   3950     eax = MEM32(ebx + 0x1C); /* 0x3609946F: mov eax, dword ptr [ebx + 0x1c] */
   3951     esi = ebx + 0x1C; /* 0x36099472: lea esi, [ebx + 0x1c] */
   3952     ecx = esi; /* 0x36099475: mov ecx, esi */
   3953     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36099477: call dword ptr [eax + 0xc] */
   3954     RECOMP_FLAGS_IN();
   3955     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x3609947A: fcomp qword ptr [0x36170430] */
   3956     fp_pop();
   3957     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36099480: fnstsw ax */
   3958     /* test HI8(eax), 0x40u */ /* 0x36099482: test ah, 0x40 */
   3959     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   3960     _cf = 0;
   3961     _flag_k = FK_NARROW(FK_TEST, 24);
   3962     if (TEST_Z(_flag_a, _flag_b)) goto L_360994C4; /* 0x36099485: je 0x360994c4 */
   3963 L_36099487:
   3964     edx = MEM32(esi); /* 0x36099487: mov edx, dword ptr [esi] */
   3965     ecx = esi; /* 0x36099489: mov ecx, esi */
   3966     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609948B: call dword ptr [edx + 4] */
   3967     RECOMP_FLAGS_IN();
   3968     /* test eax, eax */ /* 0x3609948E: test eax, eax */
   3969     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3970     _cf = 0;
   3971     _flag_k = FK_TEST;
   3972     if (TEST_Z(_flag_a, _flag_b)) goto L_360994C4; /* 0x36099490: je 0x360994c4 */
   3973 L_36099492:
   3974     eax = MEM32(esi); /* 0x36099492: mov eax, dword ptr [esi] */
   3975     ecx = esi; /* 0x36099494: mov ecx, esi */
   3976     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36099496: call dword ptr [eax + 4] */
   3977     RECOMP_FLAGS_IN();
   3978     MEM32(eax + 0x18) = 0x40A00000u; /* 0x36099499: mov dword ptr [eax + 0x18], 0x40a00000 */
   3979     edx = MEM32(esi); /* 0x360994A0: mov edx, dword ptr [esi] */
   3980     ecx = esi; /* 0x360994A2: mov ecx, esi */
   3981     MEM32(ebp + (-0x1C)) = edi; /* 0x360994A4: mov dword ptr [ebp - 0x1c], edi */
   3982     MEM32(ebp + (-0x18)) = 0x40600000u; /* 0x360994A7: mov dword ptr [ebp - 0x18], 0x40600000 */
   3983     MEM32(ebp + (-0x14)) = edi; /* 0x360994AE: mov dword ptr [ebp - 0x14], edi */
   3984     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360994B1: call dword ptr [edx + 4] */
   3985     RECOMP_FLAGS_IN();
   3986     edx = MEM32(ebp + (-0x18)); /* 0x360994B4: mov edx, dword ptr [ebp - 0x18] */
   3987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
   3988     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3989     eax = eax + 0x24u; /* 0x360994B7: add eax, 0x24 */
   3990     _flag_k = FK_ADD;
   3991     ecx = edi; /* 0x360994BA: mov ecx, edi */
   3992     MEM32(eax) = ecx; /* 0x360994BC: mov dword ptr [eax], ecx */
   3993     MEM32(eax + 0x4) = edx; /* 0x360994BE: mov dword ptr [eax + 4], edx */
   3994     MEM32(eax + 0x8) = ecx; /* 0x360994C1: mov dword ptr [eax + 8], ecx */
   3995 L_360994C4:
   3996     esi = MEM32(0x3616FCE0); /* 0x360994C4: mov esi, dword ptr [0x3616fce0] */
   3997     ecx = ebx; /* 0x360994CA: mov ecx, ebx */
   3998     RECOMP_ICALL(esi); /* 0x360994CC: call esi */
   3999     RECOMP_FLAGS_IN();
   4000     /* test LO8(eax), LO8(eax) */ /* 0x360994CE: test al, al */
   4001     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4002     _cf = 0;
   4003     _flag_k = FK_NARROW(FK_TEST, 24);
   4004     if (TEST_Z(_flag_a, _flag_b)) goto L_36099586; /* 0x360994D0: je 0x36099586 */
   4005 L_360994D6:
   4006     edx = ebp + (-0x2C); /* 0x360994D6: lea edx, [ebp - 0x2c] */
   4007     PUSH32(esp, edx); /* 0x360994D9: push edx */
   4008     eax = ebp + (-0x18); /* 0x360994DA: lea eax, [ebp - 0x18] */
   4009     PUSH32(esp, eax); /* 0x360994DD: push eax */
   4010     ecx = ebp + (-0x60); /* 0x360994DE: lea ecx, [ebp - 0x60] */
   4011     MEM32(ebp + (-0x2C)) = 0; /* 0x360994E1: mov dword ptr [ebp - 0x2c], 0 */
   4012     MEM32(ebp + (-0x28)) = 0; /* 0x360994E8: mov dword ptr [ebp - 0x28], 0 */
   4013     MEM32(ebp + (-0x24)) = 0; /* 0x360994EF: mov dword ptr [ebp - 0x24], 0 */
   4014     MEM32(ebp + (-0x18)) = edi; /* 0x360994F6: mov dword ptr [ebp - 0x18], edi */
   4015     MEM32(ebp + (-0x14)) = edi; /* 0x360994F9: mov dword ptr [ebp - 0x14], edi */
   4016     RECOMP_ICALL(MEM32(0x3616FAFC)); /* 0x360994FC: call dword ptr [0x3616fafc] */
   4017     RECOMP_FLAGS_IN();
   4018     ecx = ebx; /* 0x36099502: mov ecx, ebx */
   4019     RECOMP_ICALL(esi); /* 0x36099504: call esi */
   4020     RECOMP_FLAGS_IN();
   4021     /* test LO8(eax), LO8(eax) */ /* 0x36099506: test al, al */
   4022     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4023     _cf = 0;
   4024     _flag_k = FK_NARROW(FK_TEST, 24);
   4025     if (TEST_Z(_flag_a, _flag_b)) goto L_36099586; /* 0x36099508: je 0x36099586 */
   4026 L_3609950A:
   4027     ecx = ebx; /* 0x3609950A: mov ecx, ebx */
   4028     RECOMP_ICALL(MEM32(0x3616FCDC)); /* 0x3609950C: call dword ptr [0x3616fcdc] */
   4029     RECOMP_FLAGS_IN();
   4030     esi = eax; /* 0x36099512: mov esi, eax */
   4031     ecx = 5; /* 0x36099514: mov ecx, 5 */
   4032     edi = ebp + (-0x60); /* 0x36099519: lea edi, [ebp - 0x60] */
   4033     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3609951C: 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; }
   4034     ecx = ebp + (-0x60); /* 0x3609951E: lea ecx, [ebp - 0x60] */
   4035     PUSH32(esp, ecx); /* 0x36099521: push ecx */
   4036     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36099522: call dword ptr [0x3616ff70] */
   4037     RECOMP_FLAGS_IN();
   4038     esi = eax; /* 0x36099528: mov esi, eax */
   4039     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4041     esp = esp + 4; /* 0x3609952A: add esp, 4 */
   4042     _flag_k = FK_ADD;
   4043     /* test esi, esi */ /* 0x3609952D: test esi, esi */
   4044     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4045     _cf = 0;
   4046     _flag_k = FK_TEST;
   4047     if (TEST_Z(_flag_a, _flag_b)) goto L_36099570; /* 0x3609952F: je 0x36099570 */
   4048 L_36099531:
   4049     ecx = esi; /* 0x36099531: mov ecx, esi */
   4050     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36099533: call dword ptr [0x361700d4] */
   4051     RECOMP_FLAGS_IN();
   4052     /* test LO8(eax), LO8(eax) */ /* 0x36099539: 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_36099570; /* 0x3609953B: je 0x36099570 */
   4057 L_3609953D:
   4058     PUSH32(esp, esi); /* 0x3609953D: push esi */
   4059     ecx = ebx; /* 0x3609953E: mov ecx, ebx */
   4060     RECOMP_ICALL(MEM32(0x3616FD6C)); /* 0x36099540: call dword ptr [0x3616fd6c] */
   4061     RECOMP_FLAGS_IN();
   4062     /* test LO8(eax), LO8(eax) */ /* 0x36099546: test al, al */
   4063     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4064     _cf = 0;
   4065     _flag_k = FK_NARROW(FK_TEST, 24);
   4066     if (TEST_NZ(_flag_a, _flag_b)) goto L_36099570; /* 0x36099548: jne 0x36099570 */
   4067 L_3609954A:
   4068     ecx = MEM32(ebx + 0x154); /* 0x3609954A: mov ecx, dword ptr [ebx + 0x154] */
   4069     edi = MEM32(ecx + 0x4); /* 0x36099550: mov edi, dword ptr [ecx + 4] */
   4070     edx = esi + 0x4; /* 0x36099553: lea edx, [esi + 4] */
   4071     PUSH32(esp, edx); /* 0x36099556: push edx */
   4072     eax = ebp + (-0x14); /* 0x36099557: lea eax, [ebp - 0x14] */
   4073     PUSH32(esp, eax); /* 0x3609955A: push eax */
   4074     RECOMP_ICALL(0x36096370u); /* 0x3609955B: call 0x36096370 */ /* not lifted */
   4075     RECOMP_FLAGS_IN();
   4076     /* cmp MEM32(eax), edi */ /* 0x36099560: cmp dword ptr [eax], edi */
   4077     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi);
   4078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4079     _flag_k = FK_CMP;
   4080     if (CMP_NE(_flag_a, _flag_b)) goto L_36099570; /* 0x36099562: jne 0x36099570 */
   4081 L_36099564:
   4082     PUSH32(esp, esi); /* 0x36099564: push esi */
   4083     ecx = ebx + (-0x8C); /* 0x36099565: lea ecx, [ebx - 0x8c] */
   4084     RECOMP_ICALL(0x36099A80u); /* 0x3609956B: call 0x36099a80 */ /* not lifted */
   4085     RECOMP_FLAGS_IN();
   4086 L_36099570:
   4087     ecx = ebx; /* 0x36099570: mov ecx, ebx */
   4088     RECOMP_ICALL(MEM32(0x3616FD68)); /* 0x36099572: call dword ptr [0x3616fd68] */
   4089     RECOMP_FLAGS_IN();
   4090     ecx = ebx; /* 0x36099578: mov ecx, ebx */
   4091     RECOMP_ICALL(MEM32(0x3616FCE0)); /* 0x3609957A: call dword ptr [0x3616fce0] */
   4092     RECOMP_FLAGS_IN();
   4093     /* test LO8(eax), LO8(eax) */ /* 0x36099580: test al, al */
   4094     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4095     _cf = 0;
   4096     _flag_k = FK_NARROW(FK_TEST, 24);
   4097     RECOMP_BACKEDGE();
   4098     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609950A; /* 0x36099582: jne 0x3609950a */
   4099 L_36099584:
   4100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4101     edi = 0; /* 0x36099584: xor edi, edi */
   4102     _cf = 0;
   4103     _flag_k = FK_TEST;
   4104 L_36099586:
   4105     fp_push(*(float*)&MEM32(ebx + 0x138)); /* 0x36099586: fld dword ptr [ebx + 0x138] */
   4106     esi = ebx + 0x138; /* 0x3609958C: lea esi, [ebx + 0x138] */
   4107     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36099592: fcomp dword ptr [0x3617040c] */
   4108     fp_pop();
   4109     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36099598: fnstsw ax */
   4110     /* test HI8(eax), 0x40u */ /* 0x3609959A: test ah, 0x40 */
   4111     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   4112     _cf = 0;
   4113     _flag_k = FK_NARROW(FK_TEST, 24);
   4114     if (TEST_Z(_flag_a, _flag_b)) goto L_360995CA; /* 0x3609959D: je 0x360995ca */
   4115 L_3609959F:
   4116     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x3609959F: fld dword ptr [esi + 4] */
   4117     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360995A2: fcomp dword ptr [0x3617040c] */
   4118     fp_pop();
   4119     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360995A8: fnstsw ax */
   4120     /* test HI8(eax), 0x40u */ /* 0x360995AA: test ah, 0x40 */
   4121     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   4122     _cf = 0;
   4123     _flag_k = FK_NARROW(FK_TEST, 24);
   4124     if (TEST_Z(_flag_a, _flag_b)) goto L_360995CA; /* 0x360995AD: je 0x360995ca */
   4125 L_360995AF:
   4126     fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x360995AF: fld dword ptr [esi + 8] */
   4127     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360995B2: fcomp dword ptr [0x3617040c] */
   4128     fp_pop();
   4129     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360995B8: fnstsw ax */
   4130     /* test HI8(eax), 0x40u */ /* 0x360995BA: test ah, 0x40 */
   4131     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   4132     _cf = 0;
   4133     _flag_k = FK_NARROW(FK_TEST, 24);
   4134     if (TEST_Z(_flag_a, _flag_b)) goto L_360995CA; /* 0x360995BD: je 0x360995ca */
   4135 L_360995BF:
   4136     ecx = ebx + (-0x8C); /* 0x360995BF: lea ecx, [ebx - 0x8c] */
   4137     RECOMP_ICALL(0x360E2940u); /* 0x360995C5: call 0x360e2940 */ /* not lifted */
   4138     RECOMP_FLAGS_IN();
   4139 L_360995CA:
   4140     eax = MEM32(ebx + 0x124); /* 0x360995CA: mov eax, dword ptr [ebx + 0x124] */
   4141     /* cmp eax, edi */ /* 0x360995D0: cmp eax, edi */
   4142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4144     _flag_k = FK_CMP;
   4145     if (CMP_L(_flag_a, _flag_b)) goto L_360996AF; /* 0x360995D2: jl 0x360996af */
   4146 L_360995D8:
   4147     if (CMP_LE(_flag_a, _flag_b)) goto L_36099657; /* 0x360995D8: jle 0x36099657 */
   4148 L_360995DA:
   4149     ecx = MEM32(0x3616FF74); /* 0x360995DA: mov ecx, dword ptr [0x3616ff74] */
   4150     eax = MEM32(ecx); /* 0x360995E0: mov eax, dword ptr [ecx] */
   4151     fp_push(*(float*)&MEM32(eax + 0x64)); /* 0x360995E2: fld dword ptr [eax + 0x64] */
   4152     _st[0] += (double)*(float*)ADDR(ebx + 0x118); /* 0x360995E5: fadd dword ptr [ebx + 0x118] */
   4153     { float _v = (float)_st[0]; *(float*)ADDR(ebx + 0x118) = _v; } /* 0x360995EB: fst dword ptr [ebx + 0x118] */
   4154     RECOMP_ICALL(0x3615FD8Cu); /* 0x360995F1: call 0x3615fd8c */ /* not lifted */
   4155     RECOMP_FLAGS_IN();
   4156     /* cmp eax, MEM32(ebx + 0x124) */ /* 0x360995F6: cmp eax, dword ptr [ebx + 0x124] */
   4157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x124));
   4158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4159     _flag_k = FK_CMP;
   4160     if (CMP_L(_flag_a, _flag_b)) goto L_360996AF; /* 0x360995FC: jl 0x360996af */
   4161 L_36099602:
   4162     MEM32(ebx + 0x124) = edi; /* 0x36099602: mov dword ptr [ebx + 0x124], edi */
   4163     MEM32(ebx + 0x118) = edi; /* 0x36099608: mov dword ptr [ebx + 0x118], edi */
   4164     fp_push((double)(int32_t)MEM32(ebx + 0x130)); /* 0x3609960E: fild dword ptr [ebx + 0x130] */
   4165     ecx = MEM32(ebx + 0x60); /* 0x36099614: mov ecx, dword ptr [ebx + 0x60] */
   4166     PUSH32(esp, ecx); /* 0x36099617: push ecx */
   4167     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36099618: fstp dword ptr [esp] */
   4168     RECOMP_ICALL(MEM32(0x36170244)); /* 0x3609961B: call dword ptr [0x36170244] */
   4169     RECOMP_FLAGS_IN();
   4170     edx = MEM32(ebx + 0x11C); /* 0x36099621: mov edx, dword ptr [ebx + 0x11c] */
   4171     ecx = MEM32(ebx + 0x60); /* 0x36099627: mov ecx, dword ptr [ebx + 0x60] */
   4172     eax = edx; /* 0x3609962A: mov eax, edx */
   4173     PUSH32(esp, eax); /* 0x3609962C: push eax */
   4174     MEM32(ebp + (-0x14)) = edx; /* 0x3609962D: mov dword ptr [ebp - 0x14], edx */
   4175     RECOMP_ICALL(MEM32(0x3617025C)); /* 0x36099630: call dword ptr [0x3617025c] */
   4176     RECOMP_FLAGS_IN();
   4177     ecx = MEM32(ebx + 0x120); /* 0x36099636: mov ecx, dword ptr [ebx + 0x120] */
   4178     MEM32(ebp + (-0x14)) = ecx; /* 0x3609963C: mov dword ptr [ebp - 0x14], ecx */
   4179     edx = MEM32(ebp + (-0x14)); /* 0x3609963F: mov edx, dword ptr [ebp - 0x14] */
   4180     ecx = MEM32(ebx + 0x60); /* 0x36099642: mov ecx, dword ptr [ebx + 0x60] */
   4181     PUSH32(esp, edx); /* 0x36099645: push edx */
   4182     RECOMP_ICALL(MEM32(0x36170234)); /* 0x36099646: call dword ptr [0x36170234] */
   4183     RECOMP_FLAGS_IN();
   4184     ecx = MEM32(ebx + 0x60); /* 0x3609964C: mov ecx, dword ptr [ebx + 0x60] */
   4185     PUSH32(esp, esi); /* 0x3609964F: push esi */
   4186     RECOMP_ICALL(0x3609A9A0u); /* 0x36099650: call 0x3609a9a0 */ /* not lifted */
   4187     RECOMP_FLAGS_IN();
   4188     goto L_360996AF; /* 0x36099655: jmp 0x360996af */
   4189 L_36099657:
   4190     ecx = ebx; /* 0x36099657: mov ecx, ebx */
   4191     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x36099659: call dword ptr [0x361700a8] */
   4192     RECOMP_FLAGS_IN();
   4193     ecx = MEM32(eax); /* 0x3609965F: mov ecx, dword ptr [eax] */
   4194     edx = MEM32(eax + 0x4); /* 0x36099661: mov edx, dword ptr [eax + 4] */
   4195     eax = MEM32(eax + 0x8); /* 0x36099664: mov eax, dword ptr [eax + 8] */
   4196     MEM32(ebp + (-0x1C)) = ecx; /* 0x36099667: mov dword ptr [ebp - 0x1c], ecx */
   4197     fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3609966A: fld dword ptr [ebp - 0x1c] */
   4198     _st[0] -= (double)*(float*)ADDR(esi); /* 0x3609966D: fsub dword ptr [esi] */
   4199     MEM32(ebp + (-0x18)) = edx; /* 0x3609966F: mov dword ptr [ebp - 0x18], edx */
   4200     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36099672: fld dword ptr [ebp - 0x18] */
   4201     MEM32(ebp + (-0x14)) = eax; /* 0x36099675: mov dword ptr [ebp - 0x14], eax */
   4202     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x36099678: fsub dword ptr [esi + 4] */
   4203     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3609967B: fld dword ptr [ebp - 0x14] */
   4204     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3609967E: fsub dword ptr [esi + 8] */
   4205     fp_push(_st[0]); /* 0x36099681: fld st(0) */
   4206     _st[0] *= _st[1]; /* 0x36099683: fmul st(1) */
   4207     fp_push(_st[2]); /* 0x36099685: fld st(2) */
   4208     _st[0] *= _st[3]; /* 0x36099687: fmul st(3) */
   4209     { double _v = fp_pop(); _st[0] += _v; } /* 0x36099689: faddp st(1) */
   4210     fp_push(_st[3]); /* 0x3609968B: fld st(3) */
   4211     _st[0] *= _st[4]; /* 0x3609968D: fmul st(4) */
   4212     { double _v = fp_pop(); _st[0] += _v; } /* 0x3609968F: faddp st(1) */
   4213     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36099691: fcomp dword ptr [0x36170380] */
   4214     fp_pop();
   4215     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36099697: fstp st(0) */
   4216     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36099699: fnstsw ax */
   4217     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3609969B: fstp st(0) */
   4218     /* test HI8(eax), 1 */ /* 0x3609969D: test ah, 1 */
   4219     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4220     _cf = 0;
   4221     _flag_k = FK_NARROW(FK_TEST, 24);
   4222     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360996A0: fstp st(0) */
   4223     if (TEST_Z(_flag_a, _flag_b)) goto L_360996AF; /* 0x360996A2: je 0x360996af */
   4224 L_360996A4:
   4225     ecx = ebx + (-0x8C); /* 0x360996A4: lea ecx, [ebx - 0x8c] */
   4226     RECOMP_ICALL(0x360E2940u); /* 0x360996AA: call 0x360e2940 */ /* not lifted */
   4227     RECOMP_FLAGS_IN();
   4228 L_360996AF:
   4229     SET_LO8(ecx, MEM8(ebp + (-0xE))); /* 0x360996AF: mov cl, byte ptr [ebp - 0xe] */
   4230     MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(ecx)); /* 0x360996B2: mov byte ptr [ebp - 0x3c], cl */
   4231     MEM32(ebp + (-0x38)) = edi; /* 0x360996B5: mov dword ptr [ebp - 0x38], edi */
   4232     MEM32(ebp + (-0x34)) = edi; /* 0x360996B8: mov dword ptr [ebp - 0x34], edi */
   4233     MEM32(ebp + (-0x30)) = edi; /* 0x360996BB: mov dword ptr [ebp - 0x30], edi */
   4234     eax = MEM32(ebx + 0x154); /* 0x360996BE: mov eax, dword ptr [ebx + 0x154] */
   4235     MEM32(ebp + (-0x48)) = eax; /* 0x360996C4: mov dword ptr [ebp - 0x48], eax */
   4236     edx = ebp + (-0x3C); /* 0x360996C7: lea edx, [ebp - 0x3c] */
   4237     eax = ebp + (-0xD); /* 0x360996CA: lea eax, [ebp - 0xd] */
   4238     MEM32(ebp + (-0x4)) = edi; /* 0x360996CD: mov dword ptr [ebp - 4], edi */
   4239     MEM32(ebp + (-0x44)) = edx; /* 0x360996D0: mov dword ptr [ebp - 0x44], edx */
   4240     MEM32(ebp + (-0x40)) = eax; /* 0x360996D3: mov dword ptr [ebp - 0x40], eax */
   4241     MEM32(ebp + (-0x4C)) = 0x36173750u; /* 0x360996D6: mov dword ptr [ebp - 0x4c], 0x36173750 */
   4242     MEM8(ebp + (-0xD)) = (uint8_t)(0); /* 0x360996DD: mov byte ptr [ebp - 0xd], 0 */
   4243     PUSH32(esp, edi); /* 0x360996E1: push edi */
   4244     ecx = ebp + (-0x4C); /* 0x360996E2: lea ecx, [ebp - 0x4c] */
   4245     PUSH32(esp, ecx); /* 0x360996E5: push ecx */
   4246     ecx = ebx; /* 0x360996E6: mov ecx, ebx */
   4247     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x360996E8: mov byte ptr [ebp - 4], 1 */
   4248     RECOMP_ICALL(MEM32(0x3616FD64)); /* 0x360996EC: call dword ptr [0x3616fd64] */
   4249     RECOMP_FLAGS_IN();
   4250     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x360996F2: mov al, byte ptr [ebp - 0xd] */
   4251     /* test LO8(eax), LO8(eax) */ /* 0x360996F5: test al, al */
   4252     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4253     _cf = 0;
   4254     _flag_k = FK_NARROW(FK_TEST, 24);
   4255     if (TEST_Z(_flag_a, _flag_b)) goto L_36099725; /* 0x360996F7: je 0x36099725 */
   4256 L_360996F9:
   4257     esi = MEM32(ebp + (-0x38)); /* 0x360996F9: mov esi, dword ptr [ebp - 0x38] */
   4258     /* cmp esi, MEM32(ebp + (-0x34)) */ /* 0x360996FC: cmp esi, dword ptr [ebp - 0x34] */
   4259     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x34)));
   4260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4261     _flag_k = FK_CMP;
   4262     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099725; /* 0x360996FF: je 0x36099725 */
   4263 L_36099701:
   4264     ecx = MEM32(esi); /* 0x36099701: mov ecx, dword ptr [esi] */
   4265     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36099703: call dword ptr [0x361700d4] */
   4266     RECOMP_FLAGS_IN();
   4267     /* test LO8(eax), LO8(eax) */ /* 0x36099709: test al, al */
   4268     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4269     _cf = 0;
   4270     _flag_k = FK_NARROW(FK_TEST, 24);
   4271     if (TEST_Z(_flag_a, _flag_b)) goto L_3609971B; /* 0x3609970B: je 0x3609971b */
   4272 L_3609970D:
   4273     edx = MEM32(esi); /* 0x3609970D: mov edx, dword ptr [esi] */
   4274     PUSH32(esp, edx); /* 0x3609970F: push edx */
   4275     ecx = ebx + (-0x8C); /* 0x36099710: lea ecx, [ebx - 0x8c] */
   4276     RECOMP_ICALL(0x36099BE0u); /* 0x36099716: call 0x36099be0 */ /* not lifted */
   4277     RECOMP_FLAGS_IN();
   4278 L_3609971B:
   4279     eax = MEM32(ebp + (-0x34)); /* 0x3609971B: mov eax, dword ptr [ebp - 0x34] */
   4280     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   4281     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4282     esi = esi + 4; /* 0x3609971E: add esi, 4 */
   4283     _flag_k = FK_ADD;
   4284     /* cmp esi, eax */ /* 0x36099721: cmp esi, eax */
   4285     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4287     _flag_k = FK_CMP;
   4288     RECOMP_BACKEDGE();
   4289     if (CMP_NE(_flag_a, _flag_b)) goto L_36099701; /* 0x36099723: jne 0x36099701 */
   4290 L_36099725:
   4291     ecx = ebx; /* 0x36099725: mov ecx, ebx */
   4292     RECOMP_ICALL(0x3609CE60u); /* 0x36099727: call 0x3609ce60 */ /* not lifted */
   4293     RECOMP_FLAGS_IN();
   4294     MEM8(ebp + (-0xE)) = (uint8_t)(LO8(eax)); /* 0x3609972C: mov byte ptr [ebp - 0xe], al */
   4295     eax = MEM32(ebx + 0x154); /* 0x3609972F: mov eax, dword ptr [ebx + 0x154] */
   4296     eax = MEM32(eax + 0x4); /* 0x36099735: mov eax, dword ptr [eax + 4] */
   4297     esi = MEM32(eax); /* 0x36099738: mov esi, dword ptr [eax] */
   4298     /* cmp esi, eax */ /* 0x3609973A: cmp esi, eax */
   4299     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4301     _flag_k = FK_CMP;
   4302     if (CMP_EQ(_flag_a, _flag_b)) goto L_360997E0; /* 0x3609973C: je 0x360997e0 */
   4303 L_36099742:
   4304     _flag_a = (uint32_t)(MEM32(esi + 0x14)); _flag_b = (uint32_t)(1);
   4305     MEM32(esi + 0x14) = MEM32(esi + 0x14) - 1; /* 0x36099742: dec dword ptr [esi + 0x14] */
   4306     _flag_k = FK_DEC;
   4307     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36099796; /* 0x36099745: jne 0x36099796 */
   4308 L_36099747:
   4309     eax = MEM32(esi + 0x8); /* 0x36099747: mov eax, dword ptr [esi + 8] */
   4310     SET_LO8(edx, MEM8(eax + 0x19)); /* 0x3609974A: mov dl, byte ptr [eax + 0x19] */
   4311     /* test LO8(edx), LO8(edx) */ /* 0x3609974D: test dl, dl */
   4312     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4313     _cf = 0;
   4314     _flag_k = FK_NARROW(FK_TEST, 24);
   4315     ecx = esi; /* 0x3609974F: mov ecx, esi */
   4316     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609976B; /* 0x36099751: jne 0x3609976b */
   4317 L_36099753:
   4318     esi = eax; /* 0x36099753: mov esi, eax */
   4319     eax = MEM32(esi); /* 0x36099755: mov eax, dword ptr [esi] */
   4320     SET_LO8(edx, MEM8(eax + 0x19)); /* 0x36099757: mov dl, byte ptr [eax + 0x19] */
   4321     /* test LO8(edx), LO8(edx) */ /* 0x3609975A: test dl, dl */
   4322     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4323     _cf = 0;
   4324     _flag_k = FK_NARROW(FK_TEST, 24);
   4325     if (TEST_NZ(_flag_a, _flag_b)) goto L_36099784; /* 0x3609975C: jne 0x36099784 */
   4326 L_3609975E:
   4327     esi = eax; /* 0x3609975E: mov esi, eax */
   4328     eax = MEM32(esi); /* 0x36099760: mov eax, dword ptr [esi] */
   4329     SET_LO8(edx, MEM8(eax + 0x19)); /* 0x36099762: mov dl, byte ptr [eax + 0x19] */
   4330     /* test LO8(edx), LO8(edx) */ /* 0x36099765: test dl, dl */
   4331     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4332     _cf = 0;
   4333     _flag_k = FK_NARROW(FK_TEST, 24);
   4334     RECOMP_BACKEDGE();
   4335     if (TEST_Z(_flag_a, _flag_b)) goto L_3609975E; /* 0x36099767: je 0x3609975e */
   4336 L_36099769:
   4337     goto L_36099784; /* 0x36099769: jmp 0x36099784 */
   4338 L_3609976B:
   4339     eax = MEM32(esi + 0x4); /* 0x3609976B: mov eax, dword ptr [esi + 4] */
   4340     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3609976E: cmp esi, dword ptr [eax + 8] */
   4341     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4343     _flag_k = FK_CMP;
   4344     if (CMP_NE(_flag_a, _flag_b)) goto L_3609977D; /* 0x36099771: jne 0x3609977d */
   4345 L_36099773:
   4346     esi = eax; /* 0x36099773: mov esi, eax */
   4347     eax = MEM32(eax + 0x4); /* 0x36099775: mov eax, dword ptr [eax + 4] */
   4348     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36099778: cmp esi, dword ptr [eax + 8] */
   4349     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4351     _flag_k = FK_CMP;
   4352     RECOMP_BACKEDGE();
   4353     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099773; /* 0x3609977B: je 0x36099773 */
   4354 L_3609977D:
   4355     /* cmp MEM32(esi + 0x8), eax */ /* 0x3609977D: cmp dword ptr [esi + 8], eax */
   4356     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   4357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4358     _flag_k = FK_CMP;
   4359     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099784; /* 0x36099780: je 0x36099784 */
   4360 L_36099782:
   4361     esi = eax; /* 0x36099782: mov esi, eax */
   4362 L_36099784:
   4363     PUSH32(esp, ecx); /* 0x36099784: push ecx */
   4364     ecx = ebp + (-0x20); /* 0x36099785: lea ecx, [ebp - 0x20] */
   4365     PUSH32(esp, ecx); /* 0x36099788: push ecx */
   4366     ecx = MEM32(ebx + 0x154); /* 0x36099789: mov ecx, dword ptr [ebx + 0x154] */
   4367     RECOMP_ICALL(0x3603ECC0u); /* 0x3609978F: call 0x3603ecc0 */ /* not lifted */
   4368     RECOMP_FLAGS_IN();
   4369     goto L_360997D1; /* 0x36099794: jmp 0x360997d1 */
   4370 L_36099796:
   4371     eax = MEM32(esi + 0x8); /* 0x36099796: mov eax, dword ptr [esi + 8] */
   4372     SET_LO8(ecx, MEM8(eax + 0x19)); /* 0x36099799: mov cl, byte ptr [eax + 0x19] */
   4373     /* test LO8(ecx), LO8(ecx) */ /* 0x3609979C: test cl, cl */
   4374     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4375     _cf = 0;
   4376     _flag_k = FK_NARROW(FK_TEST, 24);
   4377     if (TEST_NZ(_flag_a, _flag_b)) goto L_360997B8; /* 0x3609979E: jne 0x360997b8 */
   4378 L_360997A0:
   4379     esi = eax; /* 0x360997A0: mov esi, eax */
   4380     eax = MEM32(esi); /* 0x360997A2: mov eax, dword ptr [esi] */
   4381     SET_LO8(ecx, MEM8(eax + 0x19)); /* 0x360997A4: mov cl, byte ptr [eax + 0x19] */
   4382     /* test LO8(ecx), LO8(ecx) */ /* 0x360997A7: test cl, cl */
   4383     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4384     _cf = 0;
   4385     _flag_k = FK_NARROW(FK_TEST, 24);
   4386     if (TEST_NZ(_flag_a, _flag_b)) goto L_360997D1; /* 0x360997A9: jne 0x360997d1 */
   4387 L_360997AB:
   4388     esi = eax; /* 0x360997AB: mov esi, eax */
   4389     eax = MEM32(esi); /* 0x360997AD: mov eax, dword ptr [esi] */
   4390     SET_LO8(ecx, MEM8(eax + 0x19)); /* 0x360997AF: mov cl, byte ptr [eax + 0x19] */
   4391     /* test LO8(ecx), LO8(ecx) */ /* 0x360997B2: test cl, cl */
   4392     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   4393     _cf = 0;
   4394     _flag_k = FK_NARROW(FK_TEST, 24);
   4395     RECOMP_BACKEDGE();
   4396     if (TEST_Z(_flag_a, _flag_b)) goto L_360997AB; /* 0x360997B4: je 0x360997ab */
   4397 L_360997B6:
   4398     goto L_360997D1; /* 0x360997B6: jmp 0x360997d1 */
   4399 L_360997B8:
   4400     eax = MEM32(esi + 0x4); /* 0x360997B8: mov eax, dword ptr [esi + 4] */
   4401     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360997BB: cmp esi, dword ptr [eax + 8] */
   4402     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4404     _flag_k = FK_CMP;
   4405     if (CMP_NE(_flag_a, _flag_b)) goto L_360997CA; /* 0x360997BE: jne 0x360997ca */
   4406 L_360997C0:
   4407     esi = eax; /* 0x360997C0: mov esi, eax */
   4408     eax = MEM32(eax + 0x4); /* 0x360997C2: mov eax, dword ptr [eax + 4] */
   4409     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360997C5: cmp esi, dword ptr [eax + 8] */
   4410     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   4411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4412     _flag_k = FK_CMP;
   4413     RECOMP_BACKEDGE();
   4414     if (CMP_EQ(_flag_a, _flag_b)) goto L_360997C0; /* 0x360997C8: je 0x360997c0 */
   4415 L_360997CA:
   4416     /* cmp MEM32(esi + 0x8), eax */ /* 0x360997CA: cmp dword ptr [esi + 8], eax */
   4417     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   4418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4419     _flag_k = FK_CMP;
   4420     if (CMP_EQ(_flag_a, _flag_b)) goto L_360997D1; /* 0x360997CD: je 0x360997d1 */
   4421 L_360997CF:
   4422     esi = eax; /* 0x360997CF: mov esi, eax */
   4423 L_360997D1:
   4424     edx = MEM32(ebx + 0x154); /* 0x360997D1: mov edx, dword ptr [ebx + 0x154] */
   4425     /* cmp esi, MEM32(edx + 0x4) */ /* 0x360997D7: cmp esi, dword ptr [edx + 4] */
   4426     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4428     _flag_k = FK_CMP;
   4429     RECOMP_BACKEDGE();
   4430     if (CMP_NE(_flag_a, _flag_b)) goto L_36099742; /* 0x360997DA: jne 0x36099742 */
   4431 L_360997E0:
   4432     ecx = MEM32(ebp + (-0x38)); /* 0x360997E0: mov ecx, dword ptr [ebp - 0x38] */
   4433     eax = MEM32(0x3616FD60); /* 0x360997E3: mov eax, dword ptr [0x3616fd60] */
   4434     PUSH32(esp, ecx); /* 0x360997E8: push ecx */
   4435     MEM32(ebp + (-0x4C)) = eax; /* 0x360997E9: mov dword ptr [ebp - 0x4c], eax */
   4436     RECOMP_ICALL(0x3615FCC4u); /* 0x360997EC: call 0x3615fcc4 */ /* not lifted */
   4437     RECOMP_FLAGS_IN();
   4438     ecx = MEM32(ebp + (-0xC)); /* 0x360997F1: mov ecx, dword ptr [ebp - 0xc] */
   4439     SET_LO8(eax, MEM8(ebp + (-0xE))); /* 0x360997F4: mov al, byte ptr [ebp - 0xe] */
   4440     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4441     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4442     esp = esp + 4; /* 0x360997F7: add esp, 4 */
   4443     _flag_k = FK_ADD;
   4444     edi = POP32_VAL(esp); /* 0x360997FA: pop edi */
   4445     esi = POP32_VAL(esp); /* 0x360997FB: pop esi */
   4446     ebx = POP32_VAL(esp); /* 0x360997FC: pop ebx */
   4447     MEM32(FS_BASE + (0)) = ecx; /* 0x360997FD: mov dword ptr fs:[0], ecx */
   4448     esp = ebp; /* 0x36099804: mov esp, ebp */
   4449     ebp = POP32_VAL(esp); /* 0x36099806: pop ebp */
   4450     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36099807: ret  */
   4451     RECOMP_REGS_OUT();
   4452 }
   4453 
   4454 void sub_36099810(void) {
   4455     int _fpu_cmp = 0;
   4456     uint32_t _cf = 0;
   4457     int _df = 1;
   4458     uint32_t _flag_k = FK_NONE;
   4459     uint32_t _flag_a = 0, _flag_b = 0;
   4460     uint32_t _itail_tgt = 0;
   4461     RECOMP_REGS_LOCALS
   4462     RECOMP_ENTER(0x36099810u);
   4463 
   4464 L_36099810:
   4465     PUSH32(esp, ebp); /* 0x36099810: push ebp */
   4466     ebp = esp; /* 0x36099811: mov ebp, esp */
   4467     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4469     esp = esp - 0xCu; /* 0x36099813: sub esp, 0xc */
   4470     _flag_k = FK_CMP;
   4471     PUSH32(esp, ebx); /* 0x36099816: push ebx */
   4472     PUSH32(esp, esi); /* 0x36099817: push esi */
   4473     ebx = ecx; /* 0x36099818: mov ebx, ecx */
   4474     ecx = MEM32(ebp + 0x8); /* 0x3609981A: mov ecx, dword ptr [ebp + 8] */
   4475     PUSH32(esp, edi); /* 0x3609981D: push edi */
   4476     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x3609981E: call dword ptr [0x361700a8] */
   4477     RECOMP_FLAGS_IN();
   4478     fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x36099824: fld dword ptr [eax + 4] */
   4479     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36099827: fcomp dword ptr [0x3617040c] */
   4480     fp_pop();
   4481     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3609982D: fnstsw ax */
   4482     /* test HI8(eax), 0x41u */ /* 0x3609982F: test ah, 0x41 */
   4483     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   4484     _cf = 0;
   4485     _flag_k = FK_NARROW(FK_TEST, 24);
   4486     if (TEST_Z(_flag_a, _flag_b)) goto L_360999EF; /* 0x36099832: je 0x360999ef */
   4487 L_36099838:
   4488     ecx = MEM32(ebp + 0x8); /* 0x36099838: mov ecx, dword ptr [ebp + 8] */
   4489     esi = MEM32(ebx + 0x4); /* 0x3609983B: mov esi, dword ptr [ebx + 4] */
   4490     eax = MEM32(esi + 0x4); /* 0x3609983E: mov eax, dword ptr [esi + 4] */
   4491     edi = ecx + 0x4; /* 0x36099841: lea edi, [ecx + 4] */
   4492     PUSH32(esp, edi); /* 0x36099844: push edi */
   4493     ecx = esi; /* 0x36099845: mov ecx, esi */
   4494     MEM32(ebp + (-0xC)) = eax; /* 0x36099847: mov dword ptr [ebp - 0xc], eax */
   4495     RECOMP_ICALL(0x3609A830u); /* 0x3609984A: call 0x3609a830 */ /* not lifted */
   4496     RECOMP_FLAGS_IN();
   4497     esi = MEM32(esi + 0x4); /* 0x3609984F: mov esi, dword ptr [esi + 4] */
   4498     /* cmp eax, esi */ /* 0x36099852: cmp eax, esi */
   4499     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4501     _flag_k = FK_CMP;
   4502     MEM32(ebp + (-0x4)) = eax; /* 0x36099854: mov dword ptr [ebp - 4], eax */
   4503     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609987B; /* 0x36099857: je 0x3609987b */
   4504 L_36099859:
   4505     ecx = MEM32(edi); /* 0x36099859: mov ecx, dword ptr [edi] */
   4506     edx = MEM32(eax + 0xC); /* 0x3609985B: mov edx, dword ptr [eax + 0xc] */
   4507     /* cmp ecx, edx */ /* 0x3609985E: cmp ecx, edx */
   4508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4510     _flag_k = FK_CMP;
   4511     if (CMP_NE(_flag_a, _flag_b)) goto L_3609986F; /* 0x36099860: jne 0x3609986f */
   4512 L_36099862:
   4513     ecx = MEM32(eax + 0x10); /* 0x36099862: mov ecx, dword ptr [eax + 0x10] */
   4514     edx = MEM32(edi + 0x4); /* 0x36099865: mov edx, dword ptr [edi + 4] */
   4515     /* cmp edx, ecx */ /* 0x36099868: cmp edx, ecx */
   4516     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4518     _flag_k = FK_CMP;
   4519     SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3609986A: setb al */
   4520     goto L_36099872; /* 0x3609986D: jmp 0x36099872 */
   4521 L_3609986F:
   4522     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x3609986F: setl al */
   4523 L_36099872:
   4524     /* test LO8(eax), LO8(eax) */ /* 0x36099872: test al, al */
   4525     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4526     _cf = 0;
   4527     _flag_k = FK_NARROW(FK_TEST, 24);
   4528     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609987B; /* 0x36099874: jne 0x3609987b */
   4529 L_36099876:
   4530     eax = ebp + (-0x4); /* 0x36099876: lea eax, [ebp - 4] */
   4531     goto L_36099881; /* 0x36099879: jmp 0x36099881 */
   4532 L_3609987B:
   4533     MEM32(ebp + (-0x8)) = esi; /* 0x3609987B: mov dword ptr [ebp - 8], esi */
   4534     eax = ebp + (-0x8); /* 0x3609987E: lea eax, [ebp - 8] */
   4535 L_36099881:
   4536     ecx = MEM32(ebp + (-0xC)); /* 0x36099881: mov ecx, dword ptr [ebp - 0xc] */
   4537     /* cmp MEM32(eax), ecx */ /* 0x36099884: cmp dword ptr [eax], ecx */
   4538     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx);
   4539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4540     _flag_k = FK_CMP;
   4541     if (CMP_NE(_flag_a, _flag_b)) goto L_360999EF; /* 0x36099886: jne 0x360999ef */
   4542 L_3609988C:
   4543     edx = MEM32(ebx + 0xC); /* 0x3609988C: mov edx, dword ptr [ebx + 0xc] */
   4544     MEM8(edx) = (uint8_t)(1); /* 0x3609988F: mov byte ptr [edx], 1 */
   4545     esi = MEM32(ebx + 0x8); /* 0x36099892: mov esi, dword ptr [ebx + 8] */
   4546     eax = MEM32(esi + 0x8); /* 0x36099895: mov eax, dword ptr [esi + 8] */
   4547     ecx = MEM32(esi + 0xC); /* 0x36099898: mov ecx, dword ptr [esi + 0xc] */
   4548     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4550     ecx = ecx - eax; /* 0x3609989B: sub ecx, eax */
   4551     _flag_k = FK_CMP;
   4552     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3609989D: sar ecx, 2 */
   4553     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4554     ecx = (uint32_t)((int32_t)ecx >> 2u);
   4555     /* cmp ecx, 1 */ /* 0x360998A0: cmp ecx, 1 */
   4556     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4557     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4558     _flag_k = FK_CMP;
   4559     edi = eax; /* 0x360998A3: mov edi, eax */
   4560     if (CMP_AE(_flag_a, _flag_b)) goto L_36099954; /* 0x360998A5: jae 0x36099954 */
   4561 L_360998AB:
   4562     ecx = MEM32(esi + 0x4); /* 0x360998AB: mov ecx, dword ptr [esi + 4] */
   4563     /* test ecx, ecx */ /* 0x360998AE: test ecx, ecx */
   4564     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4565     _cf = 0;
   4566     _flag_k = FK_TEST;
   4567     if (TEST_Z(_flag_a, _flag_b)) goto L_360998BE; /* 0x360998B0: je 0x360998be */
   4568 L_360998B2:
   4569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4571     eax = eax - ecx; /* 0x360998B2: sub eax, ecx */
   4572     _flag_k = FK_CMP;
   4573     if (2u) _cf = (((eax) >> 1) & 1u); /* 0x360998B4: sar eax, 2 */
   4574     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4575     eax = (uint32_t)((int32_t)eax >> 2u);
   4576     /* cmp eax, 1 */ /* 0x360998B7: cmp eax, 1 */
   4577     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4579     _flag_k = FK_CMP;
   4580     ebx = eax; /* 0x360998BA: mov ebx, eax */
   4581     if (CMP_A(_flag_a, _flag_b)) goto L_360998C3; /* 0x360998BC: ja 0x360998c3 */
   4582 L_360998BE:
   4583     ebx = 1; /* 0x360998BE: mov ebx, 1 */
   4584 L_360998C3:
   4585     ecx = esi; /* 0x360998C3: mov ecx, esi */
   4586     RECOMP_ICALL(0x3614F830u); /* 0x360998C5: call 0x3614f830 */ /* not lifted */
   4587     RECOMP_FLAGS_IN();
   4588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4589     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4590     eax = eax + ebx; /* 0x360998CA: add eax, ebx */
   4591     _flag_k = FK_ADD;
   4592     MEM32(ebp + (-0x8)) = eax; /* 0x360998CC: mov dword ptr [ebp - 8], eax */
   4593     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_360998D3; /* 0x360998CF: jns 0x360998d3 */
   4594 L_360998D1:
   4595     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4596     eax = 0; /* 0x360998D1: xor eax, eax */
   4597     _cf = 0;
   4598     _flag_k = FK_TEST;
   4599 L_360998D3:
   4600     edx = eax * 4; /* 0x360998D3: lea edx, [eax*4] */
   4601     PUSH32(esp, edx); /* 0x360998DA: push edx */
   4602     RECOMP_ICALL(0x3615FD6Au); /* 0x360998DB: call 0x3615fd6a */ /* not lifted */
   4603     RECOMP_FLAGS_IN();
   4604     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4605     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4606     esp = esp + 4; /* 0x360998E0: add esp, 4 */
   4607     _flag_k = FK_ADD;
   4608     ebx = eax; /* 0x360998E3: mov ebx, eax */
   4609     eax = MEM32(esi + 0x4); /* 0x360998E5: mov eax, dword ptr [esi + 4] */
   4610     PUSH32(esp, ebx); /* 0x360998E8: push ebx */
   4611     PUSH32(esp, edi); /* 0x360998E9: push edi */
   4612     PUSH32(esp, eax); /* 0x360998EA: push eax */
   4613     ecx = esi; /* 0x360998EB: mov ecx, esi */
   4614     RECOMP_ICALL(0x36141900u); /* 0x360998ED: call 0x36141900 */ /* not lifted */
   4615     RECOMP_FLAGS_IN();
   4616     ecx = ebp + 0x8; /* 0x360998F2: lea ecx, [ebp + 8] */
   4617     PUSH32(esp, ecx); /* 0x360998F5: push ecx */
   4618     PUSH32(esp, 1); /* 0x360998F6: push 1 */
   4619     PUSH32(esp, eax); /* 0x360998F8: push eax */
   4620     ecx = esi; /* 0x360998F9: mov ecx, esi */
   4621     MEM32(ebp + (-0xC)) = eax; /* 0x360998FB: mov dword ptr [ebp - 0xc], eax */
   4622     RECOMP_ICALL(0x361404A0u); /* 0x360998FE: call 0x361404a0 */ /* not lifted */
   4623     RECOMP_FLAGS_IN();
   4624     edx = MEM32(ebp + (-0xC)); /* 0x36099903: mov edx, dword ptr [ebp - 0xc] */
   4625     eax = MEM32(esi + 0x8); /* 0x36099906: mov eax, dword ptr [esi + 8] */
   4626     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   4627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4628     edx = edx + 4; /* 0x36099909: add edx, 4 */
   4629     _flag_k = FK_ADD;
   4630     PUSH32(esp, edx); /* 0x3609990C: push edx */
   4631     PUSH32(esp, eax); /* 0x3609990D: push eax */
   4632     PUSH32(esp, edi); /* 0x3609990E: push edi */
   4633     ecx = esi; /* 0x3609990F: mov ecx, esi */
   4634     RECOMP_ICALL(0x36141900u); /* 0x36099911: call 0x36141900 */ /* not lifted */
   4635     RECOMP_FLAGS_IN();
   4636     ecx = MEM32(esi + 0x8); /* 0x36099916: mov ecx, dword ptr [esi + 8] */
   4637     edx = MEM32(esi + 0x4); /* 0x36099919: mov edx, dword ptr [esi + 4] */
   4638     PUSH32(esp, ecx); /* 0x3609991C: push ecx */
   4639     PUSH32(esp, edx); /* 0x3609991D: push edx */
   4640     ecx = esi; /* 0x3609991E: mov ecx, esi */
   4641     RECOMP_ICALL(0x3610ED60u); /* 0x36099920: call 0x3610ed60 */ /* not lifted */
   4642     RECOMP_FLAGS_IN();
   4643     eax = MEM32(esi + 0x4); /* 0x36099925: mov eax, dword ptr [esi + 4] */
   4644     PUSH32(esp, eax); /* 0x36099928: push eax */
   4645     RECOMP_ICALL(0x3615FCC4u); /* 0x36099929: call 0x3615fcc4 */ /* not lifted */
   4646     RECOMP_FLAGS_IN();
   4647     ecx = MEM32(ebp + (-0x8)); /* 0x3609992E: mov ecx, dword ptr [ebp - 8] */
   4648     edx = ebx + ecx * 4; /* 0x36099931: lea edx, [ebx + ecx*4] */
   4649     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4651     esp = esp + 4; /* 0x36099934: add esp, 4 */
   4652     _flag_k = FK_ADD;
   4653     ecx = esi; /* 0x36099937: mov ecx, esi */
   4654     MEM32(esi + 0xC) = edx; /* 0x36099939: mov dword ptr [esi + 0xc], edx */
   4655     RECOMP_ICALL(0x3614F830u); /* 0x3609993C: call 0x3614f830 */ /* not lifted */
   4656     RECOMP_FLAGS_IN();
   4657     eax = ebx + eax * 4 + 0x4; /* 0x36099941: lea eax, [ebx + eax*4 + 4] */
   4658     edi = POP32_VAL(esp); /* 0x36099945: pop edi */
   4659     MEM32(esi + 0x4) = ebx; /* 0x36099946: mov dword ptr [esi + 4], ebx */
   4660     MEM32(esi + 0x8) = eax; /* 0x36099949: mov dword ptr [esi + 8], eax */
   4661     esi = POP32_VAL(esp); /* 0x3609994C: pop esi */
   4662     ebx = POP32_VAL(esp); /* 0x3609994D: pop ebx */
   4663     esp = ebp; /* 0x3609994E: mov esp, ebp */
   4664     ebp = POP32_VAL(esp); /* 0x36099950: pop ebp */
   4665     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36099951: ret 4 */
   4666 L_36099954:
   4667     ecx = eax; /* 0x36099954: mov ecx, eax */
   4668     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   4669     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4670     ecx = ecx - edi; /* 0x36099956: sub ecx, edi */
   4671     _flag_k = FK_CMP;
   4672     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36099958: sar ecx, 2 */
   4673     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4674     ecx = (uint32_t)((int32_t)ecx >> 2u);
   4675     /* cmp ecx, 1 */ /* 0x3609995B: cmp ecx, 1 */
   4676     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4678     _flag_k = FK_CMP;
   4679     if (CMP_AE(_flag_a, _flag_b)) goto L_360999B0; /* 0x3609995E: jae 0x360999b0 */
   4680 L_36099960:
   4681     edx = edi + 0x4; /* 0x36099960: lea edx, [edi + 4] */
   4682     PUSH32(esp, edx); /* 0x36099963: push edx */
   4683     PUSH32(esp, eax); /* 0x36099964: push eax */
   4684     PUSH32(esp, edi); /* 0x36099965: push edi */
   4685     ecx = esi; /* 0x36099966: mov ecx, esi */
   4686     RECOMP_ICALL(0x36141900u); /* 0x36099968: call 0x36141900 */ /* not lifted */
   4687     RECOMP_FLAGS_IN();
   4688     eax = MEM32(esi + 0x8); /* 0x3609996D: mov eax, dword ptr [esi + 8] */
   4689     edx = eax; /* 0x36099970: mov edx, eax */
   4690     ecx = ebp + 0x8; /* 0x36099972: lea ecx, [ebp + 8] */
   4691     PUSH32(esp, ecx); /* 0x36099975: push ecx */
   4692     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   4693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4694     edx = edx - edi; /* 0x36099976: sub edx, edi */
   4695     _flag_k = FK_CMP;
   4696     if (2u) _cf = (((edx) >> 1) & 1u); /* 0x36099978: sar edx, 2 */
   4697     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4698     edx = (uint32_t)((int32_t)edx >> 2u);
   4699     ecx = 1; /* 0x3609997B: mov ecx, 1 */
   4700     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4702     ecx = ecx - edx; /* 0x36099980: sub ecx, edx */
   4703     _flag_k = FK_CMP;
   4704     PUSH32(esp, ecx); /* 0x36099982: push ecx */
   4705     PUSH32(esp, eax); /* 0x36099983: push eax */
   4706     ecx = esi; /* 0x36099984: mov ecx, esi */
   4707     RECOMP_ICALL(0x361404A0u); /* 0x36099986: call 0x361404a0 */ /* not lifted */
   4708     RECOMP_FLAGS_IN();
   4709     eax = MEM32(esi + 0x8); /* 0x3609998B: mov eax, dword ptr [esi + 8] */
   4710     /* cmp edi, eax */ /* 0x3609998E: cmp edi, eax */
   4711     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4713     _flag_k = FK_CMP;
   4714     if (CMP_EQ(_flag_a, _flag_b)) goto L_360999EB; /* 0x36099990: je 0x360999eb */
   4715 L_36099992:
   4716     edx = MEM32(ebp + 0x8); /* 0x36099992: mov edx, dword ptr [ebp + 8] */
   4717     MEM32(edi) = edx; /* 0x36099995: mov dword ptr [edi], edx */
   4718     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   4719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4720     edi = edi + 4; /* 0x36099997: add edi, 4 */
   4721     _flag_k = FK_ADD;
   4722     /* cmp edi, eax */ /* 0x3609999A: cmp edi, eax */
   4723     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4725     _flag_k = FK_CMP;
   4726     RECOMP_BACKEDGE();
   4727     if (CMP_NE(_flag_a, _flag_b)) goto L_36099992; /* 0x3609999C: jne 0x36099992 */
   4728 L_3609999E:
   4729     eax = MEM32(esi + 0x8); /* 0x3609999E: mov eax, dword ptr [esi + 8] */
   4730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4732     eax = eax + 4; /* 0x360999A1: add eax, 4 */
   4733     _flag_k = FK_ADD;
   4734     edi = POP32_VAL(esp); /* 0x360999A4: pop edi */
   4735     MEM32(esi + 0x8) = eax; /* 0x360999A5: mov dword ptr [esi + 8], eax */
   4736     esi = POP32_VAL(esp); /* 0x360999A8: pop esi */
   4737     ebx = POP32_VAL(esp); /* 0x360999A9: pop ebx */
   4738     esp = ebp; /* 0x360999AA: mov esp, ebp */
   4739     ebp = POP32_VAL(esp); /* 0x360999AC: pop ebp */
   4740     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360999AD: ret 4 */
   4741 L_360999B0:
   4742     PUSH32(esp, eax); /* 0x360999B0: push eax */
   4743     PUSH32(esp, eax); /* 0x360999B1: push eax */
   4744     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
   4745     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4746     eax = eax + 0xFFFFFFFCu; /* 0x360999B2: add eax, -4 */
   4747     _flag_k = FK_ADD;
   4748     PUSH32(esp, eax); /* 0x360999B5: push eax */
   4749     ecx = esi; /* 0x360999B6: mov ecx, esi */
   4750     RECOMP_ICALL(0x36141900u); /* 0x360999B8: call 0x36141900 */ /* not lifted */
   4751     RECOMP_FLAGS_IN();
   4752     ecx = MEM32(esi + 0x8); /* 0x360999BD: mov ecx, dword ptr [esi + 8] */
   4753     eax = ecx + (-0x4); /* 0x360999C0: lea eax, [ecx - 4] */
   4754     /* cmp edi, eax */ /* 0x360999C3: cmp edi, eax */
   4755     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4757     _flag_k = FK_CMP;
   4758     if (CMP_EQ(_flag_a, _flag_b)) goto L_360999D6; /* 0x360999C5: je 0x360999d6 */
   4759 L_360999C7:
   4760     edx = MEM32(eax + (-0x4)); /* 0x360999C7: mov edx, dword ptr [eax - 4] */
   4761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4763     eax = eax - 4; /* 0x360999CA: sub eax, 4 */
   4764     _flag_k = FK_CMP;
   4765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   4766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4767     ecx = ecx - 4; /* 0x360999CD: sub ecx, 4 */
   4768     _flag_k = FK_CMP;
   4769     /* cmp eax, edi */ /* 0x360999D0: cmp eax, edi */
   4770     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4772     _flag_k = FK_CMP;
   4773     MEM32(ecx) = edx; /* 0x360999D2: mov dword ptr [ecx], edx */
   4774     RECOMP_BACKEDGE();
   4775     if (CMP_NE(_flag_a, _flag_b)) goto L_360999C7; /* 0x360999D4: jne 0x360999c7 */
   4776 L_360999D6:
   4777     ecx = edi + 0x4; /* 0x360999D6: lea ecx, [edi + 4] */
   4778     /* cmp edi, ecx */ /* 0x360999D9: cmp edi, ecx */
   4779     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4781     _flag_k = FK_CMP;
   4782     eax = edi; /* 0x360999DB: mov eax, edi */
   4783     if (CMP_EQ(_flag_a, _flag_b)) goto L_360999EB; /* 0x360999DD: je 0x360999eb */
   4784 L_360999DF:
   4785     edx = MEM32(ebp + 0x8); /* 0x360999DF: mov edx, dword ptr [ebp + 8] */
   4786     MEM32(eax) = edx; /* 0x360999E2: mov dword ptr [eax], edx */
   4787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4789     eax = eax + 4; /* 0x360999E4: add eax, 4 */
   4790     _flag_k = FK_ADD;
   4791     /* cmp eax, ecx */ /* 0x360999E7: cmp eax, ecx */
   4792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4794     _flag_k = FK_CMP;
   4795     RECOMP_BACKEDGE();
   4796     if (CMP_NE(_flag_a, _flag_b)) goto L_360999DF; /* 0x360999E9: jne 0x360999df */
   4797 L_360999EB:
   4798     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4);
   4799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4800     MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x360999EB: add dword ptr [esi + 8], 4 */
   4801     _flag_k = FK_ADD;
   4802 L_360999EF:
   4803     edi = POP32_VAL(esp); /* 0x360999EF: pop edi */
   4804     esi = POP32_VAL(esp); /* 0x360999F0: pop esi */
   4805     ebx = POP32_VAL(esp); /* 0x360999F1: pop ebx */
   4806     esp = ebp; /* 0x360999F2: mov esp, ebp */
   4807     ebp = POP32_VAL(esp); /* 0x360999F4: pop ebp */
   4808     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360999F5: ret 4 */
   4809     RECOMP_REGS_OUT();
   4810 }
   4811 
   4812 void sub_36099A00(void) {
   4813     int _fpu_cmp = 0;
   4814     uint32_t _cf = 0;
   4815     int _df = 1;
   4816     uint32_t _flag_k = FK_NONE;
   4817     uint32_t _flag_a = 0, _flag_b = 0;
   4818     uint32_t _itail_tgt = 0;
   4819     RECOMP_REGS_LOCALS
   4820     RECOMP_ENTER(0x36099A00u);
   4821 
   4822 L_36099A00:
   4823     PUSH32(esp, ebp); /* 0x36099A00: push ebp */
   4824     ebp = esp; /* 0x36099A01: mov ebp, esp */
   4825     PUSH32(esp, esi); /* 0x36099A03: push esi */
   4826     esi = ecx; /* 0x36099A04: mov esi, ecx */
   4827     RECOMP_ICALL(0x36099A30u); /* 0x36099A06: call 0x36099a30 */ /* not lifted */
   4828     RECOMP_FLAGS_IN();
   4829     /* test MEM8(ebp + 0x8), 1 */ /* 0x36099A0B: test byte ptr [ebp + 8], 1 */
   4830     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4831     _cf = 0;
   4832     _flag_k = FK_NARROW(FK_TEST, 24);
   4833     if (TEST_Z(_flag_a, _flag_b)) goto L_36099A1A; /* 0x36099A0F: je 0x36099a1a */
   4834 L_36099A11:
   4835     PUSH32(esp, esi); /* 0x36099A11: push esi */
   4836     RECOMP_ICALL(0x3615FCC4u); /* 0x36099A12: call 0x3615fcc4 */ /* not lifted */
   4837     RECOMP_FLAGS_IN();
   4838     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4839     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4840     esp = esp + 4; /* 0x36099A17: add esp, 4 */
   4841     _flag_k = FK_ADD;
   4842 L_36099A1A:
   4843     eax = esi; /* 0x36099A1A: mov eax, esi */
   4844     esi = POP32_VAL(esp); /* 0x36099A1C: pop esi */
   4845     ebp = POP32_VAL(esp); /* 0x36099A1D: pop ebp */
   4846     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36099A1E: ret 4 */
   4847     RECOMP_REGS_OUT();
   4848 }
   4849 
   4850 void sub_36099A30(void) {
   4851     int _fpu_cmp = 0;
   4852     uint32_t _cf = 0;
   4853     int _df = 1;
   4854     uint32_t _flag_k = FK_NONE;
   4855     uint32_t _flag_a = 0, _flag_b = 0;
   4856     uint32_t _itail_tgt = 0;
   4857     RECOMP_REGS_LOCALS
   4858     RECOMP_ENTER(0x36099A30u);
   4859 
   4860 L_36099A30:
   4861     eax = MEM32(0x3616FD60); /* 0x36099A30: mov eax, dword ptr [0x3616fd60] */
   4862     MEM32(ecx) = eax; /* 0x36099A35: mov dword ptr [ecx], eax */
   4863     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36099A37: ret  */
   4864     RECOMP_REGS_OUT();
   4865 }
   4866 
   4867 void sub_36099A40(void) {
   4868     int _fpu_cmp = 0;
   4869     uint32_t _cf = 0;
   4870     int _df = 1;
   4871     uint32_t _flag_k = FK_NONE;
   4872     uint32_t _flag_a = 0, _flag_b = 0;
   4873     uint32_t _itail_tgt = 0;
   4874     RECOMP_REGS_LOCALS
   4875     RECOMP_ENTER(0x36099A40u);
   4876 
   4877 L_36099A40:
   4878     PUSH32(esp, ebp); /* 0x36099A40: push ebp */
   4879     ebp = esp; /* 0x36099A41: mov ebp, esp */
   4880     eax = MEM32(ebp + 0x8); /* 0x36099A43: mov eax, dword ptr [ebp + 8] */
   4881     eax = MEM32(eax + 0x60); /* 0x36099A46: mov eax, dword ptr [eax + 0x60] */
   4882     PUSH32(esp, esi); /* 0x36099A49: push esi */
   4883     PUSH32(esp, edi); /* 0x36099A4A: push edi */
   4884     PUSH32(esp, 0); /* 0x36099A4B: push 0 */
   4885     PUSH32(esp, 0x361C1990u); /* 0x36099A4D: push 0x361c1990 */
   4886     PUSH32(esp, 0x361C1978u); /* 0x36099A52: push 0x361c1978 */
   4887     PUSH32(esp, 0); /* 0x36099A57: push 0 */
   4888     PUSH32(esp, eax); /* 0x36099A59: push eax */
   4889     esi = ecx; /* 0x36099A5A: mov esi, ecx */
   4890     RECOMP_ICALL(0x3615FD86u); /* 0x36099A5C: call 0x3615fd86 */ /* not lifted */
   4891     RECOMP_FLAGS_IN();
   4892     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4893     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4894     esp = esp + 0x14u; /* 0x36099A61: add esp, 0x14 */
   4895     _flag_k = FK_ADD;
   4896     ecx = esi + (-0x8C); /* 0x36099A64: lea ecx, [esi - 0x8c] */
   4897     edi = eax; /* 0x36099A6A: mov edi, eax */
   4898     RECOMP_ICALL(0x36099EC0u); /* 0x36099A6C: call 0x36099ec0 */ /* not lifted */
   4899     RECOMP_FLAGS_IN();
   4900     PUSH32(esp, eax); /* 0x36099A71: push eax */
   4901     ecx = edi; /* 0x36099A72: mov ecx, edi */
   4902     RECOMP_ICALL(MEM32(0x3616FD70)); /* 0x36099A74: call dword ptr [0x3616fd70] */
   4903     RECOMP_FLAGS_IN();
   4904     edi = POP32_VAL(esp); /* 0x36099A7A: pop edi */
   4905     esi = POP32_VAL(esp); /* 0x36099A7B: pop esi */
   4906     ebp = POP32_VAL(esp); /* 0x36099A7C: pop ebp */
   4907     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36099A7D: ret 4 */
   4908     RECOMP_REGS_OUT();
   4909 }
   4910 
   4911 void sub_36099A80(void) {
   4912     int _fpu_cmp = 0;
   4913     uint32_t _cf = 0;
   4914     int _df = 1;
   4915     uint32_t _flag_k = FK_NONE;
   4916     uint32_t _flag_a = 0, _flag_b = 0;
   4917     uint32_t _itail_tgt = 0;
   4918     RECOMP_REGS_LOCALS
   4919     RECOMP_ENTER(0x36099A80u);
   4920 
   4921 L_36099A80:
   4922     PUSH32(esp, ebp); /* 0x36099A80: push ebp */
   4923     ebp = esp; /* 0x36099A81: mov ebp, esp */
   4924     PUSH32(esp, 0xFFFFFFFFu); /* 0x36099A83: push -1 */
   4925     PUSH32(esp, 0x361666EBu); /* 0x36099A85: push 0x361666eb */
   4926     eax = MEM32(FS_BASE + (0)); /* 0x36099A8A: mov eax, dword ptr fs:[0] */
   4927     PUSH32(esp, eax); /* 0x36099A90: push eax */
   4928     MEM32(FS_BASE + (0)) = esp; /* 0x36099A91: mov dword ptr fs:[0], esp */
   4929     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u);
   4930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4931     esp = esp - 0x38u; /* 0x36099A98: sub esp, 0x38 */
   4932     _flag_k = FK_CMP;
   4933     PUSH32(esp, ebx); /* 0x36099A9B: push ebx */
   4934     PUSH32(esp, esi); /* 0x36099A9C: push esi */
   4935     PUSH32(esp, edi); /* 0x36099A9D: push edi */
   4936     PUSH32(esp, 0x6Cu); /* 0x36099A9E: push 0x6c */
   4937     edi = ecx; /* 0x36099AA0: mov edi, ecx */
   4938     RECOMP_ICALL(0x3615FD6Au); /* 0x36099AA2: call 0x3615fd6a */ /* not lifted */
   4939     RECOMP_FLAGS_IN();
   4940     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4941     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4942     esp = esp + 4; /* 0x36099AA7: add esp, 4 */
   4943     _flag_k = FK_ADD;
   4944     MEM32(ebp + (-0x10)) = eax; /* 0x36099AAA: mov dword ptr [ebp - 0x10], eax */
   4945     /* test eax, eax */ /* 0x36099AAD: test eax, eax */
   4946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4947     _cf = 0;
   4948     _flag_k = FK_TEST;
   4949     esi = MEM32(ebp + 0x8); /* 0x36099AAF: mov esi, dword ptr [ebp + 8] */
   4950     MEM32(ebp + (-0x4)) = 0; /* 0x36099AB2: mov dword ptr [ebp - 4], 0 */
   4951     if (TEST_Z(_flag_a, _flag_b)) goto L_36099B02; /* 0x36099AB9: je 0x36099b02 */
   4952 L_36099ABB:
   4953     eax = ebp + (-0x34); /* 0x36099ABB: lea eax, [ebp - 0x34] */
   4954     ebx = edi + 0x8C; /* 0x36099ABE: lea ebx, [edi + 0x8c] */
   4955     PUSH32(esp, eax); /* 0x36099AC4: push eax */
   4956     ecx = ebx; /* 0x36099AC5: mov ecx, ebx */
   4957     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36099AC7: call dword ptr [0x36170048] */
   4958     RECOMP_FLAGS_IN();
   4959     ecx = ebx; /* 0x36099ACD: mov ecx, ebx */
   4960     ebx = MEM32(0x3616FFB0); /* 0x36099ACF: mov ebx, dword ptr [0x3616ffb0] */
   4961     PUSH32(esp, eax); /* 0x36099AD5: push eax */
   4962     RECOMP_ICALL(ebx); /* 0x36099AD6: call ebx */
   4963     RECOMP_FLAGS_IN();
   4964     PUSH32(esp, eax); /* 0x36099AD8: push eax */
   4965     ecx = ebp + (-0x44); /* 0x36099AD9: lea ecx, [ebp - 0x44] */
   4966     PUSH32(esp, ecx); /* 0x36099ADC: push ecx */
   4967     ecx = esi; /* 0x36099ADD: mov ecx, esi */
   4968     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36099ADF: call dword ptr [0x36170048] */
   4969     RECOMP_FLAGS_IN();
   4970     PUSH32(esp, eax); /* 0x36099AE5: push eax */
   4971     ecx = esi; /* 0x36099AE6: mov ecx, esi */
   4972     RECOMP_ICALL(ebx); /* 0x36099AE8: call ebx */
   4973     RECOMP_FLAGS_IN();
   4974     ecx = MEM32(ebp + (-0x10)); /* 0x36099AEA: mov ecx, dword ptr [ebp - 0x10] */
   4975     PUSH32(esp, eax); /* 0x36099AED: push eax */
   4976     PUSH32(esp, 1); /* 0x36099AEE: push 1 */
   4977     edx = edi + 0x90; /* 0x36099AF0: lea edx, [edi + 0x90] */
   4978     PUSH32(esp, edx); /* 0x36099AF6: push edx */
   4979     eax = esi + 0x4; /* 0x36099AF7: lea eax, [esi + 4] */
   4980     PUSH32(esp, eax); /* 0x36099AFA: push eax */
   4981     RECOMP_ICALL(0x36085160u); /* 0x36099AFB: call 0x36085160 */ /* not lifted */
   4982     RECOMP_FLAGS_IN();
   4983     goto L_36099B04; /* 0x36099B00: jmp 0x36099b04 */
   4984 L_36099B02:
   4985     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4986     eax = 0; /* 0x36099B02: xor eax, eax */
   4987     _cf = 0;
   4988     _flag_k = FK_TEST;
   4989 L_36099B04:
   4990     ecx = MEM32(0x3616FF74); /* 0x36099B04: mov ecx, dword ptr [0x3616ff74] */
   4991     ecx = MEM32(ecx); /* 0x36099B0A: mov ecx, dword ptr [ecx] */
   4992     edx = MEM32(ecx); /* 0x36099B0C: mov edx, dword ptr [ecx] */
   4993     PUSH32(esp, eax); /* 0x36099B0E: push eax */
   4994     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36099B0F: mov dword ptr [ebp - 4], 0xffffffff */
   4995     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x36099B16: call dword ptr [edx + 0x38] */
   4996     RECOMP_FLAGS_IN();
   4997     eax = esi + 0x4; /* 0x36099B19: lea eax, [esi + 4] */
   4998     ecx = ebp + (-0x24); /* 0x36099B1C: lea ecx, [ebp - 0x24] */
   4999     /* cmp ecx, eax */ /* 0x36099B1F: cmp ecx, eax */
   5000     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5002     _flag_k = FK_CMP;
   5003     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099B2E; /* 0x36099B21: je 0x36099b2e */
   5004 L_36099B23:
   5005     edx = MEM32(eax); /* 0x36099B23: mov edx, dword ptr [eax] */
   5006     eax = MEM32(eax + 0x4); /* 0x36099B25: mov eax, dword ptr [eax + 4] */
   5007     MEM32(ebp + (-0x24)) = edx; /* 0x36099B28: mov dword ptr [ebp - 0x24], edx */
   5008     MEM32(ebp + (-0x20)) = eax; /* 0x36099B2B: mov dword ptr [ebp - 0x20], eax */
   5009 L_36099B2E:
   5010     edi = MEM32(edi + 0x1E0); /* 0x36099B2E: mov edi, dword ptr [edi + 0x1e0] */
   5011     MEM32(ebp + (-0x1C)) = 0x3Cu; /* 0x36099B34: mov dword ptr [ebp - 0x1c], 0x3c */
   5012     ebx = MEM32(edi + 0x4); /* 0x36099B3B: mov ebx, dword ptr [edi + 4] */
   5013     esi = MEM32(ebx + 0x4); /* 0x36099B3E: mov esi, dword ptr [ebx + 4] */
   5014     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36099B41: cmp esi, dword ptr [edi + 8] */
   5015     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5017     _flag_k = FK_CMP;
   5018     SET_LO8(eax, 1); /* 0x36099B44: mov al, 1 */
   5019     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099B66; /* 0x36099B46: je 0x36099b66 */
   5020 L_36099B48:
   5021     ecx = esi + 0xC; /* 0x36099B48: lea ecx, [esi + 0xc] */
   5022     PUSH32(esp, ecx); /* 0x36099B4B: push ecx */
   5023     ecx = ebp + (-0x24); /* 0x36099B4C: lea ecx, [ebp - 0x24] */
   5024     ebx = esi; /* 0x36099B4F: mov ebx, esi */
   5025     RECOMP_ICALL(0x3603F770u); /* 0x36099B51: call 0x3603f770 */ /* not lifted */
   5026     RECOMP_FLAGS_IN();
   5027     /* test LO8(eax), LO8(eax) */ /* 0x36099B56: test al, al */
   5028     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5029     _cf = 0;
   5030     _flag_k = FK_NARROW(FK_TEST, 24);
   5031     if (TEST_Z(_flag_a, _flag_b)) goto L_36099B5E; /* 0x36099B58: je 0x36099b5e */
   5032 L_36099B5A:
   5033     esi = MEM32(esi); /* 0x36099B5A: mov esi, dword ptr [esi] */
   5034     goto L_36099B61; /* 0x36099B5C: jmp 0x36099b61 */
   5035 L_36099B5E:
   5036     esi = MEM32(esi + 0x8); /* 0x36099B5E: mov esi, dword ptr [esi + 8] */
   5037 L_36099B61:
   5038     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36099B61: cmp esi, dword ptr [edi + 8] */
   5039     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5041     _flag_k = FK_CMP;
   5042     RECOMP_BACKEDGE();
   5043     if (CMP_NE(_flag_a, _flag_b)) goto L_36099B48; /* 0x36099B64: jne 0x36099b48 */
   5044 L_36099B66:
   5045     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x36099B66: mov cl, byte ptr [edi + 0xc] */
   5046     /* test LO8(ecx), LO8(ecx) */ /* 0x36099B69: test cl, cl */
   5047     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5048     _cf = 0;
   5049     _flag_k = FK_NARROW(FK_TEST, 24);
   5050     if (TEST_Z(_flag_a, _flag_b)) goto L_36099B79; /* 0x36099B6B: je 0x36099b79 */
   5051 L_36099B6D:
   5052     edx = ebp + (-0x24); /* 0x36099B6D: lea edx, [ebp - 0x24] */
   5053     PUSH32(esp, edx); /* 0x36099B70: push edx */
   5054     PUSH32(esp, ebx); /* 0x36099B71: push ebx */
   5055     PUSH32(esp, esi); /* 0x36099B72: push esi */
   5056     eax = ebp + (-0x10); /* 0x36099B73: lea eax, [ebp - 0x10] */
   5057     PUSH32(esp, eax); /* 0x36099B76: push eax */
   5058     goto L_36099BB8; /* 0x36099B77: jmp 0x36099bb8 */
   5059 L_36099B79:
   5060     /* test LO8(eax), LO8(eax) */ /* 0x36099B79: test al, al */
   5061     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5062     _cf = 0;
   5063     _flag_k = FK_NARROW(FK_TEST, 24);
   5064     MEM32(ebp + 0x8) = ebx; /* 0x36099B7B: mov dword ptr [ebp + 8], ebx */
   5065     if (TEST_Z(_flag_a, _flag_b)) goto L_36099B9B; /* 0x36099B7E: je 0x36099b9b */
   5066 L_36099B80:
   5067     ecx = MEM32(edi + 0x4); /* 0x36099B80: mov ecx, dword ptr [edi + 4] */
   5068     /* cmp ebx, MEM32(ecx) */ /* 0x36099B83: cmp ebx, dword ptr [ecx] */
   5069     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ecx));
   5070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5071     _flag_k = FK_CMP;
   5072     if (CMP_NE(_flag_a, _flag_b)) goto L_36099B93; /* 0x36099B85: jne 0x36099b93 */
   5073 L_36099B87:
   5074     edx = ebp + (-0x24); /* 0x36099B87: lea edx, [ebp - 0x24] */
   5075     PUSH32(esp, edx); /* 0x36099B8A: push edx */
   5076     PUSH32(esp, ebx); /* 0x36099B8B: push ebx */
   5077     PUSH32(esp, esi); /* 0x36099B8C: push esi */
   5078     eax = ebp + (-0x14); /* 0x36099B8D: lea eax, [ebp - 0x14] */
   5079     PUSH32(esp, eax); /* 0x36099B90: push eax */
   5080     goto L_36099BB8; /* 0x36099B91: jmp 0x36099bb8 */
   5081 L_36099B93:
   5082     ecx = ebp + 0x8; /* 0x36099B93: lea ecx, [ebp + 8] */
   5083     RECOMP_ICALL(0x3603F800u); /* 0x36099B96: call 0x3603f800 */ /* not lifted */
   5084     RECOMP_FLAGS_IN();
   5085 L_36099B9B:
   5086     ecx = MEM32(ebp + 0x8); /* 0x36099B9B: mov ecx, dword ptr [ebp + 8] */
   5087     edx = ebp + (-0x24); /* 0x36099B9E: lea edx, [ebp - 0x24] */
   5088     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   5089     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5090     ecx = ecx + 0xCu; /* 0x36099BA1: add ecx, 0xc */
   5091     _flag_k = FK_ADD;
   5092     PUSH32(esp, edx); /* 0x36099BA4: push edx */
   5093     RECOMP_ICALL(0x3603F770u); /* 0x36099BA5: call 0x3603f770 */ /* not lifted */
   5094     RECOMP_FLAGS_IN();
   5095     /* test LO8(eax), LO8(eax) */ /* 0x36099BAA: test al, al */
   5096     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5097     _cf = 0;
   5098     _flag_k = FK_NARROW(FK_TEST, 24);
   5099     if (TEST_Z(_flag_a, _flag_b)) goto L_36099BBF; /* 0x36099BAC: je 0x36099bbf */
   5100 L_36099BAE:
   5101     eax = ebp + (-0x24); /* 0x36099BAE: lea eax, [ebp - 0x24] */
   5102     PUSH32(esp, eax); /* 0x36099BB1: push eax */
   5103     PUSH32(esp, ebx); /* 0x36099BB2: push ebx */
   5104     PUSH32(esp, esi); /* 0x36099BB3: push esi */
   5105     ecx = ebp + (-0x18); /* 0x36099BB4: lea ecx, [ebp - 0x18] */
   5106     PUSH32(esp, ecx); /* 0x36099BB7: push ecx */
   5107 L_36099BB8:
   5108     ecx = edi; /* 0x36099BB8: mov ecx, edi */
   5109     RECOMP_ICALL(0x360C5E30u); /* 0x36099BBA: call 0x360c5e30 */ /* not lifted */
   5110     RECOMP_FLAGS_IN();
   5111 L_36099BBF:
   5112     ecx = MEM32(ebp + (-0xC)); /* 0x36099BBF: mov ecx, dword ptr [ebp - 0xc] */
   5113     edi = POP32_VAL(esp); /* 0x36099BC2: pop edi */
   5114     esi = POP32_VAL(esp); /* 0x36099BC3: pop esi */
   5115     ebx = POP32_VAL(esp); /* 0x36099BC4: pop ebx */
   5116     MEM32(FS_BASE + (0)) = ecx; /* 0x36099BC5: mov dword ptr fs:[0], ecx */
   5117     esp = ebp; /* 0x36099BCC: mov esp, ebp */
   5118     ebp = POP32_VAL(esp); /* 0x36099BCE: pop ebp */
   5119     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36099BCF: ret 4 */
   5120     RECOMP_REGS_OUT();
   5121 }
   5122 
   5123 void sub_36099BE0(void) {
   5124     int _fpu_cmp = 0;
   5125     uint32_t _cf = 0;
   5126     int _df = 1;
   5127     uint32_t _flag_k = FK_NONE;
   5128     uint32_t _flag_a = 0, _flag_b = 0;
   5129     uint32_t _itail_tgt = 0;
   5130     RECOMP_REGS_LOCALS
   5131     RECOMP_ENTER(0x36099BE0u);
   5132 
   5133 L_36099BE0:
   5134     PUSH32(esp, ebp); /* 0x36099BE0: push ebp */
   5135     ebp = esp; /* 0x36099BE1: mov ebp, esp */
   5136     PUSH32(esp, 0xFFFFFFFFu); /* 0x36099BE3: push -1 */
   5137     PUSH32(esp, 0x3616670Bu); /* 0x36099BE5: push 0x3616670b */
   5138     eax = MEM32(FS_BASE + (0)); /* 0x36099BEA: mov eax, dword ptr fs:[0] */
   5139     PUSH32(esp, eax); /* 0x36099BF0: push eax */
   5140     MEM32(FS_BASE + (0)) = esp; /* 0x36099BF1: mov dword ptr fs:[0], esp */
   5141     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u);
   5142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5143     esp = esp - 0x38u; /* 0x36099BF8: sub esp, 0x38 */
   5144     _flag_k = FK_CMP;
   5145     PUSH32(esp, ebx); /* 0x36099BFB: push ebx */
   5146     PUSH32(esp, esi); /* 0x36099BFC: push esi */
   5147     PUSH32(esp, edi); /* 0x36099BFD: push edi */
   5148     PUSH32(esp, 0x6Cu); /* 0x36099BFE: push 0x6c */
   5149     ebx = ecx; /* 0x36099C00: mov ebx, ecx */
   5150     RECOMP_ICALL(0x3615FD6Au); /* 0x36099C02: call 0x3615fd6a */ /* not lifted */
   5151     RECOMP_FLAGS_IN();
   5152     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5153     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5154     esp = esp + 4; /* 0x36099C07: add esp, 4 */
   5155     _flag_k = FK_ADD;
   5156     MEM32(ebp + (-0x10)) = eax; /* 0x36099C0A: mov dword ptr [ebp - 0x10], eax */
   5157     /* test eax, eax */ /* 0x36099C0D: test eax, eax */
   5158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5159     _cf = 0;
   5160     _flag_k = FK_TEST;
   5161     esi = MEM32(ebp + 0x8); /* 0x36099C0F: mov esi, dword ptr [ebp + 8] */
   5162     MEM32(ebp + (-0x4)) = 0; /* 0x36099C12: mov dword ptr [ebp - 4], 0 */
   5163     if (TEST_Z(_flag_a, _flag_b)) goto L_36099C62; /* 0x36099C19: je 0x36099c62 */
   5164 L_36099C1B:
   5165     eax = ebp + (-0x34); /* 0x36099C1B: lea eax, [ebp - 0x34] */
   5166     edi = ebx + 0x8C; /* 0x36099C1E: lea edi, [ebx + 0x8c] */
   5167     PUSH32(esp, eax); /* 0x36099C24: push eax */
   5168     ecx = edi; /* 0x36099C25: mov ecx, edi */
   5169     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36099C27: call dword ptr [0x36170048] */
   5170     RECOMP_FLAGS_IN();
   5171     ecx = edi; /* 0x36099C2D: mov ecx, edi */
   5172     edi = MEM32(0x3616FFB0); /* 0x36099C2F: mov edi, dword ptr [0x3616ffb0] */
   5173     PUSH32(esp, eax); /* 0x36099C35: push eax */
   5174     RECOMP_ICALL(edi); /* 0x36099C36: call edi */
   5175     RECOMP_FLAGS_IN();
   5176     PUSH32(esp, eax); /* 0x36099C38: push eax */
   5177     ecx = ebp + (-0x44); /* 0x36099C39: lea ecx, [ebp - 0x44] */
   5178     PUSH32(esp, ecx); /* 0x36099C3C: push ecx */
   5179     ecx = esi; /* 0x36099C3D: mov ecx, esi */
   5180     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36099C3F: call dword ptr [0x36170048] */
   5181     RECOMP_FLAGS_IN();
   5182     PUSH32(esp, eax); /* 0x36099C45: push eax */
   5183     ecx = esi; /* 0x36099C46: mov ecx, esi */
   5184     RECOMP_ICALL(edi); /* 0x36099C48: call edi */
   5185     RECOMP_FLAGS_IN();
   5186     ecx = MEM32(ebp + (-0x10)); /* 0x36099C4A: mov ecx, dword ptr [ebp - 0x10] */
   5187     PUSH32(esp, eax); /* 0x36099C4D: push eax */
   5188     PUSH32(esp, 0); /* 0x36099C4E: push 0 */
   5189     edx = ebx + 0x90; /* 0x36099C50: lea edx, [ebx + 0x90] */
   5190     PUSH32(esp, edx); /* 0x36099C56: push edx */
   5191     eax = esi + 0x4; /* 0x36099C57: lea eax, [esi + 4] */
   5192     PUSH32(esp, eax); /* 0x36099C5A: push eax */
   5193     RECOMP_ICALL(0x36085160u); /* 0x36099C5B: call 0x36085160 */ /* not lifted */
   5194     RECOMP_FLAGS_IN();
   5195     goto L_36099C64; /* 0x36099C60: jmp 0x36099c64 */
   5196 L_36099C62:
   5197     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5198     eax = 0; /* 0x36099C62: xor eax, eax */
   5199     _cf = 0;
   5200     _flag_k = FK_TEST;
   5201 L_36099C64:
   5202     ecx = MEM32(0x3616FF74); /* 0x36099C64: mov ecx, dword ptr [0x3616ff74] */
   5203     ecx = MEM32(ecx); /* 0x36099C6A: mov ecx, dword ptr [ecx] */
   5204     edx = MEM32(ecx); /* 0x36099C6C: mov edx, dword ptr [ecx] */
   5205     PUSH32(esp, eax); /* 0x36099C6E: push eax */
   5206     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36099C6F: mov dword ptr [ebp - 4], 0xffffffff */
   5207     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x36099C76: call dword ptr [edx + 0x38] */
   5208     RECOMP_FLAGS_IN();
   5209     eax = esi + 0x4; /* 0x36099C79: lea eax, [esi + 4] */
   5210     ecx = ebp + (-0x24); /* 0x36099C7C: lea ecx, [ebp - 0x24] */
   5211     /* cmp ecx, eax */ /* 0x36099C7F: cmp ecx, eax */
   5212     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5214     _flag_k = FK_CMP;
   5215     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099C8E; /* 0x36099C81: je 0x36099c8e */
   5216 L_36099C83:
   5217     edx = MEM32(eax); /* 0x36099C83: mov edx, dword ptr [eax] */
   5218     eax = MEM32(eax + 0x4); /* 0x36099C85: mov eax, dword ptr [eax + 4] */
   5219     MEM32(ebp + (-0x24)) = edx; /* 0x36099C88: mov dword ptr [ebp - 0x24], edx */
   5220     MEM32(ebp + (-0x20)) = eax; /* 0x36099C8B: mov dword ptr [ebp - 0x20], eax */
   5221 L_36099C8E:
   5222     edi = MEM32(ebx + 0x1E0); /* 0x36099C8E: mov edi, dword ptr [ebx + 0x1e0] */
   5223     MEM32(ebp + (-0x1C)) = 0x3Cu; /* 0x36099C94: mov dword ptr [ebp - 0x1c], 0x3c */
   5224     ebx = MEM32(edi + 0x4); /* 0x36099C9B: mov ebx, dword ptr [edi + 4] */
   5225     esi = MEM32(ebx + 0x4); /* 0x36099C9E: mov esi, dword ptr [ebx + 4] */
   5226     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36099CA1: cmp esi, dword ptr [edi + 8] */
   5227     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5229     _flag_k = FK_CMP;
   5230     SET_LO8(eax, 1); /* 0x36099CA4: mov al, 1 */
   5231     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099CC6; /* 0x36099CA6: je 0x36099cc6 */
   5232 L_36099CA8:
   5233     ecx = esi + 0xC; /* 0x36099CA8: lea ecx, [esi + 0xc] */
   5234     PUSH32(esp, ecx); /* 0x36099CAB: push ecx */
   5235     ecx = ebp + (-0x24); /* 0x36099CAC: lea ecx, [ebp - 0x24] */
   5236     ebx = esi; /* 0x36099CAF: mov ebx, esi */
   5237     RECOMP_ICALL(0x3603F770u); /* 0x36099CB1: call 0x3603f770 */ /* not lifted */
   5238     RECOMP_FLAGS_IN();
   5239     /* test LO8(eax), LO8(eax) */ /* 0x36099CB6: test al, al */
   5240     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5241     _cf = 0;
   5242     _flag_k = FK_NARROW(FK_TEST, 24);
   5243     if (TEST_Z(_flag_a, _flag_b)) goto L_36099CBE; /* 0x36099CB8: je 0x36099cbe */
   5244 L_36099CBA:
   5245     esi = MEM32(esi); /* 0x36099CBA: mov esi, dword ptr [esi] */
   5246     goto L_36099CC1; /* 0x36099CBC: jmp 0x36099cc1 */
   5247 L_36099CBE:
   5248     esi = MEM32(esi + 0x8); /* 0x36099CBE: mov esi, dword ptr [esi + 8] */
   5249 L_36099CC1:
   5250     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36099CC1: cmp esi, dword ptr [edi + 8] */
   5251     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   5252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5253     _flag_k = FK_CMP;
   5254     RECOMP_BACKEDGE();
   5255     if (CMP_NE(_flag_a, _flag_b)) goto L_36099CA8; /* 0x36099CC4: jne 0x36099ca8 */
   5256 L_36099CC6:
   5257     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x36099CC6: mov cl, byte ptr [edi + 0xc] */
   5258     /* test LO8(ecx), LO8(ecx) */ /* 0x36099CC9: test cl, cl */
   5259     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5260     _cf = 0;
   5261     _flag_k = FK_NARROW(FK_TEST, 24);
   5262     if (TEST_Z(_flag_a, _flag_b)) goto L_36099CD9; /* 0x36099CCB: je 0x36099cd9 */
   5263 L_36099CCD:
   5264     edx = ebp + (-0x24); /* 0x36099CCD: lea edx, [ebp - 0x24] */
   5265     PUSH32(esp, edx); /* 0x36099CD0: push edx */
   5266     PUSH32(esp, ebx); /* 0x36099CD1: push ebx */
   5267     PUSH32(esp, esi); /* 0x36099CD2: push esi */
   5268     eax = ebp + (-0x10); /* 0x36099CD3: lea eax, [ebp - 0x10] */
   5269     PUSH32(esp, eax); /* 0x36099CD6: push eax */
   5270     goto L_36099D18; /* 0x36099CD7: jmp 0x36099d18 */
   5271 L_36099CD9:
   5272     /* test LO8(eax), LO8(eax) */ /* 0x36099CD9: test al, al */
   5273     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5274     _cf = 0;
   5275     _flag_k = FK_NARROW(FK_TEST, 24);
   5276     MEM32(ebp + 0x8) = ebx; /* 0x36099CDB: mov dword ptr [ebp + 8], ebx */
   5277     if (TEST_Z(_flag_a, _flag_b)) goto L_36099CFB; /* 0x36099CDE: je 0x36099cfb */
   5278 L_36099CE0:
   5279     ecx = MEM32(edi + 0x4); /* 0x36099CE0: mov ecx, dword ptr [edi + 4] */
   5280     /* cmp ebx, MEM32(ecx) */ /* 0x36099CE3: cmp ebx, dword ptr [ecx] */
   5281     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ecx));
   5282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5283     _flag_k = FK_CMP;
   5284     if (CMP_NE(_flag_a, _flag_b)) goto L_36099CF3; /* 0x36099CE5: jne 0x36099cf3 */
   5285 L_36099CE7:
   5286     edx = ebp + (-0x24); /* 0x36099CE7: lea edx, [ebp - 0x24] */
   5287     PUSH32(esp, edx); /* 0x36099CEA: push edx */
   5288     PUSH32(esp, ebx); /* 0x36099CEB: push ebx */
   5289     PUSH32(esp, esi); /* 0x36099CEC: push esi */
   5290     eax = ebp + (-0x14); /* 0x36099CED: lea eax, [ebp - 0x14] */
   5291     PUSH32(esp, eax); /* 0x36099CF0: push eax */
   5292     goto L_36099D18; /* 0x36099CF1: jmp 0x36099d18 */
   5293 L_36099CF3:
   5294     ecx = ebp + 0x8; /* 0x36099CF3: lea ecx, [ebp + 8] */
   5295     RECOMP_ICALL(0x3603F800u); /* 0x36099CF6: call 0x3603f800 */ /* not lifted */
   5296     RECOMP_FLAGS_IN();
   5297 L_36099CFB:
   5298     ecx = MEM32(ebp + 0x8); /* 0x36099CFB: mov ecx, dword ptr [ebp + 8] */
   5299     edx = ebp + (-0x24); /* 0x36099CFE: lea edx, [ebp - 0x24] */
   5300     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   5301     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5302     ecx = ecx + 0xCu; /* 0x36099D01: add ecx, 0xc */
   5303     _flag_k = FK_ADD;
   5304     PUSH32(esp, edx); /* 0x36099D04: push edx */
   5305     RECOMP_ICALL(0x3603F770u); /* 0x36099D05: call 0x3603f770 */ /* not lifted */
   5306     RECOMP_FLAGS_IN();
   5307     /* test LO8(eax), LO8(eax) */ /* 0x36099D0A: test al, al */
   5308     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5309     _cf = 0;
   5310     _flag_k = FK_NARROW(FK_TEST, 24);
   5311     if (TEST_Z(_flag_a, _flag_b)) goto L_36099D1F; /* 0x36099D0C: je 0x36099d1f */
   5312 L_36099D0E:
   5313     eax = ebp + (-0x24); /* 0x36099D0E: lea eax, [ebp - 0x24] */
   5314     PUSH32(esp, eax); /* 0x36099D11: push eax */
   5315     PUSH32(esp, ebx); /* 0x36099D12: push ebx */
   5316     PUSH32(esp, esi); /* 0x36099D13: push esi */
   5317     ecx = ebp + (-0x18); /* 0x36099D14: lea ecx, [ebp - 0x18] */
   5318     PUSH32(esp, ecx); /* 0x36099D17: push ecx */
   5319 L_36099D18:
   5320     ecx = edi; /* 0x36099D18: mov ecx, edi */
   5321     RECOMP_ICALL(0x360C5E30u); /* 0x36099D1A: call 0x360c5e30 */ /* not lifted */
   5322     RECOMP_FLAGS_IN();
   5323 L_36099D1F:
   5324     ecx = MEM32(ebp + (-0xC)); /* 0x36099D1F: mov ecx, dword ptr [ebp - 0xc] */
   5325     edi = POP32_VAL(esp); /* 0x36099D22: pop edi */
   5326     esi = POP32_VAL(esp); /* 0x36099D23: pop esi */
   5327     ebx = POP32_VAL(esp); /* 0x36099D24: pop ebx */
   5328     MEM32(FS_BASE + (0)) = ecx; /* 0x36099D25: mov dword ptr fs:[0], ecx */
   5329     esp = ebp; /* 0x36099D2C: mov esp, ebp */
   5330     ebp = POP32_VAL(esp); /* 0x36099D2E: pop ebp */
   5331     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36099D2F: ret 4 */
   5332     RECOMP_REGS_OUT();
   5333 }
   5334 
   5335 void sub_36099D40(void) {
   5336     int _fpu_cmp = 0;
   5337     uint32_t _cf = 0;
   5338     int _df = 1;
   5339     uint32_t _flag_k = FK_NONE;
   5340     uint32_t _flag_a = 0, _flag_b = 0;
   5341     uint32_t _itail_tgt = 0;
   5342     RECOMP_REGS_LOCALS
   5343     RECOMP_ENTER(0x36099D40u);
   5344 
   5345 L_36099D40:
   5346     PUSH32(esp, ebp); /* 0x36099D40: push ebp */
   5347     ebp = esp; /* 0x36099D41: mov ebp, esp */
   5348     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   5349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5350     esp = esp - 0x3Cu; /* 0x36099D43: sub esp, 0x3c */
   5351     _flag_k = FK_CMP;
   5352     PUSH32(esp, ebx); /* 0x36099D46: push ebx */
   5353     PUSH32(esp, esi); /* 0x36099D47: push esi */
   5354     esi = MEM32(ebp + 0x8); /* 0x36099D48: mov esi, dword ptr [ebp + 8] */
   5355     eax = MEM32(esi + 0x60); /* 0x36099D4B: mov eax, dword ptr [esi + 0x60] */
   5356     PUSH32(esp, edi); /* 0x36099D4E: push edi */
   5357     PUSH32(esp, 0); /* 0x36099D4F: push 0 */
   5358     PUSH32(esp, 0x361C1990u); /* 0x36099D51: push 0x361c1990 */
   5359     PUSH32(esp, 0x361C1978u); /* 0x36099D56: push 0x361c1978 */
   5360     PUSH32(esp, 0); /* 0x36099D5B: push 0 */
   5361     PUSH32(esp, eax); /* 0x36099D5D: push eax */
   5362     edi = ecx; /* 0x36099D5E: mov edi, ecx */
   5363     RECOMP_ICALL(0x3615FD86u); /* 0x36099D60: call 0x3615fd86 */ /* not lifted */
   5364     RECOMP_FLAGS_IN();
   5365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5367     esp = esp + 0x14u; /* 0x36099D65: add esp, 0x14 */
   5368     _flag_k = FK_ADD;
   5369     ecx = edi; /* 0x36099D68: mov ecx, edi */
   5370     ebx = eax; /* 0x36099D6A: mov ebx, eax */
   5371     RECOMP_ICALL(0x36099EC0u); /* 0x36099D6C: call 0x36099ec0 */ /* not lifted */
   5372     RECOMP_FLAGS_IN();
   5373     PUSH32(esp, eax); /* 0x36099D71: push eax */
   5374     ecx = ebx; /* 0x36099D72: mov ecx, ebx */
   5375     RECOMP_ICALL(MEM32(0x3616FD70)); /* 0x36099D74: call dword ptr [0x3616fd70] */
   5376     RECOMP_FLAGS_IN();
   5377     eax = ebp + (-0x3C); /* 0x36099D7A: lea eax, [ebp - 0x3c] */
   5378     PUSH32(esp, eax); /* 0x36099D7D: push eax */
   5379     ecx = esi; /* 0x36099D7E: mov ecx, esi */
   5380     MEM32(ebp + (-0xC)) = 0; /* 0x36099D80: mov dword ptr [ebp - 0xc], 0 */
   5381     MEM32(ebp + (-0x8)) = 0; /* 0x36099D87: mov dword ptr [ebp - 8], 0 */
   5382     MEM32(ebp + (-0x4)) = 0; /* 0x36099D8E: mov dword ptr [ebp - 4], 0 */
   5383     MEM32(ebp + (-0x1C)) = 0; /* 0x36099D95: mov dword ptr [ebp - 0x1c], 0 */
   5384     MEM32(ebp + (-0x18)) = 0; /* 0x36099D9C: mov dword ptr [ebp - 0x18], 0 */
   5385     MEM32(ebp + (-0x14)) = 0; /* 0x36099DA3: mov dword ptr [ebp - 0x14], 0 */
   5386     MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x36099DAA: mov dword ptr [ebp - 0x10], 0x3f800000 */
   5387     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36099DB1: call dword ptr [0x36170048] */
   5388     RECOMP_FLAGS_IN();
   5389     ecx = MEM32(eax); /* 0x36099DB7: mov ecx, dword ptr [eax] */
   5390     MEM32(ebp + (-0x2C)) = ecx; /* 0x36099DB9: mov dword ptr [ebp - 0x2c], ecx */
   5391     edx = MEM32(eax + 0x4); /* 0x36099DBC: mov edx, dword ptr [eax + 4] */
   5392     MEM32(ebp + (-0x28)) = edx; /* 0x36099DBF: mov dword ptr [ebp - 0x28], edx */
   5393     ecx = MEM32(eax + 0x8); /* 0x36099DC2: mov ecx, dword ptr [eax + 8] */
   5394     MEM32(ebp + (-0x24)) = ecx; /* 0x36099DC5: mov dword ptr [ebp - 0x24], ecx */
   5395     edx = MEM32(eax + 0xC); /* 0x36099DC8: mov edx, dword ptr [eax + 0xc] */
   5396     eax = MEM32(ebp + 0x10); /* 0x36099DCB: mov eax, dword ptr [ebp + 0x10] */
   5397     ecx = MEM32(ebp + 0xC); /* 0x36099DCE: mov ecx, dword ptr [ebp + 0xc] */
   5398     PUSH32(esp, eax); /* 0x36099DD1: push eax */
   5399     PUSH32(esp, ecx); /* 0x36099DD2: push ecx */
   5400     MEM32(ebp + (-0x20)) = edx; /* 0x36099DD3: mov dword ptr [ebp - 0x20], edx */
   5401     edx = ebp + (-0x1C); /* 0x36099DD6: lea edx, [ebp - 0x1c] */
   5402     PUSH32(esp, edx); /* 0x36099DD9: push edx */
   5403     eax = ebp + (-0xC); /* 0x36099DDA: lea eax, [ebp - 0xc] */
   5404     PUSH32(esp, eax); /* 0x36099DDD: push eax */
   5405     ecx = ebp + (-0x2C); /* 0x36099DDE: lea ecx, [ebp - 0x2c] */
   5406     PUSH32(esp, ecx); /* 0x36099DE1: push ecx */
   5407     ecx = esi; /* 0x36099DE2: mov ecx, esi */
   5408     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x8Cu);
   5409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5410     edi = edi + 0x8Cu; /* 0x36099DE4: add edi, 0x8c */
   5411     _flag_k = FK_ADD;
   5412     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36099DEA: call dword ptr [0x3616ffb0] */
   5413     RECOMP_FLAGS_IN();
   5414     PUSH32(esp, eax); /* 0x36099DF0: push eax */
   5415     ecx = edi; /* 0x36099DF1: mov ecx, edi */
   5416     RECOMP_ICALL(MEM32(0x3616FF54)); /* 0x36099DF3: call dword ptr [0x3616ff54] */
   5417     RECOMP_FLAGS_IN();
   5418     edx = MEM32(edi); /* 0x36099DF9: mov edx, dword ptr [edi] */
   5419     eax = ebp + (-0x1C); /* 0x36099DFB: lea eax, [ebp - 0x1c] */
   5420     PUSH32(esp, eax); /* 0x36099DFE: push eax */
   5421     ecx = ebp + (-0xC); /* 0x36099DFF: lea ecx, [ebp - 0xc] */
   5422     PUSH32(esp, ecx); /* 0x36099E02: push ecx */
   5423     PUSH32(esp, esi); /* 0x36099E03: push esi */
   5424     ecx = edi; /* 0x36099E04: mov ecx, edi */
   5425     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x36099E06: call dword ptr [edx + 0x20] */
   5426     RECOMP_FLAGS_IN();
   5427     edi = POP32_VAL(esp); /* 0x36099E09: pop edi */
   5428     esi = POP32_VAL(esp); /* 0x36099E0A: pop esi */
   5429     ebx = POP32_VAL(esp); /* 0x36099E0B: pop ebx */
   5430     esp = ebp; /* 0x36099E0C: mov esp, ebp */
   5431     ebp = POP32_VAL(esp); /* 0x36099E0E: pop ebp */
   5432     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36099E0F: ret 0xc */
   5433     RECOMP_REGS_OUT();
   5434 }
   5435 
   5436 void sub_36099DA3(void) {
   5437     int _fpu_cmp = 0;
   5438     uint32_t _cf = 0;
   5439     int _df = 1;
   5440     uint32_t _flag_k = FK_NONE;
   5441     uint32_t _flag_a = 0, _flag_b = 0;
   5442     uint32_t _itail_tgt = 0;
   5443     RECOMP_REGS_LOCALS
   5444     RECOMP_ENTER(0x36099DA3u);
   5445 
   5446 L_36099DA3:
   5447     MEM32(ebp + (-0x14)) = 0; /* 0x36099DA3: mov dword ptr [ebp - 0x14], 0 */
   5448     MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x36099DAA: mov dword ptr [ebp - 0x10], 0x3f800000 */
   5449     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36099DB1: call dword ptr [0x36170048] */
   5450     RECOMP_FLAGS_IN();
   5451     ecx = MEM32(eax); /* 0x36099DB7: mov ecx, dword ptr [eax] */
   5452     MEM32(ebp + (-0x2C)) = ecx; /* 0x36099DB9: mov dword ptr [ebp - 0x2c], ecx */
   5453     edx = MEM32(eax + 0x4); /* 0x36099DBC: mov edx, dword ptr [eax + 4] */
   5454     MEM32(ebp + (-0x28)) = edx; /* 0x36099DBF: mov dword ptr [ebp - 0x28], edx */
   5455     ecx = MEM32(eax + 0x8); /* 0x36099DC2: mov ecx, dword ptr [eax + 8] */
   5456     MEM32(ebp + (-0x24)) = ecx; /* 0x36099DC5: mov dword ptr [ebp - 0x24], ecx */
   5457     edx = MEM32(eax + 0xC); /* 0x36099DC8: mov edx, dword ptr [eax + 0xc] */
   5458     eax = MEM32(ebp + 0x10); /* 0x36099DCB: mov eax, dword ptr [ebp + 0x10] */
   5459     ecx = MEM32(ebp + 0xC); /* 0x36099DCE: mov ecx, dword ptr [ebp + 0xc] */
   5460     PUSH32(esp, eax); /* 0x36099DD1: push eax */
   5461     PUSH32(esp, ecx); /* 0x36099DD2: push ecx */
   5462     MEM32(ebp + (-0x20)) = edx; /* 0x36099DD3: mov dword ptr [ebp - 0x20], edx */
   5463     edx = ebp + (-0x1C); /* 0x36099DD6: lea edx, [ebp - 0x1c] */
   5464     PUSH32(esp, edx); /* 0x36099DD9: push edx */
   5465     eax = ebp + (-0xC); /* 0x36099DDA: lea eax, [ebp - 0xc] */
   5466     PUSH32(esp, eax); /* 0x36099DDD: push eax */
   5467     ecx = ebp + (-0x2C); /* 0x36099DDE: lea ecx, [ebp - 0x2c] */
   5468     PUSH32(esp, ecx); /* 0x36099DE1: push ecx */
   5469     ecx = esi; /* 0x36099DE2: mov ecx, esi */
   5470     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x8Cu);
   5471     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5472     edi = edi + 0x8Cu; /* 0x36099DE4: add edi, 0x8c */
   5473     _flag_k = FK_ADD;
   5474     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36099DEA: call dword ptr [0x3616ffb0] */
   5475     RECOMP_FLAGS_IN();
   5476     PUSH32(esp, eax); /* 0x36099DF0: push eax */
   5477     ecx = edi; /* 0x36099DF1: mov ecx, edi */
   5478     RECOMP_ICALL(MEM32(0x3616FF54)); /* 0x36099DF3: call dword ptr [0x3616ff54] */
   5479     RECOMP_FLAGS_IN();
   5480     edx = MEM32(edi); /* 0x36099DF9: mov edx, dword ptr [edi] */
   5481     eax = ebp + (-0x1C); /* 0x36099DFB: lea eax, [ebp - 0x1c] */
   5482     PUSH32(esp, eax); /* 0x36099DFE: push eax */
   5483     ecx = ebp + (-0xC); /* 0x36099DFF: lea ecx, [ebp - 0xc] */
   5484     PUSH32(esp, ecx); /* 0x36099E02: push ecx */
   5485     PUSH32(esp, esi); /* 0x36099E03: push esi */
   5486     ecx = edi; /* 0x36099E04: mov ecx, edi */
   5487     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x36099E06: call dword ptr [edx + 0x20] */
   5488     RECOMP_FLAGS_IN();
   5489     edi = POP32_VAL(esp); /* 0x36099E09: pop edi */
   5490     esi = POP32_VAL(esp); /* 0x36099E0A: pop esi */
   5491     ebx = POP32_VAL(esp); /* 0x36099E0B: pop ebx */
   5492     esp = ebp; /* 0x36099E0C: mov esp, ebp */
   5493     ebp = POP32_VAL(esp); /* 0x36099E0E: pop ebp */
   5494     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36099E0F: ret 0xc */
   5495     RECOMP_REGS_OUT();
   5496 }
   5497 
   5498 void sub_36099E20(void) {
   5499     int _fpu_cmp = 0;
   5500     uint32_t _cf = 0;
   5501     int _df = 1;
   5502     uint32_t _flag_k = FK_NONE;
   5503     uint32_t _flag_a = 0, _flag_b = 0;
   5504     uint32_t _itail_tgt = 0;
   5505     RECOMP_REGS_LOCALS
   5506     RECOMP_ENTER(0x36099E20u);
   5507 
   5508 L_36099E20:
   5509     PUSH32(esp, ebp); /* 0x36099E20: push ebp */
   5510     ebp = esp; /* 0x36099E21: mov ebp, esp */
   5511     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   5512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5513     esp = esp - 0x1Cu; /* 0x36099E23: sub esp, 0x1c */
   5514     _flag_k = FK_CMP;
   5515     eax = MEM32(ebp + 0xC); /* 0x36099E26: mov eax, dword ptr [ebp + 0xc] */
   5516     PUSH32(esp, ebx); /* 0x36099E29: push ebx */
   5517     PUSH32(esp, esi); /* 0x36099E2A: push esi */
   5518     esi = MEM32(ebp + 0x8); /* 0x36099E2B: mov esi, dword ptr [ebp + 8] */
   5519     PUSH32(esp, edi); /* 0x36099E2E: push edi */
   5520     edi = ecx; /* 0x36099E2F: mov edi, ecx */
   5521     ecx = MEM32(eax); /* 0x36099E31: mov ecx, dword ptr [eax] */
   5522     edx = MEM32(eax + 0x4); /* 0x36099E33: mov edx, dword ptr [eax + 4] */
   5523     eax = MEM32(eax + 0x8); /* 0x36099E36: mov eax, dword ptr [eax + 8] */
   5524     PUSH32(esp, 0); /* 0x36099E39: push 0 */
   5525     PUSH32(esp, 0x361C1990u); /* 0x36099E3B: push 0x361c1990 */
   5526     PUSH32(esp, 0x361C1978u); /* 0x36099E40: push 0x361c1978 */
   5527     MEM32(ebp + (-0x4)) = eax; /* 0x36099E45: mov dword ptr [ebp - 4], eax */
   5528     eax = MEM32(esi + 0x60); /* 0x36099E48: mov eax, dword ptr [esi + 0x60] */
   5529     PUSH32(esp, 0); /* 0x36099E4B: push 0 */
   5530     PUSH32(esp, eax); /* 0x36099E4D: push eax */
   5531     MEM32(ebp + (-0xC)) = ecx; /* 0x36099E4E: mov dword ptr [ebp - 0xc], ecx */
   5532     MEM32(ebp + (-0x8)) = edx; /* 0x36099E51: mov dword ptr [ebp - 8], edx */
   5533     RECOMP_ICALL(0x3615FD86u); /* 0x36099E54: call 0x3615fd86 */ /* not lifted */
   5534     RECOMP_FLAGS_IN();
   5535     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x8Cu);
   5536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5537     edi = edi + 0x8Cu; /* 0x36099E59: add edi, 0x8c */
   5538     _flag_k = FK_ADD;
   5539     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5540     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5541     esp = esp + 0x14u; /* 0x36099E5F: add esp, 0x14 */
   5542     _flag_k = FK_ADD;
   5543     ecx = edi; /* 0x36099E62: mov ecx, edi */
   5544     ebx = eax; /* 0x36099E64: mov ebx, eax */
   5545     RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x36099E66: call dword ptr [0x3616ffac] */
   5546     RECOMP_FLAGS_IN();
   5547     ecx = eax; /* 0x36099E6C: mov ecx, eax */
   5548     RECOMP_ICALL(MEM32(0x361700C0)); /* 0x36099E6E: call dword ptr [0x361700c0] */
   5549     RECOMP_FLAGS_IN();
   5550     PUSH32(esp, eax); /* 0x36099E74: push eax */
   5551     ecx = ebx; /* 0x36099E75: mov ecx, ebx */
   5552     RECOMP_ICALL(MEM32(0x3616FD70)); /* 0x36099E77: call dword ptr [0x3616fd70] */
   5553     RECOMP_FLAGS_IN();
   5554     ecx = esi; /* 0x36099E7D: mov ecx, esi */
   5555     RECOMP_ICALL(MEM32(0x36170050)); /* 0x36099E7F: call dword ptr [0x36170050] */
   5556     RECOMP_FLAGS_IN();
   5557     /* test eax, eax */ /* 0x36099E85: test eax, eax */
   5558     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5559     _cf = 0;
   5560     _flag_k = FK_TEST;
   5561     if (TEST_Z(_flag_a, _flag_b)) goto L_36099EAC; /* 0x36099E87: je 0x36099eac */
   5562 L_36099E89:
   5563     ecx = edi; /* 0x36099E89: mov ecx, edi */
   5564     RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x36099E8B: call dword ptr [0x3616ffac] */
   5565     RECOMP_FLAGS_IN();
   5566     ecx = ebp + (-0x1C); /* 0x36099E91: lea ecx, [ebp - 0x1c] */
   5567     edi = eax; /* 0x36099E94: mov edi, eax */
   5568     ebx = MEM32(edi); /* 0x36099E96: mov ebx, dword ptr [edi] */
   5569     PUSH32(esp, ecx); /* 0x36099E98: push ecx */
   5570     ecx = esi; /* 0x36099E99: mov ecx, esi */
   5571     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36099E9B: call dword ptr [0x36170048] */
   5572     RECOMP_FLAGS_IN();
   5573     PUSH32(esp, eax); /* 0x36099EA1: push eax */
   5574     edx = ebp + (-0xC); /* 0x36099EA2: lea edx, [ebp - 0xc] */
   5575     PUSH32(esp, edx); /* 0x36099EA5: push edx */
   5576     PUSH32(esp, esi); /* 0x36099EA6: push esi */
   5577     ecx = edi; /* 0x36099EA7: mov ecx, edi */
   5578     RECOMP_ICALL(MEM32(ebx + 0x20)); /* 0x36099EA9: call dword ptr [ebx + 0x20] */
   5579     RECOMP_FLAGS_IN();
   5580 L_36099EAC:
   5581     edi = POP32_VAL(esp); /* 0x36099EAC: pop edi */
   5582     esi = POP32_VAL(esp); /* 0x36099EAD: pop esi */
   5583     ebx = POP32_VAL(esp); /* 0x36099EAE: pop ebx */
   5584     esp = ebp; /* 0x36099EAF: mov esp, ebp */
   5585     ebp = POP32_VAL(esp); /* 0x36099EB1: pop ebp */
   5586     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36099EB2: ret 0xc */
   5587     RECOMP_REGS_OUT();
   5588 }
   5589 
   5590 void sub_36099EC0(void) {
   5591     int _fpu_cmp = 0;
   5592     uint32_t _cf = 0;
   5593     int _df = 1;
   5594     uint32_t _flag_k = FK_NONE;
   5595     uint32_t _flag_a = 0, _flag_b = 0;
   5596     uint32_t _itail_tgt = 0;
   5597     RECOMP_REGS_LOCALS
   5598     RECOMP_ENTER(0x36099EC0u);
   5599 
   5600 L_36099EC0:
   5601     PUSH32(esp, ebp); /* 0x36099EC0: push ebp */
   5602     ebp = esp; /* 0x36099EC1: mov ebp, esp */
   5603     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5605     esp = esp - 8; /* 0x36099EC3: sub esp, 8 */
   5606     _flag_k = FK_CMP;
   5607     PUSH32(esp, esi); /* 0x36099EC6: push esi */
   5608     esi = ecx; /* 0x36099EC7: mov esi, ecx */
   5609     eax = MEM32(esi + 0x1DC); /* 0x36099EC9: mov eax, dword ptr [esi + 0x1dc] */
   5610     /* test eax, eax */ /* 0x36099ECF: test eax, eax */
   5611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5612     _cf = 0;
   5613     _flag_k = FK_TEST;
   5614     if (TEST_NZ(_flag_a, _flag_b)) goto L_36099F1A; /* 0x36099ED1: jne 0x36099f1a */
   5615 L_36099ED3:
   5616     eax = MEM32(esi + 0x1D0); /* 0x36099ED3: mov eax, dword ptr [esi + 0x1d0] */
   5617     /* test eax, eax */ /* 0x36099ED9: test eax, eax */
   5618     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5619     _cf = 0;
   5620     _flag_k = FK_TEST;
   5621     if (TEST_Z(_flag_a, _flag_b)) goto L_36099F14; /* 0x36099EDB: je 0x36099f14 */
   5622 L_36099EDD:
   5623     MEM32(ebp + (-0x4)) = eax; /* 0x36099EDD: mov dword ptr [ebp - 4], eax */
   5624     eax = MEM32(0x3616FF74); /* 0x36099EE0: mov eax, dword ptr [0x3616ff74] */
   5625     MEM32(ebp + (-0x8)) = 0x000F425Cu; /* 0x36099EE5: mov dword ptr [ebp - 8], 0xf425c */
   5626     ecx = MEM32(eax); /* 0x36099EEC: mov ecx, dword ptr [eax] */
   5627     ecx = MEM32(ecx + 0x60); /* 0x36099EEE: mov ecx, dword ptr [ecx + 0x60] */
   5628     edx = MEM32(ecx); /* 0x36099EF1: mov edx, dword ptr [ecx] */
   5629     eax = ebp + (-0x8); /* 0x36099EF3: lea eax, [ebp - 8] */
   5630     PUSH32(esp, eax); /* 0x36099EF6: push eax */
   5631     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36099EF7: call dword ptr [edx + 8] */
   5632     RECOMP_FLAGS_IN();
   5633     /* test eax, eax */ /* 0x36099EFA: test eax, eax */
   5634     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5635     _cf = 0;
   5636     _flag_k = FK_TEST;
   5637     if (TEST_Z(_flag_a, _flag_b)) goto L_36099F0C; /* 0x36099EFC: je 0x36099f0c */
   5638 L_36099EFE:
   5639     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   5640     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5641     eax = eax + 0x18u; /* 0x36099EFE: add eax, 0x18 */
   5642     _flag_k = FK_ADD;
   5643     MEM32(esi + 0x1DC) = eax; /* 0x36099F01: mov dword ptr [esi + 0x1dc], eax */
   5644     esi = POP32_VAL(esp); /* 0x36099F07: pop esi */
   5645     esp = ebp; /* 0x36099F08: mov esp, ebp */
   5646     ebp = POP32_VAL(esp); /* 0x36099F0A: pop ebp */
   5647     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36099F0B: ret  */
   5648 L_36099F0C:
   5649     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5650     eax = 0; /* 0x36099F0C: xor eax, eax */
   5651     _cf = 0;
   5652     _flag_k = FK_TEST;
   5653     MEM32(esi + 0x1DC) = eax; /* 0x36099F0E: mov dword ptr [esi + 0x1dc], eax */
   5654 L_36099F14:
   5655     eax = MEM32(esi + 0x1DC); /* 0x36099F14: mov eax, dword ptr [esi + 0x1dc] */
   5656 L_36099F1A:
   5657     esi = POP32_VAL(esp); /* 0x36099F1A: pop esi */
   5658     esp = ebp; /* 0x36099F1B: mov esp, ebp */
   5659     ebp = POP32_VAL(esp); /* 0x36099F1D: pop ebp */
   5660     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36099F1E: ret  */
   5661     RECOMP_REGS_OUT();
   5662 }
   5663 
   5664 void sub_36099F20(void) {
   5665     int _fpu_cmp = 0;
   5666     uint32_t _cf = 0;
   5667     int _df = 1;
   5668     uint32_t _flag_k = FK_NONE;
   5669     uint32_t _flag_a = 0, _flag_b = 0;
   5670     uint32_t _itail_tgt = 0;
   5671     RECOMP_REGS_LOCALS
   5672     RECOMP_ENTER(0x36099F20u);
   5673 
   5674 L_36099F20:
   5675     PUSH32(esp, ebp); /* 0x36099F20: push ebp */
   5676     ebp = esp; /* 0x36099F21: mov ebp, esp */
   5677     PUSH32(esp, 0xFFFFFFFFu); /* 0x36099F23: push -1 */
   5678     PUSH32(esp, 0x36166729u); /* 0x36099F25: push 0x36166729 */
   5679     eax = MEM32(FS_BASE + (0)); /* 0x36099F2A: mov eax, dword ptr fs:[0] */
   5680     PUSH32(esp, eax); /* 0x36099F30: push eax */
   5681     MEM32(FS_BASE + (0)) = esp; /* 0x36099F31: mov dword ptr fs:[0], esp */
   5682     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5684     esp = esp - 0x14u; /* 0x36099F38: sub esp, 0x14 */
   5685     _flag_k = FK_CMP;
   5686     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36099F3B: mov al, byte ptr [ebp + 0xb] */
   5687     PUSH32(esp, ebx); /* 0x36099F3E: push ebx */
   5688     PUSH32(esp, esi); /* 0x36099F3F: push esi */
   5689     MEM32(ebp + (-0x10)) = ecx; /* 0x36099F40: mov dword ptr [ebp - 0x10], ecx */
   5690     PUSH32(esp, edi); /* 0x36099F43: push edi */
   5691     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5692     ecx = ecx | 0xFFFFFFFFu; /* 0x36099F44: or ecx, 0xffffffff */
   5693     _cf = 0;
   5694     _flag_k = FK_TEST;
   5695     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5696     esi = 0; /* 0x36099F47: xor esi, esi */
   5697     _cf = 0;
   5698     _flag_k = FK_TEST;
   5699     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36099F49: mov byte ptr [ebp - 0x20], al */
   5700     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5701     eax = 0; /* 0x36099F4C: xor eax, eax */
   5702     _cf = 0;
   5703     _flag_k = FK_TEST;
   5704     edi = 0x361C5638u; /* 0x36099F4E: mov edi, 0x361c5638 */
   5705     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; } /* 0x36099F53: repne scasb al, byte ptr es:[edi] */
   5706     ecx = ~ecx; /* 0x36099F55: not ecx */
   5707     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5708     ecx = ecx - 1; /* 0x36099F57: dec ecx */
   5709     _flag_k = FK_DEC;
   5710     ebx = ecx; /* 0x36099F58: mov ebx, ecx */
   5711     PUSH32(esp, 1); /* 0x36099F5A: push 1 */
   5712     PUSH32(esp, ebx); /* 0x36099F5C: push ebx */
   5713     ecx = ebp + (-0x20); /* 0x36099F5D: lea ecx, [ebp - 0x20] */
   5714     MEM32(ebp + (-0x1C)) = esi; /* 0x36099F60: mov dword ptr [ebp - 0x1c], esi */
   5715     MEM32(ebp + (-0x18)) = esi; /* 0x36099F63: mov dword ptr [ebp - 0x18], esi */
   5716     MEM32(ebp + (-0x14)) = esi; /* 0x36099F66: mov dword ptr [ebp - 0x14], esi */
   5717     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36099F69: call dword ptr [0x3616f00c] */
   5718     RECOMP_FLAGS_IN();
   5719     /* test LO8(eax), LO8(eax) */ /* 0x36099F6F: test al, al */
   5720     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5721     _cf = 0;
   5722     _flag_k = FK_NARROW(FK_TEST, 24);
   5723     if (TEST_Z(_flag_a, _flag_b)) goto L_36099F97; /* 0x36099F71: je 0x36099f97 */
   5724 L_36099F73:
   5725     edi = MEM32(ebp + (-0x1C)); /* 0x36099F73: mov edi, dword ptr [ebp - 0x1c] */
   5726     ecx = ebx; /* 0x36099F76: mov ecx, ebx */
   5727     edx = ecx; /* 0x36099F78: mov edx, ecx */
   5728     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36099F7A: shr ecx, 2 */
   5729     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5730     ecx = ecx >> 2u; /* 0x36099F7A: shr ecx, 2 */
   5731     esi = 0x361C5638u; /* 0x36099F7D: mov esi, 0x361c5638 */
   5732     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36099F82: 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; }
   5733     ecx = edx; /* 0x36099F84: mov ecx, edx */
   5734     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5735     ecx = ecx & 3; /* 0x36099F86: and ecx, 3 */
   5736     _cf = 0;
   5737     _flag_k = FK_TEST;
   5738     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36099F89: 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; }
   5739     eax = MEM32(ebp + (-0x1C)); /* 0x36099F8B: mov eax, dword ptr [ebp - 0x1c] */
   5740     MEM32(ebp + (-0x18)) = ebx; /* 0x36099F8E: mov dword ptr [ebp - 0x18], ebx */
   5741     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36099F91: mov byte ptr [eax + ebx], 0 */
   5742     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5743     esi = 0; /* 0x36099F95: xor esi, esi */
   5744     _cf = 0;
   5745     _flag_k = FK_TEST;
   5746 L_36099F97:
   5747     edi = MEM32(ebp + 0x8); /* 0x36099F97: mov edi, dword ptr [ebp + 8] */
   5748     edx = MEM32(edi); /* 0x36099F9A: mov edx, dword ptr [edi] */
   5749     eax = ebp + (-0x20); /* 0x36099F9C: lea eax, [ebp - 0x20] */
   5750     PUSH32(esp, eax); /* 0x36099F9F: push eax */
   5751     ecx = edi; /* 0x36099FA0: mov ecx, edi */
   5752     MEM32(ebp + (-0x4)) = esi; /* 0x36099FA2: mov dword ptr [ebp - 4], esi */
   5753     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36099FA5: call dword ptr [edx + 8] */
   5754     RECOMP_FLAGS_IN();
   5755     eax = MEM32(ebp + (-0x1C)); /* 0x36099FA8: mov eax, dword ptr [ebp - 0x1c] */
   5756     /* cmp eax, esi */ /* 0x36099FAB: cmp eax, esi */
   5757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   5758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5759     _flag_k = FK_CMP;
   5760     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36099FAD: mov dword ptr [ebp - 4], 0xffffffff */
   5761     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099FD2; /* 0x36099FB4: je 0x36099fd2 */
   5762 L_36099FB6:
   5763     ecx = eax + (-0x1); /* 0x36099FB6: lea ecx, [eax - 1] */
   5764     SET_LO8(eax, MEM8(ecx)); /* 0x36099FB9: mov al, byte ptr [ecx] */
   5765     /* test LO8(eax), LO8(eax) */ /* 0x36099FBB: test al, al */
   5766     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5767     _cf = 0;
   5768     _flag_k = FK_NARROW(FK_TEST, 24);
   5769     if (TEST_Z(_flag_a, _flag_b)) goto L_36099FC9; /* 0x36099FBD: je 0x36099fc9 */
   5770 L_36099FBF:
   5771     /* cmp LO8(eax), 0xFFu */ /* 0x36099FBF: cmp al, 0xff */
   5772     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5774     _flag_k = FK_NARROW(FK_CMP, 24);
   5775     if (CMP_EQ(_flag_a, _flag_b)) goto L_36099FC9; /* 0x36099FC1: je 0x36099fc9 */
   5776 L_36099FC3:
   5777     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5778     SET_LO8(eax, LO8(eax) - 1); /* 0x36099FC3: dec al */
   5779     _flag_k = FK_NARROW(FK_DEC, 24);
   5780     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36099FC5: mov byte ptr [ecx], al */
   5781     goto L_36099FD2; /* 0x36099FC7: jmp 0x36099fd2 */
   5782 L_36099FC9:
   5783     PUSH32(esp, ecx); /* 0x36099FC9: push ecx */
   5784     RECOMP_ICALL(0x3615FCC4u); /* 0x36099FCA: call 0x3615fcc4 */ /* not lifted */
   5785     RECOMP_FLAGS_IN();
   5786     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5787     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5788     esp = esp + 4; /* 0x36099FCF: add esp, 4 */
   5789     _flag_k = FK_ADD;
   5790 L_36099FD2:
   5791     ecx = MEM32(ebp + (-0x10)); /* 0x36099FD2: mov ecx, dword ptr [ebp - 0x10] */
   5792     edx = MEM32(ecx); /* 0x36099FD5: mov edx, dword ptr [ecx] */
   5793     PUSH32(esp, edi); /* 0x36099FD7: push edi */
   5794     MEM32(ebp + (-0x1C)) = esi; /* 0x36099FD8: mov dword ptr [ebp - 0x1c], esi */
   5795     MEM32(ebp + (-0x18)) = esi; /* 0x36099FDB: mov dword ptr [ebp - 0x18], esi */
   5796     MEM32(ebp + (-0x14)) = esi; /* 0x36099FDE: mov dword ptr [ebp - 0x14], esi */
   5797     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36099FE1: call dword ptr [edx + 4] */
   5798     RECOMP_FLAGS_IN();
   5799     ecx = MEM32(ebp + (-0xC)); /* 0x36099FE4: mov ecx, dword ptr [ebp - 0xc] */
   5800     edi = POP32_VAL(esp); /* 0x36099FE7: pop edi */
   5801     esi = POP32_VAL(esp); /* 0x36099FE8: pop esi */
   5802     ebx = POP32_VAL(esp); /* 0x36099FE9: pop ebx */
   5803     MEM32(FS_BASE + (0)) = ecx; /* 0x36099FEA: mov dword ptr fs:[0], ecx */
   5804     esp = ebp; /* 0x36099FF1: mov esp, ebp */
   5805     ebp = POP32_VAL(esp); /* 0x36099FF3: pop ebp */
   5806     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36099FF4: ret 4 */
   5807     RECOMP_REGS_OUT();
   5808 }
   5809 
   5810 void sub_3609A000(void) {
   5811     int _fpu_cmp = 0;
   5812     uint32_t _cf = 0;
   5813     int _df = 1;
   5814     uint32_t _flag_k = FK_NONE;
   5815     uint32_t _flag_a = 0, _flag_b = 0;
   5816     uint32_t _itail_tgt = 0;
   5817     RECOMP_REGS_LOCALS
   5818     RECOMP_ENTER(0x3609A000u);
   5819 
   5820 L_3609A000:
   5821     PUSH32(esp, ebp); /* 0x3609A000: push ebp */
   5822     ebp = esp; /* 0x3609A001: mov ebp, esp */
   5823     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609A003: push -1 */
   5824     PUSH32(esp, 0x36166749u); /* 0x3609A005: push 0x36166749 */
   5825     eax = MEM32(FS_BASE + (0)); /* 0x3609A00A: mov eax, dword ptr fs:[0] */
   5826     PUSH32(esp, eax); /* 0x3609A010: push eax */
   5827     MEM32(FS_BASE + (0)) = esp; /* 0x3609A011: mov dword ptr fs:[0], esp */
   5828     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5830     esp = esp - 0x10u; /* 0x3609A018: sub esp, 0x10 */
   5831     _flag_k = FK_CMP;
   5832     PUSH32(esp, ebx); /* 0x3609A01B: push ebx */
   5833     PUSH32(esp, esi); /* 0x3609A01C: push esi */
   5834     esi = MEM32(ebp + 0x8); /* 0x3609A01D: mov esi, dword ptr [ebp + 8] */
   5835     PUSH32(esp, edi); /* 0x3609A020: push edi */
   5836     PUSH32(esp, esi); /* 0x3609A021: push esi */
   5837     RECOMP_ICALL(0x3610DEF0u); /* 0x3609A022: call 0x3610def0 */ /* not lifted */
   5838     RECOMP_FLAGS_IN();
   5839     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3609A027: mov al, byte ptr [ebp + 0xb] */
   5840     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5841     ecx = ecx | 0xFFFFFFFFu; /* 0x3609A02A: or ecx, 0xffffffff */
   5842     _cf = 0;
   5843     _flag_k = FK_TEST;
   5844     MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x3609A02D: mov byte ptr [ebp - 0x1c], al */
   5845     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5846     eax = 0; /* 0x3609A030: xor eax, eax */
   5847     _cf = 0;
   5848     _flag_k = FK_TEST;
   5849     edi = 0x361C5648u; /* 0x3609A032: mov edi, 0x361c5648 */
   5850     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; } /* 0x3609A037: repne scasb al, byte ptr es:[edi] */
   5851     ecx = ~ecx; /* 0x3609A039: not ecx */
   5852     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5853     ecx = ecx - 1; /* 0x3609A03B: dec ecx */
   5854     _flag_k = FK_DEC;
   5855     ebx = ecx; /* 0x3609A03C: mov ebx, ecx */
   5856     PUSH32(esp, 1); /* 0x3609A03E: push 1 */
   5857     PUSH32(esp, ebx); /* 0x3609A040: push ebx */
   5858     ecx = ebp + (-0x1C); /* 0x3609A041: lea ecx, [ebp - 0x1c] */
   5859     MEM32(ebp + (-0x18)) = eax; /* 0x3609A044: mov dword ptr [ebp - 0x18], eax */
   5860     MEM32(ebp + (-0x14)) = eax; /* 0x3609A047: mov dword ptr [ebp - 0x14], eax */
   5861     MEM32(ebp + (-0x10)) = eax; /* 0x3609A04A: mov dword ptr [ebp - 0x10], eax */
   5862     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3609A04D: call dword ptr [0x3616f00c] */
   5863     RECOMP_FLAGS_IN();
   5864     /* test LO8(eax), LO8(eax) */ /* 0x3609A053: test al, al */
   5865     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5866     _cf = 0;
   5867     _flag_k = FK_NARROW(FK_TEST, 24);
   5868     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A07C; /* 0x3609A055: je 0x3609a07c */
   5869 L_3609A057:
   5870     edi = MEM32(ebp + (-0x18)); /* 0x3609A057: mov edi, dword ptr [ebp - 0x18] */
   5871     ecx = ebx; /* 0x3609A05A: mov ecx, ebx */
   5872     edx = ecx; /* 0x3609A05C: mov edx, ecx */
   5873     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3609A05E: shr ecx, 2 */
   5874     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5875     ecx = ecx >> 2u; /* 0x3609A05E: shr ecx, 2 */
   5876     esi = 0x361C5648u; /* 0x3609A061: mov esi, 0x361c5648 */
   5877     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3609A066: 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; }
   5878     ecx = edx; /* 0x3609A068: mov ecx, edx */
   5879     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5880     ecx = ecx & 3; /* 0x3609A06A: and ecx, 3 */
   5881     _cf = 0;
   5882     _flag_k = FK_TEST;
   5883     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3609A06D: 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; }
   5884     eax = MEM32(ebp + (-0x18)); /* 0x3609A06F: mov eax, dword ptr [ebp - 0x18] */
   5885     esi = MEM32(ebp + 0x8); /* 0x3609A072: mov esi, dword ptr [ebp + 8] */
   5886     MEM32(ebp + (-0x14)) = ebx; /* 0x3609A075: mov dword ptr [ebp - 0x14], ebx */
   5887     MEM8(eax + ebx) = (uint8_t)(0); /* 0x3609A078: mov byte ptr [eax + ebx], 0 */
   5888 L_3609A07C:
   5889     edx = MEM32(esi); /* 0x3609A07C: mov edx, dword ptr [esi] */
   5890     eax = ebp + (-0x1C); /* 0x3609A07E: lea eax, [ebp - 0x1c] */
   5891     PUSH32(esp, eax); /* 0x3609A081: push eax */
   5892     ecx = esi; /* 0x3609A082: mov ecx, esi */
   5893     MEM32(ebp + (-0x4)) = 0; /* 0x3609A084: mov dword ptr [ebp - 4], 0 */
   5894     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3609A08B: call dword ptr [edx + 0x20] */
   5895     RECOMP_FLAGS_IN();
   5896     eax = MEM32(ebp + (-0x18)); /* 0x3609A08E: mov eax, dword ptr [ebp - 0x18] */
   5897     /* test eax, eax */ /* 0x3609A091: test eax, eax */
   5898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5899     _cf = 0;
   5900     _flag_k = FK_TEST;
   5901     edi = POP32_VAL(esp); /* 0x3609A093: pop edi */
   5902     esi = POP32_VAL(esp); /* 0x3609A094: pop esi */
   5903     ebx = POP32_VAL(esp); /* 0x3609A095: pop ebx */
   5904     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A0C2; /* 0x3609A096: je 0x3609a0c2 */
   5905 L_3609A098:
   5906     ecx = eax + (-0x1); /* 0x3609A098: lea ecx, [eax - 1] */
   5907     SET_LO8(eax, MEM8(ecx)); /* 0x3609A09B: mov al, byte ptr [ecx] */
   5908     /* test LO8(eax), LO8(eax) */ /* 0x3609A09D: test al, al */
   5909     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5910     _cf = 0;
   5911     _flag_k = FK_NARROW(FK_TEST, 24);
   5912     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A0B9; /* 0x3609A09F: je 0x3609a0b9 */
   5913 L_3609A0A1:
   5914     /* cmp LO8(eax), 0xFFu */ /* 0x3609A0A1: cmp al, 0xff */
   5915     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5917     _flag_k = FK_NARROW(FK_CMP, 24);
   5918     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A0B9; /* 0x3609A0A3: je 0x3609a0b9 */
   5919 L_3609A0A5:
   5920     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5921     SET_LO8(eax, LO8(eax) - 1); /* 0x3609A0A5: dec al */
   5922     _flag_k = FK_NARROW(FK_DEC, 24);
   5923     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3609A0A7: mov byte ptr [ecx], al */
   5924     ecx = MEM32(ebp + (-0xC)); /* 0x3609A0A9: mov ecx, dword ptr [ebp - 0xc] */
   5925     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A0AC: mov dword ptr fs:[0], ecx */
   5926     esp = ebp; /* 0x3609A0B3: mov esp, ebp */
   5927     ebp = POP32_VAL(esp); /* 0x3609A0B5: pop ebp */
   5928     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609A0B6: ret 4 */
   5929 L_3609A0B9:
   5930     PUSH32(esp, ecx); /* 0x3609A0B9: push ecx */
   5931     RECOMP_ICALL(0x3615FCC4u); /* 0x3609A0BA: call 0x3615fcc4 */ /* not lifted */
   5932     RECOMP_FLAGS_IN();
   5933     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5935     esp = esp + 4; /* 0x3609A0BF: add esp, 4 */
   5936     _flag_k = FK_ADD;
   5937 L_3609A0C2:
   5938     ecx = MEM32(ebp + (-0xC)); /* 0x3609A0C2: mov ecx, dword ptr [ebp - 0xc] */
   5939     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A0C5: mov dword ptr fs:[0], ecx */
   5940     esp = ebp; /* 0x3609A0CC: mov esp, ebp */
   5941     ebp = POP32_VAL(esp); /* 0x3609A0CE: pop ebp */
   5942     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609A0CF: ret 4 */
   5943     RECOMP_REGS_OUT();
   5944 }
   5945 
   5946 void sub_3609A0E0(void) {
   5947     int _fpu_cmp = 0;
   5948     uint32_t _cf = 0;
   5949     int _df = 1;
   5950     uint32_t _flag_k = FK_NONE;
   5951     uint32_t _flag_a = 0, _flag_b = 0;
   5952     uint32_t _itail_tgt = 0;
   5953     RECOMP_REGS_LOCALS
   5954     RECOMP_ENTER(0x3609A0E0u);
   5955 
   5956 L_3609A0E0:
   5957     PUSH32(esp, ebp); /* 0x3609A0E0: push ebp */
   5958     ebp = esp; /* 0x3609A0E1: mov ebp, esp */
   5959     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609A0E3: push -1 */
   5960     PUSH32(esp, 0x36166783u); /* 0x3609A0E5: push 0x36166783 */
   5961     eax = MEM32(FS_BASE + (0)); /* 0x3609A0EA: mov eax, dword ptr fs:[0] */
   5962     PUSH32(esp, eax); /* 0x3609A0F0: push eax */
   5963     MEM32(FS_BASE + (0)) = esp; /* 0x3609A0F1: mov dword ptr fs:[0], esp */
   5964     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   5965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5966     esp = esp - 0x20u; /* 0x3609A0F8: sub esp, 0x20 */
   5967     _flag_k = FK_CMP;
   5968     PUSH32(esp, ebx); /* 0x3609A0FB: push ebx */
   5969     PUSH32(esp, esi); /* 0x3609A0FC: push esi */
   5970     PUSH32(esp, edi); /* 0x3609A0FD: push edi */
   5971     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5972     ebx = 0; /* 0x3609A0FE: xor ebx, ebx */
   5973     _cf = 0;
   5974     _flag_k = FK_TEST;
   5975     PUSH32(esp, 0xC0u); /* 0x3609A100: push 0xc0 */
   5976     MEM32(ebp + (-0x1C)) = ecx; /* 0x3609A105: mov dword ptr [ebp - 0x1c], ecx */
   5977     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5978     edi = 0; /* 0x3609A108: xor edi, edi */
   5979     _cf = 0;
   5980     _flag_k = FK_TEST;
   5981     MEM32(ebp + (-0x18)) = ebx; /* 0x3609A10A: mov dword ptr [ebp - 0x18], ebx */
   5982     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A10D: call 0x3615fd6a */ /* not lifted */
   5983     RECOMP_FLAGS_IN();
   5984     esi = eax; /* 0x3609A112: mov esi, eax */
   5985     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5986     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5987     esp = esp + 4; /* 0x3609A114: add esp, 4 */
   5988     _flag_k = FK_ADD;
   5989     MEM32(ebp + (-0x14)) = esi; /* 0x3609A117: mov dword ptr [ebp - 0x14], esi */
   5990     /* cmp esi, edi */ /* 0x3609A11A: cmp esi, edi */
   5991     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   5992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5993     _flag_k = FK_CMP;
   5994     MEM32(ebp + (-0x4)) = edi; /* 0x3609A11C: mov dword ptr [ebp - 4], edi */
   5995     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A19C; /* 0x3609A11F: je 0x3609a19c */
   5996 L_3609A121:
   5997     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3609A121: mov al, byte ptr [ebp - 0xd] */
   5998     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5999     ecx = ecx | 0xFFFFFFFFu; /* 0x3609A124: or ecx, 0xffffffff */
   6000     _cf = 0;
   6001     _flag_k = FK_TEST;
   6002     MEM32(ebp + (-0x28)) = edi; /* 0x3609A127: mov dword ptr [ebp - 0x28], edi */
   6003     MEM32(ebp + (-0x24)) = edi; /* 0x3609A12A: mov dword ptr [ebp - 0x24], edi */
   6004     MEM32(ebp + (-0x20)) = edi; /* 0x3609A12D: mov dword ptr [ebp - 0x20], edi */
   6005     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x3609A130: mov byte ptr [ebp - 0x2c], al */
   6006     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6007     eax = 0; /* 0x3609A133: xor eax, eax */
   6008     _cf = 0;
   6009     _flag_k = FK_TEST;
   6010     edi = 0x361B3E9Cu; /* 0x3609A135: mov edi, 0x361b3e9c */
   6011     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; } /* 0x3609A13A: repne scasb al, byte ptr es:[edi] */
   6012     ecx = ~ecx; /* 0x3609A13C: not ecx */
   6013     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6014     ecx = ecx - 1; /* 0x3609A13E: dec ecx */
   6015     _flag_k = FK_DEC;
   6016     ebx = ecx; /* 0x3609A13F: mov ebx, ecx */
   6017     PUSH32(esp, 1); /* 0x3609A141: push 1 */
   6018     PUSH32(esp, ebx); /* 0x3609A143: push ebx */
   6019     ecx = ebp + (-0x2C); /* 0x3609A144: lea ecx, [ebp - 0x2c] */
   6020     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3609A147: call dword ptr [0x3616f00c] */
   6021     RECOMP_FLAGS_IN();
   6022     /* test LO8(eax), LO8(eax) */ /* 0x3609A14D: test al, al */
   6023     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6024     _cf = 0;
   6025     _flag_k = FK_NARROW(FK_TEST, 24);
   6026     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A176; /* 0x3609A14F: je 0x3609a176 */
   6027 L_3609A151:
   6028     edi = MEM32(ebp + (-0x28)); /* 0x3609A151: mov edi, dword ptr [ebp - 0x28] */
   6029     ecx = ebx; /* 0x3609A154: mov ecx, ebx */
   6030     edx = ecx; /* 0x3609A156: mov edx, ecx */
   6031     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3609A158: shr ecx, 2 */
   6032     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6033     ecx = ecx >> 2u; /* 0x3609A158: shr ecx, 2 */
   6034     esi = 0x361B3E9Cu; /* 0x3609A15B: mov esi, 0x361b3e9c */
   6035     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3609A160: 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; }
   6036     ecx = edx; /* 0x3609A162: mov ecx, edx */
   6037     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   6038     ecx = ecx & 3; /* 0x3609A164: and ecx, 3 */
   6039     _cf = 0;
   6040     _flag_k = FK_TEST;
   6041     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3609A167: 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; }
   6042     eax = MEM32(ebp + (-0x28)); /* 0x3609A169: mov eax, dword ptr [ebp - 0x28] */
   6043     esi = MEM32(ebp + (-0x14)); /* 0x3609A16C: mov esi, dword ptr [ebp - 0x14] */
   6044     MEM32(ebp + (-0x24)) = ebx; /* 0x3609A16F: mov dword ptr [ebp - 0x24], ebx */
   6045     MEM8(ebx + eax) = (uint8_t)(0); /* 0x3609A172: mov byte ptr [ebx + eax], 0 */
   6046 L_3609A176:
   6047     ebx = 1; /* 0x3609A176: mov ebx, 1 */
   6048     MEM32(ebp + (-0x18)) = ebx; /* 0x3609A17B: mov dword ptr [ebp - 0x18], ebx */
   6049     edx = MEM32(ebp + (-0x1C)); /* 0x3609A17E: mov edx, dword ptr [ebp - 0x1c] */
   6050     ecx = ebp + (-0x2C); /* 0x3609A181: lea ecx, [ebp - 0x2c] */
   6051     PUSH32(esp, ecx); /* 0x3609A184: push ecx */
   6052     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFF74u);
   6053     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6054     edx = edx + 0xFFFFFF74u; /* 0x3609A185: add edx, 0xffffff74 */
   6055     _flag_k = FK_ADD;
   6056     PUSH32(esp, edx); /* 0x3609A18B: push edx */
   6057     ecx = esi; /* 0x3609A18C: mov ecx, esi */
   6058     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3609A18E: mov byte ptr [ebp - 4], bl */
   6059     RECOMP_ICALL(0x360B17A0u); /* 0x3609A191: call 0x360b17a0 */ /* not lifted */
   6060     RECOMP_FLAGS_IN();
   6061     esi = eax; /* 0x3609A196: mov esi, eax */
   6062     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6063     edi = 0; /* 0x3609A198: xor edi, edi */
   6064     _cf = 0;
   6065     _flag_k = FK_TEST;
   6066     goto L_3609A19E; /* 0x3609A19A: jmp 0x3609a19e */
   6067 L_3609A19C:
   6068     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6069     esi = 0; /* 0x3609A19C: xor esi, esi */
   6070     _cf = 0;
   6071     _flag_k = FK_TEST;
   6072 L_3609A19E:
   6073     /* test LO8(ebx), 1 */ /* 0x3609A19E: test bl, 1 */
   6074     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   6075     _cf = 0;
   6076     _flag_k = FK_NARROW(FK_TEST, 24);
   6077     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A1D7; /* 0x3609A1A1: je 0x3609a1d7 */
   6078 L_3609A1A3:
   6079     eax = MEM32(ebp + (-0x28)); /* 0x3609A1A3: mov eax, dword ptr [ebp - 0x28] */
   6080     /* cmp eax, edi */ /* 0x3609A1A6: cmp eax, edi */
   6081     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6083     _flag_k = FK_CMP;
   6084     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A1D7; /* 0x3609A1A8: je 0x3609a1d7 */
   6085 L_3609A1AA:
   6086     ecx = eax + (-0x1); /* 0x3609A1AA: lea ecx, [eax - 1] */
   6087     SET_LO8(eax, MEM8(ecx)); /* 0x3609A1AD: mov al, byte ptr [ecx] */
   6088     /* test LO8(eax), LO8(eax) */ /* 0x3609A1AF: test al, al */
   6089     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6090     _cf = 0;
   6091     _flag_k = FK_NARROW(FK_TEST, 24);
   6092     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A1CE; /* 0x3609A1B1: je 0x3609a1ce */
   6093 L_3609A1B3:
   6094     /* cmp LO8(eax), 0xFFu */ /* 0x3609A1B3: cmp al, 0xff */
   6095     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   6096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6097     _flag_k = FK_NARROW(FK_CMP, 24);
   6098     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A1CE; /* 0x3609A1B5: je 0x3609a1ce */
   6099 L_3609A1B7:
   6100     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   6101     SET_LO8(eax, LO8(eax) - 1); /* 0x3609A1B7: dec al */
   6102     _flag_k = FK_NARROW(FK_DEC, 24);
   6103     edi = POP32_VAL(esp); /* 0x3609A1B9: pop edi */
   6104     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3609A1BA: mov byte ptr [ecx], al */
   6105     eax = esi; /* 0x3609A1BC: mov eax, esi */
   6106     esi = POP32_VAL(esp); /* 0x3609A1BE: pop esi */
   6107     ebx = POP32_VAL(esp); /* 0x3609A1BF: pop ebx */
   6108     ecx = MEM32(ebp + (-0xC)); /* 0x3609A1C0: mov ecx, dword ptr [ebp - 0xc] */
   6109     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A1C3: mov dword ptr fs:[0], ecx */
   6110     esp = ebp; /* 0x3609A1CA: mov esp, ebp */
   6111     ebp = POP32_VAL(esp); /* 0x3609A1CC: pop ebp */
   6112     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A1CD: ret  */
   6113 L_3609A1CE:
   6114     PUSH32(esp, ecx); /* 0x3609A1CE: push ecx */
   6115     RECOMP_ICALL(0x3615FCC4u); /* 0x3609A1CF: call 0x3615fcc4 */ /* not lifted */
   6116     RECOMP_FLAGS_IN();
   6117     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6118     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6119     esp = esp + 4; /* 0x3609A1D4: add esp, 4 */
   6120     _flag_k = FK_ADD;
   6121 L_3609A1D7:
   6122     ecx = MEM32(ebp + (-0xC)); /* 0x3609A1D7: mov ecx, dword ptr [ebp - 0xc] */
   6123     edi = POP32_VAL(esp); /* 0x3609A1DA: pop edi */
   6124     eax = esi; /* 0x3609A1DB: mov eax, esi */
   6125     esi = POP32_VAL(esp); /* 0x3609A1DD: pop esi */
   6126     ebx = POP32_VAL(esp); /* 0x3609A1DE: pop ebx */
   6127     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A1DF: mov dword ptr fs:[0], ecx */
   6128     esp = ebp; /* 0x3609A1E6: mov esp, ebp */
   6129     ebp = POP32_VAL(esp); /* 0x3609A1E8: pop ebp */
   6130     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A1E9: ret  */
   6131     RECOMP_REGS_OUT();
   6132 }
   6133 
   6134 void sub_3609A1F0(void) {
   6135     int _fpu_cmp = 0;
   6136     uint32_t _cf = 0;
   6137     int _df = 1;
   6138     uint32_t _flag_k = FK_NONE;
   6139     uint32_t _flag_a = 0, _flag_b = 0;
   6140     uint32_t _itail_tgt = 0;
   6141     RECOMP_REGS_LOCALS
   6142     RECOMP_ENTER(0x3609A1F0u);
   6143 
   6144 L_3609A1F0:
   6145     PUSH32(esp, ebp); /* 0x3609A1F0: push ebp */
   6146     ebp = esp; /* 0x3609A1F1: mov ebp, esp */
   6147     PUSH32(esp, esi); /* 0x3609A1F3: push esi */
   6148     esi = ecx; /* 0x3609A1F4: mov esi, ecx */
   6149     eax = MEM32(esi + 0x1B8); /* 0x3609A1F6: mov eax, dword ptr [esi + 0x1b8] */
   6150     PUSH32(esp, edi); /* 0x3609A1FC: push edi */
   6151     edi = MEM32(ebp + 0x8); /* 0x3609A1FD: mov edi, dword ptr [ebp + 8] */
   6152     /* cmp eax, edi */ /* 0x3609A200: cmp eax, edi */
   6153     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6155     _flag_k = FK_CMP;
   6156     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A29D; /* 0x3609A202: je 0x3609a29d */
   6157 L_3609A208:
   6158     eax = MEM32(esi + 0x1E4); /* 0x3609A208: mov eax, dword ptr [esi + 0x1e4] */
   6159     ecx = MEM32(eax + 0x4); /* 0x3609A20E: mov ecx, dword ptr [eax + 4] */
   6160     eax = MEM32(esi + 0x1B4); /* 0x3609A211: mov eax, dword ptr [esi + 0x1b4] */
   6161     /* cmp eax, ecx */ /* 0x3609A217: cmp eax, ecx */
   6162     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6164     _flag_k = FK_CMP;
   6165     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A24B; /* 0x3609A219: je 0x3609a24b */
   6166 L_3609A21B:
   6167     eax = MEM32(eax + 0x8); /* 0x3609A21B: mov eax, dword ptr [eax + 8] */
   6168     ecx = MEM32(eax + 0x14); /* 0x3609A21E: mov ecx, dword ptr [eax + 0x14] */
   6169     edx = MEM32(esi); /* 0x3609A221: mov edx, dword ptr [esi] */
   6170     PUSH32(esp, 0x362EA510u); /* 0x3609A223: push 0x362ea510 */
   6171     PUSH32(esp, 0); /* 0x3609A228: push 0 */
   6172     PUSH32(esp, esi); /* 0x3609A22A: push esi */
   6173     PUSH32(esp, ecx); /* 0x3609A22B: push ecx */
   6174     ecx = esi; /* 0x3609A22C: mov ecx, esi */
   6175     RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3609A22E: call dword ptr [edx + 0x34] */
   6176     RECOMP_FLAGS_IN();
   6177     edx = MEM32(esi + 0x1B4); /* 0x3609A231: mov edx, dword ptr [esi + 0x1b4] */
   6178     eax = MEM32(edx + 0x8); /* 0x3609A237: mov eax, dword ptr [edx + 8] */
   6179     ecx = MEM32(eax + 0x18); /* 0x3609A23A: mov ecx, dword ptr [eax + 0x18] */
   6180     PUSH32(esp, ecx); /* 0x3609A23D: push ecx */
   6181     PUSH32(esp, esi); /* 0x3609A23E: push esi */
   6182     PUSH32(esp, esi); /* 0x3609A23F: push esi */
   6183     ecx = esi + 0x80; /* 0x3609A240: lea ecx, [esi + 0x80] */
   6184     RECOMP_ICALL(0x36042020u); /* 0x3609A246: call 0x36042020 */ /* not lifted */
   6185     RECOMP_FLAGS_IN();
   6186 L_3609A24B:
   6187     edx = MEM32(esi + 0x1E4); /* 0x3609A24B: mov edx, dword ptr [esi + 0x1e4] */
   6188     MEM32(esi + 0x1B8) = edi; /* 0x3609A251: mov dword ptr [esi + 0x1b8], edi */
   6189     eax = MEM32(edx + 0x4); /* 0x3609A257: mov eax, dword ptr [edx + 4] */
   6190     eax = MEM32(eax); /* 0x3609A25A: mov eax, dword ptr [eax] */
   6191     MEM32(esi + 0x1B4) = eax; /* 0x3609A25C: mov dword ptr [esi + 0x1b4], eax */
   6192     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6193     eax = 0; /* 0x3609A262: xor eax, eax */
   6194     _cf = 0;
   6195     _flag_k = FK_TEST;
   6196     /* test edi, edi */ /* 0x3609A264: test edi, edi */
   6197     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6198     _cf = 0;
   6199     _flag_k = FK_TEST;
   6200     if (TEST_LE(_flag_a, _flag_b)) goto L_3609A281; /* 0x3609A266: jle 0x3609a281 */
   6201 L_3609A268:
   6202     ecx = MEM32(esi + 0x1B4); /* 0x3609A268: mov ecx, dword ptr [esi + 0x1b4] */
   6203     edx = MEM32(ecx); /* 0x3609A26E: mov edx, dword ptr [ecx] */
   6204     MEM32(esi + 0x1B4) = edx; /* 0x3609A270: mov dword ptr [esi + 0x1b4], edx */
   6205     ecx = MEM32(esi + 0x1B8); /* 0x3609A276: mov ecx, dword ptr [esi + 0x1b8] */
   6206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6207     eax = eax + 1; /* 0x3609A27C: inc eax */
   6208     _flag_k = FK_INC;
   6209     /* cmp eax, ecx */ /* 0x3609A27D: cmp eax, ecx */
   6210     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6212     _flag_k = FK_CMP;
   6213     RECOMP_BACKEDGE();
   6214     if (CMP_L(_flag_a, _flag_b)) goto L_3609A268; /* 0x3609A27F: jl 0x3609a268 */
   6215 L_3609A281:
   6216     eax = MEM32(esi + 0x1B0); /* 0x3609A281: mov eax, dword ptr [esi + 0x1b0] */
   6217     /* test eax, eax */ /* 0x3609A287: test eax, eax */
   6218     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6219     _cf = 0;
   6220     _flag_k = FK_TEST;
   6221     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609A29D; /* 0x3609A289: jne 0x3609a29d */
   6222 L_3609A28B:
   6223     ecx = MEM32(esi + 0xEC); /* 0x3609A28B: mov ecx, dword ptr [esi + 0xec] */
   6224     eax = esi + 0x1C4; /* 0x3609A291: lea eax, [esi + 0x1c4] */
   6225     PUSH32(esp, eax); /* 0x3609A297: push eax */
   6226     RECOMP_ICALL(0x3609A9A0u); /* 0x3609A298: call 0x3609a9a0 */ /* not lifted */
   6227     RECOMP_FLAGS_IN();
   6228 L_3609A29D:
   6229     edi = POP32_VAL(esp); /* 0x3609A29D: pop edi */
   6230     esi = POP32_VAL(esp); /* 0x3609A29E: pop esi */
   6231     ebp = POP32_VAL(esp); /* 0x3609A29F: pop ebp */
   6232     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609A2A0: ret 4 */
   6233     RECOMP_REGS_OUT();
   6234 }
   6235 
   6236 void sub_3609A2B0(void) {
   6237     int _fpu_cmp = 0;
   6238     uint32_t _cf = 0;
   6239     int _df = 1;
   6240     uint32_t _flag_k = FK_NONE;
   6241     uint32_t _flag_a = 0, _flag_b = 0;
   6242     uint32_t _itail_tgt = 0;
   6243     RECOMP_REGS_LOCALS
   6244     RECOMP_ENTER(0x3609A2B0u);
   6245 
   6246 L_3609A2B0:
   6247     PUSH32(esp, ebp); /* 0x3609A2B0: push ebp */
   6248     ebp = esp; /* 0x3609A2B1: mov ebp, esp */
   6249     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609A2B3: push -1 */
   6250     PUSH32(esp, 0x3616679Bu); /* 0x3609A2B5: push 0x3616679b */
   6251     eax = MEM32(FS_BASE + (0)); /* 0x3609A2BA: mov eax, dword ptr fs:[0] */
   6252     PUSH32(esp, eax); /* 0x3609A2C0: push eax */
   6253     MEM32(FS_BASE + (0)) = esp; /* 0x3609A2C1: mov dword ptr fs:[0], esp */
   6254     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6256     esp = esp - 8; /* 0x3609A2C8: sub esp, 8 */
   6257     _flag_k = FK_CMP;
   6258     PUSH32(esp, ebx); /* 0x3609A2CB: push ebx */
   6259     PUSH32(esp, esi); /* 0x3609A2CC: push esi */
   6260     PUSH32(esp, edi); /* 0x3609A2CD: push edi */
   6261     esi = ecx; /* 0x3609A2CE: mov esi, ecx */
   6262     PUSH32(esp, 0x1Cu); /* 0x3609A2D0: push 0x1c */
   6263     MEM32(ebp + (-0x10)) = esi; /* 0x3609A2D2: mov dword ptr [ebp - 0x10], esi */
   6264     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A2D5: call 0x3615fd6a */ /* not lifted */
   6265     RECOMP_FLAGS_IN();
   6266     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6268     esp = esp + 4; /* 0x3609A2DA: add esp, 4 */
   6269     _flag_k = FK_ADD;
   6270     MEM32(ebp + (-0x14)) = eax; /* 0x3609A2DD: mov dword ptr [ebp - 0x14], eax */
   6271     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6272     edi = 0; /* 0x3609A2E0: xor edi, edi */
   6273     _cf = 0;
   6274     _flag_k = FK_TEST;
   6275     /* cmp eax, edi */ /* 0x3609A2E2: cmp eax, edi */
   6276     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6278     _flag_k = FK_CMP;
   6279     MEM32(ebp + (-0x4)) = edi; /* 0x3609A2E4: mov dword ptr [ebp - 4], edi */
   6280     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A2F2; /* 0x3609A2E7: je 0x3609a2f2 */
   6281 L_3609A2E9:
   6282     ecx = eax; /* 0x3609A2E9: mov ecx, eax */
   6283     RECOMP_ICALL(0x3609A630u); /* 0x3609A2EB: call 0x3609a630 */ /* not lifted */
   6284     RECOMP_FLAGS_IN();
   6285     edi = eax; /* 0x3609A2F0: mov edi, eax */
   6286 L_3609A2F2:
   6287     eax = MEM32(ebp + 0x8); /* 0x3609A2F2: mov eax, dword ptr [ebp + 8] */
   6288     edx = MEM32(eax); /* 0x3609A2F5: mov edx, dword ptr [eax] */
   6289     ecx = edi; /* 0x3609A2F7: mov ecx, edi */
   6290     MEM32(ecx) = edx; /* 0x3609A2F9: mov dword ptr [ecx], edx */
   6291     edx = MEM32(eax + 0x4); /* 0x3609A2FB: mov edx, dword ptr [eax + 4] */
   6292     MEM32(ecx + 0x4) = edx; /* 0x3609A2FE: mov dword ptr [ecx + 4], edx */
   6293     eax = MEM32(eax + 0x8); /* 0x3609A301: mov eax, dword ptr [eax + 8] */
   6294     edx = MEM32(ebp + 0x10); /* 0x3609A304: mov edx, dword ptr [ebp + 0x10] */
   6295     MEM32(ecx + 0x8) = eax; /* 0x3609A307: mov dword ptr [ecx + 8], eax */
   6296     ecx = MEM32(ebp + 0xC); /* 0x3609A30A: mov ecx, dword ptr [ebp + 0xc] */
   6297     MEM32(edi + 0xC) = ecx; /* 0x3609A30D: mov dword ptr [edi + 0xc], ecx */
   6298     MEM32(edi + 0x10) = edx; /* 0x3609A310: mov dword ptr [edi + 0x10], edx */
   6299     eax = MEM32(esi + 0x1E4); /* 0x3609A313: mov eax, dword ptr [esi + 0x1e4] */
   6300     esi = MEM32(eax + 0x4); /* 0x3609A319: mov esi, dword ptr [eax + 4] */
   6301     ebx = MEM32(esi + 0x4); /* 0x3609A31C: mov ebx, dword ptr [esi + 4] */
   6302     PUSH32(esp, 0xCu); /* 0x3609A31F: push 0xc */
   6303     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609A321: mov dword ptr [ebp - 4], 0xffffffff */
   6304     MEM32(ebp + 0x8) = eax; /* 0x3609A328: mov dword ptr [ebp + 8], eax */
   6305     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A32B: call 0x3615fd6a */ /* not lifted */
   6306     RECOMP_FLAGS_IN();
   6307     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6309     esp = esp + 4; /* 0x3609A330: add esp, 4 */
   6310     _flag_k = FK_ADD;
   6311     /* test esi, esi */ /* 0x3609A333: test esi, esi */
   6312     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6313     _cf = 0;
   6314     _flag_k = FK_TEST;
   6315     ecx = esi; /* 0x3609A335: mov ecx, esi */
   6316     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609A33B; /* 0x3609A337: jne 0x3609a33b */
   6317 L_3609A339:
   6318     ecx = eax; /* 0x3609A339: mov ecx, eax */
   6319 L_3609A33B:
   6320     /* test ebx, ebx */ /* 0x3609A33B: test ebx, ebx */
   6321     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6322     _cf = 0;
   6323     _flag_k = FK_TEST;
   6324     MEM32(eax) = ecx; /* 0x3609A33D: mov dword ptr [eax], ecx */
   6325     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609A343; /* 0x3609A33F: jne 0x3609a343 */
   6326 L_3609A341:
   6327     ebx = eax; /* 0x3609A341: mov ebx, eax */
   6328 L_3609A343:
   6329     MEM32(eax + 0x4) = ebx; /* 0x3609A343: mov dword ptr [eax + 4], ebx */
   6330     MEM32(esi + 0x4) = eax; /* 0x3609A346: mov dword ptr [esi + 4], eax */
   6331     ecx = MEM32(eax + 0x4); /* 0x3609A349: mov ecx, dword ptr [eax + 4] */
   6332     MEM32(ecx) = eax; /* 0x3609A34C: mov dword ptr [ecx], eax */
   6333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   6334     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6335     eax = eax + 8; /* 0x3609A34E: add eax, 8 */
   6336     _flag_k = FK_ADD;
   6337     /* test eax, eax */ /* 0x3609A351: test eax, eax */
   6338     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6339     _cf = 0;
   6340     _flag_k = FK_TEST;
   6341     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A357; /* 0x3609A353: je 0x3609a357 */
   6342 L_3609A355:
   6343     MEM32(eax) = edi; /* 0x3609A355: mov dword ptr [eax], edi */
   6344 L_3609A357:
   6345     eax = MEM32(ebp + 0x8); /* 0x3609A357: mov eax, dword ptr [ebp + 8] */
   6346     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1);
   6347     MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x3609A35A: inc dword ptr [eax + 8] */
   6348     _flag_k = FK_INC;
   6349     ecx = MEM32(ebp + (-0x10)); /* 0x3609A35D: mov ecx, dword ptr [ebp - 0x10] */
   6350     edx = MEM32(ecx + 0x1E4); /* 0x3609A360: mov edx, dword ptr [ecx + 0x1e4] */
   6351     eax = MEM32(edx + 0x4); /* 0x3609A366: mov eax, dword ptr [edx + 4] */
   6352     eax = MEM32(eax); /* 0x3609A369: mov eax, dword ptr [eax] */
   6353     edi = POP32_VAL(esp); /* 0x3609A36B: pop edi */
   6354     MEM32(ecx + 0x1B4) = eax; /* 0x3609A36C: mov dword ptr [ecx + 0x1b4], eax */
   6355     ecx = MEM32(ebp + (-0xC)); /* 0x3609A372: mov ecx, dword ptr [ebp - 0xc] */
   6356     esi = POP32_VAL(esp); /* 0x3609A375: pop esi */
   6357     ebx = POP32_VAL(esp); /* 0x3609A376: pop ebx */
   6358     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A377: mov dword ptr fs:[0], ecx */
   6359     esp = ebp; /* 0x3609A37E: mov esp, ebp */
   6360     ebp = POP32_VAL(esp); /* 0x3609A380: pop ebp */
   6361     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3609A381: ret 0xc */
   6362     RECOMP_REGS_OUT();
   6363 }
   6364 
   6365 void sub_3609A390(void) {
   6366     int _fpu_cmp = 0;
   6367     uint32_t _cf = 0;
   6368     int _df = 1;
   6369     uint32_t _flag_k = FK_NONE;
   6370     uint32_t _flag_a = 0, _flag_b = 0;
   6371     uint32_t _itail_tgt = 0;
   6372     RECOMP_REGS_LOCALS
   6373     RECOMP_ENTER(0x3609A390u);
   6374 
   6375 L_3609A390:
   6376     PUSH32(esp, ebp); /* 0x3609A390: push ebp */
   6377     ebp = esp; /* 0x3609A391: mov ebp, esp */
   6378     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609A393: push -1 */
   6379     PUSH32(esp, 0x361667BBu); /* 0x3609A395: push 0x361667bb */
   6380     eax = MEM32(FS_BASE + (0)); /* 0x3609A39A: mov eax, dword ptr fs:[0] */
   6381     PUSH32(esp, eax); /* 0x3609A3A0: push eax */
   6382     MEM32(FS_BASE + (0)) = esp; /* 0x3609A3A1: mov dword ptr fs:[0], esp */
   6383     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   6384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6385     esp = esp - 0x20u; /* 0x3609A3A8: sub esp, 0x20 */
   6386     _flag_k = FK_CMP;
   6387     PUSH32(esp, esi); /* 0x3609A3AB: push esi */
   6388     PUSH32(esp, 0x148u); /* 0x3609A3AC: push 0x148 */
   6389     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A3B1: call 0x3615fd6a */ /* not lifted */
   6390     RECOMP_FLAGS_IN();
   6391     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6393     esp = esp + 4; /* 0x3609A3B6: add esp, 4 */
   6394     _flag_k = FK_ADD;
   6395     MEM32(ebp + (-0x10)) = eax; /* 0x3609A3B9: mov dword ptr [ebp - 0x10], eax */
   6396     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6397     esi = 0; /* 0x3609A3BC: xor esi, esi */
   6398     _cf = 0;
   6399     _flag_k = FK_TEST;
   6400     /* cmp eax, esi */ /* 0x3609A3BE: cmp eax, esi */
   6401     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   6402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6403     _flag_k = FK_CMP;
   6404     MEM32(ebp + (-0x4)) = esi; /* 0x3609A3C0: mov dword ptr [ebp - 4], esi */
   6405     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A3CE; /* 0x3609A3C3: je 0x3609a3ce */
   6406 L_3609A3C5:
   6407     ecx = eax; /* 0x3609A3C5: mov ecx, eax */
   6408     RECOMP_ICALL(0x3609A8E0u); /* 0x3609A3C7: call 0x3609a8e0 */ /* not lifted */
   6409     RECOMP_FLAGS_IN();
   6410     esi = eax; /* 0x3609A3CC: mov esi, eax */
   6411 L_3609A3CE:
   6412     PUSH32(esp, 0x41A00000u); /* 0x3609A3CE: push 0x41a00000 */
   6413     ecx = esi; /* 0x3609A3D3: mov ecx, esi */
   6414     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609A3D5: mov dword ptr [ebp - 4], 0xffffffff */
   6415     RECOMP_ICALL(MEM32(0x36170234)); /* 0x3609A3DC: call dword ptr [0x36170234] */
   6416     RECOMP_FLAGS_IN();
   6417     eax = ebp + (-0x1C); /* 0x3609A3E2: lea eax, [ebp - 0x1c] */
   6418     PUSH32(esp, eax); /* 0x3609A3E5: push eax */
   6419     ecx = esi; /* 0x3609A3E6: mov ecx, esi */
   6420     MEM32(ebp + (-0x1C)) = 0; /* 0x3609A3E8: mov dword ptr [ebp - 0x1c], 0 */
   6421     MEM32(ebp + (-0x18)) = 0; /* 0x3609A3EF: mov dword ptr [ebp - 0x18], 0 */
   6422     MEM32(ebp + (-0x14)) = 0; /* 0x3609A3F6: mov dword ptr [ebp - 0x14], 0 */
   6423     RECOMP_ICALL(MEM32(0x36170360)); /* 0x3609A3FD: call dword ptr [0x36170360] */
   6424     RECOMP_FLAGS_IN();
   6425     ecx = ebp + (-0x20); /* 0x3609A403: lea ecx, [ebp - 0x20] */
   6426     PUSH32(esp, ecx); /* 0x3609A406: push ecx */
   6427     ecx = esi; /* 0x3609A407: mov ecx, esi */
   6428     MEM32(ebp + (-0x20)) = 0; /* 0x3609A409: mov dword ptr [ebp - 0x20], 0 */
   6429     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x3609A410: mov dword ptr [ebp - 0x1c], 0x3f800000 */
   6430     MEM32(ebp + (-0x18)) = 0; /* 0x3609A417: mov dword ptr [ebp - 0x18], 0 */
   6431     MEM32(ebp + (-0x14)) = 0; /* 0x3609A41E: mov dword ptr [ebp - 0x14], 0 */
   6432     RECOMP_ICALL(MEM32(0x361702E4)); /* 0x3609A425: call dword ptr [0x361702e4] */
   6433     RECOMP_FLAGS_IN();
   6434     edx = ebp + (-0x2C); /* 0x3609A42B: lea edx, [ebp - 0x2c] */
   6435     PUSH32(esp, edx); /* 0x3609A42E: push edx */
   6436     ecx = esi; /* 0x3609A42F: mov ecx, esi */
   6437     MEM32(ebp + (-0x2C)) = 0; /* 0x3609A431: mov dword ptr [ebp - 0x2c], 0 */
   6438     MEM32(ebp + (-0x28)) = 0; /* 0x3609A438: mov dword ptr [ebp - 0x28], 0 */
   6439     MEM32(ebp + (-0x24)) = 0; /* 0x3609A43F: mov dword ptr [ebp - 0x24], 0 */
   6440     RECOMP_ICALL(MEM32(0x361702BC)); /* 0x3609A446: call dword ptr [0x361702bc] */
   6441     RECOMP_FLAGS_IN();
   6442     PUSH32(esp, 0x447A0000u); /* 0x3609A44C: push 0x447a0000 */
   6443     ecx = esi; /* 0x3609A451: mov ecx, esi */
   6444     RECOMP_ICALL(MEM32(0x3617025C)); /* 0x3609A453: call dword ptr [0x3617025c] */
   6445     RECOMP_FLAGS_IN();
   6446     PUSH32(esp, 0x41000000u); /* 0x3609A459: push 0x41000000 */
   6447     ecx = esi; /* 0x3609A45E: mov ecx, esi */
   6448     RECOMP_ICALL(MEM32(0x36170244)); /* 0x3609A460: call dword ptr [0x36170244] */
   6449     RECOMP_FLAGS_IN();
   6450     PUSH32(esp, 0x3F19999Au); /* 0x3609A466: push 0x3f19999a */
   6451     ecx = esi; /* 0x3609A46B: mov ecx, esi */
   6452     RECOMP_ICALL(MEM32(0x361702E0)); /* 0x3609A46D: call dword ptr [0x361702e0] */
   6453     RECOMP_FLAGS_IN();
   6454     PUSH32(esp, 0x41000000u); /* 0x3609A473: push 0x41000000 */
   6455     ecx = esi; /* 0x3609A478: mov ecx, esi */
   6456     RECOMP_ICALL(MEM32(0x36170260)); /* 0x3609A47A: call dword ptr [0x36170260] */
   6457     RECOMP_FLAGS_IN();
   6458     ecx = esi; /* 0x3609A480: mov ecx, esi */
   6459     RECOMP_ICALL(MEM32(0x3617034C)); /* 0x3609A482: call dword ptr [0x3617034c] */
   6460     RECOMP_FLAGS_IN();
   6461     PUSH32(esp, 4); /* 0x3609A488: push 4 */
   6462     ecx = esi; /* 0x3609A48A: mov ecx, esi */
   6463     RECOMP_ICALL(MEM32(0x36170238)); /* 0x3609A48C: call dword ptr [0x36170238] */
   6464     RECOMP_FLAGS_IN();
   6465     ecx = MEM32(ebp + (-0xC)); /* 0x3609A492: mov ecx, dword ptr [ebp - 0xc] */
   6466     eax = esi; /* 0x3609A495: mov eax, esi */
   6467     esi = POP32_VAL(esp); /* 0x3609A497: pop esi */
   6468     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A498: mov dword ptr fs:[0], ecx */
   6469     esp = ebp; /* 0x3609A49F: mov esp, ebp */
   6470     ebp = POP32_VAL(esp); /* 0x3609A4A1: pop ebp */
   6471     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A4A2: ret  */
   6472     RECOMP_REGS_OUT();
   6473 }
   6474 
   6475 void sub_3609A3F6(void) {
   6476     int _fpu_cmp = 0;
   6477     uint32_t _cf = 0;
   6478     int _df = 1;
   6479     uint32_t _flag_k = FK_NONE;
   6480     uint32_t _flag_a = 0, _flag_b = 0;
   6481     uint32_t _itail_tgt = 0;
   6482     RECOMP_REGS_LOCALS
   6483     RECOMP_ENTER(0x3609A3F6u);
   6484 
   6485 L_3609A3F6:
   6486     MEM32(ebp + (-0x14)) = 0; /* 0x3609A3F6: mov dword ptr [ebp - 0x14], 0 */
   6487     RECOMP_ICALL(MEM32(0x36170360)); /* 0x3609A3FD: call dword ptr [0x36170360] */
   6488     RECOMP_FLAGS_IN();
   6489     ecx = ebp + (-0x20); /* 0x3609A403: lea ecx, [ebp - 0x20] */
   6490     PUSH32(esp, ecx); /* 0x3609A406: push ecx */
   6491     ecx = esi; /* 0x3609A407: mov ecx, esi */
   6492     MEM32(ebp + (-0x20)) = 0; /* 0x3609A409: mov dword ptr [ebp - 0x20], 0 */
   6493     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x3609A410: mov dword ptr [ebp - 0x1c], 0x3f800000 */
   6494     MEM32(ebp + (-0x18)) = 0; /* 0x3609A417: mov dword ptr [ebp - 0x18], 0 */
   6495     MEM32(ebp + (-0x14)) = 0; /* 0x3609A41E: mov dword ptr [ebp - 0x14], 0 */
   6496     RECOMP_ICALL(MEM32(0x361702E4)); /* 0x3609A425: call dword ptr [0x361702e4] */
   6497     RECOMP_FLAGS_IN();
   6498     edx = ebp + (-0x2C); /* 0x3609A42B: lea edx, [ebp - 0x2c] */
   6499     PUSH32(esp, edx); /* 0x3609A42E: push edx */
   6500     ecx = esi; /* 0x3609A42F: mov ecx, esi */
   6501     MEM32(ebp + (-0x2C)) = 0; /* 0x3609A431: mov dword ptr [ebp - 0x2c], 0 */
   6502     MEM32(ebp + (-0x28)) = 0; /* 0x3609A438: mov dword ptr [ebp - 0x28], 0 */
   6503     MEM32(ebp + (-0x24)) = 0; /* 0x3609A43F: mov dword ptr [ebp - 0x24], 0 */
   6504     RECOMP_ICALL(MEM32(0x361702BC)); /* 0x3609A446: call dword ptr [0x361702bc] */
   6505     RECOMP_FLAGS_IN();
   6506     PUSH32(esp, 0x447A0000u); /* 0x3609A44C: push 0x447a0000 */
   6507     ecx = esi; /* 0x3609A451: mov ecx, esi */
   6508     RECOMP_ICALL(MEM32(0x3617025C)); /* 0x3609A453: call dword ptr [0x3617025c] */
   6509     RECOMP_FLAGS_IN();
   6510     PUSH32(esp, 0x41000000u); /* 0x3609A459: push 0x41000000 */
   6511     ecx = esi; /* 0x3609A45E: mov ecx, esi */
   6512     RECOMP_ICALL(MEM32(0x36170244)); /* 0x3609A460: call dword ptr [0x36170244] */
   6513     RECOMP_FLAGS_IN();
   6514     PUSH32(esp, 0x3F19999Au); /* 0x3609A466: push 0x3f19999a */
   6515     ecx = esi; /* 0x3609A46B: mov ecx, esi */
   6516     RECOMP_ICALL(MEM32(0x361702E0)); /* 0x3609A46D: call dword ptr [0x361702e0] */
   6517     RECOMP_FLAGS_IN();
   6518     PUSH32(esp, 0x41000000u); /* 0x3609A473: push 0x41000000 */
   6519     ecx = esi; /* 0x3609A478: mov ecx, esi */
   6520     RECOMP_ICALL(MEM32(0x36170260)); /* 0x3609A47A: call dword ptr [0x36170260] */
   6521     RECOMP_FLAGS_IN();
   6522     ecx = esi; /* 0x3609A480: mov ecx, esi */
   6523     RECOMP_ICALL(MEM32(0x3617034C)); /* 0x3609A482: call dword ptr [0x3617034c] */
   6524     RECOMP_FLAGS_IN();
   6525     PUSH32(esp, 4); /* 0x3609A488: push 4 */
   6526     ecx = esi; /* 0x3609A48A: mov ecx, esi */
   6527     RECOMP_ICALL(MEM32(0x36170238)); /* 0x3609A48C: call dword ptr [0x36170238] */
   6528     RECOMP_FLAGS_IN();
   6529     ecx = MEM32(ebp + (-0xC)); /* 0x3609A492: mov ecx, dword ptr [ebp - 0xc] */
   6530     eax = esi; /* 0x3609A495: mov eax, esi */
   6531     esi = POP32_VAL(esp); /* 0x3609A497: pop esi */
   6532     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A498: mov dword ptr fs:[0], ecx */
   6533     esp = ebp; /* 0x3609A49F: mov esp, ebp */
   6534     ebp = POP32_VAL(esp); /* 0x3609A4A1: pop ebp */
   6535     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A4A2: ret  */
   6536     RECOMP_REGS_OUT();
   6537 }
   6538 
   6539 void sub_3609A41E(void) {
   6540     int _fpu_cmp = 0;
   6541     uint32_t _cf = 0;
   6542     int _df = 1;
   6543     uint32_t _flag_k = FK_NONE;
   6544     uint32_t _flag_a = 0, _flag_b = 0;
   6545     uint32_t _itail_tgt = 0;
   6546     RECOMP_REGS_LOCALS
   6547     RECOMP_ENTER(0x3609A41Eu);
   6548 
   6549 L_3609A41E:
   6550     MEM32(ebp + (-0x14)) = 0; /* 0x3609A41E: mov dword ptr [ebp - 0x14], 0 */
   6551     RECOMP_ICALL(MEM32(0x361702E4)); /* 0x3609A425: call dword ptr [0x361702e4] */
   6552     RECOMP_FLAGS_IN();
   6553     edx = ebp + (-0x2C); /* 0x3609A42B: lea edx, [ebp - 0x2c] */
   6554     PUSH32(esp, edx); /* 0x3609A42E: push edx */
   6555     ecx = esi; /* 0x3609A42F: mov ecx, esi */
   6556     MEM32(ebp + (-0x2C)) = 0; /* 0x3609A431: mov dword ptr [ebp - 0x2c], 0 */
   6557     MEM32(ebp + (-0x28)) = 0; /* 0x3609A438: mov dword ptr [ebp - 0x28], 0 */
   6558     MEM32(ebp + (-0x24)) = 0; /* 0x3609A43F: mov dword ptr [ebp - 0x24], 0 */
   6559     RECOMP_ICALL(MEM32(0x361702BC)); /* 0x3609A446: call dword ptr [0x361702bc] */
   6560     RECOMP_FLAGS_IN();
   6561     PUSH32(esp, 0x447A0000u); /* 0x3609A44C: push 0x447a0000 */
   6562     ecx = esi; /* 0x3609A451: mov ecx, esi */
   6563     RECOMP_ICALL(MEM32(0x3617025C)); /* 0x3609A453: call dword ptr [0x3617025c] */
   6564     RECOMP_FLAGS_IN();
   6565     PUSH32(esp, 0x41000000u); /* 0x3609A459: push 0x41000000 */
   6566     ecx = esi; /* 0x3609A45E: mov ecx, esi */
   6567     RECOMP_ICALL(MEM32(0x36170244)); /* 0x3609A460: call dword ptr [0x36170244] */
   6568     RECOMP_FLAGS_IN();
   6569     PUSH32(esp, 0x3F19999Au); /* 0x3609A466: push 0x3f19999a */
   6570     ecx = esi; /* 0x3609A46B: mov ecx, esi */
   6571     RECOMP_ICALL(MEM32(0x361702E0)); /* 0x3609A46D: call dword ptr [0x361702e0] */
   6572     RECOMP_FLAGS_IN();
   6573     PUSH32(esp, 0x41000000u); /* 0x3609A473: push 0x41000000 */
   6574     ecx = esi; /* 0x3609A478: mov ecx, esi */
   6575     RECOMP_ICALL(MEM32(0x36170260)); /* 0x3609A47A: call dword ptr [0x36170260] */
   6576     RECOMP_FLAGS_IN();
   6577     ecx = esi; /* 0x3609A480: mov ecx, esi */
   6578     RECOMP_ICALL(MEM32(0x3617034C)); /* 0x3609A482: call dword ptr [0x3617034c] */
   6579     RECOMP_FLAGS_IN();
   6580     PUSH32(esp, 4); /* 0x3609A488: push 4 */
   6581     ecx = esi; /* 0x3609A48A: mov ecx, esi */
   6582     RECOMP_ICALL(MEM32(0x36170238)); /* 0x3609A48C: call dword ptr [0x36170238] */
   6583     RECOMP_FLAGS_IN();
   6584     ecx = MEM32(ebp + (-0xC)); /* 0x3609A492: mov ecx, dword ptr [ebp - 0xc] */
   6585     eax = esi; /* 0x3609A495: mov eax, esi */
   6586     esi = POP32_VAL(esp); /* 0x3609A497: pop esi */
   6587     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A498: mov dword ptr fs:[0], ecx */
   6588     esp = ebp; /* 0x3609A49F: mov esp, ebp */
   6589     ebp = POP32_VAL(esp); /* 0x3609A4A1: pop ebp */
   6590     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A4A2: ret  */
   6591     RECOMP_REGS_OUT();
   6592 }
   6593 
   6594 void sub_3609A4B0(void) {
   6595     int _fpu_cmp = 0;
   6596     uint32_t _cf = 0;
   6597     int _df = 1;
   6598     uint32_t _flag_k = FK_NONE;
   6599     uint32_t _flag_a = 0, _flag_b = 0;
   6600     uint32_t _itail_tgt = 0;
   6601     RECOMP_REGS_LOCALS
   6602     RECOMP_ENTER(0x3609A4B0u);
   6603 
   6604 L_3609A4B0:
   6605     eax = MEM32(ecx + 0x60); /* 0x3609A4B0: mov eax, dword ptr [ecx + 0x60] */
   6606     /* test eax, eax */ /* 0x3609A4B3: test eax, eax */
   6607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6608     _cf = 0;
   6609     _flag_k = FK_TEST;
   6610     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A4C0; /* 0x3609A4B5: je 0x3609a4c0 */
   6611 L_3609A4B7:
   6612     ecx = MEM32(ecx + 0x78); /* 0x3609A4B7: mov ecx, dword ptr [ecx + 0x78] */
   6613     MEM32(eax + 0x134) = ecx; /* 0x3609A4BA: mov dword ptr [eax + 0x134], ecx */
   6614 L_3609A4C0:
   6615     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A4C0: ret  */
   6616     RECOMP_REGS_OUT();
   6617 }
   6618 
   6619 void sub_3609A4D0(void) {
   6620     int _fpu_cmp = 0;
   6621     uint32_t _cf = 0;
   6622     int _df = 1;
   6623     uint32_t _flag_k = FK_NONE;
   6624     uint32_t _flag_a = 0, _flag_b = 0;
   6625     uint32_t _itail_tgt = 0;
   6626     RECOMP_REGS_LOCALS
   6627     RECOMP_ENTER(0x3609A4D0u);
   6628 
   6629 L_3609A4D0:
   6630     PUSH32(esp, esi); /* 0x3609A4D0: push esi */
   6631     esi = ecx; /* 0x3609A4D1: mov esi, ecx */
   6632     eax = MEM32(esi); /* 0x3609A4D3: mov eax, dword ptr [esi] */
   6633     PUSH32(esp, 2); /* 0x3609A4D5: push 2 */
   6634     PUSH32(esp, 0xCu); /* 0x3609A4D7: push 0xc */
   6635     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3609A4D9: call dword ptr [eax + 4] */
   6636     RECOMP_FLAGS_IN();
   6637     ecx = esi; /* 0x3609A4DC: mov ecx, esi */
   6638     MEM32(esi + 0x1D0) = eax; /* 0x3609A4DE: mov dword ptr [esi + 0x1d0], eax */
   6639     RECOMP_ICALL(0x36099EC0u); /* 0x3609A4E4: call 0x36099ec0 */ /* not lifted */
   6640     RECOMP_FLAGS_IN();
   6641     esi = POP32_VAL(esp); /* 0x3609A4E9: pop esi */
   6642     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A4EA: ret  */
   6643     RECOMP_REGS_OUT();
   6644 }
   6645 
   6646 void sub_3609A4F0(void) {
   6647     int _fpu_cmp = 0;
   6648     uint32_t _cf = 0;
   6649     int _df = 1;
   6650     uint32_t _flag_k = FK_NONE;
   6651     uint32_t _flag_a = 0, _flag_b = 0;
   6652     uint32_t _itail_tgt = 0;
   6653     RECOMP_REGS_LOCALS
   6654     RECOMP_ENTER(0x3609A4F0u);
   6655 
   6656 L_3609A4F0:
   6657     PUSH32(esp, ebp); /* 0x3609A4F0: push ebp */
   6658     ebp = esp; /* 0x3609A4F1: mov ebp, esp */
   6659     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609A4F3: push -1 */
   6660     PUSH32(esp, 0x361667DBu); /* 0x3609A4F5: push 0x361667db */
   6661     eax = MEM32(FS_BASE + (0)); /* 0x3609A4FA: mov eax, dword ptr fs:[0] */
   6662     PUSH32(esp, eax); /* 0x3609A500: push eax */
   6663     MEM32(FS_BASE + (0)) = esp; /* 0x3609A501: mov dword ptr fs:[0], esp */
   6664     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6666     esp = esp - 8; /* 0x3609A508: sub esp, 8 */
   6667     _flag_k = FK_CMP;
   6668     PUSH32(esp, edi); /* 0x3609A50B: push edi */
   6669     edi = MEM32(ebp + 0x8); /* 0x3609A50C: mov edi, dword ptr [ebp + 8] */
   6670     eax = ebp + 0x8; /* 0x3609A50F: lea eax, [ebp + 8] */
   6671     PUSH32(esp, eax); /* 0x3609A512: push eax */
   6672     ecx = edi; /* 0x3609A513: mov ecx, edi */
   6673     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3609A515: call dword ptr [0x3616fa8c] */
   6674     RECOMP_FLAGS_IN();
   6675     ecx = MEM32(ebp + 0x8); /* 0x3609A51B: mov ecx, dword ptr [ebp + 8] */
   6676     eax = 0x81E722C3u; /* 0x3609A51E: mov eax, 0x81e722c3 */
   6677     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3609A523: imul ecx */
   6678       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6679       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6680     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6682     edx = edx + ecx; /* 0x3609A525: add edx, ecx */
   6683     _flag_k = FK_ADD;
   6684     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x3609A527: sar edx, 9 */
   6685     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6686     edx = (uint32_t)((int32_t)edx >> 9u);
   6687     ecx = edx; /* 0x3609A52A: mov ecx, edx */
   6688     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3609A52C: shr ecx, 0x1f */
   6689     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6690     ecx = ecx >> 31u; /* 0x3609A52C: shr ecx, 0x1f */
   6691     eax = edx + ecx + (-0x1); /* 0x3609A52F: lea eax, [edx + ecx - 1] */
   6692     /* test eax, eax */ /* 0x3609A533: test eax, eax */
   6693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6694     _cf = 0;
   6695     _flag_k = FK_TEST;
   6696     MEM32(ebp + 0x8) = eax; /* 0x3609A535: mov dword ptr [ebp + 8], eax */
   6697     MEM32(ebp + (-0x10)) = 0; /* 0x3609A538: mov dword ptr [ebp - 0x10], 0 */
   6698     if (TEST_LE(_flag_a, _flag_b)) goto L_3609A61E; /* 0x3609A53F: jle 0x3609a61e */
   6699 L_3609A545:
   6700     PUSH32(esp, ebx); /* 0x3609A545: push ebx */
   6701     PUSH32(esp, esi); /* 0x3609A546: push esi */
   6702 L_3609A547:
   6703     PUSH32(esp, 0x1Cu); /* 0x3609A547: push 0x1c */
   6704     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A549: call 0x3615fd6a */ /* not lifted */
   6705     RECOMP_FLAGS_IN();
   6706     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6707     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6708     esp = esp + 4; /* 0x3609A54E: add esp, 4 */
   6709     _flag_k = FK_ADD;
   6710     MEM32(ebp + (-0x14)) = eax; /* 0x3609A551: mov dword ptr [ebp - 0x14], eax */
   6711     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6712     esi = 0; /* 0x3609A554: xor esi, esi */
   6713     _cf = 0;
   6714     _flag_k = FK_TEST;
   6715     /* cmp eax, esi */ /* 0x3609A556: cmp eax, esi */
   6716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   6717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6718     _flag_k = FK_CMP;
   6719     MEM32(ebp + (-0x4)) = esi; /* 0x3609A558: mov dword ptr [ebp - 4], esi */
   6720     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A566; /* 0x3609A55B: je 0x3609a566 */
   6721 L_3609A55D:
   6722     ecx = eax; /* 0x3609A55D: mov ecx, eax */
   6723     RECOMP_ICALL(0x3609A630u); /* 0x3609A55F: call 0x3609a630 */ /* not lifted */
   6724     RECOMP_FLAGS_IN();
   6725     esi = eax; /* 0x3609A564: mov esi, eax */
   6726 L_3609A566:
   6727     ebx = MEM32(0x3616FAD0); /* 0x3609A566: mov ebx, dword ptr [0x3616fad0] */
   6728     PUSH32(esp, esi); /* 0x3609A56C: push esi */
   6729     ecx = edi; /* 0x3609A56D: mov ecx, edi */
   6730     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609A56F: mov dword ptr [ebp - 4], 0xffffffff */
   6731     RECOMP_ICALL(ebx); /* 0x3609A576: call ebx */
   6732     RECOMP_FLAGS_IN();
   6733     edx = esi + 0x4; /* 0x3609A578: lea edx, [esi + 4] */
   6734     PUSH32(esp, edx); /* 0x3609A57B: push edx */
   6735     ecx = edi; /* 0x3609A57C: mov ecx, edi */
   6736     RECOMP_ICALL(ebx); /* 0x3609A57E: call ebx */
   6737     RECOMP_FLAGS_IN();
   6738     eax = esi + 0x8; /* 0x3609A580: lea eax, [esi + 8] */
   6739     PUSH32(esp, eax); /* 0x3609A583: push eax */
   6740     ecx = edi; /* 0x3609A584: mov ecx, edi */
   6741     RECOMP_ICALL(ebx); /* 0x3609A586: call ebx */
   6742     RECOMP_FLAGS_IN();
   6743     ebx = MEM32(0x3616FA8C); /* 0x3609A588: mov ebx, dword ptr [0x3616fa8c] */
   6744     ecx = esi + 0xC; /* 0x3609A58E: lea ecx, [esi + 0xc] */
   6745     PUSH32(esp, ecx); /* 0x3609A591: push ecx */
   6746     ecx = edi; /* 0x3609A592: mov ecx, edi */
   6747     RECOMP_ICALL(ebx); /* 0x3609A594: call ebx */
   6748     RECOMP_FLAGS_IN();
   6749     edx = esi + 0x10; /* 0x3609A596: lea edx, [esi + 0x10] */
   6750     PUSH32(esp, edx); /* 0x3609A599: push edx */
   6751     ecx = edi; /* 0x3609A59A: mov ecx, edi */
   6752     RECOMP_ICALL(ebx); /* 0x3609A59C: call ebx */
   6753     RECOMP_FLAGS_IN();
   6754     eax = MEM32(esi + 0x14); /* 0x3609A59E: mov eax, dword ptr [esi + 0x14] */
   6755     PUSH32(esp, eax); /* 0x3609A5A1: push eax */
   6756     PUSH32(esp, edi); /* 0x3609A5A2: push edi */
   6757     RECOMP_ICALL(0x360BD000u); /* 0x3609A5A3: call 0x360bd000 */ /* not lifted */
   6758     RECOMP_FLAGS_IN();
   6759     ecx = MEM32(esi + 0x18); /* 0x3609A5A8: mov ecx, dword ptr [esi + 0x18] */
   6760     PUSH32(esp, ecx); /* 0x3609A5AB: push ecx */
   6761     PUSH32(esp, edi); /* 0x3609A5AC: push edi */
   6762     RECOMP_ICALL(0x360C3DA0u); /* 0x3609A5AD: call 0x360c3da0 */ /* not lifted */
   6763     RECOMP_FLAGS_IN();
   6764     edx = MEM32(ebp + 0xC); /* 0x3609A5B2: mov edx, dword ptr [ebp + 0xc] */
   6765     ebx = MEM32(edx + 0x4); /* 0x3609A5B5: mov ebx, dword ptr [edx + 4] */
   6766     eax = MEM32(ebx + 0x4); /* 0x3609A5B8: mov eax, dword ptr [ebx + 4] */
   6767     PUSH32(esp, 0xCu); /* 0x3609A5BB: push 0xc */
   6768     MEM32(ebp + (-0x14)) = eax; /* 0x3609A5BD: mov dword ptr [ebp - 0x14], eax */
   6769     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A5C0: call 0x3615fd6a */ /* not lifted */
   6770     RECOMP_FLAGS_IN();
   6771     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6773     esp = esp + 0x14u; /* 0x3609A5C5: add esp, 0x14 */
   6774     _flag_k = FK_ADD;
   6775     /* test ebx, ebx */ /* 0x3609A5C8: test ebx, ebx */
   6776     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6777     _cf = 0;
   6778     _flag_k = FK_TEST;
   6779     ecx = ebx; /* 0x3609A5CA: mov ecx, ebx */
   6780     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609A5D0; /* 0x3609A5CC: jne 0x3609a5d0 */
   6781 L_3609A5CE:
   6782     ecx = eax; /* 0x3609A5CE: mov ecx, eax */
   6783 L_3609A5D0:
   6784     MEM32(eax) = ecx; /* 0x3609A5D0: mov dword ptr [eax], ecx */
   6785     ecx = MEM32(ebp + (-0x14)); /* 0x3609A5D2: mov ecx, dword ptr [ebp - 0x14] */
   6786     /* test ecx, ecx */ /* 0x3609A5D5: test ecx, ecx */
   6787     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6788     _cf = 0;
   6789     _flag_k = FK_TEST;
   6790     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609A5DB; /* 0x3609A5D7: jne 0x3609a5db */
   6791 L_3609A5D9:
   6792     ecx = eax; /* 0x3609A5D9: mov ecx, eax */
   6793 L_3609A5DB:
   6794     MEM32(eax + 0x4) = ecx; /* 0x3609A5DB: mov dword ptr [eax + 4], ecx */
   6795     MEM32(ebx + 0x4) = eax; /* 0x3609A5DE: mov dword ptr [ebx + 4], eax */
   6796     ecx = MEM32(eax + 0x4); /* 0x3609A5E1: mov ecx, dword ptr [eax + 4] */
   6797     MEM32(ecx) = eax; /* 0x3609A5E4: mov dword ptr [ecx], eax */
   6798     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   6799     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6800     eax = eax + 8; /* 0x3609A5E6: add eax, 8 */
   6801     _flag_k = FK_ADD;
   6802     /* test eax, eax */ /* 0x3609A5E9: test eax, eax */
   6803     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6804     _cf = 0;
   6805     _flag_k = FK_TEST;
   6806     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A5EF; /* 0x3609A5EB: je 0x3609a5ef */
   6807 L_3609A5ED:
   6808     MEM32(eax) = esi; /* 0x3609A5ED: mov dword ptr [eax], esi */
   6809 L_3609A5EF:
   6810     eax = MEM32(ebp + 0xC); /* 0x3609A5EF: mov eax, dword ptr [ebp + 0xc] */
   6811     esi = MEM32(eax + 0x8); /* 0x3609A5F2: mov esi, dword ptr [eax + 8] */
   6812     ecx = MEM32(ebp + 0x8); /* 0x3609A5F5: mov ecx, dword ptr [ebp + 8] */
   6813     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   6814     esi = esi + 1; /* 0x3609A5F8: inc esi */
   6815     _flag_k = FK_INC;
   6816     MEM32(eax + 0x8) = esi; /* 0x3609A5F9: mov dword ptr [eax + 8], esi */
   6817     eax = MEM32(ebp + (-0x10)); /* 0x3609A5FC: mov eax, dword ptr [ebp - 0x10] */
   6818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6819     eax = eax + 1; /* 0x3609A5FF: inc eax */
   6820     _flag_k = FK_INC;
   6821     /* cmp eax, ecx */ /* 0x3609A600: cmp eax, ecx */
   6822     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6824     _flag_k = FK_CMP;
   6825     MEM32(ebp + (-0x10)) = eax; /* 0x3609A602: mov dword ptr [ebp - 0x10], eax */
   6826     RECOMP_BACKEDGE();
   6827     if (CMP_L(_flag_a, _flag_b)) goto L_3609A547; /* 0x3609A605: jl 0x3609a547 */
   6828 L_3609A60B:
   6829     esi = POP32_VAL(esp); /* 0x3609A60B: pop esi */
   6830     ebx = POP32_VAL(esp); /* 0x3609A60C: pop ebx */
   6831     eax = edi; /* 0x3609A60D: mov eax, edi */
   6832     edi = POP32_VAL(esp); /* 0x3609A60F: pop edi */
   6833     ecx = MEM32(ebp + (-0xC)); /* 0x3609A610: mov ecx, dword ptr [ebp - 0xc] */
   6834     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A613: mov dword ptr fs:[0], ecx */
   6835     esp = ebp; /* 0x3609A61A: mov esp, ebp */
   6836     ebp = POP32_VAL(esp); /* 0x3609A61C: pop ebp */
   6837     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A61D: ret  */
   6838 L_3609A61E:
   6839     ecx = MEM32(ebp + (-0xC)); /* 0x3609A61E: mov ecx, dword ptr [ebp - 0xc] */
   6840     eax = edi; /* 0x3609A621: mov eax, edi */
   6841     edi = POP32_VAL(esp); /* 0x3609A623: pop edi */
   6842     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A624: mov dword ptr fs:[0], ecx */
   6843     esp = ebp; /* 0x3609A62B: mov esp, ebp */
   6844     ebp = POP32_VAL(esp); /* 0x3609A62D: pop ebp */
   6845     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A62E: ret  */
   6846     RECOMP_REGS_OUT();
   6847 }
   6848 
   6849 void sub_3609A630(void) {
   6850     int _fpu_cmp = 0;
   6851     uint32_t _cf = 0;
   6852     int _df = 1;
   6853     uint32_t _flag_k = FK_NONE;
   6854     uint32_t _flag_a = 0, _flag_b = 0;
   6855     uint32_t _itail_tgt = 0;
   6856     RECOMP_REGS_LOCALS
   6857     RECOMP_ENTER(0x3609A630u);
   6858 
   6859 L_3609A630:
   6860     PUSH32(esp, ebp); /* 0x3609A630: push ebp */
   6861     ebp = esp; /* 0x3609A631: mov ebp, esp */
   6862     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609A633: push -1 */
   6863     PUSH32(esp, 0x36166806u); /* 0x3609A635: push 0x36166806 */
   6864     eax = MEM32(FS_BASE + (0)); /* 0x3609A63A: mov eax, dword ptr fs:[0] */
   6865     PUSH32(esp, eax); /* 0x3609A640: push eax */
   6866     MEM32(FS_BASE + (0)) = esp; /* 0x3609A641: mov dword ptr fs:[0], esp */
   6867     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6869     esp = esp - 8; /* 0x3609A648: sub esp, 8 */
   6870     _flag_k = FK_CMP;
   6871     PUSH32(esp, ebx); /* 0x3609A64B: push ebx */
   6872     PUSH32(esp, esi); /* 0x3609A64C: push esi */
   6873     esi = ecx; /* 0x3609A64D: mov esi, ecx */
   6874     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6875     ebx = 0; /* 0x3609A64F: xor ebx, ebx */
   6876     _cf = 0;
   6877     _flag_k = FK_TEST;
   6878     PUSH32(esp, edi); /* 0x3609A651: push edi */
   6879     PUSH32(esp, 0x34u); /* 0x3609A652: push 0x34 */
   6880     MEM32(esi) = ebx; /* 0x3609A654: mov dword ptr [esi], ebx */
   6881     MEM32(esi + 0x4) = ebx; /* 0x3609A656: mov dword ptr [esi + 4], ebx */
   6882     MEM32(esi + 0x8) = ebx; /* 0x3609A659: mov dword ptr [esi + 8], ebx */
   6883     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A65C: call 0x3615fd6a */ /* not lifted */
   6884     RECOMP_FLAGS_IN();
   6885     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6886     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6887     esp = esp + 4; /* 0x3609A661: add esp, 4 */
   6888     _flag_k = FK_ADD;
   6889     MEM32(ebp + (-0x14)) = eax; /* 0x3609A664: mov dword ptr [ebp - 0x14], eax */
   6890     /* cmp eax, ebx */ /* 0x3609A667: cmp eax, ebx */
   6891     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6893     _flag_k = FK_CMP;
   6894     MEM32(ebp + (-0x4)) = ebx; /* 0x3609A669: mov dword ptr [ebp - 4], ebx */
   6895     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A677; /* 0x3609A66C: je 0x3609a677 */
   6896 L_3609A66E:
   6897     ecx = eax; /* 0x3609A66E: mov ecx, eax */
   6898     RECOMP_ICALL(0x360BFE20u); /* 0x3609A670: call 0x360bfe20 */ /* not lifted */
   6899     RECOMP_FLAGS_IN();
   6900     goto L_3609A679; /* 0x3609A675: jmp 0x3609a679 */
   6901 L_3609A677:
   6902     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6903     eax = 0; /* 0x3609A677: xor eax, eax */
   6904     _cf = 0;
   6905     _flag_k = FK_TEST;
   6906 L_3609A679:
   6907     PUSH32(esp, 0xCu); /* 0x3609A679: push 0xc */
   6908     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609A67B: mov dword ptr [ebp - 4], 0xffffffff */
   6909     MEM32(esi + 0x14) = eax; /* 0x3609A682: mov dword ptr [esi + 0x14], eax */
   6910     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A685: call 0x3615fd6a */ /* not lifted */
   6911     RECOMP_FLAGS_IN();
   6912     edi = eax; /* 0x3609A68A: mov edi, eax */
   6913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6915     esp = esp + 4; /* 0x3609A68C: add esp, 4 */
   6916     _flag_k = FK_ADD;
   6917     MEM32(ebp + (-0x14)) = edi; /* 0x3609A68F: mov dword ptr [ebp - 0x14], edi */
   6918     /* cmp edi, ebx */ /* 0x3609A692: cmp edi, ebx */
   6919     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   6920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6921     _flag_k = FK_CMP;
   6922     MEM32(ebp + (-0x4)) = 1; /* 0x3609A694: mov dword ptr [ebp - 4], 1 */
   6923     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A6CD; /* 0x3609A69B: je 0x3609a6cd */
   6924 L_3609A69D:
   6925     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3609A69D: mov al, byte ptr [ebp - 0xd] */
   6926     PUSH32(esp, 0xCu); /* 0x3609A6A0: push 0xc */
   6927     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3609A6A2: mov byte ptr [edi], al */
   6928     RECOMP_ICALL(0x3615FD6Au); /* 0x3609A6A4: call 0x3615fd6a */ /* not lifted */
   6929     RECOMP_FLAGS_IN();
   6930     MEM32(eax) = eax; /* 0x3609A6A9: mov dword ptr [eax], eax */
   6931     MEM32(eax + 0x4) = eax; /* 0x3609A6AB: mov dword ptr [eax + 4], eax */
   6932     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6933     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6934     esp = esp + 4; /* 0x3609A6AE: add esp, 4 */
   6935     _flag_k = FK_ADD;
   6936     MEM32(edi + 0x4) = eax; /* 0x3609A6B1: mov dword ptr [edi + 4], eax */
   6937     MEM32(edi + 0x8) = ebx; /* 0x3609A6B4: mov dword ptr [edi + 8], ebx */
   6938     MEM32(esi + 0x18) = edi; /* 0x3609A6B7: mov dword ptr [esi + 0x18], edi */
   6939     edi = POP32_VAL(esp); /* 0x3609A6BA: pop edi */
   6940     eax = esi; /* 0x3609A6BB: mov eax, esi */
   6941     esi = POP32_VAL(esp); /* 0x3609A6BD: pop esi */
   6942     ebx = POP32_VAL(esp); /* 0x3609A6BE: pop ebx */
   6943     ecx = MEM32(ebp + (-0xC)); /* 0x3609A6BF: mov ecx, dword ptr [ebp - 0xc] */
   6944     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A6C2: mov dword ptr fs:[0], ecx */
   6945     esp = ebp; /* 0x3609A6C9: mov esp, ebp */
   6946     ebp = POP32_VAL(esp); /* 0x3609A6CB: pop ebp */
   6947     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A6CC: ret  */
   6948 L_3609A6CD:
   6949     ecx = MEM32(ebp + (-0xC)); /* 0x3609A6CD: mov ecx, dword ptr [ebp - 0xc] */
   6950     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6951     eax = 0; /* 0x3609A6D0: xor eax, eax */
   6952     _cf = 0;
   6953     _flag_k = FK_TEST;
   6954     MEM32(esi + 0x18) = eax; /* 0x3609A6D2: mov dword ptr [esi + 0x18], eax */
   6955     edi = POP32_VAL(esp); /* 0x3609A6D5: pop edi */
   6956     eax = esi; /* 0x3609A6D6: mov eax, esi */
   6957     esi = POP32_VAL(esp); /* 0x3609A6D8: pop esi */
   6958     ebx = POP32_VAL(esp); /* 0x3609A6D9: pop ebx */
   6959     MEM32(FS_BASE + (0)) = ecx; /* 0x3609A6DA: mov dword ptr fs:[0], ecx */
   6960     esp = ebp; /* 0x3609A6E1: mov esp, ebp */
   6961     ebp = POP32_VAL(esp); /* 0x3609A6E3: pop ebp */
   6962     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A6E4: ret  */
   6963     RECOMP_REGS_OUT();
   6964 }
   6965 
   6966 void sub_3609A6F0(void) {
   6967     int _fpu_cmp = 0;
   6968     uint32_t _cf = 0;
   6969     int _df = 1;
   6970     uint32_t _flag_k = FK_NONE;
   6971     uint32_t _flag_a = 0, _flag_b = 0;
   6972     uint32_t _itail_tgt = 0;
   6973     RECOMP_REGS_LOCALS
   6974     RECOMP_ENTER(0x3609A6F0u);
   6975 
   6976 L_3609A6F0:
   6977     PUSH32(esp, ebp); /* 0x3609A6F0: push ebp */
   6978     ebp = esp; /* 0x3609A6F1: mov ebp, esp */
   6979     PUSH32(esp, ecx); /* 0x3609A6F3: push ecx */
   6980     PUSH32(esp, ebx); /* 0x3609A6F4: push ebx */
   6981     PUSH32(esp, esi); /* 0x3609A6F5: push esi */
   6982     esi = ecx; /* 0x3609A6F6: mov esi, ecx */
   6983     ecx = MEM32(esi + 0x14); /* 0x3609A6F8: mov ecx, dword ptr [esi + 0x14] */
   6984     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6985     ebx = 0; /* 0x3609A6FB: xor ebx, ebx */
   6986     _cf = 0;
   6987     _flag_k = FK_TEST;
   6988     /* cmp ecx, ebx */ /* 0x3609A6FD: cmp ecx, ebx */
   6989     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   6990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6991     _flag_k = FK_CMP;
   6992     PUSH32(esp, edi); /* 0x3609A6FF: push edi */
   6993     MEM32(ebp + (-0x4)) = esi; /* 0x3609A700: mov dword ptr [ebp - 4], esi */
   6994     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A70B; /* 0x3609A703: je 0x3609a70b */
   6995 L_3609A705:
   6996     eax = MEM32(ecx); /* 0x3609A705: mov eax, dword ptr [ecx] */
   6997     PUSH32(esp, 1); /* 0x3609A707: push 1 */
   6998     RECOMP_ICALL(MEM32(eax)); /* 0x3609A709: call dword ptr [eax] */
   6999     RECOMP_FLAGS_IN();
   7000 L_3609A70B:
   7001     edi = MEM32(esi + 0x18); /* 0x3609A70B: mov edi, dword ptr [esi + 0x18] */
   7002     /* cmp edi, ebx */ /* 0x3609A70E: cmp edi, ebx */
   7003     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   7004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7005     _flag_k = FK_CMP;
   7006     MEM32(esi + 0x14) = ebx; /* 0x3609A710: mov dword ptr [esi + 0x14], ebx */
   7007     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A76C; /* 0x3609A713: je 0x3609a76c */
   7008 L_3609A715:
   7009     ebx = MEM32(edi + 0x4); /* 0x3609A715: mov ebx, dword ptr [edi + 4] */
   7010     esi = MEM32(ebx); /* 0x3609A718: mov esi, dword ptr [ebx] */
   7011     /* cmp esi, ebx */ /* 0x3609A71A: cmp esi, ebx */
   7012     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   7013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7014     _flag_k = FK_CMP;
   7015     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A745; /* 0x3609A71C: je 0x3609a745 */
   7016 L_3609A71E:
   7017     eax = esi; /* 0x3609A71E: mov eax, esi */
   7018     ecx = MEM32(eax + 0x4); /* 0x3609A720: mov ecx, dword ptr [eax + 4] */
   7019     edx = MEM32(eax); /* 0x3609A723: mov edx, dword ptr [eax] */
   7020     esi = MEM32(esi); /* 0x3609A725: mov esi, dword ptr [esi] */
   7021     MEM32(ecx) = edx; /* 0x3609A727: mov dword ptr [ecx], edx */
   7022     ecx = MEM32(eax); /* 0x3609A729: mov ecx, dword ptr [eax] */
   7023     edx = MEM32(eax + 0x4); /* 0x3609A72B: mov edx, dword ptr [eax + 4] */
   7024     PUSH32(esp, eax); /* 0x3609A72E: push eax */
   7025     MEM32(ecx + 0x4) = edx; /* 0x3609A72F: mov dword ptr [ecx + 4], edx */
   7026     RECOMP_ICALL(0x3615FCC4u); /* 0x3609A732: call 0x3615fcc4 */ /* not lifted */
   7027     RECOMP_FLAGS_IN();
   7028     ecx = MEM32(edi + 0x8); /* 0x3609A737: mov ecx, dword ptr [edi + 8] */
   7029     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7031     esp = esp + 4; /* 0x3609A73A: add esp, 4 */
   7032     _flag_k = FK_ADD;
   7033     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7034     ecx = ecx - 1; /* 0x3609A73D: dec ecx */
   7035     _flag_k = FK_DEC;
   7036     /* cmp esi, ebx */ /* 0x3609A73E: cmp esi, ebx */
   7037     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   7038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7039     _flag_k = FK_CMP;
   7040     MEM32(edi + 0x8) = ecx; /* 0x3609A740: mov dword ptr [edi + 8], ecx */
   7041     RECOMP_BACKEDGE();
   7042     if (CMP_NE(_flag_a, _flag_b)) goto L_3609A71E; /* 0x3609A743: jne 0x3609a71e */
   7043 L_3609A745:
   7044     eax = MEM32(edi + 0x4); /* 0x3609A745: mov eax, dword ptr [edi + 4] */
   7045     PUSH32(esp, eax); /* 0x3609A748: push eax */
   7046     RECOMP_ICALL(0x3615FCC4u); /* 0x3609A749: call 0x3615fcc4 */ /* not lifted */
   7047     RECOMP_FLAGS_IN();
   7048     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7049     esi = 0; /* 0x3609A74E: xor esi, esi */
   7050     _cf = 0;
   7051     _flag_k = FK_TEST;
   7052     PUSH32(esp, edi); /* 0x3609A750: push edi */
   7053     MEM32(edi + 0x4) = esi; /* 0x3609A751: mov dword ptr [edi + 4], esi */
   7054     MEM32(edi + 0x8) = esi; /* 0x3609A754: mov dword ptr [edi + 8], esi */
   7055     RECOMP_ICALL(0x3615FCC4u); /* 0x3609A757: call 0x3615fcc4 */ /* not lifted */
   7056     RECOMP_FLAGS_IN();
   7057     ecx = MEM32(ebp + (-0x4)); /* 0x3609A75C: mov ecx, dword ptr [ebp - 4] */
   7058     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7060     esp = esp + 8; /* 0x3609A75F: add esp, 8 */
   7061     _flag_k = FK_ADD;
   7062     edi = POP32_VAL(esp); /* 0x3609A762: pop edi */
   7063     MEM32(ecx + 0x18) = esi; /* 0x3609A763: mov dword ptr [ecx + 0x18], esi */
   7064     esi = POP32_VAL(esp); /* 0x3609A766: pop esi */
   7065     ebx = POP32_VAL(esp); /* 0x3609A767: pop ebx */
   7066     esp = ebp; /* 0x3609A768: mov esp, ebp */
   7067     ebp = POP32_VAL(esp); /* 0x3609A76A: pop ebp */
   7068     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A76B: ret  */
   7069 L_3609A76C:
   7070     edi = POP32_VAL(esp); /* 0x3609A76C: pop edi */
   7071     MEM32(esi + 0x18) = ebx; /* 0x3609A76D: mov dword ptr [esi + 0x18], ebx */
   7072     esi = POP32_VAL(esp); /* 0x3609A770: pop esi */
   7073     ebx = POP32_VAL(esp); /* 0x3609A771: pop ebx */
   7074     esp = ebp; /* 0x3609A772: mov esp, ebp */
   7075     ebp = POP32_VAL(esp); /* 0x3609A774: pop ebp */
   7076     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609A775: ret  */
   7077     RECOMP_REGS_OUT();
   7078 }
   7079 
   7080 void sub_3609A780(void) {
   7081     int _fpu_cmp = 0;
   7082     uint32_t _cf = 0;
   7083     int _df = 1;
   7084     uint32_t _flag_k = FK_NONE;
   7085     uint32_t _flag_a = 0, _flag_b = 0;
   7086     uint32_t _itail_tgt = 0;
   7087     RECOMP_REGS_LOCALS
   7088     RECOMP_ENTER(0x3609A780u);
   7089 
   7090 L_3609A780:
   7091     PUSH32(esp, ebp); /* 0x3609A780: push ebp */
   7092     ebp = esp; /* 0x3609A781: mov ebp, esp */
   7093     PUSH32(esp, ebx); /* 0x3609A783: push ebx */
   7094     ebx = MEM32(ebp + 0x10); /* 0x3609A784: mov ebx, dword ptr [ebp + 0x10] */
   7095     PUSH32(esp, esi); /* 0x3609A787: push esi */
   7096     esi = ecx; /* 0x3609A788: mov esi, ecx */
   7097     eax = MEM32(esi + 0x10); /* 0x3609A78A: mov eax, dword ptr [esi + 0x10] */
   7098     /* test eax, eax */ /* 0x3609A78D: test eax, eax */
   7099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7100     _cf = 0;
   7101     _flag_k = FK_TEST;
   7102     ecx = MEM32(ebp + 0xC); /* 0x3609A78F: mov ecx, dword ptr [ebp + 0xc] */
   7103     PUSH32(esp, edi); /* 0x3609A792: push edi */
   7104     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A7F5; /* 0x3609A793: je 0x3609a7f5 */
   7105 L_3609A795:
   7106     eax = MEM32(esi + 0x4); /* 0x3609A795: mov eax, dword ptr [esi + 4] */
   7107     /* cmp ecx, MEM32(eax) */ /* 0x3609A798: cmp ecx, dword ptr [eax] */
   7108     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   7109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7110     _flag_k = FK_CMP;
   7111     if (CMP_NE(_flag_a, _flag_b)) goto L_3609A7F5; /* 0x3609A79A: jne 0x3609a7f5 */
   7112 L_3609A79C:
   7113     /* cmp ebx, eax */ /* 0x3609A79C: cmp ebx, eax */
   7114     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   7115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7116     _flag_k = FK_CMP;
   7117     if (CMP_NE(_flag_a, _flag_b)) goto L_3609A7F5; /* 0x3609A79E: jne 0x3609a7f5 */
   7118 L_3609A7A0:
   7119     ebx = MEM32(eax + 0x4); /* 0x3609A7A0: mov ebx, dword ptr [eax + 4] */
   7120     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3609A7A3: cmp ebx, dword ptr [esi + 8] */
   7121     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7123     _flag_k = FK_CMP;
   7124     edi = ebx; /* 0x3609A7A6: mov edi, ebx */
   7125     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A7C9; /* 0x3609A7A8: je 0x3609a7c9 */
   7126 L_3609A7AA:
   7127     eax = MEM32(edi + 0x8); /* 0x3609A7AA: mov eax, dword ptr [edi + 8] */
   7128     PUSH32(esp, eax); /* 0x3609A7AD: push eax */
   7129     ecx = esi; /* 0x3609A7AE: mov ecx, esi */
   7130     RECOMP_ICALL(0x3607CD30u); /* 0x3609A7B0: call 0x3607cd30 */ /* not lifted */
   7131     RECOMP_FLAGS_IN();
   7132     edi = MEM32(edi); /* 0x3609A7B5: mov edi, dword ptr [edi] */
   7133     PUSH32(esp, ebx); /* 0x3609A7B7: push ebx */
   7134     RECOMP_ICALL(0x3615FCC4u); /* 0x3609A7B8: call 0x3615fcc4 */ /* not lifted */
   7135     RECOMP_FLAGS_IN();
   7136     eax = MEM32(esi + 0x8); /* 0x3609A7BD: mov eax, dword ptr [esi + 8] */
   7137     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7139     esp = esp + 4; /* 0x3609A7C0: add esp, 4 */
   7140     _flag_k = FK_ADD;
   7141     /* cmp edi, eax */ /* 0x3609A7C3: cmp edi, eax */
   7142     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7144     _flag_k = FK_CMP;
   7145     ebx = edi; /* 0x3609A7C5: mov ebx, edi */
   7146     RECOMP_BACKEDGE();
   7147     if (CMP_NE(_flag_a, _flag_b)) goto L_3609A7AA; /* 0x3609A7C7: jne 0x3609a7aa */
   7148 L_3609A7C9:
   7149     ecx = MEM32(esi + 0x4); /* 0x3609A7C9: mov ecx, dword ptr [esi + 4] */
   7150     edx = MEM32(esi + 0x8); /* 0x3609A7CC: mov edx, dword ptr [esi + 8] */
   7151     MEM32(ecx + 0x4) = edx; /* 0x3609A7CF: mov dword ptr [ecx + 4], edx */
   7152     eax = MEM32(esi + 0x4); /* 0x3609A7D2: mov eax, dword ptr [esi + 4] */
   7153     MEM32(esi + 0x10) = 0; /* 0x3609A7D5: mov dword ptr [esi + 0x10], 0 */
   7154     MEM32(eax) = eax; /* 0x3609A7DC: mov dword ptr [eax], eax */
   7155     eax = MEM32(esi + 0x4); /* 0x3609A7DE: mov eax, dword ptr [esi + 4] */
   7156     MEM32(eax + 0x8) = eax; /* 0x3609A7E1: mov dword ptr [eax + 8], eax */
   7157     eax = MEM32(esi + 0x4); /* 0x3609A7E4: mov eax, dword ptr [esi + 4] */
   7158     ecx = MEM32(eax); /* 0x3609A7E7: mov ecx, dword ptr [eax] */
   7159     eax = MEM32(ebp + 0x8); /* 0x3609A7E9: mov eax, dword ptr [ebp + 8] */
   7160     edi = POP32_VAL(esp); /* 0x3609A7EC: pop edi */
   7161     esi = POP32_VAL(esp); /* 0x3609A7ED: pop esi */
   7162     MEM32(eax) = ecx; /* 0x3609A7EE: mov dword ptr [eax], ecx */
   7163     ebx = POP32_VAL(esp); /* 0x3609A7F0: pop ebx */
   7164     ebp = POP32_VAL(esp); /* 0x3609A7F1: pop ebp */
   7165     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3609A7F2: ret 0xc */
   7166 L_3609A7F5:
   7167     /* cmp ecx, ebx */ /* 0x3609A7F5: cmp ecx, ebx */
   7168     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7170     _flag_k = FK_CMP;
   7171     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A816; /* 0x3609A7F7: je 0x3609a816 */
   7172 L_3609A7F9:
   7173     edi = ecx; /* 0x3609A7F9: mov edi, ecx */
   7174     ecx = ebp + 0xC; /* 0x3609A7FB: lea ecx, [ebp + 0xc] */
   7175     RECOMP_ICALL(0x36096C20u); /* 0x3609A7FE: call 0x36096c20 */ /* not lifted */
   7176     RECOMP_FLAGS_IN();
   7177     PUSH32(esp, edi); /* 0x3609A803: push edi */
   7178     ecx = ebp + 0x10; /* 0x3609A804: lea ecx, [ebp + 0x10] */
   7179     PUSH32(esp, ecx); /* 0x3609A807: push ecx */
   7180     ecx = esi; /* 0x3609A808: mov ecx, esi */
   7181     RECOMP_ICALL(0x3603ECC0u); /* 0x3609A80A: call 0x3603ecc0 */ /* not lifted */
   7182     RECOMP_FLAGS_IN();
   7183     ecx = MEM32(ebp + 0xC); /* 0x3609A80F: mov ecx, dword ptr [ebp + 0xc] */
   7184     /* cmp ecx, ebx */ /* 0x3609A812: cmp ecx, ebx */
   7185     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7187     _flag_k = FK_CMP;
   7188     RECOMP_BACKEDGE();
   7189     if (CMP_NE(_flag_a, _flag_b)) goto L_3609A7F9; /* 0x3609A814: jne 0x3609a7f9 */
   7190 L_3609A816:
   7191     eax = MEM32(ebp + 0x8); /* 0x3609A816: mov eax, dword ptr [ebp + 8] */
   7192     edi = POP32_VAL(esp); /* 0x3609A819: pop edi */
   7193     esi = POP32_VAL(esp); /* 0x3609A81A: pop esi */
   7194     MEM32(eax) = ecx; /* 0x3609A81B: mov dword ptr [eax], ecx */
   7195     ebx = POP32_VAL(esp); /* 0x3609A81D: pop ebx */
   7196     ebp = POP32_VAL(esp); /* 0x3609A81E: pop ebp */
   7197     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3609A81F: ret 0xc */
   7198     RECOMP_REGS_OUT();
   7199 }
   7200 
   7201 void sub_3609A830(void) {
   7202     int _fpu_cmp = 0;
   7203     uint32_t _cf = 0;
   7204     int _df = 1;
   7205     uint32_t _flag_k = FK_NONE;
   7206     uint32_t _flag_a = 0, _flag_b = 0;
   7207     uint32_t _itail_tgt = 0;
   7208     RECOMP_REGS_LOCALS
   7209     RECOMP_ENTER(0x3609A830u);
   7210 
   7211 L_3609A830:
   7212     PUSH32(esp, ebp); /* 0x3609A830: push ebp */
   7213     ebp = esp; /* 0x3609A831: mov ebp, esp */
   7214     eax = MEM32(ecx + 0x4); /* 0x3609A833: mov eax, dword ptr [ecx + 4] */
   7215     edx = MEM32(eax + 0x4); /* 0x3609A836: mov edx, dword ptr [eax + 4] */
   7216     PUSH32(esp, edi); /* 0x3609A839: push edi */
   7217     edi = MEM32(ecx + 0x8); /* 0x3609A83A: mov edi, dword ptr [ecx + 8] */
   7218     /* cmp edx, edi */ /* 0x3609A83D: cmp edx, edi */
   7219     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7221     _flag_k = FK_CMP;
   7222     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609A870; /* 0x3609A83F: je 0x3609a870 */
   7223 L_3609A841:
   7224     PUSH32(esp, ebx); /* 0x3609A841: push ebx */
   7225     ebx = MEM32(ebp + 0x8); /* 0x3609A842: mov ebx, dword ptr [ebp + 8] */
   7226     PUSH32(esp, esi); /* 0x3609A845: push esi */
   7227     esi = MEM32(ebx); /* 0x3609A846: mov esi, dword ptr [ebx] */
   7228 L_3609A848:
   7229     ecx = MEM32(edx + 0xC); /* 0x3609A848: mov ecx, dword ptr [edx + 0xc] */
   7230     /* cmp ecx, esi */ /* 0x3609A84B: cmp ecx, esi */
   7231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   7232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7233     _flag_k = FK_CMP;
   7234     if (CMP_NE(_flag_a, _flag_b)) goto L_3609A85A; /* 0x3609A84D: jne 0x3609a85a */
   7235 L_3609A84F:
   7236     ecx = MEM32(edx + 0x10); /* 0x3609A84F: mov ecx, dword ptr [edx + 0x10] */
   7237     /* cmp ecx, MEM32(ebx + 0x4) */ /* 0x3609A852: cmp ecx, dword ptr [ebx + 4] */
   7238     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x4));
   7239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7240     _flag_k = FK_CMP;
   7241     SET_LO8(ecx, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3609A855: setb cl */
   7242     goto L_3609A85D; /* 0x3609A858: jmp 0x3609a85d */
   7243 L_3609A85A:
   7244     SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x3609A85A: setl cl */
   7245 L_3609A85D:
   7246     /* test LO8(ecx), LO8(ecx) */ /* 0x3609A85D: test cl, cl */
   7247     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7248     _cf = 0;
   7249     _flag_k = FK_NARROW(FK_TEST, 24);
   7250     if (TEST_Z(_flag_a, _flag_b)) goto L_3609A866; /* 0x3609A85F: je 0x3609a866 */
   7251 L_3609A861:
   7252     edx = MEM32(edx + 0x8); /* 0x3609A861: mov edx, dword ptr [edx + 8] */
   7253     goto L_3609A86A; /* 0x3609A864: jmp 0x3609a86a */
   7254 L_3609A866:
   7255     eax = edx; /* 0x3609A866: mov eax, edx */
   7256     edx = MEM32(edx); /* 0x3609A868: mov edx, dword ptr [edx] */
   7257 L_3609A86A:
   7258     /* cmp edx, edi */ /* 0x3609A86A: cmp edx, edi */
   7259     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   7260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7261     _flag_k = FK_CMP;
   7262     RECOMP_BACKEDGE();
   7263     if (CMP_NE(_flag_a, _flag_b)) goto L_3609A848; /* 0x3609A86C: jne 0x3609a848 */
   7264 L_3609A86E:
   7265     esi = POP32_VAL(esp); /* 0x3609A86E: pop esi */
   7266     ebx = POP32_VAL(esp); /* 0x3609A86F: pop ebx */
   7267 L_3609A870:
   7268     edi = POP32_VAL(esp); /* 0x3609A870: pop edi */
   7269     ebp = POP32_VAL(esp); /* 0x3609A871: pop ebp */
   7270     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609A872: ret 4 */
   7271     RECOMP_REGS_OUT();
   7272 }
   7273 
   7274 void sub_3609A880(void) {
   7275     int _fpu_cmp = 0;
   7276     uint32_t _cf = 0;
   7277     int _df = 1;
   7278     uint32_t _flag_k = FK_NONE;
   7279     uint32_t _flag_a = 0, _flag_b = 0;
   7280     uint32_t _itail_tgt = 0;
   7281     RECOMP_REGS_LOCALS
   7282     RECOMP_ENTER(0x3609A880u);
   7283 
   7284     goto L_3609A880;
   7285 L_360990D0:
   7286     PUSH32(esp, ebp); /* 0x360990D0: push ebp */
   7287     ebp = esp; /* 0x360990D1: mov ebp, esp */
   7288     PUSH32(esp, esi); /* 0x360990D3: push esi */
   7289     esi = ecx; /* 0x360990D4: mov esi, ecx */
   7290     RECOMP_ICALL(0x360991E0u); /* 0x360990D6: call 0x360991e0 */ /* not lifted */
   7291     RECOMP_FLAGS_IN();
   7292     /* test MEM8(ebp + 0x8), 1 */ /* 0x360990DB: test byte ptr [ebp + 8], 1 */
   7293     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7294     _cf = 0;
   7295     _flag_k = FK_NARROW(FK_TEST, 24);
   7296     if (TEST_Z(_flag_a, _flag_b)) goto L_360990EA; /* 0x360990DF: je 0x360990ea */
   7297 L_360990E1:
   7298     PUSH32(esp, esi); /* 0x360990E1: push esi */
   7299     RECOMP_ICALL(0x3615FCC4u); /* 0x360990E2: call 0x3615fcc4 */ /* not lifted */
   7300     RECOMP_FLAGS_IN();
   7301     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7303     esp = esp + 4; /* 0x360990E7: add esp, 4 */
   7304     _flag_k = FK_ADD;
   7305 L_360990EA:
   7306     eax = esi; /* 0x360990EA: mov eax, esi */
   7307     esi = POP32_VAL(esp); /* 0x360990EC: pop esi */
   7308     ebp = POP32_VAL(esp); /* 0x360990ED: pop ebp */
   7309     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360990EE: ret 4 */
   7310 L_3609A880:
   7311     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   7312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7313     ecx = ecx - 8; /* 0x3609A880: sub ecx, 8 */
   7314     _flag_k = FK_CMP;
   7315     RECOMP_BACKEDGE();
   7316     goto L_360990D0; /* 0x3609A883: jmp 0x360990d0 */
   7317     { RECOMP_REGS_OUT(); return; } /* end of function */
   7318     RECOMP_REGS_OUT();
   7319 }
   7320 
   7321 void sub_3609A890(void) {
   7322     int _fpu_cmp = 0;
   7323     uint32_t _cf = 0;
   7324     int _df = 1;
   7325     uint32_t _flag_k = FK_NONE;
   7326     uint32_t _flag_a = 0, _flag_b = 0;
   7327     uint32_t _itail_tgt = 0;
   7328     RECOMP_REGS_LOCALS
   7329     RECOMP_ENTER(0x3609A890u);
   7330 
   7331     goto L_3609A890;
   7332 L_360990D0:
   7333     PUSH32(esp, ebp); /* 0x360990D0: push ebp */
   7334     ebp = esp; /* 0x360990D1: mov ebp, esp */
   7335     PUSH32(esp, esi); /* 0x360990D3: push esi */
   7336     esi = ecx; /* 0x360990D4: mov esi, ecx */
   7337     RECOMP_ICALL(0x360991E0u); /* 0x360990D6: call 0x360991e0 */ /* not lifted */
   7338     RECOMP_FLAGS_IN();
   7339     /* test MEM8(ebp + 0x8), 1 */ /* 0x360990DB: test byte ptr [ebp + 8], 1 */
   7340     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7341     _cf = 0;
   7342     _flag_k = FK_NARROW(FK_TEST, 24);
   7343     if (TEST_Z(_flag_a, _flag_b)) goto L_360990EA; /* 0x360990DF: je 0x360990ea */
   7344 L_360990E1:
   7345     PUSH32(esp, esi); /* 0x360990E1: push esi */
   7346     RECOMP_ICALL(0x3615FCC4u); /* 0x360990E2: call 0x3615fcc4 */ /* not lifted */
   7347     RECOMP_FLAGS_IN();
   7348     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7349     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7350     esp = esp + 4; /* 0x360990E7: add esp, 4 */
   7351     _flag_k = FK_ADD;
   7352 L_360990EA:
   7353     eax = esi; /* 0x360990EA: mov eax, esi */
   7354     esi = POP32_VAL(esp); /* 0x360990EC: pop esi */
   7355     ebp = POP32_VAL(esp); /* 0x360990ED: pop ebp */
   7356     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360990EE: ret 4 */
   7357 L_3609A890:
   7358     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
   7359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7360     ecx = ecx - 0x40u; /* 0x3609A890: sub ecx, 0x40 */
   7361     _flag_k = FK_CMP;
   7362     RECOMP_BACKEDGE();
   7363     goto L_360990D0; /* 0x3609A893: jmp 0x360990d0 */
   7364     { RECOMP_REGS_OUT(); return; } /* end of function */
   7365     RECOMP_REGS_OUT();
   7366 }
   7367 
   7368 void sub_3609A8A0(void) {
   7369     int _fpu_cmp = 0;
   7370     uint32_t _cf = 0;
   7371     int _df = 1;
   7372     uint32_t _flag_k = FK_NONE;
   7373     uint32_t _flag_a = 0, _flag_b = 0;
   7374     uint32_t _itail_tgt = 0;
   7375     RECOMP_REGS_LOCALS
   7376     RECOMP_ENTER(0x3609A8A0u);
   7377 
   7378     goto L_3609A8A0;
   7379 L_360990D0:
   7380     PUSH32(esp, ebp); /* 0x360990D0: push ebp */
   7381     ebp = esp; /* 0x360990D1: mov ebp, esp */
   7382     PUSH32(esp, esi); /* 0x360990D3: push esi */
   7383     esi = ecx; /* 0x360990D4: mov esi, ecx */
   7384     RECOMP_ICALL(0x360991E0u); /* 0x360990D6: call 0x360991e0 */ /* not lifted */
   7385     RECOMP_FLAGS_IN();
   7386     /* test MEM8(ebp + 0x8), 1 */ /* 0x360990DB: test byte ptr [ebp + 8], 1 */
   7387     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7388     _cf = 0;
   7389     _flag_k = FK_NARROW(FK_TEST, 24);
   7390     if (TEST_Z(_flag_a, _flag_b)) goto L_360990EA; /* 0x360990DF: je 0x360990ea */
   7391 L_360990E1:
   7392     PUSH32(esp, esi); /* 0x360990E1: push esi */
   7393     RECOMP_ICALL(0x3615FCC4u); /* 0x360990E2: call 0x3615fcc4 */ /* not lifted */
   7394     RECOMP_FLAGS_IN();
   7395     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7396     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7397     esp = esp + 4; /* 0x360990E7: add esp, 4 */
   7398     _flag_k = FK_ADD;
   7399 L_360990EA:
   7400     eax = esi; /* 0x360990EA: mov eax, esi */
   7401     esi = POP32_VAL(esp); /* 0x360990EC: pop esi */
   7402     ebp = POP32_VAL(esp); /* 0x360990ED: pop ebp */
   7403     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360990EE: ret 4 */
   7404 L_3609A8A0:
   7405     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
   7406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7407     ecx = ecx - 0x4Cu; /* 0x3609A8A0: sub ecx, 0x4c */
   7408     _flag_k = FK_CMP;
   7409     RECOMP_BACKEDGE();
   7410     goto L_360990D0; /* 0x3609A8A3: jmp 0x360990d0 */
   7411     { RECOMP_REGS_OUT(); return; } /* end of function */
   7412     RECOMP_REGS_OUT();
   7413 }
   7414 
   7415 void sub_3609A8B0(void) {
   7416     int _fpu_cmp = 0;
   7417     uint32_t _cf = 0;
   7418     int _df = 1;
   7419     uint32_t _flag_k = FK_NONE;
   7420     uint32_t _flag_a = 0, _flag_b = 0;
   7421     uint32_t _itail_tgt = 0;
   7422     RECOMP_REGS_LOCALS
   7423     RECOMP_ENTER(0x3609A8B0u);
   7424 
   7425     goto L_3609A8B0;
   7426 L_360990D0:
   7427     PUSH32(esp, ebp); /* 0x360990D0: push ebp */
   7428     ebp = esp; /* 0x360990D1: mov ebp, esp */
   7429     PUSH32(esp, esi); /* 0x360990D3: push esi */
   7430     esi = ecx; /* 0x360990D4: mov esi, ecx */
   7431     RECOMP_ICALL(0x360991E0u); /* 0x360990D6: call 0x360991e0 */ /* not lifted */
   7432     RECOMP_FLAGS_IN();
   7433     /* test MEM8(ebp + 0x8), 1 */ /* 0x360990DB: test byte ptr [ebp + 8], 1 */
   7434     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7435     _cf = 0;
   7436     _flag_k = FK_NARROW(FK_TEST, 24);
   7437     if (TEST_Z(_flag_a, _flag_b)) goto L_360990EA; /* 0x360990DF: je 0x360990ea */
   7438 L_360990E1:
   7439     PUSH32(esp, esi); /* 0x360990E1: push esi */
   7440     RECOMP_ICALL(0x3615FCC4u); /* 0x360990E2: call 0x3615fcc4 */ /* not lifted */
   7441     RECOMP_FLAGS_IN();
   7442     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7443     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7444     esp = esp + 4; /* 0x360990E7: add esp, 4 */
   7445     _flag_k = FK_ADD;
   7446 L_360990EA:
   7447     eax = esi; /* 0x360990EA: mov eax, esi */
   7448     esi = POP32_VAL(esp); /* 0x360990EC: pop esi */
   7449     ebp = POP32_VAL(esp); /* 0x360990ED: pop ebp */
   7450     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360990EE: ret 4 */
   7451 L_3609A8B0:
   7452     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u);
   7453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7454     ecx = ecx - 0x80u; /* 0x3609A8B0: sub ecx, 0x80 */
   7455     _flag_k = FK_CMP;
   7456     RECOMP_BACKEDGE();
   7457     goto L_360990D0; /* 0x3609A8B6: jmp 0x360990d0 */
   7458     { RECOMP_REGS_OUT(); return; } /* end of function */
   7459     RECOMP_REGS_OUT();
   7460 }
   7461 
   7462 void sub_3609A8C0(void) {
   7463     int _fpu_cmp = 0;
   7464     uint32_t _cf = 0;
   7465     int _df = 1;
   7466     uint32_t _flag_k = FK_NONE;
   7467     uint32_t _flag_a = 0, _flag_b = 0;
   7468     uint32_t _itail_tgt = 0;
   7469     RECOMP_REGS_LOCALS
   7470     RECOMP_ENTER(0x3609A8C0u);
   7471 
   7472     goto L_3609A8C0;
   7473 L_360990D0:
   7474     PUSH32(esp, ebp); /* 0x360990D0: push ebp */
   7475     ebp = esp; /* 0x360990D1: mov ebp, esp */
   7476     PUSH32(esp, esi); /* 0x360990D3: push esi */
   7477     esi = ecx; /* 0x360990D4: mov esi, ecx */
   7478     RECOMP_ICALL(0x360991E0u); /* 0x360990D6: call 0x360991e0 */ /* not lifted */
   7479     RECOMP_FLAGS_IN();
   7480     /* test MEM8(ebp + 0x8), 1 */ /* 0x360990DB: test byte ptr [ebp + 8], 1 */
   7481     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   7482     _cf = 0;
   7483     _flag_k = FK_NARROW(FK_TEST, 24);
   7484     if (TEST_Z(_flag_a, _flag_b)) goto L_360990EA; /* 0x360990DF: je 0x360990ea */
   7485 L_360990E1:
   7486     PUSH32(esp, esi); /* 0x360990E1: push esi */
   7487     RECOMP_ICALL(0x3615FCC4u); /* 0x360990E2: call 0x3615fcc4 */ /* not lifted */
   7488     RECOMP_FLAGS_IN();
   7489     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7490     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7491     esp = esp + 4; /* 0x360990E7: add esp, 4 */
   7492     _flag_k = FK_ADD;
   7493 L_360990EA:
   7494     eax = esi; /* 0x360990EA: mov eax, esi */
   7495     esi = POP32_VAL(esp); /* 0x360990EC: pop esi */
   7496     ebp = POP32_VAL(esp); /* 0x360990ED: pop ebp */
   7497     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360990EE: ret 4 */
   7498 L_3609A8C0:
   7499     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu);
   7500     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7501     ecx = ecx - 0x8Cu; /* 0x3609A8C0: sub ecx, 0x8c */
   7502     _flag_k = FK_CMP;
   7503     RECOMP_BACKEDGE();
   7504     goto L_360990D0; /* 0x3609A8C6: jmp 0x360990d0 */
   7505     { RECOMP_REGS_OUT(); return; } /* end of function */
   7506     RECOMP_REGS_OUT();
   7507 }