aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0040.c (744178B)


      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_36087E40(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(0x36087E40u);
     17 
     18 L_36087E40:
     19     PUSH32(esp, ebp); /* 0x36087E40: push ebp */
     20     ebp = esp; /* 0x36087E41: mov ebp, esp */
     21     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
     22     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     23     esp = esp - 0x18u; /* 0x36087E43: sub esp, 0x18 */
     24     _flag_k = FK_CMP;
     25     PUSH32(esp, esi); /* 0x36087E46: push esi */
     26     PUSH32(esp, edi); /* 0x36087E47: push edi */
     27     PUSH32(esp, 0); /* 0x36087E48: push 0 */
     28     PUSH32(esp, 0x361B2CD8u); /* 0x36087E4A: push 0x361b2cd8 */
     29     esi = ecx; /* 0x36087E4F: mov esi, ecx */
     30     PUSH32(esp, 0x361B2CC0u); /* 0x36087E51: push 0x361b2cc0 */
     31     eax = esi + 0x4; /* 0x36087E56: lea eax, [esi + 4] */
     32     PUSH32(esp, 0); /* 0x36087E59: push 0 */
     33     PUSH32(esp, eax); /* 0x36087E5B: push eax */
     34     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36087E5C: call dword ptr [0x3616ff70] */
     35     RECOMP_FLAGS_IN();
     36     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     37     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     38     esp = esp + 4; /* 0x36087E62: add esp, 4 */
     39     _flag_k = FK_ADD;
     40     PUSH32(esp, eax); /* 0x36087E65: push eax */
     41     RECOMP_ICALL(0x3615FD86u); /* 0x36087E66: call 0x3615fd86 */ /* not lifted */
     42     RECOMP_FLAGS_IN();
     43     edi = eax; /* 0x36087E6B: mov edi, eax */
     44     eax = MEM32(esi + 0x20); /* 0x36087E6D: mov eax, dword ptr [esi + 0x20] */
     45     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     46     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     47     esp = esp + 0x14u; /* 0x36087E70: add esp, 0x14 */
     48     _flag_k = FK_ADD;
     49     /* test edi, edi */ /* 0x36087E73: test edi, edi */
     50     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
     51     _cf = 0;
     52     _flag_k = FK_TEST;
     53     if (TEST_Z(_flag_a, _flag_b)) goto L_36087F5A; /* 0x36087E75: je 0x36087f5a */
     54 L_36087E7B:
     55     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     56     eax = eax - 1; /* 0x36087E7B: dec eax */
     57     _flag_k = FK_DEC;
     58     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36087F57; /* 0x36087E7C: jne 0x36087f57 */
     59 L_36087E82:
     60     PUSH32(esp, ebx); /* 0x36087E82: push ebx */
     61     ebx = MEM32(edi + 0x60); /* 0x36087E83: mov ebx, dword ptr [edi + 0x60] */
     62     PUSH32(esp, 0); /* 0x36087E86: push 0 */
     63     PUSH32(esp, 0x40000000u); /* 0x36087E88: push 0x40000000 */
     64     PUSH32(esp, 0); /* 0x36087E8D: push 0 */
     65     ecx = ebx; /* 0x36087E8F: mov ecx, ebx */
     66     RECOMP_ICALL(0x36048260u); /* 0x36087E91: call 0x36048260 */ /* not lifted */
     67     RECOMP_FLAGS_IN();
     68     ecx = ebx; /* 0x36087E96: mov ecx, ebx */
     69     RECOMP_ICALL(0x36048220u); /* 0x36087E98: call 0x36048220 */ /* not lifted */
     70     RECOMP_FLAGS_IN();
     71     ecx = edi; /* 0x36087E9D: mov ecx, edi */
     72     RECOMP_ICALL(MEM32(0x3616FC30)); /* 0x36087E9F: call dword ptr [0x3616fc30] */
     73     RECOMP_FLAGS_IN();
     74     ecx = esi + 0x28; /* 0x36087EA5: lea ecx, [esi + 0x28] */
     75     edx = MEM32(ecx); /* 0x36087EA8: mov edx, dword ptr [ecx] */
     76     eax = MEM32(ecx + 0x4); /* 0x36087EAA: mov eax, dword ptr [ecx + 4] */
     77     ecx = MEM32(ecx + 0x8); /* 0x36087EAD: mov ecx, dword ptr [ecx + 8] */
     78     MEM32(ebp + (-0xC)) = edx; /* 0x36087EB0: mov dword ptr [ebp - 0xc], edx */
     79     MEM32(ebp + (-0x8)) = eax; /* 0x36087EB3: mov dword ptr [ebp - 8], eax */
     80     MEM32(ebp + (-0x4)) = ecx; /* 0x36087EB6: mov dword ptr [ebp - 4], ecx */
     81     edx = ebx + 0x54; /* 0x36087EB9: lea edx, [ebx + 0x54] */
     82     eax = MEM32(edx); /* 0x36087EBC: mov eax, dword ptr [edx] */
     83     ecx = MEM32(edx + 0x4); /* 0x36087EBE: mov ecx, dword ptr [edx + 4] */
     84     edx = MEM32(edx + 0x8); /* 0x36087EC1: mov edx, dword ptr [edx + 8] */
     85     MEM32(ebp + (-0x18)) = eax; /* 0x36087EC4: mov dword ptr [ebp - 0x18], eax */
     86     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36087EC7: fld dword ptr [ebp - 0x18] */
     87     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36087ECA: fsub dword ptr [ebp - 0xc] */
     88     MEM32(ebp + (-0x14)) = ecx; /* 0x36087ECD: mov dword ptr [ebp - 0x14], ecx */
     89     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36087ED0: fld dword ptr [ebp - 0x14] */
     90     MEM32(ebp + (-0x10)) = edx; /* 0x36087ED3: mov dword ptr [ebp - 0x10], edx */
     91     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36087ED6: fsub dword ptr [ebp - 8] */
     92     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36087ED9: fld dword ptr [ebp - 0x10] */
     93     _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36087EDC: fsub dword ptr [ebp - 4] */
     94     fp_push(_st[0]); /* 0x36087EDF: fld st(0) */
     95     _st[0] *= _st[1]; /* 0x36087EE1: fmul st(1) */
     96     fp_push(_st[2]); /* 0x36087EE3: fld st(2) */
     97     _st[0] *= _st[3]; /* 0x36087EE5: fmul st(3) */
     98     { double _v = fp_pop(); _st[0] += _v; } /* 0x36087EE7: faddp st(1) */
     99     fp_push(_st[3]); /* 0x36087EE9: fld st(3) */
    100     _st[0] *= _st[4]; /* 0x36087EEB: fmul st(4) */
    101     { double _v = fp_pop(); _st[0] += _v; } /* 0x36087EED: faddp st(1) */
    102     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170EB8)); /* 0x36087EEF: fcomp dword ptr [0x36170eb8] */
    103     fp_pop();
    104     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36087EF5: fstp st(0) */
    105     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36087EF7: fnstsw ax */
    106     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36087EF9: fstp st(0) */
    107     /* test HI8(eax), 0x41u */ /* 0x36087EFB: test ah, 0x41 */
    108     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    109     _cf = 0;
    110     _flag_k = FK_NARROW(FK_TEST, 24);
    111     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36087EFE: fstp st(0) */
    112     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087F0E; /* 0x36087F00: jne 0x36087f0e */
    113 L_36087F02:
    114     eax = ebp + (-0xC); /* 0x36087F02: lea eax, [ebp - 0xc] */
    115     PUSH32(esp, eax); /* 0x36087F05: push eax */
    116     ecx = ebx; /* 0x36087F06: mov ecx, ebx */
    117     RECOMP_ICALL(MEM32(0x36170360)); /* 0x36087F08: call dword ptr [0x36170360] */
    118     RECOMP_FLAGS_IN();
    119 L_36087F0E:
    120     ecx = esi; /* 0x36087F0E: mov ecx, esi */
    121     RECOMP_ICALL(MEM32(0x3616FD2C)); /* 0x36087F10: call dword ptr [0x3616fd2c] */
    122     RECOMP_FLAGS_IN();
    123     /* test LO8(eax), LO8(eax) */ /* 0x36087F16: test al, al */
    124     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    125     _cf = 0;
    126     _flag_k = FK_NARROW(FK_TEST, 24);
    127     if (TEST_Z(_flag_a, _flag_b)) goto L_36087F33; /* 0x36087F18: je 0x36087f33 */
    128 L_36087F1A:
    129     ecx = edi; /* 0x36087F1A: mov ecx, edi */
    130     RECOMP_ICALL(0x3606D5A0u); /* 0x36087F1C: call 0x3606d5a0 */ /* not lifted */
    131     RECOMP_FLAGS_IN();
    132     ecx = eax; /* 0x36087F21: mov ecx, eax */
    133     RECOMP_ICALL(0x36047900u); /* 0x36087F23: call 0x36047900 */ /* not lifted */
    134     RECOMP_FLAGS_IN();
    135     ecx = MEM32(esi + 0x48); /* 0x36087F28: mov ecx, dword ptr [esi + 0x48] */
    136     edx = MEM32(eax); /* 0x36087F2B: mov edx, dword ptr [eax] */
    137     PUSH32(esp, ecx); /* 0x36087F2D: push ecx */
    138     ecx = eax; /* 0x36087F2E: mov ecx, eax */
    139     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36087F30: call dword ptr [edx + 0x18] */
    140     RECOMP_FLAGS_IN();
    141 L_36087F33:
    142     edx = MEM32(esi + 0x44); /* 0x36087F33: mov edx, dword ptr [esi + 0x44] */
    143     PUSH32(esp, edx); /* 0x36087F36: push edx */
    144     ecx = ebx; /* 0x36087F37: mov ecx, ebx */
    145     RECOMP_ICALL(0x3604AE70u); /* 0x36087F39: call 0x3604ae70 */ /* not lifted */
    146     RECOMP_FLAGS_IN();
    147     SET_LO8(eax, MEM8(edi + 0x1B4)); /* 0x36087F3E: mov al, byte ptr [edi + 0x1b4] */
    148     /* test LO8(eax), LO8(eax) */ /* 0x36087F44: test al, al */
    149     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    150     _cf = 0;
    151     _flag_k = FK_NARROW(FK_TEST, 24);
    152     ebx = POP32_VAL(esp); /* 0x36087F46: pop ebx */
    153     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087F57; /* 0x36087F47: jne 0x36087f57 */
    154 L_36087F49:
    155     ecx = edi; /* 0x36087F49: mov ecx, edi */
    156     RECOMP_ICALL(0x36071DD0u); /* 0x36087F4B: call 0x36071dd0 */ /* not lifted */
    157     RECOMP_FLAGS_IN();
    158     ecx = eax; /* 0x36087F50: mov ecx, eax */
    159     RECOMP_ICALL(0x3604D030u); /* 0x36087F52: call 0x3604d030 */ /* not lifted */
    160     RECOMP_FLAGS_IN();
    161 L_36087F57:
    162     eax = MEM32(esi + 0x20); /* 0x36087F57: mov eax, dword ptr [esi + 0x20] */
    163 L_36087F5A:
    164     edi = POP32_VAL(esp); /* 0x36087F5A: pop edi */
    165     esi = POP32_VAL(esp); /* 0x36087F5B: pop esi */
    166     esp = ebp; /* 0x36087F5C: mov esp, ebp */
    167     ebp = POP32_VAL(esp); /* 0x36087F5E: pop ebp */
    168     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087F5F: ret  */
    169     RECOMP_REGS_OUT();
    170 }
    171 
    172 void sub_36087F60(void) {
    173     int _fpu_cmp = 0;
    174     uint32_t _cf = 0;
    175     int _df = 1;
    176     uint32_t _flag_k = FK_NONE;
    177     uint32_t _flag_a = 0, _flag_b = 0;
    178     uint32_t _itail_tgt = 0;
    179     RECOMP_REGS_LOCALS
    180     RECOMP_ENTER(0x36087F60u);
    181 
    182 L_36087F60:
    183     PUSH32(esp, ebp); /* 0x36087F60: push ebp */
    184     ebp = esp; /* 0x36087F61: mov ebp, esp */
    185     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    187     esp = esp - 0xCu; /* 0x36087F63: sub esp, 0xc */
    188     _flag_k = FK_CMP;
    189     PUSH32(esp, ebx); /* 0x36087F66: push ebx */
    190     PUSH32(esp, esi); /* 0x36087F67: push esi */
    191     PUSH32(esp, 0); /* 0x36087F68: push 0 */
    192     PUSH32(esp, 0x361B2CD8u); /* 0x36087F6A: push 0x361b2cd8 */
    193     ebx = ecx; /* 0x36087F6F: mov ebx, ecx */
    194     PUSH32(esp, 0x361B2CC0u); /* 0x36087F71: push 0x361b2cc0 */
    195     eax = ebx + 0x4; /* 0x36087F76: lea eax, [ebx + 4] */
    196     PUSH32(esp, 0); /* 0x36087F79: push 0 */
    197     PUSH32(esp, eax); /* 0x36087F7B: push eax */
    198     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36087F7C: call dword ptr [0x3616ff70] */
    199     RECOMP_FLAGS_IN();
    200     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    201     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    202     esp = esp + 4; /* 0x36087F82: add esp, 4 */
    203     _flag_k = FK_ADD;
    204     PUSH32(esp, eax); /* 0x36087F85: push eax */
    205     RECOMP_ICALL(0x3615FD86u); /* 0x36087F86: call 0x3615fd86 */ /* not lifted */
    206     RECOMP_FLAGS_IN();
    207     esi = eax; /* 0x36087F8B: mov esi, eax */
    208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    210     esp = esp + 0x14u; /* 0x36087F8D: add esp, 0x14 */
    211     _flag_k = FK_ADD;
    212     /* test esi, esi */ /* 0x36087F90: test esi, esi */
    213     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    214     _cf = 0;
    215     _flag_k = FK_TEST;
    216     if (TEST_NZ(_flag_a, _flag_b)) goto L_36087F9F; /* 0x36087F92: jne 0x36087f9f */
    217 L_36087F94:
    218     esi = POP32_VAL(esp); /* 0x36087F94: pop esi */
    219     eax = 2; /* 0x36087F95: mov eax, 2 */
    220     ebx = POP32_VAL(esp); /* 0x36087F9A: pop ebx */
    221     esp = ebp; /* 0x36087F9B: mov esp, ebp */
    222     ebp = POP32_VAL(esp); /* 0x36087F9D: pop ebp */
    223     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36087F9E: ret  */
    224 L_36087F9F:
    225     ecx = MEM32(esi + 0x60); /* 0x36087F9F: mov ecx, dword ptr [esi + 0x60] */
    226     PUSH32(esp, edi); /* 0x36087FA2: push edi */
    227     MEM32(ebp + (-0x4)) = ecx; /* 0x36087FA3: mov dword ptr [ebp - 4], ecx */
    228     edi = ebx + 0x28; /* 0x36087FA6: lea edi, [ebx + 0x28] */
    229     PUSH32(esp, edi); /* 0x36087FA9: push edi */
    230     ecx = esi; /* 0x36087FAA: mov ecx, esi */
    231     RECOMP_ICALL(MEM32(0x3616FC28)); /* 0x36087FAC: call dword ptr [0x3616fc28] */
    232     RECOMP_FLAGS_IN();
    233     ecx = MEM32(ebp + (-0x4)); /* 0x36087FB2: mov ecx, dword ptr [ebp - 4] */
    234     PUSH32(esp, 0); /* 0x36087FB5: push 0 */
    235     PUSH32(esp, 0x40000000u); /* 0x36087FB7: push 0x40000000 */
    236     PUSH32(esp, 0); /* 0x36087FBC: push 0 */
    237     RECOMP_ICALL(0x36048260u); /* 0x36087FBE: call 0x36048260 */ /* not lifted */
    238     RECOMP_FLAGS_IN();
    239     ecx = MEM32(ebp + (-0x4)); /* 0x36087FC3: mov ecx, dword ptr [ebp - 4] */
    240     RECOMP_ICALL(0x36047900u); /* 0x36087FC6: call 0x36047900 */ /* not lifted */
    241     RECOMP_FLAGS_IN();
    242     ecx = MEM32(ebx + 0x48); /* 0x36087FCB: mov ecx, dword ptr [ebx + 0x48] */
    243     edx = MEM32(eax); /* 0x36087FCE: mov edx, dword ptr [eax] */
    244     PUSH32(esp, ecx); /* 0x36087FD0: push ecx */
    245     ecx = eax; /* 0x36087FD1: mov ecx, eax */
    246     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x36087FD3: call dword ptr [edx + 0x18] */
    247     RECOMP_FLAGS_IN();
    248     edx = MEM32(esi); /* 0x36087FD6: mov edx, dword ptr [esi] */
    249     eax = ebx + 0x34; /* 0x36087FD8: lea eax, [ebx + 0x34] */
    250     PUSH32(esp, eax); /* 0x36087FDB: push eax */
    251     PUSH32(esp, edi); /* 0x36087FDC: push edi */
    252     ecx = esi; /* 0x36087FDD: mov ecx, esi */
    253     RECOMP_ICALL(MEM32(edx + 0xAC)); /* 0x36087FDF: call dword ptr [edx + 0xac] */
    254     RECOMP_FLAGS_IN();
    255     /* test LO8(eax), LO8(eax) */ /* 0x36087FE5: test al, al */
    256     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    257     _cf = 0;
    258     _flag_k = FK_NARROW(FK_TEST, 24);
    259     if (TEST_Z(_flag_a, _flag_b)) goto L_36088276; /* 0x36087FE7: je 0x36088276 */
    260 L_36087FED:
    261     ecx = esi; /* 0x36087FED: mov ecx, esi */
    262     MEM32(ebp + (-0xC)) = 1; /* 0x36087FEF: mov dword ptr [ebp - 0xc], 1 */
    263     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x36087FF6: call dword ptr [0x361700a8] */
    264     RECOMP_FLAGS_IN();
    265     ecx = MEM32(eax); /* 0x36087FFC: mov ecx, dword ptr [eax] */
    266     MEM32(edi) = ecx; /* 0x36087FFE: mov dword ptr [edi], ecx */
    267     edx = MEM32(eax + 0x4); /* 0x36088000: mov edx, dword ptr [eax + 4] */
    268     MEM32(edi + 0x4) = edx; /* 0x36088003: mov dword ptr [edi + 4], edx */
    269     eax = MEM32(eax + 0x8); /* 0x36088006: mov eax, dword ptr [eax + 8] */
    270     MEM32(edi + 0x8) = eax; /* 0x36088009: mov dword ptr [edi + 8], eax */
    271     SET_LO8(eax, MEM8(esi + 0x1B4)); /* 0x3608800C: mov al, byte ptr [esi + 0x1b4] */
    272     /* test LO8(eax), LO8(eax) */ /* 0x36088012: test al, al */
    273     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    274     _cf = 0;
    275     _flag_k = FK_NARROW(FK_TEST, 24);
    276     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088024; /* 0x36088014: jne 0x36088024 */
    277 L_36088016:
    278     ecx = esi; /* 0x36088016: mov ecx, esi */
    279     RECOMP_ICALL(0x36071DD0u); /* 0x36088018: call 0x36071dd0 */ /* not lifted */
    280     RECOMP_FLAGS_IN();
    281     ecx = eax; /* 0x3608801D: mov ecx, eax */
    282     RECOMP_ICALL(0x3604D030u); /* 0x3608801F: call 0x3604d030 */ /* not lifted */
    283     RECOMP_FLAGS_IN();
    284 L_36088024:
    285     ecx = MEM32(ebp + (-0x4)); /* 0x36088024: mov ecx, dword ptr [ebp - 4] */
    286     ebx = MEM32(ebx + 0x44); /* 0x36088027: mov ebx, dword ptr [ebx + 0x44] */
    287     esi = ecx + 0x328; /* 0x3608802A: lea esi, [ecx + 0x328] */
    288     /* cmp ebx, esi */ /* 0x36088030: cmp ebx, esi */
    289     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi);
    290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    291     _flag_k = FK_CMP;
    292     MEM32(ebp + (-0x8)) = ebx; /* 0x36088032: mov dword ptr [ebp - 8], ebx */
    293     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608827D; /* 0x36088035: je 0x3608827d */
    294 L_3608803B:
    295     edi = MEM32(esi + 0x4); /* 0x3608803B: mov edi, dword ptr [esi + 4] */
    296     /* test edi, edi */ /* 0x3608803E: test edi, edi */
    297     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    298     _cf = 0;
    299     _flag_k = FK_TEST;
    300     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088047; /* 0x36088040: jne 0x36088047 */
    301 L_36088042:
    302     MEM32(ebp + (-0x4)) = edi; /* 0x36088042: mov dword ptr [ebp - 4], edi */
    303     goto L_3608805F; /* 0x36088045: jmp 0x3608805f */
    304 L_36088047:
    305     ecx = MEM32(esi + 0x8); /* 0x36088047: mov ecx, dword ptr [esi + 8] */
    306     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
    307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    308     ecx = ecx - edi; /* 0x3608804A: sub ecx, edi */
    309     _flag_k = FK_CMP;
    310     eax = 0x2AAAAAABu; /* 0x3608804C: mov eax, 0x2aaaaaab */
    311     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36088051: imul ecx */
    312       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    313       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    314     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36088053: sar edx, 1 */
    315     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    316     edx = (uint32_t)((int32_t)edx >> 1u);
    317     eax = edx; /* 0x36088055: mov eax, edx */
    318     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36088057: shr eax, 0x1f */
    319     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    320     eax = eax >> 31u; /* 0x36088057: shr eax, 0x1f */
    321     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    322     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    323     edx = edx + eax; /* 0x3608805A: add edx, eax */
    324     _flag_k = FK_ADD;
    325     MEM32(ebp + (-0x4)) = edx; /* 0x3608805C: mov dword ptr [ebp - 4], edx */
    326 L_3608805F:
    327     ecx = MEM32(ebx + 0x4); /* 0x3608805F: mov ecx, dword ptr [ebx + 4] */
    328     /* test ecx, ecx */ /* 0x36088062: test ecx, ecx */
    329     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    330     _cf = 0;
    331     _flag_k = FK_TEST;
    332     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608806A; /* 0x36088064: jne 0x3608806a */
    333 L_36088066:
    334     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    335     edx = 0; /* 0x36088066: xor edx, edx */
    336     _cf = 0;
    337     _flag_k = FK_TEST;
    338     goto L_3608807F; /* 0x36088068: jmp 0x3608807f */
    339 L_3608806A:
    340     edx = MEM32(ebx + 0x8); /* 0x3608806A: mov edx, dword ptr [ebx + 8] */
    341     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    343     edx = edx - ecx; /* 0x3608806D: sub edx, ecx */
    344     _flag_k = FK_CMP;
    345     eax = 0x2AAAAAABu; /* 0x3608806F: mov eax, 0x2aaaaaab */
    346     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36088074: imul edx */
    347       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    348       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    349     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36088076: sar edx, 1 */
    350     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    351     edx = (uint32_t)((int32_t)edx >> 1u);
    352     eax = edx; /* 0x36088078: mov eax, edx */
    353     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3608807A: shr eax, 0x1f */
    354     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    355     eax = eax >> 31u; /* 0x3608807A: shr eax, 0x1f */
    356     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    357     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    358     edx = edx + eax; /* 0x3608807D: add edx, eax */
    359     _flag_k = FK_ADD;
    360 L_3608807F:
    361     /* cmp MEM32(ebp + (-0x4)), edx */ /* 0x3608807F: cmp dword ptr [ebp - 4], edx */
    362     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(edx);
    363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    364     _flag_k = FK_CMP;
    365     if (CMP_A(_flag_a, _flag_b)) goto L_36088102; /* 0x36088082: ja 0x36088102 */
    366 L_36088084:
    367     edx = MEM32(esi + 0x8); /* 0x36088084: mov edx, dword ptr [esi + 8] */
    368     eax = edi; /* 0x36088087: mov eax, edi */
    369     /* cmp eax, edx */ /* 0x36088089: cmp eax, edx */
    370     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    372     _flag_k = FK_CMP;
    373     MEM32(ebp + (-0x8)) = edx; /* 0x3608808B: mov dword ptr [ebp - 8], edx */
    374     MEM32(ebp + (-0x4)) = ecx; /* 0x3608808E: mov dword ptr [ebp - 4], ecx */
    375     if (CMP_EQ(_flag_a, _flag_b)) goto L_360880B8; /* 0x36088091: je 0x360880b8 */
    376 L_36088093:
    377     edx = eax; /* 0x36088093: mov edx, eax */
    378     edi = MEM32(edx); /* 0x36088095: mov edi, dword ptr [edx] */
    379     MEM32(ecx) = edi; /* 0x36088097: mov dword ptr [ecx], edi */
    380     edi = MEM32(edx + 0x4); /* 0x36088099: mov edi, dword ptr [edx + 4] */
    381     MEM32(ecx + 0x4) = edi; /* 0x3608809C: mov dword ptr [ecx + 4], edi */
    382     edx = MEM32(edx + 0x8); /* 0x3608809F: mov edx, dword ptr [edx + 8] */
    383     MEM32(ecx + 0x8) = edx; /* 0x360880A2: mov dword ptr [ecx + 8], edx */
    384     ecx = MEM32(ebp + (-0x4)); /* 0x360880A5: mov ecx, dword ptr [ebp - 4] */
    385     edx = MEM32(ebp + (-0x8)); /* 0x360880A8: mov edx, dword ptr [ebp - 8] */
    386     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    387     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    388     ecx = ecx + 0xCu; /* 0x360880AB: add ecx, 0xc */
    389     _flag_k = FK_ADD;
    390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    391     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    392     eax = eax + 0xCu; /* 0x360880AE: add eax, 0xc */
    393     _flag_k = FK_ADD;
    394     /* cmp eax, edx */ /* 0x360880B1: cmp eax, edx */
    395     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    397     _flag_k = FK_CMP;
    398     MEM32(ebp + (-0x4)) = ecx; /* 0x360880B3: mov dword ptr [ebp - 4], ecx */
    399     RECOMP_BACKEDGE();
    400     if (CMP_NE(_flag_a, _flag_b)) goto L_36088093; /* 0x360880B6: jne 0x36088093 */
    401 L_360880B8:
    402     eax = MEM32(esi + 0x4); /* 0x360880B8: mov eax, dword ptr [esi + 4] */
    403     /* test eax, eax */ /* 0x360880BB: test eax, eax */
    404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    405     _cf = 0;
    406     _flag_k = FK_TEST;
    407     if (TEST_NZ(_flag_a, _flag_b)) goto L_360880D7; /* 0x360880BD: jne 0x360880d7 */
    408 L_360880BF:
    409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    410     edx = 0; /* 0x360880BF: xor edx, edx */
    411     _cf = 0;
    412     _flag_k = FK_TEST;
    413     ecx = edx + edx * 2; /* 0x360880C1: lea ecx, [edx + edx*2] */
    414     edx = MEM32(ebx + 0x4); /* 0x360880C4: mov edx, dword ptr [ebx + 4] */
    415     edi = POP32_VAL(esp); /* 0x360880C7: pop edi */
    416     eax = edx + ecx * 4; /* 0x360880C8: lea eax, [edx + ecx*4] */
    417     MEM32(ebx + 0x8) = eax; /* 0x360880CB: mov dword ptr [ebx + 8], eax */
    418     eax = MEM32(ebp + (-0xC)); /* 0x360880CE: mov eax, dword ptr [ebp - 0xc] */
    419     esi = POP32_VAL(esp); /* 0x360880D1: pop esi */
    420     ebx = POP32_VAL(esp); /* 0x360880D2: pop ebx */
    421     esp = ebp; /* 0x360880D3: mov esp, ebp */
    422     ebp = POP32_VAL(esp); /* 0x360880D5: pop ebp */
    423     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360880D6: ret  */
    424 L_360880D7:
    425     esi = MEM32(esi + 0x8); /* 0x360880D7: mov esi, dword ptr [esi + 8] */
    426     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    428     esi = esi - eax; /* 0x360880DA: sub esi, eax */
    429     _flag_k = FK_CMP;
    430     eax = 0x2AAAAAABu; /* 0x360880DC: mov eax, 0x2aaaaaab */
    431     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(esi); /* 0x360880E1: imul esi */
    432       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    433       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    434     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x360880E3: sar edx, 1 */
    435     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    436     edx = (uint32_t)((int32_t)edx >> 1u);
    437     eax = edx; /* 0x360880E5: mov eax, edx */
    438     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x360880E7: shr eax, 0x1f */
    439     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    440     eax = eax >> 31u; /* 0x360880E7: shr eax, 0x1f */
    441     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    443     edx = edx + eax; /* 0x360880EA: add edx, eax */
    444     _flag_k = FK_ADD;
    445     ecx = edx + edx * 2; /* 0x360880EC: lea ecx, [edx + edx*2] */
    446     edx = MEM32(ebx + 0x4); /* 0x360880EF: mov edx, dword ptr [ebx + 4] */
    447     edi = POP32_VAL(esp); /* 0x360880F2: pop edi */
    448     eax = edx + ecx * 4; /* 0x360880F3: lea eax, [edx + ecx*4] */
    449     MEM32(ebx + 0x8) = eax; /* 0x360880F6: mov dword ptr [ebx + 8], eax */
    450     eax = MEM32(ebp + (-0xC)); /* 0x360880F9: mov eax, dword ptr [ebp - 0xc] */
    451     esi = POP32_VAL(esp); /* 0x360880FC: pop esi */
    452     ebx = POP32_VAL(esp); /* 0x360880FD: pop ebx */
    453     esp = ebp; /* 0x360880FE: mov esp, ebp */
    454     ebp = POP32_VAL(esp); /* 0x36088100: pop ebp */
    455     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36088101: ret  */
    456 L_36088102:
    457     /* test edi, edi */ /* 0x36088102: test edi, edi */
    458     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    459     _cf = 0;
    460     _flag_k = FK_TEST;
    461     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608810B; /* 0x36088104: jne 0x3608810b */
    462 L_36088106:
    463     MEM32(ebp + (-0x4)) = edi; /* 0x36088106: mov dword ptr [ebp - 4], edi */
    464     goto L_36088123; /* 0x36088109: jmp 0x36088123 */
    465 L_3608810B:
    466     edx = MEM32(esi + 0x8); /* 0x3608810B: mov edx, dword ptr [esi + 8] */
    467     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
    468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    469     edx = edx - edi; /* 0x3608810E: sub edx, edi */
    470     _flag_k = FK_CMP;
    471     eax = 0x2AAAAAABu; /* 0x36088110: mov eax, 0x2aaaaaab */
    472     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36088115: imul edx */
    473       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    474       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    475     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36088117: sar edx, 1 */
    476     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    477     edx = (uint32_t)((int32_t)edx >> 1u);
    478     eax = edx; /* 0x36088119: mov eax, edx */
    479     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3608811B: shr eax, 0x1f */
    480     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    481     eax = eax >> 31u; /* 0x3608811B: shr eax, 0x1f */
    482     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    484     edx = edx + eax; /* 0x3608811E: add edx, eax */
    485     _flag_k = FK_ADD;
    486     MEM32(ebp + (-0x4)) = edx; /* 0x36088120: mov dword ptr [ebp - 4], edx */
    487 L_36088123:
    488     /* test ecx, ecx */ /* 0x36088123: test ecx, ecx */
    489     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    490     _cf = 0;
    491     _flag_k = FK_TEST;
    492     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608812B; /* 0x36088125: jne 0x3608812b */
    493 L_36088127:
    494     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    495     edx = 0; /* 0x36088127: xor edx, edx */
    496     _cf = 0;
    497     _flag_k = FK_TEST;
    498     goto L_36088140; /* 0x36088129: jmp 0x36088140 */
    499 L_3608812B:
    500     edx = MEM32(ebx + 0xC); /* 0x3608812B: mov edx, dword ptr [ebx + 0xc] */
    501     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    503     edx = edx - ecx; /* 0x3608812E: sub edx, ecx */
    504     _flag_k = FK_CMP;
    505     eax = 0x2AAAAAABu; /* 0x36088130: mov eax, 0x2aaaaaab */
    506     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36088135: imul edx */
    507       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    508       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    509     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36088137: sar edx, 1 */
    510     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    511     edx = (uint32_t)((int32_t)edx >> 1u);
    512     eax = edx; /* 0x36088139: mov eax, edx */
    513     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3608813B: shr eax, 0x1f */
    514     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    515     eax = eax >> 31u; /* 0x3608813B: shr eax, 0x1f */
    516     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    517     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    518     edx = edx + eax; /* 0x3608813E: add edx, eax */
    519     _flag_k = FK_ADD;
    520 L_36088140:
    521     /* cmp MEM32(ebp + (-0x4)), edx */ /* 0x36088140: cmp dword ptr [ebp - 4], edx */
    522     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(edx);
    523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    524     _flag_k = FK_CMP;
    525     if (CMP_A(_flag_a, _flag_b)) goto L_36088210; /* 0x36088143: ja 0x36088210 */
    526 L_36088149:
    527     /* test ecx, ecx */ /* 0x36088149: test ecx, ecx */
    528     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    529     _cf = 0;
    530     _flag_k = FK_TEST;
    531     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088151; /* 0x3608814B: jne 0x36088151 */
    532 L_3608814D:
    533     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    534     edx = 0; /* 0x3608814D: xor edx, edx */
    535     _cf = 0;
    536     _flag_k = FK_TEST;
    537     goto L_36088166; /* 0x3608814F: jmp 0x36088166 */
    538 L_36088151:
    539     edx = MEM32(ebx + 0x8); /* 0x36088151: mov edx, dword ptr [ebx + 8] */
    540     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    542     edx = edx - ecx; /* 0x36088154: sub edx, ecx */
    543     _flag_k = FK_CMP;
    544     eax = 0x2AAAAAABu; /* 0x36088156: mov eax, 0x2aaaaaab */
    545     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3608815B: imul edx */
    546       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    547       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    548     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3608815D: sar edx, 1 */
    549     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    550     edx = (uint32_t)((int32_t)edx >> 1u);
    551     eax = edx; /* 0x3608815F: mov eax, edx */
    552     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36088161: shr eax, 0x1f */
    553     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    554     eax = eax >> 31u; /* 0x36088161: shr eax, 0x1f */
    555     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    556     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    557     edx = edx + eax; /* 0x36088164: add edx, eax */
    558     _flag_k = FK_ADD;
    559 L_36088166:
    560     edx = edx + edx * 2; /* 0x36088166: lea edx, [edx + edx*2] */
    561     edx = edi + edx * 4; /* 0x36088169: lea edx, [edi + edx*4] */
    562     eax = edi; /* 0x3608816C: mov eax, edi */
    563     /* cmp eax, edx */ /* 0x3608816E: cmp eax, edx */
    564     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    566     _flag_k = FK_CMP;
    567     MEM32(ebp + (-0x4)) = ecx; /* 0x36088170: mov dword ptr [ebp - 4], ecx */
    568     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608819A; /* 0x36088173: je 0x3608819a */
    569 L_36088175:
    570     edi = eax; /* 0x36088175: mov edi, eax */
    571     ebx = MEM32(edi); /* 0x36088177: mov ebx, dword ptr [edi] */
    572     MEM32(ecx) = ebx; /* 0x36088179: mov dword ptr [ecx], ebx */
    573     ebx = MEM32(edi + 0x4); /* 0x3608817B: mov ebx, dword ptr [edi + 4] */
    574     MEM32(ecx + 0x4) = ebx; /* 0x3608817E: mov dword ptr [ecx + 4], ebx */
    575     edi = MEM32(edi + 0x8); /* 0x36088181: mov edi, dword ptr [edi + 8] */
    576     MEM32(ecx + 0x8) = edi; /* 0x36088184: mov dword ptr [ecx + 8], edi */
    577     ecx = MEM32(ebp + (-0x4)); /* 0x36088187: mov ecx, dword ptr [ebp - 4] */
    578     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
    579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    580     ecx = ecx + 0xCu; /* 0x3608818A: add ecx, 0xc */
    581     _flag_k = FK_ADD;
    582     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    584     eax = eax + 0xCu; /* 0x3608818D: add eax, 0xc */
    585     _flag_k = FK_ADD;
    586     /* cmp eax, edx */ /* 0x36088190: cmp eax, edx */
    587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    589     _flag_k = FK_CMP;
    590     MEM32(ebp + (-0x4)) = ecx; /* 0x36088192: mov dword ptr [ebp - 4], ecx */
    591     RECOMP_BACKEDGE();
    592     if (CMP_NE(_flag_a, _flag_b)) goto L_36088175; /* 0x36088195: jne 0x36088175 */
    593 L_36088197:
    594     ebx = MEM32(ebp + (-0x8)); /* 0x36088197: mov ebx, dword ptr [ebp - 8] */
    595 L_3608819A:
    596     eax = MEM32(esi + 0x8); /* 0x3608819A: mov eax, dword ptr [esi + 8] */
    597     /* cmp edx, eax */ /* 0x3608819D: cmp edx, eax */
    598     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    600     _flag_k = FK_CMP;
    601     ebx = MEM32(ebx + 0x8); /* 0x3608819F: mov ebx, dword ptr [ebx + 8] */
    602     MEM32(ebp + (-0x4)) = eax; /* 0x360881A2: mov dword ptr [ebp - 4], eax */
    603     edi = edx; /* 0x360881A5: mov edi, edx */
    604     if (CMP_EQ(_flag_a, _flag_b)) goto L_360881C0; /* 0x360881A7: je 0x360881c0 */
    605 L_360881A9:
    606     PUSH32(esp, edi); /* 0x360881A9: push edi */
    607     PUSH32(esp, ebx); /* 0x360881AA: push ebx */
    608     RECOMP_ICALL(0x361473E0u); /* 0x360881AB: call 0x361473e0 */ /* not lifted */
    609     RECOMP_FLAGS_IN();
    610     eax = MEM32(ebp + (-0x4)); /* 0x360881B0: mov eax, dword ptr [ebp - 4] */
    611     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
    612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    613     edi = edi + 0xCu; /* 0x360881B3: add edi, 0xc */
    614     _flag_k = FK_ADD;
    615     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    616     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    617     esp = esp + 8; /* 0x360881B6: add esp, 8 */
    618     _flag_k = FK_ADD;
    619     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu);
    620     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    621     ebx = ebx + 0xCu; /* 0x360881B9: add ebx, 0xc */
    622     _flag_k = FK_ADD;
    623     /* cmp edi, eax */ /* 0x360881BC: cmp edi, eax */
    624     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    626     _flag_k = FK_CMP;
    627     RECOMP_BACKEDGE();
    628     if (CMP_NE(_flag_a, _flag_b)) goto L_360881A9; /* 0x360881BE: jne 0x360881a9 */
    629 L_360881C0:
    630     eax = MEM32(esi + 0x4); /* 0x360881C0: mov eax, dword ptr [esi + 4] */
    631     /* test eax, eax */ /* 0x360881C3: test eax, eax */
    632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    633     _cf = 0;
    634     _flag_k = FK_TEST;
    635     if (TEST_NZ(_flag_a, _flag_b)) goto L_360881E2; /* 0x360881C5: jne 0x360881e2 */
    636 L_360881C7:
    637     eax = MEM32(ebp + (-0x8)); /* 0x360881C7: mov eax, dword ptr [ebp - 8] */
    638     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    639     edx = 0; /* 0x360881CA: xor edx, edx */
    640     _cf = 0;
    641     _flag_k = FK_TEST;
    642     ecx = edx + edx * 2; /* 0x360881CC: lea ecx, [edx + edx*2] */
    643     edx = MEM32(eax + 0x4); /* 0x360881CF: mov edx, dword ptr [eax + 4] */
    644     edi = POP32_VAL(esp); /* 0x360881D2: pop edi */
    645     ecx = edx + ecx * 4; /* 0x360881D3: lea ecx, [edx + ecx*4] */
    646     esi = POP32_VAL(esp); /* 0x360881D6: pop esi */
    647     MEM32(eax + 0x8) = ecx; /* 0x360881D7: mov dword ptr [eax + 8], ecx */
    648     eax = MEM32(ebp + (-0xC)); /* 0x360881DA: mov eax, dword ptr [ebp - 0xc] */
    649     ebx = POP32_VAL(esp); /* 0x360881DD: pop ebx */
    650     esp = ebp; /* 0x360881DE: mov esp, ebp */
    651     ebp = POP32_VAL(esp); /* 0x360881E0: pop ebp */
    652     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360881E1: ret  */
    653 L_360881E2:
    654     esi = MEM32(esi + 0x8); /* 0x360881E2: mov esi, dword ptr [esi + 8] */
    655     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    657     esi = esi - eax; /* 0x360881E5: sub esi, eax */
    658     _flag_k = FK_CMP;
    659     eax = 0x2AAAAAABu; /* 0x360881E7: mov eax, 0x2aaaaaab */
    660     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(esi); /* 0x360881EC: imul esi */
    661       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    662       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    663     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x360881EE: sar edx, 1 */
    664     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    665     edx = (uint32_t)((int32_t)edx >> 1u);
    666     eax = edx; /* 0x360881F0: mov eax, edx */
    667     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x360881F2: shr eax, 0x1f */
    668     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    669     eax = eax >> 31u; /* 0x360881F2: shr eax, 0x1f */
    670     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    671     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    672     edx = edx + eax; /* 0x360881F5: add edx, eax */
    673     _flag_k = FK_ADD;
    674     eax = MEM32(ebp + (-0x8)); /* 0x360881F7: mov eax, dword ptr [ebp - 8] */
    675     ecx = edx + edx * 2; /* 0x360881FA: lea ecx, [edx + edx*2] */
    676     edx = MEM32(eax + 0x4); /* 0x360881FD: mov edx, dword ptr [eax + 4] */
    677     edi = POP32_VAL(esp); /* 0x36088200: pop edi */
    678     ecx = edx + ecx * 4; /* 0x36088201: lea ecx, [edx + ecx*4] */
    679     esi = POP32_VAL(esp); /* 0x36088204: pop esi */
    680     MEM32(eax + 0x8) = ecx; /* 0x36088205: mov dword ptr [eax + 8], ecx */
    681     eax = MEM32(ebp + (-0xC)); /* 0x36088208: mov eax, dword ptr [ebp - 0xc] */
    682     ebx = POP32_VAL(esp); /* 0x3608820B: pop ebx */
    683     esp = ebp; /* 0x3608820C: mov esp, ebp */
    684     ebp = POP32_VAL(esp); /* 0x3608820E: pop ebp */
    685     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608820F: ret  */
    686 L_36088210:
    687     PUSH32(esp, ecx); /* 0x36088210: push ecx */
    688     MEM32(ebp + (-0x8)) = ecx; /* 0x36088211: mov dword ptr [ebp - 8], ecx */
    689     RECOMP_ICALL(0x3615FCC4u); /* 0x36088214: call 0x3615fcc4 */ /* not lifted */
    690     RECOMP_FLAGS_IN();
    691     eax = MEM32(esi + 0x4); /* 0x36088219: mov eax, dword ptr [esi + 4] */
    692     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    693     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    694     esp = esp + 4; /* 0x3608821C: add esp, 4 */
    695     _flag_k = FK_ADD;
    696     /* test eax, eax */ /* 0x3608821F: test eax, eax */
    697     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    698     _cf = 0;
    699     _flag_k = FK_TEST;
    700     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088227; /* 0x36088221: jne 0x36088227 */
    701 L_36088223:
    702     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    703     edx = 0; /* 0x36088223: xor edx, edx */
    704     _cf = 0;
    705     _flag_k = FK_TEST;
    706     goto L_3608823C; /* 0x36088225: jmp 0x3608823c */
    707 L_36088227:
    708     ecx = MEM32(esi + 0x8); /* 0x36088227: mov ecx, dword ptr [esi + 8] */
    709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    711     ecx = ecx - eax; /* 0x3608822A: sub ecx, eax */
    712     _flag_k = FK_CMP;
    713     eax = 0x2AAAAAABu; /* 0x3608822C: mov eax, 0x2aaaaaab */
    714     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36088231: imul ecx */
    715       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    716       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    717     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x36088233: sar edx, 1 */
    718     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    719     edx = (uint32_t)((int32_t)edx >> 1u);
    720     eax = edx; /* 0x36088235: mov eax, edx */
    721     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36088237: shr eax, 0x1f */
    722     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    723     eax = eax >> 31u; /* 0x36088237: shr eax, 0x1f */
    724     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    725     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    726     edx = edx + eax; /* 0x3608823A: add edx, eax */
    727     _flag_k = FK_ADD;
    728 L_3608823C:
    729     /* test edx, edx */ /* 0x3608823C: test edx, edx */
    730     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    731     _cf = 0;
    732     _flag_k = FK_TEST;
    733     eax = edx; /* 0x3608823E: mov eax, edx */
    734     if (TEST_NS(_flag_a, _flag_b)) goto L_36088244; /* 0x36088240: jge 0x36088244 */
    735 L_36088242:
    736     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    737     eax = 0; /* 0x36088242: xor eax, eax */
    738     _cf = 0;
    739     _flag_k = FK_TEST;
    740 L_36088244:
    741     ecx = eax + eax * 2; /* 0x36088244: lea ecx, [eax + eax*2] */
    742     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36088247: shl ecx, 2 */
    743     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    744     ecx = ecx << 2u; /* 0x36088247: shl ecx, 2 */
    745     PUSH32(esp, ecx); /* 0x3608824A: push ecx */
    746     RECOMP_ICALL(0x3615FD6Au); /* 0x3608824B: call 0x3615fd6a */ /* not lifted */
    747     RECOMP_FLAGS_IN();
    748     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    749     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    750     esp = esp + 4; /* 0x36088250: add esp, 4 */
    751     _flag_k = FK_ADD;
    752     MEM32(ebx + 0x4) = eax; /* 0x36088253: mov dword ptr [ebx + 4], eax */
    753     ecx = MEM32(esi + 0x8); /* 0x36088256: mov ecx, dword ptr [esi + 8] */
    754     esi = MEM32(esi + 0x4); /* 0x36088259: mov esi, dword ptr [esi + 4] */
    755     PUSH32(esp, eax); /* 0x3608825C: push eax */
    756     PUSH32(esp, ecx); /* 0x3608825D: push ecx */
    757     PUSH32(esp, esi); /* 0x3608825E: push esi */
    758     ecx = ebx; /* 0x3608825F: mov ecx, ebx */
    759     RECOMP_ICALL(0x3606C710u); /* 0x36088261: call 0x3606c710 */ /* not lifted */
    760     RECOMP_FLAGS_IN();
    761     edi = POP32_VAL(esp); /* 0x36088266: pop edi */
    762     MEM32(ebx + 0x8) = eax; /* 0x36088267: mov dword ptr [ebx + 8], eax */
    763     MEM32(ebx + 0xC) = eax; /* 0x3608826A: mov dword ptr [ebx + 0xc], eax */
    764     eax = MEM32(ebp + (-0xC)); /* 0x3608826D: mov eax, dword ptr [ebp - 0xc] */
    765     esi = POP32_VAL(esp); /* 0x36088270: pop esi */
    766     ebx = POP32_VAL(esp); /* 0x36088271: pop ebx */
    767     esp = ebp; /* 0x36088272: mov esp, ebp */
    768     ebp = POP32_VAL(esp); /* 0x36088274: pop ebp */
    769     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36088275: ret  */
    770 L_36088276:
    771     MEM32(ebp + (-0xC)) = 2; /* 0x36088276: mov dword ptr [ebp - 0xc], 2 */
    772 L_3608827D:
    773     eax = MEM32(ebp + (-0xC)); /* 0x3608827D: mov eax, dword ptr [ebp - 0xc] */
    774     edi = POP32_VAL(esp); /* 0x36088280: pop edi */
    775     esi = POP32_VAL(esp); /* 0x36088281: pop esi */
    776     ebx = POP32_VAL(esp); /* 0x36088282: pop ebx */
    777     esp = ebp; /* 0x36088283: mov esp, ebp */
    778     ebp = POP32_VAL(esp); /* 0x36088285: pop ebp */
    779     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36088286: ret  */
    780     RECOMP_REGS_OUT();
    781 }
    782 
    783 void sub_36088290(void) {
    784     int _fpu_cmp = 0;
    785     uint32_t _cf = 0;
    786     int _df = 1;
    787     uint32_t _flag_k = FK_NONE;
    788     uint32_t _flag_a = 0, _flag_b = 0;
    789     uint32_t _itail_tgt = 0;
    790     RECOMP_REGS_LOCALS
    791     RECOMP_ENTER(0x36088290u);
    792 
    793 L_36088290:
    794     PUSH32(esp, ebp); /* 0x36088290: push ebp */
    795     ebp = esp; /* 0x36088291: mov ebp, esp */
    796     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
    797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    798     esp = esp - 0x28u; /* 0x36088293: sub esp, 0x28 */
    799     _flag_k = FK_CMP;
    800     PUSH32(esp, ebx); /* 0x36088296: push ebx */
    801     PUSH32(esp, esi); /* 0x36088297: push esi */
    802     esi = MEM32(ebp + 0x8); /* 0x36088298: mov esi, dword ptr [ebp + 8] */
    803     PUSH32(esp, edi); /* 0x3608829B: push edi */
    804     edi = ecx; /* 0x3608829C: mov edi, ecx */
    805     PUSH32(esp, esi); /* 0x3608829E: push esi */
    806     RECOMP_ICALL(MEM32(0x3616FD30)); /* 0x3608829F: call dword ptr [0x3616fd30] */
    807     RECOMP_FLAGS_IN();
    808     SET_LO8(ecx, MEM8(edi + 0x4C)); /* 0x360882A5: mov cl, byte ptr [edi + 0x4c] */
    809     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    810     eax = 0; /* 0x360882A8: xor eax, eax */
    811     _cf = 0;
    812     _flag_k = FK_TEST;
    813     SET_LO8(eax, MEM8(edi + 0x48)); /* 0x360882AA: mov al, byte ptr [edi + 0x48] */
    814     ebx = MEM32(0x3616FAE8); /* 0x360882AD: mov ebx, dword ptr [0x3616fae8] */
    815     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x7Fu) << 24;
    816     SET_LO8(eax, LO8(eax) & 0x7Fu); /* 0x360882B3: and al, 0x7f */
    817     _cf = 0;
    818     _flag_k = FK_NARROW(FK_TEST, 24);
    819     /* test LO8(ecx), LO8(ecx) */ /* 0x360882B5: test cl, cl */
    820     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    821     _cf = 0;
    822     _flag_k = FK_NARROW(FK_TEST, 24);
    823     SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x360882B7: sete cl */
    824     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    825     ecx = ecx - 1; /* 0x360882BA: dec ecx */
    826     _flag_k = FK_DEC;
    827     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0x80u) << 24;
    828     SET_LO8(ecx, LO8(ecx) & 0x80u); /* 0x360882BB: and cl, 0x80 */
    829     _cf = 0;
    830     _flag_k = FK_NARROW(FK_TEST, 24);
    831     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    833     SET_LO8(eax, LO8(eax) + LO8(ecx)); /* 0x360882BE: add al, cl */
    834     _flag_k = FK_NARROW(FK_ADD, 24);
    835     ecx = esi; /* 0x360882C0: mov ecx, esi */
    836     PUSH32(esp, eax); /* 0x360882C2: push eax */
    837     RECOMP_ICALL(ebx); /* 0x360882C3: call ebx */
    838     RECOMP_FLAGS_IN();
    839     eax = MEM32(edi + 0x44); /* 0x360882C5: mov eax, dword ptr [edi + 0x44] */
    840     edx = MEM32(eax + 0x4); /* 0x360882C8: mov edx, dword ptr [eax + 4] */
    841     /* test edx, edx */ /* 0x360882CB: test edx, edx */
    842     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    843     _cf = 0;
    844     _flag_k = FK_TEST;
    845     if (TEST_NZ(_flag_a, _flag_b)) goto L_360882D4; /* 0x360882CD: jne 0x360882d4 */
    846 L_360882CF:
    847     MEM8(ebp + (-0x8)) = (uint8_t)(LO8(edx)); /* 0x360882CF: mov byte ptr [ebp - 8], dl */
    848     goto L_360882EC; /* 0x360882D2: jmp 0x360882ec */
    849 L_360882D4:
    850     ecx = MEM32(eax + 0x8); /* 0x360882D4: mov ecx, dword ptr [eax + 8] */
    851     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    853     ecx = ecx - edx; /* 0x360882D7: sub ecx, edx */
    854     _flag_k = FK_CMP;
    855     eax = 0x2AAAAAABu; /* 0x360882D9: mov eax, 0x2aaaaaab */
    856     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360882DE: imul ecx */
    857       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    858       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    859     if (1u) _cf = (((edx) >> 0) & 1u); /* 0x360882E0: sar edx, 1 */
    860     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    861     edx = (uint32_t)((int32_t)edx >> 1u);
    862     eax = edx; /* 0x360882E2: mov eax, edx */
    863     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x360882E4: shr eax, 0x1f */
    864     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    865     eax = eax >> 31u; /* 0x360882E4: shr eax, 0x1f */
    866     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    867     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    868     edx = edx + eax; /* 0x360882E7: add edx, eax */
    869     _flag_k = FK_ADD;
    870     MEM8(ebp + (-0x8)) = (uint8_t)(LO8(edx)); /* 0x360882E9: mov byte ptr [ebp - 8], dl */
    871 L_360882EC:
    872     ecx = MEM32(ebp + (-0x8)); /* 0x360882EC: mov ecx, dword ptr [ebp - 8] */
    873     PUSH32(esp, ecx); /* 0x360882EF: push ecx */
    874     ecx = esi; /* 0x360882F0: mov ecx, esi */
    875     RECOMP_ICALL(ebx); /* 0x360882F2: call ebx */
    876     RECOMP_FLAGS_IN();
    877     SET_LO8(edx, MEM8(edi + 0x4C)); /* 0x360882F4: mov dl, byte ptr [edi + 0x4c] */
    878     eax = MEM32(edi + 0x30); /* 0x360882F7: mov eax, dword ptr [edi + 0x30] */
    879     ecx = MEM32(edi + 0x2C); /* 0x360882FA: mov ecx, dword ptr [edi + 0x2c] */
    880     ebx = MEM32(0x3616FAD4); /* 0x360882FD: mov ebx, dword ptr [0x3616fad4] */
    881     PUSH32(esp, eax); /* 0x36088303: push eax */
    882     MEM8(ebp + (-0x24)) = (uint8_t)(LO8(edx)); /* 0x36088304: mov byte ptr [ebp - 0x24], dl */
    883     edx = MEM32(edi + 0x28); /* 0x36088307: mov edx, dword ptr [edi + 0x28] */
    884     PUSH32(esp, ecx); /* 0x3608830A: push ecx */
    885     PUSH32(esp, edx); /* 0x3608830B: push edx */
    886     ecx = esi; /* 0x3608830C: mov ecx, esi */
    887     RECOMP_ICALL(ebx); /* 0x3608830E: call ebx */
    888     RECOMP_FLAGS_IN();
    889     ecx = eax; /* 0x36088310: mov ecx, eax */
    890     RECOMP_ICALL(ebx); /* 0x36088312: call ebx */
    891     RECOMP_FLAGS_IN();
    892     ecx = eax; /* 0x36088314: mov ecx, eax */
    893     RECOMP_ICALL(ebx); /* 0x36088316: call ebx */
    894     RECOMP_FLAGS_IN();
    895     SET_LO8(eax, MEM8(ebp + (-0x24))); /* 0x36088318: mov al, byte ptr [ebp - 0x24] */
    896     /* test LO8(eax), LO8(eax) */ /* 0x3608831B: test al, al */
    897     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    898     _cf = 0;
    899     _flag_k = FK_NARROW(FK_TEST, 24);
    900     if (TEST_Z(_flag_a, _flag_b)) goto L_360883B9; /* 0x3608831D: je 0x360883b9 */
    901 L_36088323:
    902     fp_push(*(float*)&MEM32(edi + 0x34)); /* 0x36088323: fld dword ptr [edi + 0x34] */
    903     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171CB8)); /* 0x36088326: fcom dword ptr [0x36171cb8] */
    904     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608832C: fnstsw ax */
    905     /* test HI8(eax), 0x41u */ /* 0x3608832E: test ah, 0x41 */
    906     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    907     _cf = 0;
    908     _flag_k = FK_NARROW(FK_TEST, 24);
    909     if (TEST_Z(_flag_a, _flag_b)) goto L_3608833E; /* 0x36088331: je 0x3608833e */
    910 L_36088333:
    911     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36088333: fstp st(0) */
    912     MEM32(ebp + (-0x4)) = 0xC57FF000u; /* 0x36088335: mov dword ptr [ebp - 4], 0xc57ff000 */
    913     goto L_36088359; /* 0x3608833C: jmp 0x36088359 */
    914 L_3608833E:
    915     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171CB4)); /* 0x3608833E: fcom dword ptr [0x36171cb4] */
    916     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36088344: fnstsw ax */
    917     /* test HI8(eax), 1 */ /* 0x36088346: test ah, 1 */
    918     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    919     _cf = 0;
    920     _flag_k = FK_NARROW(FK_TEST, 24);
    921     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088356; /* 0x36088349: jne 0x36088356 */
    922 L_3608834B:
    923     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3608834B: fstp st(0) */
    924     MEM32(ebp + (-0x4)) = 0x457FF000u; /* 0x3608834D: mov dword ptr [ebp - 4], 0x457ff000 */
    925     goto L_36088359; /* 0x36088354: jmp 0x36088359 */
    926 L_36088356:
    927     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36088356: fstp dword ptr [ebp - 4] */
    928 L_36088359:
    929     fp_push(*(float*)&MEM32(edi + 0x3C)); /* 0x36088359: fld dword ptr [edi + 0x3c] */
    930     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171CB8)); /* 0x3608835C: fcom dword ptr [0x36171cb8] */
    931     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36088362: fnstsw ax */
    932     /* test HI8(eax), 0x41u */ /* 0x36088364: test ah, 0x41 */
    933     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
    934     _cf = 0;
    935     _flag_k = FK_NARROW(FK_TEST, 24);
    936     if (TEST_Z(_flag_a, _flag_b)) goto L_36088374; /* 0x36088367: je 0x36088374 */
    937 L_36088369:
    938     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36088369: fstp st(0) */
    939     MEM32(ebp + 0x8) = 0xC57FF000u; /* 0x3608836B: mov dword ptr [ebp + 8], 0xc57ff000 */
    940     goto L_3608838F; /* 0x36088372: jmp 0x3608838f */
    941 L_36088374:
    942     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171CB4)); /* 0x36088374: fcom dword ptr [0x36171cb4] */
    943     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608837A: fnstsw ax */
    944     /* test HI8(eax), 1 */ /* 0x3608837C: test ah, 1 */
    945     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    946     _cf = 0;
    947     _flag_k = FK_NARROW(FK_TEST, 24);
    948     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608838C; /* 0x3608837F: jne 0x3608838c */
    949 L_36088381:
    950     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36088381: fstp st(0) */
    951     MEM32(ebp + 0x8) = 0x457FF000u; /* 0x36088383: mov dword ptr [ebp + 8], 0x457ff000 */
    952     goto L_3608838F; /* 0x3608838A: jmp 0x3608838f */
    953 L_3608838C:
    954     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x3608838C: fstp dword ptr [ebp + 8] */
    955 L_3608838F:
    956     eax = MEM32(ebp + 0x8); /* 0x3608838F: mov eax, dword ptr [ebp + 8] */
    957     PUSH32(esp, eax); /* 0x36088392: push eax */
    958     ecx = ebp + 0x8; /* 0x36088393: lea ecx, [ebp + 8] */
    959     RECOMP_ICALL(0x36088790u); /* 0x36088396: call 0x36088790 */ /* not lifted */
    960     RECOMP_FLAGS_IN();
    961     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3608839B: fld dword ptr [ebp - 4] */
    962     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x3608839E: fmul dword ptr [0x36170ba4] */
    963     RECOMP_ICALL(0x3615FD8Cu); /* 0x360883A4: call 0x3615fd8c */ /* not lifted */
    964     RECOMP_FLAGS_IN();
    965     ebx = MEM32(0x3616FACC); /* 0x360883A9: mov ebx, dword ptr [0x3616facc] */
    966     ecx = esi; /* 0x360883AF: mov ecx, esi */
    967     PUSH32(esp, eax); /* 0x360883B1: push eax */
    968     RECOMP_ICALL(ebx); /* 0x360883B2: call ebx */
    969     RECOMP_FLAGS_IN();
    970     ecx = MEM32(ebp + 0x8); /* 0x360883B4: mov ecx, dword ptr [ebp + 8] */
    971     goto L_36088411; /* 0x360883B7: jmp 0x36088411 */
    972 L_360883B9:
    973     edx = MEM32(edi + 0x34); /* 0x360883B9: mov edx, dword ptr [edi + 0x34] */
    974     PUSH32(esp, 0x45FFF800u); /* 0x360883BC: push 0x45fff800 */
    975     PUSH32(esp, 0x38D1B717u); /* 0x360883C1: push 0x38d1b717 */
    976     PUSH32(esp, edx); /* 0x360883C6: push edx */
    977     RECOMP_ICALL(0x360887D0u); /* 0x360883C7: call 0x360887d0 */ /* not lifted */
    978     RECOMP_FLAGS_IN();
    979     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x360883CC: fstp dword ptr [ebp + 8] */
    980     eax = MEM32(edi + 0x3C); /* 0x360883CF: mov eax, dword ptr [edi + 0x3c] */
    981     PUSH32(esp, 0x45FFF800u); /* 0x360883D2: push 0x45fff800 */
    982     PUSH32(esp, 0x38D1B717u); /* 0x360883D7: push 0x38d1b717 */
    983     PUSH32(esp, eax); /* 0x360883DC: push eax */
    984     RECOMP_ICALL(0x360887D0u); /* 0x360883DD: call 0x360887d0 */ /* not lifted */
    985     RECOMP_FLAGS_IN();
    986     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x360883E2: fstp dword ptr [ebp - 4] */
    987     ecx = MEM32(ebp + 0x8); /* 0x360883E5: mov ecx, dword ptr [ebp + 8] */
    988     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    990     esp = esp + 0x18u; /* 0x360883E8: add esp, 0x18 */
    991     _flag_k = FK_ADD;
    992     PUSH32(esp, ecx); /* 0x360883EB: push ecx */
    993     ecx = ebp + (-0xC); /* 0x360883EC: lea ecx, [ebp - 0xc] */
    994     RECOMP_ICALL(0x360887B0u); /* 0x360883EF: call 0x360887b0 */ /* not lifted */
    995     RECOMP_FLAGS_IN();
    996     edx = MEM32(ebp + (-0x4)); /* 0x360883F4: mov edx, dword ptr [ebp - 4] */
    997     PUSH32(esp, edx); /* 0x360883F7: push edx */
    998     ecx = ebp + (-0x10); /* 0x360883F8: lea ecx, [ebp - 0x10] */
    999     RECOMP_ICALL(0x360887B0u); /* 0x360883FB: call 0x360887b0 */ /* not lifted */
   1000     RECOMP_FLAGS_IN();
   1001     eax = MEM32(ebp + (-0xC)); /* 0x36088400: mov eax, dword ptr [ebp - 0xc] */
   1002     ebx = MEM32(0x3616FACC); /* 0x36088403: mov ebx, dword ptr [0x3616facc] */
   1003     PUSH32(esp, eax); /* 0x36088409: push eax */
   1004     ecx = esi; /* 0x3608840A: mov ecx, esi */
   1005     RECOMP_ICALL(ebx); /* 0x3608840C: call ebx */
   1006     RECOMP_FLAGS_IN();
   1007     ecx = MEM32(ebp + (-0x10)); /* 0x3608840E: mov ecx, dword ptr [ebp - 0x10] */
   1008 L_36088411:
   1009     PUSH32(esp, ecx); /* 0x36088411: push ecx */
   1010     ecx = esi; /* 0x36088412: mov ecx, esi */
   1011     RECOMP_ICALL(ebx); /* 0x36088414: call ebx */
   1012     RECOMP_FLAGS_IN();
   1013     eax = MEM32(ebp + (-0x8)); /* 0x36088416: mov eax, dword ptr [ebp - 8] */
   1014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu);
   1015     eax = eax & 0xFFu; /* 0x36088419: and eax, 0xff */
   1016     _cf = 0;
   1017     _flag_k = FK_TEST;
   1018     if (TEST_Z(_flag_a, _flag_b)) goto L_3608852B; /* 0x3608841E: jbe 0x3608852b */
   1019 L_36088424:
   1020     MEM32(ebp + (-0x8)) = 0; /* 0x36088424: mov dword ptr [ebp - 8], 0 */
   1021     MEM32(ebp + (-0x4)) = eax; /* 0x3608842B: mov dword ptr [ebp - 4], eax */
   1022 L_3608842E:
   1023     edx = MEM32(edi + 0x44); /* 0x3608842E: mov edx, dword ptr [edi + 0x44] */
   1024     ebx = MEM32(edx + 0x4); /* 0x36088431: mov ebx, dword ptr [edx + 4] */
   1025     ecx = MEM32(ebp + (-0x8)); /* 0x36088434: mov ecx, dword ptr [ebp - 8] */
   1026     SET_LO8(eax, MEM8(ebp + (-0x24))); /* 0x36088437: mov al, byte ptr [ebp - 0x24] */
   1027     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   1028     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1029     ebx = ebx + ecx; /* 0x3608843A: add ebx, ecx */
   1030     _flag_k = FK_ADD;
   1031     /* test LO8(eax), LO8(eax) */ /* 0x3608843C: test al, al */
   1032     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1033     _cf = 0;
   1034     _flag_k = FK_NARROW(FK_TEST, 24);
   1035     if (TEST_Z(_flag_a, _flag_b)) goto L_360884B9; /* 0x3608843E: je 0x360884b9 */
   1036 L_36088440:
   1037     fp_push(*(float*)&MEM32(ebx)); /* 0x36088440: fld dword ptr [ebx] */
   1038     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171CB8)); /* 0x36088442: fcom dword ptr [0x36171cb8] */
   1039     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36088448: fnstsw ax */
   1040     /* test HI8(eax), 0x41u */ /* 0x3608844A: test ah, 0x41 */
   1041     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1042     _cf = 0;
   1043     _flag_k = FK_NARROW(FK_TEST, 24);
   1044     if (TEST_Z(_flag_a, _flag_b)) goto L_3608845A; /* 0x3608844D: je 0x3608845a */
   1045 L_3608844F:
   1046     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3608844F: fstp st(0) */
   1047     MEM32(ebp + 0x8) = 0xC57FF000u; /* 0x36088451: mov dword ptr [ebp + 8], 0xc57ff000 */
   1048     goto L_36088475; /* 0x36088458: jmp 0x36088475 */
   1049 L_3608845A:
   1050     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36171CB4)); /* 0x3608845A: fcom dword ptr [0x36171cb4] */
   1051     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36088460: fnstsw ax */
   1052     /* test HI8(eax), 1 */ /* 0x36088462: test ah, 1 */
   1053     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1054     _cf = 0;
   1055     _flag_k = FK_NARROW(FK_TEST, 24);
   1056     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088472; /* 0x36088465: jne 0x36088472 */
   1057 L_36088467:
   1058     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36088467: fstp st(0) */
   1059     MEM32(ebp + 0x8) = 0x457FF000u; /* 0x36088469: mov dword ptr [ebp + 8], 0x457ff000 */
   1060     goto L_36088475; /* 0x36088470: jmp 0x36088475 */
   1061 L_36088472:
   1062     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36088472: fstp dword ptr [ebp + 8] */
   1063 L_36088475:
   1064     eax = MEM32(ebx + 0x8); /* 0x36088475: mov eax, dword ptr [ebx + 8] */
   1065     PUSH32(esp, 0x457FF000u); /* 0x36088478: push 0x457ff000 */
   1066     PUSH32(esp, 0xC57FF000u); /* 0x3608847D: push 0xc57ff000 */
   1067     PUSH32(esp, eax); /* 0x36088482: push eax */
   1068     RECOMP_ICALL(0x360887D0u); /* 0x36088483: call 0x360887d0 */ /* not lifted */
   1069     RECOMP_FLAGS_IN();
   1070     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36088488: fstp dword ptr [ebp - 0x10] */
   1071     ecx = MEM32(ebp + 0x8); /* 0x3608848B: mov ecx, dword ptr [ebp + 8] */
   1072     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1073     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1074     esp = esp + 0xCu; /* 0x3608848E: add esp, 0xc */
   1075     _flag_k = FK_ADD;
   1076     PUSH32(esp, ecx); /* 0x36088491: push ecx */
   1077     ecx = ebp + (-0xC); /* 0x36088492: lea ecx, [ebp - 0xc] */
   1078     RECOMP_ICALL(0x36088790u); /* 0x36088495: call 0x36088790 */ /* not lifted */
   1079     RECOMP_FLAGS_IN();
   1080     edx = MEM32(ebp + (-0x10)); /* 0x3608849A: mov edx, dword ptr [ebp - 0x10] */
   1081     PUSH32(esp, edx); /* 0x3608849D: push edx */
   1082     ecx = ebp + (-0x14); /* 0x3608849E: lea ecx, [ebp - 0x14] */
   1083     RECOMP_ICALL(0x36088790u); /* 0x360884A1: call 0x36088790 */ /* not lifted */
   1084     RECOMP_FLAGS_IN();
   1085     eax = MEM32(ebp + (-0xC)); /* 0x360884A6: mov eax, dword ptr [ebp - 0xc] */
   1086     ebx = MEM32(0x3616FACC); /* 0x360884A9: mov ebx, dword ptr [0x3616facc] */
   1087     PUSH32(esp, eax); /* 0x360884AF: push eax */
   1088     ecx = esi; /* 0x360884B0: mov ecx, esi */
   1089     RECOMP_ICALL(ebx); /* 0x360884B2: call ebx */
   1090     RECOMP_FLAGS_IN();
   1091     ecx = MEM32(ebp + (-0x14)); /* 0x360884B4: mov ecx, dword ptr [ebp - 0x14] */
   1092     goto L_36088510; /* 0x360884B7: jmp 0x36088510 */
   1093 L_360884B9:
   1094     edx = MEM32(ebx); /* 0x360884B9: mov edx, dword ptr [ebx] */
   1095     PUSH32(esp, 0x45FFF800u); /* 0x360884BB: push 0x45fff800 */
   1096     PUSH32(esp, 0x38D1B717u); /* 0x360884C0: push 0x38d1b717 */
   1097     PUSH32(esp, edx); /* 0x360884C5: push edx */
   1098     RECOMP_ICALL(0x360887D0u); /* 0x360884C6: call 0x360887d0 */ /* not lifted */
   1099     RECOMP_FLAGS_IN();
   1100     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x360884CB: fstp dword ptr [ebp - 0x10] */
   1101     eax = MEM32(ebx + 0x8); /* 0x360884CE: mov eax, dword ptr [ebx + 8] */
   1102     PUSH32(esp, 0x45FFF800u); /* 0x360884D1: push 0x45fff800 */
   1103     PUSH32(esp, 0x38D1B717u); /* 0x360884D6: push 0x38d1b717 */
   1104     PUSH32(esp, eax); /* 0x360884DB: push eax */
   1105     RECOMP_ICALL(0x360887D0u); /* 0x360884DC: call 0x360887d0 */ /* not lifted */
   1106     RECOMP_FLAGS_IN();
   1107     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x360884E1: fstp dword ptr [ebp - 0x18] */
   1108     ecx = MEM32(ebp + (-0x10)); /* 0x360884E4: mov ecx, dword ptr [ebp - 0x10] */
   1109     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1110     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1111     esp = esp + 0x18u; /* 0x360884E7: add esp, 0x18 */
   1112     _flag_k = FK_ADD;
   1113     PUSH32(esp, ecx); /* 0x360884EA: push ecx */
   1114     ecx = ebp + (-0x1C); /* 0x360884EB: lea ecx, [ebp - 0x1c] */
   1115     RECOMP_ICALL(0x360887B0u); /* 0x360884EE: call 0x360887b0 */ /* not lifted */
   1116     RECOMP_FLAGS_IN();
   1117     edx = MEM32(ebp + (-0x18)); /* 0x360884F3: mov edx, dword ptr [ebp - 0x18] */
   1118     PUSH32(esp, edx); /* 0x360884F6: push edx */
   1119     ecx = ebp + (-0x20); /* 0x360884F7: lea ecx, [ebp - 0x20] */
   1120     RECOMP_ICALL(0x360887B0u); /* 0x360884FA: call 0x360887b0 */ /* not lifted */
   1121     RECOMP_FLAGS_IN();
   1122     eax = MEM32(ebp + (-0x1C)); /* 0x360884FF: mov eax, dword ptr [ebp - 0x1c] */
   1123     ebx = MEM32(0x3616FACC); /* 0x36088502: mov ebx, dword ptr [0x3616facc] */
   1124     PUSH32(esp, eax); /* 0x36088508: push eax */
   1125     ecx = esi; /* 0x36088509: mov ecx, esi */
   1126     RECOMP_ICALL(ebx); /* 0x3608850B: call ebx */
   1127     RECOMP_FLAGS_IN();
   1128     ecx = MEM32(ebp + (-0x20)); /* 0x3608850D: mov ecx, dword ptr [ebp - 0x20] */
   1129 L_36088510:
   1130     PUSH32(esp, ecx); /* 0x36088510: push ecx */
   1131     ecx = esi; /* 0x36088511: mov ecx, esi */
   1132     RECOMP_ICALL(ebx); /* 0x36088513: call ebx */
   1133     RECOMP_FLAGS_IN();
   1134     ecx = MEM32(ebp + (-0x8)); /* 0x36088515: mov ecx, dword ptr [ebp - 8] */
   1135     eax = MEM32(ebp + (-0x4)); /* 0x36088518: mov eax, dword ptr [ebp - 4] */
   1136     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   1137     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1138     ecx = ecx + 0xCu; /* 0x3608851B: add ecx, 0xc */
   1139     _flag_k = FK_ADD;
   1140     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1141     eax = eax - 1; /* 0x3608851E: dec eax */
   1142     _flag_k = FK_DEC;
   1143     MEM32(ebp + (-0x8)) = ecx; /* 0x3608851F: mov dword ptr [ebp - 8], ecx */
   1144     MEM32(ebp + (-0x4)) = eax; /* 0x36088522: mov dword ptr [ebp - 4], eax */
   1145     RECOMP_BACKEDGE();
   1146     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3608842E; /* 0x36088525: jne 0x3608842e */
   1147 L_3608852B:
   1148     edi = POP32_VAL(esp); /* 0x3608852B: pop edi */
   1149     esi = POP32_VAL(esp); /* 0x3608852C: pop esi */
   1150     ebx = POP32_VAL(esp); /* 0x3608852D: pop ebx */
   1151     esp = ebp; /* 0x3608852E: mov esp, ebp */
   1152     ebp = POP32_VAL(esp); /* 0x36088530: pop ebp */
   1153     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088531: ret 4 */
   1154     RECOMP_REGS_OUT();
   1155 }
   1156 
   1157 void sub_36088540(void) {
   1158     int _fpu_cmp = 0;
   1159     uint32_t _cf = 0;
   1160     int _df = 1;
   1161     uint32_t _flag_k = FK_NONE;
   1162     uint32_t _flag_a = 0, _flag_b = 0;
   1163     uint32_t _itail_tgt = 0;
   1164     RECOMP_REGS_LOCALS
   1165     RECOMP_ENTER(0x36088540u);
   1166 
   1167 L_36088540:
   1168     PUSH32(esp, ebp); /* 0x36088540: push ebp */
   1169     ebp = esp; /* 0x36088541: mov ebp, esp */
   1170     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u);
   1171     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1172     esp = esp - 0x34u; /* 0x36088543: sub esp, 0x34 */
   1173     _flag_k = FK_CMP;
   1174     PUSH32(esp, ebx); /* 0x36088546: push ebx */
   1175     PUSH32(esp, esi); /* 0x36088547: push esi */
   1176     esi = MEM32(ebp + 0x8); /* 0x36088548: mov esi, dword ptr [ebp + 8] */
   1177     PUSH32(esp, edi); /* 0x3608854B: push edi */
   1178     edi = ecx; /* 0x3608854C: mov edi, ecx */
   1179     PUSH32(esp, esi); /* 0x3608854E: push esi */
   1180     RECOMP_ICALL(MEM32(0x3616FD34)); /* 0x3608854F: call dword ptr [0x3616fd34] */
   1181     RECOMP_FLAGS_IN();
   1182     /* test eax, eax */ /* 0x36088555: test eax, eax */
   1183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1184     _cf = 0;
   1185     _flag_k = FK_TEST;
   1186     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608873E; /* 0x36088557: jne 0x3608873e */
   1187 L_3608855D:
   1188     ebx = MEM32(0x3616FAE0); /* 0x3608855D: mov ebx, dword ptr [0x3616fae0] */
   1189     eax = ebp + 0xB; /* 0x36088563: lea eax, [ebp + 0xb] */
   1190     PUSH32(esp, eax); /* 0x36088566: push eax */
   1191     ecx = esi; /* 0x36088567: mov ecx, esi */
   1192     RECOMP_ICALL(ebx); /* 0x36088569: call ebx */
   1193     RECOMP_FLAGS_IN();
   1194     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3608856B: mov al, byte ptr [ebp + 0xb] */
   1195     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1196     ecx = 0; /* 0x3608856E: xor ecx, ecx */
   1197     _cf = 0;
   1198     _flag_k = FK_TEST;
   1199     SET_LO8(ecx, LO8(eax)); /* 0x36088570: mov cl, al */
   1200     edx = ebp + (-0xC); /* 0x36088572: lea edx, [ebp - 0xc] */
   1201     if (7u) _cf = (((LO8(eax)) >> 6) & 1u); /* 0x36088575: shr al, 7 */
   1202     if (7u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(eax) >> 7u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1203     SET_LO8(eax, LO8(eax) >> 7u); /* 0x36088575: shr al, 7 */
   1204     PUSH32(esp, edx); /* 0x36088578: push edx */
   1205     MEM8(edi + 0x4C) = (uint8_t)(LO8(eax)); /* 0x36088579: mov byte ptr [edi + 0x4c], al */
   1206     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x7Fu);
   1207     ecx = ecx & 0x7Fu; /* 0x3608857C: and ecx, 0x7f */
   1208     _cf = 0;
   1209     _flag_k = FK_TEST;
   1210     MEM32(edi + 0x48) = ecx; /* 0x3608857F: mov dword ptr [edi + 0x48], ecx */
   1211     ecx = esi; /* 0x36088582: mov ecx, esi */
   1212     RECOMP_ICALL(ebx); /* 0x36088584: call ebx */
   1213     RECOMP_FLAGS_IN();
   1214     /* cmp MEM8(ebp + (-0xC)), 0x7Fu */ /* 0x36088586: cmp byte ptr [ebp - 0xc], 0x7f */
   1215     _flag_a = (uint32_t)(MEM8(ebp + (-0xC))) << 24; _flag_b = (uint32_t)(0x7Fu) << 24;
   1216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1217     _flag_k = FK_NARROW(FK_CMP, 24);
   1218     if (CMP_BE(_flag_a, _flag_b)) goto L_3608859A; /* 0x3608858A: jbe 0x3608859a */
   1219 L_3608858C:
   1220     edi = POP32_VAL(esp); /* 0x3608858C: pop edi */
   1221     esi = POP32_VAL(esp); /* 0x3608858D: pop esi */
   1222     eax = 1; /* 0x3608858E: mov eax, 1 */
   1223     ebx = POP32_VAL(esp); /* 0x36088593: pop ebx */
   1224     esp = ebp; /* 0x36088594: mov esp, ebp */
   1225     ebp = POP32_VAL(esp); /* 0x36088596: pop ebp */
   1226     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088597: ret 4 */
   1227 L_3608859A:
   1228     SET_LO8(eax, MEM8(edi + 0x4C)); /* 0x3608859A: mov al, byte ptr [edi + 0x4c] */
   1229     ebx = MEM32(0x3616FAD0); /* 0x3608859D: mov ebx, dword ptr [0x3616fad0] */
   1230     MEM8(ebp + (-0x18)) = (uint8_t)(LO8(eax)); /* 0x360885A3: mov byte ptr [ebp - 0x18], al */
   1231     eax = edi + 0x28; /* 0x360885A6: lea eax, [edi + 0x28] */
   1232     ecx = eax + 0x8; /* 0x360885A9: lea ecx, [eax + 8] */
   1233     PUSH32(esp, ecx); /* 0x360885AC: push ecx */
   1234     edx = eax + 0x4; /* 0x360885AD: lea edx, [eax + 4] */
   1235     PUSH32(esp, edx); /* 0x360885B0: push edx */
   1236     PUSH32(esp, eax); /* 0x360885B1: push eax */
   1237     ecx = esi; /* 0x360885B2: mov ecx, esi */
   1238     RECOMP_ICALL(ebx); /* 0x360885B4: call ebx */
   1239     RECOMP_FLAGS_IN();
   1240     ecx = eax; /* 0x360885B6: mov ecx, eax */
   1241     RECOMP_ICALL(ebx); /* 0x360885B8: call ebx */
   1242     RECOMP_FLAGS_IN();
   1243     ecx = eax; /* 0x360885BA: mov ecx, eax */
   1244     RECOMP_ICALL(ebx); /* 0x360885BC: call ebx */
   1245     RECOMP_FLAGS_IN();
   1246     SET_LO8(eax, MEM8(ebp + (-0x18))); /* 0x360885BE: mov al, byte ptr [ebp - 0x18] */
   1247     /* test LO8(eax), LO8(eax) */ /* 0x360885C1: test al, al */
   1248     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1249     _cf = 0;
   1250     _flag_k = FK_NARROW(FK_TEST, 24);
   1251     MEM32(ebp + (-0x24)) = 0; /* 0x360885C3: mov dword ptr [ebp - 0x24], 0 */
   1252     if (TEST_Z(_flag_a, _flag_b)) goto L_36088607; /* 0x360885CA: je 0x36088607 */
   1253 L_360885CC:
   1254     ebx = MEM32(0x3616FAC8); /* 0x360885CC: mov ebx, dword ptr [0x3616fac8] */
   1255     eax = ebp + (-0x4); /* 0x360885D2: lea eax, [ebp - 4] */
   1256     PUSH32(esp, eax); /* 0x360885D5: push eax */
   1257     ecx = esi; /* 0x360885D6: mov ecx, esi */
   1258     RECOMP_ICALL(ebx); /* 0x360885D8: call ebx */
   1259     RECOMP_FLAGS_IN();
   1260     ecx = (int32_t)(int16_t)MEM16(ebp + (-0x4)); /* 0x360885DA: movsx ecx, word ptr [ebp - 4] */
   1261     MEM32(ebp + (-0x10)) = ecx; /* 0x360885DE: mov dword ptr [ebp - 0x10], ecx */
   1262     edx = ebp + (-0x4); /* 0x360885E1: lea edx, [ebp - 4] */
   1263     PUSH32(esp, edx); /* 0x360885E4: push edx */
   1264     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x360885E5: fild dword ptr [ebp - 0x10] */
   1265     ecx = esi; /* 0x360885E8: mov ecx, esi */
   1266     _st[0] *= (double)*(float*)ADDR(0x36170B98); /* 0x360885EA: fmul dword ptr [0x36170b98] */
   1267     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x360885F0: fstp dword ptr [ebp - 0x28] */
   1268     RECOMP_ICALL(ebx); /* 0x360885F3: call ebx */
   1269     RECOMP_FLAGS_IN();
   1270     eax = (int32_t)(int16_t)MEM16(ebp + (-0x4)); /* 0x360885F5: movsx eax, word ptr [ebp - 4] */
   1271     MEM32(ebp + (-0x10)) = eax; /* 0x360885F9: mov dword ptr [ebp - 0x10], eax */
   1272     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x360885FC: fild dword ptr [ebp - 0x10] */
   1273     _st[0] *= (double)*(float*)ADDR(0x36170B98); /* 0x360885FF: fmul dword ptr [0x36170b98] */
   1274     goto L_3608864A; /* 0x36088605: jmp 0x3608864a */
   1275 L_36088607:
   1276     ebx = MEM32(0x3616FAC8); /* 0x36088607: mov ebx, dword ptr [0x3616fac8] */
   1277     ecx = ebp + (-0x8); /* 0x3608860D: lea ecx, [ebp - 8] */
   1278     PUSH32(esp, ecx); /* 0x36088610: push ecx */
   1279     ecx = esi; /* 0x36088611: mov ecx, esi */
   1280     RECOMP_ICALL(ebx); /* 0x36088613: call ebx */
   1281     RECOMP_FLAGS_IN();
   1282     edx = MEM32(ebp + (-0x8)); /* 0x36088615: mov edx, dword ptr [ebp - 8] */
   1283     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu);
   1284     edx = edx & 0xFFFFu; /* 0x36088618: and edx, 0xffff */
   1285     _cf = 0;
   1286     _flag_k = FK_TEST;
   1287     MEM32(ebp + (-0x10)) = edx; /* 0x3608861E: mov dword ptr [ebp - 0x10], edx */
   1288     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36088621: fild dword ptr [ebp - 0x10] */
   1289     eax = ebp + (-0x8); /* 0x36088624: lea eax, [ebp - 8] */
   1290     PUSH32(esp, eax); /* 0x36088627: push eax */
   1291     ecx = esi; /* 0x36088628: mov ecx, esi */
   1292     _st[0] *= (double)*(float*)ADDR(0x36170B9C); /* 0x3608862A: fmul dword ptr [0x36170b9c] */
   1293     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36088630: fstp dword ptr [ebp - 0x28] */
   1294     RECOMP_ICALL(ebx); /* 0x36088633: call ebx */
   1295     RECOMP_FLAGS_IN();
   1296     ecx = MEM32(ebp + (-0x8)); /* 0x36088635: mov ecx, dword ptr [ebp - 8] */
   1297     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   1298     ecx = ecx & 0xFFFFu; /* 0x36088638: and ecx, 0xffff */
   1299     _cf = 0;
   1300     _flag_k = FK_TEST;
   1301     MEM32(ebp + (-0x10)) = ecx; /* 0x3608863E: mov dword ptr [ebp - 0x10], ecx */
   1302     fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36088641: fild dword ptr [ebp - 0x10] */
   1303     _st[0] *= (double)*(float*)ADDR(0x36170B9C); /* 0x36088644: fmul dword ptr [0x36170b9c] */
   1304 L_3608864A:
   1305     eax = MEM32(ebp + (-0x28)); /* 0x3608864A: mov eax, dword ptr [ebp - 0x28] */
   1306     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3608864D: fstp dword ptr [ebp - 0x20] */
   1307     ecx = MEM32(ebp + (-0x24)); /* 0x36088650: mov ecx, dword ptr [ebp - 0x24] */
   1308     edx = edi + 0x34; /* 0x36088653: lea edx, [edi + 0x34] */
   1309     MEM32(edx) = eax; /* 0x36088656: mov dword ptr [edx], eax */
   1310     eax = MEM32(ebp + (-0x20)); /* 0x36088658: mov eax, dword ptr [ebp - 0x20] */
   1311     MEM32(edx + 0x4) = ecx; /* 0x3608865B: mov dword ptr [edx + 4], ecx */
   1312     MEM32(edx + 0x8) = eax; /* 0x3608865E: mov dword ptr [edx + 8], eax */
   1313     SET_LO8(eax, MEM8(ebp + (-0xC))); /* 0x36088661: mov al, byte ptr [ebp - 0xc] */
   1314     /* test LO8(eax), LO8(eax) */ /* 0x36088664: test al, al */
   1315     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1316     _cf = 0;
   1317     _flag_k = FK_NARROW(FK_TEST, 24);
   1318     MEM32(ebp + (-0x10)) = 0; /* 0x36088666: mov dword ptr [ebp - 0x10], 0 */
   1319     if (TEST_Z(_flag_a, _flag_b)) goto L_36088731; /* 0x3608866D: jbe 0x36088731 */
   1320 L_36088673:
   1321     MEM32(ebp + (-0x24)) = 0; /* 0x36088673: mov dword ptr [ebp - 0x24], 0 */
   1322 L_3608867A:
   1323     SET_LO8(eax, MEM8(ebp + (-0x18))); /* 0x3608867A: mov al, byte ptr [ebp - 0x18] */
   1324     /* test LO8(eax), LO8(eax) */ /* 0x3608867D: test al, al */
   1325     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1326     _cf = 0;
   1327     _flag_k = FK_NARROW(FK_TEST, 24);
   1328     if (TEST_Z(_flag_a, _flag_b)) goto L_360886B6; /* 0x3608867F: je 0x360886b6 */
   1329 L_36088681:
   1330     ecx = ebp + (-0x8); /* 0x36088681: lea ecx, [ebp - 8] */
   1331     PUSH32(esp, ecx); /* 0x36088684: push ecx */
   1332     ecx = esi; /* 0x36088685: mov ecx, esi */
   1333     RECOMP_ICALL(ebx); /* 0x36088687: call ebx */
   1334     RECOMP_FLAGS_IN();
   1335     edx = (int32_t)(int16_t)MEM16(ebp + (-0x8)); /* 0x36088689: movsx edx, word ptr [ebp - 8] */
   1336     MEM32(ebp + (-0x14)) = edx; /* 0x3608868D: mov dword ptr [ebp - 0x14], edx */
   1337     eax = ebp + (-0x8); /* 0x36088690: lea eax, [ebp - 8] */
   1338     PUSH32(esp, eax); /* 0x36088693: push eax */
   1339     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x36088694: fild dword ptr [ebp - 0x14] */
   1340     ecx = esi; /* 0x36088697: mov ecx, esi */
   1341     _st[0] *= (double)*(float*)ADDR(0x36170B98); /* 0x36088699: fmul dword ptr [0x36170b98] */
   1342     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3608869F: fstp dword ptr [ebp - 0x28] */
   1343     RECOMP_ICALL(ebx); /* 0x360886A2: call ebx */
   1344     RECOMP_FLAGS_IN();
   1345     ecx = (int32_t)(int16_t)MEM16(ebp + (-0x8)); /* 0x360886A4: movsx ecx, word ptr [ebp - 8] */
   1346     MEM32(ebp + (-0x14)) = ecx; /* 0x360886A8: mov dword ptr [ebp - 0x14], ecx */
   1347     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x360886AB: fild dword ptr [ebp - 0x14] */
   1348     _st[0] *= (double)*(float*)ADDR(0x36170B98); /* 0x360886AE: fmul dword ptr [0x36170b98] */
   1349     goto L_360886F2; /* 0x360886B4: jmp 0x360886f2 */
   1350 L_360886B6:
   1351     edx = ebp + (-0x4); /* 0x360886B6: lea edx, [ebp - 4] */
   1352     PUSH32(esp, edx); /* 0x360886B9: push edx */
   1353     ecx = esi; /* 0x360886BA: mov ecx, esi */
   1354     RECOMP_ICALL(ebx); /* 0x360886BC: call ebx */
   1355     RECOMP_FLAGS_IN();
   1356     eax = MEM32(ebp + (-0x4)); /* 0x360886BE: mov eax, dword ptr [ebp - 4] */
   1357     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
   1358     eax = eax & 0xFFFFu; /* 0x360886C1: and eax, 0xffff */
   1359     _cf = 0;
   1360     _flag_k = FK_TEST;
   1361     MEM32(ebp + (-0x14)) = eax; /* 0x360886C6: mov dword ptr [ebp - 0x14], eax */
   1362     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x360886C9: fild dword ptr [ebp - 0x14] */
   1363     ecx = ebp + (-0x4); /* 0x360886CC: lea ecx, [ebp - 4] */
   1364     PUSH32(esp, ecx); /* 0x360886CF: push ecx */
   1365     ecx = esi; /* 0x360886D0: mov ecx, esi */
   1366     _st[0] *= (double)*(float*)ADDR(0x36170B9C); /* 0x360886D2: fmul dword ptr [0x36170b9c] */
   1367     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x360886D8: fstp dword ptr [ebp - 0x28] */
   1368     RECOMP_ICALL(ebx); /* 0x360886DB: call ebx */
   1369     RECOMP_FLAGS_IN();
   1370     edx = MEM32(ebp + (-0x4)); /* 0x360886DD: mov edx, dword ptr [ebp - 4] */
   1371     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu);
   1372     edx = edx & 0xFFFFu; /* 0x360886E0: and edx, 0xffff */
   1373     _cf = 0;
   1374     _flag_k = FK_TEST;
   1375     MEM32(ebp + (-0x14)) = edx; /* 0x360886E6: mov dword ptr [ebp - 0x14], edx */
   1376     fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x360886E9: fild dword ptr [ebp - 0x14] */
   1377     _st[0] *= (double)*(float*)ADDR(0x36170B9C); /* 0x360886EC: fmul dword ptr [0x36170b9c] */
   1378 L_360886F2:
   1379     eax = MEM32(ebp + (-0x28)); /* 0x360886F2: mov eax, dword ptr [ebp - 0x28] */
   1380     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x360886F5: fstp dword ptr [ebp - 0x20] */
   1381     ecx = MEM32(ebp + (-0x24)); /* 0x360886F8: mov ecx, dword ptr [ebp - 0x24] */
   1382     edx = MEM32(ebp + (-0x20)); /* 0x360886FB: mov edx, dword ptr [ebp - 0x20] */
   1383     MEM32(ebp + (-0x34)) = eax; /* 0x360886FE: mov dword ptr [ebp - 0x34], eax */
   1384     MEM32(ebp + (-0x30)) = ecx; /* 0x36088701: mov dword ptr [ebp - 0x30], ecx */
   1385     ecx = MEM32(edi + 0x44); /* 0x36088704: mov ecx, dword ptr [edi + 0x44] */
   1386     eax = ebp + (-0x34); /* 0x36088707: lea eax, [ebp - 0x34] */
   1387     PUSH32(esp, eax); /* 0x3608870A: push eax */
   1388     MEM32(ebp + (-0x2C)) = edx; /* 0x3608870B: mov dword ptr [ebp - 0x2c], edx */
   1389     edx = MEM32(ecx + 0x8); /* 0x3608870E: mov edx, dword ptr [ecx + 8] */
   1390     PUSH32(esp, 1); /* 0x36088711: push 1 */
   1391     PUSH32(esp, edx); /* 0x36088713: push edx */
   1392     RECOMP_ICALL(0x360AA8C0u); /* 0x36088714: call 0x360aa8c0 */ /* not lifted */
   1393     RECOMP_FLAGS_IN();
   1394     eax = MEM32(ebp + (-0x10)); /* 0x36088719: mov eax, dword ptr [ebp - 0x10] */
   1395     ecx = MEM32(ebp + (-0xC)); /* 0x3608871C: mov ecx, dword ptr [ebp - 0xc] */
   1396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1397     eax = eax + 1; /* 0x3608871F: inc eax */
   1398     _flag_k = FK_INC;
   1399     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu);
   1400     ecx = ecx & 0xFFu; /* 0x36088720: and ecx, 0xff */
   1401     _cf = 0;
   1402     _flag_k = FK_TEST;
   1403     /* cmp eax, ecx */ /* 0x36088726: cmp eax, ecx */
   1404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1406     _flag_k = FK_CMP;
   1407     MEM32(ebp + (-0x10)) = eax; /* 0x36088728: mov dword ptr [ebp - 0x10], eax */
   1408     RECOMP_BACKEDGE();
   1409     if (CMP_B(_flag_a, _flag_b)) goto L_3608867A; /* 0x3608872B: jb 0x3608867a */
   1410 L_36088731:
   1411     ecx = esi; /* 0x36088731: mov ecx, esi */
   1412     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36088733: call dword ptr [0x3616fadc] */
   1413     RECOMP_FLAGS_IN();
   1414     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1415     _cf = (eax) != 0;
   1416     eax = (uint32_t)(-(int32_t)eax); /* 0x36088739: neg eax */
   1417     _flag_k = FK_CMP;
   1418     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3608873B: sbb eax, eax */
   1419       eax = _sc ? 0xFFFFFFFFu : 0;
   1420       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1421       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1422     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1423     eax = eax + 1; /* 0x3608873D: inc eax */
   1424     _flag_k = FK_INC;
   1425 L_3608873E:
   1426     edi = POP32_VAL(esp); /* 0x3608873E: pop edi */
   1427     esi = POP32_VAL(esp); /* 0x3608873F: pop esi */
   1428     ebx = POP32_VAL(esp); /* 0x36088740: pop ebx */
   1429     esp = ebp; /* 0x36088741: mov esp, ebp */
   1430     ebp = POP32_VAL(esp); /* 0x36088743: pop ebp */
   1431     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088744: ret 4 */
   1432     RECOMP_REGS_OUT();
   1433 }
   1434 
   1435 void sub_36088750(void) {
   1436     int _fpu_cmp = 0;
   1437     uint32_t _cf = 0;
   1438     int _df = 1;
   1439     uint32_t _flag_k = FK_NONE;
   1440     uint32_t _flag_a = 0, _flag_b = 0;
   1441     uint32_t _itail_tgt = 0;
   1442     RECOMP_REGS_LOCALS
   1443     RECOMP_ENTER(0x36088750u);
   1444 
   1445 L_36088750:
   1446     eax = ecx + 0x4; /* 0x36088750: lea eax, [ecx + 4] */
   1447     /* cmp MEM32(eax), 0xC350u */ /* 0x36088753: cmp dword ptr [eax], 0xc350 */
   1448     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xC350u);
   1449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1450     _flag_k = FK_CMP;
   1451     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088761; /* 0x36088759: je 0x36088761 */
   1452 L_3608875B:
   1453     eax = 3; /* 0x3608875B: mov eax, 3 */
   1454     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36088760: ret  */
   1455 L_36088761:
   1456     PUSH32(esp, eax); /* 0x36088761: push eax */
   1457     RECOMP_ICALL(0x3606DA90u); /* 0x36088762: call 0x3606da90 */ /* not lifted */
   1458     RECOMP_FLAGS_IN();
   1459     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1460     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1461     esp = esp + 4; /* 0x36088767: add esp, 4 */
   1462     _flag_k = FK_ADD;
   1463     /* test eax, eax */ /* 0x3608876A: test eax, eax */
   1464     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1465     _cf = 0;
   1466     _flag_k = FK_TEST;
   1467     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088774; /* 0x3608876C: jne 0x36088774 */
   1468 L_3608876E:
   1469     eax = 3; /* 0x3608876E: mov eax, 3 */
   1470     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36088773: ret  */
   1471 L_36088774:
   1472     eax = MEM32(eax + 0x188); /* 0x36088774: mov eax, dword ptr [eax + 0x188] */
   1473     PUSH32(esp, 4); /* 0x3608877A: push 4 */
   1474     ecx = eax; /* 0x3608877C: mov ecx, eax */
   1475     RECOMP_ICALL(0x36059BA0u); /* 0x3608877E: call 0x36059ba0 */ /* not lifted */
   1476     RECOMP_FLAGS_IN();
   1477     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1478     _cf = (LO8(eax)) != 0;
   1479     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36088783: neg al */
   1480     _flag_k = FK_NARROW(FK_CMP, 24);
   1481     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36088785: sbb eax, eax */
   1482       eax = _sc ? 0xFFFFFFFFu : 0;
   1483       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1484       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1485     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   1486     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1487     eax = eax + 2; /* 0x36088787: add eax, 2 */
   1488     _flag_k = FK_ADD;
   1489     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608878A: ret  */
   1490     RECOMP_REGS_OUT();
   1491 }
   1492 
   1493 void sub_36088790(void) {
   1494     int _fpu_cmp = 0;
   1495     uint32_t _cf = 0;
   1496     int _df = 1;
   1497     uint32_t _flag_k = FK_NONE;
   1498     uint32_t _flag_a = 0, _flag_b = 0;
   1499     uint32_t _itail_tgt = 0;
   1500     RECOMP_REGS_LOCALS
   1501     RECOMP_ENTER(0x36088790u);
   1502 
   1503 L_36088790:
   1504     PUSH32(esp, ebp); /* 0x36088790: push ebp */
   1505     ebp = esp; /* 0x36088791: mov ebp, esp */
   1506     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x36088793: fld dword ptr [ebp + 8] */
   1507     PUSH32(esp, esi); /* 0x36088796: push esi */
   1508     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x36088797: fmul dword ptr [0x36170ba4] */
   1509     esi = ecx; /* 0x3608879D: mov esi, ecx */
   1510     RECOMP_ICALL(0x3615FD8Cu); /* 0x3608879F: call 0x3615fd8c */ /* not lifted */
   1511     RECOMP_FLAGS_IN();
   1512     MEM16(esi) = (uint16_t)(LO16(eax)); /* 0x360887A4: mov word ptr [esi], ax */
   1513     eax = esi; /* 0x360887A7: mov eax, esi */
   1514     esi = POP32_VAL(esp); /* 0x360887A9: pop esi */
   1515     ebp = POP32_VAL(esp); /* 0x360887AA: pop ebp */
   1516     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360887AB: ret 4 */
   1517     RECOMP_REGS_OUT();
   1518 }
   1519 
   1520 void sub_360887B0(void) {
   1521     int _fpu_cmp = 0;
   1522     uint32_t _cf = 0;
   1523     int _df = 1;
   1524     uint32_t _flag_k = FK_NONE;
   1525     uint32_t _flag_a = 0, _flag_b = 0;
   1526     uint32_t _itail_tgt = 0;
   1527     RECOMP_REGS_LOCALS
   1528     RECOMP_ENTER(0x360887B0u);
   1529 
   1530 L_360887B0:
   1531     PUSH32(esp, ebp); /* 0x360887B0: push ebp */
   1532     ebp = esp; /* 0x360887B1: mov ebp, esp */
   1533     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360887B3: fld dword ptr [ebp + 8] */
   1534     PUSH32(esp, esi); /* 0x360887B6: push esi */
   1535     _st[0] *= (double)*(float*)ADDR(0x36170BA8); /* 0x360887B7: fmul dword ptr [0x36170ba8] */
   1536     esi = ecx; /* 0x360887BD: mov esi, ecx */
   1537     RECOMP_ICALL(0x3615FD8Cu); /* 0x360887BF: call 0x3615fd8c */ /* not lifted */
   1538     RECOMP_FLAGS_IN();
   1539     MEM16(esi) = (uint16_t)(LO16(eax)); /* 0x360887C4: mov word ptr [esi], ax */
   1540     eax = esi; /* 0x360887C7: mov eax, esi */
   1541     esi = POP32_VAL(esp); /* 0x360887C9: pop esi */
   1542     ebp = POP32_VAL(esp); /* 0x360887CA: pop ebp */
   1543     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360887CB: ret 4 */
   1544     RECOMP_REGS_OUT();
   1545 }
   1546 
   1547 void sub_360887D0(void) {
   1548     int _fpu_cmp = 0;
   1549     uint32_t _cf = 0;
   1550     int _df = 1;
   1551     uint32_t _flag_k = FK_NONE;
   1552     uint32_t _flag_a = 0, _flag_b = 0;
   1553     uint32_t _itail_tgt = 0;
   1554     RECOMP_REGS_LOCALS
   1555     RECOMP_ENTER(0x360887D0u);
   1556 
   1557 L_360887D0:
   1558     PUSH32(esp, ebp); /* 0x360887D0: push ebp */
   1559     ebp = esp; /* 0x360887D1: mov ebp, esp */
   1560     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360887D3: fld dword ptr [ebp + 8] */
   1561     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0xC)); /* 0x360887D6: fcomp dword ptr [ebp + 0xc] */
   1562     fp_pop();
   1563     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360887D9: fnstsw ax */
   1564     /* test HI8(eax), 0x41u */ /* 0x360887DB: test ah, 0x41 */
   1565     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   1566     _cf = 0;
   1567     _flag_k = FK_NARROW(FK_TEST, 24);
   1568     if (TEST_Z(_flag_a, _flag_b)) goto L_360887E5; /* 0x360887DE: je 0x360887e5 */
   1569 L_360887E0:
   1570     fp_push(*(float*)&MEM32(ebp + 0xC)); /* 0x360887E0: fld dword ptr [ebp + 0xc] */
   1571     ebp = POP32_VAL(esp); /* 0x360887E3: pop ebp */
   1572     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360887E4: ret  */
   1573 L_360887E5:
   1574     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360887E5: fld dword ptr [ebp + 8] */
   1575     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x10)); /* 0x360887E8: fcomp dword ptr [ebp + 0x10] */
   1576     fp_pop();
   1577     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360887EB: fnstsw ax */
   1578     /* test HI8(eax), 1 */ /* 0x360887ED: test ah, 1 */
   1579     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1580     _cf = 0;
   1581     _flag_k = FK_NARROW(FK_TEST, 24);
   1582     if (TEST_NZ(_flag_a, _flag_b)) goto L_360887F7; /* 0x360887F0: jne 0x360887f7 */
   1583 L_360887F2:
   1584     fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x360887F2: fld dword ptr [ebp + 0x10] */
   1585     ebp = POP32_VAL(esp); /* 0x360887F5: pop ebp */
   1586     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360887F6: ret  */
   1587 L_360887F7:
   1588     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360887F7: fld dword ptr [ebp + 8] */
   1589     ebp = POP32_VAL(esp); /* 0x360887FA: pop ebp */
   1590     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360887FB: ret  */
   1591     RECOMP_REGS_OUT();
   1592 }
   1593 
   1594 void sub_36088800(void) {
   1595     int _fpu_cmp = 0;
   1596     uint32_t _cf = 0;
   1597     int _df = 1;
   1598     uint32_t _flag_k = FK_NONE;
   1599     uint32_t _flag_a = 0, _flag_b = 0;
   1600     uint32_t _itail_tgt = 0;
   1601     RECOMP_REGS_LOCALS
   1602     RECOMP_ENTER(0x36088800u);
   1603 
   1604 L_36088800:
   1605     PUSH32(esp, ebp); /* 0x36088800: push ebp */
   1606     ebp = esp; /* 0x36088801: mov ebp, esp */
   1607     PUSH32(esp, 0xFFFFFFFFu); /* 0x36088803: push -1 */
   1608     PUSH32(esp, 0x36165C88u); /* 0x36088805: push 0x36165c88 */
   1609     eax = MEM32(FS_BASE + (0)); /* 0x3608880A: mov eax, dword ptr fs:[0] */
   1610     PUSH32(esp, eax); /* 0x36088810: push eax */
   1611     MEM32(FS_BASE + (0)) = esp; /* 0x36088811: mov dword ptr fs:[0], esp */
   1612     PUSH32(esp, ecx); /* 0x36088818: push ecx */
   1613     eax = MEM32(ebp + 0xC); /* 0x36088819: mov eax, dword ptr [ebp + 0xc] */
   1614     PUSH32(esp, esi); /* 0x3608881C: push esi */
   1615     esi = ecx; /* 0x3608881D: mov esi, ecx */
   1616     ecx = MEM32(ebp + 0x8); /* 0x3608881F: mov ecx, dword ptr [ebp + 8] */
   1617     PUSH32(esp, eax); /* 0x36088822: push eax */
   1618     PUSH32(esp, ecx); /* 0x36088823: push ecx */
   1619     ecx = esi; /* 0x36088824: mov ecx, esi */
   1620     MEM32(ebp + (-0x10)) = esi; /* 0x36088826: mov dword ptr [ebp - 0x10], esi */
   1621     RECOMP_ICALL(0x3609C3C0u); /* 0x36088829: call 0x3609c3c0 */ /* not lifted */
   1622     RECOMP_FLAGS_IN();
   1623     ecx = esi; /* 0x3608882E: mov ecx, esi */
   1624     MEM32(ebp + (-0x4)) = 0; /* 0x36088830: mov dword ptr [ebp - 4], 0 */
   1625     MEM32(esi) = 0x36171DB8u; /* 0x36088837: mov dword ptr [esi], 0x36171db8 */
   1626     MEM32(esi + 0x8) = 0x36171DA8u; /* 0x3608883D: mov dword ptr [esi + 8], 0x36171da8 */
   1627     MEM32(esi + 0x40) = 0x36171DA0u; /* 0x36088844: mov dword ptr [esi + 0x40], 0x36171da0 */
   1628     MEM32(esi + 0x4C) = 0x36171D98u; /* 0x3608884B: mov dword ptr [esi + 0x4c], 0x36171d98 */
   1629     MEM32(esi + 0x80) = 0x36171D84u; /* 0x36088852: mov dword ptr [esi + 0x80], 0x36171d84 */
   1630     MEM32(esi + 0x8C) = 0x36171CE0u; /* 0x3608885C: mov dword ptr [esi + 0x8c], 0x36171ce0 */
   1631     MEM32(esi + 0xA8) = 0x36171CC8u; /* 0x36088866: mov dword ptr [esi + 0xa8], 0x36171cc8 */
   1632     MEM32(esi + 0xAC) = 0x36171CC0u; /* 0x36088870: mov dword ptr [esi + 0xac], 0x36171cc0 */
   1633     RECOMP_ICALL(0x360888D0u); /* 0x3608887A: call 0x360888d0 */ /* not lifted */
   1634     RECOMP_FLAGS_IN();
   1635     ecx = MEM32(ebp + (-0xC)); /* 0x3608887F: mov ecx, dword ptr [ebp - 0xc] */
   1636     eax = esi; /* 0x36088882: mov eax, esi */
   1637     esi = POP32_VAL(esp); /* 0x36088884: pop esi */
   1638     MEM32(FS_BASE + (0)) = ecx; /* 0x36088885: mov dword ptr fs:[0], ecx */
   1639     esp = ebp; /* 0x3608888C: mov esp, ebp */
   1640     ebp = POP32_VAL(esp); /* 0x3608888E: pop ebp */
   1641     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608888F: ret 8 */
   1642     RECOMP_REGS_OUT();
   1643 }
   1644 
   1645 void sub_360888A0(void) {
   1646     int _fpu_cmp = 0;
   1647     uint32_t _cf = 0;
   1648     int _df = 1;
   1649     uint32_t _flag_k = FK_NONE;
   1650     uint32_t _flag_a = 0, _flag_b = 0;
   1651     uint32_t _itail_tgt = 0;
   1652     RECOMP_REGS_LOCALS
   1653     RECOMP_ENTER(0x360888A0u);
   1654 
   1655 L_360888A0:
   1656     PUSH32(esp, ebp); /* 0x360888A0: push ebp */
   1657     ebp = esp; /* 0x360888A1: mov ebp, esp */
   1658     PUSH32(esp, esi); /* 0x360888A3: push esi */
   1659     esi = ecx; /* 0x360888A4: mov esi, ecx */
   1660     RECOMP_ICALL(0x36088990u); /* 0x360888A6: call 0x36088990 */ /* not lifted */
   1661     RECOMP_FLAGS_IN();
   1662     /* test MEM8(ebp + 0x8), 1 */ /* 0x360888AB: test byte ptr [ebp + 8], 1 */
   1663     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   1664     _cf = 0;
   1665     _flag_k = FK_NARROW(FK_TEST, 24);
   1666     if (TEST_Z(_flag_a, _flag_b)) goto L_360888BA; /* 0x360888AF: je 0x360888ba */
   1667 L_360888B1:
   1668     PUSH32(esp, esi); /* 0x360888B1: push esi */
   1669     RECOMP_ICALL(0x3615FCC4u); /* 0x360888B2: call 0x3615fcc4 */ /* not lifted */
   1670     RECOMP_FLAGS_IN();
   1671     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1672     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1673     esp = esp + 4; /* 0x360888B7: add esp, 4 */
   1674     _flag_k = FK_ADD;
   1675 L_360888BA:
   1676     eax = esi; /* 0x360888BA: mov eax, esi */
   1677     esi = POP32_VAL(esp); /* 0x360888BC: pop esi */
   1678     ebp = POP32_VAL(esp); /* 0x360888BD: pop ebp */
   1679     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360888BE: ret 4 */
   1680     RECOMP_REGS_OUT();
   1681 }
   1682 
   1683 void sub_360888D0(void) {
   1684     int _fpu_cmp = 0;
   1685     uint32_t _cf = 0;
   1686     int _df = 1;
   1687     uint32_t _flag_k = FK_NONE;
   1688     uint32_t _flag_a = 0, _flag_b = 0;
   1689     uint32_t _itail_tgt = 0;
   1690     RECOMP_REGS_LOCALS
   1691     RECOMP_ENTER(0x360888D0u);
   1692 
   1693 L_360888D0:
   1694     PUSH32(esp, esi); /* 0x360888D0: push esi */
   1695     esi = ecx; /* 0x360888D1: mov esi, ecx */
   1696     eax = MEM32(esi); /* 0x360888D3: mov eax, dword ptr [esi] */
   1697     PUSH32(esp, 0); /* 0x360888D5: push 0 */
   1698     PUSH32(esp, 0xB8u); /* 0x360888D7: push 0xb8 */
   1699     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360888DC: call dword ptr [eax + 0xc] */
   1700     RECOMP_FLAGS_IN();
   1701     edx = MEM32(esi); /* 0x360888DF: mov edx, dword ptr [esi] */
   1702     PUSH32(esp, 0); /* 0x360888E1: push 0 */
   1703     PUSH32(esp, 0xB9u); /* 0x360888E3: push 0xb9 */
   1704     ecx = esi; /* 0x360888E8: mov ecx, esi */
   1705     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x360888EA: call dword ptr [edx + 0xc] */
   1706     RECOMP_FLAGS_IN();
   1707     eax = MEM32(esi); /* 0x360888ED: mov eax, dword ptr [esi] */
   1708     PUSH32(esp, 0); /* 0x360888EF: push 0 */
   1709     PUSH32(esp, 0xBAu); /* 0x360888F1: push 0xba */
   1710     ecx = esi; /* 0x360888F6: mov ecx, esi */
   1711     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360888F8: call dword ptr [eax + 0xc] */
   1712     RECOMP_FLAGS_IN();
   1713     edx = MEM32(esi); /* 0x360888FB: mov edx, dword ptr [esi] */
   1714     PUSH32(esp, 0); /* 0x360888FD: push 0 */
   1715     PUSH32(esp, 0xBBu); /* 0x360888FF: push 0xbb */
   1716     ecx = esi; /* 0x36088904: mov ecx, esi */
   1717     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36088906: call dword ptr [edx + 0xc] */
   1718     RECOMP_FLAGS_IN();
   1719     eax = MEM32(esi); /* 0x36088909: mov eax, dword ptr [esi] */
   1720     PUSH32(esp, 1); /* 0x3608890B: push 1 */
   1721     PUSH32(esp, 0xBCu); /* 0x3608890D: push 0xbc */
   1722     ecx = esi; /* 0x36088912: mov ecx, esi */
   1723     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36088914: call dword ptr [eax + 0xc] */
   1724     RECOMP_FLAGS_IN();
   1725     edx = MEM32(esi); /* 0x36088917: mov edx, dword ptr [esi] */
   1726     PUSH32(esp, 0); /* 0x36088919: push 0 */
   1727     PUSH32(esp, 0xC3u); /* 0x3608891B: push 0xc3 */
   1728     ecx = esi; /* 0x36088920: mov ecx, esi */
   1729     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x36088922: call dword ptr [edx + 0xc] */
   1730     RECOMP_FLAGS_IN();
   1731     PUSH32(esp, 0xB8u); /* 0x36088925: push 0xb8 */
   1732     ecx = esi; /* 0x3608892A: mov ecx, esi */
   1733     RECOMP_ICALL(0x3608ED30u); /* 0x3608892C: call 0x3608ed30 */ /* not lifted */
   1734     RECOMP_FLAGS_IN();
   1735     PUSH32(esp, 0xB9u); /* 0x36088931: push 0xb9 */
   1736     ecx = esi; /* 0x36088936: mov ecx, esi */
   1737     RECOMP_ICALL(0x3608ED30u); /* 0x36088938: call 0x3608ed30 */ /* not lifted */
   1738     RECOMP_FLAGS_IN();
   1739     PUSH32(esp, 0xBAu); /* 0x3608893D: push 0xba */
   1740     ecx = esi; /* 0x36088942: mov ecx, esi */
   1741     RECOMP_ICALL(0x3608ED30u); /* 0x36088944: call 0x3608ed30 */ /* not lifted */
   1742     RECOMP_FLAGS_IN();
   1743     PUSH32(esp, 0xBBu); /* 0x36088949: push 0xbb */
   1744     ecx = esi; /* 0x3608894E: mov ecx, esi */
   1745     RECOMP_ICALL(0x3608ED30u); /* 0x36088950: call 0x3608ed30 */ /* not lifted */
   1746     RECOMP_FLAGS_IN();
   1747     PUSH32(esp, 0xBCu); /* 0x36088955: push 0xbc */
   1748     ecx = esi; /* 0x3608895A: mov ecx, esi */
   1749     RECOMP_ICALL(0x3608ED30u); /* 0x3608895C: call 0x3608ed30 */ /* not lifted */
   1750     RECOMP_FLAGS_IN();
   1751     PUSH32(esp, 0xC3u); /* 0x36088961: push 0xc3 */
   1752     ecx = esi; /* 0x36088966: mov ecx, esi */
   1753     RECOMP_ICALL(0x3608ED30u); /* 0x36088968: call 0x3608ed30 */ /* not lifted */
   1754     RECOMP_FLAGS_IN();
   1755     edx = MEM32(esi + 0x34); /* 0x3608896D: mov edx, dword ptr [esi + 0x34] */
   1756     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFF7u);
   1757     edx = edx & 0xFFFFFFF7u; /* 0x36088970: and edx, 0xfffffff7 */
   1758     _cf = 0;
   1759     _flag_k = FK_TEST;
   1760     eax = edx; /* 0x36088973: mov eax, edx */
   1761     PUSH32(esp, eax); /* 0x36088975: push eax */
   1762     MEM32(esi + 0x34) = edx; /* 0x36088976: mov dword ptr [esi + 0x34], edx */
   1763     edx = MEM32(esi); /* 0x36088979: mov edx, dword ptr [esi] */
   1764     PUSH32(esp, 0); /* 0x3608897B: push 0 */
   1765     ecx = esi; /* 0x3608897D: mov ecx, esi */
   1766     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608897F: call dword ptr [edx + 8] */
   1767     RECOMP_FLAGS_IN();
   1768     esi = POP32_VAL(esp); /* 0x36088982: pop esi */
   1769     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36088983: ret  */
   1770     RECOMP_REGS_OUT();
   1771 }
   1772 
   1773 void sub_36088990(void) {
   1774     int _fpu_cmp = 0;
   1775     uint32_t _cf = 0;
   1776     int _df = 1;
   1777     uint32_t _flag_k = FK_NONE;
   1778     uint32_t _flag_a = 0, _flag_b = 0;
   1779     uint32_t _itail_tgt = 0;
   1780     RECOMP_REGS_LOCALS
   1781     RECOMP_ENTER(0x36088990u);
   1782 
   1783 L_36088990:
   1784     MEM32(ecx) = 0x36171DB8u; /* 0x36088990: mov dword ptr [ecx], 0x36171db8 */
   1785     MEM32(ecx + 0x8) = 0x36171DA8u; /* 0x36088996: mov dword ptr [ecx + 8], 0x36171da8 */
   1786     MEM32(ecx + 0x40) = 0x36171DA0u; /* 0x3608899D: mov dword ptr [ecx + 0x40], 0x36171da0 */
   1787     MEM32(ecx + 0x4C) = 0x36171D98u; /* 0x360889A4: mov dword ptr [ecx + 0x4c], 0x36171d98 */
   1788     MEM32(ecx + 0x80) = 0x36171D84u; /* 0x360889AB: mov dword ptr [ecx + 0x80], 0x36171d84 */
   1789     MEM32(ecx + 0x8C) = 0x36171CE0u; /* 0x360889B5: mov dword ptr [ecx + 0x8c], 0x36171ce0 */
   1790     MEM32(ecx + 0xA8) = 0x36171CC8u; /* 0x360889BF: mov dword ptr [ecx + 0xa8], 0x36171cc8 */
   1791     MEM32(ecx + 0xAC) = 0x36171CC0u; /* 0x360889C9: mov dword ptr [ecx + 0xac], 0x36171cc0 */
   1792     goto L_3609CC20; /* 0x360889D3: jmp 0x3609cc20 */
   1793 L_3609CC20:
   1794     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
   1795     ebp = esp; /* 0x3609CC21: mov ebp, esp */
   1796     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
   1797     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
   1798     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
   1799     PUSH32(esp, eax); /* 0x3609CC30: push eax */
   1800     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
   1801     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1803     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
   1804     _flag_k = FK_CMP;
   1805     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
   1806     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
   1807     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
   1808     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
   1809     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
   1810     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
   1811     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
   1812     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
   1813     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
   1814     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
   1815     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
   1816     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
   1817     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
   1818     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
   1819     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
   1820     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1821     _cf = 0;
   1822     _flag_k = FK_TEST;
   1823     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
   1824     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
   1825 L_3609CC97:
   1826     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
   1827     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
   1828     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
   1829     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1831     _flag_k = FK_CMP;
   1832     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
   1833     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
   1834 L_3609CCA3:
   1835     eax = edi; /* 0x3609CCA3: mov eax, edi */
   1836     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
   1837     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
   1838     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
   1839     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
   1840     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
   1841     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
   1842     RECOMP_FLAGS_IN();
   1843     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
   1844     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
   1845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1846     _flag_k = FK_CMP;
   1847     RECOMP_BACKEDGE();
   1848     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
   1849 L_3609CCB8:
   1850     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
   1851     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
   1852     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
   1853     RECOMP_FLAGS_IN();
   1854     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1855     eax = 0; /* 0x3609CCC1: xor eax, eax */
   1856     _cf = 0;
   1857     _flag_k = FK_TEST;
   1858     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
   1859     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
   1860     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
   1861     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
   1862     RECOMP_FLAGS_IN();
   1863     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1865     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
   1866     _flag_k = FK_ADD;
   1867 L_3609CCD2:
   1868     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
   1869     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
   1870     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1871     _cf = 0;
   1872     _flag_k = FK_TEST;
   1873     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
   1874     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
   1875 L_3609CCE6:
   1876     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
   1877     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
   1878     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
   1879     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1881     _flag_k = FK_CMP;
   1882     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
   1883     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
   1884 L_3609CCF2:
   1885     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
   1886     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
   1887     eax = edi; /* 0x3609CCF7: mov eax, edi */
   1888     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
   1889     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
   1890     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
   1891     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
   1892     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
   1893     RECOMP_FLAGS_IN();
   1894     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
   1895     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
   1896     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
   1897     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
   1898     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
   1899     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
   1900     PUSH32(esp, eax); /* 0x3609CD15: push eax */
   1901     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
   1902     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
   1903     RECOMP_FLAGS_IN();
   1904     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
   1905     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
   1906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1907     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1908     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
   1909     _flag_k = FK_ADD;
   1910     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1911     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
   1912     _flag_k = FK_DEC;
   1913     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
   1914     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1916     _flag_k = FK_CMP;
   1917     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
   1918     RECOMP_BACKEDGE();
   1919     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
   1920 L_3609CD2F:
   1921     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
   1922     PUSH32(esp, eax); /* 0x3609CD32: push eax */
   1923     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
   1924     RECOMP_FLAGS_IN();
   1925     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1926     eax = 0; /* 0x3609CD38: xor eax, eax */
   1927     _cf = 0;
   1928     _flag_k = FK_TEST;
   1929     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
   1930     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
   1931     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
   1932     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
   1933     RECOMP_FLAGS_IN();
   1934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1936     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
   1937     _flag_k = FK_ADD;
   1938 L_3609CD49:
   1939     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
   1940     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
   1941     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1942     _cf = 0;
   1943     _flag_k = FK_TEST;
   1944     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
   1945     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
   1946 L_3609CD5D:
   1947     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
   1948     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
   1949     RECOMP_FLAGS_IN();
   1950     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1952     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
   1953     _flag_k = FK_ADD;
   1954 L_3609CD66:
   1955     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
   1956     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
   1957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1958     _cf = 0;
   1959     _flag_k = FK_TEST;
   1960     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
   1961     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
   1962 L_3609CD7A:
   1963     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
   1964     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
   1965     RECOMP_FLAGS_IN();
   1966     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1967     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1968     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
   1969     _flag_k = FK_ADD;
   1970 L_3609CD83:
   1971     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
   1972     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
   1973     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1974     _cf = 0;
   1975     _flag_k = FK_TEST;
   1976     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
   1977     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
   1978 L_3609CD97:
   1979     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
   1980     RECOMP_FLAGS_IN();
   1981     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
   1982 L_3609CDA6:
   1983     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
   1984     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1985     _cf = (ecx) != 0;
   1986     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
   1987     _flag_k = FK_CMP;
   1988     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
   1989       ecx = _sc ? 0xFFFFFFFFu : 0;
   1990       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1991       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1992     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
   1993     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1994     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
   1995     _cf = 0;
   1996     _flag_k = FK_TEST;
   1997     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
   1998     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
   1999     RECOMP_FLAGS_IN();
   2000     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
   2001     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2002     _cf = (ecx) != 0;
   2003     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
   2004     _flag_k = FK_CMP;
   2005     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
   2006       ecx = _sc ? 0xFFFFFFFFu : 0;
   2007       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2008       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2009     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
   2010     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2011     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
   2012     _cf = 0;
   2013     _flag_k = FK_TEST;
   2014     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
   2015     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
   2016     RECOMP_FLAGS_IN();
   2017     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
   2018     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
   2019     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
   2020     RECOMP_FLAGS_IN();
   2021     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
   2022     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
   2023     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
   2024     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
   2025     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
   2026     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
   2027     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
   2028     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
   2029     RECOMP_REGS_OUT();
   2030 }
   2031 
   2032 void sub_360889E0(void) {
   2033     int _fpu_cmp = 0;
   2034     uint32_t _cf = 0;
   2035     int _df = 1;
   2036     uint32_t _flag_k = FK_NONE;
   2037     uint32_t _flag_a = 0, _flag_b = 0;
   2038     uint32_t _itail_tgt = 0;
   2039     RECOMP_REGS_LOCALS
   2040     RECOMP_ENTER(0x360889E0u);
   2041 
   2042 L_360889E0:
   2043     goto L_3609CE60; /* 0x360889E0: jmp 0x3609ce60 */
   2044 L_3609CE60:
   2045     PUSH32(esp, ebp); /* 0x3609CE60: push ebp */
   2046     ebp = esp; /* 0x3609CE61: mov ebp, esp */
   2047     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   2048     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2049     esp = esp - 0x20u; /* 0x3609CE63: sub esp, 0x20 */
   2050     _flag_k = FK_CMP;
   2051     PUSH32(esp, esi); /* 0x3609CE66: push esi */
   2052     esi = ecx; /* 0x3609CE67: mov esi, ecx */
   2053     /* cmp MEM8(esi + 0x94), 1 */ /* 0x3609CE69: cmp byte ptr [esi + 0x94], 1 */
   2054     _flag_a = (uint32_t)(MEM8(esi + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   2055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2056     _flag_k = FK_NARROW(FK_CMP, 24);
   2057     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CE85; /* 0x3609CE70: jne 0x3609ce85 */
   2058 L_3609CE72:
   2059     RECOMP_ICALL(MEM32(0x3616FCE8)); /* 0x3609CE72: call dword ptr [0x3616fce8] */
   2060     RECOMP_FLAGS_IN();
   2061     ecx = esi; /* 0x3609CE78: mov ecx, esi */
   2062     RECOMP_ICALL(MEM32(0x3616FCE4)); /* 0x3609CE7A: call dword ptr [0x3616fce4] */
   2063     RECOMP_FLAGS_IN();
   2064     esi = POP32_VAL(esp); /* 0x3609CE80: pop esi */
   2065     esp = ebp; /* 0x3609CE81: mov esp, ebp */
   2066     ebp = POP32_VAL(esp); /* 0x3609CE83: pop ebp */
   2067     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CE84: ret  */
   2068 L_3609CE85:
   2069     PUSH32(esp, ebx); /* 0x3609CE85: push ebx */
   2070     PUSH32(esp, edi); /* 0x3609CE86: push edi */
   2071     ecx = esi; /* 0x3609CE87: mov ecx, esi */
   2072     RECOMP_ICALL(MEM32(0x3616FCE4)); /* 0x3609CE89: call dword ptr [0x3616fce4] */
   2073     RECOMP_FLAGS_IN();
   2074     MEM8(ebp + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3609CE8F: mov byte ptr [ebp - 1], al */
   2075     RECOMP_ICALL(0x3600C230u); /* 0x3609CE92: call 0x3600c230 */ /* not lifted */
   2076     RECOMP_FLAGS_IN();
   2077     SET_LO8(ecx, MEM8(eax + 0x1E)); /* 0x3609CE97: mov cl, byte ptr [eax + 0x1e] */
   2078     /* test LO8(ecx), LO8(ecx) */ /* 0x3609CE9A: test cl, cl */
   2079     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2080     _cf = 0;
   2081     _flag_k = FK_NARROW(FK_TEST, 24);
   2082     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CFF4; /* 0x3609CE9C: je 0x3609cff4 */
   2083 L_3609CEA2:
   2084     PUSH32(esp, 0x3F800000u); /* 0x3609CEA2: push 0x3f800000 */
   2085     ecx = esi + (-0x84); /* 0x3609CEA7: lea ecx, [esi - 0x84] */
   2086     RECOMP_ICALL(0x3602EEF0u); /* 0x3609CEAD: call 0x3602eef0 */ /* not lifted */
   2087     RECOMP_FLAGS_IN();
   2088     edi = esi + (-0x8C); /* 0x3609CEB2: lea edi, [esi - 0x8c] */
   2089     PUSH32(esp, edi); /* 0x3609CEB8: push edi */
   2090     PUSH32(esp, edi); /* 0x3609CEB9: push edi */
   2091     ecx = esi + (-0xC); /* 0x3609CEBA: lea ecx, [esi - 0xc] */
   2092     RECOMP_ICALL(0x36041EB0u); /* 0x3609CEBD: call 0x36041eb0 */ /* not lifted */
   2093     RECOMP_FLAGS_IN();
   2094     edx = MEM32(edi + 0x1A0); /* 0x3609CEC2: mov edx, dword ptr [edi + 0x1a0] */
   2095     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2096     edx = edx + 1; /* 0x3609CEC8: inc edx */
   2097     _flag_k = FK_INC;
   2098     ecx = edi; /* 0x3609CEC9: mov ecx, edi */
   2099     MEM32(edi + 0x1A0) = edx; /* 0x3609CECB: mov dword ptr [edi + 0x1a0], edx */
   2100     RECOMP_ICALL(0x360021F0u); /* 0x3609CED1: call 0x360021f0 */ /* not lifted */
   2101     RECOMP_FLAGS_IN();
   2102     ecx = MEM32(esi + 0xF8); /* 0x3609CED6: mov ecx, dword ptr [esi + 0xf8] */
   2103     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2104     SET_LO8(eax, 0); /* 0x3609CEDC: xor al, al */
   2105     _cf = 0;
   2106     _flag_k = FK_NARROW(FK_TEST, 24);
   2107     /* test ecx, ecx */ /* 0x3609CEDE: test ecx, ecx */
   2108     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2109     _cf = 0;
   2110     _flag_k = FK_TEST;
   2111     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609CF08; /* 0x3609CEE0: jne 0x3609cf08 */
   2112 L_3609CEE2:
   2113     eax = MEM32(edi); /* 0x3609CEE2: mov eax, dword ptr [edi] */
   2114     PUSH32(esp, 1); /* 0x3609CEE4: push 1 */
   2115     PUSH32(esp, 8); /* 0x3609CEE6: push 8 */
   2116     ecx = edi; /* 0x3609CEE8: mov ecx, edi */
   2117     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x3609CEEA: call dword ptr [eax + 8] */
   2118     RECOMP_FLAGS_IN();
   2119     ebx = MEM32(edi); /* 0x3609CEED: mov ebx, dword ptr [edi] */
   2120     PUSH32(esp, 0x362EA510u); /* 0x3609CEEF: push 0x362ea510 */
   2121     PUSH32(esp, 0); /* 0x3609CEF4: push 0 */
   2122     PUSH32(esp, edi); /* 0x3609CEF6: push edi */
   2123     PUSH32(esp, 0x14u); /* 0x3609CEF7: push 0x14 */
   2124     ecx = edi; /* 0x3609CEF9: mov ecx, edi */
   2125     RECOMP_ICALL(0x360020C0u); /* 0x3609CEFB: call 0x360020c0 */ /* not lifted */
   2126     RECOMP_FLAGS_IN();
   2127     PUSH32(esp, eax); /* 0x3609CF00: push eax */
   2128     ecx = edi; /* 0x3609CF01: mov ecx, edi */
   2129     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x3609CF03: call dword ptr [ebx + 0x34] */
   2130     RECOMP_FLAGS_IN();
   2131     SET_LO8(eax, 1); /* 0x3609CF06: mov al, 1 */
   2132 L_3609CF08:
   2133     ecx = MEM32(esi + 0xFC); /* 0x3609CF08: mov ecx, dword ptr [esi + 0xfc] */
   2134     /* cmp ecx, 0xFFFFFFFFu */ /* 0x3609CF0E: cmp ecx, -1 */
   2135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2137     _flag_k = FK_CMP;
   2138     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CFF4; /* 0x3609CF11: je 0x3609cff4 */
   2139 L_3609CF17:
   2140     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFF38u);
   2141     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2142     ecx = ecx + 0xFFFFFF38u; /* 0x3609CF17: add ecx, 0xffffff38 */
   2143     _flag_k = FK_ADD;
   2144     /* cmp ecx, 0x499602D2u */ /* 0x3609CF1D: cmp ecx, 0x499602d2 */
   2145     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x499602D2u);
   2146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2147     _flag_k = FK_CMP;
   2148     MEM32(esi + 0xFC) = ecx; /* 0x3609CF23: mov dword ptr [esi + 0xfc], ecx */
   2149     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CF37; /* 0x3609CF29: je 0x3609cf37 */
   2150 L_3609CF2B:
   2151     edx = MEM32(esi + (-0x88)); /* 0x3609CF2B: mov edx, dword ptr [esi - 0x88] */
   2152     edx = MEM32(edx + 0x4); /* 0x3609CF31: mov edx, dword ptr [edx + 4] */
   2153     MEM32(edx + 0x20) = ecx; /* 0x3609CF34: mov dword ptr [edx + 0x20], ecx */
   2154 L_3609CF37:
   2155     /* cmp MEM32(esi + 0xFC), 1 */ /* 0x3609CF37: cmp dword ptr [esi + 0xfc], 1 */
   2156     _flag_a = (uint32_t)(MEM32(esi + 0xFC)); _flag_b = (uint32_t)(1);
   2157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2158     _flag_k = FK_CMP;
   2159     if (CMP_GE(_flag_a, _flag_b)) goto L_3609CFE4; /* 0x3609CF3E: jge 0x3609cfe4 */
   2160 L_3609CF44:
   2161     /* test LO8(eax), LO8(eax) */ /* 0x3609CF44: test al, al */
   2162     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2163     _cf = 0;
   2164     _flag_k = FK_NARROW(FK_TEST, 24);
   2165     MEM32(esi + 0xFC) = 0xFFFFFFFFu; /* 0x3609CF46: mov dword ptr [esi + 0xfc], 0xffffffff */
   2166     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609CF6B; /* 0x3609CF50: jne 0x3609cf6b */
   2167 L_3609CF52:
   2168     ebx = MEM32(edi); /* 0x3609CF52: mov ebx, dword ptr [edi] */
   2169     PUSH32(esp, 0x362EA510u); /* 0x3609CF54: push 0x362ea510 */
   2170     PUSH32(esp, 0); /* 0x3609CF59: push 0 */
   2171     PUSH32(esp, edi); /* 0x3609CF5B: push edi */
   2172     PUSH32(esp, 0x14u); /* 0x3609CF5C: push 0x14 */
   2173     ecx = edi; /* 0x3609CF5E: mov ecx, edi */
   2174     RECOMP_ICALL(0x360020C0u); /* 0x3609CF60: call 0x360020c0 */ /* not lifted */
   2175     RECOMP_FLAGS_IN();
   2176     PUSH32(esp, eax); /* 0x3609CF65: push eax */
   2177     ecx = edi; /* 0x3609CF66: mov ecx, edi */
   2178     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x3609CF68: call dword ptr [ebx + 0x34] */
   2179     RECOMP_FLAGS_IN();
   2180 L_3609CF6B:
   2181     ebx = MEM32(0x36170050); /* 0x3609CF6B: mov ebx, dword ptr [0x36170050] */
   2182     ecx = esi; /* 0x3609CF71: mov ecx, esi */
   2183     RECOMP_ICALL(ebx); /* 0x3609CF73: call ebx */
   2184     RECOMP_FLAGS_IN();
   2185     /* test eax, eax */ /* 0x3609CF75: test eax, eax */
   2186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2187     _cf = 0;
   2188     _flag_k = FK_TEST;
   2189     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CFE4; /* 0x3609CF77: je 0x3609cfe4 */
   2190 L_3609CF79:
   2191     PUSH32(esp, 0); /* 0x3609CF79: push 0 */
   2192     PUSH32(esp, 0x361B2CD8u); /* 0x3609CF7B: push 0x361b2cd8 */
   2193     PUSH32(esp, 0x361B2CC0u); /* 0x3609CF80: push 0x361b2cc0 */
   2194     PUSH32(esp, 0); /* 0x3609CF85: push 0 */
   2195     ecx = esi; /* 0x3609CF87: mov ecx, esi */
   2196     RECOMP_ICALL(ebx); /* 0x3609CF89: call ebx */
   2197     RECOMP_FLAGS_IN();
   2198     PUSH32(esp, eax); /* 0x3609CF8B: push eax */
   2199     RECOMP_ICALL(0x3615FD86u); /* 0x3609CF8C: call 0x3615fd86 */ /* not lifted */
   2200     RECOMP_FLAGS_IN();
   2201     ebx = eax; /* 0x3609CF91: mov ebx, eax */
   2202     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2204     esp = esp + 0x14u; /* 0x3609CF93: add esp, 0x14 */
   2205     _flag_k = FK_ADD;
   2206     /* test ebx, ebx */ /* 0x3609CF96: test ebx, ebx */
   2207     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2208     _cf = 0;
   2209     _flag_k = FK_TEST;
   2210     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CFB3; /* 0x3609CF98: je 0x3609cfb3 */
   2211 L_3609CF9A:
   2212     eax = MEM32(edi); /* 0x3609CF9A: mov eax, dword ptr [edi] */
   2213     PUSH32(esp, 2); /* 0x3609CF9C: push 2 */
   2214     PUSH32(esp, 0x37u); /* 0x3609CF9E: push 0x37 */
   2215     ecx = edi; /* 0x3609CFA0: mov ecx, edi */
   2216     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3609CFA2: call dword ptr [eax + 4] */
   2217     RECOMP_FLAGS_IN();
   2218     PUSH32(esp, eax); /* 0x3609CFA5: push eax */
   2219     ecx = esi + 0x4; /* 0x3609CFA6: lea ecx, [esi + 4] */
   2220     PUSH32(esp, ecx); /* 0x3609CFA9: push ecx */
   2221     ecx = ebx; /* 0x3609CFAA: mov ecx, ebx */
   2222     RECOMP_ICALL(0x360724A0u); /* 0x3609CFAC: call 0x360724a0 */ /* not lifted */
   2223     RECOMP_FLAGS_IN();
   2224     goto L_3609CFE4; /* 0x3609CFB1: jmp 0x3609cfe4 */
   2225 L_3609CFB3:
   2226     PUSH32(esp, 0); /* 0x3609CFB3: push 0 */
   2227     PUSH32(esp, 0x361B2CF8u); /* 0x3609CFB5: push 0x361b2cf8 */
   2228     PUSH32(esp, 0x361B2CC0u); /* 0x3609CFBA: push 0x361b2cc0 */
   2229     PUSH32(esp, 0); /* 0x3609CFBF: push 0 */
   2230     ecx = esi; /* 0x3609CFC1: mov ecx, esi */
   2231     RECOMP_ICALL(MEM32(0x36170050)); /* 0x3609CFC3: call dword ptr [0x36170050] */
   2232     RECOMP_FLAGS_IN();
   2233     PUSH32(esp, eax); /* 0x3609CFC9: push eax */
   2234     RECOMP_ICALL(0x3615FD86u); /* 0x3609CFCA: call 0x3615fd86 */ /* not lifted */
   2235     RECOMP_FLAGS_IN();
   2236     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2237     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2238     esp = esp + 0x14u; /* 0x3609CFCF: add esp, 0x14 */
   2239     _flag_k = FK_ADD;
   2240     /* test eax, eax */ /* 0x3609CFD2: test eax, eax */
   2241     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2242     _cf = 0;
   2243     _flag_k = FK_TEST;
   2244     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CFE4; /* 0x3609CFD4: je 0x3609cfe4 */
   2245 L_3609CFD6:
   2246     edx = MEM32(eax); /* 0x3609CFD6: mov edx, dword ptr [eax] */
   2247     ecx = esi + 0x4; /* 0x3609CFD8: lea ecx, [esi + 4] */
   2248     PUSH32(esp, ecx); /* 0x3609CFDB: push ecx */
   2249     ecx = eax; /* 0x3609CFDC: mov ecx, eax */
   2250     RECOMP_ICALL(MEM32(edx + 0x108)); /* 0x3609CFDE: call dword ptr [edx + 0x108] */
   2251     RECOMP_FLAGS_IN();
   2252 L_3609CFE4:
   2253     eax = MEM32(esi + 0xFC); /* 0x3609CFE4: mov eax, dword ptr [esi + 0xfc] */
   2254     edx = MEM32(edi); /* 0x3609CFEA: mov edx, dword ptr [edi] */
   2255     PUSH32(esp, eax); /* 0x3609CFEC: push eax */
   2256     PUSH32(esp, 8); /* 0x3609CFED: push 8 */
   2257     ecx = edi; /* 0x3609CFEF: mov ecx, edi */
   2258     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609CFF1: call dword ptr [edx + 8] */
   2259     RECOMP_FLAGS_IN();
   2260 L_3609CFF4:
   2261     eax = MEM32(esi + (-0x78)); /* 0x3609CFF4: mov eax, dword ptr [esi - 0x78] */
   2262     ecx = MEM32(eax + 0x8); /* 0x3609CFF7: mov ecx, dword ptr [eax + 8] */
   2263     /* test ecx, ecx */ /* 0x3609CFFA: test ecx, ecx */
   2264     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2265     _cf = 0;
   2266     _flag_k = FK_TEST;
   2267     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D066; /* 0x3609CFFC: je 0x3609d066 */
   2268 L_3609CFFE:
   2269     eax = MEM32(eax + 0x4); /* 0x3609CFFE: mov eax, dword ptr [eax + 4] */
   2270     edi = MEM32(eax); /* 0x3609D001: mov edi, dword ptr [eax] */
   2271     /* cmp edi, eax */ /* 0x3609D003: cmp edi, eax */
   2272     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2274     _flag_k = FK_CMP;
   2275     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609D040; /* 0x3609D005: je 0x3609d040 */
   2276 L_3609D007:
   2277     ebx = esi + (-0x8C); /* 0x3609D007: lea ebx, [esi - 0x8c] */
   2278 L_3609D00D:
   2279     eax = MEM32(edi + 0x8); /* 0x3609D00D: mov eax, dword ptr [edi + 8] */
   2280     edx = MEM32(ebx); /* 0x3609D010: mov edx, dword ptr [ebx] */
   2281     PUSH32(esp, eax); /* 0x3609D012: push eax */
   2282     ecx = ebx; /* 0x3609D013: mov ecx, ebx */
   2283     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3609D015: call dword ptr [edx + 0x24] */
   2284     RECOMP_FLAGS_IN();
   2285     ecx = MEM32(edi + 0x8); /* 0x3609D018: mov ecx, dword ptr [edi + 8] */
   2286     edx = MEM32(ecx + 0x8); /* 0x3609D01B: mov edx, dword ptr [ecx + 8] */
   2287     PUSH32(esp, edx); /* 0x3609D01E: push edx */
   2288     ecx = ebx; /* 0x3609D01F: mov ecx, ebx */
   2289     RECOMP_ICALL(0x3609CE00u); /* 0x3609D021: call 0x3609ce00 */ /* not lifted */
   2290     RECOMP_FLAGS_IN();
   2291     eax = MEM32(edi + 0x8); /* 0x3609D026: mov eax, dword ptr [edi + 8] */
   2292     /* test eax, eax */ /* 0x3609D029: test eax, eax */
   2293     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2294     _cf = 0;
   2295     _flag_k = FK_TEST;
   2296     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D036; /* 0x3609D02B: je 0x3609d036 */
   2297 L_3609D02D:
   2298     PUSH32(esp, eax); /* 0x3609D02D: push eax */
   2299     RECOMP_ICALL(0x3615FCC4u); /* 0x3609D02E: call 0x3615fcc4 */ /* not lifted */
   2300     RECOMP_FLAGS_IN();
   2301     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2302     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2303     esp = esp + 4; /* 0x3609D033: add esp, 4 */
   2304     _flag_k = FK_ADD;
   2305 L_3609D036:
   2306     eax = MEM32(esi + (-0x78)); /* 0x3609D036: mov eax, dword ptr [esi - 0x78] */
   2307     edi = MEM32(edi); /* 0x3609D039: mov edi, dword ptr [edi] */
   2308     /* cmp edi, MEM32(eax + 0x4) */ /* 0x3609D03B: cmp edi, dword ptr [eax + 4] */
   2309     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   2310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2311     _flag_k = FK_CMP;
   2312     RECOMP_BACKEDGE();
   2313     if (CMP_NE(_flag_a, _flag_b)) goto L_3609D00D; /* 0x3609D03E: jne 0x3609d00d */
   2314 L_3609D040:
   2315     ecx = MEM32(esi + (-0x78)); /* 0x3609D040: mov ecx, dword ptr [esi - 0x78] */
   2316     ebx = MEM32(ecx + 0x4); /* 0x3609D043: mov ebx, dword ptr [ecx + 4] */
   2317     edi = MEM32(ebx); /* 0x3609D046: mov edi, dword ptr [ebx] */
   2318     /* cmp edi, ebx */ /* 0x3609D048: cmp edi, ebx */
   2319     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2321     _flag_k = FK_CMP;
   2322     MEM32(ebp + (-0x8)) = ecx; /* 0x3609D04A: mov dword ptr [ebp - 8], ecx */
   2323     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609D066; /* 0x3609D04D: je 0x3609d066 */
   2324 L_3609D04F:
   2325     goto L_3609D054; /* 0x3609D04F: jmp 0x3609d054 */
   2326 L_3609D051:
   2327     ecx = MEM32(ebp + (-0x8)); /* 0x3609D051: mov ecx, dword ptr [ebp - 8] */
   2328 L_3609D054:
   2329     eax = edi; /* 0x3609D054: mov eax, edi */
   2330     edi = MEM32(edi); /* 0x3609D056: mov edi, dword ptr [edi] */
   2331     PUSH32(esp, eax); /* 0x3609D058: push eax */
   2332     edx = ebp + (-0xC); /* 0x3609D059: lea edx, [ebp - 0xc] */
   2333     PUSH32(esp, edx); /* 0x3609D05C: push edx */
   2334     RECOMP_ICALL(0x360C86A0u); /* 0x3609D05D: call 0x360c86a0 */ /* not lifted */
   2335     RECOMP_FLAGS_IN();
   2336     /* cmp edi, ebx */ /* 0x3609D062: cmp edi, ebx */
   2337     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2339     _flag_k = FK_CMP;
   2340     RECOMP_BACKEDGE();
   2341     if (CMP_NE(_flag_a, _flag_b)) goto L_3609D051; /* 0x3609D064: jne 0x3609d051 */
   2342 L_3609D066:
   2343     eax = MEM32(esi + (-0x80)); /* 0x3609D066: mov eax, dword ptr [esi - 0x80] */
   2344     /* test eax, eax */ /* 0x3609D069: test eax, eax */
   2345     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2346     _cf = 0;
   2347     _flag_k = FK_TEST;
   2348     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D079; /* 0x3609D06B: je 0x3609d079 */
   2349 L_3609D06D:
   2350     PUSH32(esp, eax); /* 0x3609D06D: push eax */
   2351     ecx = esi + (-0x8C); /* 0x3609D06E: lea ecx, [esi - 0x8c] */
   2352     RECOMP_ICALL(0x3609CE00u); /* 0x3609D074: call 0x3609ce00 */ /* not lifted */
   2353     RECOMP_FLAGS_IN();
   2354 L_3609D079:
   2355     eax = MEM32(0x3616FF74); /* 0x3609D079: mov eax, dword ptr [0x3616ff74] */
   2356     ecx = MEM32(eax); /* 0x3609D07E: mov ecx, dword ptr [eax] */
   2357     fp_push(*(float*)&MEM32(ecx + 0x64)); /* 0x3609D080: fld dword ptr [ecx + 0x64] */
   2358     _st[0] *= (double)*(float*)ADDR(0x36170888); /* 0x3609D083: fmul dword ptr [0x36170888] */
   2359     _st[0] += (double)*(float*)ADDR(esi + 0x118); /* 0x3609D089: fadd dword ptr [esi + 0x118] */
   2360     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x118) = _v; } /* 0x3609D08F: fstp dword ptr [esi + 0x118] */
   2361     eax = MEM32(esi + 0xE4); /* 0x3609D095: mov eax, dword ptr [esi + 0xe4] */
   2362     /* test eax, eax */ /* 0x3609D09B: test eax, eax */
   2363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2364     _cf = 0;
   2365     _flag_k = FK_TEST;
   2366     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D119; /* 0x3609D09D: je 0x3609d119 */
   2367 L_3609D09F:
   2368     eax = MEM32(esi + 0x10C); /* 0x3609D09F: mov eax, dword ptr [esi + 0x10c] */
   2369     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2370     SET_LO8(ebx, 0); /* 0x3609D0A5: xor bl, bl */
   2371     _cf = 0;
   2372     _flag_k = FK_NARROW(FK_TEST, 24);
   2373     /* test eax, eax */ /* 0x3609D0A7: test eax, eax */
   2374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2375     _cf = 0;
   2376     _flag_k = FK_TEST;
   2377     MEM32(ebp + (-0x8)) = eax; /* 0x3609D0A9: mov dword ptr [ebp - 8], eax */
   2378     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D0CF; /* 0x3609D0AC: je 0x3609d0cf */
   2379 L_3609D0AE:
   2380     /* cmp eax, 0x6Fu */ /* 0x3609D0AE: cmp eax, 0x6f */
   2381     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Fu);
   2382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2383     _flag_k = FK_CMP;
   2384     SET_LO8(ebx, 1); /* 0x3609D0B1: mov bl, 1 */
   2385     if (CMP_NE(_flag_a, _flag_b)) goto L_3609D0CF; /* 0x3609D0B3: jne 0x3609d0cf */
   2386 L_3609D0B5:
   2387     edx = MEM32(esi + (-0x8C)); /* 0x3609D0B5: mov edx, dword ptr [esi - 0x8c] */
   2388     ecx = esi + (-0x8C); /* 0x3609D0BB: lea ecx, [esi - 0x8c] */
   2389     PUSH32(esp, 0x00080000u); /* 0x3609D0C1: push 0x80000 */
   2390     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3609D0C6: call dword ptr [edx + 0x1c] */
   2391     RECOMP_FLAGS_IN();
   2392     /* test LO8(eax), LO8(eax) */ /* 0x3609D0C9: test al, al */
   2393     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2394     _cf = 0;
   2395     _flag_k = FK_NARROW(FK_TEST, 24);
   2396     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609D0CF; /* 0x3609D0CB: jne 0x3609d0cf */
   2397 L_3609D0CD:
   2398     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2399     SET_LO8(ebx, 0); /* 0x3609D0CD: xor bl, bl */
   2400     _cf = 0;
   2401     _flag_k = FK_NARROW(FK_TEST, 24);
   2402 L_3609D0CF:
   2403     ecx = MEM32(esi + 0xE4); /* 0x3609D0CF: mov ecx, dword ptr [esi + 0xe4] */
   2404     edi = esi + (-0x8C); /* 0x3609D0D5: lea edi, [esi - 0x8c] */
   2405     PUSH32(esp, edi); /* 0x3609D0DB: push edi */
   2406     RECOMP_ICALL(0x360954E0u); /* 0x3609D0DC: call 0x360954e0 */ /* not lifted */
   2407     RECOMP_FLAGS_IN();
   2408     /* test LO8(eax), LO8(eax) */ /* 0x3609D0E1: test al, al */
   2409     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2410     _cf = 0;
   2411     _flag_k = FK_NARROW(FK_TEST, 24);
   2412     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609D0E7; /* 0x3609D0E3: jne 0x3609d0e7 */
   2413 L_3609D0E5:
   2414     SET_LO8(ebx, 1); /* 0x3609D0E5: mov bl, 1 */
   2415 L_3609D0E7:
   2416     eax = MEM32(esi + (-0x80)); /* 0x3609D0E7: mov eax, dword ptr [esi - 0x80] */
   2417     /* test eax, eax */ /* 0x3609D0EA: test eax, eax */
   2418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2419     _cf = 0;
   2420     _flag_k = FK_TEST;
   2421     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D0F0; /* 0x3609D0EC: je 0x3609d0f0 */
   2422 L_3609D0EE:
   2423     SET_LO8(ebx, 1); /* 0x3609D0EE: mov bl, 1 */
   2424 L_3609D0F0:
   2425     SET_LO8(eax, MEM8(esi + (-0x50))); /* 0x3609D0F0: mov al, byte ptr [esi - 0x50] */
   2426     /* test LO8(eax), LO8(eax) */ /* 0x3609D0F3: test al, al */
   2427     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2428     _cf = 0;
   2429     _flag_k = FK_NARROW(FK_TEST, 24);
   2430     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609D0FB; /* 0x3609D0F5: jne 0x3609d0fb */
   2431 L_3609D0F7:
   2432     /* test LO8(ebx), LO8(ebx) */ /* 0x3609D0F7: test bl, bl */
   2433     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2434     _cf = 0;
   2435     _flag_k = FK_NARROW(FK_TEST, 24);
   2436     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D107; /* 0x3609D0F9: je 0x3609d107 */
   2437 L_3609D0FB:
   2438     ecx = MEM32(esi + 0xE4); /* 0x3609D0FB: mov ecx, dword ptr [esi + 0xe4] */
   2439     PUSH32(esp, edi); /* 0x3609D101: push edi */
   2440     RECOMP_ICALL(0x36095400u); /* 0x3609D102: call 0x36095400 */ /* not lifted */
   2441     RECOMP_FLAGS_IN();
   2442 L_3609D107:
   2443     eax = MEM32(ebp + (-0x8)); /* 0x3609D107: mov eax, dword ptr [ebp - 8] */
   2444     /* test eax, eax */ /* 0x3609D10A: test eax, eax */
   2445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2446     _cf = 0;
   2447     _flag_k = FK_TEST;
   2448     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D119; /* 0x3609D10C: je 0x3609d119 */
   2449 L_3609D10E:
   2450     eax = MEM32(edi); /* 0x3609D10E: mov eax, dword ptr [edi] */
   2451     PUSH32(esp, 0); /* 0x3609D110: push 0 */
   2452     PUSH32(esp, 0x62u); /* 0x3609D112: push 0x62 */
   2453     ecx = edi; /* 0x3609D114: mov ecx, edi */
   2454     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x3609D116: call dword ptr [eax + 8] */
   2455     RECOMP_FLAGS_IN();
   2456 L_3609D119:
   2457     ecx = esi; /* 0x3609D119: mov ecx, esi */
   2458     RECOMP_ICALL(MEM32(0x3616FCE0)); /* 0x3609D11B: call dword ptr [0x3616fce0] */
   2459     RECOMP_FLAGS_IN();
   2460     /* test LO8(eax), LO8(eax) */ /* 0x3609D121: test al, al */
   2461     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2462     _cf = 0;
   2463     _flag_k = FK_NARROW(FK_TEST, 24);
   2464     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D1E7; /* 0x3609D123: je 0x3609d1e7 */
   2465 L_3609D129:
   2466     edx = MEM32(esi + (-0x8C)); /* 0x3609D129: mov edx, dword ptr [esi - 0x8c] */
   2467     edi = MEM32(esi + 0x114); /* 0x3609D12F: mov edi, dword ptr [esi + 0x114] */
   2468     ebx = esi + (-0x8C); /* 0x3609D135: lea ebx, [esi - 0x8c] */
   2469     PUSH32(esp, 2); /* 0x3609D13B: push 2 */
   2470     PUSH32(esp, 0x1B5u); /* 0x3609D13D: push 0x1b5 */
   2471     ecx = ebx; /* 0x3609D142: mov ecx, ebx */
   2472     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609D144: call dword ptr [edx + 4] */
   2473     RECOMP_FLAGS_IN();
   2474     ecx = eax; /* 0x3609D147: mov ecx, eax */
   2475     eax = edi; /* 0x3609D149: mov eax, edi */
   2476     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3609D14B: cdq  */
   2477     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3609D14C: idiv ecx */
   2478       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   2479       else { eax = 0; edx = 0; } }
   2480     /* test edx, edx */ /* 0x3609D14E: test edx, edx */
   2481     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2482     _cf = 0;
   2483     _flag_k = FK_TEST;
   2484     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609D1DF; /* 0x3609D150: jne 0x3609d1df */
   2485 L_3609D156:
   2486     ecx = esi; /* 0x3609D156: mov ecx, esi */
   2487     RECOMP_ICALL(MEM32(0x3616FCE0)); /* 0x3609D158: call dword ptr [0x3616fce0] */
   2488     RECOMP_FLAGS_IN();
   2489     /* test LO8(eax), LO8(eax) */ /* 0x3609D15E: test al, al */
   2490     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2491     _cf = 0;
   2492     _flag_k = FK_NARROW(FK_TEST, 24);
   2493     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D1DF; /* 0x3609D160: je 0x3609d1df */
   2494 L_3609D162:
   2495     edi = MEM32(0x3616FF70); /* 0x3609D162: mov edi, dword ptr [0x3616ff70] */
   2496 L_3609D168:
   2497     ecx = esi; /* 0x3609D168: mov ecx, esi */
   2498     RECOMP_ICALL(MEM32(0x3616FCDC)); /* 0x3609D16A: call dword ptr [0x3616fcdc] */
   2499     RECOMP_FLAGS_IN();
   2500     edx = ebp + (-0x20); /* 0x3609D170: lea edx, [ebp - 0x20] */
   2501     /* cmp edx, eax */ /* 0x3609D173: cmp edx, eax */
   2502     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2504     _flag_k = FK_CMP;
   2505     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609D182; /* 0x3609D175: je 0x3609d182 */
   2506 L_3609D177:
   2507     ecx = MEM32(eax); /* 0x3609D177: mov ecx, dword ptr [eax] */
   2508     MEM32(ebp + (-0x20)) = ecx; /* 0x3609D179: mov dword ptr [ebp - 0x20], ecx */
   2509     edx = MEM32(eax + 0x4); /* 0x3609D17C: mov edx, dword ptr [eax + 4] */
   2510     MEM32(ebp + (-0x1C)) = edx; /* 0x3609D17F: mov dword ptr [ebp - 0x1c], edx */
   2511 L_3609D182:
   2512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   2513     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2514     eax = eax + 8; /* 0x3609D182: add eax, 8 */
   2515     _flag_k = FK_ADD;
   2516     ecx = MEM32(eax); /* 0x3609D185: mov ecx, dword ptr [eax] */
   2517     MEM32(ebp + (-0x18)) = ecx; /* 0x3609D187: mov dword ptr [ebp - 0x18], ecx */
   2518     edx = MEM32(eax + 0x4); /* 0x3609D18A: mov edx, dword ptr [eax + 4] */
   2519     MEM32(ebp + (-0x14)) = edx; /* 0x3609D18D: mov dword ptr [ebp - 0x14], edx */
   2520     eax = MEM32(eax + 0x8); /* 0x3609D190: mov eax, dword ptr [eax + 8] */
   2521     ecx = ebp + (-0x20); /* 0x3609D193: lea ecx, [ebp - 0x20] */
   2522     PUSH32(esp, ecx); /* 0x3609D196: push ecx */
   2523     MEM32(ebp + (-0x10)) = eax; /* 0x3609D197: mov dword ptr [ebp - 0x10], eax */
   2524     RECOMP_ICALL(edi); /* 0x3609D19A: call edi */
   2525     RECOMP_FLAGS_IN();
   2526     PUSH32(esp, 0); /* 0x3609D19C: push 0 */
   2527     PUSH32(esp, 0x361B2CD8u); /* 0x3609D19E: push 0x361b2cd8 */
   2528     PUSH32(esp, 0x361B2CC0u); /* 0x3609D1A3: push 0x361b2cc0 */
   2529     PUSH32(esp, 0); /* 0x3609D1A8: push 0 */
   2530     PUSH32(esp, eax); /* 0x3609D1AA: push eax */
   2531     RECOMP_ICALL(0x3615FD86u); /* 0x3609D1AB: call 0x3615fd86 */ /* not lifted */
   2532     RECOMP_FLAGS_IN();
   2533     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2534     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2535     esp = esp + 0x18u; /* 0x3609D1B0: add esp, 0x18 */
   2536     _flag_k = FK_ADD;
   2537     /* test eax, eax */ /* 0x3609D1B3: test eax, eax */
   2538     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2539     _cf = 0;
   2540     _flag_k = FK_TEST;
   2541     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D1CB; /* 0x3609D1B5: je 0x3609d1cb */
   2542 L_3609D1B7:
   2543     /* cmp MEM8(eax + 0x94), 1 */ /* 0x3609D1B7: cmp byte ptr [eax + 0x94], 1 */
   2544     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   2545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2546     _flag_k = FK_NARROW(FK_CMP, 24);
   2547     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609D1CB; /* 0x3609D1BE: je 0x3609d1cb */
   2548 L_3609D1C0:
   2549     edx = MEM32(ebx); /* 0x3609D1C0: mov edx, dword ptr [ebx] */
   2550     PUSH32(esp, eax); /* 0x3609D1C2: push eax */
   2551     ecx = ebx; /* 0x3609D1C3: mov ecx, ebx */
   2552     RECOMP_ICALL(MEM32(edx + 0x118)); /* 0x3609D1C5: call dword ptr [edx + 0x118] */
   2553     RECOMP_FLAGS_IN();
   2554 L_3609D1CB:
   2555     ecx = esi; /* 0x3609D1CB: mov ecx, esi */
   2556     RECOMP_ICALL(MEM32(0x3616FD68)); /* 0x3609D1CD: call dword ptr [0x3616fd68] */
   2557     RECOMP_FLAGS_IN();
   2558     ecx = esi; /* 0x3609D1D3: mov ecx, esi */
   2559     RECOMP_ICALL(MEM32(0x3616FCE0)); /* 0x3609D1D5: call dword ptr [0x3616fce0] */
   2560     RECOMP_FLAGS_IN();
   2561     /* test LO8(eax), LO8(eax) */ /* 0x3609D1DB: test al, al */
   2562     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2563     _cf = 0;
   2564     _flag_k = FK_NARROW(FK_TEST, 24);
   2565     RECOMP_BACKEDGE();
   2566     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609D168; /* 0x3609D1DD: jne 0x3609d168 */
   2567 L_3609D1DF:
   2568     ecx = esi; /* 0x3609D1DF: mov ecx, esi */
   2569     RECOMP_ICALL(MEM32(0x3616FCE8)); /* 0x3609D1E1: call dword ptr [0x3616fce8] */
   2570     RECOMP_FLAGS_IN();
   2571 L_3609D1E7:
   2572     eax = MEM32(esi + (-0x84)); /* 0x3609D1E7: mov eax, dword ptr [esi - 0x84] */
   2573     ecx = esi + (-0x84); /* 0x3609D1ED: lea ecx, [esi - 0x84] */
   2574     PUSH32(esp, 0xFFFFu); /* 0x3609D1F3: push 0xffff */
   2575     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x3609D1F8: call dword ptr [eax + 8] */
   2576     RECOMP_FLAGS_IN();
   2577     eax = MEM32(esi + 0x100); /* 0x3609D1FB: mov eax, dword ptr [esi + 0x100] */
   2578     /* test eax, eax */ /* 0x3609D201: test eax, eax */
   2579     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2580     _cf = 0;
   2581     _flag_k = FK_TEST;
   2582     edi = POP32_VAL(esp); /* 0x3609D203: pop edi */
   2583     ebx = POP32_VAL(esp); /* 0x3609D204: pop ebx */
   2584     if (TEST_Z(_flag_a, _flag_b)) goto L_3609D212; /* 0x3609D205: je 0x3609d212 */
   2585 L_3609D207:
   2586     ecx = esi + (-0x8C); /* 0x3609D207: lea ecx, [esi - 0x8c] */
   2587     RECOMP_ICALL(0x3609D220u); /* 0x3609D20D: call 0x3609d220 */ /* not lifted */
   2588     RECOMP_FLAGS_IN();
   2589 L_3609D212:
   2590     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3609D212: mov al, byte ptr [ebp - 1] */
   2591     esi = POP32_VAL(esp); /* 0x3609D215: pop esi */
   2592     esp = ebp; /* 0x3609D216: mov esp, ebp */
   2593     ebp = POP32_VAL(esp); /* 0x3609D218: pop ebp */
   2594     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609D219: ret  */
   2595     RECOMP_REGS_OUT();
   2596 }
   2597 
   2598 void sub_360889F0(void) {
   2599     int _fpu_cmp = 0;
   2600     uint32_t _cf = 0;
   2601     int _df = 1;
   2602     uint32_t _flag_k = FK_NONE;
   2603     uint32_t _flag_a = 0, _flag_b = 0;
   2604     uint32_t _itail_tgt = 0;
   2605     RECOMP_REGS_LOCALS
   2606     RECOMP_ENTER(0x360889F0u);
   2607 
   2608 L_360889F0:
   2609     PUSH32(esp, ebp); /* 0x360889F0: push ebp */
   2610     ebp = esp; /* 0x360889F1: mov ebp, esp */
   2611     PUSH32(esp, esi); /* 0x360889F3: push esi */
   2612     esi = MEM32(ebp + 0x8); /* 0x360889F4: mov esi, dword ptr [ebp + 8] */
   2613     eax = MEM32(esi + 0xE4); /* 0x360889F7: mov eax, dword ptr [esi + 0xe4] */
   2614     PUSH32(esp, edi); /* 0x360889FD: push edi */
   2615     edi = ecx; /* 0x360889FE: mov edi, ecx */
   2616     ecx = esi + 0xE4; /* 0x36088A00: lea ecx, [esi + 0xe4] */
   2617     PUSH32(esp, 2); /* 0x36088A06: push 2 */
   2618     PUSH32(esp, 0xD7u); /* 0x36088A08: push 0xd7 */
   2619     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36088A0D: call dword ptr [eax + 4] */
   2620     RECOMP_FLAGS_IN();
   2621     /* test LO8(eax), 1 */ /* 0x36088A10: test al, 1 */
   2622     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2623     _cf = 0;
   2624     _flag_k = FK_NARROW(FK_TEST, 24);
   2625     if (TEST_Z(_flag_a, _flag_b)) goto L_36088A27; /* 0x36088A12: je 0x36088a27 */
   2626 L_36088A14:
   2627     ecx = esi; /* 0x36088A14: mov ecx, esi */
   2628     RECOMP_ICALL(0x36071C80u); /* 0x36088A16: call 0x36071c80 */ /* not lifted */
   2629     RECOMP_FLAGS_IN();
   2630     /* test LO8(eax), LO8(eax) */ /* 0x36088A1B: test al, al */
   2631     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2632     _cf = 0;
   2633     _flag_k = FK_NARROW(FK_TEST, 24);
   2634     if (TEST_Z(_flag_a, _flag_b)) goto L_36088A27; /* 0x36088A1D: je 0x36088a27 */
   2635 L_36088A1F:
   2636     PUSH32(esp, esi); /* 0x36088A1F: push esi */
   2637     ecx = edi; /* 0x36088A20: mov ecx, edi */
   2638     RECOMP_ICALL(0x36088A30u); /* 0x36088A22: call 0x36088a30 */ /* not lifted */
   2639     RECOMP_FLAGS_IN();
   2640 L_36088A27:
   2641     edi = POP32_VAL(esp); /* 0x36088A27: pop edi */
   2642     esi = POP32_VAL(esp); /* 0x36088A28: pop esi */
   2643     ebp = POP32_VAL(esp); /* 0x36088A29: pop ebp */
   2644     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088A2A: ret 4 */
   2645     RECOMP_REGS_OUT();
   2646 }
   2647 
   2648 void sub_36088A30(void) {
   2649     int _fpu_cmp = 0;
   2650     uint32_t _cf = 0;
   2651     int _df = 1;
   2652     uint32_t _flag_k = FK_NONE;
   2653     uint32_t _flag_a = 0, _flag_b = 0;
   2654     uint32_t _itail_tgt = 0;
   2655     RECOMP_REGS_LOCALS
   2656     RECOMP_ENTER(0x36088A30u);
   2657 
   2658 L_36088A30:
   2659     PUSH32(esp, ebp); /* 0x36088A30: push ebp */
   2660     ebp = esp; /* 0x36088A31: mov ebp, esp */
   2661     PUSH32(esp, 0xFFFFFFFFu); /* 0x36088A33: push -1 */
   2662     PUSH32(esp, 0x36165CA9u); /* 0x36088A35: push 0x36165ca9 */
   2663     eax = MEM32(FS_BASE + (0)); /* 0x36088A3A: mov eax, dword ptr fs:[0] */
   2664     PUSH32(esp, eax); /* 0x36088A40: push eax */
   2665     MEM32(FS_BASE + (0)) = esp; /* 0x36088A41: mov dword ptr fs:[0], esp */
   2666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2668     esp = esp - 0x18u; /* 0x36088A48: sub esp, 0x18 */
   2669     _flag_k = FK_CMP;
   2670     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36088A4B: mov al, byte ptr [ebp - 0xd] */
   2671     PUSH32(esp, ebx); /* 0x36088A4E: push ebx */
   2672     PUSH32(esp, esi); /* 0x36088A4F: push esi */
   2673     MEM32(ebp + (-0x14)) = ecx; /* 0x36088A50: mov dword ptr [ebp - 0x14], ecx */
   2674     PUSH32(esp, edi); /* 0x36088A53: push edi */
   2675     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2676     ecx = ecx | 0xFFFFFFFFu; /* 0x36088A54: or ecx, 0xffffffff */
   2677     _cf = 0;
   2678     _flag_k = FK_TEST;
   2679     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2680     esi = 0; /* 0x36088A57: xor esi, esi */
   2681     _cf = 0;
   2682     _flag_k = FK_TEST;
   2683     MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x36088A59: mov byte ptr [ebp - 0x24], al */
   2684     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2685     eax = 0; /* 0x36088A5C: xor eax, eax */
   2686     _cf = 0;
   2687     _flag_k = FK_TEST;
   2688     edi = 0x361C560Cu; /* 0x36088A5E: mov edi, 0x361c560c */
   2689     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; } /* 0x36088A63: repne scasb al, byte ptr es:[edi] */
   2690     ecx = ~ecx; /* 0x36088A65: not ecx */
   2691     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2692     ecx = ecx - 1; /* 0x36088A67: dec ecx */
   2693     _flag_k = FK_DEC;
   2694     ebx = ecx; /* 0x36088A68: mov ebx, ecx */
   2695     PUSH32(esp, 1); /* 0x36088A6A: push 1 */
   2696     PUSH32(esp, ebx); /* 0x36088A6C: push ebx */
   2697     ecx = ebp + (-0x24); /* 0x36088A6D: lea ecx, [ebp - 0x24] */
   2698     MEM32(ebp + (-0x20)) = esi; /* 0x36088A70: mov dword ptr [ebp - 0x20], esi */
   2699     MEM32(ebp + (-0x1C)) = esi; /* 0x36088A73: mov dword ptr [ebp - 0x1c], esi */
   2700     MEM32(ebp + (-0x18)) = esi; /* 0x36088A76: mov dword ptr [ebp - 0x18], esi */
   2701     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36088A79: call dword ptr [0x3616f00c] */
   2702     RECOMP_FLAGS_IN();
   2703     /* test LO8(eax), LO8(eax) */ /* 0x36088A7F: test al, al */
   2704     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2705     _cf = 0;
   2706     _flag_k = FK_NARROW(FK_TEST, 24);
   2707     if (TEST_Z(_flag_a, _flag_b)) goto L_36088AA7; /* 0x36088A81: je 0x36088aa7 */
   2708 L_36088A83:
   2709     edi = MEM32(ebp + (-0x20)); /* 0x36088A83: mov edi, dword ptr [ebp - 0x20] */
   2710     ecx = ebx; /* 0x36088A86: mov ecx, ebx */
   2711     edx = ecx; /* 0x36088A88: mov edx, ecx */
   2712     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36088A8A: shr ecx, 2 */
   2713     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2714     ecx = ecx >> 2u; /* 0x36088A8A: shr ecx, 2 */
   2715     esi = 0x361C560Cu; /* 0x36088A8D: mov esi, 0x361c560c */
   2716     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36088A92: 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; }
   2717     ecx = edx; /* 0x36088A94: mov ecx, edx */
   2718     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2719     ecx = ecx & 3; /* 0x36088A96: and ecx, 3 */
   2720     _cf = 0;
   2721     _flag_k = FK_TEST;
   2722     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36088A99: 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; }
   2723     eax = MEM32(ebp + (-0x20)); /* 0x36088A9B: mov eax, dword ptr [ebp - 0x20] */
   2724     MEM32(ebp + (-0x1C)) = ebx; /* 0x36088A9E: mov dword ptr [ebp - 0x1c], ebx */
   2725     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36088AA1: mov byte ptr [eax + ebx], 0 */
   2726     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2727     esi = 0; /* 0x36088AA5: xor esi, esi */
   2728     _cf = 0;
   2729     _flag_k = FK_TEST;
   2730 L_36088AA7:
   2731     ecx = ebp + (-0x24); /* 0x36088AA7: lea ecx, [ebp - 0x24] */
   2732     PUSH32(esp, ecx); /* 0x36088AAA: push ecx */
   2733     ecx = MEM32(ebp + (-0x14)); /* 0x36088AAB: mov ecx, dword ptr [ebp - 0x14] */
   2734     MEM32(ebp + (-0x4)) = esi; /* 0x36088AAE: mov dword ptr [ebp - 4], esi */
   2735     RECOMP_ICALL(0x3610DEF0u); /* 0x36088AB1: call 0x3610def0 */ /* not lifted */
   2736     RECOMP_FLAGS_IN();
   2737     eax = MEM32(ebp + (-0x20)); /* 0x36088AB6: mov eax, dword ptr [ebp - 0x20] */
   2738     edi = POP32_VAL(esp); /* 0x36088AB9: pop edi */
   2739     /* cmp eax, esi */ /* 0x36088ABA: cmp eax, esi */
   2740     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2741     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2742     _flag_k = FK_CMP;
   2743     esi = POP32_VAL(esp); /* 0x36088ABC: pop esi */
   2744     ebx = POP32_VAL(esp); /* 0x36088ABD: pop ebx */
   2745     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088AEA; /* 0x36088ABE: je 0x36088aea */
   2746 L_36088AC0:
   2747     ecx = eax + (-0x1); /* 0x36088AC0: lea ecx, [eax - 1] */
   2748     SET_LO8(eax, MEM8(ecx)); /* 0x36088AC3: mov al, byte ptr [ecx] */
   2749     /* test LO8(eax), LO8(eax) */ /* 0x36088AC5: test al, al */
   2750     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2751     _cf = 0;
   2752     _flag_k = FK_NARROW(FK_TEST, 24);
   2753     if (TEST_Z(_flag_a, _flag_b)) goto L_36088AE1; /* 0x36088AC7: je 0x36088ae1 */
   2754 L_36088AC9:
   2755     /* cmp LO8(eax), 0xFFu */ /* 0x36088AC9: cmp al, 0xff */
   2756     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   2757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2758     _flag_k = FK_NARROW(FK_CMP, 24);
   2759     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088AE1; /* 0x36088ACB: je 0x36088ae1 */
   2760 L_36088ACD:
   2761     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2762     SET_LO8(eax, LO8(eax) - 1); /* 0x36088ACD: dec al */
   2763     _flag_k = FK_NARROW(FK_DEC, 24);
   2764     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36088ACF: mov byte ptr [ecx], al */
   2765     ecx = MEM32(ebp + (-0xC)); /* 0x36088AD1: mov ecx, dword ptr [ebp - 0xc] */
   2766     MEM32(FS_BASE + (0)) = ecx; /* 0x36088AD4: mov dword ptr fs:[0], ecx */
   2767     esp = ebp; /* 0x36088ADB: mov esp, ebp */
   2768     ebp = POP32_VAL(esp); /* 0x36088ADD: pop ebp */
   2769     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088ADE: ret 4 */
   2770 L_36088AE1:
   2771     PUSH32(esp, ecx); /* 0x36088AE1: push ecx */
   2772     RECOMP_ICALL(0x3615FCC4u); /* 0x36088AE2: call 0x3615fcc4 */ /* not lifted */
   2773     RECOMP_FLAGS_IN();
   2774     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2775     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2776     esp = esp + 4; /* 0x36088AE7: add esp, 4 */
   2777     _flag_k = FK_ADD;
   2778 L_36088AEA:
   2779     ecx = MEM32(ebp + (-0xC)); /* 0x36088AEA: mov ecx, dword ptr [ebp - 0xc] */
   2780     MEM32(FS_BASE + (0)) = ecx; /* 0x36088AED: mov dword ptr fs:[0], ecx */
   2781     esp = ebp; /* 0x36088AF4: mov esp, ebp */
   2782     ebp = POP32_VAL(esp); /* 0x36088AF6: pop ebp */
   2783     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088AF7: ret 4 */
   2784     RECOMP_REGS_OUT();
   2785 }
   2786 
   2787 void sub_36088B00(void) {
   2788     int _fpu_cmp = 0;
   2789     uint32_t _cf = 0;
   2790     int _df = 1;
   2791     uint32_t _flag_k = FK_NONE;
   2792     uint32_t _flag_a = 0, _flag_b = 0;
   2793     uint32_t _itail_tgt = 0;
   2794     RECOMP_REGS_LOCALS
   2795     RECOMP_ENTER(0x36088B00u);
   2796 
   2797 L_36088B00:
   2798     PUSH32(esp, ebp); /* 0x36088B00: push ebp */
   2799     ebp = esp; /* 0x36088B01: mov ebp, esp */
   2800     PUSH32(esp, esi); /* 0x36088B03: push esi */
   2801     PUSH32(esp, edi); /* 0x36088B04: push edi */
   2802     edi = MEM32(ebp + 0x8); /* 0x36088B05: mov edi, dword ptr [ebp + 8] */
   2803     eax = MEM32(edi + 0xE4); /* 0x36088B08: mov eax, dword ptr [edi + 0xe4] */
   2804     esi = ecx; /* 0x36088B0E: mov esi, ecx */
   2805     ecx = edi + 0xE4; /* 0x36088B10: lea ecx, [edi + 0xe4] */
   2806     PUSH32(esp, 2); /* 0x36088B16: push 2 */
   2807     PUSH32(esp, 0xD7u); /* 0x36088B18: push 0xd7 */
   2808     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36088B1D: call dword ptr [eax + 4] */
   2809     RECOMP_FLAGS_IN();
   2810     /* test LO8(eax), 1 */ /* 0x36088B20: test al, 1 */
   2811     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2812     _cf = 0;
   2813     _flag_k = FK_NARROW(FK_TEST, 24);
   2814     if (TEST_Z(_flag_a, _flag_b)) goto L_36088B36; /* 0x36088B22: je 0x36088b36 */
   2815 L_36088B24:
   2816     ecx = MEM32(ebp + 0xC); /* 0x36088B24: mov ecx, dword ptr [ebp + 0xc] */
   2817     PUSH32(esp, ecx); /* 0x36088B27: push ecx */
   2818     PUSH32(esp, edi); /* 0x36088B28: push edi */
   2819     ecx = esi; /* 0x36088B29: mov ecx, esi */
   2820     RECOMP_ICALL(0x3609F9C0u); /* 0x36088B2B: call 0x3609f9c0 */ /* not lifted */
   2821     RECOMP_FLAGS_IN();
   2822     edi = POP32_VAL(esp); /* 0x36088B30: pop edi */
   2823     esi = POP32_VAL(esp); /* 0x36088B31: pop esi */
   2824     ebp = POP32_VAL(esp); /* 0x36088B32: pop ebp */
   2825     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36088B33: ret 8 */
   2826 L_36088B36:
   2827     edi = POP32_VAL(esp); /* 0x36088B36: pop edi */
   2828     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2829     eax = 0; /* 0x36088B37: xor eax, eax */
   2830     _cf = 0;
   2831     _flag_k = FK_TEST;
   2832     esi = POP32_VAL(esp); /* 0x36088B39: pop esi */
   2833     ebp = POP32_VAL(esp); /* 0x36088B3A: pop ebp */
   2834     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36088B3B: ret 8 */
   2835     RECOMP_REGS_OUT();
   2836 }
   2837 
   2838 void sub_36088B40(void) {
   2839     int _fpu_cmp = 0;
   2840     uint32_t _cf = 0;
   2841     int _df = 1;
   2842     uint32_t _flag_k = FK_NONE;
   2843     uint32_t _flag_a = 0, _flag_b = 0;
   2844     uint32_t _itail_tgt = 0;
   2845     RECOMP_REGS_LOCALS
   2846     RECOMP_ENTER(0x36088B40u);
   2847 
   2848 L_36088B40:
   2849     PUSH32(esp, ebp); /* 0x36088B40: push ebp */
   2850     ebp = esp; /* 0x36088B41: mov ebp, esp */
   2851     eax = MEM32(ecx); /* 0x36088B43: mov eax, dword ptr [ecx] */
   2852     PUSH32(esp, 2); /* 0x36088B45: push 2 */
   2853     PUSH32(esp, 0xC3u); /* 0x36088B47: push 0xc3 */
   2854     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36088B4C: call dword ptr [eax + 4] */
   2855     RECOMP_FLAGS_IN();
   2856     ecx = MEM32(ebp + 0x8); /* 0x36088B4F: mov ecx, dword ptr [ebp + 8] */
   2857     edx = eax; /* 0x36088B52: mov edx, eax */
   2858     _flag_a = (uint32_t)((edx ^ ecx)); _flag_b = (uint32_t)((edx ^ ecx));
   2859     edx = edx ^ ecx; /* 0x36088B54: xor edx, ecx */
   2860     _cf = 0;
   2861     _flag_k = FK_TEST;
   2862     /* test edx, 0xFFFFFFF0u */ /* 0x36088B56: test edx, 0xfffffff0 */
   2863     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFF0u);
   2864     _cf = 0;
   2865     _flag_k = FK_TEST;
   2866     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088B6E; /* 0x36088B5C: jne 0x36088b6e */
   2867 L_36088B5E:
   2868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu);
   2869     eax = eax & 0xFu; /* 0x36088B5E: and eax, 0xf */
   2870     _cf = 0;
   2871     _flag_k = FK_TEST;
   2872     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFu);
   2873     ecx = ecx & 0xFu; /* 0x36088B61: and ecx, 0xf */
   2874     _cf = 0;
   2875     _flag_k = FK_TEST;
   2876     /* cmp LO8(eax), LO8(ecx) */ /* 0x36088B64: cmp al, cl */
   2877     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2879     _flag_k = FK_NARROW(FK_CMP, 24);
   2880     if (CMP_B(_flag_a, _flag_b)) goto L_36088B6E; /* 0x36088B66: jb 0x36088b6e */
   2881 L_36088B68:
   2882     SET_LO8(eax, 1); /* 0x36088B68: mov al, 1 */
   2883     ebp = POP32_VAL(esp); /* 0x36088B6A: pop ebp */
   2884     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088B6B: ret 4 */
   2885 L_36088B6E:
   2886     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2887     SET_LO8(eax, 0); /* 0x36088B6E: xor al, al */
   2888     _cf = 0;
   2889     _flag_k = FK_NARROW(FK_TEST, 24);
   2890     ebp = POP32_VAL(esp); /* 0x36088B70: pop ebp */
   2891     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088B71: ret 4 */
   2892     RECOMP_REGS_OUT();
   2893 }
   2894 
   2895 void sub_36088B80(void) {
   2896     int _fpu_cmp = 0;
   2897     uint32_t _cf = 0;
   2898     int _df = 1;
   2899     uint32_t _flag_k = FK_NONE;
   2900     uint32_t _flag_a = 0, _flag_b = 0;
   2901     uint32_t _itail_tgt = 0;
   2902     RECOMP_REGS_LOCALS
   2903     RECOMP_ENTER(0x36088B80u);
   2904 
   2905 L_36088B80:
   2906     PUSH32(esp, ebp); /* 0x36088B80: push ebp */
   2907     ebp = esp; /* 0x36088B81: mov ebp, esp */
   2908     PUSH32(esp, 0xFFFFFFFFu); /* 0x36088B83: push -1 */
   2909     PUSH32(esp, 0x36165CC9u); /* 0x36088B85: push 0x36165cc9 */
   2910     eax = MEM32(FS_BASE + (0)); /* 0x36088B8A: mov eax, dword ptr fs:[0] */
   2911     PUSH32(esp, eax); /* 0x36088B90: push eax */
   2912     MEM32(FS_BASE + (0)) = esp; /* 0x36088B91: mov dword ptr fs:[0], esp */
   2913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2915     esp = esp - 0x14u; /* 0x36088B98: sub esp, 0x14 */
   2916     _flag_k = FK_CMP;
   2917     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36088B9B: mov al, byte ptr [ebp + 0xb] */
   2918     PUSH32(esp, ebx); /* 0x36088B9E: push ebx */
   2919     PUSH32(esp, esi); /* 0x36088B9F: push esi */
   2920     MEM32(ebp + (-0x10)) = ecx; /* 0x36088BA0: mov dword ptr [ebp - 0x10], ecx */
   2921     PUSH32(esp, edi); /* 0x36088BA3: push edi */
   2922     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   2923     ecx = ecx | 0xFFFFFFFFu; /* 0x36088BA4: or ecx, 0xffffffff */
   2924     _cf = 0;
   2925     _flag_k = FK_TEST;
   2926     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2927     esi = 0; /* 0x36088BA7: xor esi, esi */
   2928     _cf = 0;
   2929     _flag_k = FK_TEST;
   2930     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36088BA9: mov byte ptr [ebp - 0x20], al */
   2931     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2932     eax = 0; /* 0x36088BAC: xor eax, eax */
   2933     _cf = 0;
   2934     _flag_k = FK_TEST;
   2935     edi = 0x361C561Cu; /* 0x36088BAE: mov edi, 0x361c561c */
   2936     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; } /* 0x36088BB3: repne scasb al, byte ptr es:[edi] */
   2937     ecx = ~ecx; /* 0x36088BB5: not ecx */
   2938     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2939     ecx = ecx - 1; /* 0x36088BB7: dec ecx */
   2940     _flag_k = FK_DEC;
   2941     ebx = ecx; /* 0x36088BB8: mov ebx, ecx */
   2942     PUSH32(esp, 1); /* 0x36088BBA: push 1 */
   2943     PUSH32(esp, ebx); /* 0x36088BBC: push ebx */
   2944     ecx = ebp + (-0x20); /* 0x36088BBD: lea ecx, [ebp - 0x20] */
   2945     MEM32(ebp + (-0x1C)) = esi; /* 0x36088BC0: mov dword ptr [ebp - 0x1c], esi */
   2946     MEM32(ebp + (-0x18)) = esi; /* 0x36088BC3: mov dword ptr [ebp - 0x18], esi */
   2947     MEM32(ebp + (-0x14)) = esi; /* 0x36088BC6: mov dword ptr [ebp - 0x14], esi */
   2948     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36088BC9: call dword ptr [0x3616f00c] */
   2949     RECOMP_FLAGS_IN();
   2950     /* test LO8(eax), LO8(eax) */ /* 0x36088BCF: test al, al */
   2951     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2952     _cf = 0;
   2953     _flag_k = FK_NARROW(FK_TEST, 24);
   2954     if (TEST_Z(_flag_a, _flag_b)) goto L_36088BF7; /* 0x36088BD1: je 0x36088bf7 */
   2955 L_36088BD3:
   2956     edi = MEM32(ebp + (-0x1C)); /* 0x36088BD3: mov edi, dword ptr [ebp - 0x1c] */
   2957     ecx = ebx; /* 0x36088BD6: mov ecx, ebx */
   2958     edx = ecx; /* 0x36088BD8: mov edx, ecx */
   2959     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36088BDA: shr ecx, 2 */
   2960     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2961     ecx = ecx >> 2u; /* 0x36088BDA: shr ecx, 2 */
   2962     esi = 0x361C561Cu; /* 0x36088BDD: mov esi, 0x361c561c */
   2963     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36088BE2: 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; }
   2964     ecx = edx; /* 0x36088BE4: mov ecx, edx */
   2965     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   2966     ecx = ecx & 3; /* 0x36088BE6: and ecx, 3 */
   2967     _cf = 0;
   2968     _flag_k = FK_TEST;
   2969     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36088BE9: 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; }
   2970     eax = MEM32(ebp + (-0x1C)); /* 0x36088BEB: mov eax, dword ptr [ebp - 0x1c] */
   2971     MEM32(ebp + (-0x18)) = ebx; /* 0x36088BEE: mov dword ptr [ebp - 0x18], ebx */
   2972     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36088BF1: mov byte ptr [eax + ebx], 0 */
   2973     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2974     esi = 0; /* 0x36088BF5: xor esi, esi */
   2975     _cf = 0;
   2976     _flag_k = FK_TEST;
   2977 L_36088BF7:
   2978     edi = MEM32(ebp + (-0x10)); /* 0x36088BF7: mov edi, dword ptr [ebp - 0x10] */
   2979     ecx = ebp + (-0x20); /* 0x36088BFA: lea ecx, [ebp - 0x20] */
   2980     PUSH32(esp, ecx); /* 0x36088BFD: push ecx */
   2981     ecx = edi + (-0x8C); /* 0x36088BFE: lea ecx, [edi - 0x8c] */
   2982     MEM32(ebp + (-0x4)) = esi; /* 0x36088C04: mov dword ptr [ebp - 4], esi */
   2983     RECOMP_ICALL(0x3610DEF0u); /* 0x36088C07: call 0x3610def0 */ /* not lifted */
   2984     RECOMP_FLAGS_IN();
   2985     ecx = MEM32(ebp + (-0x1C)); /* 0x36088C0C: mov ecx, dword ptr [ebp - 0x1c] */
   2986     /* cmp ecx, esi */ /* 0x36088C0F: cmp ecx, esi */
   2987     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2988     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2989     _flag_k = FK_CMP;
   2990     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36088C11: mov dword ptr [ebp - 4], 0xffffffff */
   2991     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088C35; /* 0x36088C18: je 0x36088c35 */
   2992 L_36088C1A:
   2993     SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36088C1A: mov al, byte ptr [ecx - 1] */
   2994     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2995     ecx = ecx - 1; /* 0x36088C1D: dec ecx */
   2996     _flag_k = FK_DEC;
   2997     /* test LO8(eax), LO8(eax) */ /* 0x36088C1E: test al, al */
   2998     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2999     _cf = 0;
   3000     _flag_k = FK_NARROW(FK_TEST, 24);
   3001     if (TEST_Z(_flag_a, _flag_b)) goto L_36088C2C; /* 0x36088C20: je 0x36088c2c */
   3002 L_36088C22:
   3003     /* cmp LO8(eax), 0xFFu */ /* 0x36088C22: cmp al, 0xff */
   3004     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3006     _flag_k = FK_NARROW(FK_CMP, 24);
   3007     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088C2C; /* 0x36088C24: je 0x36088c2c */
   3008 L_36088C26:
   3009     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3010     SET_LO8(eax, LO8(eax) - 1); /* 0x36088C26: dec al */
   3011     _flag_k = FK_NARROW(FK_DEC, 24);
   3012     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36088C28: mov byte ptr [ecx], al */
   3013     goto L_36088C35; /* 0x36088C2A: jmp 0x36088c35 */
   3014 L_36088C2C:
   3015     PUSH32(esp, ecx); /* 0x36088C2C: push ecx */
   3016     RECOMP_ICALL(0x3615FCC4u); /* 0x36088C2D: call 0x3615fcc4 */ /* not lifted */
   3017     RECOMP_FLAGS_IN();
   3018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3020     esp = esp + 4; /* 0x36088C32: add esp, 4 */
   3021     _flag_k = FK_ADD;
   3022 L_36088C35:
   3023     edx = MEM32(ebp + 0x8); /* 0x36088C35: mov edx, dword ptr [ebp + 8] */
   3024     PUSH32(esp, edx); /* 0x36088C38: push edx */
   3025     ecx = edi; /* 0x36088C39: mov ecx, edi */
   3026     MEM32(ebp + (-0x1C)) = esi; /* 0x36088C3B: mov dword ptr [ebp - 0x1c], esi */
   3027     MEM32(ebp + (-0x18)) = esi; /* 0x36088C3E: mov dword ptr [ebp - 0x18], esi */
   3028     MEM32(ebp + (-0x14)) = esi; /* 0x36088C41: mov dword ptr [ebp - 0x14], esi */
   3029     RECOMP_ICALL(0x3610DEF0u); /* 0x36088C44: call 0x3610def0 */ /* not lifted */
   3030     RECOMP_FLAGS_IN();
   3031     ecx = MEM32(ebp + (-0xC)); /* 0x36088C49: mov ecx, dword ptr [ebp - 0xc] */
   3032     edi = POP32_VAL(esp); /* 0x36088C4C: pop edi */
   3033     esi = POP32_VAL(esp); /* 0x36088C4D: pop esi */
   3034     ebx = POP32_VAL(esp); /* 0x36088C4E: pop ebx */
   3035     MEM32(FS_BASE + (0)) = ecx; /* 0x36088C4F: mov dword ptr fs:[0], ecx */
   3036     esp = ebp; /* 0x36088C56: mov esp, ebp */
   3037     ebp = POP32_VAL(esp); /* 0x36088C58: pop ebp */
   3038     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088C59: ret 4 */
   3039     RECOMP_REGS_OUT();
   3040 }
   3041 
   3042 void sub_36088C60(void) {
   3043     int _fpu_cmp = 0;
   3044     uint32_t _cf = 0;
   3045     int _df = 1;
   3046     uint32_t _flag_k = FK_NONE;
   3047     uint32_t _flag_a = 0, _flag_b = 0;
   3048     uint32_t _itail_tgt = 0;
   3049     RECOMP_REGS_LOCALS
   3050     RECOMP_ENTER(0x36088C60u);
   3051 
   3052 L_36088C60:
   3053     PUSH32(esp, ebp); /* 0x36088C60: push ebp */
   3054     ebp = esp; /* 0x36088C61: mov ebp, esp */
   3055     PUSH32(esp, 0xFFFFFFFFu); /* 0x36088C63: push -1 */
   3056     PUSH32(esp, 0x36165CE9u); /* 0x36088C65: push 0x36165ce9 */
   3057     eax = MEM32(FS_BASE + (0)); /* 0x36088C6A: mov eax, dword ptr fs:[0] */
   3058     PUSH32(esp, eax); /* 0x36088C70: push eax */
   3059     MEM32(FS_BASE + (0)) = esp; /* 0x36088C71: mov dword ptr fs:[0], esp */
   3060     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3062     esp = esp - 0x14u; /* 0x36088C78: sub esp, 0x14 */
   3063     _flag_k = FK_CMP;
   3064     eax = MEM32(ebp + 0x8); /* 0x36088C7B: mov eax, dword ptr [ebp + 8] */
   3065     PUSH32(esp, eax); /* 0x36088C7E: push eax */
   3066     MEM32(ebp + (-0x10)) = ecx; /* 0x36088C7F: mov dword ptr [ebp - 0x10], ecx */
   3067     RECOMP_ICALL(0x3610DEB0u); /* 0x36088C82: call 0x3610deb0 */ /* not lifted */
   3068     RECOMP_FLAGS_IN();
   3069     /* test LO8(eax), LO8(eax) */ /* 0x36088C87: test al, al */
   3070     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3071     _cf = 0;
   3072     _flag_k = FK_NARROW(FK_TEST, 24);
   3073     if (TEST_NZ(_flag_a, _flag_b)) goto L_36088C9B; /* 0x36088C89: jne 0x36088c9b */
   3074 L_36088C8B:
   3075     ecx = MEM32(ebp + (-0xC)); /* 0x36088C8B: mov ecx, dword ptr [ebp - 0xc] */
   3076     MEM32(FS_BASE + (0)) = ecx; /* 0x36088C8E: mov dword ptr fs:[0], ecx */
   3077     esp = ebp; /* 0x36088C95: mov esp, ebp */
   3078     ebp = POP32_VAL(esp); /* 0x36088C97: pop ebp */
   3079     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088C98: ret 4 */
   3080 L_36088C9B:
   3081     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36088C9B: mov cl, byte ptr [ebp + 0xb] */
   3082     PUSH32(esp, ebx); /* 0x36088C9E: push ebx */
   3083     PUSH32(esp, esi); /* 0x36088C9F: push esi */
   3084     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x36088CA0: mov byte ptr [ebp - 0x20], cl */
   3085     PUSH32(esp, edi); /* 0x36088CA3: push edi */
   3086     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3087     esi = 0; /* 0x36088CA4: xor esi, esi */
   3088     _cf = 0;
   3089     _flag_k = FK_TEST;
   3090     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3091     eax = 0; /* 0x36088CA6: xor eax, eax */
   3092     _cf = 0;
   3093     _flag_k = FK_TEST;
   3094     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3095     ecx = ecx | 0xFFFFFFFFu; /* 0x36088CA8: or ecx, 0xffffffff */
   3096     _cf = 0;
   3097     _flag_k = FK_TEST;
   3098     edi = 0x361C5628u; /* 0x36088CAB: mov edi, 0x361c5628 */
   3099     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; } /* 0x36088CB0: repne scasb al, byte ptr es:[edi] */
   3100     ecx = ~ecx; /* 0x36088CB2: not ecx */
   3101     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3102     ecx = ecx - 1; /* 0x36088CB4: dec ecx */
   3103     _flag_k = FK_DEC;
   3104     ebx = ecx; /* 0x36088CB5: mov ebx, ecx */
   3105     PUSH32(esp, 1); /* 0x36088CB7: push 1 */
   3106     PUSH32(esp, ebx); /* 0x36088CB9: push ebx */
   3107     ecx = ebp + (-0x20); /* 0x36088CBA: lea ecx, [ebp - 0x20] */
   3108     MEM32(ebp + (-0x1C)) = esi; /* 0x36088CBD: mov dword ptr [ebp - 0x1c], esi */
   3109     MEM32(ebp + (-0x18)) = esi; /* 0x36088CC0: mov dword ptr [ebp - 0x18], esi */
   3110     MEM32(ebp + (-0x14)) = esi; /* 0x36088CC3: mov dword ptr [ebp - 0x14], esi */
   3111     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36088CC6: call dword ptr [0x3616f00c] */
   3112     RECOMP_FLAGS_IN();
   3113     /* test LO8(eax), LO8(eax) */ /* 0x36088CCC: test al, al */
   3114     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3115     _cf = 0;
   3116     _flag_k = FK_NARROW(FK_TEST, 24);
   3117     if (TEST_Z(_flag_a, _flag_b)) goto L_36088CF4; /* 0x36088CCE: je 0x36088cf4 */
   3118 L_36088CD0:
   3119     edi = MEM32(ebp + (-0x1C)); /* 0x36088CD0: mov edi, dword ptr [ebp - 0x1c] */
   3120     ecx = ebx; /* 0x36088CD3: mov ecx, ebx */
   3121     edx = ecx; /* 0x36088CD5: mov edx, ecx */
   3122     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36088CD7: shr ecx, 2 */
   3123     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3124     ecx = ecx >> 2u; /* 0x36088CD7: shr ecx, 2 */
   3125     esi = 0x361C5628u; /* 0x36088CDA: mov esi, 0x361c5628 */
   3126     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36088CDF: 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; }
   3127     ecx = edx; /* 0x36088CE1: mov ecx, edx */
   3128     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3129     ecx = ecx & 3; /* 0x36088CE3: and ecx, 3 */
   3130     _cf = 0;
   3131     _flag_k = FK_TEST;
   3132     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36088CE6: 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; }
   3133     eax = MEM32(ebp + (-0x1C)); /* 0x36088CE8: mov eax, dword ptr [ebp - 0x1c] */
   3134     MEM32(ebp + (-0x18)) = ebx; /* 0x36088CEB: mov dword ptr [ebp - 0x18], ebx */
   3135     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36088CEE: mov byte ptr [eax + ebx], 0 */
   3136     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3137     esi = 0; /* 0x36088CF2: xor esi, esi */
   3138     _cf = 0;
   3139     _flag_k = FK_TEST;
   3140 L_36088CF4:
   3141     edx = MEM32(ebp + (-0x10)); /* 0x36088CF4: mov edx, dword ptr [ebp - 0x10] */
   3142     ecx = ebp + (-0x20); /* 0x36088CF7: lea ecx, [ebp - 0x20] */
   3143     PUSH32(esp, ecx); /* 0x36088CFA: push ecx */
   3144     ecx = edx + (-0x8C); /* 0x36088CFB: lea ecx, [edx - 0x8c] */
   3145     MEM32(ebp + (-0x4)) = esi; /* 0x36088D01: mov dword ptr [ebp - 4], esi */
   3146     RECOMP_ICALL(0x3610DEF0u); /* 0x36088D04: call 0x3610def0 */ /* not lifted */
   3147     RECOMP_FLAGS_IN();
   3148     eax = MEM32(ebp + (-0x1C)); /* 0x36088D09: mov eax, dword ptr [ebp - 0x1c] */
   3149     edi = POP32_VAL(esp); /* 0x36088D0C: pop edi */
   3150     /* cmp eax, esi */ /* 0x36088D0D: cmp eax, esi */
   3151     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3153     _flag_k = FK_CMP;
   3154     esi = POP32_VAL(esp); /* 0x36088D0F: pop esi */
   3155     ebx = POP32_VAL(esp); /* 0x36088D10: pop ebx */
   3156     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088D3F; /* 0x36088D11: je 0x36088d3f */
   3157 L_36088D13:
   3158     ecx = eax + (-0x1); /* 0x36088D13: lea ecx, [eax - 1] */
   3159     SET_LO8(eax, MEM8(ecx)); /* 0x36088D16: mov al, byte ptr [ecx] */
   3160     /* test LO8(eax), LO8(eax) */ /* 0x36088D18: test al, al */
   3161     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3162     _cf = 0;
   3163     _flag_k = FK_NARROW(FK_TEST, 24);
   3164     if (TEST_Z(_flag_a, _flag_b)) goto L_36088D36; /* 0x36088D1A: je 0x36088d36 */
   3165 L_36088D1C:
   3166     /* cmp LO8(eax), 0xFFu */ /* 0x36088D1C: cmp al, 0xff */
   3167     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3169     _flag_k = FK_NARROW(FK_CMP, 24);
   3170     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088D36; /* 0x36088D1E: je 0x36088d36 */
   3171 L_36088D20:
   3172     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3173     SET_LO8(eax, LO8(eax) - 1); /* 0x36088D20: dec al */
   3174     _flag_k = FK_NARROW(FK_DEC, 24);
   3175     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36088D22: mov byte ptr [ecx], al */
   3176     SET_LO8(eax, 1); /* 0x36088D24: mov al, 1 */
   3177     ecx = MEM32(ebp + (-0xC)); /* 0x36088D26: mov ecx, dword ptr [ebp - 0xc] */
   3178     MEM32(FS_BASE + (0)) = ecx; /* 0x36088D29: mov dword ptr fs:[0], ecx */
   3179     esp = ebp; /* 0x36088D30: mov esp, ebp */
   3180     ebp = POP32_VAL(esp); /* 0x36088D32: pop ebp */
   3181     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088D33: ret 4 */
   3182 L_36088D36:
   3183     PUSH32(esp, ecx); /* 0x36088D36: push ecx */
   3184     RECOMP_ICALL(0x3615FCC4u); /* 0x36088D37: call 0x3615fcc4 */ /* not lifted */
   3185     RECOMP_FLAGS_IN();
   3186     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3187     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3188     esp = esp + 4; /* 0x36088D3C: add esp, 4 */
   3189     _flag_k = FK_ADD;
   3190 L_36088D3F:
   3191     ecx = MEM32(ebp + (-0xC)); /* 0x36088D3F: mov ecx, dword ptr [ebp - 0xc] */
   3192     SET_LO8(eax, 1); /* 0x36088D42: mov al, 1 */
   3193     MEM32(FS_BASE + (0)) = ecx; /* 0x36088D44: mov dword ptr fs:[0], ecx */
   3194     esp = ebp; /* 0x36088D4B: mov esp, ebp */
   3195     ebp = POP32_VAL(esp); /* 0x36088D4D: pop ebp */
   3196     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088D4E: ret 4 */
   3197     RECOMP_REGS_OUT();
   3198 }
   3199 
   3200 void sub_36088D60(void) {
   3201     int _fpu_cmp = 0;
   3202     uint32_t _cf = 0;
   3203     int _df = 1;
   3204     uint32_t _flag_k = FK_NONE;
   3205     uint32_t _flag_a = 0, _flag_b = 0;
   3206     uint32_t _itail_tgt = 0;
   3207     RECOMP_REGS_LOCALS
   3208     RECOMP_ENTER(0x36088D60u);
   3209 
   3210 L_36088D60:
   3211     PUSH32(esp, ebp); /* 0x36088D60: push ebp */
   3212     ebp = esp; /* 0x36088D61: mov ebp, esp */
   3213     PUSH32(esp, 0xFFFFFFFFu); /* 0x36088D63: push -1 */
   3214     PUSH32(esp, 0x36165D09u); /* 0x36088D65: push 0x36165d09 */
   3215     eax = MEM32(FS_BASE + (0)); /* 0x36088D6A: mov eax, dword ptr fs:[0] */
   3216     PUSH32(esp, eax); /* 0x36088D70: push eax */
   3217     MEM32(FS_BASE + (0)) = esp; /* 0x36088D71: mov dword ptr fs:[0], esp */
   3218     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3219     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3220     esp = esp - 0x14u; /* 0x36088D78: sub esp, 0x14 */
   3221     _flag_k = FK_CMP;
   3222     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36088D7B: mov al, byte ptr [ebp + 0xb] */
   3223     PUSH32(esp, ebx); /* 0x36088D7E: push ebx */
   3224     PUSH32(esp, esi); /* 0x36088D7F: push esi */
   3225     MEM32(ebp + (-0x10)) = ecx; /* 0x36088D80: mov dword ptr [ebp - 0x10], ecx */
   3226     PUSH32(esp, edi); /* 0x36088D83: push edi */
   3227     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3228     ecx = ecx | 0xFFFFFFFFu; /* 0x36088D84: or ecx, 0xffffffff */
   3229     _cf = 0;
   3230     _flag_k = FK_TEST;
   3231     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3232     esi = 0; /* 0x36088D87: xor esi, esi */
   3233     _cf = 0;
   3234     _flag_k = FK_TEST;
   3235     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36088D89: mov byte ptr [ebp - 0x20], al */
   3236     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3237     eax = 0; /* 0x36088D8C: xor eax, eax */
   3238     _cf = 0;
   3239     _flag_k = FK_TEST;
   3240     edi = 0x361C5638u; /* 0x36088D8E: mov edi, 0x361c5638 */
   3241     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; } /* 0x36088D93: repne scasb al, byte ptr es:[edi] */
   3242     ecx = ~ecx; /* 0x36088D95: not ecx */
   3243     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3244     ecx = ecx - 1; /* 0x36088D97: dec ecx */
   3245     _flag_k = FK_DEC;
   3246     ebx = ecx; /* 0x36088D98: mov ebx, ecx */
   3247     PUSH32(esp, 1); /* 0x36088D9A: push 1 */
   3248     PUSH32(esp, ebx); /* 0x36088D9C: push ebx */
   3249     ecx = ebp + (-0x20); /* 0x36088D9D: lea ecx, [ebp - 0x20] */
   3250     MEM32(ebp + (-0x1C)) = esi; /* 0x36088DA0: mov dword ptr [ebp - 0x1c], esi */
   3251     MEM32(ebp + (-0x18)) = esi; /* 0x36088DA3: mov dword ptr [ebp - 0x18], esi */
   3252     MEM32(ebp + (-0x14)) = esi; /* 0x36088DA6: mov dword ptr [ebp - 0x14], esi */
   3253     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36088DA9: call dword ptr [0x3616f00c] */
   3254     RECOMP_FLAGS_IN();
   3255     /* test LO8(eax), LO8(eax) */ /* 0x36088DAF: test al, al */
   3256     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3257     _cf = 0;
   3258     _flag_k = FK_NARROW(FK_TEST, 24);
   3259     if (TEST_Z(_flag_a, _flag_b)) goto L_36088DD7; /* 0x36088DB1: je 0x36088dd7 */
   3260 L_36088DB3:
   3261     edi = MEM32(ebp + (-0x1C)); /* 0x36088DB3: mov edi, dword ptr [ebp - 0x1c] */
   3262     ecx = ebx; /* 0x36088DB6: mov ecx, ebx */
   3263     edx = ecx; /* 0x36088DB8: mov edx, ecx */
   3264     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36088DBA: shr ecx, 2 */
   3265     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3266     ecx = ecx >> 2u; /* 0x36088DBA: shr ecx, 2 */
   3267     esi = 0x361C5638u; /* 0x36088DBD: mov esi, 0x361c5638 */
   3268     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36088DC2: 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; }
   3269     ecx = edx; /* 0x36088DC4: mov ecx, edx */
   3270     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3271     ecx = ecx & 3; /* 0x36088DC6: and ecx, 3 */
   3272     _cf = 0;
   3273     _flag_k = FK_TEST;
   3274     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36088DC9: 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; }
   3275     eax = MEM32(ebp + (-0x1C)); /* 0x36088DCB: mov eax, dword ptr [ebp - 0x1c] */
   3276     MEM32(ebp + (-0x18)) = ebx; /* 0x36088DCE: mov dword ptr [ebp - 0x18], ebx */
   3277     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36088DD1: mov byte ptr [eax + ebx], 0 */
   3278     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3279     esi = 0; /* 0x36088DD5: xor esi, esi */
   3280     _cf = 0;
   3281     _flag_k = FK_TEST;
   3282 L_36088DD7:
   3283     edi = MEM32(ebp + 0x8); /* 0x36088DD7: mov edi, dword ptr [ebp + 8] */
   3284     edx = MEM32(edi); /* 0x36088DDA: mov edx, dword ptr [edi] */
   3285     eax = ebp + (-0x20); /* 0x36088DDC: lea eax, [ebp - 0x20] */
   3286     PUSH32(esp, eax); /* 0x36088DDF: push eax */
   3287     ecx = edi; /* 0x36088DE0: mov ecx, edi */
   3288     MEM32(ebp + (-0x4)) = esi; /* 0x36088DE2: mov dword ptr [ebp - 4], esi */
   3289     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36088DE5: call dword ptr [edx + 8] */
   3290     RECOMP_FLAGS_IN();
   3291     eax = MEM32(ebp + (-0x1C)); /* 0x36088DE8: mov eax, dword ptr [ebp - 0x1c] */
   3292     /* cmp eax, esi */ /* 0x36088DEB: cmp eax, esi */
   3293     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3295     _flag_k = FK_CMP;
   3296     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36088DED: mov dword ptr [ebp - 4], 0xffffffff */
   3297     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088E12; /* 0x36088DF4: je 0x36088e12 */
   3298 L_36088DF6:
   3299     ecx = eax + (-0x1); /* 0x36088DF6: lea ecx, [eax - 1] */
   3300     SET_LO8(eax, MEM8(ecx)); /* 0x36088DF9: mov al, byte ptr [ecx] */
   3301     /* test LO8(eax), LO8(eax) */ /* 0x36088DFB: test al, al */
   3302     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3303     _cf = 0;
   3304     _flag_k = FK_NARROW(FK_TEST, 24);
   3305     if (TEST_Z(_flag_a, _flag_b)) goto L_36088E09; /* 0x36088DFD: je 0x36088e09 */
   3306 L_36088DFF:
   3307     /* cmp LO8(eax), 0xFFu */ /* 0x36088DFF: cmp al, 0xff */
   3308     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3309     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3310     _flag_k = FK_NARROW(FK_CMP, 24);
   3311     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088E09; /* 0x36088E01: je 0x36088e09 */
   3312 L_36088E03:
   3313     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3314     SET_LO8(eax, LO8(eax) - 1); /* 0x36088E03: dec al */
   3315     _flag_k = FK_NARROW(FK_DEC, 24);
   3316     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36088E05: mov byte ptr [ecx], al */
   3317     goto L_36088E12; /* 0x36088E07: jmp 0x36088e12 */
   3318 L_36088E09:
   3319     PUSH32(esp, ecx); /* 0x36088E09: push ecx */
   3320     RECOMP_ICALL(0x3615FCC4u); /* 0x36088E0A: call 0x3615fcc4 */ /* not lifted */
   3321     RECOMP_FLAGS_IN();
   3322     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3323     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3324     esp = esp + 4; /* 0x36088E0F: add esp, 4 */
   3325     _flag_k = FK_ADD;
   3326 L_36088E12:
   3327     ecx = MEM32(ebp + (-0x10)); /* 0x36088E12: mov ecx, dword ptr [ebp - 0x10] */
   3328     edx = MEM32(ecx); /* 0x36088E15: mov edx, dword ptr [ecx] */
   3329     PUSH32(esp, edi); /* 0x36088E17: push edi */
   3330     MEM32(ebp + (-0x1C)) = esi; /* 0x36088E18: mov dword ptr [ebp - 0x1c], esi */
   3331     MEM32(ebp + (-0x18)) = esi; /* 0x36088E1B: mov dword ptr [ebp - 0x18], esi */
   3332     MEM32(ebp + (-0x14)) = esi; /* 0x36088E1E: mov dword ptr [ebp - 0x14], esi */
   3333     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36088E21: call dword ptr [edx + 4] */
   3334     RECOMP_FLAGS_IN();
   3335     ecx = MEM32(ebp + (-0xC)); /* 0x36088E24: mov ecx, dword ptr [ebp - 0xc] */
   3336     edi = POP32_VAL(esp); /* 0x36088E27: pop edi */
   3337     esi = POP32_VAL(esp); /* 0x36088E28: pop esi */
   3338     ebx = POP32_VAL(esp); /* 0x36088E29: pop ebx */
   3339     MEM32(FS_BASE + (0)) = ecx; /* 0x36088E2A: mov dword ptr fs:[0], ecx */
   3340     esp = ebp; /* 0x36088E31: mov esp, ebp */
   3341     ebp = POP32_VAL(esp); /* 0x36088E33: pop ebp */
   3342     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088E34: ret 4 */
   3343     RECOMP_REGS_OUT();
   3344 }
   3345 
   3346 void sub_36088E40(void) {
   3347     int _fpu_cmp = 0;
   3348     uint32_t _cf = 0;
   3349     int _df = 1;
   3350     uint32_t _flag_k = FK_NONE;
   3351     uint32_t _flag_a = 0, _flag_b = 0;
   3352     uint32_t _itail_tgt = 0;
   3353     RECOMP_REGS_LOCALS
   3354     RECOMP_ENTER(0x36088E40u);
   3355 
   3356 L_36088E40:
   3357     PUSH32(esp, ebp); /* 0x36088E40: push ebp */
   3358     ebp = esp; /* 0x36088E41: mov ebp, esp */
   3359     PUSH32(esp, 0xFFFFFFFFu); /* 0x36088E43: push -1 */
   3360     PUSH32(esp, 0x36165D29u); /* 0x36088E45: push 0x36165d29 */
   3361     eax = MEM32(FS_BASE + (0)); /* 0x36088E4A: mov eax, dword ptr fs:[0] */
   3362     PUSH32(esp, eax); /* 0x36088E50: push eax */
   3363     MEM32(FS_BASE + (0)) = esp; /* 0x36088E51: mov dword ptr fs:[0], esp */
   3364     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3365     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3366     esp = esp - 0x10u; /* 0x36088E58: sub esp, 0x10 */
   3367     _flag_k = FK_CMP;
   3368     PUSH32(esp, ebx); /* 0x36088E5B: push ebx */
   3369     PUSH32(esp, esi); /* 0x36088E5C: push esi */
   3370     esi = MEM32(ebp + 0x8); /* 0x36088E5D: mov esi, dword ptr [ebp + 8] */
   3371     PUSH32(esp, edi); /* 0x36088E60: push edi */
   3372     PUSH32(esp, esi); /* 0x36088E61: push esi */
   3373     RECOMP_ICALL(0x3610DEF0u); /* 0x36088E62: call 0x3610def0 */ /* not lifted */
   3374     RECOMP_FLAGS_IN();
   3375     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36088E67: mov al, byte ptr [ebp + 0xb] */
   3376     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3377     ecx = ecx | 0xFFFFFFFFu; /* 0x36088E6A: or ecx, 0xffffffff */
   3378     _cf = 0;
   3379     _flag_k = FK_TEST;
   3380     MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x36088E6D: mov byte ptr [ebp - 0x1c], al */
   3381     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3382     eax = 0; /* 0x36088E70: xor eax, eax */
   3383     _cf = 0;
   3384     _flag_k = FK_TEST;
   3385     edi = 0x361C5648u; /* 0x36088E72: mov edi, 0x361c5648 */
   3386     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; } /* 0x36088E77: repne scasb al, byte ptr es:[edi] */
   3387     ecx = ~ecx; /* 0x36088E79: not ecx */
   3388     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3389     ecx = ecx - 1; /* 0x36088E7B: dec ecx */
   3390     _flag_k = FK_DEC;
   3391     ebx = ecx; /* 0x36088E7C: mov ebx, ecx */
   3392     PUSH32(esp, 1); /* 0x36088E7E: push 1 */
   3393     PUSH32(esp, ebx); /* 0x36088E80: push ebx */
   3394     ecx = ebp + (-0x1C); /* 0x36088E81: lea ecx, [ebp - 0x1c] */
   3395     MEM32(ebp + (-0x18)) = eax; /* 0x36088E84: mov dword ptr [ebp - 0x18], eax */
   3396     MEM32(ebp + (-0x14)) = eax; /* 0x36088E87: mov dword ptr [ebp - 0x14], eax */
   3397     MEM32(ebp + (-0x10)) = eax; /* 0x36088E8A: mov dword ptr [ebp - 0x10], eax */
   3398     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36088E8D: call dword ptr [0x3616f00c] */
   3399     RECOMP_FLAGS_IN();
   3400     /* test LO8(eax), LO8(eax) */ /* 0x36088E93: test al, al */
   3401     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3402     _cf = 0;
   3403     _flag_k = FK_NARROW(FK_TEST, 24);
   3404     if (TEST_Z(_flag_a, _flag_b)) goto L_36088EBC; /* 0x36088E95: je 0x36088ebc */
   3405 L_36088E97:
   3406     edi = MEM32(ebp + (-0x18)); /* 0x36088E97: mov edi, dword ptr [ebp - 0x18] */
   3407     ecx = ebx; /* 0x36088E9A: mov ecx, ebx */
   3408     edx = ecx; /* 0x36088E9C: mov edx, ecx */
   3409     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36088E9E: shr ecx, 2 */
   3410     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3411     ecx = ecx >> 2u; /* 0x36088E9E: shr ecx, 2 */
   3412     esi = 0x361C5648u; /* 0x36088EA1: mov esi, 0x361c5648 */
   3413     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36088EA6: 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; }
   3414     ecx = edx; /* 0x36088EA8: mov ecx, edx */
   3415     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3416     ecx = ecx & 3; /* 0x36088EAA: and ecx, 3 */
   3417     _cf = 0;
   3418     _flag_k = FK_TEST;
   3419     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36088EAD: 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; }
   3420     eax = MEM32(ebp + (-0x18)); /* 0x36088EAF: mov eax, dword ptr [ebp - 0x18] */
   3421     esi = MEM32(ebp + 0x8); /* 0x36088EB2: mov esi, dword ptr [ebp + 8] */
   3422     MEM32(ebp + (-0x14)) = ebx; /* 0x36088EB5: mov dword ptr [ebp - 0x14], ebx */
   3423     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36088EB8: mov byte ptr [eax + ebx], 0 */
   3424 L_36088EBC:
   3425     edx = MEM32(esi); /* 0x36088EBC: mov edx, dword ptr [esi] */
   3426     eax = ebp + (-0x1C); /* 0x36088EBE: lea eax, [ebp - 0x1c] */
   3427     PUSH32(esp, eax); /* 0x36088EC1: push eax */
   3428     ecx = esi; /* 0x36088EC2: mov ecx, esi */
   3429     MEM32(ebp + (-0x4)) = 0; /* 0x36088EC4: mov dword ptr [ebp - 4], 0 */
   3430     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x36088ECB: call dword ptr [edx + 0x20] */
   3431     RECOMP_FLAGS_IN();
   3432     eax = MEM32(ebp + (-0x18)); /* 0x36088ECE: mov eax, dword ptr [ebp - 0x18] */
   3433     /* test eax, eax */ /* 0x36088ED1: test eax, eax */
   3434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3435     _cf = 0;
   3436     _flag_k = FK_TEST;
   3437     edi = POP32_VAL(esp); /* 0x36088ED3: pop edi */
   3438     esi = POP32_VAL(esp); /* 0x36088ED4: pop esi */
   3439     ebx = POP32_VAL(esp); /* 0x36088ED5: pop ebx */
   3440     if (TEST_Z(_flag_a, _flag_b)) goto L_36088F02; /* 0x36088ED6: je 0x36088f02 */
   3441 L_36088ED8:
   3442     ecx = eax + (-0x1); /* 0x36088ED8: lea ecx, [eax - 1] */
   3443     SET_LO8(eax, MEM8(ecx)); /* 0x36088EDB: mov al, byte ptr [ecx] */
   3444     /* test LO8(eax), LO8(eax) */ /* 0x36088EDD: test al, al */
   3445     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3446     _cf = 0;
   3447     _flag_k = FK_NARROW(FK_TEST, 24);
   3448     if (TEST_Z(_flag_a, _flag_b)) goto L_36088EF9; /* 0x36088EDF: je 0x36088ef9 */
   3449 L_36088EE1:
   3450     /* cmp LO8(eax), 0xFFu */ /* 0x36088EE1: cmp al, 0xff */
   3451     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3453     _flag_k = FK_NARROW(FK_CMP, 24);
   3454     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088EF9; /* 0x36088EE3: je 0x36088ef9 */
   3455 L_36088EE5:
   3456     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3457     SET_LO8(eax, LO8(eax) - 1); /* 0x36088EE5: dec al */
   3458     _flag_k = FK_NARROW(FK_DEC, 24);
   3459     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36088EE7: mov byte ptr [ecx], al */
   3460     ecx = MEM32(ebp + (-0xC)); /* 0x36088EE9: mov ecx, dword ptr [ebp - 0xc] */
   3461     MEM32(FS_BASE + (0)) = ecx; /* 0x36088EEC: mov dword ptr fs:[0], ecx */
   3462     esp = ebp; /* 0x36088EF3: mov esp, ebp */
   3463     ebp = POP32_VAL(esp); /* 0x36088EF5: pop ebp */
   3464     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088EF6: ret 4 */
   3465 L_36088EF9:
   3466     PUSH32(esp, ecx); /* 0x36088EF9: push ecx */
   3467     RECOMP_ICALL(0x3615FCC4u); /* 0x36088EFA: call 0x3615fcc4 */ /* not lifted */
   3468     RECOMP_FLAGS_IN();
   3469     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3470     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3471     esp = esp + 4; /* 0x36088EFF: add esp, 4 */
   3472     _flag_k = FK_ADD;
   3473 L_36088F02:
   3474     ecx = MEM32(ebp + (-0xC)); /* 0x36088F02: mov ecx, dword ptr [ebp - 0xc] */
   3475     MEM32(FS_BASE + (0)) = ecx; /* 0x36088F05: mov dword ptr fs:[0], ecx */
   3476     esp = ebp; /* 0x36088F0C: mov esp, ebp */
   3477     ebp = POP32_VAL(esp); /* 0x36088F0E: pop ebp */
   3478     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36088F0F: ret 4 */
   3479     RECOMP_REGS_OUT();
   3480 }
   3481 
   3482 void sub_36088F20(void) {
   3483     int _fpu_cmp = 0;
   3484     uint32_t _cf = 0;
   3485     int _df = 1;
   3486     uint32_t _flag_k = FK_NONE;
   3487     uint32_t _flag_a = 0, _flag_b = 0;
   3488     uint32_t _itail_tgt = 0;
   3489     RECOMP_REGS_LOCALS
   3490     RECOMP_ENTER(0x36088F20u);
   3491 
   3492 L_36088F20:
   3493     PUSH32(esp, ebp); /* 0x36088F20: push ebp */
   3494     ebp = esp; /* 0x36088F21: mov ebp, esp */
   3495     PUSH32(esp, 0xFFFFFFFFu); /* 0x36088F23: push -1 */
   3496     PUSH32(esp, 0x36165D52u); /* 0x36088F25: push 0x36165d52 */
   3497     eax = MEM32(FS_BASE + (0)); /* 0x36088F2A: mov eax, dword ptr fs:[0] */
   3498     PUSH32(esp, eax); /* 0x36088F30: push eax */
   3499     MEM32(FS_BASE + (0)) = esp; /* 0x36088F31: mov dword ptr fs:[0], esp */
   3500     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   3501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3502     esp = esp - 0x24u; /* 0x36088F38: sub esp, 0x24 */
   3503     _flag_k = FK_CMP;
   3504     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36088F3B: mov al, byte ptr [ebp + 0xb] */
   3505     PUSH32(esp, ebx); /* 0x36088F3E: push ebx */
   3506     PUSH32(esp, esi); /* 0x36088F3F: push esi */
   3507     esi = ecx; /* 0x36088F40: mov esi, ecx */
   3508     PUSH32(esp, edi); /* 0x36088F42: push edi */
   3509     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3510     ecx = ecx | 0xFFFFFFFFu; /* 0x36088F43: or ecx, 0xffffffff */
   3511     _cf = 0;
   3512     _flag_k = FK_TEST;
   3513     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36088F46: mov byte ptr [ebp - 0x20], al */
   3514     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3515     eax = 0; /* 0x36088F49: xor eax, eax */
   3516     _cf = 0;
   3517     _flag_k = FK_TEST;
   3518     edi = 0x361C566Cu; /* 0x36088F4B: mov edi, 0x361c566c */
   3519     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; } /* 0x36088F50: repne scasb al, byte ptr es:[edi] */
   3520     ecx = ~ecx; /* 0x36088F52: not ecx */
   3521     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3522     ecx = ecx - 1; /* 0x36088F54: dec ecx */
   3523     _flag_k = FK_DEC;
   3524     ebx = ecx; /* 0x36088F55: mov ebx, ecx */
   3525     PUSH32(esp, 1); /* 0x36088F57: push 1 */
   3526     PUSH32(esp, ebx); /* 0x36088F59: push ebx */
   3527     ecx = ebp + (-0x20); /* 0x36088F5A: lea ecx, [ebp - 0x20] */
   3528     MEM32(ebp + (-0x10)) = esi; /* 0x36088F5D: mov dword ptr [ebp - 0x10], esi */
   3529     MEM32(ebp + (-0x1C)) = eax; /* 0x36088F60: mov dword ptr [ebp - 0x1c], eax */
   3530     MEM32(ebp + (-0x18)) = eax; /* 0x36088F63: mov dword ptr [ebp - 0x18], eax */
   3531     MEM32(ebp + (-0x14)) = eax; /* 0x36088F66: mov dword ptr [ebp - 0x14], eax */
   3532     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36088F69: call dword ptr [0x3616f00c] */
   3533     RECOMP_FLAGS_IN();
   3534     /* test LO8(eax), LO8(eax) */ /* 0x36088F6F: test al, al */
   3535     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3536     _cf = 0;
   3537     _flag_k = FK_NARROW(FK_TEST, 24);
   3538     if (TEST_Z(_flag_a, _flag_b)) goto L_36088F98; /* 0x36088F71: je 0x36088f98 */
   3539 L_36088F73:
   3540     edi = MEM32(ebp + (-0x1C)); /* 0x36088F73: mov edi, dword ptr [ebp - 0x1c] */
   3541     ecx = ebx; /* 0x36088F76: mov ecx, ebx */
   3542     edx = ecx; /* 0x36088F78: mov edx, ecx */
   3543     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36088F7A: shr ecx, 2 */
   3544     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3545     ecx = ecx >> 2u; /* 0x36088F7A: shr ecx, 2 */
   3546     esi = 0x361C566Cu; /* 0x36088F7D: mov esi, 0x361c566c */
   3547     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36088F82: 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; }
   3548     ecx = edx; /* 0x36088F84: mov ecx, edx */
   3549     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3550     ecx = ecx & 3; /* 0x36088F86: and ecx, 3 */
   3551     _cf = 0;
   3552     _flag_k = FK_TEST;
   3553     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36088F89: 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; }
   3554     PUSH32(esp, ebx); /* 0x36088F8B: push ebx */
   3555     ecx = ebp + (-0x20); /* 0x36088F8C: lea ecx, [ebp - 0x20] */
   3556     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36088F8F: call dword ptr [0x3616f044] */
   3557     RECOMP_FLAGS_IN();
   3558     esi = MEM32(ebp + (-0x10)); /* 0x36088F95: mov esi, dword ptr [ebp - 0x10] */
   3559 L_36088F98:
   3560     eax = ebp + (-0x20); /* 0x36088F98: lea eax, [ebp - 0x20] */
   3561     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3562     edi = 0; /* 0x36088F9B: xor edi, edi */
   3563     _cf = 0;
   3564     _flag_k = FK_TEST;
   3565     PUSH32(esp, eax); /* 0x36088F9D: push eax */
   3566     ecx = esi; /* 0x36088F9E: mov ecx, esi */
   3567     MEM32(ebp + (-0x4)) = edi; /* 0x36088FA0: mov dword ptr [ebp - 4], edi */
   3568     RECOMP_ICALL(0x3610DEF0u); /* 0x36088FA3: call 0x3610def0 */ /* not lifted */
   3569     RECOMP_FLAGS_IN();
   3570     eax = MEM32(ebp + (-0x1C)); /* 0x36088FA8: mov eax, dword ptr [ebp - 0x1c] */
   3571     /* cmp eax, edi */ /* 0x36088FAB: cmp eax, edi */
   3572     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3574     _flag_k = FK_CMP;
   3575     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36088FAD: mov dword ptr [ebp - 4], 0xffffffff */
   3576     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088FD2; /* 0x36088FB4: je 0x36088fd2 */
   3577 L_36088FB6:
   3578     ecx = eax + (-0x1); /* 0x36088FB6: lea ecx, [eax - 1] */
   3579     SET_LO8(eax, MEM8(ecx)); /* 0x36088FB9: mov al, byte ptr [ecx] */
   3580     /* test LO8(eax), LO8(eax) */ /* 0x36088FBB: test al, al */
   3581     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3582     _cf = 0;
   3583     _flag_k = FK_NARROW(FK_TEST, 24);
   3584     if (TEST_Z(_flag_a, _flag_b)) goto L_36088FC9; /* 0x36088FBD: je 0x36088fc9 */
   3585 L_36088FBF:
   3586     /* cmp LO8(eax), 0xFFu */ /* 0x36088FBF: cmp al, 0xff */
   3587     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3589     _flag_k = FK_NARROW(FK_CMP, 24);
   3590     if (CMP_EQ(_flag_a, _flag_b)) goto L_36088FC9; /* 0x36088FC1: je 0x36088fc9 */
   3591 L_36088FC3:
   3592     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3593     SET_LO8(eax, LO8(eax) - 1); /* 0x36088FC3: dec al */
   3594     _flag_k = FK_NARROW(FK_DEC, 24);
   3595     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36088FC5: mov byte ptr [ecx], al */
   3596     goto L_36088FD2; /* 0x36088FC7: jmp 0x36088fd2 */
   3597 L_36088FC9:
   3598     PUSH32(esp, ecx); /* 0x36088FC9: push ecx */
   3599     RECOMP_ICALL(0x3615FCC4u); /* 0x36088FCA: call 0x3615fcc4 */ /* not lifted */
   3600     RECOMP_FLAGS_IN();
   3601     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3603     esp = esp + 4; /* 0x36088FCF: add esp, 4 */
   3604     _flag_k = FK_ADD;
   3605 L_36088FD2:
   3606     ecx = MEM32(ebp + 0x8); /* 0x36088FD2: mov ecx, dword ptr [ebp + 8] */
   3607     PUSH32(esp, ecx); /* 0x36088FD5: push ecx */
   3608     ecx = esi; /* 0x36088FD6: mov ecx, esi */
   3609     RECOMP_ICALL(0x3609D970u); /* 0x36088FD8: call 0x3609d970 */ /* not lifted */
   3610     RECOMP_FLAGS_IN();
   3611     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x36088FDD: mov dl, byte ptr [ebp + 0xb] */
   3612     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3613     ecx = ecx | 0xFFFFFFFFu; /* 0x36088FE0: or ecx, 0xffffffff */
   3614     _cf = 0;
   3615     _flag_k = FK_TEST;
   3616     MEM32(ebp + (-0x2C)) = edi; /* 0x36088FE3: mov dword ptr [ebp - 0x2c], edi */
   3617     MEM32(ebp + (-0x28)) = edi; /* 0x36088FE6: mov dword ptr [ebp - 0x28], edi */
   3618     MEM32(ebp + (-0x24)) = edi; /* 0x36088FE9: mov dword ptr [ebp - 0x24], edi */
   3619     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3620     eax = 0; /* 0x36088FEC: xor eax, eax */
   3621     _cf = 0;
   3622     _flag_k = FK_TEST;
   3623     edi = 0x361C5654u; /* 0x36088FEE: mov edi, 0x361c5654 */
   3624     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; } /* 0x36088FF3: repne scasb al, byte ptr es:[edi] */
   3625     ecx = ~ecx; /* 0x36088FF5: not ecx */
   3626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3627     ecx = ecx - 1; /* 0x36088FF7: dec ecx */
   3628     _flag_k = FK_DEC;
   3629     ebx = ecx; /* 0x36088FF8: mov ebx, ecx */
   3630     PUSH32(esp, 1); /* 0x36088FFA: push 1 */
   3631     PUSH32(esp, ebx); /* 0x36088FFC: push ebx */
   3632     ecx = ebp + (-0x30); /* 0x36088FFD: lea ecx, [ebp - 0x30] */
   3633     MEM8(ebp + (-0x30)) = (uint8_t)(LO8(edx)); /* 0x36089000: mov byte ptr [ebp - 0x30], dl */
   3634     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36089003: call dword ptr [0x3616f00c] */
   3635     RECOMP_FLAGS_IN();
   3636     /* test LO8(eax), LO8(eax) */ /* 0x36089009: test al, al */
   3637     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3638     _cf = 0;
   3639     _flag_k = FK_NARROW(FK_TEST, 24);
   3640     if (TEST_Z(_flag_a, _flag_b)) goto L_36089032; /* 0x3608900B: je 0x36089032 */
   3641 L_3608900D:
   3642     edi = MEM32(ebp + (-0x2C)); /* 0x3608900D: mov edi, dword ptr [ebp - 0x2c] */
   3643     ecx = ebx; /* 0x36089010: mov ecx, ebx */
   3644     eax = ecx; /* 0x36089012: mov eax, ecx */
   3645     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36089014: shr ecx, 2 */
   3646     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3647     ecx = ecx >> 2u; /* 0x36089014: shr ecx, 2 */
   3648     esi = 0x361C5654u; /* 0x36089017: mov esi, 0x361c5654 */
   3649     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3608901C: 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; }
   3650     ecx = eax; /* 0x3608901E: mov ecx, eax */
   3651     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3652     ecx = ecx & 3; /* 0x36089020: and ecx, 3 */
   3653     _cf = 0;
   3654     _flag_k = FK_TEST;
   3655     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36089023: 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; }
   3656     PUSH32(esp, ebx); /* 0x36089025: push ebx */
   3657     ecx = ebp + (-0x30); /* 0x36089026: lea ecx, [ebp - 0x30] */
   3658     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36089029: call dword ptr [0x3616f044] */
   3659     RECOMP_FLAGS_IN();
   3660     esi = MEM32(ebp + (-0x10)); /* 0x3608902F: mov esi, dword ptr [ebp - 0x10] */
   3661 L_36089032:
   3662     ecx = ebp + (-0x30); /* 0x36089032: lea ecx, [ebp - 0x30] */
   3663     PUSH32(esp, ecx); /* 0x36089035: push ecx */
   3664     ecx = esi; /* 0x36089036: mov ecx, esi */
   3665     MEM32(ebp + (-0x4)) = 1; /* 0x36089038: mov dword ptr [ebp - 4], 1 */
   3666     RECOMP_ICALL(0x3610DEF0u); /* 0x3608903F: call 0x3610def0 */ /* not lifted */
   3667     RECOMP_FLAGS_IN();
   3668     eax = MEM32(ebp + (-0x2C)); /* 0x36089044: mov eax, dword ptr [ebp - 0x2c] */
   3669     /* test eax, eax */ /* 0x36089047: test eax, eax */
   3670     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3671     _cf = 0;
   3672     _flag_k = FK_TEST;
   3673     edi = POP32_VAL(esp); /* 0x36089049: pop edi */
   3674     esi = POP32_VAL(esp); /* 0x3608904A: pop esi */
   3675     ebx = POP32_VAL(esp); /* 0x3608904B: pop ebx */
   3676     if (TEST_Z(_flag_a, _flag_b)) goto L_36089078; /* 0x3608904C: je 0x36089078 */
   3677 L_3608904E:
   3678     ecx = eax + (-0x1); /* 0x3608904E: lea ecx, [eax - 1] */
   3679     SET_LO8(eax, MEM8(ecx)); /* 0x36089051: mov al, byte ptr [ecx] */
   3680     /* test LO8(eax), LO8(eax) */ /* 0x36089053: test al, al */
   3681     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3682     _cf = 0;
   3683     _flag_k = FK_NARROW(FK_TEST, 24);
   3684     if (TEST_Z(_flag_a, _flag_b)) goto L_3608906F; /* 0x36089055: je 0x3608906f */
   3685 L_36089057:
   3686     /* cmp LO8(eax), 0xFFu */ /* 0x36089057: cmp al, 0xff */
   3687     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   3688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3689     _flag_k = FK_NARROW(FK_CMP, 24);
   3690     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608906F; /* 0x36089059: je 0x3608906f */
   3691 L_3608905B:
   3692     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   3693     SET_LO8(eax, LO8(eax) - 1); /* 0x3608905B: dec al */
   3694     _flag_k = FK_NARROW(FK_DEC, 24);
   3695     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3608905D: mov byte ptr [ecx], al */
   3696     ecx = MEM32(ebp + (-0xC)); /* 0x3608905F: mov ecx, dword ptr [ebp - 0xc] */
   3697     MEM32(FS_BASE + (0)) = ecx; /* 0x36089062: mov dword ptr fs:[0], ecx */
   3698     esp = ebp; /* 0x36089069: mov esp, ebp */
   3699     ebp = POP32_VAL(esp); /* 0x3608906B: pop ebp */
   3700     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608906C: ret 4 */
   3701 L_3608906F:
   3702     PUSH32(esp, ecx); /* 0x3608906F: push ecx */
   3703     RECOMP_ICALL(0x3615FCC4u); /* 0x36089070: call 0x3615fcc4 */ /* not lifted */
   3704     RECOMP_FLAGS_IN();
   3705     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3706     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3707     esp = esp + 4; /* 0x36089075: add esp, 4 */
   3708     _flag_k = FK_ADD;
   3709 L_36089078:
   3710     ecx = MEM32(ebp + (-0xC)); /* 0x36089078: mov ecx, dword ptr [ebp - 0xc] */
   3711     MEM32(FS_BASE + (0)) = ecx; /* 0x3608907B: mov dword ptr fs:[0], ecx */
   3712     esp = ebp; /* 0x36089082: mov esp, ebp */
   3713     ebp = POP32_VAL(esp); /* 0x36089084: pop ebp */
   3714     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36089085: ret 4 */
   3715     RECOMP_REGS_OUT();
   3716 }
   3717 
   3718 void sub_36089090(void) {
   3719     int _fpu_cmp = 0;
   3720     uint32_t _cf = 0;
   3721     int _df = 1;
   3722     uint32_t _flag_k = FK_NONE;
   3723     uint32_t _flag_a = 0, _flag_b = 0;
   3724     uint32_t _itail_tgt = 0;
   3725     RECOMP_REGS_LOCALS
   3726     RECOMP_ENTER(0x36089090u);
   3727 
   3728     goto L_36089090;
   3729 L_360888A0:
   3730     PUSH32(esp, ebp); /* 0x360888A0: push ebp */
   3731     ebp = esp; /* 0x360888A1: mov ebp, esp */
   3732     PUSH32(esp, esi); /* 0x360888A3: push esi */
   3733     esi = ecx; /* 0x360888A4: mov esi, ecx */
   3734     RECOMP_ICALL(0x36088990u); /* 0x360888A6: call 0x36088990 */ /* not lifted */
   3735     RECOMP_FLAGS_IN();
   3736     /* test MEM8(ebp + 0x8), 1 */ /* 0x360888AB: test byte ptr [ebp + 8], 1 */
   3737     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3738     _cf = 0;
   3739     _flag_k = FK_NARROW(FK_TEST, 24);
   3740     if (TEST_Z(_flag_a, _flag_b)) goto L_360888BA; /* 0x360888AF: je 0x360888ba */
   3741 L_360888B1:
   3742     PUSH32(esp, esi); /* 0x360888B1: push esi */
   3743     RECOMP_ICALL(0x3615FCC4u); /* 0x360888B2: call 0x3615fcc4 */ /* not lifted */
   3744     RECOMP_FLAGS_IN();
   3745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3747     esp = esp + 4; /* 0x360888B7: add esp, 4 */
   3748     _flag_k = FK_ADD;
   3749 L_360888BA:
   3750     eax = esi; /* 0x360888BA: mov eax, esi */
   3751     esi = POP32_VAL(esp); /* 0x360888BC: pop esi */
   3752     ebp = POP32_VAL(esp); /* 0x360888BD: pop ebp */
   3753     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360888BE: ret 4 */
   3754 L_36089090:
   3755     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   3756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3757     ecx = ecx - 8; /* 0x36089090: sub ecx, 8 */
   3758     _flag_k = FK_CMP;
   3759     RECOMP_BACKEDGE();
   3760     goto L_360888A0; /* 0x36089093: jmp 0x360888a0 */
   3761     { RECOMP_REGS_OUT(); return; } /* end of function */
   3762     RECOMP_REGS_OUT();
   3763 }
   3764 
   3765 void sub_360890A0(void) {
   3766     int _fpu_cmp = 0;
   3767     uint32_t _cf = 0;
   3768     int _df = 1;
   3769     uint32_t _flag_k = FK_NONE;
   3770     uint32_t _flag_a = 0, _flag_b = 0;
   3771     uint32_t _itail_tgt = 0;
   3772     RECOMP_REGS_LOCALS
   3773     RECOMP_ENTER(0x360890A0u);
   3774 
   3775     goto L_360890A0;
   3776 L_360888A0:
   3777     PUSH32(esp, ebp); /* 0x360888A0: push ebp */
   3778     ebp = esp; /* 0x360888A1: mov ebp, esp */
   3779     PUSH32(esp, esi); /* 0x360888A3: push esi */
   3780     esi = ecx; /* 0x360888A4: mov esi, ecx */
   3781     RECOMP_ICALL(0x36088990u); /* 0x360888A6: call 0x36088990 */ /* not lifted */
   3782     RECOMP_FLAGS_IN();
   3783     /* test MEM8(ebp + 0x8), 1 */ /* 0x360888AB: test byte ptr [ebp + 8], 1 */
   3784     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3785     _cf = 0;
   3786     _flag_k = FK_NARROW(FK_TEST, 24);
   3787     if (TEST_Z(_flag_a, _flag_b)) goto L_360888BA; /* 0x360888AF: je 0x360888ba */
   3788 L_360888B1:
   3789     PUSH32(esp, esi); /* 0x360888B1: push esi */
   3790     RECOMP_ICALL(0x3615FCC4u); /* 0x360888B2: call 0x3615fcc4 */ /* not lifted */
   3791     RECOMP_FLAGS_IN();
   3792     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3793     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3794     esp = esp + 4; /* 0x360888B7: add esp, 4 */
   3795     _flag_k = FK_ADD;
   3796 L_360888BA:
   3797     eax = esi; /* 0x360888BA: mov eax, esi */
   3798     esi = POP32_VAL(esp); /* 0x360888BC: pop esi */
   3799     ebp = POP32_VAL(esp); /* 0x360888BD: pop ebp */
   3800     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360888BE: ret 4 */
   3801 L_360890A0:
   3802     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
   3803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3804     ecx = ecx - 0x40u; /* 0x360890A0: sub ecx, 0x40 */
   3805     _flag_k = FK_CMP;
   3806     RECOMP_BACKEDGE();
   3807     goto L_360888A0; /* 0x360890A3: jmp 0x360888a0 */
   3808     { RECOMP_REGS_OUT(); return; } /* end of function */
   3809     RECOMP_REGS_OUT();
   3810 }
   3811 
   3812 void sub_360890B0(void) {
   3813     int _fpu_cmp = 0;
   3814     uint32_t _cf = 0;
   3815     int _df = 1;
   3816     uint32_t _flag_k = FK_NONE;
   3817     uint32_t _flag_a = 0, _flag_b = 0;
   3818     uint32_t _itail_tgt = 0;
   3819     RECOMP_REGS_LOCALS
   3820     RECOMP_ENTER(0x360890B0u);
   3821 
   3822     goto L_360890B0;
   3823 L_360888A0:
   3824     PUSH32(esp, ebp); /* 0x360888A0: push ebp */
   3825     ebp = esp; /* 0x360888A1: mov ebp, esp */
   3826     PUSH32(esp, esi); /* 0x360888A3: push esi */
   3827     esi = ecx; /* 0x360888A4: mov esi, ecx */
   3828     RECOMP_ICALL(0x36088990u); /* 0x360888A6: call 0x36088990 */ /* not lifted */
   3829     RECOMP_FLAGS_IN();
   3830     /* test MEM8(ebp + 0x8), 1 */ /* 0x360888AB: test byte ptr [ebp + 8], 1 */
   3831     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3832     _cf = 0;
   3833     _flag_k = FK_NARROW(FK_TEST, 24);
   3834     if (TEST_Z(_flag_a, _flag_b)) goto L_360888BA; /* 0x360888AF: je 0x360888ba */
   3835 L_360888B1:
   3836     PUSH32(esp, esi); /* 0x360888B1: push esi */
   3837     RECOMP_ICALL(0x3615FCC4u); /* 0x360888B2: call 0x3615fcc4 */ /* not lifted */
   3838     RECOMP_FLAGS_IN();
   3839     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3840     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3841     esp = esp + 4; /* 0x360888B7: add esp, 4 */
   3842     _flag_k = FK_ADD;
   3843 L_360888BA:
   3844     eax = esi; /* 0x360888BA: mov eax, esi */
   3845     esi = POP32_VAL(esp); /* 0x360888BC: pop esi */
   3846     ebp = POP32_VAL(esp); /* 0x360888BD: pop ebp */
   3847     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360888BE: ret 4 */
   3848 L_360890B0:
   3849     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
   3850     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3851     ecx = ecx - 0x4Cu; /* 0x360890B0: sub ecx, 0x4c */
   3852     _flag_k = FK_CMP;
   3853     RECOMP_BACKEDGE();
   3854     goto L_360888A0; /* 0x360890B3: jmp 0x360888a0 */
   3855     { RECOMP_REGS_OUT(); return; } /* end of function */
   3856     RECOMP_REGS_OUT();
   3857 }
   3858 
   3859 void sub_360890C0(void) {
   3860     int _fpu_cmp = 0;
   3861     uint32_t _cf = 0;
   3862     int _df = 1;
   3863     uint32_t _flag_k = FK_NONE;
   3864     uint32_t _flag_a = 0, _flag_b = 0;
   3865     uint32_t _itail_tgt = 0;
   3866     RECOMP_REGS_LOCALS
   3867     RECOMP_ENTER(0x360890C0u);
   3868 
   3869     goto L_360890C0;
   3870 L_360888A0:
   3871     PUSH32(esp, ebp); /* 0x360888A0: push ebp */
   3872     ebp = esp; /* 0x360888A1: mov ebp, esp */
   3873     PUSH32(esp, esi); /* 0x360888A3: push esi */
   3874     esi = ecx; /* 0x360888A4: mov esi, ecx */
   3875     RECOMP_ICALL(0x36088990u); /* 0x360888A6: call 0x36088990 */ /* not lifted */
   3876     RECOMP_FLAGS_IN();
   3877     /* test MEM8(ebp + 0x8), 1 */ /* 0x360888AB: test byte ptr [ebp + 8], 1 */
   3878     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3879     _cf = 0;
   3880     _flag_k = FK_NARROW(FK_TEST, 24);
   3881     if (TEST_Z(_flag_a, _flag_b)) goto L_360888BA; /* 0x360888AF: je 0x360888ba */
   3882 L_360888B1:
   3883     PUSH32(esp, esi); /* 0x360888B1: push esi */
   3884     RECOMP_ICALL(0x3615FCC4u); /* 0x360888B2: call 0x3615fcc4 */ /* not lifted */
   3885     RECOMP_FLAGS_IN();
   3886     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3887     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3888     esp = esp + 4; /* 0x360888B7: add esp, 4 */
   3889     _flag_k = FK_ADD;
   3890 L_360888BA:
   3891     eax = esi; /* 0x360888BA: mov eax, esi */
   3892     esi = POP32_VAL(esp); /* 0x360888BC: pop esi */
   3893     ebp = POP32_VAL(esp); /* 0x360888BD: pop ebp */
   3894     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360888BE: ret 4 */
   3895 L_360890C0:
   3896     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u);
   3897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3898     ecx = ecx - 0x80u; /* 0x360890C0: sub ecx, 0x80 */
   3899     _flag_k = FK_CMP;
   3900     RECOMP_BACKEDGE();
   3901     goto L_360888A0; /* 0x360890C6: jmp 0x360888a0 */
   3902     { RECOMP_REGS_OUT(); return; } /* end of function */
   3903     RECOMP_REGS_OUT();
   3904 }
   3905 
   3906 void sub_360890D0(void) {
   3907     int _fpu_cmp = 0;
   3908     uint32_t _cf = 0;
   3909     int _df = 1;
   3910     uint32_t _flag_k = FK_NONE;
   3911     uint32_t _flag_a = 0, _flag_b = 0;
   3912     uint32_t _itail_tgt = 0;
   3913     RECOMP_REGS_LOCALS
   3914     RECOMP_ENTER(0x360890D0u);
   3915 
   3916     goto L_360890D0;
   3917 L_360888A0:
   3918     PUSH32(esp, ebp); /* 0x360888A0: push ebp */
   3919     ebp = esp; /* 0x360888A1: mov ebp, esp */
   3920     PUSH32(esp, esi); /* 0x360888A3: push esi */
   3921     esi = ecx; /* 0x360888A4: mov esi, ecx */
   3922     RECOMP_ICALL(0x36088990u); /* 0x360888A6: call 0x36088990 */ /* not lifted */
   3923     RECOMP_FLAGS_IN();
   3924     /* test MEM8(ebp + 0x8), 1 */ /* 0x360888AB: test byte ptr [ebp + 8], 1 */
   3925     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3926     _cf = 0;
   3927     _flag_k = FK_NARROW(FK_TEST, 24);
   3928     if (TEST_Z(_flag_a, _flag_b)) goto L_360888BA; /* 0x360888AF: je 0x360888ba */
   3929 L_360888B1:
   3930     PUSH32(esp, esi); /* 0x360888B1: push esi */
   3931     RECOMP_ICALL(0x3615FCC4u); /* 0x360888B2: call 0x3615fcc4 */ /* not lifted */
   3932     RECOMP_FLAGS_IN();
   3933     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3935     esp = esp + 4; /* 0x360888B7: add esp, 4 */
   3936     _flag_k = FK_ADD;
   3937 L_360888BA:
   3938     eax = esi; /* 0x360888BA: mov eax, esi */
   3939     esi = POP32_VAL(esp); /* 0x360888BC: pop esi */
   3940     ebp = POP32_VAL(esp); /* 0x360888BD: pop ebp */
   3941     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360888BE: ret 4 */
   3942 L_360890D0:
   3943     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu);
   3944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3945     ecx = ecx - 0x8Cu; /* 0x360890D0: sub ecx, 0x8c */
   3946     _flag_k = FK_CMP;
   3947     RECOMP_BACKEDGE();
   3948     goto L_360888A0; /* 0x360890D6: jmp 0x360888a0 */
   3949     { RECOMP_REGS_OUT(); return; } /* end of function */
   3950     RECOMP_REGS_OUT();
   3951 }
   3952 
   3953 void sub_360890E0(void) {
   3954     int _fpu_cmp = 0;
   3955     uint32_t _cf = 0;
   3956     int _df = 1;
   3957     uint32_t _flag_k = FK_NONE;
   3958     uint32_t _flag_a = 0, _flag_b = 0;
   3959     uint32_t _itail_tgt = 0;
   3960     RECOMP_REGS_LOCALS
   3961     RECOMP_ENTER(0x360890E0u);
   3962 
   3963     goto L_360890E0;
   3964 L_360888A0:
   3965     PUSH32(esp, ebp); /* 0x360888A0: push ebp */
   3966     ebp = esp; /* 0x360888A1: mov ebp, esp */
   3967     PUSH32(esp, esi); /* 0x360888A3: push esi */
   3968     esi = ecx; /* 0x360888A4: mov esi, ecx */
   3969     RECOMP_ICALL(0x36088990u); /* 0x360888A6: call 0x36088990 */ /* not lifted */
   3970     RECOMP_FLAGS_IN();
   3971     /* test MEM8(ebp + 0x8), 1 */ /* 0x360888AB: test byte ptr [ebp + 8], 1 */
   3972     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3973     _cf = 0;
   3974     _flag_k = FK_NARROW(FK_TEST, 24);
   3975     if (TEST_Z(_flag_a, _flag_b)) goto L_360888BA; /* 0x360888AF: je 0x360888ba */
   3976 L_360888B1:
   3977     PUSH32(esp, esi); /* 0x360888B1: push esi */
   3978     RECOMP_ICALL(0x3615FCC4u); /* 0x360888B2: call 0x3615fcc4 */ /* not lifted */
   3979     RECOMP_FLAGS_IN();
   3980     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3981     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3982     esp = esp + 4; /* 0x360888B7: add esp, 4 */
   3983     _flag_k = FK_ADD;
   3984 L_360888BA:
   3985     eax = esi; /* 0x360888BA: mov eax, esi */
   3986     esi = POP32_VAL(esp); /* 0x360888BC: pop esi */
   3987     ebp = POP32_VAL(esp); /* 0x360888BD: pop ebp */
   3988     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360888BE: ret 4 */
   3989 L_360890E0:
   3990     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xACu);
   3991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3992     ecx = ecx - 0xACu; /* 0x360890E0: sub ecx, 0xac */
   3993     _flag_k = FK_CMP;
   3994     RECOMP_BACKEDGE();
   3995     goto L_360888A0; /* 0x360890E6: jmp 0x360888a0 */
   3996     { RECOMP_REGS_OUT(); return; } /* end of function */
   3997     RECOMP_REGS_OUT();
   3998 }
   3999 
   4000 void sub_360890F0(void) {
   4001     int _fpu_cmp = 0;
   4002     uint32_t _cf = 0;
   4003     int _df = 1;
   4004     uint32_t _flag_k = FK_NONE;
   4005     uint32_t _flag_a = 0, _flag_b = 0;
   4006     uint32_t _itail_tgt = 0;
   4007     RECOMP_REGS_LOCALS
   4008     RECOMP_ENTER(0x360890F0u);
   4009 
   4010 L_360890F0:
   4011     PUSH32(esp, ebp); /* 0x360890F0: push ebp */
   4012     ebp = esp; /* 0x360890F1: mov ebp, esp */
   4013     PUSH32(esp, 0xFFFFFFFFu); /* 0x360890F3: push -1 */
   4014     PUSH32(esp, 0x36165D7Eu); /* 0x360890F5: push 0x36165d7e */
   4015     eax = MEM32(FS_BASE + (0)); /* 0x360890FA: mov eax, dword ptr fs:[0] */
   4016     PUSH32(esp, eax); /* 0x36089100: push eax */
   4017     MEM32(FS_BASE + (0)) = esp; /* 0x36089101: mov dword ptr fs:[0], esp */
   4018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   4019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4020     esp = esp - 0x18u; /* 0x36089108: sub esp, 0x18 */
   4021     _flag_k = FK_CMP;
   4022     PUSH32(esp, ebx); /* 0x3608910B: push ebx */
   4023     PUSH32(esp, esi); /* 0x3608910C: push esi */
   4024     PUSH32(esp, edi); /* 0x3608910D: push edi */
   4025     edi = ecx; /* 0x3608910E: mov edi, ecx */
   4026     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4027     ebx = 0; /* 0x36089110: xor ebx, ebx */
   4028     _cf = 0;
   4029     _flag_k = FK_TEST;
   4030     PUSH32(esp, 0x3Cu); /* 0x36089112: push 0x3c */
   4031     MEM32(ebp + (-0x20)) = edi; /* 0x36089114: mov dword ptr [ebp - 0x20], edi */
   4032     MEM32(edi) = ebx; /* 0x36089117: mov dword ptr [edi], ebx */
   4033     RECOMP_ICALL(0x3615FD6Au); /* 0x36089119: call 0x3615fd6a */ /* not lifted */
   4034     RECOMP_FLAGS_IN();
   4035     esi = eax; /* 0x3608911E: mov esi, eax */
   4036     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4037     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4038     esp = esp + 4; /* 0x36089120: add esp, 4 */
   4039     _flag_k = FK_ADD;
   4040     MEM32(ebp + (-0x24)) = esi; /* 0x36089123: mov dword ptr [ebp - 0x24], esi */
   4041     /* cmp esi, ebx */ /* 0x36089126: cmp esi, ebx */
   4042     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4044     _flag_k = FK_CMP;
   4045     MEM32(ebp + (-0x4)) = ebx; /* 0x36089128: mov dword ptr [ebp - 4], ebx */
   4046     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608927A; /* 0x3608912B: je 0x3608927a */
   4047 L_36089131:
   4048     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36089131: mov al, byte ptr [ebp - 0xd] */
   4049     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36089134: mov byte ptr [esi], al */
   4050     MEM32(esi + 0x4) = ebx; /* 0x36089136: mov dword ptr [esi + 4], ebx */
   4051     MEM32(esi + 0x8) = ebx; /* 0x36089139: mov dword ptr [esi + 8], ebx */
   4052     MEM32(esi + 0xC) = ebx; /* 0x3608913C: mov dword ptr [esi + 0xc], ebx */
   4053     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3608913F: mov cl, byte ptr [ebp - 0xd] */
   4054     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x36089142: mov dl, byte ptr [ebp - 0xd] */
   4055     PUSH32(esp, 0x20u); /* 0x36089145: push 0x20 */
   4056     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36089147: mov byte ptr [ebp - 4], 1 */
   4057     MEM8(esi + 0x10) = (uint8_t)(LO8(ecx)); /* 0x3608914B: mov byte ptr [esi + 0x10], cl */
   4058     MEM8(esi + 0x11) = (uint8_t)(LO8(edx)); /* 0x3608914E: mov byte ptr [esi + 0x11], dl */
   4059     MEM8(esi + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x36089151: mov byte ptr [esi + 0x1c], bl */
   4060     RECOMP_ICALL(0x3615FD6Au); /* 0x36089154: call 0x3615fd6a */ /* not lifted */
   4061     RECOMP_FLAGS_IN();
   4062     MEM32(eax + 0x4) = ebx; /* 0x36089159: mov dword ptr [eax + 4], ebx */
   4063     MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x3608915C: mov byte ptr [eax + 0x1c], 1 */
   4064     MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x36089160: mov byte ptr [eax + 0x1d], bl */
   4065     MEM32(esi + 0x18) = eax; /* 0x36089163: mov dword ptr [esi + 0x18], eax */
   4066     MEM8(eax + 0x1D) = (uint8_t)(1); /* 0x36089166: mov byte ptr [eax + 0x1d], 1 */
   4067     eax = MEM32(esi + 0x18); /* 0x3608916A: mov eax, dword ptr [esi + 0x18] */
   4068     MEM32(eax) = ebx; /* 0x3608916D: mov dword ptr [eax], ebx */
   4069     eax = MEM32(esi + 0x18); /* 0x3608916F: mov eax, dword ptr [esi + 0x18] */
   4070     MEM32(eax + 0x8) = ebx; /* 0x36089172: mov dword ptr [eax + 8], ebx */
   4071     edi = MEM32(esi + 0x18); /* 0x36089175: mov edi, dword ptr [esi + 0x18] */
   4072     PUSH32(esp, 0x20u); /* 0x36089178: push 0x20 */
   4073     RECOMP_ICALL(0x3615FD6Au); /* 0x3608917A: call 0x3615fd6a */ /* not lifted */
   4074     RECOMP_FLAGS_IN();
   4075     MEM32(eax + 0x4) = edi; /* 0x3608917F: mov dword ptr [eax + 4], edi */
   4076     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x36089182: mov byte ptr [eax + 0x1c], bl */
   4077     MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x36089185: mov byte ptr [eax + 0x1d], bl */
   4078     MEM32(esi + 0x14) = eax; /* 0x36089188: mov dword ptr [esi + 0x14], eax */
   4079     MEM32(eax) = eax; /* 0x3608918B: mov dword ptr [eax], eax */
   4080     eax = MEM32(esi + 0x14); /* 0x3608918D: mov eax, dword ptr [esi + 0x14] */
   4081     MEM32(eax + 0x8) = eax; /* 0x36089190: mov dword ptr [eax + 8], eax */
   4082     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4083     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4084     esp = esp + 8; /* 0x36089193: add esp, 8 */
   4085     _flag_k = FK_ADD;
   4086     MEM32(esi + 0x20) = ebx; /* 0x36089196: mov dword ptr [esi + 0x20], ebx */
   4087     eax = MEM32(esi + 0x4); /* 0x36089199: mov eax, dword ptr [esi + 4] */
   4088     /* cmp eax, ebx */ /* 0x3608919C: cmp eax, ebx */
   4089     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4091     _flag_k = FK_CMP;
   4092     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3608919E: mov byte ptr [ebp - 4], 2 */
   4093     MEM32(esi + 0x24) = ebx; /* 0x360891A2: mov dword ptr [esi + 0x24], ebx */
   4094     MEM32(esi + 0x28) = 0xC8u; /* 0x360891A5: mov dword ptr [esi + 0x28], 0xc8 */
   4095     MEM32(esi + 0x2C) = ebx; /* 0x360891AC: mov dword ptr [esi + 0x2c], ebx */
   4096     MEM32(esi + 0x30) = ebx; /* 0x360891AF: mov dword ptr [esi + 0x30], ebx */
   4097     MEM32(esi + 0x34) = ebx; /* 0x360891B2: mov dword ptr [esi + 0x34], ebx */
   4098     MEM32(esi + 0x38) = ebx; /* 0x360891B5: mov dword ptr [esi + 0x38], ebx */
   4099     if (CMP_EQ(_flag_a, _flag_b)) goto L_360891DC; /* 0x360891B8: je 0x360891dc */
   4100 L_360891BA:
   4101     ecx = MEM32(esi + 0xC); /* 0x360891BA: mov ecx, dword ptr [esi + 0xc] */
   4102     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4104     ecx = ecx - eax; /* 0x360891BD: sub ecx, eax */
   4105     _flag_k = FK_CMP;
   4106     eax = 0x66666667u; /* 0x360891BF: mov eax, 0x66666667 */
   4107     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360891C4: imul ecx */
   4108       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4109       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4110     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x360891C6: sar edx, 3 */
   4111     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4112     edx = (uint32_t)((int32_t)edx >> 3u);
   4113     ecx = edx; /* 0x360891C9: mov ecx, edx */
   4114     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x360891CB: shr ecx, 0x1f */
   4115     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4116     ecx = ecx >> 31u; /* 0x360891CB: shr ecx, 0x1f */
   4117     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4118     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4119     edx = edx + ecx; /* 0x360891CE: add edx, ecx */
   4120     _flag_k = FK_ADD;
   4121     /* cmp edx, 0xC8u */ /* 0x360891D0: cmp edx, 0xc8 */
   4122     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xC8u);
   4123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4124     _flag_k = FK_CMP;
   4125     if (CMP_AE(_flag_a, _flag_b)) goto L_36089264; /* 0x360891D6: jae 0x36089264 */
   4126 L_360891DC:
   4127     PUSH32(esp, 0xFA0u); /* 0x360891DC: push 0xfa0 */
   4128     RECOMP_ICALL(0x3615FD6Au); /* 0x360891E1: call 0x3615fd6a */ /* not lifted */
   4129     RECOMP_FLAGS_IN();
   4130     edi = MEM32(esi + 0x4); /* 0x360891E6: mov edi, dword ptr [esi + 4] */
   4131     MEM32(ebp + (-0x1C)) = eax; /* 0x360891E9: mov dword ptr [ebp - 0x1c], eax */
   4132     MEM32(ebp + (-0x14)) = eax; /* 0x360891EC: mov dword ptr [ebp - 0x14], eax */
   4133     eax = MEM32(esi + 0x8); /* 0x360891EF: mov eax, dword ptr [esi + 8] */
   4134     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4135     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4136     esp = esp + 4; /* 0x360891F2: add esp, 4 */
   4137     _flag_k = FK_ADD;
   4138     /* cmp edi, eax */ /* 0x360891F5: cmp edi, eax */
   4139     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4141     _flag_k = FK_CMP;
   4142     MEM32(ebp + (-0x18)) = eax; /* 0x360891F7: mov dword ptr [ebp - 0x18], eax */
   4143     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608921C; /* 0x360891FA: je 0x3608921c */
   4144 L_360891FC:
   4145     edx = MEM32(ebp + (-0x14)); /* 0x360891FC: mov edx, dword ptr [ebp - 0x14] */
   4146     PUSH32(esp, edi); /* 0x360891FF: push edi */
   4147     PUSH32(esp, edx); /* 0x36089200: push edx */
   4148     RECOMP_ICALL(0x3608A3B0u); /* 0x36089201: call 0x3608a3b0 */ /* not lifted */
   4149     RECOMP_FLAGS_IN();
   4150     edx = MEM32(ebp + (-0x14)); /* 0x36089206: mov edx, dword ptr [ebp - 0x14] */
   4151     eax = MEM32(ebp + (-0x18)); /* 0x36089209: mov eax, dword ptr [ebp - 0x18] */
   4152     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
   4153     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4154     edx = edx + 0x14u; /* 0x3608920C: add edx, 0x14 */
   4155     _flag_k = FK_ADD;
   4156     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   4157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4158     edi = edi + 0x14u; /* 0x3608920F: add edi, 0x14 */
   4159     _flag_k = FK_ADD;
   4160     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4161     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4162     esp = esp + 8; /* 0x36089212: add esp, 8 */
   4163     _flag_k = FK_ADD;
   4164     /* cmp edi, eax */ /* 0x36089215: cmp edi, eax */
   4165     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4167     _flag_k = FK_CMP;
   4168     MEM32(ebp + (-0x14)) = edx; /* 0x36089217: mov dword ptr [ebp - 0x14], edx */
   4169     RECOMP_BACKEDGE();
   4170     if (CMP_NE(_flag_a, _flag_b)) goto L_360891FC; /* 0x3608921A: jne 0x360891fc */
   4171 L_3608921C:
   4172     eax = MEM32(esi + 0x4); /* 0x3608921C: mov eax, dword ptr [esi + 4] */
   4173     PUSH32(esp, eax); /* 0x3608921F: push eax */
   4174     MEM32(ebp + (-0x24)) = eax; /* 0x36089220: mov dword ptr [ebp - 0x24], eax */
   4175     RECOMP_ICALL(0x3615FCC4u); /* 0x36089223: call 0x3615fcc4 */ /* not lifted */
   4176     RECOMP_FLAGS_IN();
   4177     edi = MEM32(ebp + (-0x1C)); /* 0x36089228: mov edi, dword ptr [ebp - 0x1c] */
   4178     eax = edi + 0xFA0; /* 0x3608922B: lea eax, [edi + 0xfa0] */
   4179     MEM32(esi + 0xC) = eax; /* 0x36089231: mov dword ptr [esi + 0xc], eax */
   4180     eax = MEM32(esi + 0x4); /* 0x36089234: mov eax, dword ptr [esi + 4] */
   4181     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4182     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4183     esp = esp + 4; /* 0x36089237: add esp, 4 */
   4184     _flag_k = FK_ADD;
   4185     /* cmp eax, ebx */ /* 0x3608923A: cmp eax, ebx */
   4186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4187     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4188     _flag_k = FK_CMP;
   4189     if (CMP_NE(_flag_a, _flag_b)) goto L_36089242; /* 0x3608923C: jne 0x36089242 */
   4190 L_3608923E:
   4191     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4192     edx = 0; /* 0x3608923E: xor edx, edx */
   4193     _cf = 0;
   4194     _flag_k = FK_TEST;
   4195     goto L_36089258; /* 0x36089240: jmp 0x36089258 */
   4196 L_36089242:
   4197     ecx = MEM32(esi + 0x8); /* 0x36089242: mov ecx, dword ptr [esi + 8] */
   4198     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4200     ecx = ecx - eax; /* 0x36089245: sub ecx, eax */
   4201     _flag_k = FK_CMP;
   4202     eax = 0x66666667u; /* 0x36089247: mov eax, 0x66666667 */
   4203     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3608924C: imul ecx */
   4204       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   4205       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   4206     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3608924E: sar edx, 3 */
   4207     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4208     edx = (uint32_t)((int32_t)edx >> 3u);
   4209     ecx = edx; /* 0x36089251: mov ecx, edx */
   4210     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36089253: shr ecx, 0x1f */
   4211     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4212     ecx = ecx >> 31u; /* 0x36089253: shr ecx, 0x1f */
   4213     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4214     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4215     edx = edx + ecx; /* 0x36089256: add edx, ecx */
   4216     _flag_k = FK_ADD;
   4217 L_36089258:
   4218     edx = edx + edx * 4; /* 0x36089258: lea edx, [edx + edx*4] */
   4219     eax = edi + edx * 4; /* 0x3608925B: lea eax, [edi + edx*4] */
   4220     MEM32(esi + 0x8) = eax; /* 0x3608925E: mov dword ptr [esi + 8], eax */
   4221     MEM32(esi + 0x4) = edi; /* 0x36089261: mov dword ptr [esi + 4], edi */
   4222 L_36089264:
   4223     eax = MEM32(ebp + (-0x20)); /* 0x36089264: mov eax, dword ptr [ebp - 0x20] */
   4224     edi = POP32_VAL(esp); /* 0x36089267: pop edi */
   4225     MEM32(eax) = esi; /* 0x36089268: mov dword ptr [eax], esi */
   4226     esi = POP32_VAL(esp); /* 0x3608926A: pop esi */
   4227     ebx = POP32_VAL(esp); /* 0x3608926B: pop ebx */
   4228     ecx = MEM32(ebp + (-0xC)); /* 0x3608926C: mov ecx, dword ptr [ebp - 0xc] */
   4229     MEM32(FS_BASE + (0)) = ecx; /* 0x3608926F: mov dword ptr fs:[0], ecx */
   4230     esp = ebp; /* 0x36089276: mov esp, ebp */
   4231     ebp = POP32_VAL(esp); /* 0x36089278: pop ebp */
   4232     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36089279: ret  */
   4233 L_3608927A:
   4234     ecx = MEM32(ebp + (-0xC)); /* 0x3608927A: mov ecx, dword ptr [ebp - 0xc] */
   4235     MEM32(edi) = ebx; /* 0x3608927D: mov dword ptr [edi], ebx */
   4236     eax = edi; /* 0x3608927F: mov eax, edi */
   4237     edi = POP32_VAL(esp); /* 0x36089281: pop edi */
   4238     esi = POP32_VAL(esp); /* 0x36089282: pop esi */
   4239     ebx = POP32_VAL(esp); /* 0x36089283: pop ebx */
   4240     MEM32(FS_BASE + (0)) = ecx; /* 0x36089284: mov dword ptr fs:[0], ecx */
   4241     esp = ebp; /* 0x3608928B: mov esp, ebp */
   4242     ebp = POP32_VAL(esp); /* 0x3608928D: pop ebp */
   4243     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608928E: ret  */
   4244     RECOMP_REGS_OUT();
   4245 }
   4246 
   4247 void sub_36089258(void) {
   4248     int _fpu_cmp = 0;
   4249     uint32_t _cf = 0;
   4250     int _df = 1;
   4251     uint32_t _flag_k = FK_NONE;
   4252     uint32_t _flag_a = 0, _flag_b = 0;
   4253     uint32_t _itail_tgt = 0;
   4254     RECOMP_REGS_LOCALS
   4255     RECOMP_ENTER(0x36089258u);
   4256 
   4257 L_36089258:
   4258     edx = edx + edx * 4; /* 0x36089258: lea edx, [edx + edx*4] */
   4259     eax = edi + edx * 4; /* 0x3608925B: lea eax, [edi + edx*4] */
   4260     MEM32(esi + 0x8) = eax; /* 0x3608925E: mov dword ptr [esi + 8], eax */
   4261     MEM32(esi + 0x4) = edi; /* 0x36089261: mov dword ptr [esi + 4], edi */
   4262     eax = MEM32(ebp + (-0x20)); /* 0x36089264: mov eax, dword ptr [ebp - 0x20] */
   4263     edi = POP32_VAL(esp); /* 0x36089267: pop edi */
   4264     MEM32(eax) = esi; /* 0x36089268: mov dword ptr [eax], esi */
   4265     esi = POP32_VAL(esp); /* 0x3608926A: pop esi */
   4266     ebx = POP32_VAL(esp); /* 0x3608926B: pop ebx */
   4267     ecx = MEM32(ebp + (-0xC)); /* 0x3608926C: mov ecx, dword ptr [ebp - 0xc] */
   4268     MEM32(FS_BASE + (0)) = ecx; /* 0x3608926F: mov dword ptr fs:[0], ecx */
   4269     esp = ebp; /* 0x36089276: mov esp, ebp */
   4270     ebp = POP32_VAL(esp); /* 0x36089278: pop ebp */
   4271     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36089279: ret  */
   4272     RECOMP_REGS_OUT();
   4273 }
   4274 
   4275 void sub_36089290(void) {
   4276     int _fpu_cmp = 0;
   4277     uint32_t _cf = 0;
   4278     int _df = 1;
   4279     uint32_t _flag_k = FK_NONE;
   4280     uint32_t _flag_a = 0, _flag_b = 0;
   4281     uint32_t _itail_tgt = 0;
   4282     RECOMP_REGS_LOCALS
   4283     RECOMP_ENTER(0x36089290u);
   4284 
   4285 L_36089290:
   4286     PUSH32(esp, esi); /* 0x36089290: push esi */
   4287     PUSH32(esp, edi); /* 0x36089291: push edi */
   4288     edi = ecx; /* 0x36089292: mov edi, ecx */
   4289     esi = MEM32(edi); /* 0x36089294: mov esi, dword ptr [edi] */
   4290     /* test esi, esi */ /* 0x36089296: test esi, esi */
   4291     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4292     _cf = 0;
   4293     _flag_k = FK_TEST;
   4294     if (TEST_Z(_flag_a, _flag_b)) goto L_360892AA; /* 0x36089298: je 0x360892aa */
   4295 L_3608929A:
   4296     ecx = esi; /* 0x3608929A: mov ecx, esi */
   4297     RECOMP_ICALL(0x360892C0u); /* 0x3608929C: call 0x360892c0 */ /* not lifted */
   4298     RECOMP_FLAGS_IN();
   4299     PUSH32(esp, esi); /* 0x360892A1: push esi */
   4300     RECOMP_ICALL(0x3615FCC4u); /* 0x360892A2: call 0x3615fcc4 */ /* not lifted */
   4301     RECOMP_FLAGS_IN();
   4302     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4304     esp = esp + 4; /* 0x360892A7: add esp, 4 */
   4305     _flag_k = FK_ADD;
   4306 L_360892AA:
   4307     MEM32(edi) = 0; /* 0x360892AA: mov dword ptr [edi], 0 */
   4308     edi = POP32_VAL(esp); /* 0x360892B0: pop edi */
   4309     esi = POP32_VAL(esp); /* 0x360892B1: pop esi */
   4310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360892B2: ret  */
   4311     RECOMP_REGS_OUT();
   4312 }
   4313 
   4314 void sub_360892C0(void) {
   4315     int _fpu_cmp = 0;
   4316     uint32_t _cf = 0;
   4317     int _df = 1;
   4318     uint32_t _flag_k = FK_NONE;
   4319     uint32_t _flag_a = 0, _flag_b = 0;
   4320     uint32_t _itail_tgt = 0;
   4321     RECOMP_REGS_LOCALS
   4322     RECOMP_ENTER(0x360892C0u);
   4323 
   4324 L_360892C0:
   4325     PUSH32(esp, ebp); /* 0x360892C0: push ebp */
   4326     ebp = esp; /* 0x360892C1: mov ebp, esp */
   4327     PUSH32(esp, 0xFFFFFFFFu); /* 0x360892C3: push -1 */
   4328     PUSH32(esp, 0x36165DA3u); /* 0x360892C5: push 0x36165da3 */
   4329     eax = MEM32(FS_BASE + (0)); /* 0x360892CA: mov eax, dword ptr fs:[0] */
   4330     PUSH32(esp, eax); /* 0x360892D0: push eax */
   4331     MEM32(FS_BASE + (0)) = esp; /* 0x360892D1: mov dword ptr fs:[0], esp */
   4332     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4334     esp = esp - 8; /* 0x360892D8: sub esp, 8 */
   4335     _flag_k = FK_CMP;
   4336     PUSH32(esp, ebx); /* 0x360892DB: push ebx */
   4337     PUSH32(esp, esi); /* 0x360892DC: push esi */
   4338     esi = ecx; /* 0x360892DD: mov esi, ecx */
   4339     PUSH32(esp, edi); /* 0x360892DF: push edi */
   4340     MEM32(ebp + (-0x14)) = esi; /* 0x360892E0: mov dword ptr [ebp - 0x14], esi */
   4341     eax = MEM32(esi + 0x8); /* 0x360892E3: mov eax, dword ptr [esi + 8] */
   4342     edi = MEM32(esi + 0x4); /* 0x360892E6: mov edi, dword ptr [esi + 4] */
   4343     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4344     ebx = 0; /* 0x360892E9: xor ebx, ebx */
   4345     _cf = 0;
   4346     _flag_k = FK_TEST;
   4347     /* cmp eax, edi */ /* 0x360892EB: cmp eax, edi */
   4348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4350     _flag_k = FK_CMP;
   4351     MEM32(ebp + (-0x4)) = 1; /* 0x360892ED: mov dword ptr [ebp - 4], 1 */
   4352     MEM32(ebp + (-0x10)) = eax; /* 0x360892F4: mov dword ptr [ebp - 0x10], eax */
   4353     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089310; /* 0x360892F7: je 0x36089310 */
   4354 L_360892F9:
   4355     ecx = MEM32(edi + 0xC); /* 0x360892F9: mov ecx, dword ptr [edi + 0xc] */
   4356     /* cmp ecx, ebx */ /* 0x360892FC: cmp ecx, ebx */
   4357     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   4358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4359     _flag_k = FK_CMP;
   4360     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089309; /* 0x360892FE: je 0x36089309 */
   4361 L_36089300:
   4362     eax = MEM32(ecx); /* 0x36089300: mov eax, dword ptr [ecx] */
   4363     PUSH32(esp, 1); /* 0x36089302: push 1 */
   4364     RECOMP_ICALL(MEM32(eax)); /* 0x36089304: call dword ptr [eax] */
   4365     RECOMP_FLAGS_IN();
   4366     eax = MEM32(ebp + (-0x10)); /* 0x36089306: mov eax, dword ptr [ebp - 0x10] */
   4367 L_36089309:
   4368     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   4369     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4370     edi = edi + 0x14u; /* 0x36089309: add edi, 0x14 */
   4371     _flag_k = FK_ADD;
   4372     /* cmp edi, eax */ /* 0x3608930C: cmp edi, eax */
   4373     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4375     _flag_k = FK_CMP;
   4376     RECOMP_BACKEDGE();
   4377     if (CMP_NE(_flag_a, _flag_b)) goto L_360892F9; /* 0x3608930E: jne 0x360892f9 */
   4378 L_36089310:
   4379     ecx = MEM32(esi + 0x4); /* 0x36089310: mov ecx, dword ptr [esi + 4] */
   4380     eax = MEM32(esi + 0x8); /* 0x36089313: mov eax, dword ptr [esi + 8] */
   4381     PUSH32(esp, ecx); /* 0x36089316: push ecx */
   4382     PUSH32(esp, eax); /* 0x36089317: push eax */
   4383     PUSH32(esp, eax); /* 0x36089318: push eax */
   4384     RECOMP_ICALL(0x3608A310u); /* 0x36089319: call 0x3608a310 */ /* not lifted */
   4385     RECOMP_FLAGS_IN();
   4386     edi = eax; /* 0x3608931E: mov edi, eax */
   4387     eax = MEM32(esi + 0x8); /* 0x36089320: mov eax, dword ptr [esi + 8] */
   4388     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4390     esp = esp + 0xCu; /* 0x36089323: add esp, 0xc */
   4391     _flag_k = FK_ADD;
   4392     PUSH32(esp, eax); /* 0x36089326: push eax */
   4393     PUSH32(esp, edi); /* 0x36089327: push edi */
   4394     ecx = esi; /* 0x36089328: mov ecx, esi */
   4395     RECOMP_ICALL(0x3610ED60u); /* 0x3608932A: call 0x3610ed60 */ /* not lifted */
   4396     RECOMP_FLAGS_IN();
   4397     MEM32(esi + 0x8) = edi; /* 0x3608932F: mov dword ptr [esi + 8], edi */
   4398     eax = MEM32(esi + 0x14); /* 0x36089332: mov eax, dword ptr [esi + 0x14] */
   4399     ecx = MEM32(eax); /* 0x36089335: mov ecx, dword ptr [eax] */
   4400     edi = esi + 0x10; /* 0x36089337: lea edi, [esi + 0x10] */
   4401     PUSH32(esp, eax); /* 0x3608933A: push eax */
   4402     PUSH32(esp, ecx); /* 0x3608933B: push ecx */
   4403     ecx = ebp + (-0x10); /* 0x3608933C: lea ecx, [ebp - 0x10] */
   4404     PUSH32(esp, ecx); /* 0x3608933F: push ecx */
   4405     ecx = edi; /* 0x36089340: mov ecx, edi */
   4406     RECOMP_ICALL(0x36089E60u); /* 0x36089342: call 0x36089e60 */ /* not lifted */
   4407     RECOMP_FLAGS_IN();
   4408     MEM32(esi + 0x2C) = ebx; /* 0x36089347: mov dword ptr [esi + 0x2c], ebx */
   4409     MEM32(esi + 0x30) = ebx; /* 0x3608934A: mov dword ptr [esi + 0x30], ebx */
   4410     MEM32(esi + 0x34) = ebx; /* 0x3608934D: mov dword ptr [esi + 0x34], ebx */
   4411     MEM32(esi + 0x38) = ebx; /* 0x36089350: mov dword ptr [esi + 0x38], ebx */
   4412     eax = MEM32(edi + 0x4); /* 0x36089353: mov eax, dword ptr [edi + 4] */
   4413     ecx = MEM32(eax); /* 0x36089356: mov ecx, dword ptr [eax] */
   4414     PUSH32(esp, eax); /* 0x36089358: push eax */
   4415     PUSH32(esp, ecx); /* 0x36089359: push ecx */
   4416     edx = ebp + (-0x10); /* 0x3608935A: lea edx, [ebp - 0x10] */
   4417     PUSH32(esp, edx); /* 0x3608935D: push edx */
   4418     ecx = edi; /* 0x3608935E: mov ecx, edi */
   4419     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36089360: mov byte ptr [ebp - 4], bl */
   4420     RECOMP_ICALL(0x36089E60u); /* 0x36089363: call 0x36089e60 */ /* not lifted */
   4421     RECOMP_FLAGS_IN();
   4422     eax = MEM32(edi + 0x4); /* 0x36089368: mov eax, dword ptr [edi + 4] */
   4423     PUSH32(esp, eax); /* 0x3608936B: push eax */
   4424     RECOMP_ICALL(0x3615FCC4u); /* 0x3608936C: call 0x3615fcc4 */ /* not lifted */
   4425     RECOMP_FLAGS_IN();
   4426     ecx = MEM32(edi + 0x8); /* 0x36089371: mov ecx, dword ptr [edi + 8] */
   4427     PUSH32(esp, ecx); /* 0x36089374: push ecx */
   4428     MEM32(edi + 0x4) = ebx; /* 0x36089375: mov dword ptr [edi + 4], ebx */
   4429     MEM32(edi + 0x10) = ebx; /* 0x36089378: mov dword ptr [edi + 0x10], ebx */
   4430     RECOMP_ICALL(0x3615FCC4u); /* 0x3608937B: call 0x3615fcc4 */ /* not lifted */
   4431     RECOMP_FLAGS_IN();
   4432     MEM32(edi + 0x8) = ebx; /* 0x36089380: mov dword ptr [edi + 8], ebx */
   4433     eax = MEM32(esi + 0x4); /* 0x36089383: mov eax, dword ptr [esi + 4] */
   4434     PUSH32(esp, eax); /* 0x36089386: push eax */
   4435     MEM32(ebp + (-0x14)) = eax; /* 0x36089387: mov dword ptr [ebp - 0x14], eax */
   4436     RECOMP_ICALL(0x3615FCC4u); /* 0x3608938A: call 0x3615fcc4 */ /* not lifted */
   4437     RECOMP_FLAGS_IN();
   4438     ecx = MEM32(ebp + (-0xC)); /* 0x3608938F: mov ecx, dword ptr [ebp - 0xc] */
   4439     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4441     esp = esp + 0xCu; /* 0x36089392: add esp, 0xc */
   4442     _flag_k = FK_ADD;
   4443     MEM32(esi + 0x4) = ebx; /* 0x36089395: mov dword ptr [esi + 4], ebx */
   4444     MEM32(esi + 0x8) = ebx; /* 0x36089398: mov dword ptr [esi + 8], ebx */
   4445     MEM32(esi + 0xC) = ebx; /* 0x3608939B: mov dword ptr [esi + 0xc], ebx */
   4446     edi = POP32_VAL(esp); /* 0x3608939E: pop edi */
   4447     esi = POP32_VAL(esp); /* 0x3608939F: pop esi */
   4448     ebx = POP32_VAL(esp); /* 0x360893A0: pop ebx */
   4449     MEM32(FS_BASE + (0)) = ecx; /* 0x360893A1: mov dword ptr fs:[0], ecx */
   4450     esp = ebp; /* 0x360893A8: mov esp, ebp */
   4451     ebp = POP32_VAL(esp); /* 0x360893AA: pop ebp */
   4452     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360893AB: ret  */
   4453     RECOMP_REGS_OUT();
   4454 }
   4455 
   4456 void sub_360893B0(void) {
   4457     int _fpu_cmp = 0;
   4458     uint32_t _cf = 0;
   4459     int _df = 1;
   4460     uint32_t _flag_k = FK_NONE;
   4461     uint32_t _flag_a = 0, _flag_b = 0;
   4462     uint32_t _itail_tgt = 0;
   4463     RECOMP_REGS_LOCALS
   4464     RECOMP_ENTER(0x360893B0u);
   4465 
   4466 L_360893B0:
   4467     PUSH32(esp, ebp); /* 0x360893B0: push ebp */
   4468     ebp = esp; /* 0x360893B1: mov ebp, esp */
   4469     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4471     esp = esp - 0xCu; /* 0x360893B3: sub esp, 0xc */
   4472     _flag_k = FK_CMP;
   4473     PUSH32(esp, ebx); /* 0x360893B6: push ebx */
   4474     ebx = MEM32(ecx); /* 0x360893B7: mov ebx, dword ptr [ecx] */
   4475     PUSH32(esp, esi); /* 0x360893B9: push esi */
   4476     esi = MEM32(ebx + 0x4); /* 0x360893BA: mov esi, dword ptr [ebx + 4] */
   4477     PUSH32(esp, edi); /* 0x360893BD: push edi */
   4478     edi = MEM32(ebx + 0x8); /* 0x360893BE: mov edi, dword ptr [ebx + 8] */
   4479     /* cmp edi, esi */ /* 0x360893C1: cmp edi, esi */
   4480     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   4481     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4482     _flag_k = FK_CMP;
   4483     if (CMP_EQ(_flag_a, _flag_b)) goto L_360893D9; /* 0x360893C3: je 0x360893d9 */
   4484 L_360893C5:
   4485     ecx = MEM32(esi + 0xC); /* 0x360893C5: mov ecx, dword ptr [esi + 0xc] */
   4486     /* test ecx, ecx */ /* 0x360893C8: test ecx, ecx */
   4487     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4488     _cf = 0;
   4489     _flag_k = FK_TEST;
   4490     if (TEST_Z(_flag_a, _flag_b)) goto L_360893D2; /* 0x360893CA: je 0x360893d2 */
   4491 L_360893CC:
   4492     eax = MEM32(ecx); /* 0x360893CC: mov eax, dword ptr [ecx] */
   4493     PUSH32(esp, 1); /* 0x360893CE: push 1 */
   4494     RECOMP_ICALL(MEM32(eax)); /* 0x360893D0: call dword ptr [eax] */
   4495     RECOMP_FLAGS_IN();
   4496 L_360893D2:
   4497     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u);
   4498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4499     esi = esi + 0x14u; /* 0x360893D2: add esi, 0x14 */
   4500     _flag_k = FK_ADD;
   4501     /* cmp esi, edi */ /* 0x360893D5: cmp esi, edi */
   4502     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   4503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4504     _flag_k = FK_CMP;
   4505     RECOMP_BACKEDGE();
   4506     if (CMP_NE(_flag_a, _flag_b)) goto L_360893C5; /* 0x360893D7: jne 0x360893c5 */
   4507 L_360893D9:
   4508     eax = MEM32(ebx + 0x8); /* 0x360893D9: mov eax, dword ptr [ebx + 8] */
   4509     /* cmp eax, eax */ /* 0x360893DC: cmp eax, eax */
   4510     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4512     _flag_k = FK_CMP;
   4513     edx = MEM32(ebx + 0x4); /* 0x360893DE: mov edx, dword ptr [ebx + 4] */
   4514     MEM32(ebp + (-0x8)) = eax; /* 0x360893E1: mov dword ptr [ebp - 8], eax */
   4515     if (CMP_EQ(_flag_a, _flag_b)) goto L_360893FE; /* 0x360893E4: je 0x360893fe */
   4516 L_360893E6:
   4517     esi = eax; /* 0x360893E6: mov esi, eax */
   4518     edi = edx; /* 0x360893E8: mov edi, edx */
   4519     ecx = 5; /* 0x360893EA: mov ecx, 5 */
   4520     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360893EF: 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; }
   4521     ecx = MEM32(ebp + (-0x8)); /* 0x360893F1: mov ecx, dword ptr [ebp - 8] */
   4522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   4523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4524     eax = eax + 0x14u; /* 0x360893F4: add eax, 0x14 */
   4525     _flag_k = FK_ADD;
   4526     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
   4527     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4528     edx = edx + 0x14u; /* 0x360893F7: add edx, 0x14 */
   4529     _flag_k = FK_ADD;
   4530     /* cmp eax, ecx */ /* 0x360893FA: cmp eax, ecx */
   4531     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4532     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4533     _flag_k = FK_CMP;
   4534     RECOMP_BACKEDGE();
   4535     if (CMP_NE(_flag_a, _flag_b)) goto L_360893E6; /* 0x360893FC: jne 0x360893e6 */
   4536 L_360893FE:
   4537     ecx = MEM32(ebx + 0x8); /* 0x360893FE: mov ecx, dword ptr [ebx + 8] */
   4538     MEM32(ebx + 0x8) = edx; /* 0x36089401: mov dword ptr [ebx + 8], edx */
   4539     edi = MEM32(ebx + 0x14); /* 0x36089404: mov edi, dword ptr [ebx + 0x14] */
   4540     edx = MEM32(ebx + 0x20); /* 0x36089407: mov edx, dword ptr [ebx + 0x20] */
   4541     eax = MEM32(edi); /* 0x3608940A: mov eax, dword ptr [edi] */
   4542     esi = ebx + 0x10; /* 0x3608940C: lea esi, [ebx + 0x10] */
   4543     MEM32(ebp + (-0x8)) = ecx; /* 0x3608940F: mov dword ptr [ebp - 8], ecx */
   4544     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4545     ecx = 0; /* 0x36089412: xor ecx, ecx */
   4546     _cf = 0;
   4547     _flag_k = FK_TEST;
   4548     /* cmp edx, ecx */ /* 0x36089414: cmp edx, ecx */
   4549     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   4550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4551     _flag_k = FK_CMP;
   4552     MEM32(ebp + (-0x8)) = eax; /* 0x36089416: mov dword ptr [ebp - 8], eax */
   4553     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608947F; /* 0x36089419: je 0x3608947f */
   4554 L_3608941B:
   4555     edx = eax; /* 0x3608941B: mov edx, eax */
   4556     /* cmp eax, edx */ /* 0x3608941D: cmp eax, edx */
   4557     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4558     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4559     _flag_k = FK_CMP;
   4560     if (CMP_NE(_flag_a, _flag_b)) goto L_3608947F; /* 0x3608941F: jne 0x3608947f */
   4561 L_36089421:
   4562     /* cmp edi, edi */ /* 0x36089421: cmp edi, edi */
   4563     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4565     _flag_k = FK_CMP;
   4566     if (CMP_NE(_flag_a, _flag_b)) goto L_3608947F; /* 0x36089423: jne 0x3608947f */
   4567 L_36089425:
   4568     edi = MEM32(edi + 0x4); /* 0x36089425: mov edi, dword ptr [edi + 4] */
   4569     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36089428: cmp edi, dword ptr [esi + 8] */
   4570     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4571     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4572     _flag_k = FK_CMP;
   4573     MEM32(ebp + (-0x4)) = edi; /* 0x3608942B: mov dword ptr [ebp - 4], edi */
   4574     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089455; /* 0x3608942E: je 0x36089455 */
   4575 L_36089430:
   4576     edx = MEM32(edi + 0x8); /* 0x36089430: mov edx, dword ptr [edi + 8] */
   4577     PUSH32(esp, edx); /* 0x36089433: push edx */
   4578     ecx = esi; /* 0x36089434: mov ecx, esi */
   4579     RECOMP_ICALL(0x3608A020u); /* 0x36089436: call 0x3608a020 */ /* not lifted */
   4580     RECOMP_FLAGS_IN();
   4581     eax = MEM32(ebp + (-0x4)); /* 0x3608943B: mov eax, dword ptr [ebp - 4] */
   4582     edi = MEM32(edi); /* 0x3608943E: mov edi, dword ptr [edi] */
   4583     PUSH32(esp, eax); /* 0x36089440: push eax */
   4584     RECOMP_ICALL(0x3615FCC4u); /* 0x36089441: call 0x3615fcc4 */ /* not lifted */
   4585     RECOMP_FLAGS_IN();
   4586     eax = MEM32(esi + 0x8); /* 0x36089446: mov eax, dword ptr [esi + 8] */
   4587     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4588     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4589     esp = esp + 4; /* 0x36089449: add esp, 4 */
   4590     _flag_k = FK_ADD;
   4591     /* cmp edi, eax */ /* 0x3608944C: cmp edi, eax */
   4592     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4594     _flag_k = FK_CMP;
   4595     MEM32(ebp + (-0x4)) = edi; /* 0x3608944E: mov dword ptr [ebp - 4], edi */
   4596     RECOMP_BACKEDGE();
   4597     if (CMP_NE(_flag_a, _flag_b)) goto L_36089430; /* 0x36089451: jne 0x36089430 */
   4598 L_36089453:
   4599     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4600     ecx = 0; /* 0x36089453: xor ecx, ecx */
   4601     _cf = 0;
   4602     _flag_k = FK_TEST;
   4603 L_36089455:
   4604     eax = MEM32(esi + 0x8); /* 0x36089455: mov eax, dword ptr [esi + 8] */
   4605     edx = MEM32(esi + 0x4); /* 0x36089458: mov edx, dword ptr [esi + 4] */
   4606     MEM32(edx + 0x4) = eax; /* 0x3608945B: mov dword ptr [edx + 4], eax */
   4607     eax = MEM32(esi + 0x4); /* 0x3608945E: mov eax, dword ptr [esi + 4] */
   4608     MEM32(esi + 0x10) = ecx; /* 0x36089461: mov dword ptr [esi + 0x10], ecx */
   4609     MEM32(eax) = eax; /* 0x36089464: mov dword ptr [eax], eax */
   4610     esi = MEM32(esi + 0x4); /* 0x36089466: mov esi, dword ptr [esi + 4] */
   4611     MEM32(esi + 0x8) = esi; /* 0x36089469: mov dword ptr [esi + 8], esi */
   4612     edi = POP32_VAL(esp); /* 0x3608946C: pop edi */
   4613     esi = POP32_VAL(esp); /* 0x3608946D: pop esi */
   4614     MEM32(ebx + 0x2C) = ecx; /* 0x3608946E: mov dword ptr [ebx + 0x2c], ecx */
   4615     MEM32(ebx + 0x30) = ecx; /* 0x36089471: mov dword ptr [ebx + 0x30], ecx */
   4616     MEM32(ebx + 0x34) = ecx; /* 0x36089474: mov dword ptr [ebx + 0x34], ecx */
   4617     MEM32(ebx + 0x38) = ecx; /* 0x36089477: mov dword ptr [ebx + 0x38], ecx */
   4618     ebx = POP32_VAL(esp); /* 0x3608947A: pop ebx */
   4619     esp = ebp; /* 0x3608947B: mov esp, ebp */
   4620     ebp = POP32_VAL(esp); /* 0x3608947D: pop ebp */
   4621     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608947E: ret  */
   4622 L_3608947F:
   4623     /* cmp eax, edi */ /* 0x3608947F: cmp eax, edi */
   4624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4626     _flag_k = FK_CMP;
   4627     if (CMP_EQ(_flag_a, _flag_b)) goto L_360894A6; /* 0x36089481: je 0x360894a6 */
   4628 L_36089483:
   4629     ecx = ebp + (-0x8); /* 0x36089483: lea ecx, [ebp - 8] */
   4630     MEM32(ebp + (-0x4)) = eax; /* 0x36089486: mov dword ptr [ebp - 4], eax */
   4631     RECOMP_ICALL(0x360FF670u); /* 0x36089489: call 0x360ff670 */ /* not lifted */
   4632     RECOMP_FLAGS_IN();
   4633     ecx = MEM32(ebp + (-0x4)); /* 0x3608948E: mov ecx, dword ptr [ebp - 4] */
   4634     PUSH32(esp, ecx); /* 0x36089491: push ecx */
   4635     edx = ebp + (-0xC); /* 0x36089492: lea edx, [ebp - 0xc] */
   4636     PUSH32(esp, edx); /* 0x36089495: push edx */
   4637     ecx = esi; /* 0x36089496: mov ecx, esi */
   4638     RECOMP_ICALL(0x360E3330u); /* 0x36089498: call 0x360e3330 */ /* not lifted */
   4639     RECOMP_FLAGS_IN();
   4640     eax = MEM32(ebp + (-0x8)); /* 0x3608949D: mov eax, dword ptr [ebp - 8] */
   4641     /* cmp eax, edi */ /* 0x360894A0: cmp eax, edi */
   4642     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4644     _flag_k = FK_CMP;
   4645     RECOMP_BACKEDGE();
   4646     if (CMP_NE(_flag_a, _flag_b)) goto L_36089483; /* 0x360894A2: jne 0x36089483 */
   4647 L_360894A4:
   4648     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4649     ecx = 0; /* 0x360894A4: xor ecx, ecx */
   4650     _cf = 0;
   4651     _flag_k = FK_TEST;
   4652 L_360894A6:
   4653     edi = POP32_VAL(esp); /* 0x360894A6: pop edi */
   4654     esi = POP32_VAL(esp); /* 0x360894A7: pop esi */
   4655     MEM32(ebx + 0x2C) = ecx; /* 0x360894A8: mov dword ptr [ebx + 0x2c], ecx */
   4656     MEM32(ebx + 0x30) = ecx; /* 0x360894AB: mov dword ptr [ebx + 0x30], ecx */
   4657     MEM32(ebx + 0x34) = ecx; /* 0x360894AE: mov dword ptr [ebx + 0x34], ecx */
   4658     MEM32(ebx + 0x38) = ecx; /* 0x360894B1: mov dword ptr [ebx + 0x38], ecx */
   4659     ebx = POP32_VAL(esp); /* 0x360894B4: pop ebx */
   4660     esp = ebp; /* 0x360894B5: mov esp, ebp */
   4661     ebp = POP32_VAL(esp); /* 0x360894B7: pop ebp */
   4662     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360894B8: ret  */
   4663     RECOMP_REGS_OUT();
   4664 }
   4665 
   4666 void sub_360894C0(void) {
   4667     int _fpu_cmp = 0;
   4668     uint32_t _cf = 0;
   4669     int _df = 1;
   4670     uint32_t _flag_k = FK_NONE;
   4671     uint32_t _flag_a = 0, _flag_b = 0;
   4672     uint32_t _itail_tgt = 0;
   4673     RECOMP_REGS_LOCALS
   4674     RECOMP_ENTER(0x360894C0u);
   4675 
   4676 L_360894C0:
   4677     PUSH32(esp, ebp); /* 0x360894C0: push ebp */
   4678     ebp = esp; /* 0x360894C1: mov ebp, esp */
   4679     PUSH32(esp, 0xFFFFFFFFu); /* 0x360894C3: push -1 */
   4680     PUSH32(esp, 0x36165DBBu); /* 0x360894C5: push 0x36165dbb */
   4681     eax = MEM32(FS_BASE + (0)); /* 0x360894CA: mov eax, dword ptr fs:[0] */
   4682     PUSH32(esp, eax); /* 0x360894D0: push eax */
   4683     MEM32(FS_BASE + (0)) = esp; /* 0x360894D1: mov dword ptr fs:[0], esp */
   4684     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u);
   4685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4686     esp = esp - 0x44u; /* 0x360894D8: sub esp, 0x44 */
   4687     _flag_k = FK_CMP;
   4688     PUSH32(esp, ebx); /* 0x360894DB: push ebx */
   4689     PUSH32(esp, esi); /* 0x360894DC: push esi */
   4690     esi = MEM32(ecx); /* 0x360894DD: mov esi, dword ptr [ecx] */
   4691     PUSH32(esp, edi); /* 0x360894DF: push edi */
   4692     edi = MEM32(ebp + 0x8); /* 0x360894E0: mov edi, dword ptr [ebp + 8] */
   4693     PUSH32(esp, edi); /* 0x360894E3: push edi */
   4694     eax = ebp + 0x8; /* 0x360894E4: lea eax, [ebp + 8] */
   4695     MEM32(ebp + (-0x2C)) = ecx; /* 0x360894E7: mov dword ptr [ebp - 0x2c], ecx */
   4696     PUSH32(esp, eax); /* 0x360894EA: push eax */
   4697     ecx = esi + 0x10; /* 0x360894EB: lea ecx, [esi + 0x10] */
   4698     RECOMP_ICALL(0x36089F10u); /* 0x360894EE: call 0x36089f10 */ /* not lifted */
   4699     RECOMP_FLAGS_IN();
   4700     eax = MEM32(eax); /* 0x360894F3: mov eax, dword ptr [eax] */
   4701     ecx = MEM32(esi + 0x14); /* 0x360894F5: mov ecx, dword ptr [esi + 0x14] */
   4702     /* cmp eax, ecx */ /* 0x360894F8: cmp eax, ecx */
   4703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4705     _flag_k = FK_CMP;
   4706     if (CMP_EQ(_flag_a, _flag_b)) goto L_360895CB; /* 0x360894FA: je 0x360895cb */
   4707 L_36089500:
   4708     eax = MEM32(eax + 0x18); /* 0x36089500: mov eax, dword ptr [eax + 0x18] */
   4709     ecx = MEM32(esi + 0x4); /* 0x36089503: mov ecx, dword ptr [esi + 4] */
   4710     edx = eax + eax * 4; /* 0x36089506: lea edx, [eax + eax*4] */
   4711     eax = ecx + edx * 4; /* 0x36089509: lea eax, [ecx + edx*4] */
   4712     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x3608950C: mov byte ptr [eax + 0x10], 1 */
   4713     ecx = MEM32(esi + 0x30); /* 0x36089510: mov ecx, dword ptr [esi + 0x30] */
   4714     eax = MEM32(eax + 0xC); /* 0x36089513: mov eax, dword ptr [eax + 0xc] */
   4715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4716     ecx = ecx + 1; /* 0x36089516: inc ecx */
   4717     _flag_k = FK_INC;
   4718     /* test eax, eax */ /* 0x36089517: test eax, eax */
   4719     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4720     _cf = 0;
   4721     _flag_k = FK_TEST;
   4722     MEM32(esi + 0x30) = ecx; /* 0x36089519: mov dword ptr [esi + 0x30], ecx */
   4723     if (TEST_NZ(_flag_a, _flag_b)) goto L_360897FB; /* 0x3608951C: jne 0x360897fb */
   4724 L_36089522:
   4725     PUSH32(esp, 0x80u); /* 0x36089522: push 0x80 */
   4726     RECOMP_ICALL(0x3615FD6Au); /* 0x36089527: call 0x3615fd6a */ /* not lifted */
   4727     RECOMP_FLAGS_IN();
   4728     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4729     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4730     esp = esp + 4; /* 0x3608952C: add esp, 4 */
   4731     _flag_k = FK_ADD;
   4732     MEM32(ebp + 0x8) = eax; /* 0x3608952F: mov dword ptr [ebp + 8], eax */
   4733     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4734     ebx = 0; /* 0x36089532: xor ebx, ebx */
   4735     _cf = 0;
   4736     _flag_k = FK_TEST;
   4737     /* cmp eax, ebx */ /* 0x36089534: cmp eax, ebx */
   4738     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4740     _flag_k = FK_CMP;
   4741     MEM32(ebp + (-0x4)) = ebx; /* 0x36089536: mov dword ptr [ebp - 4], ebx */
   4742     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089544; /* 0x36089539: je 0x36089544 */
   4743 L_3608953B:
   4744     ecx = eax; /* 0x3608953B: mov ecx, eax */
   4745     RECOMP_ICALL(0x3608E780u); /* 0x3608953D: call 0x3608e780 */ /* not lifted */
   4746     RECOMP_FLAGS_IN();
   4747     ebx = eax; /* 0x36089542: mov ebx, eax */
   4748 L_36089544:
   4749     eax = MEM32(edi + 0x4); /* 0x36089544: mov eax, dword ptr [edi + 4] */
   4750     /* test eax, eax */ /* 0x36089547: test eax, eax */
   4751     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4752     _cf = 0;
   4753     _flag_k = FK_TEST;
   4754     ecx = MEM32(edi + 0x8); /* 0x36089549: mov ecx, dword ptr [edi + 8] */
   4755     esi = MEM32(edi); /* 0x3608954C: mov esi, dword ptr [edi] */
   4756     edx = 0x000F4254u; /* 0x3608954E: mov edx, 0xf4254 */
   4757     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36089553: mov dword ptr [ebp - 4], 0xffffffff */
   4758     MEM32(ebp + (-0x38)) = edx; /* 0x3608955A: mov dword ptr [ebp - 0x38], edx */
   4759     MEM32(ebp + (-0x34)) = eax; /* 0x3608955D: mov dword ptr [ebp - 0x34], eax */
   4760     MEM32(ebp + (-0x40)) = edx; /* 0x36089560: mov dword ptr [ebp - 0x40], edx */
   4761     MEM32(ebp + (-0x3C)) = ecx; /* 0x36089563: mov dword ptr [ebp - 0x3c], ecx */
   4762     MEM32(ebp + 0x8) = 0; /* 0x36089566: mov dword ptr [ebp + 8], 0 */
   4763     if (TEST_Z(_flag_a, _flag_b)) goto L_36089582; /* 0x3608956D: jbe 0x36089582 */
   4764 L_3608956F:
   4765     eax = ebp + (-0x38); /* 0x3608956F: lea eax, [ebp - 0x38] */
   4766     PUSH32(esp, eax); /* 0x36089572: push eax */
   4767     RECOMP_ICALL(0x360936A0u); /* 0x36089573: call 0x360936a0 */ /* not lifted */
   4768     RECOMP_FLAGS_IN();
   4769     ecx = eax; /* 0x36089578: mov ecx, eax */
   4770     RECOMP_ICALL(0x360930F0u); /* 0x3608957A: call 0x360930f0 */ /* not lifted */
   4771     RECOMP_FLAGS_IN();
   4772     MEM32(ebp + 0x8) = eax; /* 0x3608957F: mov dword ptr [ebp + 8], eax */
   4773 L_36089582:
   4774     eax = MEM32(edi + 0x8); /* 0x36089582: mov eax, dword ptr [edi + 8] */
   4775     /* test eax, eax */ /* 0x36089585: test eax, eax */
   4776     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4777     _cf = 0;
   4778     _flag_k = FK_TEST;
   4779     MEM32(ebp + (-0x10)) = 0; /* 0x36089587: mov dword ptr [ebp - 0x10], 0 */
   4780     if (TEST_Z(_flag_a, _flag_b)) goto L_360895A3; /* 0x3608958E: jbe 0x360895a3 */
   4781 L_36089590:
   4782     ecx = ebp + (-0x40); /* 0x36089590: lea ecx, [ebp - 0x40] */
   4783     PUSH32(esp, ecx); /* 0x36089593: push ecx */
   4784     RECOMP_ICALL(0x360936A0u); /* 0x36089594: call 0x360936a0 */ /* not lifted */
   4785     RECOMP_FLAGS_IN();
   4786     ecx = eax; /* 0x36089599: mov ecx, eax */
   4787     RECOMP_ICALL(0x360930F0u); /* 0x3608959B: call 0x360930f0 */ /* not lifted */
   4788     RECOMP_FLAGS_IN();
   4789     MEM32(ebp + (-0x10)) = eax; /* 0x360895A0: mov dword ptr [ebp - 0x10], eax */
   4790 L_360895A3:
   4791     eax = MEM32(ebp + 0x8); /* 0x360895A3: mov eax, dword ptr [ebp + 8] */
   4792     /* test eax, eax */ /* 0x360895A6: test eax, eax */
   4793     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4794     _cf = 0;
   4795     _flag_k = FK_TEST;
   4796     if (TEST_NZ(_flag_a, _flag_b)) goto L_360895D3; /* 0x360895A8: jne 0x360895d3 */
   4797 L_360895AA:
   4798     /* test ebx, ebx */ /* 0x360895AA: test ebx, ebx */
   4799     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4800     _cf = 0;
   4801     _flag_k = FK_TEST;
   4802     if (TEST_Z(_flag_a, _flag_b)) goto L_360895B6; /* 0x360895AC: je 0x360895b6 */
   4803 L_360895AE:
   4804     edx = MEM32(ebx); /* 0x360895AE: mov edx, dword ptr [ebx] */
   4805     PUSH32(esp, 1); /* 0x360895B0: push 1 */
   4806     ecx = ebx; /* 0x360895B2: mov ecx, ebx */
   4807     RECOMP_ICALL(MEM32(edx)); /* 0x360895B4: call dword ptr [edx] */
   4808     RECOMP_FLAGS_IN();
   4809 L_360895B6:
   4810     edi = POP32_VAL(esp); /* 0x360895B6: pop edi */
   4811     esi = POP32_VAL(esp); /* 0x360895B7: pop esi */
   4812     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4813     eax = 0; /* 0x360895B8: xor eax, eax */
   4814     _cf = 0;
   4815     _flag_k = FK_TEST;
   4816     ebx = POP32_VAL(esp); /* 0x360895BA: pop ebx */
   4817     ecx = MEM32(ebp + (-0xC)); /* 0x360895BB: mov ecx, dword ptr [ebp - 0xc] */
   4818     MEM32(FS_BASE + (0)) = ecx; /* 0x360895BE: mov dword ptr fs:[0], ecx */
   4819     esp = ebp; /* 0x360895C5: mov esp, ebp */
   4820     ebp = POP32_VAL(esp); /* 0x360895C7: pop ebp */
   4821     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360895C8: ret 4 */
   4822 L_360895CB:
   4823     _flag_a = (uint32_t)(MEM32(esi + 0x34)); _flag_b = (uint32_t)(1);
   4824     MEM32(esi + 0x34) = MEM32(esi + 0x34) + 1; /* 0x360895CB: inc dword ptr [esi + 0x34] */
   4825     _flag_k = FK_INC;
   4826     RECOMP_BACKEDGE();
   4827     goto L_36089522; /* 0x360895CE: jmp 0x36089522 */
   4828 L_360895D3:
   4829     eax = MEM32(ebx); /* 0x360895D3: mov eax, dword ptr [ebx] */
   4830     PUSH32(esp, 0x000F4254u); /* 0x360895D5: push 0xf4254 */
   4831     PUSH32(esp, 0x19u); /* 0x360895DA: push 0x19 */
   4832     ecx = ebx; /* 0x360895DC: mov ecx, ebx */
   4833     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360895DE: call dword ptr [eax + 8] */
   4834     RECOMP_FLAGS_IN();
   4835     eax = MEM32(ebp + (-0x10)); /* 0x360895E1: mov eax, dword ptr [ebp - 0x10] */
   4836     /* test eax, eax */ /* 0x360895E4: test eax, eax */
   4837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4838     _cf = 0;
   4839     _flag_k = FK_TEST;
   4840     if (TEST_Z(_flag_a, _flag_b)) goto L_36089629; /* 0x360895E6: je 0x36089629 */
   4841 L_360895E8:
   4842     ecx = MEM32(ebp + 0x8); /* 0x360895E8: mov ecx, dword ptr [ebp + 8] */
   4843     edx = MEM32(ecx); /* 0x360895EB: mov edx, dword ptr [ecx] */
   4844     PUSH32(esp, 2); /* 0x360895ED: push 2 */
   4845     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFu);
   4846     esi = esi & 0xFFFFu; /* 0x360895EF: and esi, 0xffff */
   4847     _cf = 0;
   4848     _flag_k = FK_TEST;
   4849     PUSH32(esp, 0x36u); /* 0x360895F5: push 0x36 */
   4850     MEM32(ebp + (-0x24)) = esi; /* 0x360895F7: mov dword ptr [ebp - 0x24], esi */
   4851     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360895FA: call dword ptr [edx + 4] */
   4852     RECOMP_FLAGS_IN();
   4853     ecx = MEM32(ebp + (-0x10)); /* 0x360895FD: mov ecx, dword ptr [ebp - 0x10] */
   4854     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4856     esi = esi - eax; /* 0x36089600: sub esi, eax */
   4857     _flag_k = FK_CMP;
   4858     eax = esi; /* 0x36089602: mov eax, esi */
   4859     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36089604: cdq  */
   4860     esi = eax; /* 0x36089605: mov esi, eax */
   4861     eax = MEM32(ecx); /* 0x36089607: mov eax, dword ptr [ecx] */
   4862     PUSH32(esp, 2); /* 0x36089609: push 2 */
   4863     _flag_a = (uint32_t)((esi ^ edx)); _flag_b = (uint32_t)((esi ^ edx));
   4864     esi = esi ^ edx; /* 0x3608960B: xor esi, edx */
   4865     _cf = 0;
   4866     _flag_k = FK_TEST;
   4867     PUSH32(esp, 0x36u); /* 0x3608960D: push 0x36 */
   4868     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   4869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4870     esi = esi - edx; /* 0x3608960F: sub esi, edx */
   4871     _flag_k = FK_CMP;
   4872     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36089611: call dword ptr [eax + 4] */
   4873     RECOMP_FLAGS_IN();
   4874     ecx = MEM32(ebp + (-0x24)); /* 0x36089614: mov ecx, dword ptr [ebp - 0x24] */
   4875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4877     ecx = ecx - eax; /* 0x36089617: sub ecx, eax */
   4878     _flag_k = FK_CMP;
   4879     eax = ecx; /* 0x36089619: mov eax, ecx */
   4880     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3608961B: cdq  */
   4881     _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx));
   4882     eax = eax ^ edx; /* 0x3608961C: xor eax, edx */
   4883     _cf = 0;
   4884     _flag_k = FK_TEST;
   4885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   4886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4887     eax = eax - edx; /* 0x3608961E: sub eax, edx */
   4888     _flag_k = FK_CMP;
   4889     /* cmp esi, eax */ /* 0x36089620: cmp esi, eax */
   4890     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4892     _flag_k = FK_CMP;
   4893     if (CMP_L(_flag_a, _flag_b)) goto L_36089629; /* 0x36089622: jl 0x36089629 */
   4894 L_36089624:
   4895     eax = MEM32(edi + 0x8); /* 0x36089624: mov eax, dword ptr [edi + 8] */
   4896     goto L_3608962C; /* 0x36089627: jmp 0x3608962c */
   4897 L_36089629:
   4898     eax = MEM32(edi + 0x4); /* 0x36089629: mov eax, dword ptr [edi + 4] */
   4899 L_3608962C:
   4900     edx = MEM32(ebx); /* 0x3608962C: mov edx, dword ptr [ebx] */
   4901     PUSH32(esp, eax); /* 0x3608962E: push eax */
   4902     PUSH32(esp, 0x17u); /* 0x3608962F: push 0x17 */
   4903     ecx = ebx; /* 0x36089631: mov ecx, ebx */
   4904     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36089633: call dword ptr [edx + 8] */
   4905     RECOMP_FLAGS_IN();
   4906     ecx = ebx; /* 0x36089636: mov ecx, ebx */
   4907     RECOMP_ICALL(0x3608F430u); /* 0x36089638: call 0x3608f430 */ /* not lifted */
   4908     RECOMP_FLAGS_IN();
   4909     /* test LO8(eax), LO8(eax) */ /* 0x3608963D: test al, al */
   4910     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4911     _cf = 0;
   4912     _flag_k = FK_NARROW(FK_TEST, 24);
   4913     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089662; /* 0x3608963F: jne 0x36089662 */
   4914 L_36089641:
   4915     /* test ebx, ebx */ /* 0x36089641: test ebx, ebx */
   4916     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4917     _cf = 0;
   4918     _flag_k = FK_TEST;
   4919     if (TEST_Z(_flag_a, _flag_b)) goto L_3608964D; /* 0x36089643: je 0x3608964d */
   4920 L_36089645:
   4921     eax = MEM32(ebx); /* 0x36089645: mov eax, dword ptr [ebx] */
   4922     PUSH32(esp, 1); /* 0x36089647: push 1 */
   4923     ecx = ebx; /* 0x36089649: mov ecx, ebx */
   4924     RECOMP_ICALL(MEM32(eax)); /* 0x3608964B: call dword ptr [eax] */
   4925     RECOMP_FLAGS_IN();
   4926 L_3608964D:
   4927     edi = POP32_VAL(esp); /* 0x3608964D: pop edi */
   4928     esi = POP32_VAL(esp); /* 0x3608964E: pop esi */
   4929     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4930     eax = 0; /* 0x3608964F: xor eax, eax */
   4931     _cf = 0;
   4932     _flag_k = FK_TEST;
   4933     ebx = POP32_VAL(esp); /* 0x36089651: pop ebx */
   4934     ecx = MEM32(ebp + (-0xC)); /* 0x36089652: mov ecx, dword ptr [ebp - 0xc] */
   4935     MEM32(FS_BASE + (0)) = ecx; /* 0x36089655: mov dword ptr fs:[0], ecx */
   4936     esp = ebp; /* 0x3608965C: mov esp, ebp */
   4937     ebp = POP32_VAL(esp); /* 0x3608965E: pop ebp */
   4938     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608965F: ret 4 */
   4939 L_36089662:
   4940     eax = MEM32(edi + 0x4); /* 0x36089662: mov eax, dword ptr [edi + 4] */
   4941     edx = MEM32(ebx); /* 0x36089665: mov edx, dword ptr [ebx] */
   4942     PUSH32(esp, eax); /* 0x36089667: push eax */
   4943     PUSH32(esp, 0x2BEu); /* 0x36089668: push 0x2be */
   4944     ecx = ebx; /* 0x3608966D: mov ecx, ebx */
   4945     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608966F: call dword ptr [edx + 8] */
   4946     RECOMP_FLAGS_IN();
   4947     eax = MEM32(edi + 0x8); /* 0x36089672: mov eax, dword ptr [edi + 8] */
   4948     edx = MEM32(ebx); /* 0x36089675: mov edx, dword ptr [ebx] */
   4949     PUSH32(esp, eax); /* 0x36089677: push eax */
   4950     PUSH32(esp, 0x2BFu); /* 0x36089678: push 0x2bf */
   4951     ecx = ebx; /* 0x3608967D: mov ecx, ebx */
   4952     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608967F: call dword ptr [edx + 8] */
   4953     RECOMP_FLAGS_IN();
   4954     eax = MEM32(edi); /* 0x36089682: mov eax, dword ptr [edi] */
   4955     edx = MEM32(ebx); /* 0x36089684: mov edx, dword ptr [ebx] */
   4956     PUSH32(esp, eax); /* 0x36089686: push eax */
   4957     PUSH32(esp, 0x2BDu); /* 0x36089687: push 0x2bd */
   4958     ecx = ebx; /* 0x3608968C: mov ecx, ebx */
   4959     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608968E: call dword ptr [edx + 8] */
   4960     RECOMP_FLAGS_IN();
   4961     PUSH32(esp, ebx); /* 0x36089691: push ebx */
   4962     RECOMP_ICALL(0x360F0E90u); /* 0x36089692: call 0x360f0e90 */ /* not lifted */
   4963     RECOMP_FLAGS_IN();
   4964     ecx = eax; /* 0x36089697: mov ecx, eax */
   4965     RECOMP_ICALL(0x360F1200u); /* 0x36089699: call 0x360f1200 */ /* not lifted */
   4966     RECOMP_FLAGS_IN();
   4967     ecx = MEM32(ebp + (-0x2C)); /* 0x3608969E: mov ecx, dword ptr [ebp - 0x2c] */
   4968     esi = MEM32(ecx); /* 0x360896A1: mov esi, dword ptr [ecx] */
   4969     eax = MEM32(esi + 0x2C); /* 0x360896A3: mov eax, dword ptr [esi + 0x2c] */
   4970     /* cmp eax, MEM32(esi + 0x28) */ /* 0x360896A6: cmp eax, dword ptr [esi + 0x28] */
   4971     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x28));
   4972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4973     _flag_k = FK_CMP;
   4974     if (CMP_AE(_flag_a, _flag_b)) goto L_36089721; /* 0x360896A9: jae 0x36089721 */
   4975 L_360896AB:
   4976     MEM32(esi + 0x24) = eax; /* 0x360896AB: mov dword ptr [esi + 0x24], eax */
   4977     edx = edi; /* 0x360896AE: mov edx, edi */
   4978     eax = MEM32(edx); /* 0x360896B0: mov eax, dword ptr [edx] */
   4979     ecx = MEM32(edx + 0x4); /* 0x360896B2: mov ecx, dword ptr [edx + 4] */
   4980     edx = MEM32(edx + 0x8); /* 0x360896B5: mov edx, dword ptr [edx + 8] */
   4981     MEM32(ebp + (-0x20)) = eax; /* 0x360896B8: mov dword ptr [ebp - 0x20], eax */
   4982     MEM32(ebp + (-0x1C)) = ecx; /* 0x360896BB: mov dword ptr [ebp - 0x1c], ecx */
   4983     ecx = MEM32(esi + 0x8); /* 0x360896BE: mov ecx, dword ptr [esi + 8] */
   4984     eax = ebp + (-0x20); /* 0x360896C1: lea eax, [ebp - 0x20] */
   4985     PUSH32(esp, eax); /* 0x360896C4: push eax */
   4986     PUSH32(esp, ecx); /* 0x360896C5: push ecx */
   4987     ecx = esi; /* 0x360896C6: mov ecx, esi */
   4988     MEM32(ebp + (-0x18)) = edx; /* 0x360896C8: mov dword ptr [ebp - 0x18], edx */
   4989     MEM32(ebp + (-0x14)) = ebx; /* 0x360896CB: mov dword ptr [ebp - 0x14], ebx */
   4990     MEM8(ebp + (-0x10)) = (uint8_t)(1); /* 0x360896CE: mov byte ptr [ebp - 0x10], 1 */
   4991     RECOMP_ICALL(0x36089970u); /* 0x360896D2: call 0x36089970 */ /* not lifted */
   4992     RECOMP_FLAGS_IN();
   4993     eax = MEM32(edi + 0x4); /* 0x360896D7: mov eax, dword ptr [edi + 4] */
   4994     ecx = MEM32(edi + 0x8); /* 0x360896DA: mov ecx, dword ptr [edi + 8] */
   4995     edx = MEM32(edi); /* 0x360896DD: mov edx, dword ptr [edi] */
   4996     MEM32(ebp + (-0x18)) = eax; /* 0x360896DF: mov dword ptr [ebp - 0x18], eax */
   4997     MEM32(ebp + (-0x14)) = ecx; /* 0x360896E2: mov dword ptr [ebp - 0x14], ecx */
   4998     eax = ebp + (-0x1C); /* 0x360896E5: lea eax, [ebp - 0x1c] */
   4999     PUSH32(esp, eax); /* 0x360896E8: push eax */
   5000     ecx = ebp + (-0x28); /* 0x360896E9: lea ecx, [ebp - 0x28] */
   5001     MEM32(ebp + (-0x1C)) = edx; /* 0x360896EC: mov dword ptr [ebp - 0x1c], edx */
   5002     edx = MEM32(esi + 0x24); /* 0x360896EF: mov edx, dword ptr [esi + 0x24] */
   5003     PUSH32(esp, ecx); /* 0x360896F2: push ecx */
   5004     ecx = esi + 0x10; /* 0x360896F3: lea ecx, [esi + 0x10] */
   5005     MEM32(ebp + (-0x10)) = edx; /* 0x360896F6: mov dword ptr [ebp - 0x10], edx */
   5006     RECOMP_ICALL(0x36089BD0u); /* 0x360896F9: call 0x36089bd0 */ /* not lifted */
   5007     RECOMP_FLAGS_IN();
   5008     edx = MEM32(eax); /* 0x360896FE: mov edx, dword ptr [eax] */
   5009     MEM32(ebp + (-0x30)) = edx; /* 0x36089700: mov dword ptr [ebp - 0x30], edx */
   5010     eax = MEM32(eax + 0x4); /* 0x36089703: mov eax, dword ptr [eax + 4] */
   5011     ecx = ebp + (-0x2C); /* 0x36089706: lea ecx, [ebp - 0x2c] */
   5012     PUSH32(esp, ecx); /* 0x36089709: push ecx */
   5013     edx = ebp + (-0x30); /* 0x3608970A: lea edx, [ebp - 0x30] */
   5014     PUSH32(esp, edx); /* 0x3608970D: push edx */
   5015     ecx = ebp + (-0x28); /* 0x3608970E: lea ecx, [ebp - 0x28] */
   5016     MEM32(ebp + (-0x2C)) = eax; /* 0x36089711: mov dword ptr [ebp - 0x2c], eax */
   5017     RECOMP_ICALL(0x3614FCB0u); /* 0x36089714: call 0x3614fcb0 */ /* not lifted */
   5018     RECOMP_FLAGS_IN();
   5019     _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1);
   5020     MEM32(esi + 0x2C) = MEM32(esi + 0x2C) + 1; /* 0x36089719: inc dword ptr [esi + 0x2c] */
   5021     _flag_k = FK_INC;
   5022     goto L_360897F6; /* 0x3608971C: jmp 0x360897f6 */
   5023 L_36089721:
   5024     edx = MEM32(esi + 0x24); /* 0x36089721: mov edx, dword ptr [esi + 0x24] */
   5025     ecx = MEM32(esi + 0x28); /* 0x36089724: mov ecx, dword ptr [esi + 0x28] */
   5026     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5027     edx = edx + 1; /* 0x36089727: inc edx */
   5028     _flag_k = FK_INC;
   5029     eax = edx; /* 0x36089728: mov eax, edx */
   5030     /* cmp eax, ecx */ /* 0x3608972A: cmp eax, ecx */
   5031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5033     _flag_k = FK_CMP;
   5034     MEM32(esi + 0x24) = edx; /* 0x3608972C: mov dword ptr [esi + 0x24], edx */
   5035     if (CMP_B(_flag_a, _flag_b)) goto L_36089738; /* 0x3608972F: jb 0x36089738 */
   5036 L_36089731:
   5037     MEM32(esi + 0x24) = 0; /* 0x36089731: mov dword ptr [esi + 0x24], 0 */
   5038 L_36089738:
   5039     eax = MEM32(esi + 0x24); /* 0x36089738: mov eax, dword ptr [esi + 0x24] */
   5040     ecx = MEM32(esi + 0x4); /* 0x3608973B: mov ecx, dword ptr [esi + 4] */
   5041     eax = eax + eax * 4; /* 0x3608973E: lea eax, [eax + eax*4] */
   5042     eax = ecx + eax * 4 + 0x10; /* 0x36089741: lea eax, [ecx + eax*4 + 0x10] */
   5043     /* cmp MEM8(eax), 0 */ /* 0x36089745: cmp byte ptr [eax], 0 */
   5044     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   5045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5046     _flag_k = FK_NARROW(FK_CMP, 24);
   5047     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608974F; /* 0x36089748: je 0x3608974f */
   5048 L_3608974A:
   5049     MEM8(eax) = (uint8_t)(0); /* 0x3608974A: mov byte ptr [eax], 0 */
   5050     RECOMP_BACKEDGE();
   5051     goto L_36089721; /* 0x3608974D: jmp 0x36089721 */
   5052 L_3608974F:
   5053     eax = MEM32(esi + 0x24); /* 0x3608974F: mov eax, dword ptr [esi + 0x24] */
   5054     edx = eax + eax * 4; /* 0x36089752: lea edx, [eax + eax*4] */
   5055     eax = MEM32(esi + 0x4); /* 0x36089755: mov eax, dword ptr [esi + 4] */
   5056     eax = eax + edx * 4; /* 0x36089758: lea eax, [eax + edx*4] */
   5057     PUSH32(esp, eax); /* 0x3608975B: push eax */
   5058     edx = ebp + (-0x14); /* 0x3608975C: lea edx, [ebp - 0x14] */
   5059     ecx = esi + 0x10; /* 0x3608975F: lea ecx, [esi + 0x10] */
   5060     PUSH32(esp, edx); /* 0x36089762: push edx */
   5061     MEM32(ebp + 0x8) = eax; /* 0x36089763: mov dword ptr [ebp + 8], eax */
   5062     RECOMP_ICALL(0x36089FA0u); /* 0x36089766: call 0x36089fa0 */ /* not lifted */
   5063     RECOMP_FLAGS_IN();
   5064     ecx = eax; /* 0x3608976B: mov ecx, eax */
   5065     eax = MEM32(ecx); /* 0x3608976D: mov eax, dword ptr [ecx] */
   5066     ecx = MEM32(ecx + 0x4); /* 0x3608976F: mov ecx, dword ptr [ecx + 4] */
   5067     edx = ebp + (-0x2C); /* 0x36089772: lea edx, [ebp - 0x2c] */
   5068     PUSH32(esp, edx); /* 0x36089775: push edx */
   5069     PUSH32(esp, ecx); /* 0x36089776: push ecx */
   5070     PUSH32(esp, eax); /* 0x36089777: push eax */
   5071     MEM32(ebp + (-0x28)) = eax; /* 0x36089778: mov dword ptr [ebp - 0x28], eax */
   5072     MEM32(ebp + (-0x24)) = ecx; /* 0x3608977B: mov dword ptr [ebp - 0x24], ecx */
   5073     MEM32(ebp + (-0x2C)) = 0; /* 0x3608977E: mov dword ptr [ebp - 0x2c], 0 */
   5074     RECOMP_ICALL(0x3608A350u); /* 0x36089785: call 0x3608a350 */ /* not lifted */
   5075     RECOMP_FLAGS_IN();
   5076     eax = MEM32(ebp + (-0x24)); /* 0x3608978A: mov eax, dword ptr [ebp - 0x24] */
   5077     ecx = MEM32(ebp + (-0x28)); /* 0x3608978D: mov ecx, dword ptr [ebp - 0x28] */
   5078     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5079     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5080     esp = esp + 0xCu; /* 0x36089790: add esp, 0xc */
   5081     _flag_k = FK_ADD;
   5082     PUSH32(esp, eax); /* 0x36089793: push eax */
   5083     PUSH32(esp, ecx); /* 0x36089794: push ecx */
   5084     edx = ebp + (-0x24); /* 0x36089795: lea edx, [ebp - 0x24] */
   5085     PUSH32(esp, edx); /* 0x36089798: push edx */
   5086     ecx = esi + 0x10; /* 0x36089799: lea ecx, [esi + 0x10] */
   5087     RECOMP_ICALL(0x36089E60u); /* 0x3608979C: call 0x36089e60 */ /* not lifted */
   5088     RECOMP_FLAGS_IN();
   5089     eax = MEM32(ebp + 0x8); /* 0x360897A1: mov eax, dword ptr [ebp + 8] */
   5090     ecx = MEM32(eax + 0xC); /* 0x360897A4: mov ecx, dword ptr [eax + 0xc] */
   5091     /* test ecx, ecx */ /* 0x360897A7: test ecx, ecx */
   5092     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5093     _cf = 0;
   5094     _flag_k = FK_TEST;
   5095     if (TEST_Z(_flag_a, _flag_b)) goto L_360897B1; /* 0x360897A9: je 0x360897b1 */
   5096 L_360897AB:
   5097     edx = MEM32(ecx); /* 0x360897AB: mov edx, dword ptr [ecx] */
   5098     PUSH32(esp, 1); /* 0x360897AD: push 1 */
   5099     RECOMP_ICALL(MEM32(edx)); /* 0x360897AF: call dword ptr [edx] */
   5100     RECOMP_FLAGS_IN();
   5101 L_360897B1:
   5102     ecx = MEM32(ebp + 0x8); /* 0x360897B1: mov ecx, dword ptr [ebp + 8] */
   5103     eax = edi; /* 0x360897B4: mov eax, edi */
   5104     edx = MEM32(eax); /* 0x360897B6: mov edx, dword ptr [eax] */
   5105     MEM32(ecx) = edx; /* 0x360897B8: mov dword ptr [ecx], edx */
   5106     edx = MEM32(eax + 0x4); /* 0x360897BA: mov edx, dword ptr [eax + 4] */
   5107     MEM32(ecx + 0x4) = edx; /* 0x360897BD: mov dword ptr [ecx + 4], edx */
   5108     eax = MEM32(eax + 0x8); /* 0x360897C0: mov eax, dword ptr [eax + 8] */
   5109     MEM32(ecx + 0x8) = eax; /* 0x360897C3: mov dword ptr [ecx + 8], eax */
   5110     eax = ecx; /* 0x360897C6: mov eax, ecx */
   5111     MEM32(eax + 0xC) = ebx; /* 0x360897C8: mov dword ptr [eax + 0xc], ebx */
   5112     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x360897CB: mov byte ptr [eax + 0x10], 1 */
   5113     edx = MEM32(edi + 0x4); /* 0x360897CF: mov edx, dword ptr [edi + 4] */
   5114     ecx = MEM32(edi); /* 0x360897D2: mov ecx, dword ptr [edi] */
   5115     eax = MEM32(edi + 0x8); /* 0x360897D4: mov eax, dword ptr [edi + 8] */
   5116     MEM32(ebp + (-0x50)) = ecx; /* 0x360897D7: mov dword ptr [ebp - 0x50], ecx */
   5117     ecx = MEM32(esi + 0x24); /* 0x360897DA: mov ecx, dword ptr [esi + 0x24] */
   5118     MEM32(ebp + (-0x4C)) = edx; /* 0x360897DD: mov dword ptr [ebp - 0x4c], edx */
   5119     edx = ebp + (-0x50); /* 0x360897E0: lea edx, [ebp - 0x50] */
   5120     MEM32(ebp + (-0x48)) = eax; /* 0x360897E3: mov dword ptr [ebp - 0x48], eax */
   5121     PUSH32(esp, edx); /* 0x360897E6: push edx */
   5122     eax = ebp + (-0x30); /* 0x360897E7: lea eax, [ebp - 0x30] */
   5123     MEM32(ebp + (-0x44)) = ecx; /* 0x360897EA: mov dword ptr [ebp - 0x44], ecx */
   5124     PUSH32(esp, eax); /* 0x360897ED: push eax */
   5125     ecx = esi + 0x10; /* 0x360897EE: lea ecx, [esi + 0x10] */
   5126     RECOMP_ICALL(0x36089BD0u); /* 0x360897F1: call 0x36089bd0 */ /* not lifted */
   5127     RECOMP_FLAGS_IN();
   5128 L_360897F6:
   5129     _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1);
   5130     MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x360897F6: inc dword ptr [esi + 0x38] */
   5131     _flag_k = FK_INC;
   5132     eax = ebx; /* 0x360897F9: mov eax, ebx */
   5133 L_360897FB:
   5134     ecx = MEM32(ebp + (-0xC)); /* 0x360897FB: mov ecx, dword ptr [ebp - 0xc] */
   5135     edi = POP32_VAL(esp); /* 0x360897FE: pop edi */
   5136     esi = POP32_VAL(esp); /* 0x360897FF: pop esi */
   5137     ebx = POP32_VAL(esp); /* 0x36089800: pop ebx */
   5138     MEM32(FS_BASE + (0)) = ecx; /* 0x36089801: mov dword ptr fs:[0], ecx */
   5139     esp = ebp; /* 0x36089808: mov esp, ebp */
   5140     ebp = POP32_VAL(esp); /* 0x3608980A: pop ebp */
   5141     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608980B: ret 4 */
   5142     RECOMP_REGS_OUT();
   5143 }
   5144 
   5145 void sub_36089522(void) {
   5146     int _fpu_cmp = 0;
   5147     uint32_t _cf = 0;
   5148     int _df = 1;
   5149     uint32_t _flag_k = FK_NONE;
   5150     uint32_t _flag_a = 0, _flag_b = 0;
   5151     uint32_t _itail_tgt = 0;
   5152     RECOMP_REGS_LOCALS
   5153     RECOMP_ENTER(0x36089522u);
   5154 
   5155 L_36089522:
   5156     PUSH32(esp, 0x80u); /* 0x36089522: push 0x80 */
   5157     RECOMP_ICALL(0x3615FD6Au); /* 0x36089527: call 0x3615fd6a */ /* not lifted */
   5158     RECOMP_FLAGS_IN();
   5159     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5161     esp = esp + 4; /* 0x3608952C: add esp, 4 */
   5162     _flag_k = FK_ADD;
   5163     MEM32(ebp + 0x8) = eax; /* 0x3608952F: mov dword ptr [ebp + 8], eax */
   5164     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5165     ebx = 0; /* 0x36089532: xor ebx, ebx */
   5166     _cf = 0;
   5167     _flag_k = FK_TEST;
   5168     /* cmp eax, ebx */ /* 0x36089534: cmp eax, ebx */
   5169     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5171     _flag_k = FK_CMP;
   5172     MEM32(ebp + (-0x4)) = ebx; /* 0x36089536: mov dword ptr [ebp - 4], ebx */
   5173     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089544; /* 0x36089539: je 0x36089544 */
   5174 L_3608953B:
   5175     ecx = eax; /* 0x3608953B: mov ecx, eax */
   5176     RECOMP_ICALL(0x3608E780u); /* 0x3608953D: call 0x3608e780 */ /* not lifted */
   5177     RECOMP_FLAGS_IN();
   5178     ebx = eax; /* 0x36089542: mov ebx, eax */
   5179 L_36089544:
   5180     eax = MEM32(edi + 0x4); /* 0x36089544: mov eax, dword ptr [edi + 4] */
   5181     /* test eax, eax */ /* 0x36089547: test eax, eax */
   5182     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5183     _cf = 0;
   5184     _flag_k = FK_TEST;
   5185     ecx = MEM32(edi + 0x8); /* 0x36089549: mov ecx, dword ptr [edi + 8] */
   5186     esi = MEM32(edi); /* 0x3608954C: mov esi, dword ptr [edi] */
   5187     edx = 0x000F4254u; /* 0x3608954E: mov edx, 0xf4254 */
   5188     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36089553: mov dword ptr [ebp - 4], 0xffffffff */
   5189     MEM32(ebp + (-0x38)) = edx; /* 0x3608955A: mov dword ptr [ebp - 0x38], edx */
   5190     MEM32(ebp + (-0x34)) = eax; /* 0x3608955D: mov dword ptr [ebp - 0x34], eax */
   5191     MEM32(ebp + (-0x40)) = edx; /* 0x36089560: mov dword ptr [ebp - 0x40], edx */
   5192     MEM32(ebp + (-0x3C)) = ecx; /* 0x36089563: mov dword ptr [ebp - 0x3c], ecx */
   5193     MEM32(ebp + 0x8) = 0; /* 0x36089566: mov dword ptr [ebp + 8], 0 */
   5194     if (TEST_Z(_flag_a, _flag_b)) goto L_36089582; /* 0x3608956D: jbe 0x36089582 */
   5195 L_3608956F:
   5196     eax = ebp + (-0x38); /* 0x3608956F: lea eax, [ebp - 0x38] */
   5197     PUSH32(esp, eax); /* 0x36089572: push eax */
   5198     RECOMP_ICALL(0x360936A0u); /* 0x36089573: call 0x360936a0 */ /* not lifted */
   5199     RECOMP_FLAGS_IN();
   5200     ecx = eax; /* 0x36089578: mov ecx, eax */
   5201     RECOMP_ICALL(0x360930F0u); /* 0x3608957A: call 0x360930f0 */ /* not lifted */
   5202     RECOMP_FLAGS_IN();
   5203     MEM32(ebp + 0x8) = eax; /* 0x3608957F: mov dword ptr [ebp + 8], eax */
   5204 L_36089582:
   5205     eax = MEM32(edi + 0x8); /* 0x36089582: mov eax, dword ptr [edi + 8] */
   5206     /* test eax, eax */ /* 0x36089585: test eax, eax */
   5207     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5208     _cf = 0;
   5209     _flag_k = FK_TEST;
   5210     MEM32(ebp + (-0x10)) = 0; /* 0x36089587: mov dword ptr [ebp - 0x10], 0 */
   5211     if (TEST_Z(_flag_a, _flag_b)) goto L_360895A3; /* 0x3608958E: jbe 0x360895a3 */
   5212 L_36089590:
   5213     ecx = ebp + (-0x40); /* 0x36089590: lea ecx, [ebp - 0x40] */
   5214     PUSH32(esp, ecx); /* 0x36089593: push ecx */
   5215     RECOMP_ICALL(0x360936A0u); /* 0x36089594: call 0x360936a0 */ /* not lifted */
   5216     RECOMP_FLAGS_IN();
   5217     ecx = eax; /* 0x36089599: mov ecx, eax */
   5218     RECOMP_ICALL(0x360930F0u); /* 0x3608959B: call 0x360930f0 */ /* not lifted */
   5219     RECOMP_FLAGS_IN();
   5220     MEM32(ebp + (-0x10)) = eax; /* 0x360895A0: mov dword ptr [ebp - 0x10], eax */
   5221 L_360895A3:
   5222     eax = MEM32(ebp + 0x8); /* 0x360895A3: mov eax, dword ptr [ebp + 8] */
   5223     /* test eax, eax */ /* 0x360895A6: test eax, eax */
   5224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5225     _cf = 0;
   5226     _flag_k = FK_TEST;
   5227     if (TEST_NZ(_flag_a, _flag_b)) goto L_360895D3; /* 0x360895A8: jne 0x360895d3 */
   5228 L_360895AA:
   5229     /* test ebx, ebx */ /* 0x360895AA: test ebx, ebx */
   5230     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5231     _cf = 0;
   5232     _flag_k = FK_TEST;
   5233     if (TEST_Z(_flag_a, _flag_b)) goto L_360895B6; /* 0x360895AC: je 0x360895b6 */
   5234 L_360895AE:
   5235     edx = MEM32(ebx); /* 0x360895AE: mov edx, dword ptr [ebx] */
   5236     PUSH32(esp, 1); /* 0x360895B0: push 1 */
   5237     ecx = ebx; /* 0x360895B2: mov ecx, ebx */
   5238     RECOMP_ICALL(MEM32(edx)); /* 0x360895B4: call dword ptr [edx] */
   5239     RECOMP_FLAGS_IN();
   5240 L_360895B6:
   5241     edi = POP32_VAL(esp); /* 0x360895B6: pop edi */
   5242     esi = POP32_VAL(esp); /* 0x360895B7: pop esi */
   5243     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5244     eax = 0; /* 0x360895B8: xor eax, eax */
   5245     _cf = 0;
   5246     _flag_k = FK_TEST;
   5247     ebx = POP32_VAL(esp); /* 0x360895BA: pop ebx */
   5248     ecx = MEM32(ebp + (-0xC)); /* 0x360895BB: mov ecx, dword ptr [ebp - 0xc] */
   5249     MEM32(FS_BASE + (0)) = ecx; /* 0x360895BE: mov dword ptr fs:[0], ecx */
   5250     esp = ebp; /* 0x360895C5: mov esp, ebp */
   5251     ebp = POP32_VAL(esp); /* 0x360895C7: pop ebp */
   5252     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360895C8: ret 4 */
   5253 L_360895D3:
   5254     eax = MEM32(ebx); /* 0x360895D3: mov eax, dword ptr [ebx] */
   5255     PUSH32(esp, 0x000F4254u); /* 0x360895D5: push 0xf4254 */
   5256     PUSH32(esp, 0x19u); /* 0x360895DA: push 0x19 */
   5257     ecx = ebx; /* 0x360895DC: mov ecx, ebx */
   5258     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360895DE: call dword ptr [eax + 8] */
   5259     RECOMP_FLAGS_IN();
   5260     eax = MEM32(ebp + (-0x10)); /* 0x360895E1: mov eax, dword ptr [ebp - 0x10] */
   5261     /* test eax, eax */ /* 0x360895E4: test eax, eax */
   5262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5263     _cf = 0;
   5264     _flag_k = FK_TEST;
   5265     if (TEST_Z(_flag_a, _flag_b)) goto L_36089629; /* 0x360895E6: je 0x36089629 */
   5266 L_360895E8:
   5267     ecx = MEM32(ebp + 0x8); /* 0x360895E8: mov ecx, dword ptr [ebp + 8] */
   5268     edx = MEM32(ecx); /* 0x360895EB: mov edx, dword ptr [ecx] */
   5269     PUSH32(esp, 2); /* 0x360895ED: push 2 */
   5270     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFu);
   5271     esi = esi & 0xFFFFu; /* 0x360895EF: and esi, 0xffff */
   5272     _cf = 0;
   5273     _flag_k = FK_TEST;
   5274     PUSH32(esp, 0x36u); /* 0x360895F5: push 0x36 */
   5275     MEM32(ebp + (-0x24)) = esi; /* 0x360895F7: mov dword ptr [ebp - 0x24], esi */
   5276     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360895FA: call dword ptr [edx + 4] */
   5277     RECOMP_FLAGS_IN();
   5278     ecx = MEM32(ebp + (-0x10)); /* 0x360895FD: mov ecx, dword ptr [ebp - 0x10] */
   5279     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5281     esi = esi - eax; /* 0x36089600: sub esi, eax */
   5282     _flag_k = FK_CMP;
   5283     eax = esi; /* 0x36089602: mov eax, esi */
   5284     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36089604: cdq  */
   5285     esi = eax; /* 0x36089605: mov esi, eax */
   5286     eax = MEM32(ecx); /* 0x36089607: mov eax, dword ptr [ecx] */
   5287     PUSH32(esp, 2); /* 0x36089609: push 2 */
   5288     _flag_a = (uint32_t)((esi ^ edx)); _flag_b = (uint32_t)((esi ^ edx));
   5289     esi = esi ^ edx; /* 0x3608960B: xor esi, edx */
   5290     _cf = 0;
   5291     _flag_k = FK_TEST;
   5292     PUSH32(esp, 0x36u); /* 0x3608960D: push 0x36 */
   5293     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   5294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5295     esi = esi - edx; /* 0x3608960F: sub esi, edx */
   5296     _flag_k = FK_CMP;
   5297     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36089611: call dword ptr [eax + 4] */
   5298     RECOMP_FLAGS_IN();
   5299     ecx = MEM32(ebp + (-0x24)); /* 0x36089614: mov ecx, dword ptr [ebp - 0x24] */
   5300     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5301     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5302     ecx = ecx - eax; /* 0x36089617: sub ecx, eax */
   5303     _flag_k = FK_CMP;
   5304     eax = ecx; /* 0x36089619: mov eax, ecx */
   5305     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3608961B: cdq  */
   5306     _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx));
   5307     eax = eax ^ edx; /* 0x3608961C: xor eax, edx */
   5308     _cf = 0;
   5309     _flag_k = FK_TEST;
   5310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5312     eax = eax - edx; /* 0x3608961E: sub eax, edx */
   5313     _flag_k = FK_CMP;
   5314     /* cmp esi, eax */ /* 0x36089620: cmp esi, eax */
   5315     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5317     _flag_k = FK_CMP;
   5318     if (CMP_L(_flag_a, _flag_b)) goto L_36089629; /* 0x36089622: jl 0x36089629 */
   5319 L_36089624:
   5320     eax = MEM32(edi + 0x8); /* 0x36089624: mov eax, dword ptr [edi + 8] */
   5321     goto L_3608962C; /* 0x36089627: jmp 0x3608962c */
   5322 L_36089629:
   5323     eax = MEM32(edi + 0x4); /* 0x36089629: mov eax, dword ptr [edi + 4] */
   5324 L_3608962C:
   5325     edx = MEM32(ebx); /* 0x3608962C: mov edx, dword ptr [ebx] */
   5326     PUSH32(esp, eax); /* 0x3608962E: push eax */
   5327     PUSH32(esp, 0x17u); /* 0x3608962F: push 0x17 */
   5328     ecx = ebx; /* 0x36089631: mov ecx, ebx */
   5329     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36089633: call dword ptr [edx + 8] */
   5330     RECOMP_FLAGS_IN();
   5331     ecx = ebx; /* 0x36089636: mov ecx, ebx */
   5332     RECOMP_ICALL(0x3608F430u); /* 0x36089638: call 0x3608f430 */ /* not lifted */
   5333     RECOMP_FLAGS_IN();
   5334     /* test LO8(eax), LO8(eax) */ /* 0x3608963D: test al, al */
   5335     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5336     _cf = 0;
   5337     _flag_k = FK_NARROW(FK_TEST, 24);
   5338     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089662; /* 0x3608963F: jne 0x36089662 */
   5339 L_36089641:
   5340     /* test ebx, ebx */ /* 0x36089641: test ebx, ebx */
   5341     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5342     _cf = 0;
   5343     _flag_k = FK_TEST;
   5344     if (TEST_Z(_flag_a, _flag_b)) goto L_3608964D; /* 0x36089643: je 0x3608964d */
   5345 L_36089645:
   5346     eax = MEM32(ebx); /* 0x36089645: mov eax, dword ptr [ebx] */
   5347     PUSH32(esp, 1); /* 0x36089647: push 1 */
   5348     ecx = ebx; /* 0x36089649: mov ecx, ebx */
   5349     RECOMP_ICALL(MEM32(eax)); /* 0x3608964B: call dword ptr [eax] */
   5350     RECOMP_FLAGS_IN();
   5351 L_3608964D:
   5352     edi = POP32_VAL(esp); /* 0x3608964D: pop edi */
   5353     esi = POP32_VAL(esp); /* 0x3608964E: pop esi */
   5354     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5355     eax = 0; /* 0x3608964F: xor eax, eax */
   5356     _cf = 0;
   5357     _flag_k = FK_TEST;
   5358     ebx = POP32_VAL(esp); /* 0x36089651: pop ebx */
   5359     ecx = MEM32(ebp + (-0xC)); /* 0x36089652: mov ecx, dword ptr [ebp - 0xc] */
   5360     MEM32(FS_BASE + (0)) = ecx; /* 0x36089655: mov dword ptr fs:[0], ecx */
   5361     esp = ebp; /* 0x3608965C: mov esp, ebp */
   5362     ebp = POP32_VAL(esp); /* 0x3608965E: pop ebp */
   5363     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608965F: ret 4 */
   5364 L_36089662:
   5365     eax = MEM32(edi + 0x4); /* 0x36089662: mov eax, dword ptr [edi + 4] */
   5366     edx = MEM32(ebx); /* 0x36089665: mov edx, dword ptr [ebx] */
   5367     PUSH32(esp, eax); /* 0x36089667: push eax */
   5368     PUSH32(esp, 0x2BEu); /* 0x36089668: push 0x2be */
   5369     ecx = ebx; /* 0x3608966D: mov ecx, ebx */
   5370     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608966F: call dword ptr [edx + 8] */
   5371     RECOMP_FLAGS_IN();
   5372     eax = MEM32(edi + 0x8); /* 0x36089672: mov eax, dword ptr [edi + 8] */
   5373     edx = MEM32(ebx); /* 0x36089675: mov edx, dword ptr [ebx] */
   5374     PUSH32(esp, eax); /* 0x36089677: push eax */
   5375     PUSH32(esp, 0x2BFu); /* 0x36089678: push 0x2bf */
   5376     ecx = ebx; /* 0x3608967D: mov ecx, ebx */
   5377     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608967F: call dword ptr [edx + 8] */
   5378     RECOMP_FLAGS_IN();
   5379     eax = MEM32(edi); /* 0x36089682: mov eax, dword ptr [edi] */
   5380     edx = MEM32(ebx); /* 0x36089684: mov edx, dword ptr [ebx] */
   5381     PUSH32(esp, eax); /* 0x36089686: push eax */
   5382     PUSH32(esp, 0x2BDu); /* 0x36089687: push 0x2bd */
   5383     ecx = ebx; /* 0x3608968C: mov ecx, ebx */
   5384     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608968E: call dword ptr [edx + 8] */
   5385     RECOMP_FLAGS_IN();
   5386     PUSH32(esp, ebx); /* 0x36089691: push ebx */
   5387     RECOMP_ICALL(0x360F0E90u); /* 0x36089692: call 0x360f0e90 */ /* not lifted */
   5388     RECOMP_FLAGS_IN();
   5389     ecx = eax; /* 0x36089697: mov ecx, eax */
   5390     RECOMP_ICALL(0x360F1200u); /* 0x36089699: call 0x360f1200 */ /* not lifted */
   5391     RECOMP_FLAGS_IN();
   5392     ecx = MEM32(ebp + (-0x2C)); /* 0x3608969E: mov ecx, dword ptr [ebp - 0x2c] */
   5393     esi = MEM32(ecx); /* 0x360896A1: mov esi, dword ptr [ecx] */
   5394     eax = MEM32(esi + 0x2C); /* 0x360896A3: mov eax, dword ptr [esi + 0x2c] */
   5395     /* cmp eax, MEM32(esi + 0x28) */ /* 0x360896A6: cmp eax, dword ptr [esi + 0x28] */
   5396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x28));
   5397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5398     _flag_k = FK_CMP;
   5399     if (CMP_AE(_flag_a, _flag_b)) goto L_36089721; /* 0x360896A9: jae 0x36089721 */
   5400 L_360896AB:
   5401     MEM32(esi + 0x24) = eax; /* 0x360896AB: mov dword ptr [esi + 0x24], eax */
   5402     edx = edi; /* 0x360896AE: mov edx, edi */
   5403     eax = MEM32(edx); /* 0x360896B0: mov eax, dword ptr [edx] */
   5404     ecx = MEM32(edx + 0x4); /* 0x360896B2: mov ecx, dword ptr [edx + 4] */
   5405     edx = MEM32(edx + 0x8); /* 0x360896B5: mov edx, dword ptr [edx + 8] */
   5406     MEM32(ebp + (-0x20)) = eax; /* 0x360896B8: mov dword ptr [ebp - 0x20], eax */
   5407     MEM32(ebp + (-0x1C)) = ecx; /* 0x360896BB: mov dword ptr [ebp - 0x1c], ecx */
   5408     ecx = MEM32(esi + 0x8); /* 0x360896BE: mov ecx, dword ptr [esi + 8] */
   5409     eax = ebp + (-0x20); /* 0x360896C1: lea eax, [ebp - 0x20] */
   5410     PUSH32(esp, eax); /* 0x360896C4: push eax */
   5411     PUSH32(esp, ecx); /* 0x360896C5: push ecx */
   5412     ecx = esi; /* 0x360896C6: mov ecx, esi */
   5413     MEM32(ebp + (-0x18)) = edx; /* 0x360896C8: mov dword ptr [ebp - 0x18], edx */
   5414     MEM32(ebp + (-0x14)) = ebx; /* 0x360896CB: mov dword ptr [ebp - 0x14], ebx */
   5415     MEM8(ebp + (-0x10)) = (uint8_t)(1); /* 0x360896CE: mov byte ptr [ebp - 0x10], 1 */
   5416     RECOMP_ICALL(0x36089970u); /* 0x360896D2: call 0x36089970 */ /* not lifted */
   5417     RECOMP_FLAGS_IN();
   5418     eax = MEM32(edi + 0x4); /* 0x360896D7: mov eax, dword ptr [edi + 4] */
   5419     ecx = MEM32(edi + 0x8); /* 0x360896DA: mov ecx, dword ptr [edi + 8] */
   5420     edx = MEM32(edi); /* 0x360896DD: mov edx, dword ptr [edi] */
   5421     MEM32(ebp + (-0x18)) = eax; /* 0x360896DF: mov dword ptr [ebp - 0x18], eax */
   5422     MEM32(ebp + (-0x14)) = ecx; /* 0x360896E2: mov dword ptr [ebp - 0x14], ecx */
   5423     eax = ebp + (-0x1C); /* 0x360896E5: lea eax, [ebp - 0x1c] */
   5424     PUSH32(esp, eax); /* 0x360896E8: push eax */
   5425     ecx = ebp + (-0x28); /* 0x360896E9: lea ecx, [ebp - 0x28] */
   5426     MEM32(ebp + (-0x1C)) = edx; /* 0x360896EC: mov dword ptr [ebp - 0x1c], edx */
   5427     edx = MEM32(esi + 0x24); /* 0x360896EF: mov edx, dword ptr [esi + 0x24] */
   5428     PUSH32(esp, ecx); /* 0x360896F2: push ecx */
   5429     ecx = esi + 0x10; /* 0x360896F3: lea ecx, [esi + 0x10] */
   5430     MEM32(ebp + (-0x10)) = edx; /* 0x360896F6: mov dword ptr [ebp - 0x10], edx */
   5431     RECOMP_ICALL(0x36089BD0u); /* 0x360896F9: call 0x36089bd0 */ /* not lifted */
   5432     RECOMP_FLAGS_IN();
   5433     edx = MEM32(eax); /* 0x360896FE: mov edx, dword ptr [eax] */
   5434     MEM32(ebp + (-0x30)) = edx; /* 0x36089700: mov dword ptr [ebp - 0x30], edx */
   5435     eax = MEM32(eax + 0x4); /* 0x36089703: mov eax, dword ptr [eax + 4] */
   5436     ecx = ebp + (-0x2C); /* 0x36089706: lea ecx, [ebp - 0x2c] */
   5437     PUSH32(esp, ecx); /* 0x36089709: push ecx */
   5438     edx = ebp + (-0x30); /* 0x3608970A: lea edx, [ebp - 0x30] */
   5439     PUSH32(esp, edx); /* 0x3608970D: push edx */
   5440     ecx = ebp + (-0x28); /* 0x3608970E: lea ecx, [ebp - 0x28] */
   5441     MEM32(ebp + (-0x2C)) = eax; /* 0x36089711: mov dword ptr [ebp - 0x2c], eax */
   5442     RECOMP_ICALL(0x3614FCB0u); /* 0x36089714: call 0x3614fcb0 */ /* not lifted */
   5443     RECOMP_FLAGS_IN();
   5444     _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1);
   5445     MEM32(esi + 0x2C) = MEM32(esi + 0x2C) + 1; /* 0x36089719: inc dword ptr [esi + 0x2c] */
   5446     _flag_k = FK_INC;
   5447     goto L_360897F6; /* 0x3608971C: jmp 0x360897f6 */
   5448 L_36089721:
   5449     edx = MEM32(esi + 0x24); /* 0x36089721: mov edx, dword ptr [esi + 0x24] */
   5450     ecx = MEM32(esi + 0x28); /* 0x36089724: mov ecx, dword ptr [esi + 0x28] */
   5451     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5452     edx = edx + 1; /* 0x36089727: inc edx */
   5453     _flag_k = FK_INC;
   5454     eax = edx; /* 0x36089728: mov eax, edx */
   5455     /* cmp eax, ecx */ /* 0x3608972A: cmp eax, ecx */
   5456     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5458     _flag_k = FK_CMP;
   5459     MEM32(esi + 0x24) = edx; /* 0x3608972C: mov dword ptr [esi + 0x24], edx */
   5460     if (CMP_B(_flag_a, _flag_b)) goto L_36089738; /* 0x3608972F: jb 0x36089738 */
   5461 L_36089731:
   5462     MEM32(esi + 0x24) = 0; /* 0x36089731: mov dword ptr [esi + 0x24], 0 */
   5463 L_36089738:
   5464     eax = MEM32(esi + 0x24); /* 0x36089738: mov eax, dword ptr [esi + 0x24] */
   5465     ecx = MEM32(esi + 0x4); /* 0x3608973B: mov ecx, dword ptr [esi + 4] */
   5466     eax = eax + eax * 4; /* 0x3608973E: lea eax, [eax + eax*4] */
   5467     eax = ecx + eax * 4 + 0x10; /* 0x36089741: lea eax, [ecx + eax*4 + 0x10] */
   5468     /* cmp MEM8(eax), 0 */ /* 0x36089745: cmp byte ptr [eax], 0 */
   5469     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   5470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5471     _flag_k = FK_NARROW(FK_CMP, 24);
   5472     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608974F; /* 0x36089748: je 0x3608974f */
   5473 L_3608974A:
   5474     MEM8(eax) = (uint8_t)(0); /* 0x3608974A: mov byte ptr [eax], 0 */
   5475     RECOMP_BACKEDGE();
   5476     goto L_36089721; /* 0x3608974D: jmp 0x36089721 */
   5477 L_3608974F:
   5478     eax = MEM32(esi + 0x24); /* 0x3608974F: mov eax, dword ptr [esi + 0x24] */
   5479     edx = eax + eax * 4; /* 0x36089752: lea edx, [eax + eax*4] */
   5480     eax = MEM32(esi + 0x4); /* 0x36089755: mov eax, dword ptr [esi + 4] */
   5481     eax = eax + edx * 4; /* 0x36089758: lea eax, [eax + edx*4] */
   5482     PUSH32(esp, eax); /* 0x3608975B: push eax */
   5483     edx = ebp + (-0x14); /* 0x3608975C: lea edx, [ebp - 0x14] */
   5484     ecx = esi + 0x10; /* 0x3608975F: lea ecx, [esi + 0x10] */
   5485     PUSH32(esp, edx); /* 0x36089762: push edx */
   5486     MEM32(ebp + 0x8) = eax; /* 0x36089763: mov dword ptr [ebp + 8], eax */
   5487     RECOMP_ICALL(0x36089FA0u); /* 0x36089766: call 0x36089fa0 */ /* not lifted */
   5488     RECOMP_FLAGS_IN();
   5489     ecx = eax; /* 0x3608976B: mov ecx, eax */
   5490     eax = MEM32(ecx); /* 0x3608976D: mov eax, dword ptr [ecx] */
   5491     ecx = MEM32(ecx + 0x4); /* 0x3608976F: mov ecx, dword ptr [ecx + 4] */
   5492     edx = ebp + (-0x2C); /* 0x36089772: lea edx, [ebp - 0x2c] */
   5493     PUSH32(esp, edx); /* 0x36089775: push edx */
   5494     PUSH32(esp, ecx); /* 0x36089776: push ecx */
   5495     PUSH32(esp, eax); /* 0x36089777: push eax */
   5496     MEM32(ebp + (-0x28)) = eax; /* 0x36089778: mov dword ptr [ebp - 0x28], eax */
   5497     MEM32(ebp + (-0x24)) = ecx; /* 0x3608977B: mov dword ptr [ebp - 0x24], ecx */
   5498     MEM32(ebp + (-0x2C)) = 0; /* 0x3608977E: mov dword ptr [ebp - 0x2c], 0 */
   5499     RECOMP_ICALL(0x3608A350u); /* 0x36089785: call 0x3608a350 */ /* not lifted */
   5500     RECOMP_FLAGS_IN();
   5501     eax = MEM32(ebp + (-0x24)); /* 0x3608978A: mov eax, dword ptr [ebp - 0x24] */
   5502     ecx = MEM32(ebp + (-0x28)); /* 0x3608978D: mov ecx, dword ptr [ebp - 0x28] */
   5503     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5504     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5505     esp = esp + 0xCu; /* 0x36089790: add esp, 0xc */
   5506     _flag_k = FK_ADD;
   5507     PUSH32(esp, eax); /* 0x36089793: push eax */
   5508     PUSH32(esp, ecx); /* 0x36089794: push ecx */
   5509     edx = ebp + (-0x24); /* 0x36089795: lea edx, [ebp - 0x24] */
   5510     PUSH32(esp, edx); /* 0x36089798: push edx */
   5511     ecx = esi + 0x10; /* 0x36089799: lea ecx, [esi + 0x10] */
   5512     RECOMP_ICALL(0x36089E60u); /* 0x3608979C: call 0x36089e60 */ /* not lifted */
   5513     RECOMP_FLAGS_IN();
   5514     eax = MEM32(ebp + 0x8); /* 0x360897A1: mov eax, dword ptr [ebp + 8] */
   5515     ecx = MEM32(eax + 0xC); /* 0x360897A4: mov ecx, dword ptr [eax + 0xc] */
   5516     /* test ecx, ecx */ /* 0x360897A7: test ecx, ecx */
   5517     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5518     _cf = 0;
   5519     _flag_k = FK_TEST;
   5520     if (TEST_Z(_flag_a, _flag_b)) goto L_360897B1; /* 0x360897A9: je 0x360897b1 */
   5521 L_360897AB:
   5522     edx = MEM32(ecx); /* 0x360897AB: mov edx, dword ptr [ecx] */
   5523     PUSH32(esp, 1); /* 0x360897AD: push 1 */
   5524     RECOMP_ICALL(MEM32(edx)); /* 0x360897AF: call dword ptr [edx] */
   5525     RECOMP_FLAGS_IN();
   5526 L_360897B1:
   5527     ecx = MEM32(ebp + 0x8); /* 0x360897B1: mov ecx, dword ptr [ebp + 8] */
   5528     eax = edi; /* 0x360897B4: mov eax, edi */
   5529     edx = MEM32(eax); /* 0x360897B6: mov edx, dword ptr [eax] */
   5530     MEM32(ecx) = edx; /* 0x360897B8: mov dword ptr [ecx], edx */
   5531     edx = MEM32(eax + 0x4); /* 0x360897BA: mov edx, dword ptr [eax + 4] */
   5532     MEM32(ecx + 0x4) = edx; /* 0x360897BD: mov dword ptr [ecx + 4], edx */
   5533     eax = MEM32(eax + 0x8); /* 0x360897C0: mov eax, dword ptr [eax + 8] */
   5534     MEM32(ecx + 0x8) = eax; /* 0x360897C3: mov dword ptr [ecx + 8], eax */
   5535     eax = ecx; /* 0x360897C6: mov eax, ecx */
   5536     MEM32(eax + 0xC) = ebx; /* 0x360897C8: mov dword ptr [eax + 0xc], ebx */
   5537     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x360897CB: mov byte ptr [eax + 0x10], 1 */
   5538     edx = MEM32(edi + 0x4); /* 0x360897CF: mov edx, dword ptr [edi + 4] */
   5539     ecx = MEM32(edi); /* 0x360897D2: mov ecx, dword ptr [edi] */
   5540     eax = MEM32(edi + 0x8); /* 0x360897D4: mov eax, dword ptr [edi + 8] */
   5541     MEM32(ebp + (-0x50)) = ecx; /* 0x360897D7: mov dword ptr [ebp - 0x50], ecx */
   5542     ecx = MEM32(esi + 0x24); /* 0x360897DA: mov ecx, dword ptr [esi + 0x24] */
   5543     MEM32(ebp + (-0x4C)) = edx; /* 0x360897DD: mov dword ptr [ebp - 0x4c], edx */
   5544     edx = ebp + (-0x50); /* 0x360897E0: lea edx, [ebp - 0x50] */
   5545     MEM32(ebp + (-0x48)) = eax; /* 0x360897E3: mov dword ptr [ebp - 0x48], eax */
   5546     PUSH32(esp, edx); /* 0x360897E6: push edx */
   5547     eax = ebp + (-0x30); /* 0x360897E7: lea eax, [ebp - 0x30] */
   5548     MEM32(ebp + (-0x44)) = ecx; /* 0x360897EA: mov dword ptr [ebp - 0x44], ecx */
   5549     PUSH32(esp, eax); /* 0x360897ED: push eax */
   5550     ecx = esi + 0x10; /* 0x360897EE: lea ecx, [esi + 0x10] */
   5551     RECOMP_ICALL(0x36089BD0u); /* 0x360897F1: call 0x36089bd0 */ /* not lifted */
   5552     RECOMP_FLAGS_IN();
   5553 L_360897F6:
   5554     _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1);
   5555     MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x360897F6: inc dword ptr [esi + 0x38] */
   5556     _flag_k = FK_INC;
   5557     eax = ebx; /* 0x360897F9: mov eax, ebx */
   5558     ecx = MEM32(ebp + (-0xC)); /* 0x360897FB: mov ecx, dword ptr [ebp - 0xc] */
   5559     edi = POP32_VAL(esp); /* 0x360897FE: pop edi */
   5560     esi = POP32_VAL(esp); /* 0x360897FF: pop esi */
   5561     ebx = POP32_VAL(esp); /* 0x36089800: pop ebx */
   5562     MEM32(FS_BASE + (0)) = ecx; /* 0x36089801: mov dword ptr fs:[0], ecx */
   5563     esp = ebp; /* 0x36089808: mov esp, ebp */
   5564     ebp = POP32_VAL(esp); /* 0x3608980A: pop ebp */
   5565     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608980B: ret 4 */
   5566     RECOMP_REGS_OUT();
   5567 }
   5568 
   5569 void sub_360895CB(void) {
   5570     int _fpu_cmp = 0;
   5571     uint32_t _cf = 0;
   5572     int _df = 1;
   5573     uint32_t _flag_k = FK_NONE;
   5574     uint32_t _flag_a = 0, _flag_b = 0;
   5575     uint32_t _itail_tgt = 0;
   5576     RECOMP_REGS_LOCALS
   5577     RECOMP_ENTER(0x360895CBu);
   5578 
   5579     goto L_360895CB;
   5580 L_36089522:
   5581     PUSH32(esp, 0x80u); /* 0x36089522: push 0x80 */
   5582     RECOMP_ICALL(0x3615FD6Au); /* 0x36089527: call 0x3615fd6a */ /* not lifted */
   5583     RECOMP_FLAGS_IN();
   5584     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5586     esp = esp + 4; /* 0x3608952C: add esp, 4 */
   5587     _flag_k = FK_ADD;
   5588     MEM32(ebp + 0x8) = eax; /* 0x3608952F: mov dword ptr [ebp + 8], eax */
   5589     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5590     ebx = 0; /* 0x36089532: xor ebx, ebx */
   5591     _cf = 0;
   5592     _flag_k = FK_TEST;
   5593     /* cmp eax, ebx */ /* 0x36089534: cmp eax, ebx */
   5594     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5596     _flag_k = FK_CMP;
   5597     MEM32(ebp + (-0x4)) = ebx; /* 0x36089536: mov dword ptr [ebp - 4], ebx */
   5598     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089544; /* 0x36089539: je 0x36089544 */
   5599 L_3608953B:
   5600     ecx = eax; /* 0x3608953B: mov ecx, eax */
   5601     RECOMP_ICALL(0x3608E780u); /* 0x3608953D: call 0x3608e780 */ /* not lifted */
   5602     RECOMP_FLAGS_IN();
   5603     ebx = eax; /* 0x36089542: mov ebx, eax */
   5604 L_36089544:
   5605     eax = MEM32(edi + 0x4); /* 0x36089544: mov eax, dword ptr [edi + 4] */
   5606     /* test eax, eax */ /* 0x36089547: test eax, eax */
   5607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5608     _cf = 0;
   5609     _flag_k = FK_TEST;
   5610     ecx = MEM32(edi + 0x8); /* 0x36089549: mov ecx, dword ptr [edi + 8] */
   5611     esi = MEM32(edi); /* 0x3608954C: mov esi, dword ptr [edi] */
   5612     edx = 0x000F4254u; /* 0x3608954E: mov edx, 0xf4254 */
   5613     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36089553: mov dword ptr [ebp - 4], 0xffffffff */
   5614     MEM32(ebp + (-0x38)) = edx; /* 0x3608955A: mov dword ptr [ebp - 0x38], edx */
   5615     MEM32(ebp + (-0x34)) = eax; /* 0x3608955D: mov dword ptr [ebp - 0x34], eax */
   5616     MEM32(ebp + (-0x40)) = edx; /* 0x36089560: mov dword ptr [ebp - 0x40], edx */
   5617     MEM32(ebp + (-0x3C)) = ecx; /* 0x36089563: mov dword ptr [ebp - 0x3c], ecx */
   5618     MEM32(ebp + 0x8) = 0; /* 0x36089566: mov dword ptr [ebp + 8], 0 */
   5619     if (TEST_Z(_flag_a, _flag_b)) goto L_36089582; /* 0x3608956D: jbe 0x36089582 */
   5620 L_3608956F:
   5621     eax = ebp + (-0x38); /* 0x3608956F: lea eax, [ebp - 0x38] */
   5622     PUSH32(esp, eax); /* 0x36089572: push eax */
   5623     RECOMP_ICALL(0x360936A0u); /* 0x36089573: call 0x360936a0 */ /* not lifted */
   5624     RECOMP_FLAGS_IN();
   5625     ecx = eax; /* 0x36089578: mov ecx, eax */
   5626     RECOMP_ICALL(0x360930F0u); /* 0x3608957A: call 0x360930f0 */ /* not lifted */
   5627     RECOMP_FLAGS_IN();
   5628     MEM32(ebp + 0x8) = eax; /* 0x3608957F: mov dword ptr [ebp + 8], eax */
   5629 L_36089582:
   5630     eax = MEM32(edi + 0x8); /* 0x36089582: mov eax, dword ptr [edi + 8] */
   5631     /* test eax, eax */ /* 0x36089585: test eax, eax */
   5632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5633     _cf = 0;
   5634     _flag_k = FK_TEST;
   5635     MEM32(ebp + (-0x10)) = 0; /* 0x36089587: mov dword ptr [ebp - 0x10], 0 */
   5636     if (TEST_Z(_flag_a, _flag_b)) goto L_360895A3; /* 0x3608958E: jbe 0x360895a3 */
   5637 L_36089590:
   5638     ecx = ebp + (-0x40); /* 0x36089590: lea ecx, [ebp - 0x40] */
   5639     PUSH32(esp, ecx); /* 0x36089593: push ecx */
   5640     RECOMP_ICALL(0x360936A0u); /* 0x36089594: call 0x360936a0 */ /* not lifted */
   5641     RECOMP_FLAGS_IN();
   5642     ecx = eax; /* 0x36089599: mov ecx, eax */
   5643     RECOMP_ICALL(0x360930F0u); /* 0x3608959B: call 0x360930f0 */ /* not lifted */
   5644     RECOMP_FLAGS_IN();
   5645     MEM32(ebp + (-0x10)) = eax; /* 0x360895A0: mov dword ptr [ebp - 0x10], eax */
   5646 L_360895A3:
   5647     eax = MEM32(ebp + 0x8); /* 0x360895A3: mov eax, dword ptr [ebp + 8] */
   5648     /* test eax, eax */ /* 0x360895A6: test eax, eax */
   5649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5650     _cf = 0;
   5651     _flag_k = FK_TEST;
   5652     if (TEST_NZ(_flag_a, _flag_b)) goto L_360895D3; /* 0x360895A8: jne 0x360895d3 */
   5653 L_360895AA:
   5654     /* test ebx, ebx */ /* 0x360895AA: test ebx, ebx */
   5655     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5656     _cf = 0;
   5657     _flag_k = FK_TEST;
   5658     if (TEST_Z(_flag_a, _flag_b)) goto L_360895B6; /* 0x360895AC: je 0x360895b6 */
   5659 L_360895AE:
   5660     edx = MEM32(ebx); /* 0x360895AE: mov edx, dword ptr [ebx] */
   5661     PUSH32(esp, 1); /* 0x360895B0: push 1 */
   5662     ecx = ebx; /* 0x360895B2: mov ecx, ebx */
   5663     RECOMP_ICALL(MEM32(edx)); /* 0x360895B4: call dword ptr [edx] */
   5664     RECOMP_FLAGS_IN();
   5665 L_360895B6:
   5666     edi = POP32_VAL(esp); /* 0x360895B6: pop edi */
   5667     esi = POP32_VAL(esp); /* 0x360895B7: pop esi */
   5668     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5669     eax = 0; /* 0x360895B8: xor eax, eax */
   5670     _cf = 0;
   5671     _flag_k = FK_TEST;
   5672     ebx = POP32_VAL(esp); /* 0x360895BA: pop ebx */
   5673     ecx = MEM32(ebp + (-0xC)); /* 0x360895BB: mov ecx, dword ptr [ebp - 0xc] */
   5674     MEM32(FS_BASE + (0)) = ecx; /* 0x360895BE: mov dword ptr fs:[0], ecx */
   5675     esp = ebp; /* 0x360895C5: mov esp, ebp */
   5676     ebp = POP32_VAL(esp); /* 0x360895C7: pop ebp */
   5677     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360895C8: ret 4 */
   5678 L_360895CB:
   5679     _flag_a = (uint32_t)(MEM32(esi + 0x34)); _flag_b = (uint32_t)(1);
   5680     MEM32(esi + 0x34) = MEM32(esi + 0x34) + 1; /* 0x360895CB: inc dword ptr [esi + 0x34] */
   5681     _flag_k = FK_INC;
   5682     RECOMP_BACKEDGE();
   5683     goto L_36089522; /* 0x360895CE: jmp 0x36089522 */
   5684 L_360895D3:
   5685     eax = MEM32(ebx); /* 0x360895D3: mov eax, dword ptr [ebx] */
   5686     PUSH32(esp, 0x000F4254u); /* 0x360895D5: push 0xf4254 */
   5687     PUSH32(esp, 0x19u); /* 0x360895DA: push 0x19 */
   5688     ecx = ebx; /* 0x360895DC: mov ecx, ebx */
   5689     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360895DE: call dword ptr [eax + 8] */
   5690     RECOMP_FLAGS_IN();
   5691     eax = MEM32(ebp + (-0x10)); /* 0x360895E1: mov eax, dword ptr [ebp - 0x10] */
   5692     /* test eax, eax */ /* 0x360895E4: test eax, eax */
   5693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5694     _cf = 0;
   5695     _flag_k = FK_TEST;
   5696     if (TEST_Z(_flag_a, _flag_b)) goto L_36089629; /* 0x360895E6: je 0x36089629 */
   5697 L_360895E8:
   5698     ecx = MEM32(ebp + 0x8); /* 0x360895E8: mov ecx, dword ptr [ebp + 8] */
   5699     edx = MEM32(ecx); /* 0x360895EB: mov edx, dword ptr [ecx] */
   5700     PUSH32(esp, 2); /* 0x360895ED: push 2 */
   5701     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFu);
   5702     esi = esi & 0xFFFFu; /* 0x360895EF: and esi, 0xffff */
   5703     _cf = 0;
   5704     _flag_k = FK_TEST;
   5705     PUSH32(esp, 0x36u); /* 0x360895F5: push 0x36 */
   5706     MEM32(ebp + (-0x24)) = esi; /* 0x360895F7: mov dword ptr [ebp - 0x24], esi */
   5707     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360895FA: call dword ptr [edx + 4] */
   5708     RECOMP_FLAGS_IN();
   5709     ecx = MEM32(ebp + (-0x10)); /* 0x360895FD: mov ecx, dword ptr [ebp - 0x10] */
   5710     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5712     esi = esi - eax; /* 0x36089600: sub esi, eax */
   5713     _flag_k = FK_CMP;
   5714     eax = esi; /* 0x36089602: mov eax, esi */
   5715     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36089604: cdq  */
   5716     esi = eax; /* 0x36089605: mov esi, eax */
   5717     eax = MEM32(ecx); /* 0x36089607: mov eax, dword ptr [ecx] */
   5718     PUSH32(esp, 2); /* 0x36089609: push 2 */
   5719     _flag_a = (uint32_t)((esi ^ edx)); _flag_b = (uint32_t)((esi ^ edx));
   5720     esi = esi ^ edx; /* 0x3608960B: xor esi, edx */
   5721     _cf = 0;
   5722     _flag_k = FK_TEST;
   5723     PUSH32(esp, 0x36u); /* 0x3608960D: push 0x36 */
   5724     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   5725     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5726     esi = esi - edx; /* 0x3608960F: sub esi, edx */
   5727     _flag_k = FK_CMP;
   5728     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36089611: call dword ptr [eax + 4] */
   5729     RECOMP_FLAGS_IN();
   5730     ecx = MEM32(ebp + (-0x24)); /* 0x36089614: mov ecx, dword ptr [ebp - 0x24] */
   5731     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5733     ecx = ecx - eax; /* 0x36089617: sub ecx, eax */
   5734     _flag_k = FK_CMP;
   5735     eax = ecx; /* 0x36089619: mov eax, ecx */
   5736     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3608961B: cdq  */
   5737     _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx));
   5738     eax = eax ^ edx; /* 0x3608961C: xor eax, edx */
   5739     _cf = 0;
   5740     _flag_k = FK_TEST;
   5741     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   5742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5743     eax = eax - edx; /* 0x3608961E: sub eax, edx */
   5744     _flag_k = FK_CMP;
   5745     /* cmp esi, eax */ /* 0x36089620: cmp esi, eax */
   5746     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5748     _flag_k = FK_CMP;
   5749     if (CMP_L(_flag_a, _flag_b)) goto L_36089629; /* 0x36089622: jl 0x36089629 */
   5750 L_36089624:
   5751     eax = MEM32(edi + 0x8); /* 0x36089624: mov eax, dword ptr [edi + 8] */
   5752     goto L_3608962C; /* 0x36089627: jmp 0x3608962c */
   5753 L_36089629:
   5754     eax = MEM32(edi + 0x4); /* 0x36089629: mov eax, dword ptr [edi + 4] */
   5755 L_3608962C:
   5756     edx = MEM32(ebx); /* 0x3608962C: mov edx, dword ptr [ebx] */
   5757     PUSH32(esp, eax); /* 0x3608962E: push eax */
   5758     PUSH32(esp, 0x17u); /* 0x3608962F: push 0x17 */
   5759     ecx = ebx; /* 0x36089631: mov ecx, ebx */
   5760     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36089633: call dword ptr [edx + 8] */
   5761     RECOMP_FLAGS_IN();
   5762     ecx = ebx; /* 0x36089636: mov ecx, ebx */
   5763     RECOMP_ICALL(0x3608F430u); /* 0x36089638: call 0x3608f430 */ /* not lifted */
   5764     RECOMP_FLAGS_IN();
   5765     /* test LO8(eax), LO8(eax) */ /* 0x3608963D: 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_NZ(_flag_a, _flag_b)) goto L_36089662; /* 0x3608963F: jne 0x36089662 */
   5770 L_36089641:
   5771     /* test ebx, ebx */ /* 0x36089641: test ebx, ebx */
   5772     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5773     _cf = 0;
   5774     _flag_k = FK_TEST;
   5775     if (TEST_Z(_flag_a, _flag_b)) goto L_3608964D; /* 0x36089643: je 0x3608964d */
   5776 L_36089645:
   5777     eax = MEM32(ebx); /* 0x36089645: mov eax, dword ptr [ebx] */
   5778     PUSH32(esp, 1); /* 0x36089647: push 1 */
   5779     ecx = ebx; /* 0x36089649: mov ecx, ebx */
   5780     RECOMP_ICALL(MEM32(eax)); /* 0x3608964B: call dword ptr [eax] */
   5781     RECOMP_FLAGS_IN();
   5782 L_3608964D:
   5783     edi = POP32_VAL(esp); /* 0x3608964D: pop edi */
   5784     esi = POP32_VAL(esp); /* 0x3608964E: pop esi */
   5785     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5786     eax = 0; /* 0x3608964F: xor eax, eax */
   5787     _cf = 0;
   5788     _flag_k = FK_TEST;
   5789     ebx = POP32_VAL(esp); /* 0x36089651: pop ebx */
   5790     ecx = MEM32(ebp + (-0xC)); /* 0x36089652: mov ecx, dword ptr [ebp - 0xc] */
   5791     MEM32(FS_BASE + (0)) = ecx; /* 0x36089655: mov dword ptr fs:[0], ecx */
   5792     esp = ebp; /* 0x3608965C: mov esp, ebp */
   5793     ebp = POP32_VAL(esp); /* 0x3608965E: pop ebp */
   5794     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608965F: ret 4 */
   5795 L_36089662:
   5796     eax = MEM32(edi + 0x4); /* 0x36089662: mov eax, dword ptr [edi + 4] */
   5797     edx = MEM32(ebx); /* 0x36089665: mov edx, dword ptr [ebx] */
   5798     PUSH32(esp, eax); /* 0x36089667: push eax */
   5799     PUSH32(esp, 0x2BEu); /* 0x36089668: push 0x2be */
   5800     ecx = ebx; /* 0x3608966D: mov ecx, ebx */
   5801     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608966F: call dword ptr [edx + 8] */
   5802     RECOMP_FLAGS_IN();
   5803     eax = MEM32(edi + 0x8); /* 0x36089672: mov eax, dword ptr [edi + 8] */
   5804     edx = MEM32(ebx); /* 0x36089675: mov edx, dword ptr [ebx] */
   5805     PUSH32(esp, eax); /* 0x36089677: push eax */
   5806     PUSH32(esp, 0x2BFu); /* 0x36089678: push 0x2bf */
   5807     ecx = ebx; /* 0x3608967D: mov ecx, ebx */
   5808     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608967F: call dword ptr [edx + 8] */
   5809     RECOMP_FLAGS_IN();
   5810     eax = MEM32(edi); /* 0x36089682: mov eax, dword ptr [edi] */
   5811     edx = MEM32(ebx); /* 0x36089684: mov edx, dword ptr [ebx] */
   5812     PUSH32(esp, eax); /* 0x36089686: push eax */
   5813     PUSH32(esp, 0x2BDu); /* 0x36089687: push 0x2bd */
   5814     ecx = ebx; /* 0x3608968C: mov ecx, ebx */
   5815     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608968E: call dword ptr [edx + 8] */
   5816     RECOMP_FLAGS_IN();
   5817     PUSH32(esp, ebx); /* 0x36089691: push ebx */
   5818     RECOMP_ICALL(0x360F0E90u); /* 0x36089692: call 0x360f0e90 */ /* not lifted */
   5819     RECOMP_FLAGS_IN();
   5820     ecx = eax; /* 0x36089697: mov ecx, eax */
   5821     RECOMP_ICALL(0x360F1200u); /* 0x36089699: call 0x360f1200 */ /* not lifted */
   5822     RECOMP_FLAGS_IN();
   5823     ecx = MEM32(ebp + (-0x2C)); /* 0x3608969E: mov ecx, dword ptr [ebp - 0x2c] */
   5824     esi = MEM32(ecx); /* 0x360896A1: mov esi, dword ptr [ecx] */
   5825     eax = MEM32(esi + 0x2C); /* 0x360896A3: mov eax, dword ptr [esi + 0x2c] */
   5826     /* cmp eax, MEM32(esi + 0x28) */ /* 0x360896A6: cmp eax, dword ptr [esi + 0x28] */
   5827     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x28));
   5828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5829     _flag_k = FK_CMP;
   5830     if (CMP_AE(_flag_a, _flag_b)) goto L_36089721; /* 0x360896A9: jae 0x36089721 */
   5831 L_360896AB:
   5832     MEM32(esi + 0x24) = eax; /* 0x360896AB: mov dword ptr [esi + 0x24], eax */
   5833     edx = edi; /* 0x360896AE: mov edx, edi */
   5834     eax = MEM32(edx); /* 0x360896B0: mov eax, dword ptr [edx] */
   5835     ecx = MEM32(edx + 0x4); /* 0x360896B2: mov ecx, dword ptr [edx + 4] */
   5836     edx = MEM32(edx + 0x8); /* 0x360896B5: mov edx, dword ptr [edx + 8] */
   5837     MEM32(ebp + (-0x20)) = eax; /* 0x360896B8: mov dword ptr [ebp - 0x20], eax */
   5838     MEM32(ebp + (-0x1C)) = ecx; /* 0x360896BB: mov dword ptr [ebp - 0x1c], ecx */
   5839     ecx = MEM32(esi + 0x8); /* 0x360896BE: mov ecx, dword ptr [esi + 8] */
   5840     eax = ebp + (-0x20); /* 0x360896C1: lea eax, [ebp - 0x20] */
   5841     PUSH32(esp, eax); /* 0x360896C4: push eax */
   5842     PUSH32(esp, ecx); /* 0x360896C5: push ecx */
   5843     ecx = esi; /* 0x360896C6: mov ecx, esi */
   5844     MEM32(ebp + (-0x18)) = edx; /* 0x360896C8: mov dword ptr [ebp - 0x18], edx */
   5845     MEM32(ebp + (-0x14)) = ebx; /* 0x360896CB: mov dword ptr [ebp - 0x14], ebx */
   5846     MEM8(ebp + (-0x10)) = (uint8_t)(1); /* 0x360896CE: mov byte ptr [ebp - 0x10], 1 */
   5847     RECOMP_ICALL(0x36089970u); /* 0x360896D2: call 0x36089970 */ /* not lifted */
   5848     RECOMP_FLAGS_IN();
   5849     eax = MEM32(edi + 0x4); /* 0x360896D7: mov eax, dword ptr [edi + 4] */
   5850     ecx = MEM32(edi + 0x8); /* 0x360896DA: mov ecx, dword ptr [edi + 8] */
   5851     edx = MEM32(edi); /* 0x360896DD: mov edx, dword ptr [edi] */
   5852     MEM32(ebp + (-0x18)) = eax; /* 0x360896DF: mov dword ptr [ebp - 0x18], eax */
   5853     MEM32(ebp + (-0x14)) = ecx; /* 0x360896E2: mov dword ptr [ebp - 0x14], ecx */
   5854     eax = ebp + (-0x1C); /* 0x360896E5: lea eax, [ebp - 0x1c] */
   5855     PUSH32(esp, eax); /* 0x360896E8: push eax */
   5856     ecx = ebp + (-0x28); /* 0x360896E9: lea ecx, [ebp - 0x28] */
   5857     MEM32(ebp + (-0x1C)) = edx; /* 0x360896EC: mov dword ptr [ebp - 0x1c], edx */
   5858     edx = MEM32(esi + 0x24); /* 0x360896EF: mov edx, dword ptr [esi + 0x24] */
   5859     PUSH32(esp, ecx); /* 0x360896F2: push ecx */
   5860     ecx = esi + 0x10; /* 0x360896F3: lea ecx, [esi + 0x10] */
   5861     MEM32(ebp + (-0x10)) = edx; /* 0x360896F6: mov dword ptr [ebp - 0x10], edx */
   5862     RECOMP_ICALL(0x36089BD0u); /* 0x360896F9: call 0x36089bd0 */ /* not lifted */
   5863     RECOMP_FLAGS_IN();
   5864     edx = MEM32(eax); /* 0x360896FE: mov edx, dword ptr [eax] */
   5865     MEM32(ebp + (-0x30)) = edx; /* 0x36089700: mov dword ptr [ebp - 0x30], edx */
   5866     eax = MEM32(eax + 0x4); /* 0x36089703: mov eax, dword ptr [eax + 4] */
   5867     ecx = ebp + (-0x2C); /* 0x36089706: lea ecx, [ebp - 0x2c] */
   5868     PUSH32(esp, ecx); /* 0x36089709: push ecx */
   5869     edx = ebp + (-0x30); /* 0x3608970A: lea edx, [ebp - 0x30] */
   5870     PUSH32(esp, edx); /* 0x3608970D: push edx */
   5871     ecx = ebp + (-0x28); /* 0x3608970E: lea ecx, [ebp - 0x28] */
   5872     MEM32(ebp + (-0x2C)) = eax; /* 0x36089711: mov dword ptr [ebp - 0x2c], eax */
   5873     RECOMP_ICALL(0x3614FCB0u); /* 0x36089714: call 0x3614fcb0 */ /* not lifted */
   5874     RECOMP_FLAGS_IN();
   5875     _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1);
   5876     MEM32(esi + 0x2C) = MEM32(esi + 0x2C) + 1; /* 0x36089719: inc dword ptr [esi + 0x2c] */
   5877     _flag_k = FK_INC;
   5878     goto L_360897F6; /* 0x3608971C: jmp 0x360897f6 */
   5879 L_36089721:
   5880     edx = MEM32(esi + 0x24); /* 0x36089721: mov edx, dword ptr [esi + 0x24] */
   5881     ecx = MEM32(esi + 0x28); /* 0x36089724: mov ecx, dword ptr [esi + 0x28] */
   5882     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   5883     edx = edx + 1; /* 0x36089727: inc edx */
   5884     _flag_k = FK_INC;
   5885     eax = edx; /* 0x36089728: mov eax, edx */
   5886     /* cmp eax, ecx */ /* 0x3608972A: cmp eax, ecx */
   5887     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5889     _flag_k = FK_CMP;
   5890     MEM32(esi + 0x24) = edx; /* 0x3608972C: mov dword ptr [esi + 0x24], edx */
   5891     if (CMP_B(_flag_a, _flag_b)) goto L_36089738; /* 0x3608972F: jb 0x36089738 */
   5892 L_36089731:
   5893     MEM32(esi + 0x24) = 0; /* 0x36089731: mov dword ptr [esi + 0x24], 0 */
   5894 L_36089738:
   5895     eax = MEM32(esi + 0x24); /* 0x36089738: mov eax, dword ptr [esi + 0x24] */
   5896     ecx = MEM32(esi + 0x4); /* 0x3608973B: mov ecx, dword ptr [esi + 4] */
   5897     eax = eax + eax * 4; /* 0x3608973E: lea eax, [eax + eax*4] */
   5898     eax = ecx + eax * 4 + 0x10; /* 0x36089741: lea eax, [ecx + eax*4 + 0x10] */
   5899     /* cmp MEM8(eax), 0 */ /* 0x36089745: cmp byte ptr [eax], 0 */
   5900     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   5901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5902     _flag_k = FK_NARROW(FK_CMP, 24);
   5903     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608974F; /* 0x36089748: je 0x3608974f */
   5904 L_3608974A:
   5905     MEM8(eax) = (uint8_t)(0); /* 0x3608974A: mov byte ptr [eax], 0 */
   5906     RECOMP_BACKEDGE();
   5907     goto L_36089721; /* 0x3608974D: jmp 0x36089721 */
   5908 L_3608974F:
   5909     eax = MEM32(esi + 0x24); /* 0x3608974F: mov eax, dword ptr [esi + 0x24] */
   5910     edx = eax + eax * 4; /* 0x36089752: lea edx, [eax + eax*4] */
   5911     eax = MEM32(esi + 0x4); /* 0x36089755: mov eax, dword ptr [esi + 4] */
   5912     eax = eax + edx * 4; /* 0x36089758: lea eax, [eax + edx*4] */
   5913     PUSH32(esp, eax); /* 0x3608975B: push eax */
   5914     edx = ebp + (-0x14); /* 0x3608975C: lea edx, [ebp - 0x14] */
   5915     ecx = esi + 0x10; /* 0x3608975F: lea ecx, [esi + 0x10] */
   5916     PUSH32(esp, edx); /* 0x36089762: push edx */
   5917     MEM32(ebp + 0x8) = eax; /* 0x36089763: mov dword ptr [ebp + 8], eax */
   5918     RECOMP_ICALL(0x36089FA0u); /* 0x36089766: call 0x36089fa0 */ /* not lifted */
   5919     RECOMP_FLAGS_IN();
   5920     ecx = eax; /* 0x3608976B: mov ecx, eax */
   5921     eax = MEM32(ecx); /* 0x3608976D: mov eax, dword ptr [ecx] */
   5922     ecx = MEM32(ecx + 0x4); /* 0x3608976F: mov ecx, dword ptr [ecx + 4] */
   5923     edx = ebp + (-0x2C); /* 0x36089772: lea edx, [ebp - 0x2c] */
   5924     PUSH32(esp, edx); /* 0x36089775: push edx */
   5925     PUSH32(esp, ecx); /* 0x36089776: push ecx */
   5926     PUSH32(esp, eax); /* 0x36089777: push eax */
   5927     MEM32(ebp + (-0x28)) = eax; /* 0x36089778: mov dword ptr [ebp - 0x28], eax */
   5928     MEM32(ebp + (-0x24)) = ecx; /* 0x3608977B: mov dword ptr [ebp - 0x24], ecx */
   5929     MEM32(ebp + (-0x2C)) = 0; /* 0x3608977E: mov dword ptr [ebp - 0x2c], 0 */
   5930     RECOMP_ICALL(0x3608A350u); /* 0x36089785: call 0x3608a350 */ /* not lifted */
   5931     RECOMP_FLAGS_IN();
   5932     eax = MEM32(ebp + (-0x24)); /* 0x3608978A: mov eax, dword ptr [ebp - 0x24] */
   5933     ecx = MEM32(ebp + (-0x28)); /* 0x3608978D: mov ecx, dword ptr [ebp - 0x28] */
   5934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5936     esp = esp + 0xCu; /* 0x36089790: add esp, 0xc */
   5937     _flag_k = FK_ADD;
   5938     PUSH32(esp, eax); /* 0x36089793: push eax */
   5939     PUSH32(esp, ecx); /* 0x36089794: push ecx */
   5940     edx = ebp + (-0x24); /* 0x36089795: lea edx, [ebp - 0x24] */
   5941     PUSH32(esp, edx); /* 0x36089798: push edx */
   5942     ecx = esi + 0x10; /* 0x36089799: lea ecx, [esi + 0x10] */
   5943     RECOMP_ICALL(0x36089E60u); /* 0x3608979C: call 0x36089e60 */ /* not lifted */
   5944     RECOMP_FLAGS_IN();
   5945     eax = MEM32(ebp + 0x8); /* 0x360897A1: mov eax, dword ptr [ebp + 8] */
   5946     ecx = MEM32(eax + 0xC); /* 0x360897A4: mov ecx, dword ptr [eax + 0xc] */
   5947     /* test ecx, ecx */ /* 0x360897A7: test ecx, ecx */
   5948     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5949     _cf = 0;
   5950     _flag_k = FK_TEST;
   5951     if (TEST_Z(_flag_a, _flag_b)) goto L_360897B1; /* 0x360897A9: je 0x360897b1 */
   5952 L_360897AB:
   5953     edx = MEM32(ecx); /* 0x360897AB: mov edx, dword ptr [ecx] */
   5954     PUSH32(esp, 1); /* 0x360897AD: push 1 */
   5955     RECOMP_ICALL(MEM32(edx)); /* 0x360897AF: call dword ptr [edx] */
   5956     RECOMP_FLAGS_IN();
   5957 L_360897B1:
   5958     ecx = MEM32(ebp + 0x8); /* 0x360897B1: mov ecx, dword ptr [ebp + 8] */
   5959     eax = edi; /* 0x360897B4: mov eax, edi */
   5960     edx = MEM32(eax); /* 0x360897B6: mov edx, dword ptr [eax] */
   5961     MEM32(ecx) = edx; /* 0x360897B8: mov dword ptr [ecx], edx */
   5962     edx = MEM32(eax + 0x4); /* 0x360897BA: mov edx, dword ptr [eax + 4] */
   5963     MEM32(ecx + 0x4) = edx; /* 0x360897BD: mov dword ptr [ecx + 4], edx */
   5964     eax = MEM32(eax + 0x8); /* 0x360897C0: mov eax, dword ptr [eax + 8] */
   5965     MEM32(ecx + 0x8) = eax; /* 0x360897C3: mov dword ptr [ecx + 8], eax */
   5966     eax = ecx; /* 0x360897C6: mov eax, ecx */
   5967     MEM32(eax + 0xC) = ebx; /* 0x360897C8: mov dword ptr [eax + 0xc], ebx */
   5968     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x360897CB: mov byte ptr [eax + 0x10], 1 */
   5969     edx = MEM32(edi + 0x4); /* 0x360897CF: mov edx, dword ptr [edi + 4] */
   5970     ecx = MEM32(edi); /* 0x360897D2: mov ecx, dword ptr [edi] */
   5971     eax = MEM32(edi + 0x8); /* 0x360897D4: mov eax, dword ptr [edi + 8] */
   5972     MEM32(ebp + (-0x50)) = ecx; /* 0x360897D7: mov dword ptr [ebp - 0x50], ecx */
   5973     ecx = MEM32(esi + 0x24); /* 0x360897DA: mov ecx, dword ptr [esi + 0x24] */
   5974     MEM32(ebp + (-0x4C)) = edx; /* 0x360897DD: mov dword ptr [ebp - 0x4c], edx */
   5975     edx = ebp + (-0x50); /* 0x360897E0: lea edx, [ebp - 0x50] */
   5976     MEM32(ebp + (-0x48)) = eax; /* 0x360897E3: mov dword ptr [ebp - 0x48], eax */
   5977     PUSH32(esp, edx); /* 0x360897E6: push edx */
   5978     eax = ebp + (-0x30); /* 0x360897E7: lea eax, [ebp - 0x30] */
   5979     MEM32(ebp + (-0x44)) = ecx; /* 0x360897EA: mov dword ptr [ebp - 0x44], ecx */
   5980     PUSH32(esp, eax); /* 0x360897ED: push eax */
   5981     ecx = esi + 0x10; /* 0x360897EE: lea ecx, [esi + 0x10] */
   5982     RECOMP_ICALL(0x36089BD0u); /* 0x360897F1: call 0x36089bd0 */ /* not lifted */
   5983     RECOMP_FLAGS_IN();
   5984 L_360897F6:
   5985     _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1);
   5986     MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x360897F6: inc dword ptr [esi + 0x38] */
   5987     _flag_k = FK_INC;
   5988     eax = ebx; /* 0x360897F9: mov eax, ebx */
   5989     ecx = MEM32(ebp + (-0xC)); /* 0x360897FB: mov ecx, dword ptr [ebp - 0xc] */
   5990     edi = POP32_VAL(esp); /* 0x360897FE: pop edi */
   5991     esi = POP32_VAL(esp); /* 0x360897FF: pop esi */
   5992     ebx = POP32_VAL(esp); /* 0x36089800: pop ebx */
   5993     MEM32(FS_BASE + (0)) = ecx; /* 0x36089801: mov dword ptr fs:[0], ecx */
   5994     esp = ebp; /* 0x36089808: mov esp, ebp */
   5995     ebp = POP32_VAL(esp); /* 0x3608980A: pop ebp */
   5996     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608980B: ret 4 */
   5997     RECOMP_REGS_OUT();
   5998 }
   5999 
   6000 void sub_3608962C(void) {
   6001     int _fpu_cmp = 0;
   6002     uint32_t _cf = 0;
   6003     int _df = 1;
   6004     uint32_t _flag_k = FK_NONE;
   6005     uint32_t _flag_a = 0, _flag_b = 0;
   6006     uint32_t _itail_tgt = 0;
   6007     RECOMP_REGS_LOCALS
   6008     RECOMP_ENTER(0x3608962Cu);
   6009 
   6010 L_3608962C:
   6011     edx = MEM32(ebx); /* 0x3608962C: mov edx, dword ptr [ebx] */
   6012     PUSH32(esp, eax); /* 0x3608962E: push eax */
   6013     PUSH32(esp, 0x17u); /* 0x3608962F: push 0x17 */
   6014     ecx = ebx; /* 0x36089631: mov ecx, ebx */
   6015     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36089633: call dword ptr [edx + 8] */
   6016     RECOMP_FLAGS_IN();
   6017     ecx = ebx; /* 0x36089636: mov ecx, ebx */
   6018     RECOMP_ICALL(0x3608F430u); /* 0x36089638: call 0x3608f430 */ /* not lifted */
   6019     RECOMP_FLAGS_IN();
   6020     /* test LO8(eax), LO8(eax) */ /* 0x3608963D: test al, al */
   6021     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6022     _cf = 0;
   6023     _flag_k = FK_NARROW(FK_TEST, 24);
   6024     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089662; /* 0x3608963F: jne 0x36089662 */
   6025 L_36089641:
   6026     /* test ebx, ebx */ /* 0x36089641: test ebx, ebx */
   6027     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6028     _cf = 0;
   6029     _flag_k = FK_TEST;
   6030     if (TEST_Z(_flag_a, _flag_b)) goto L_3608964D; /* 0x36089643: je 0x3608964d */
   6031 L_36089645:
   6032     eax = MEM32(ebx); /* 0x36089645: mov eax, dword ptr [ebx] */
   6033     PUSH32(esp, 1); /* 0x36089647: push 1 */
   6034     ecx = ebx; /* 0x36089649: mov ecx, ebx */
   6035     RECOMP_ICALL(MEM32(eax)); /* 0x3608964B: call dword ptr [eax] */
   6036     RECOMP_FLAGS_IN();
   6037 L_3608964D:
   6038     edi = POP32_VAL(esp); /* 0x3608964D: pop edi */
   6039     esi = POP32_VAL(esp); /* 0x3608964E: pop esi */
   6040     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6041     eax = 0; /* 0x3608964F: xor eax, eax */
   6042     _cf = 0;
   6043     _flag_k = FK_TEST;
   6044     ebx = POP32_VAL(esp); /* 0x36089651: pop ebx */
   6045     ecx = MEM32(ebp + (-0xC)); /* 0x36089652: mov ecx, dword ptr [ebp - 0xc] */
   6046     MEM32(FS_BASE + (0)) = ecx; /* 0x36089655: mov dword ptr fs:[0], ecx */
   6047     esp = ebp; /* 0x3608965C: mov esp, ebp */
   6048     ebp = POP32_VAL(esp); /* 0x3608965E: pop ebp */
   6049     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608965F: ret 4 */
   6050 L_36089662:
   6051     eax = MEM32(edi + 0x4); /* 0x36089662: mov eax, dword ptr [edi + 4] */
   6052     edx = MEM32(ebx); /* 0x36089665: mov edx, dword ptr [ebx] */
   6053     PUSH32(esp, eax); /* 0x36089667: push eax */
   6054     PUSH32(esp, 0x2BEu); /* 0x36089668: push 0x2be */
   6055     ecx = ebx; /* 0x3608966D: mov ecx, ebx */
   6056     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608966F: call dword ptr [edx + 8] */
   6057     RECOMP_FLAGS_IN();
   6058     eax = MEM32(edi + 0x8); /* 0x36089672: mov eax, dword ptr [edi + 8] */
   6059     edx = MEM32(ebx); /* 0x36089675: mov edx, dword ptr [ebx] */
   6060     PUSH32(esp, eax); /* 0x36089677: push eax */
   6061     PUSH32(esp, 0x2BFu); /* 0x36089678: push 0x2bf */
   6062     ecx = ebx; /* 0x3608967D: mov ecx, ebx */
   6063     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608967F: call dword ptr [edx + 8] */
   6064     RECOMP_FLAGS_IN();
   6065     eax = MEM32(edi); /* 0x36089682: mov eax, dword ptr [edi] */
   6066     edx = MEM32(ebx); /* 0x36089684: mov edx, dword ptr [ebx] */
   6067     PUSH32(esp, eax); /* 0x36089686: push eax */
   6068     PUSH32(esp, 0x2BDu); /* 0x36089687: push 0x2bd */
   6069     ecx = ebx; /* 0x3608968C: mov ecx, ebx */
   6070     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608968E: call dword ptr [edx + 8] */
   6071     RECOMP_FLAGS_IN();
   6072     PUSH32(esp, ebx); /* 0x36089691: push ebx */
   6073     RECOMP_ICALL(0x360F0E90u); /* 0x36089692: call 0x360f0e90 */ /* not lifted */
   6074     RECOMP_FLAGS_IN();
   6075     ecx = eax; /* 0x36089697: mov ecx, eax */
   6076     RECOMP_ICALL(0x360F1200u); /* 0x36089699: call 0x360f1200 */ /* not lifted */
   6077     RECOMP_FLAGS_IN();
   6078     ecx = MEM32(ebp + (-0x2C)); /* 0x3608969E: mov ecx, dword ptr [ebp - 0x2c] */
   6079     esi = MEM32(ecx); /* 0x360896A1: mov esi, dword ptr [ecx] */
   6080     eax = MEM32(esi + 0x2C); /* 0x360896A3: mov eax, dword ptr [esi + 0x2c] */
   6081     /* cmp eax, MEM32(esi + 0x28) */ /* 0x360896A6: cmp eax, dword ptr [esi + 0x28] */
   6082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x28));
   6083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6084     _flag_k = FK_CMP;
   6085     if (CMP_AE(_flag_a, _flag_b)) goto L_36089721; /* 0x360896A9: jae 0x36089721 */
   6086 L_360896AB:
   6087     MEM32(esi + 0x24) = eax; /* 0x360896AB: mov dword ptr [esi + 0x24], eax */
   6088     edx = edi; /* 0x360896AE: mov edx, edi */
   6089     eax = MEM32(edx); /* 0x360896B0: mov eax, dword ptr [edx] */
   6090     ecx = MEM32(edx + 0x4); /* 0x360896B2: mov ecx, dword ptr [edx + 4] */
   6091     edx = MEM32(edx + 0x8); /* 0x360896B5: mov edx, dword ptr [edx + 8] */
   6092     MEM32(ebp + (-0x20)) = eax; /* 0x360896B8: mov dword ptr [ebp - 0x20], eax */
   6093     MEM32(ebp + (-0x1C)) = ecx; /* 0x360896BB: mov dword ptr [ebp - 0x1c], ecx */
   6094     ecx = MEM32(esi + 0x8); /* 0x360896BE: mov ecx, dword ptr [esi + 8] */
   6095     eax = ebp + (-0x20); /* 0x360896C1: lea eax, [ebp - 0x20] */
   6096     PUSH32(esp, eax); /* 0x360896C4: push eax */
   6097     PUSH32(esp, ecx); /* 0x360896C5: push ecx */
   6098     ecx = esi; /* 0x360896C6: mov ecx, esi */
   6099     MEM32(ebp + (-0x18)) = edx; /* 0x360896C8: mov dword ptr [ebp - 0x18], edx */
   6100     MEM32(ebp + (-0x14)) = ebx; /* 0x360896CB: mov dword ptr [ebp - 0x14], ebx */
   6101     MEM8(ebp + (-0x10)) = (uint8_t)(1); /* 0x360896CE: mov byte ptr [ebp - 0x10], 1 */
   6102     RECOMP_ICALL(0x36089970u); /* 0x360896D2: call 0x36089970 */ /* not lifted */
   6103     RECOMP_FLAGS_IN();
   6104     eax = MEM32(edi + 0x4); /* 0x360896D7: mov eax, dword ptr [edi + 4] */
   6105     ecx = MEM32(edi + 0x8); /* 0x360896DA: mov ecx, dword ptr [edi + 8] */
   6106     edx = MEM32(edi); /* 0x360896DD: mov edx, dword ptr [edi] */
   6107     MEM32(ebp + (-0x18)) = eax; /* 0x360896DF: mov dword ptr [ebp - 0x18], eax */
   6108     MEM32(ebp + (-0x14)) = ecx; /* 0x360896E2: mov dword ptr [ebp - 0x14], ecx */
   6109     eax = ebp + (-0x1C); /* 0x360896E5: lea eax, [ebp - 0x1c] */
   6110     PUSH32(esp, eax); /* 0x360896E8: push eax */
   6111     ecx = ebp + (-0x28); /* 0x360896E9: lea ecx, [ebp - 0x28] */
   6112     MEM32(ebp + (-0x1C)) = edx; /* 0x360896EC: mov dword ptr [ebp - 0x1c], edx */
   6113     edx = MEM32(esi + 0x24); /* 0x360896EF: mov edx, dword ptr [esi + 0x24] */
   6114     PUSH32(esp, ecx); /* 0x360896F2: push ecx */
   6115     ecx = esi + 0x10; /* 0x360896F3: lea ecx, [esi + 0x10] */
   6116     MEM32(ebp + (-0x10)) = edx; /* 0x360896F6: mov dword ptr [ebp - 0x10], edx */
   6117     RECOMP_ICALL(0x36089BD0u); /* 0x360896F9: call 0x36089bd0 */ /* not lifted */
   6118     RECOMP_FLAGS_IN();
   6119     edx = MEM32(eax); /* 0x360896FE: mov edx, dword ptr [eax] */
   6120     MEM32(ebp + (-0x30)) = edx; /* 0x36089700: mov dword ptr [ebp - 0x30], edx */
   6121     eax = MEM32(eax + 0x4); /* 0x36089703: mov eax, dword ptr [eax + 4] */
   6122     ecx = ebp + (-0x2C); /* 0x36089706: lea ecx, [ebp - 0x2c] */
   6123     PUSH32(esp, ecx); /* 0x36089709: push ecx */
   6124     edx = ebp + (-0x30); /* 0x3608970A: lea edx, [ebp - 0x30] */
   6125     PUSH32(esp, edx); /* 0x3608970D: push edx */
   6126     ecx = ebp + (-0x28); /* 0x3608970E: lea ecx, [ebp - 0x28] */
   6127     MEM32(ebp + (-0x2C)) = eax; /* 0x36089711: mov dword ptr [ebp - 0x2c], eax */
   6128     RECOMP_ICALL(0x3614FCB0u); /* 0x36089714: call 0x3614fcb0 */ /* not lifted */
   6129     RECOMP_FLAGS_IN();
   6130     _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1);
   6131     MEM32(esi + 0x2C) = MEM32(esi + 0x2C) + 1; /* 0x36089719: inc dword ptr [esi + 0x2c] */
   6132     _flag_k = FK_INC;
   6133     goto L_360897F6; /* 0x3608971C: jmp 0x360897f6 */
   6134 L_36089721:
   6135     edx = MEM32(esi + 0x24); /* 0x36089721: mov edx, dword ptr [esi + 0x24] */
   6136     ecx = MEM32(esi + 0x28); /* 0x36089724: mov ecx, dword ptr [esi + 0x28] */
   6137     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6138     edx = edx + 1; /* 0x36089727: inc edx */
   6139     _flag_k = FK_INC;
   6140     eax = edx; /* 0x36089728: mov eax, edx */
   6141     /* cmp eax, ecx */ /* 0x3608972A: cmp eax, ecx */
   6142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6144     _flag_k = FK_CMP;
   6145     MEM32(esi + 0x24) = edx; /* 0x3608972C: mov dword ptr [esi + 0x24], edx */
   6146     if (CMP_B(_flag_a, _flag_b)) goto L_36089738; /* 0x3608972F: jb 0x36089738 */
   6147 L_36089731:
   6148     MEM32(esi + 0x24) = 0; /* 0x36089731: mov dword ptr [esi + 0x24], 0 */
   6149 L_36089738:
   6150     eax = MEM32(esi + 0x24); /* 0x36089738: mov eax, dword ptr [esi + 0x24] */
   6151     ecx = MEM32(esi + 0x4); /* 0x3608973B: mov ecx, dword ptr [esi + 4] */
   6152     eax = eax + eax * 4; /* 0x3608973E: lea eax, [eax + eax*4] */
   6153     eax = ecx + eax * 4 + 0x10; /* 0x36089741: lea eax, [ecx + eax*4 + 0x10] */
   6154     /* cmp MEM8(eax), 0 */ /* 0x36089745: cmp byte ptr [eax], 0 */
   6155     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   6156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6157     _flag_k = FK_NARROW(FK_CMP, 24);
   6158     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608974F; /* 0x36089748: je 0x3608974f */
   6159 L_3608974A:
   6160     MEM8(eax) = (uint8_t)(0); /* 0x3608974A: mov byte ptr [eax], 0 */
   6161     RECOMP_BACKEDGE();
   6162     goto L_36089721; /* 0x3608974D: jmp 0x36089721 */
   6163 L_3608974F:
   6164     eax = MEM32(esi + 0x24); /* 0x3608974F: mov eax, dword ptr [esi + 0x24] */
   6165     edx = eax + eax * 4; /* 0x36089752: lea edx, [eax + eax*4] */
   6166     eax = MEM32(esi + 0x4); /* 0x36089755: mov eax, dword ptr [esi + 4] */
   6167     eax = eax + edx * 4; /* 0x36089758: lea eax, [eax + edx*4] */
   6168     PUSH32(esp, eax); /* 0x3608975B: push eax */
   6169     edx = ebp + (-0x14); /* 0x3608975C: lea edx, [ebp - 0x14] */
   6170     ecx = esi + 0x10; /* 0x3608975F: lea ecx, [esi + 0x10] */
   6171     PUSH32(esp, edx); /* 0x36089762: push edx */
   6172     MEM32(ebp + 0x8) = eax; /* 0x36089763: mov dword ptr [ebp + 8], eax */
   6173     RECOMP_ICALL(0x36089FA0u); /* 0x36089766: call 0x36089fa0 */ /* not lifted */
   6174     RECOMP_FLAGS_IN();
   6175     ecx = eax; /* 0x3608976B: mov ecx, eax */
   6176     eax = MEM32(ecx); /* 0x3608976D: mov eax, dword ptr [ecx] */
   6177     ecx = MEM32(ecx + 0x4); /* 0x3608976F: mov ecx, dword ptr [ecx + 4] */
   6178     edx = ebp + (-0x2C); /* 0x36089772: lea edx, [ebp - 0x2c] */
   6179     PUSH32(esp, edx); /* 0x36089775: push edx */
   6180     PUSH32(esp, ecx); /* 0x36089776: push ecx */
   6181     PUSH32(esp, eax); /* 0x36089777: push eax */
   6182     MEM32(ebp + (-0x28)) = eax; /* 0x36089778: mov dword ptr [ebp - 0x28], eax */
   6183     MEM32(ebp + (-0x24)) = ecx; /* 0x3608977B: mov dword ptr [ebp - 0x24], ecx */
   6184     MEM32(ebp + (-0x2C)) = 0; /* 0x3608977E: mov dword ptr [ebp - 0x2c], 0 */
   6185     RECOMP_ICALL(0x3608A350u); /* 0x36089785: call 0x3608a350 */ /* not lifted */
   6186     RECOMP_FLAGS_IN();
   6187     eax = MEM32(ebp + (-0x24)); /* 0x3608978A: mov eax, dword ptr [ebp - 0x24] */
   6188     ecx = MEM32(ebp + (-0x28)); /* 0x3608978D: mov ecx, dword ptr [ebp - 0x28] */
   6189     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6191     esp = esp + 0xCu; /* 0x36089790: add esp, 0xc */
   6192     _flag_k = FK_ADD;
   6193     PUSH32(esp, eax); /* 0x36089793: push eax */
   6194     PUSH32(esp, ecx); /* 0x36089794: push ecx */
   6195     edx = ebp + (-0x24); /* 0x36089795: lea edx, [ebp - 0x24] */
   6196     PUSH32(esp, edx); /* 0x36089798: push edx */
   6197     ecx = esi + 0x10; /* 0x36089799: lea ecx, [esi + 0x10] */
   6198     RECOMP_ICALL(0x36089E60u); /* 0x3608979C: call 0x36089e60 */ /* not lifted */
   6199     RECOMP_FLAGS_IN();
   6200     eax = MEM32(ebp + 0x8); /* 0x360897A1: mov eax, dword ptr [ebp + 8] */
   6201     ecx = MEM32(eax + 0xC); /* 0x360897A4: mov ecx, dword ptr [eax + 0xc] */
   6202     /* test ecx, ecx */ /* 0x360897A7: test ecx, ecx */
   6203     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6204     _cf = 0;
   6205     _flag_k = FK_TEST;
   6206     if (TEST_Z(_flag_a, _flag_b)) goto L_360897B1; /* 0x360897A9: je 0x360897b1 */
   6207 L_360897AB:
   6208     edx = MEM32(ecx); /* 0x360897AB: mov edx, dword ptr [ecx] */
   6209     PUSH32(esp, 1); /* 0x360897AD: push 1 */
   6210     RECOMP_ICALL(MEM32(edx)); /* 0x360897AF: call dword ptr [edx] */
   6211     RECOMP_FLAGS_IN();
   6212 L_360897B1:
   6213     ecx = MEM32(ebp + 0x8); /* 0x360897B1: mov ecx, dword ptr [ebp + 8] */
   6214     eax = edi; /* 0x360897B4: mov eax, edi */
   6215     edx = MEM32(eax); /* 0x360897B6: mov edx, dword ptr [eax] */
   6216     MEM32(ecx) = edx; /* 0x360897B8: mov dword ptr [ecx], edx */
   6217     edx = MEM32(eax + 0x4); /* 0x360897BA: mov edx, dword ptr [eax + 4] */
   6218     MEM32(ecx + 0x4) = edx; /* 0x360897BD: mov dword ptr [ecx + 4], edx */
   6219     eax = MEM32(eax + 0x8); /* 0x360897C0: mov eax, dword ptr [eax + 8] */
   6220     MEM32(ecx + 0x8) = eax; /* 0x360897C3: mov dword ptr [ecx + 8], eax */
   6221     eax = ecx; /* 0x360897C6: mov eax, ecx */
   6222     MEM32(eax + 0xC) = ebx; /* 0x360897C8: mov dword ptr [eax + 0xc], ebx */
   6223     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x360897CB: mov byte ptr [eax + 0x10], 1 */
   6224     edx = MEM32(edi + 0x4); /* 0x360897CF: mov edx, dword ptr [edi + 4] */
   6225     ecx = MEM32(edi); /* 0x360897D2: mov ecx, dword ptr [edi] */
   6226     eax = MEM32(edi + 0x8); /* 0x360897D4: mov eax, dword ptr [edi + 8] */
   6227     MEM32(ebp + (-0x50)) = ecx; /* 0x360897D7: mov dword ptr [ebp - 0x50], ecx */
   6228     ecx = MEM32(esi + 0x24); /* 0x360897DA: mov ecx, dword ptr [esi + 0x24] */
   6229     MEM32(ebp + (-0x4C)) = edx; /* 0x360897DD: mov dword ptr [ebp - 0x4c], edx */
   6230     edx = ebp + (-0x50); /* 0x360897E0: lea edx, [ebp - 0x50] */
   6231     MEM32(ebp + (-0x48)) = eax; /* 0x360897E3: mov dword ptr [ebp - 0x48], eax */
   6232     PUSH32(esp, edx); /* 0x360897E6: push edx */
   6233     eax = ebp + (-0x30); /* 0x360897E7: lea eax, [ebp - 0x30] */
   6234     MEM32(ebp + (-0x44)) = ecx; /* 0x360897EA: mov dword ptr [ebp - 0x44], ecx */
   6235     PUSH32(esp, eax); /* 0x360897ED: push eax */
   6236     ecx = esi + 0x10; /* 0x360897EE: lea ecx, [esi + 0x10] */
   6237     RECOMP_ICALL(0x36089BD0u); /* 0x360897F1: call 0x36089bd0 */ /* not lifted */
   6238     RECOMP_FLAGS_IN();
   6239 L_360897F6:
   6240     _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1);
   6241     MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x360897F6: inc dword ptr [esi + 0x38] */
   6242     _flag_k = FK_INC;
   6243     eax = ebx; /* 0x360897F9: mov eax, ebx */
   6244     ecx = MEM32(ebp + (-0xC)); /* 0x360897FB: mov ecx, dword ptr [ebp - 0xc] */
   6245     edi = POP32_VAL(esp); /* 0x360897FE: pop edi */
   6246     esi = POP32_VAL(esp); /* 0x360897FF: pop esi */
   6247     ebx = POP32_VAL(esp); /* 0x36089800: pop ebx */
   6248     MEM32(FS_BASE + (0)) = ecx; /* 0x36089801: mov dword ptr fs:[0], ecx */
   6249     esp = ebp; /* 0x36089808: mov esp, ebp */
   6250     ebp = POP32_VAL(esp); /* 0x3608980A: pop ebp */
   6251     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608980B: ret 4 */
   6252     RECOMP_REGS_OUT();
   6253 }
   6254 
   6255 void sub_36089721(void) {
   6256     int _fpu_cmp = 0;
   6257     uint32_t _cf = 0;
   6258     int _df = 1;
   6259     uint32_t _flag_k = FK_NONE;
   6260     uint32_t _flag_a = 0, _flag_b = 0;
   6261     uint32_t _itail_tgt = 0;
   6262     RECOMP_REGS_LOCALS
   6263     RECOMP_ENTER(0x36089721u);
   6264 
   6265 L_36089721:
   6266     edx = MEM32(esi + 0x24); /* 0x36089721: mov edx, dword ptr [esi + 0x24] */
   6267     ecx = MEM32(esi + 0x28); /* 0x36089724: mov ecx, dword ptr [esi + 0x28] */
   6268     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6269     edx = edx + 1; /* 0x36089727: inc edx */
   6270     _flag_k = FK_INC;
   6271     eax = edx; /* 0x36089728: mov eax, edx */
   6272     /* cmp eax, ecx */ /* 0x3608972A: cmp eax, ecx */
   6273     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6274     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6275     _flag_k = FK_CMP;
   6276     MEM32(esi + 0x24) = edx; /* 0x3608972C: mov dword ptr [esi + 0x24], edx */
   6277     if (CMP_B(_flag_a, _flag_b)) goto L_36089738; /* 0x3608972F: jb 0x36089738 */
   6278 L_36089731:
   6279     MEM32(esi + 0x24) = 0; /* 0x36089731: mov dword ptr [esi + 0x24], 0 */
   6280 L_36089738:
   6281     eax = MEM32(esi + 0x24); /* 0x36089738: mov eax, dword ptr [esi + 0x24] */
   6282     ecx = MEM32(esi + 0x4); /* 0x3608973B: mov ecx, dword ptr [esi + 4] */
   6283     eax = eax + eax * 4; /* 0x3608973E: lea eax, [eax + eax*4] */
   6284     eax = ecx + eax * 4 + 0x10; /* 0x36089741: lea eax, [ecx + eax*4 + 0x10] */
   6285     /* cmp MEM8(eax), 0 */ /* 0x36089745: cmp byte ptr [eax], 0 */
   6286     _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24;
   6287     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6288     _flag_k = FK_NARROW(FK_CMP, 24);
   6289     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608974F; /* 0x36089748: je 0x3608974f */
   6290 L_3608974A:
   6291     MEM8(eax) = (uint8_t)(0); /* 0x3608974A: mov byte ptr [eax], 0 */
   6292     RECOMP_BACKEDGE();
   6293     goto L_36089721; /* 0x3608974D: jmp 0x36089721 */
   6294 L_3608974F:
   6295     eax = MEM32(esi + 0x24); /* 0x3608974F: mov eax, dword ptr [esi + 0x24] */
   6296     edx = eax + eax * 4; /* 0x36089752: lea edx, [eax + eax*4] */
   6297     eax = MEM32(esi + 0x4); /* 0x36089755: mov eax, dword ptr [esi + 4] */
   6298     eax = eax + edx * 4; /* 0x36089758: lea eax, [eax + edx*4] */
   6299     PUSH32(esp, eax); /* 0x3608975B: push eax */
   6300     edx = ebp + (-0x14); /* 0x3608975C: lea edx, [ebp - 0x14] */
   6301     ecx = esi + 0x10; /* 0x3608975F: lea ecx, [esi + 0x10] */
   6302     PUSH32(esp, edx); /* 0x36089762: push edx */
   6303     MEM32(ebp + 0x8) = eax; /* 0x36089763: mov dword ptr [ebp + 8], eax */
   6304     RECOMP_ICALL(0x36089FA0u); /* 0x36089766: call 0x36089fa0 */ /* not lifted */
   6305     RECOMP_FLAGS_IN();
   6306     ecx = eax; /* 0x3608976B: mov ecx, eax */
   6307     eax = MEM32(ecx); /* 0x3608976D: mov eax, dword ptr [ecx] */
   6308     ecx = MEM32(ecx + 0x4); /* 0x3608976F: mov ecx, dword ptr [ecx + 4] */
   6309     edx = ebp + (-0x2C); /* 0x36089772: lea edx, [ebp - 0x2c] */
   6310     PUSH32(esp, edx); /* 0x36089775: push edx */
   6311     PUSH32(esp, ecx); /* 0x36089776: push ecx */
   6312     PUSH32(esp, eax); /* 0x36089777: push eax */
   6313     MEM32(ebp + (-0x28)) = eax; /* 0x36089778: mov dword ptr [ebp - 0x28], eax */
   6314     MEM32(ebp + (-0x24)) = ecx; /* 0x3608977B: mov dword ptr [ebp - 0x24], ecx */
   6315     MEM32(ebp + (-0x2C)) = 0; /* 0x3608977E: mov dword ptr [ebp - 0x2c], 0 */
   6316     RECOMP_ICALL(0x3608A350u); /* 0x36089785: call 0x3608a350 */ /* not lifted */
   6317     RECOMP_FLAGS_IN();
   6318     eax = MEM32(ebp + (-0x24)); /* 0x3608978A: mov eax, dword ptr [ebp - 0x24] */
   6319     ecx = MEM32(ebp + (-0x28)); /* 0x3608978D: mov ecx, dword ptr [ebp - 0x28] */
   6320     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6321     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6322     esp = esp + 0xCu; /* 0x36089790: add esp, 0xc */
   6323     _flag_k = FK_ADD;
   6324     PUSH32(esp, eax); /* 0x36089793: push eax */
   6325     PUSH32(esp, ecx); /* 0x36089794: push ecx */
   6326     edx = ebp + (-0x24); /* 0x36089795: lea edx, [ebp - 0x24] */
   6327     PUSH32(esp, edx); /* 0x36089798: push edx */
   6328     ecx = esi + 0x10; /* 0x36089799: lea ecx, [esi + 0x10] */
   6329     RECOMP_ICALL(0x36089E60u); /* 0x3608979C: call 0x36089e60 */ /* not lifted */
   6330     RECOMP_FLAGS_IN();
   6331     eax = MEM32(ebp + 0x8); /* 0x360897A1: mov eax, dword ptr [ebp + 8] */
   6332     ecx = MEM32(eax + 0xC); /* 0x360897A4: mov ecx, dword ptr [eax + 0xc] */
   6333     /* test ecx, ecx */ /* 0x360897A7: test ecx, ecx */
   6334     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6335     _cf = 0;
   6336     _flag_k = FK_TEST;
   6337     if (TEST_Z(_flag_a, _flag_b)) goto L_360897B1; /* 0x360897A9: je 0x360897b1 */
   6338 L_360897AB:
   6339     edx = MEM32(ecx); /* 0x360897AB: mov edx, dword ptr [ecx] */
   6340     PUSH32(esp, 1); /* 0x360897AD: push 1 */
   6341     RECOMP_ICALL(MEM32(edx)); /* 0x360897AF: call dword ptr [edx] */
   6342     RECOMP_FLAGS_IN();
   6343 L_360897B1:
   6344     ecx = MEM32(ebp + 0x8); /* 0x360897B1: mov ecx, dword ptr [ebp + 8] */
   6345     eax = edi; /* 0x360897B4: mov eax, edi */
   6346     edx = MEM32(eax); /* 0x360897B6: mov edx, dword ptr [eax] */
   6347     MEM32(ecx) = edx; /* 0x360897B8: mov dword ptr [ecx], edx */
   6348     edx = MEM32(eax + 0x4); /* 0x360897BA: mov edx, dword ptr [eax + 4] */
   6349     MEM32(ecx + 0x4) = edx; /* 0x360897BD: mov dword ptr [ecx + 4], edx */
   6350     eax = MEM32(eax + 0x8); /* 0x360897C0: mov eax, dword ptr [eax + 8] */
   6351     MEM32(ecx + 0x8) = eax; /* 0x360897C3: mov dword ptr [ecx + 8], eax */
   6352     eax = ecx; /* 0x360897C6: mov eax, ecx */
   6353     MEM32(eax + 0xC) = ebx; /* 0x360897C8: mov dword ptr [eax + 0xc], ebx */
   6354     MEM8(eax + 0x10) = (uint8_t)(1); /* 0x360897CB: mov byte ptr [eax + 0x10], 1 */
   6355     edx = MEM32(edi + 0x4); /* 0x360897CF: mov edx, dword ptr [edi + 4] */
   6356     ecx = MEM32(edi); /* 0x360897D2: mov ecx, dword ptr [edi] */
   6357     eax = MEM32(edi + 0x8); /* 0x360897D4: mov eax, dword ptr [edi + 8] */
   6358     MEM32(ebp + (-0x50)) = ecx; /* 0x360897D7: mov dword ptr [ebp - 0x50], ecx */
   6359     ecx = MEM32(esi + 0x24); /* 0x360897DA: mov ecx, dword ptr [esi + 0x24] */
   6360     MEM32(ebp + (-0x4C)) = edx; /* 0x360897DD: mov dword ptr [ebp - 0x4c], edx */
   6361     edx = ebp + (-0x50); /* 0x360897E0: lea edx, [ebp - 0x50] */
   6362     MEM32(ebp + (-0x48)) = eax; /* 0x360897E3: mov dword ptr [ebp - 0x48], eax */
   6363     PUSH32(esp, edx); /* 0x360897E6: push edx */
   6364     eax = ebp + (-0x30); /* 0x360897E7: lea eax, [ebp - 0x30] */
   6365     MEM32(ebp + (-0x44)) = ecx; /* 0x360897EA: mov dword ptr [ebp - 0x44], ecx */
   6366     PUSH32(esp, eax); /* 0x360897ED: push eax */
   6367     ecx = esi + 0x10; /* 0x360897EE: lea ecx, [esi + 0x10] */
   6368     RECOMP_ICALL(0x36089BD0u); /* 0x360897F1: call 0x36089bd0 */ /* not lifted */
   6369     RECOMP_FLAGS_IN();
   6370     _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1);
   6371     MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x360897F6: inc dword ptr [esi + 0x38] */
   6372     _flag_k = FK_INC;
   6373     eax = ebx; /* 0x360897F9: mov eax, ebx */
   6374     ecx = MEM32(ebp + (-0xC)); /* 0x360897FB: mov ecx, dword ptr [ebp - 0xc] */
   6375     edi = POP32_VAL(esp); /* 0x360897FE: pop edi */
   6376     esi = POP32_VAL(esp); /* 0x360897FF: pop esi */
   6377     ebx = POP32_VAL(esp); /* 0x36089800: pop ebx */
   6378     MEM32(FS_BASE + (0)) = ecx; /* 0x36089801: mov dword ptr fs:[0], ecx */
   6379     esp = ebp; /* 0x36089808: mov esp, ebp */
   6380     ebp = POP32_VAL(esp); /* 0x3608980A: pop ebp */
   6381     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608980B: ret 4 */
   6382     RECOMP_REGS_OUT();
   6383 }
   6384 
   6385 void sub_360897F6(void) {
   6386     int _fpu_cmp = 0;
   6387     uint32_t _cf = 0;
   6388     int _df = 1;
   6389     uint32_t _flag_k = FK_NONE;
   6390     uint32_t _flag_a = 0, _flag_b = 0;
   6391     uint32_t _itail_tgt = 0;
   6392     RECOMP_REGS_LOCALS
   6393     RECOMP_ENTER(0x360897F6u);
   6394 
   6395 L_360897F6:
   6396     _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1);
   6397     MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x360897F6: inc dword ptr [esi + 0x38] */
   6398     _flag_k = FK_INC;
   6399     eax = ebx; /* 0x360897F9: mov eax, ebx */
   6400     ecx = MEM32(ebp + (-0xC)); /* 0x360897FB: mov ecx, dword ptr [ebp - 0xc] */
   6401     edi = POP32_VAL(esp); /* 0x360897FE: pop edi */
   6402     esi = POP32_VAL(esp); /* 0x360897FF: pop esi */
   6403     ebx = POP32_VAL(esp); /* 0x36089800: pop ebx */
   6404     MEM32(FS_BASE + (0)) = ecx; /* 0x36089801: mov dword ptr fs:[0], ecx */
   6405     esp = ebp; /* 0x36089808: mov esp, ebp */
   6406     ebp = POP32_VAL(esp); /* 0x3608980A: pop ebp */
   6407     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608980B: ret 4 */
   6408     RECOMP_REGS_OUT();
   6409 }
   6410 
   6411 void sub_360897FB(void) {
   6412     int _fpu_cmp = 0;
   6413     uint32_t _cf = 0;
   6414     int _df = 1;
   6415     uint32_t _flag_k = FK_NONE;
   6416     uint32_t _flag_a = 0, _flag_b = 0;
   6417     uint32_t _itail_tgt = 0;
   6418     RECOMP_REGS_LOCALS
   6419     RECOMP_ENTER(0x360897FBu);
   6420 
   6421 L_360897FB:
   6422     ecx = MEM32(ebp + (-0xC)); /* 0x360897FB: mov ecx, dword ptr [ebp - 0xc] */
   6423     edi = POP32_VAL(esp); /* 0x360897FE: pop edi */
   6424     esi = POP32_VAL(esp); /* 0x360897FF: pop esi */
   6425     ebx = POP32_VAL(esp); /* 0x36089800: pop ebx */
   6426     MEM32(FS_BASE + (0)) = ecx; /* 0x36089801: mov dword ptr fs:[0], ecx */
   6427     esp = ebp; /* 0x36089808: mov esp, ebp */
   6428     ebp = POP32_VAL(esp); /* 0x3608980A: pop ebp */
   6429     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608980B: ret 4 */
   6430     RECOMP_REGS_OUT();
   6431 }
   6432 
   6433 void sub_36089810(void) {
   6434     int _fpu_cmp = 0;
   6435     uint32_t _cf = 0;
   6436     int _df = 1;
   6437     uint32_t _flag_k = FK_NONE;
   6438     uint32_t _flag_a = 0, _flag_b = 0;
   6439     uint32_t _itail_tgt = 0;
   6440     RECOMP_REGS_LOCALS
   6441     RECOMP_ENTER(0x36089810u);
   6442 
   6443 L_36089810:
   6444     PUSH32(esp, ebp); /* 0x36089810: push ebp */
   6445     ebp = esp; /* 0x36089811: mov ebp, esp */
   6446     PUSH32(esp, 0xFFFFFFFFu); /* 0x36089813: push -1 */
   6447     PUSH32(esp, 0x36165DDBu); /* 0x36089815: push 0x36165ddb */
   6448     eax = MEM32(FS_BASE + (0)); /* 0x3608981A: mov eax, dword ptr fs:[0] */
   6449     PUSH32(esp, eax); /* 0x36089820: push eax */
   6450     MEM32(FS_BASE + (0)) = esp; /* 0x36089821: mov dword ptr fs:[0], esp */
   6451     PUSH32(esp, ecx); /* 0x36089828: push ecx */
   6452     eax = MEM32(0x36306B10); /* 0x36089829: mov eax, dword ptr [0x36306b10] */
   6453     /* test eax, eax */ /* 0x3608982E: test eax, eax */
   6454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6455     _cf = 0;
   6456     _flag_k = FK_TEST;
   6457     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608986B; /* 0x36089830: jne 0x3608986b */
   6458 L_36089832:
   6459     PUSH32(esp, 4); /* 0x36089832: push 4 */
   6460     RECOMP_ICALL(0x3615FD6Au); /* 0x36089834: call 0x3615fd6a */ /* not lifted */
   6461     RECOMP_FLAGS_IN();
   6462     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6463     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6464     esp = esp + 4; /* 0x36089839: add esp, 4 */
   6465     _flag_k = FK_ADD;
   6466     MEM32(ebp + (-0x10)) = eax; /* 0x3608983C: mov dword ptr [ebp - 0x10], eax */
   6467     /* test eax, eax */ /* 0x3608983F: test eax, eax */
   6468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6469     _cf = 0;
   6470     _flag_k = FK_TEST;
   6471     MEM32(ebp + (-0x4)) = 0; /* 0x36089841: mov dword ptr [ebp - 4], 0 */
   6472     if (TEST_Z(_flag_a, _flag_b)) goto L_36089864; /* 0x36089848: je 0x36089864 */
   6473 L_3608984A:
   6474     ecx = eax; /* 0x3608984A: mov ecx, eax */
   6475     RECOMP_ICALL(0x360890F0u); /* 0x3608984C: call 0x360890f0 */ /* not lifted */
   6476     RECOMP_FLAGS_IN();
   6477     MEM32(0x36306B10) = eax; /* 0x36089851: mov dword ptr [0x36306b10], eax */
   6478     ecx = MEM32(ebp + (-0xC)); /* 0x36089856: mov ecx, dword ptr [ebp - 0xc] */
   6479     MEM32(FS_BASE + (0)) = ecx; /* 0x36089859: mov dword ptr fs:[0], ecx */
   6480     esp = ebp; /* 0x36089860: mov esp, ebp */
   6481     ebp = POP32_VAL(esp); /* 0x36089862: pop ebp */
   6482     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36089863: ret  */
   6483 L_36089864:
   6484     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6485     eax = 0; /* 0x36089864: xor eax, eax */
   6486     _cf = 0;
   6487     _flag_k = FK_TEST;
   6488     MEM32(0x36306B10) = eax; /* 0x36089866: mov dword ptr [0x36306b10], eax */
   6489 L_3608986B:
   6490     ecx = MEM32(ebp + (-0xC)); /* 0x3608986B: mov ecx, dword ptr [ebp - 0xc] */
   6491     MEM32(FS_BASE + (0)) = ecx; /* 0x3608986E: mov dword ptr fs:[0], ecx */
   6492     esp = ebp; /* 0x36089875: mov esp, ebp */
   6493     ebp = POP32_VAL(esp); /* 0x36089877: pop ebp */
   6494     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36089878: ret  */
   6495     RECOMP_REGS_OUT();
   6496 }
   6497 
   6498 void sub_36089880(void) {
   6499     int _fpu_cmp = 0;
   6500     uint32_t _cf = 0;
   6501     int _df = 1;
   6502     uint32_t _flag_k = FK_NONE;
   6503     uint32_t _flag_a = 0, _flag_b = 0;
   6504     uint32_t _itail_tgt = 0;
   6505     RECOMP_REGS_LOCALS
   6506     RECOMP_ENTER(0x36089880u);
   6507 
   6508 L_36089880:
   6509     PUSH32(esp, esi); /* 0x36089880: push esi */
   6510     esi = MEM32(0x36306B10); /* 0x36089881: mov esi, dword ptr [0x36306b10] */
   6511     /* test esi, esi */ /* 0x36089887: test esi, esi */
   6512     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6513     _cf = 0;
   6514     _flag_k = FK_TEST;
   6515     if (TEST_Z(_flag_a, _flag_b)) goto L_3608989B; /* 0x36089889: je 0x3608989b */
   6516 L_3608988B:
   6517     ecx = esi; /* 0x3608988B: mov ecx, esi */
   6518     RECOMP_ICALL(0x36089290u); /* 0x3608988D: call 0x36089290 */ /* not lifted */
   6519     RECOMP_FLAGS_IN();
   6520     PUSH32(esp, esi); /* 0x36089892: push esi */
   6521     RECOMP_ICALL(0x3615FCC4u); /* 0x36089893: call 0x3615fcc4 */ /* not lifted */
   6522     RECOMP_FLAGS_IN();
   6523     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6524     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6525     esp = esp + 4; /* 0x36089898: add esp, 4 */
   6526     _flag_k = FK_ADD;
   6527 L_3608989B:
   6528     MEM32(0x36306B10) = 0; /* 0x3608989B: mov dword ptr [0x36306b10], 0 */
   6529     esi = POP32_VAL(esp); /* 0x360898A5: pop esi */
   6530     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360898A6: ret  */
   6531     RECOMP_REGS_OUT();
   6532 }
   6533 
   6534 void sub_360898B0(void) {
   6535     int _fpu_cmp = 0;
   6536     uint32_t _cf = 0;
   6537     int _df = 1;
   6538     uint32_t _flag_k = FK_NONE;
   6539     uint32_t _flag_a = 0, _flag_b = 0;
   6540     uint32_t _itail_tgt = 0;
   6541     RECOMP_REGS_LOCALS
   6542     RECOMP_ENTER(0x360898B0u);
   6543 
   6544 L_360898B0:
   6545     PUSH32(esp, ebp); /* 0x360898B0: push ebp */
   6546     ebp = esp; /* 0x360898B1: mov ebp, esp */
   6547     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6549     esp = esp - 8; /* 0x360898B3: sub esp, 8 */
   6550     _flag_k = FK_CMP;
   6551     PUSH32(esp, ebx); /* 0x360898B6: push ebx */
   6552     PUSH32(esp, esi); /* 0x360898B7: push esi */
   6553     esi = ecx; /* 0x360898B8: mov esi, ecx */
   6554     ecx = MEM32(esi + 0x10); /* 0x360898BA: mov ecx, dword ptr [esi + 0x10] */
   6555     /* test ecx, ecx */ /* 0x360898BD: test ecx, ecx */
   6556     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6557     _cf = 0;
   6558     _flag_k = FK_TEST;
   6559     PUSH32(esp, edi); /* 0x360898BF: push edi */
   6560     edi = MEM32(esi + 0x4); /* 0x360898C0: mov edi, dword ptr [esi + 4] */
   6561     eax = MEM32(edi); /* 0x360898C3: mov eax, dword ptr [edi] */
   6562     MEM32(ebp + (-0x4)) = eax; /* 0x360898C5: mov dword ptr [ebp - 4], eax */
   6563     if (TEST_Z(_flag_a, _flag_b)) goto L_36089925; /* 0x360898C8: je 0x36089925 */
   6564 L_360898CA:
   6565     ecx = eax; /* 0x360898CA: mov ecx, eax */
   6566     /* cmp eax, ecx */ /* 0x360898CC: cmp eax, ecx */
   6567     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6569     _flag_k = FK_CMP;
   6570     if (CMP_NE(_flag_a, _flag_b)) goto L_36089925; /* 0x360898CE: jne 0x36089925 */
   6571 L_360898D0:
   6572     /* cmp edi, edi */ /* 0x360898D0: cmp edi, edi */
   6573     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6575     _flag_k = FK_CMP;
   6576     if (CMP_NE(_flag_a, _flag_b)) goto L_36089925; /* 0x360898D2: jne 0x36089925 */
   6577 L_360898D4:
   6578     ebx = MEM32(edi + 0x4); /* 0x360898D4: mov ebx, dword ptr [edi + 4] */
   6579     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360898D7: cmp ebx, dword ptr [esi + 8] */
   6580     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   6581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6582     _flag_k = FK_CMP;
   6583     edi = ebx; /* 0x360898DA: mov edi, ebx */
   6584     if (CMP_EQ(_flag_a, _flag_b)) goto L_360898FD; /* 0x360898DC: je 0x360898fd */
   6585 L_360898DE:
   6586     eax = MEM32(edi + 0x8); /* 0x360898DE: mov eax, dword ptr [edi + 8] */
   6587     PUSH32(esp, eax); /* 0x360898E1: push eax */
   6588     ecx = esi; /* 0x360898E2: mov ecx, esi */
   6589     RECOMP_ICALL(0x3608A020u); /* 0x360898E4: call 0x3608a020 */ /* not lifted */
   6590     RECOMP_FLAGS_IN();
   6591     edi = MEM32(edi); /* 0x360898E9: mov edi, dword ptr [edi] */
   6592     PUSH32(esp, ebx); /* 0x360898EB: push ebx */
   6593     RECOMP_ICALL(0x3615FCC4u); /* 0x360898EC: call 0x3615fcc4 */ /* not lifted */
   6594     RECOMP_FLAGS_IN();
   6595     eax = MEM32(esi + 0x8); /* 0x360898F1: mov eax, dword ptr [esi + 8] */
   6596     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6598     esp = esp + 4; /* 0x360898F4: add esp, 4 */
   6599     _flag_k = FK_ADD;
   6600     /* cmp edi, eax */ /* 0x360898F7: cmp edi, eax */
   6601     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   6602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6603     _flag_k = FK_CMP;
   6604     ebx = edi; /* 0x360898F9: mov ebx, edi */
   6605     RECOMP_BACKEDGE();
   6606     if (CMP_NE(_flag_a, _flag_b)) goto L_360898DE; /* 0x360898FB: jne 0x360898de */
   6607 L_360898FD:
   6608     ecx = MEM32(esi + 0x4); /* 0x360898FD: mov ecx, dword ptr [esi + 4] */
   6609     edx = MEM32(esi + 0x8); /* 0x36089900: mov edx, dword ptr [esi + 8] */
   6610     MEM32(ecx + 0x4) = edx; /* 0x36089903: mov dword ptr [ecx + 4], edx */
   6611     eax = MEM32(esi + 0x4); /* 0x36089906: mov eax, dword ptr [esi + 4] */
   6612     MEM32(esi + 0x10) = 0; /* 0x36089909: mov dword ptr [esi + 0x10], 0 */
   6613     MEM32(eax) = eax; /* 0x36089910: mov dword ptr [eax], eax */
   6614     eax = MEM32(esi + 0x4); /* 0x36089912: mov eax, dword ptr [esi + 4] */
   6615     MEM32(eax + 0x8) = eax; /* 0x36089915: mov dword ptr [eax + 8], eax */
   6616     eax = ebp + (-0x8); /* 0x36089918: lea eax, [ebp - 8] */
   6617     PUSH32(esp, eax); /* 0x3608991B: push eax */
   6618     ecx = esi; /* 0x3608991C: mov ecx, esi */
   6619     RECOMP_ICALL(0x3614FC30u); /* 0x3608991E: call 0x3614fc30 */ /* not lifted */
   6620     RECOMP_FLAGS_IN();
   6621     goto L_36089946; /* 0x36089923: jmp 0x36089946 */
   6622 L_36089925:
   6623     /* cmp eax, edi */ /* 0x36089925: cmp eax, edi */
   6624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6626     _flag_k = FK_CMP;
   6627     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089946; /* 0x36089927: je 0x36089946 */
   6628 L_36089929:
   6629     ecx = ebp + (-0x4); /* 0x36089929: lea ecx, [ebp - 4] */
   6630     ebx = eax; /* 0x3608992C: mov ebx, eax */
   6631     RECOMP_ICALL(0x360FF670u); /* 0x3608992E: call 0x360ff670 */ /* not lifted */
   6632     RECOMP_FLAGS_IN();
   6633     PUSH32(esp, ebx); /* 0x36089933: push ebx */
   6634     ecx = ebp + (-0x8); /* 0x36089934: lea ecx, [ebp - 8] */
   6635     PUSH32(esp, ecx); /* 0x36089937: push ecx */
   6636     ecx = esi; /* 0x36089938: mov ecx, esi */
   6637     RECOMP_ICALL(0x360E3330u); /* 0x3608993A: call 0x360e3330 */ /* not lifted */
   6638     RECOMP_FLAGS_IN();
   6639     eax = MEM32(ebp + (-0x4)); /* 0x3608993F: mov eax, dword ptr [ebp - 4] */
   6640     /* cmp eax, edi */ /* 0x36089942: cmp eax, edi */
   6641     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   6642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6643     _flag_k = FK_CMP;
   6644     RECOMP_BACKEDGE();
   6645     if (CMP_NE(_flag_a, _flag_b)) goto L_36089929; /* 0x36089944: jne 0x36089929 */
   6646 L_36089946:
   6647     edx = MEM32(esi + 0x4); /* 0x36089946: mov edx, dword ptr [esi + 4] */
   6648     PUSH32(esp, edx); /* 0x36089949: push edx */
   6649     RECOMP_ICALL(0x3615FCC4u); /* 0x3608994A: call 0x3615fcc4 */ /* not lifted */
   6650     RECOMP_FLAGS_IN();
   6651     eax = MEM32(esi + 0x8); /* 0x3608994F: mov eax, dword ptr [esi + 8] */
   6652     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6653     edi = 0; /* 0x36089952: xor edi, edi */
   6654     _cf = 0;
   6655     _flag_k = FK_TEST;
   6656     PUSH32(esp, eax); /* 0x36089954: push eax */
   6657     MEM32(esi + 0x4) = edi; /* 0x36089955: mov dword ptr [esi + 4], edi */
   6658     MEM32(esi + 0x10) = edi; /* 0x36089958: mov dword ptr [esi + 0x10], edi */
   6659     RECOMP_ICALL(0x3615FCC4u); /* 0x3608995B: call 0x3615fcc4 */ /* not lifted */
   6660     RECOMP_FLAGS_IN();
   6661     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6663     esp = esp + 8; /* 0x36089960: add esp, 8 */
   6664     _flag_k = FK_ADD;
   6665     MEM32(esi + 0x8) = edi; /* 0x36089963: mov dword ptr [esi + 8], edi */
   6666     edi = POP32_VAL(esp); /* 0x36089966: pop edi */
   6667     esi = POP32_VAL(esp); /* 0x36089967: pop esi */
   6668     ebx = POP32_VAL(esp); /* 0x36089968: pop ebx */
   6669     esp = ebp; /* 0x36089969: mov esp, ebp */
   6670     ebp = POP32_VAL(esp); /* 0x3608996B: pop ebp */
   6671     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608996C: ret  */
   6672     RECOMP_REGS_OUT();
   6673 }
   6674 
   6675 void sub_36089946(void) {
   6676     int _fpu_cmp = 0;
   6677     uint32_t _cf = 0;
   6678     int _df = 1;
   6679     uint32_t _flag_k = FK_NONE;
   6680     uint32_t _flag_a = 0, _flag_b = 0;
   6681     uint32_t _itail_tgt = 0;
   6682     RECOMP_REGS_LOCALS
   6683     RECOMP_ENTER(0x36089946u);
   6684 
   6685 L_36089946:
   6686     edx = MEM32(esi + 0x4); /* 0x36089946: mov edx, dword ptr [esi + 4] */
   6687     PUSH32(esp, edx); /* 0x36089949: push edx */
   6688     RECOMP_ICALL(0x3615FCC4u); /* 0x3608994A: call 0x3615fcc4 */ /* not lifted */
   6689     RECOMP_FLAGS_IN();
   6690     eax = MEM32(esi + 0x8); /* 0x3608994F: mov eax, dword ptr [esi + 8] */
   6691     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6692     edi = 0; /* 0x36089952: xor edi, edi */
   6693     _cf = 0;
   6694     _flag_k = FK_TEST;
   6695     PUSH32(esp, eax); /* 0x36089954: push eax */
   6696     MEM32(esi + 0x4) = edi; /* 0x36089955: mov dword ptr [esi + 4], edi */
   6697     MEM32(esi + 0x10) = edi; /* 0x36089958: mov dword ptr [esi + 0x10], edi */
   6698     RECOMP_ICALL(0x3615FCC4u); /* 0x3608995B: call 0x3615fcc4 */ /* not lifted */
   6699     RECOMP_FLAGS_IN();
   6700     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6702     esp = esp + 8; /* 0x36089960: add esp, 8 */
   6703     _flag_k = FK_ADD;
   6704     MEM32(esi + 0x8) = edi; /* 0x36089963: mov dword ptr [esi + 8], edi */
   6705     edi = POP32_VAL(esp); /* 0x36089966: pop edi */
   6706     esi = POP32_VAL(esp); /* 0x36089967: pop esi */
   6707     ebx = POP32_VAL(esp); /* 0x36089968: pop ebx */
   6708     esp = ebp; /* 0x36089969: mov esp, ebp */
   6709     ebp = POP32_VAL(esp); /* 0x3608996B: pop ebp */
   6710     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608996C: ret  */
   6711     RECOMP_REGS_OUT();
   6712 }
   6713 
   6714 void sub_36089970(void) {
   6715     int _fpu_cmp = 0;
   6716     uint32_t _cf = 0;
   6717     int _df = 1;
   6718     uint32_t _flag_k = FK_NONE;
   6719     uint32_t _flag_a = 0, _flag_b = 0;
   6720     uint32_t _itail_tgt = 0;
   6721     RECOMP_REGS_LOCALS
   6722     RECOMP_ENTER(0x36089970u);
   6723 
   6724 L_36089970:
   6725     PUSH32(esp, ebp); /* 0x36089970: push ebp */
   6726     ebp = esp; /* 0x36089971: mov ebp, esp */
   6727     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6728     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6729     esp = esp - 0xCu; /* 0x36089973: sub esp, 0xc */
   6730     _flag_k = FK_CMP;
   6731     PUSH32(esp, ebx); /* 0x36089976: push ebx */
   6732     ebx = ecx; /* 0x36089977: mov ebx, ecx */
   6733     PUSH32(esp, esi); /* 0x36089979: push esi */
   6734     esi = MEM32(ebp + 0x8); /* 0x3608997A: mov esi, dword ptr [ebp + 8] */
   6735     PUSH32(esp, edi); /* 0x3608997D: push edi */
   6736     edi = MEM32(ebx + 0x4); /* 0x3608997E: mov edi, dword ptr [ebx + 4] */
   6737     ecx = esi; /* 0x36089981: mov ecx, esi */
   6738     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6740     ecx = ecx - edi; /* 0x36089983: sub ecx, edi */
   6741     _flag_k = FK_CMP;
   6742     eax = 0x66666667u; /* 0x36089985: mov eax, 0x66666667 */
   6743     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3608998A: imul ecx */
   6744       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6745       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6746     ecx = MEM32(ebx + 0x8); /* 0x3608998C: mov ecx, dword ptr [ebx + 8] */
   6747     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3608998F: sar edx, 3 */
   6748     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6749     edx = (uint32_t)((int32_t)edx >> 3u);
   6750     eax = edx; /* 0x36089992: mov eax, edx */
   6751     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36089994: shr eax, 0x1f */
   6752     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6753     eax = eax >> 31u; /* 0x36089994: shr eax, 0x1f */
   6754     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6755     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6756     edx = edx + eax; /* 0x36089997: add edx, eax */
   6757     _flag_k = FK_ADD;
   6758     MEM32(ebp + (-0xC)) = edx; /* 0x36089999: mov dword ptr [ebp - 0xc], edx */
   6759     edx = MEM32(ebx + 0xC); /* 0x3608999C: mov edx, dword ptr [ebx + 0xc] */
   6760     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6762     edx = edx - ecx; /* 0x3608999F: sub edx, ecx */
   6763     _flag_k = FK_CMP;
   6764     eax = 0x66666667u; /* 0x360899A1: mov eax, 0x66666667 */
   6765     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x360899A6: imul edx */
   6766       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6767       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6768     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x360899A8: sar edx, 3 */
   6769     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6770     edx = (uint32_t)((int32_t)edx >> 3u);
   6771     eax = edx; /* 0x360899AB: mov eax, edx */
   6772     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x360899AD: shr eax, 0x1f */
   6773     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6774     eax = eax >> 31u; /* 0x360899AD: shr eax, 0x1f */
   6775     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6776     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6777     edx = edx + eax; /* 0x360899B0: add edx, eax */
   6778     _flag_k = FK_ADD;
   6779     /* cmp edx, 1 */ /* 0x360899B2: cmp edx, 1 */
   6780     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6782     _flag_k = FK_CMP;
   6783     if (CMP_AE(_flag_a, _flag_b)) goto L_36089AAB; /* 0x360899B5: jae 0x36089aab */
   6784 L_360899BB:
   6785     /* test edi, edi */ /* 0x360899BB: test edi, edi */
   6786     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6787     _cf = 0;
   6788     _flag_k = FK_TEST;
   6789     if (TEST_Z(_flag_a, _flag_b)) goto L_360899DC; /* 0x360899BD: je 0x360899dc */
   6790 L_360899BF:
   6791     edx = ecx; /* 0x360899BF: mov edx, ecx */
   6792     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   6793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6794     edx = edx - edi; /* 0x360899C1: sub edx, edi */
   6795     _flag_k = FK_CMP;
   6796     eax = 0x66666667u; /* 0x360899C3: mov eax, 0x66666667 */
   6797     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x360899C8: imul edx */
   6798       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6799       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6800     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x360899CA: sar edx, 3 */
   6801     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6802     edx = (uint32_t)((int32_t)edx >> 3u);
   6803     eax = edx; /* 0x360899CD: mov eax, edx */
   6804     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x360899CF: shr eax, 0x1f */
   6805     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6806     eax = eax >> 31u; /* 0x360899CF: shr eax, 0x1f */
   6807     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6808     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6809     edx = edx + eax; /* 0x360899D2: add edx, eax */
   6810     _flag_k = FK_ADD;
   6811     /* cmp edx, 1 */ /* 0x360899D4: cmp edx, 1 */
   6812     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6814     _flag_k = FK_CMP;
   6815     MEM32(ebp + 0x8) = edx; /* 0x360899D7: mov dword ptr [ebp + 8], edx */
   6816     if (CMP_A(_flag_a, _flag_b)) goto L_360899E3; /* 0x360899DA: ja 0x360899e3 */
   6817 L_360899DC:
   6818     MEM32(ebp + 0x8) = 1; /* 0x360899DC: mov dword ptr [ebp + 8], 1 */
   6819 L_360899E3:
   6820     /* test edi, edi */ /* 0x360899E3: test edi, edi */
   6821     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6822     _cf = 0;
   6823     _flag_k = FK_TEST;
   6824     if (TEST_NZ(_flag_a, _flag_b)) goto L_360899EB; /* 0x360899E5: jne 0x360899eb */
   6825 L_360899E7:
   6826     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6827     edx = 0; /* 0x360899E7: xor edx, edx */
   6828     _cf = 0;
   6829     _flag_k = FK_TEST;
   6830     goto L_360899FE; /* 0x360899E9: jmp 0x360899fe */
   6831 L_360899EB:
   6832     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6834     ecx = ecx - edi; /* 0x360899EB: sub ecx, edi */
   6835     _flag_k = FK_CMP;
   6836     eax = 0x66666667u; /* 0x360899ED: mov eax, 0x66666667 */
   6837     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360899F2: imul ecx */
   6838       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6839       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6840     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x360899F4: sar edx, 3 */
   6841     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6842     edx = (uint32_t)((int32_t)edx >> 3u);
   6843     ecx = edx; /* 0x360899F7: mov ecx, edx */
   6844     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x360899F9: shr ecx, 0x1f */
   6845     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6846     ecx = ecx >> 31u; /* 0x360899F9: shr ecx, 0x1f */
   6847     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6848     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6849     edx = edx + ecx; /* 0x360899FC: add edx, ecx */
   6850     _flag_k = FK_ADD;
   6851 L_360899FE:
   6852     eax = MEM32(ebp + 0x8); /* 0x360899FE: mov eax, dword ptr [ebp + 8] */
   6853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6854     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6855     eax = eax + edx; /* 0x36089A01: add eax, edx */
   6856     _flag_k = FK_ADD;
   6857     /* test eax, eax */ /* 0x36089A03: test eax, eax */
   6858     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6859     _cf = 0;
   6860     _flag_k = FK_TEST;
   6861     MEM32(ebp + (-0x4)) = eax; /* 0x36089A05: mov dword ptr [ebp - 4], eax */
   6862     if (TEST_NS(_flag_a, _flag_b)) goto L_36089A0C; /* 0x36089A08: jge 0x36089a0c */
   6863 L_36089A0A:
   6864     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6865     eax = 0; /* 0x36089A0A: xor eax, eax */
   6866     _cf = 0;
   6867     _flag_k = FK_TEST;
   6868 L_36089A0C:
   6869     ecx = eax + eax * 4; /* 0x36089A0C: lea ecx, [eax + eax*4] */
   6870     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36089A0F: shl ecx, 2 */
   6871     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6872     ecx = ecx << 2u; /* 0x36089A0F: shl ecx, 2 */
   6873     PUSH32(esp, ecx); /* 0x36089A12: push ecx */
   6874     RECOMP_ICALL(0x3615FD6Au); /* 0x36089A13: call 0x3615fd6a */ /* not lifted */
   6875     RECOMP_FLAGS_IN();
   6876     edi = MEM32(ebx + 0x4); /* 0x36089A18: mov edi, dword ptr [ebx + 4] */
   6877     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6878     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6879     esp = esp + 4; /* 0x36089A1B: add esp, 4 */
   6880     _flag_k = FK_ADD;
   6881     /* cmp edi, esi */ /* 0x36089A1E: cmp edi, esi */
   6882     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   6883     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6884     _flag_k = FK_CMP;
   6885     MEM32(ebp + (-0x8)) = eax; /* 0x36089A20: mov dword ptr [ebp - 8], eax */
   6886     MEM32(ebp + 0x8) = eax; /* 0x36089A23: mov dword ptr [ebp + 8], eax */
   6887     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089A45; /* 0x36089A26: je 0x36089a45 */
   6888 L_36089A28:
   6889     edx = MEM32(ebp + 0x8); /* 0x36089A28: mov edx, dword ptr [ebp + 8] */
   6890     PUSH32(esp, edi); /* 0x36089A2B: push edi */
   6891     PUSH32(esp, edx); /* 0x36089A2C: push edx */
   6892     RECOMP_ICALL(0x3608A3B0u); /* 0x36089A2D: call 0x3608a3b0 */ /* not lifted */
   6893     RECOMP_FLAGS_IN();
   6894     edx = MEM32(ebp + 0x8); /* 0x36089A32: mov edx, dword ptr [ebp + 8] */
   6895     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
   6896     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6897     edx = edx + 0x14u; /* 0x36089A35: add edx, 0x14 */
   6898     _flag_k = FK_ADD;
   6899     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x14u);
   6900     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6901     edi = edi + 0x14u; /* 0x36089A38: add edi, 0x14 */
   6902     _flag_k = FK_ADD;
   6903     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6904     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6905     esp = esp + 8; /* 0x36089A3B: add esp, 8 */
   6906     _flag_k = FK_ADD;
   6907     /* cmp edi, esi */ /* 0x36089A3E: cmp edi, esi */
   6908     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   6909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6910     _flag_k = FK_CMP;
   6911     MEM32(ebp + 0x8) = edx; /* 0x36089A40: mov dword ptr [ebp + 8], edx */
   6912     RECOMP_BACKEDGE();
   6913     if (CMP_NE(_flag_a, _flag_b)) goto L_36089A28; /* 0x36089A43: jne 0x36089a28 */
   6914 L_36089A45:
   6915     eax = MEM32(ebp + 0xC); /* 0x36089A45: mov eax, dword ptr [ebp + 0xc] */
   6916     ecx = MEM32(ebp + 0x8); /* 0x36089A48: mov ecx, dword ptr [ebp + 8] */
   6917     PUSH32(esp, eax); /* 0x36089A4B: push eax */
   6918     PUSH32(esp, ecx); /* 0x36089A4C: push ecx */
   6919     RECOMP_ICALL(0x3608A3B0u); /* 0x36089A4D: call 0x3608a3b0 */ /* not lifted */
   6920     RECOMP_FLAGS_IN();
   6921     edx = MEM32(ebp + 0x8); /* 0x36089A52: mov edx, dword ptr [ebp + 8] */
   6922     eax = MEM32(ebx + 0x8); /* 0x36089A55: mov eax, dword ptr [ebx + 8] */
   6923     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6924     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6925     esp = esp + 8; /* 0x36089A58: add esp, 8 */
   6926     _flag_k = FK_ADD;
   6927     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
   6928     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6929     edx = edx + 0x14u; /* 0x36089A5B: add edx, 0x14 */
   6930     _flag_k = FK_ADD;
   6931     PUSH32(esp, edx); /* 0x36089A5E: push edx */
   6932     PUSH32(esp, eax); /* 0x36089A5F: push eax */
   6933     PUSH32(esp, esi); /* 0x36089A60: push esi */
   6934     ecx = ebx; /* 0x36089A61: mov ecx, ebx */
   6935     RECOMP_ICALL(0x36089B90u); /* 0x36089A63: call 0x36089b90 */ /* not lifted */
   6936     RECOMP_FLAGS_IN();
   6937     ecx = MEM32(ebx + 0x8); /* 0x36089A68: mov ecx, dword ptr [ebx + 8] */
   6938     edx = MEM32(ebx + 0x4); /* 0x36089A6B: mov edx, dword ptr [ebx + 4] */
   6939     PUSH32(esp, ecx); /* 0x36089A6E: push ecx */
   6940     PUSH32(esp, edx); /* 0x36089A6F: push edx */
   6941     ecx = ebx; /* 0x36089A70: mov ecx, ebx */
   6942     RECOMP_ICALL(0x3610ED60u); /* 0x36089A72: call 0x3610ed60 */ /* not lifted */
   6943     RECOMP_FLAGS_IN();
   6944     eax = MEM32(ebx + 0x4); /* 0x36089A77: mov eax, dword ptr [ebx + 4] */
   6945     PUSH32(esp, eax); /* 0x36089A7A: push eax */
   6946     RECOMP_ICALL(0x3615FCC4u); /* 0x36089A7B: call 0x3615fcc4 */ /* not lifted */
   6947     RECOMP_FLAGS_IN();
   6948     eax = MEM32(ebp + (-0x4)); /* 0x36089A80: mov eax, dword ptr [ebp - 4] */
   6949     esi = MEM32(ebp + (-0x8)); /* 0x36089A83: mov esi, dword ptr [ebp - 8] */
   6950     ecx = eax + eax * 4; /* 0x36089A86: lea ecx, [eax + eax*4] */
   6951     edx = esi + ecx * 4; /* 0x36089A89: lea edx, [esi + ecx*4] */
   6952     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6953     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6954     esp = esp + 4; /* 0x36089A8C: add esp, 4 */
   6955     _flag_k = FK_ADD;
   6956     ecx = ebx; /* 0x36089A8F: mov ecx, ebx */
   6957     MEM32(ebx + 0xC) = edx; /* 0x36089A91: mov dword ptr [ebx + 0xc], edx */
   6958     RECOMP_ICALL(0x36149DC0u); /* 0x36089A94: call 0x36149dc0 */ /* not lifted */
   6959     RECOMP_FLAGS_IN();
   6960     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6961     eax = eax + 1; /* 0x36089A99: inc eax */
   6962     _flag_k = FK_INC;
   6963     eax = eax + eax * 4; /* 0x36089A9A: lea eax, [eax + eax*4] */
   6964     ecx = esi + eax * 4; /* 0x36089A9D: lea ecx, [esi + eax*4] */
   6965     MEM32(ebx + 0x8) = ecx; /* 0x36089AA0: mov dword ptr [ebx + 8], ecx */
   6966     MEM32(ebx + 0x4) = esi; /* 0x36089AA3: mov dword ptr [ebx + 4], esi */
   6967     goto L_36089B6D; /* 0x36089AA6: jmp 0x36089b6d */
   6968 L_36089AAB:
   6969     edx = ecx; /* 0x36089AAB: mov edx, ecx */
   6970     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   6971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6972     edx = edx - esi; /* 0x36089AAD: sub edx, esi */
   6973     _flag_k = FK_CMP;
   6974     eax = 0x66666667u; /* 0x36089AAF: mov eax, 0x66666667 */
   6975     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36089AB4: imul edx */
   6976       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   6977       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   6978     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36089AB6: sar edx, 3 */
   6979     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6980     edx = (uint32_t)((int32_t)edx >> 3u);
   6981     eax = edx; /* 0x36089AB9: mov eax, edx */
   6982     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36089ABB: shr eax, 0x1f */
   6983     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6984     eax = eax >> 31u; /* 0x36089ABB: shr eax, 0x1f */
   6985     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6986     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6987     edx = edx + eax; /* 0x36089ABE: add edx, eax */
   6988     _flag_k = FK_ADD;
   6989     /* cmp edx, 1 */ /* 0x36089AC0: cmp edx, 1 */
   6990     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   6991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6992     _flag_k = FK_CMP;
   6993     if (CMP_AE(_flag_a, _flag_b)) goto L_36089B1C; /* 0x36089AC3: jae 0x36089b1c */
   6994 L_36089AC5:
   6995     edx = esi + 0x14; /* 0x36089AC5: lea edx, [esi + 0x14] */
   6996     PUSH32(esp, edx); /* 0x36089AC8: push edx */
   6997     PUSH32(esp, ecx); /* 0x36089AC9: push ecx */
   6998     PUSH32(esp, esi); /* 0x36089ACA: push esi */
   6999     ecx = ebx; /* 0x36089ACB: mov ecx, ebx */
   7000     RECOMP_ICALL(0x36089B90u); /* 0x36089ACD: call 0x36089b90 */ /* not lifted */
   7001     RECOMP_FLAGS_IN();
   7002     edi = MEM32(ebx + 0x8); /* 0x36089AD2: mov edi, dword ptr [ebx + 8] */
   7003     eax = MEM32(ebp + 0xC); /* 0x36089AD5: mov eax, dword ptr [ebp + 0xc] */
   7004     PUSH32(esp, eax); /* 0x36089AD8: push eax */
   7005     ecx = edi; /* 0x36089AD9: mov ecx, edi */
   7006     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   7007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7008     ecx = ecx - esi; /* 0x36089ADB: sub ecx, esi */
   7009     _flag_k = FK_CMP;
   7010     eax = 0x66666667u; /* 0x36089ADD: mov eax, 0x66666667 */
   7011     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36089AE2: imul ecx */
   7012       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7013       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7014     if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36089AE4: sar edx, 3 */
   7015     if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7016     edx = (uint32_t)((int32_t)edx >> 3u);
   7017     ecx = edx; /* 0x36089AE7: mov ecx, edx */
   7018     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36089AE9: shr ecx, 0x1f */
   7019     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7020     ecx = ecx >> 31u; /* 0x36089AE9: shr ecx, 0x1f */
   7021     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   7022     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7023     edx = edx + ecx; /* 0x36089AEC: add edx, ecx */
   7024     _flag_k = FK_ADD;
   7025     eax = 1; /* 0x36089AEE: mov eax, 1 */
   7026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7028     eax = eax - edx; /* 0x36089AF3: sub eax, edx */
   7029     _flag_k = FK_CMP;
   7030     PUSH32(esp, eax); /* 0x36089AF5: push eax */
   7031     PUSH32(esp, edi); /* 0x36089AF6: push edi */
   7032     ecx = ebx; /* 0x36089AF7: mov ecx, ebx */
   7033     RECOMP_ICALL(0x3608A2A0u); /* 0x36089AF9: call 0x3608a2a0 */ /* not lifted */
   7034     RECOMP_FLAGS_IN();
   7035     edx = MEM32(ebx + 0x8); /* 0x36089AFE: mov edx, dword ptr [ebx + 8] */
   7036     /* cmp esi, edx */ /* 0x36089B01: cmp esi, edx */
   7037     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   7038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7039     _flag_k = FK_CMP;
   7040     eax = esi; /* 0x36089B03: mov eax, esi */
   7041     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089B69; /* 0x36089B05: je 0x36089b69 */
   7042 L_36089B07:
   7043     esi = MEM32(ebp + 0xC); /* 0x36089B07: mov esi, dword ptr [ebp + 0xc] */
   7044     edi = eax; /* 0x36089B0A: mov edi, eax */
   7045     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7046     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7047     eax = eax + 0x14u; /* 0x36089B0C: add eax, 0x14 */
   7048     _flag_k = FK_ADD;
   7049     /* cmp eax, edx */ /* 0x36089B0F: cmp eax, edx */
   7050     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7052     _flag_k = FK_CMP;
   7053     ecx = 5; /* 0x36089B11: mov ecx, 5 */
   7054     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36089B16: 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; }
   7055     RECOMP_BACKEDGE();
   7056     if (CMP_NE(_flag_a, _flag_b)) goto L_36089B07; /* 0x36089B18: jne 0x36089b07 */
   7057 L_36089B1A:
   7058     goto L_36089B69; /* 0x36089B1A: jmp 0x36089b69 */
   7059 L_36089B1C:
   7060     PUSH32(esp, ecx); /* 0x36089B1C: push ecx */
   7061     PUSH32(esp, ecx); /* 0x36089B1D: push ecx */
   7062     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFECu);
   7063     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7064     ecx = ecx + 0xFFFFFFECu; /* 0x36089B1E: add ecx, -0x14 */
   7065     _flag_k = FK_ADD;
   7066     PUSH32(esp, ecx); /* 0x36089B21: push ecx */
   7067     ecx = ebx; /* 0x36089B22: mov ecx, ebx */
   7068     RECOMP_ICALL(0x36089B90u); /* 0x36089B24: call 0x36089b90 */ /* not lifted */
   7069     RECOMP_FLAGS_IN();
   7070     edx = MEM32(ebx + 0x8); /* 0x36089B29: mov edx, dword ptr [ebx + 8] */
   7071     eax = edx + (-0x14); /* 0x36089B2C: lea eax, [edx - 0x14] */
   7072     /* cmp esi, eax */ /* 0x36089B2F: cmp esi, eax */
   7073     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7075     _flag_k = FK_CMP;
   7076     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089B4D; /* 0x36089B31: je 0x36089b4d */
   7077 L_36089B33:
   7078     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7080     eax = eax - 0x14u; /* 0x36089B33: sub eax, 0x14 */
   7081     _flag_k = FK_CMP;
   7082     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
   7083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7084     edx = edx - 0x14u; /* 0x36089B36: sub edx, 0x14 */
   7085     _flag_k = FK_CMP;
   7086     ecx = 5; /* 0x36089B39: mov ecx, 5 */
   7087     esi = eax; /* 0x36089B3E: mov esi, eax */
   7088     edi = edx; /* 0x36089B40: mov edi, edx */
   7089     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36089B42: 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; }
   7090     ecx = MEM32(ebp + 0x8); /* 0x36089B44: mov ecx, dword ptr [ebp + 8] */
   7091     /* cmp eax, ecx */ /* 0x36089B47: cmp eax, ecx */
   7092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7094     _flag_k = FK_CMP;
   7095     RECOMP_BACKEDGE();
   7096     if (CMP_NE(_flag_a, _flag_b)) goto L_36089B33; /* 0x36089B49: jne 0x36089b33 */
   7097 L_36089B4B:
   7098     esi = ecx; /* 0x36089B4B: mov esi, ecx */
   7099 L_36089B4D:
   7100     edx = esi + 0x14; /* 0x36089B4D: lea edx, [esi + 0x14] */
   7101     /* cmp esi, edx */ /* 0x36089B50: cmp esi, edx */
   7102     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   7103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7104     _flag_k = FK_CMP;
   7105     eax = esi; /* 0x36089B52: mov eax, esi */
   7106     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089B69; /* 0x36089B54: je 0x36089b69 */
   7107 L_36089B56:
   7108     esi = MEM32(ebp + 0xC); /* 0x36089B56: mov esi, dword ptr [ebp + 0xc] */
   7109     edi = eax; /* 0x36089B59: mov edi, eax */
   7110     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7111     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7112     eax = eax + 0x14u; /* 0x36089B5B: add eax, 0x14 */
   7113     _flag_k = FK_ADD;
   7114     /* cmp eax, edx */ /* 0x36089B5E: cmp eax, edx */
   7115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7117     _flag_k = FK_CMP;
   7118     ecx = 5; /* 0x36089B60: mov ecx, 5 */
   7119     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36089B65: 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; }
   7120     RECOMP_BACKEDGE();
   7121     if (CMP_NE(_flag_a, _flag_b)) goto L_36089B56; /* 0x36089B67: jne 0x36089b56 */
   7122 L_36089B69:
   7123     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(0x14u);
   7124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7125     MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 0x14u; /* 0x36089B69: add dword ptr [ebx + 8], 0x14 */
   7126     _flag_k = FK_ADD;
   7127 L_36089B6D:
   7128     eax = MEM32(ebp + (-0xC)); /* 0x36089B6D: mov eax, dword ptr [ebp - 0xc] */
   7129     edx = MEM32(ebx + 0x4); /* 0x36089B70: mov edx, dword ptr [ebx + 4] */
   7130     edi = POP32_VAL(esp); /* 0x36089B73: pop edi */
   7131     ecx = eax + eax * 4; /* 0x36089B74: lea ecx, [eax + eax*4] */
   7132     esi = POP32_VAL(esp); /* 0x36089B77: pop esi */
   7133     eax = edx + ecx * 4; /* 0x36089B78: lea eax, [edx + ecx*4] */
   7134     ebx = POP32_VAL(esp); /* 0x36089B7B: pop ebx */
   7135     esp = ebp; /* 0x36089B7C: mov esp, ebp */
   7136     ebp = POP32_VAL(esp); /* 0x36089B7E: pop ebp */
   7137     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089B7F: ret 8 */
   7138     RECOMP_REGS_OUT();
   7139 }
   7140 
   7141 void sub_36089B6D(void) {
   7142     int _fpu_cmp = 0;
   7143     uint32_t _cf = 0;
   7144     int _df = 1;
   7145     uint32_t _flag_k = FK_NONE;
   7146     uint32_t _flag_a = 0, _flag_b = 0;
   7147     uint32_t _itail_tgt = 0;
   7148     RECOMP_REGS_LOCALS
   7149     RECOMP_ENTER(0x36089B6Du);
   7150 
   7151 L_36089B6D:
   7152     eax = MEM32(ebp + (-0xC)); /* 0x36089B6D: mov eax, dword ptr [ebp - 0xc] */
   7153     edx = MEM32(ebx + 0x4); /* 0x36089B70: mov edx, dword ptr [ebx + 4] */
   7154     edi = POP32_VAL(esp); /* 0x36089B73: pop edi */
   7155     ecx = eax + eax * 4; /* 0x36089B74: lea ecx, [eax + eax*4] */
   7156     esi = POP32_VAL(esp); /* 0x36089B77: pop esi */
   7157     eax = edx + ecx * 4; /* 0x36089B78: lea eax, [edx + ecx*4] */
   7158     ebx = POP32_VAL(esp); /* 0x36089B7B: pop ebx */
   7159     esp = ebp; /* 0x36089B7C: mov esp, ebp */
   7160     ebp = POP32_VAL(esp); /* 0x36089B7E: pop ebp */
   7161     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089B7F: ret 8 */
   7162     RECOMP_REGS_OUT();
   7163 }
   7164 
   7165 void sub_36089B90(void) {
   7166     int _fpu_cmp = 0;
   7167     uint32_t _cf = 0;
   7168     int _df = 1;
   7169     uint32_t _flag_k = FK_NONE;
   7170     uint32_t _flag_a = 0, _flag_b = 0;
   7171     uint32_t _itail_tgt = 0;
   7172     RECOMP_REGS_LOCALS
   7173     RECOMP_ENTER(0x36089B90u);
   7174 
   7175 L_36089B90:
   7176     PUSH32(esp, ebp); /* 0x36089B90: push ebp */
   7177     ebp = esp; /* 0x36089B91: mov ebp, esp */
   7178     edx = MEM32(ebp + 0x8); /* 0x36089B93: mov edx, dword ptr [ebp + 8] */
   7179     PUSH32(esp, ebx); /* 0x36089B96: push ebx */
   7180     ebx = MEM32(ebp + 0xC); /* 0x36089B97: mov ebx, dword ptr [ebp + 0xc] */
   7181     /* cmp edx, ebx */ /* 0x36089B9A: cmp edx, ebx */
   7182     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   7183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7184     _flag_k = FK_CMP;
   7185     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089BC3; /* 0x36089B9C: je 0x36089bc3 */
   7186 L_36089B9E:
   7187     eax = MEM32(ebp + 0x10); /* 0x36089B9E: mov eax, dword ptr [ebp + 0x10] */
   7188     PUSH32(esp, esi); /* 0x36089BA1: push esi */
   7189     PUSH32(esp, edi); /* 0x36089BA2: push edi */
   7190 L_36089BA3:
   7191     /* test eax, eax */ /* 0x36089BA3: test eax, eax */
   7192     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7193     _cf = 0;
   7194     _flag_k = FK_TEST;
   7195     if (TEST_Z(_flag_a, _flag_b)) goto L_36089BB2; /* 0x36089BA5: je 0x36089bb2 */
   7196 L_36089BA7:
   7197     ecx = 5; /* 0x36089BA7: mov ecx, 5 */
   7198     esi = edx; /* 0x36089BAC: mov esi, edx */
   7199     edi = eax; /* 0x36089BAE: mov edi, eax */
   7200     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36089BB0: 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; }
   7201 L_36089BB2:
   7202     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
   7203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7204     edx = edx + 0x14u; /* 0x36089BB2: add edx, 0x14 */
   7205     _flag_k = FK_ADD;
   7206     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
   7207     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7208     eax = eax + 0x14u; /* 0x36089BB5: add eax, 0x14 */
   7209     _flag_k = FK_ADD;
   7210     /* cmp edx, ebx */ /* 0x36089BB8: cmp edx, ebx */
   7211     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   7212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7213     _flag_k = FK_CMP;
   7214     RECOMP_BACKEDGE();
   7215     if (CMP_NE(_flag_a, _flag_b)) goto L_36089BA3; /* 0x36089BBA: jne 0x36089ba3 */
   7216 L_36089BBC:
   7217     edi = POP32_VAL(esp); /* 0x36089BBC: pop edi */
   7218     esi = POP32_VAL(esp); /* 0x36089BBD: pop esi */
   7219     ebx = POP32_VAL(esp); /* 0x36089BBE: pop ebx */
   7220     ebp = POP32_VAL(esp); /* 0x36089BBF: pop ebp */
   7221     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36089BC0: ret 0xc */
   7222 L_36089BC3:
   7223     eax = MEM32(ebp + 0x10); /* 0x36089BC3: mov eax, dword ptr [ebp + 0x10] */
   7224     ebx = POP32_VAL(esp); /* 0x36089BC6: pop ebx */
   7225     ebp = POP32_VAL(esp); /* 0x36089BC7: pop ebp */
   7226     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36089BC8: ret 0xc */
   7227     RECOMP_REGS_OUT();
   7228 }
   7229 
   7230 void sub_36089BD0(void) {
   7231     int _fpu_cmp = 0;
   7232     uint32_t _cf = 0;
   7233     int _df = 1;
   7234     uint32_t _flag_k = FK_NONE;
   7235     uint32_t _flag_a = 0, _flag_b = 0;
   7236     uint32_t _itail_tgt = 0;
   7237     RECOMP_REGS_LOCALS
   7238     RECOMP_ENTER(0x36089BD0u);
   7239 
   7240 L_36089BD0:
   7241     PUSH32(esp, ebp); /* 0x36089BD0: push ebp */
   7242     ebp = esp; /* 0x36089BD1: mov ebp, esp */
   7243     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7245     esp = esp - 0xCu; /* 0x36089BD3: sub esp, 0xc */
   7246     _flag_k = FK_CMP;
   7247     PUSH32(esp, ebx); /* 0x36089BD6: push ebx */
   7248     PUSH32(esp, esi); /* 0x36089BD7: push esi */
   7249     PUSH32(esp, edi); /* 0x36089BD8: push edi */
   7250     edi = ecx; /* 0x36089BD9: mov edi, ecx */
   7251     esi = MEM32(edi + 0x4); /* 0x36089BDB: mov esi, dword ptr [edi + 4] */
   7252     ebx = MEM32(esi + 0x4); /* 0x36089BDE: mov ebx, dword ptr [esi + 4] */
   7253     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x36089BE1: cmp ebx, dword ptr [edi + 8] */
   7254     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7256     _flag_k = FK_CMP;
   7257     SET_LO8(eax, 1); /* 0x36089BE4: mov al, 1 */
   7258     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089C06; /* 0x36089BE6: je 0x36089c06 */
   7259 L_36089BE8:
   7260     ecx = MEM32(ebp + 0xC); /* 0x36089BE8: mov ecx, dword ptr [ebp + 0xc] */
   7261     eax = ebx + 0xC; /* 0x36089BEB: lea eax, [ebx + 0xc] */
   7262     PUSH32(esp, eax); /* 0x36089BEE: push eax */
   7263     esi = ebx; /* 0x36089BEF: mov esi, ebx */
   7264     RECOMP_ICALL(0x36089E30u); /* 0x36089BF1: call 0x36089e30 */ /* not lifted */
   7265     RECOMP_FLAGS_IN();
   7266     /* test LO8(eax), LO8(eax) */ /* 0x36089BF6: test al, al */
   7267     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7268     _cf = 0;
   7269     _flag_k = FK_NARROW(FK_TEST, 24);
   7270     if (TEST_Z(_flag_a, _flag_b)) goto L_36089BFE; /* 0x36089BF8: je 0x36089bfe */
   7271 L_36089BFA:
   7272     ebx = MEM32(ebx); /* 0x36089BFA: mov ebx, dword ptr [ebx] */
   7273     goto L_36089C01; /* 0x36089BFC: jmp 0x36089c01 */
   7274 L_36089BFE:
   7275     ebx = MEM32(ebx + 0x8); /* 0x36089BFE: mov ebx, dword ptr [ebx + 8] */
   7276 L_36089C01:
   7277     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x36089C01: cmp ebx, dword ptr [edi + 8] */
   7278     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7280     _flag_k = FK_CMP;
   7281     RECOMP_BACKEDGE();
   7282     if (CMP_NE(_flag_a, _flag_b)) goto L_36089BE8; /* 0x36089C04: jne 0x36089be8 */
   7283 L_36089C06:
   7284     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x36089C06: mov cl, byte ptr [edi + 0xc] */
   7285     /* test LO8(ecx), LO8(ecx) */ /* 0x36089C09: test cl, cl */
   7286     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7287     _cf = 0;
   7288     _flag_k = FK_NARROW(FK_TEST, 24);
   7289     if (TEST_Z(_flag_a, _flag_b)) goto L_36089D87; /* 0x36089C0B: je 0x36089d87 */
   7290 L_36089C11:
   7291     PUSH32(esp, 0); /* 0x36089C11: push 0 */
   7292     PUSH32(esp, esi); /* 0x36089C13: push esi */
   7293     ecx = edi; /* 0x36089C14: mov ecx, edi */
   7294     RECOMP_ICALL(0x3608A2E0u); /* 0x36089C16: call 0x3608a2e0 */ /* not lifted */
   7295     RECOMP_FLAGS_IN();
   7296     ecx = MEM32(edi + 0x8); /* 0x36089C1B: mov ecx, dword ptr [edi + 8] */
   7297     MEM32(eax) = ecx; /* 0x36089C1E: mov dword ptr [eax], ecx */
   7298     edx = MEM32(edi + 0x8); /* 0x36089C20: mov edx, dword ptr [edi + 8] */
   7299     ecx = MEM32(ebp + 0xC); /* 0x36089C23: mov ecx, dword ptr [ebp + 0xc] */
   7300     MEM32(ebp + (-0x4)) = eax; /* 0x36089C26: mov dword ptr [ebp - 4], eax */
   7301     MEM32(eax + 0x8) = edx; /* 0x36089C29: mov dword ptr [eax + 8], edx */
   7302     PUSH32(esp, ecx); /* 0x36089C2C: push ecx */
   7303     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   7304     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7305     eax = eax + 0xCu; /* 0x36089C2D: add eax, 0xc */
   7306     _flag_k = FK_ADD;
   7307     PUSH32(esp, eax); /* 0x36089C30: push eax */
   7308     RECOMP_ICALL(0x360E3A00u); /* 0x36089C31: call 0x360e3a00 */ /* not lifted */
   7309     RECOMP_FLAGS_IN();
   7310     ecx = MEM32(edi + 0x10); /* 0x36089C36: mov ecx, dword ptr [edi + 0x10] */
   7311     eax = MEM32(edi + 0x4); /* 0x36089C39: mov eax, dword ptr [edi + 4] */
   7312     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7313     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7314     esp = esp + 8; /* 0x36089C3C: add esp, 8 */
   7315     _flag_k = FK_ADD;
   7316     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7317     ecx = ecx + 1; /* 0x36089C3F: inc ecx */
   7318     _flag_k = FK_INC;
   7319     /* cmp esi, eax */ /* 0x36089C40: cmp esi, eax */
   7320     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7322     _flag_k = FK_CMP;
   7323     MEM32(edi + 0x10) = ecx; /* 0x36089C42: mov dword ptr [edi + 0x10], ecx */
   7324     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089C6F; /* 0x36089C45: je 0x36089c6f */
   7325 L_36089C47:
   7326     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x36089C47: cmp ebx, dword ptr [edi + 8] */
   7327     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7329     _flag_k = FK_CMP;
   7330     if (CMP_NE(_flag_a, _flag_b)) goto L_36089C6F; /* 0x36089C4A: jne 0x36089c6f */
   7331 L_36089C4C:
   7332     ecx = MEM32(ebp + 0xC); /* 0x36089C4C: mov ecx, dword ptr [ebp + 0xc] */
   7333     edx = esi + 0xC; /* 0x36089C4F: lea edx, [esi + 0xc] */
   7334     PUSH32(esp, edx); /* 0x36089C52: push edx */
   7335     RECOMP_ICALL(0x36089E30u); /* 0x36089C53: call 0x36089e30 */ /* not lifted */
   7336     RECOMP_FLAGS_IN();
   7337     /* test LO8(eax), LO8(eax) */ /* 0x36089C58: test al, al */
   7338     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7339     _cf = 0;
   7340     _flag_k = FK_NARROW(FK_TEST, 24);
   7341     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089C6F; /* 0x36089C5A: jne 0x36089c6f */
   7342 L_36089C5C:
   7343     ebx = MEM32(ebp + (-0x4)); /* 0x36089C5C: mov ebx, dword ptr [ebp - 4] */
   7344     MEM32(esi + 0x8) = ebx; /* 0x36089C5F: mov dword ptr [esi + 8], ebx */
   7345     eax = MEM32(edi + 0x4); /* 0x36089C62: mov eax, dword ptr [edi + 4] */
   7346     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36089C65: cmp esi, dword ptr [eax + 8] */
   7347     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7349     _flag_k = FK_CMP;
   7350     if (CMP_NE(_flag_a, _flag_b)) goto L_36089C92; /* 0x36089C68: jne 0x36089c92 */
   7351 L_36089C6A:
   7352     MEM32(eax + 0x8) = ebx; /* 0x36089C6A: mov dword ptr [eax + 8], ebx */
   7353     goto L_36089C92; /* 0x36089C6D: jmp 0x36089c92 */
   7354 L_36089C6F:
   7355     ecx = MEM32(ebp + (-0x4)); /* 0x36089C6F: mov ecx, dword ptr [ebp - 4] */
   7356     MEM32(esi) = ecx; /* 0x36089C72: mov dword ptr [esi], ecx */
   7357     eax = MEM32(edi + 0x4); /* 0x36089C74: mov eax, dword ptr [edi + 4] */
   7358     /* cmp esi, eax */ /* 0x36089C77: cmp esi, eax */
   7359     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7361     _flag_k = FK_CMP;
   7362     if (CMP_NE(_flag_a, _flag_b)) goto L_36089C86; /* 0x36089C79: jne 0x36089c86 */
   7363 L_36089C7B:
   7364     MEM32(eax + 0x4) = ecx; /* 0x36089C7B: mov dword ptr [eax + 4], ecx */
   7365     eax = MEM32(edi + 0x4); /* 0x36089C7E: mov eax, dword ptr [edi + 4] */
   7366     MEM32(eax + 0x8) = ecx; /* 0x36089C81: mov dword ptr [eax + 8], ecx */
   7367     goto L_36089C8F; /* 0x36089C84: jmp 0x36089c8f */
   7368 L_36089C86:
   7369     /* cmp esi, MEM32(eax) */ /* 0x36089C86: cmp esi, dword ptr [eax] */
   7370     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   7371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7372     _flag_k = FK_CMP;
   7373     if (CMP_NE(_flag_a, _flag_b)) goto L_36089C8F; /* 0x36089C88: jne 0x36089c8f */
   7374 L_36089C8A:
   7375     ecx = MEM32(ebp + (-0x4)); /* 0x36089C8A: mov ecx, dword ptr [ebp - 4] */
   7376     MEM32(eax) = ecx; /* 0x36089C8D: mov dword ptr [eax], ecx */
   7377 L_36089C8F:
   7378     ebx = MEM32(ebp + (-0x4)); /* 0x36089C8F: mov ebx, dword ptr [ebp - 4] */
   7379 L_36089C92:
   7380     edx = MEM32(edi + 0x4); /* 0x36089C92: mov edx, dword ptr [edi + 4] */
   7381     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x36089C95: cmp ebx, dword ptr [edx + 4] */
   7382     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7384     _flag_k = FK_CMP;
   7385     esi = ebx; /* 0x36089C98: mov esi, ebx */
   7386     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089D65; /* 0x36089C9A: je 0x36089d65 */
   7387 L_36089CA0:
   7388     eax = MEM32(esi + 0x4); /* 0x36089CA0: mov eax, dword ptr [esi + 4] */
   7389     SET_LO8(ecx, MEM8(eax + 0x1C)); /* 0x36089CA3: mov cl, byte ptr [eax + 0x1c] */
   7390     /* test LO8(ecx), LO8(ecx) */ /* 0x36089CA6: test cl, cl */
   7391     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7392     _cf = 0;
   7393     _flag_k = FK_NARROW(FK_TEST, 24);
   7394     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089D65; /* 0x36089CA8: jne 0x36089d65 */
   7395 L_36089CAE:
   7396     edx = MEM32(eax + 0x4); /* 0x36089CAE: mov edx, dword ptr [eax + 4] */
   7397     ecx = MEM32(edx); /* 0x36089CB1: mov ecx, dword ptr [edx] */
   7398     /* cmp eax, ecx */ /* 0x36089CB3: cmp eax, ecx */
   7399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7401     _flag_k = FK_CMP;
   7402     if (CMP_NE(_flag_a, _flag_b)) goto L_36089D0B; /* 0x36089CB5: jne 0x36089d0b */
   7403 L_36089CB7:
   7404     ecx = MEM32(edx + 0x8); /* 0x36089CB7: mov ecx, dword ptr [edx + 8] */
   7405     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x36089CBA: mov dl, byte ptr [ecx + 0x1c] */
   7406     /* test LO8(edx), LO8(edx) */ /* 0x36089CBD: test dl, dl */
   7407     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7408     _cf = 0;
   7409     _flag_k = FK_NARROW(FK_TEST, 24);
   7410     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089CDB; /* 0x36089CBF: jne 0x36089cdb */
   7411 L_36089CC1:
   7412     MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x36089CC1: mov byte ptr [eax + 0x1c], 1 */
   7413     MEM8(ecx + 0x1C) = (uint8_t)(1); /* 0x36089CC5: mov byte ptr [ecx + 0x1c], 1 */
   7414     eax = MEM32(esi + 0x4); /* 0x36089CC9: mov eax, dword ptr [esi + 4] */
   7415     ecx = MEM32(eax + 0x4); /* 0x36089CCC: mov ecx, dword ptr [eax + 4] */
   7416     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x36089CCF: mov byte ptr [ecx + 0x1c], 0 */
   7417     edx = MEM32(esi + 0x4); /* 0x36089CD3: mov edx, dword ptr [esi + 4] */
   7418     esi = MEM32(edx + 0x4); /* 0x36089CD6: mov esi, dword ptr [edx + 4] */
   7419     goto L_36089D59; /* 0x36089CD9: jmp 0x36089d59 */
   7420 L_36089CDB:
   7421     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36089CDB: cmp esi, dword ptr [eax + 8] */
   7422     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7424     _flag_k = FK_CMP;
   7425     if (CMP_NE(_flag_a, _flag_b)) goto L_36089CEA; /* 0x36089CDE: jne 0x36089cea */
   7426 L_36089CE0:
   7427     esi = eax; /* 0x36089CE0: mov esi, eax */
   7428     PUSH32(esp, esi); /* 0x36089CE2: push esi */
   7429     ecx = edi; /* 0x36089CE3: mov ecx, edi */
   7430     RECOMP_ICALL(0x36096920u); /* 0x36089CE5: call 0x36096920 */ /* not lifted */
   7431     RECOMP_FLAGS_IN();
   7432 L_36089CEA:
   7433     eax = MEM32(esi + 0x4); /* 0x36089CEA: mov eax, dword ptr [esi + 4] */
   7434     MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x36089CED: mov byte ptr [eax + 0x1c], 1 */
   7435     ecx = MEM32(esi + 0x4); /* 0x36089CF1: mov ecx, dword ptr [esi + 4] */
   7436     edx = MEM32(ecx + 0x4); /* 0x36089CF4: mov edx, dword ptr [ecx + 4] */
   7437     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x36089CF7: mov byte ptr [edx + 0x1c], 0 */
   7438     eax = MEM32(esi + 0x4); /* 0x36089CFB: mov eax, dword ptr [esi + 4] */
   7439     ecx = MEM32(eax + 0x4); /* 0x36089CFE: mov ecx, dword ptr [eax + 4] */
   7440     PUSH32(esp, ecx); /* 0x36089D01: push ecx */
   7441     ecx = edi; /* 0x36089D02: mov ecx, edi */
   7442     RECOMP_ICALL(0x360B4260u); /* 0x36089D04: call 0x360b4260 */ /* not lifted */
   7443     RECOMP_FLAGS_IN();
   7444     goto L_36089D59; /* 0x36089D09: jmp 0x36089d59 */
   7445 L_36089D0B:
   7446     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x36089D0B: mov dl, byte ptr [ecx + 0x1c] */
   7447     /* test LO8(edx), LO8(edx) */ /* 0x36089D0E: test dl, dl */
   7448     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7449     _cf = 0;
   7450     _flag_k = FK_NARROW(FK_TEST, 24);
   7451     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089D2C; /* 0x36089D10: jne 0x36089d2c */
   7452 L_36089D12:
   7453     MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x36089D12: mov byte ptr [eax + 0x1c], 1 */
   7454     MEM8(ecx + 0x1C) = (uint8_t)(1); /* 0x36089D16: mov byte ptr [ecx + 0x1c], 1 */
   7455     edx = MEM32(esi + 0x4); /* 0x36089D1A: mov edx, dword ptr [esi + 4] */
   7456     eax = MEM32(edx + 0x4); /* 0x36089D1D: mov eax, dword ptr [edx + 4] */
   7457     MEM8(eax + 0x1C) = (uint8_t)(0); /* 0x36089D20: mov byte ptr [eax + 0x1c], 0 */
   7458     ecx = MEM32(esi + 0x4); /* 0x36089D24: mov ecx, dword ptr [esi + 4] */
   7459     esi = MEM32(ecx + 0x4); /* 0x36089D27: mov esi, dword ptr [ecx + 4] */
   7460     goto L_36089D59; /* 0x36089D2A: jmp 0x36089d59 */
   7461 L_36089D2C:
   7462     /* cmp esi, MEM32(eax) */ /* 0x36089D2C: cmp esi, dword ptr [eax] */
   7463     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   7464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7465     _flag_k = FK_CMP;
   7466     if (CMP_NE(_flag_a, _flag_b)) goto L_36089D3A; /* 0x36089D2E: jne 0x36089d3a */
   7467 L_36089D30:
   7468     esi = eax; /* 0x36089D30: mov esi, eax */
   7469     PUSH32(esp, esi); /* 0x36089D32: push esi */
   7470     ecx = edi; /* 0x36089D33: mov ecx, edi */
   7471     RECOMP_ICALL(0x360B4260u); /* 0x36089D35: call 0x360b4260 */ /* not lifted */
   7472     RECOMP_FLAGS_IN();
   7473 L_36089D3A:
   7474     edx = MEM32(esi + 0x4); /* 0x36089D3A: mov edx, dword ptr [esi + 4] */
   7475     MEM8(edx + 0x1C) = (uint8_t)(1); /* 0x36089D3D: mov byte ptr [edx + 0x1c], 1 */
   7476     eax = MEM32(esi + 0x4); /* 0x36089D41: mov eax, dword ptr [esi + 4] */
   7477     ecx = MEM32(eax + 0x4); /* 0x36089D44: mov ecx, dword ptr [eax + 4] */
   7478     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x36089D47: mov byte ptr [ecx + 0x1c], 0 */
   7479     edx = MEM32(esi + 0x4); /* 0x36089D4B: mov edx, dword ptr [esi + 4] */
   7480     eax = MEM32(edx + 0x4); /* 0x36089D4E: mov eax, dword ptr [edx + 4] */
   7481     PUSH32(esp, eax); /* 0x36089D51: push eax */
   7482     ecx = edi; /* 0x36089D52: mov ecx, edi */
   7483     RECOMP_ICALL(0x36096920u); /* 0x36089D54: call 0x36096920 */ /* not lifted */
   7484     RECOMP_FLAGS_IN();
   7485 L_36089D59:
   7486     ecx = MEM32(edi + 0x4); /* 0x36089D59: mov ecx, dword ptr [edi + 4] */
   7487     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x36089D5C: cmp esi, dword ptr [ecx + 4] */
   7488     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   7489     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7490     _flag_k = FK_CMP;
   7491     RECOMP_BACKEDGE();
   7492     if (CMP_NE(_flag_a, _flag_b)) goto L_36089CA0; /* 0x36089D5F: jne 0x36089ca0 */
   7493 L_36089D65:
   7494     edx = MEM32(edi + 0x4); /* 0x36089D65: mov edx, dword ptr [edi + 4] */
   7495     eax = MEM32(edx + 0x4); /* 0x36089D68: mov eax, dword ptr [edx + 4] */
   7496     MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x36089D6B: mov byte ptr [eax + 0x1c], 1 */
   7497     eax = MEM32(ebp + 0x8); /* 0x36089D6F: mov eax, dword ptr [ebp + 8] */
   7498     edi = POP32_VAL(esp); /* 0x36089D72: pop edi */
   7499     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x36089D73: mov byte ptr [ebp - 8], 1 */
   7500     ecx = MEM32(ebp + (-0x8)); /* 0x36089D77: mov ecx, dword ptr [ebp - 8] */
   7501     MEM32(eax) = ebx; /* 0x36089D7A: mov dword ptr [eax], ebx */
   7502     esi = POP32_VAL(esp); /* 0x36089D7C: pop esi */
   7503     MEM32(eax + 0x4) = ecx; /* 0x36089D7D: mov dword ptr [eax + 4], ecx */
   7504     ebx = POP32_VAL(esp); /* 0x36089D80: pop ebx */
   7505     esp = ebp; /* 0x36089D81: mov esp, ebp */
   7506     ebp = POP32_VAL(esp); /* 0x36089D83: pop ebp */
   7507     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089D84: ret 8 */
   7508 L_36089D87:
   7509     /* test LO8(eax), LO8(eax) */ /* 0x36089D87: test al, al */
   7510     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7511     _cf = 0;
   7512     _flag_k = FK_NARROW(FK_TEST, 24);
   7513     MEM32(ebp + (-0x8)) = esi; /* 0x36089D89: mov dword ptr [ebp - 8], esi */
   7514     if (TEST_Z(_flag_a, _flag_b)) goto L_36089DC8; /* 0x36089D8C: je 0x36089dc8 */
   7515 L_36089D8E:
   7516     edx = MEM32(edi + 0x4); /* 0x36089D8E: mov edx, dword ptr [edi + 4] */
   7517     /* cmp esi, MEM32(edx) */ /* 0x36089D91: cmp esi, dword ptr [edx] */
   7518     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx));
   7519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7520     _flag_k = FK_CMP;
   7521     if (CMP_NE(_flag_a, _flag_b)) goto L_36089DC0; /* 0x36089D93: jne 0x36089dc0 */
   7522 L_36089D95:
   7523     eax = MEM32(ebp + 0xC); /* 0x36089D95: mov eax, dword ptr [ebp + 0xc] */
   7524     PUSH32(esp, eax); /* 0x36089D98: push eax */
   7525     PUSH32(esp, esi); /* 0x36089D99: push esi */
   7526     PUSH32(esp, ebx); /* 0x36089D9A: push ebx */
   7527     ecx = ebp + 0xC; /* 0x36089D9B: lea ecx, [ebp + 0xc] */
   7528     PUSH32(esp, ecx); /* 0x36089D9E: push ecx */
   7529     ecx = edi; /* 0x36089D9F: mov ecx, edi */
   7530     RECOMP_ICALL(0x3608A060u); /* 0x36089DA1: call 0x3608a060 */ /* not lifted */
   7531     RECOMP_FLAGS_IN();
   7532     ecx = MEM32(eax); /* 0x36089DA6: mov ecx, dword ptr [eax] */
   7533     eax = MEM32(ebp + 0x8); /* 0x36089DA8: mov eax, dword ptr [ebp + 8] */
   7534     edi = POP32_VAL(esp); /* 0x36089DAB: pop edi */
   7535     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x36089DAC: mov byte ptr [ebp - 8], 1 */
   7536     edx = MEM32(ebp + (-0x8)); /* 0x36089DB0: mov edx, dword ptr [ebp - 8] */
   7537     esi = POP32_VAL(esp); /* 0x36089DB3: pop esi */
   7538     MEM32(eax) = ecx; /* 0x36089DB4: mov dword ptr [eax], ecx */
   7539     MEM32(eax + 0x4) = edx; /* 0x36089DB6: mov dword ptr [eax + 4], edx */
   7540     ebx = POP32_VAL(esp); /* 0x36089DB9: pop ebx */
   7541     esp = ebp; /* 0x36089DBA: mov esp, ebp */
   7542     ebp = POP32_VAL(esp); /* 0x36089DBC: pop ebp */
   7543     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089DBD: ret 8 */
   7544 L_36089DC0:
   7545     ecx = ebp + (-0x8); /* 0x36089DC0: lea ecx, [ebp - 8] */
   7546     RECOMP_ICALL(0x360FF610u); /* 0x36089DC3: call 0x360ff610 */ /* not lifted */
   7547     RECOMP_FLAGS_IN();
   7548 L_36089DC8:
   7549     eax = MEM32(ebp + (-0x8)); /* 0x36089DC8: mov eax, dword ptr [ebp - 8] */
   7550     edx = MEM32(ebp + 0xC); /* 0x36089DCB: mov edx, dword ptr [ebp + 0xc] */
   7551     ecx = eax + 0xC; /* 0x36089DCE: lea ecx, [eax + 0xc] */
   7552     PUSH32(esp, edx); /* 0x36089DD1: push edx */
   7553     RECOMP_ICALL(0x36089E30u); /* 0x36089DD2: call 0x36089e30 */ /* not lifted */
   7554     RECOMP_FLAGS_IN();
   7555     /* test LO8(eax), LO8(eax) */ /* 0x36089DD7: test al, al */
   7556     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7557     _cf = 0;
   7558     _flag_k = FK_NARROW(FK_TEST, 24);
   7559     if (TEST_Z(_flag_a, _flag_b)) goto L_36089E06; /* 0x36089DD9: je 0x36089e06 */
   7560 L_36089DDB:
   7561     eax = MEM32(ebp + 0xC); /* 0x36089DDB: mov eax, dword ptr [ebp + 0xc] */
   7562     PUSH32(esp, eax); /* 0x36089DDE: push eax */
   7563     PUSH32(esp, esi); /* 0x36089DDF: push esi */
   7564     PUSH32(esp, ebx); /* 0x36089DE0: push ebx */
   7565     ecx = ebp + 0xC; /* 0x36089DE1: lea ecx, [ebp + 0xc] */
   7566     PUSH32(esp, ecx); /* 0x36089DE4: push ecx */
   7567     ecx = edi; /* 0x36089DE5: mov ecx, edi */
   7568     RECOMP_ICALL(0x3608A060u); /* 0x36089DE7: call 0x3608a060 */ /* not lifted */
   7569     RECOMP_FLAGS_IN();
   7570     ecx = MEM32(eax); /* 0x36089DEC: mov ecx, dword ptr [eax] */
   7571     eax = MEM32(ebp + 0x8); /* 0x36089DEE: mov eax, dword ptr [ebp + 8] */
   7572     edi = POP32_VAL(esp); /* 0x36089DF1: pop edi */
   7573     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x36089DF2: mov byte ptr [ebp - 8], 1 */
   7574     edx = MEM32(ebp + (-0x8)); /* 0x36089DF6: mov edx, dword ptr [ebp - 8] */
   7575     esi = POP32_VAL(esp); /* 0x36089DF9: pop esi */
   7576     MEM32(eax) = ecx; /* 0x36089DFA: mov dword ptr [eax], ecx */
   7577     MEM32(eax + 0x4) = edx; /* 0x36089DFC: mov dword ptr [eax + 4], edx */
   7578     ebx = POP32_VAL(esp); /* 0x36089DFF: pop ebx */
   7579     esp = ebp; /* 0x36089E00: mov esp, ebp */
   7580     ebp = POP32_VAL(esp); /* 0x36089E02: pop ebp */
   7581     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089E03: ret 8 */
   7582 L_36089E06:
   7583     ecx = MEM32(ebp + (-0x8)); /* 0x36089E06: mov ecx, dword ptr [ebp - 8] */
   7584     eax = MEM32(ebp + 0x8); /* 0x36089E09: mov eax, dword ptr [ebp + 8] */
   7585     edi = POP32_VAL(esp); /* 0x36089E0C: pop edi */
   7586     MEM32(eax) = ecx; /* 0x36089E0D: mov dword ptr [eax], ecx */
   7587     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x36089E0F: mov byte ptr [ebp - 8], 0 */
   7588     ecx = MEM32(ebp + (-0x8)); /* 0x36089E13: mov ecx, dword ptr [ebp - 8] */
   7589     esi = POP32_VAL(esp); /* 0x36089E16: pop esi */
   7590     MEM32(eax + 0x4) = ecx; /* 0x36089E17: mov dword ptr [eax + 4], ecx */
   7591     ebx = POP32_VAL(esp); /* 0x36089E1A: pop ebx */
   7592     esp = ebp; /* 0x36089E1B: mov esp, ebp */
   7593     ebp = POP32_VAL(esp); /* 0x36089E1D: pop ebp */
   7594     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089E1E: ret 8 */
   7595     RECOMP_REGS_OUT();
   7596 }
   7597 
   7598 void sub_36089E30(void) {
   7599     int _fpu_cmp = 0;
   7600     uint32_t _cf = 0;
   7601     int _df = 1;
   7602     uint32_t _flag_k = FK_NONE;
   7603     uint32_t _flag_a = 0, _flag_b = 0;
   7604     uint32_t _itail_tgt = 0;
   7605     RECOMP_REGS_LOCALS
   7606     RECOMP_ENTER(0x36089E30u);
   7607 
   7608 L_36089E30:
   7609     PUSH32(esp, ebp); /* 0x36089E30: push ebp */
   7610     ebp = esp; /* 0x36089E31: mov ebp, esp */
   7611     eax = MEM32(ecx + 0x4); /* 0x36089E33: mov eax, dword ptr [ecx + 4] */
   7612     PUSH32(esp, esi); /* 0x36089E36: push esi */
   7613     esi = MEM32(ebp + 0x8); /* 0x36089E37: mov esi, dword ptr [ebp + 8] */
   7614     edx = MEM32(esi + 0x4); /* 0x36089E3A: mov edx, dword ptr [esi + 4] */
   7615     /* cmp eax, edx */ /* 0x36089E3D: cmp eax, edx */
   7616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7618     _flag_k = FK_CMP;
   7619     if (CMP_NE(_flag_a, _flag_b)) goto L_36089E51; /* 0x36089E3F: jne 0x36089e51 */
   7620 L_36089E41:
   7621     eax = MEM32(ecx + 0x8); /* 0x36089E41: mov eax, dword ptr [ecx + 8] */
   7622     edx = MEM32(esi + 0x8); /* 0x36089E44: mov edx, dword ptr [esi + 8] */
   7623     /* cmp eax, edx */ /* 0x36089E47: cmp eax, edx */
   7624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7625     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7626     _flag_k = FK_CMP;
   7627     if (CMP_NE(_flag_a, _flag_b)) goto L_36089E51; /* 0x36089E49: jne 0x36089e51 */
   7628 L_36089E4B:
   7629     eax = MEM32(ecx); /* 0x36089E4B: mov eax, dword ptr [ecx] */
   7630     edx = MEM32(esi); /* 0x36089E4D: mov edx, dword ptr [esi] */
   7631     /* cmp eax, edx */ /* 0x36089E4F: cmp eax, edx */
   7632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7634     _flag_k = FK_CMP;
   7635 L_36089E51:
   7636     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36089E51: sbb eax, eax */
   7637       eax = _sc ? 0xFFFFFFFFu : 0;
   7638       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   7639       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   7640     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   7641     _cf = (eax) != 0;
   7642     eax = (uint32_t)(-(int32_t)eax); /* 0x36089E53: neg eax */
   7643     _flag_k = FK_CMP;
   7644     esi = POP32_VAL(esp); /* 0x36089E55: pop esi */
   7645     ebp = POP32_VAL(esp); /* 0x36089E56: pop ebp */
   7646     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36089E57: ret 4 */
   7647     RECOMP_REGS_OUT();
   7648 }
   7649 
   7650 void sub_36089E60(void) {
   7651     int _fpu_cmp = 0;
   7652     uint32_t _cf = 0;
   7653     int _df = 1;
   7654     uint32_t _flag_k = FK_NONE;
   7655     uint32_t _flag_a = 0, _flag_b = 0;
   7656     uint32_t _itail_tgt = 0;
   7657     RECOMP_REGS_LOCALS
   7658     RECOMP_ENTER(0x36089E60u);
   7659 
   7660 L_36089E60:
   7661     PUSH32(esp, ebp); /* 0x36089E60: push ebp */
   7662     ebp = esp; /* 0x36089E61: mov ebp, esp */
   7663     PUSH32(esp, ebx); /* 0x36089E63: push ebx */
   7664     ebx = MEM32(ebp + 0x10); /* 0x36089E64: mov ebx, dword ptr [ebp + 0x10] */
   7665     PUSH32(esp, esi); /* 0x36089E67: push esi */
   7666     esi = ecx; /* 0x36089E68: mov esi, ecx */
   7667     eax = MEM32(esi + 0x10); /* 0x36089E6A: mov eax, dword ptr [esi + 0x10] */
   7668     /* test eax, eax */ /* 0x36089E6D: test eax, eax */
   7669     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7670     _cf = 0;
   7671     _flag_k = FK_TEST;
   7672     ecx = MEM32(ebp + 0xC); /* 0x36089E6F: mov ecx, dword ptr [ebp + 0xc] */
   7673     PUSH32(esp, edi); /* 0x36089E72: push edi */
   7674     if (TEST_Z(_flag_a, _flag_b)) goto L_36089ED5; /* 0x36089E73: je 0x36089ed5 */
   7675 L_36089E75:
   7676     eax = MEM32(esi + 0x4); /* 0x36089E75: mov eax, dword ptr [esi + 4] */
   7677     /* cmp ecx, MEM32(eax) */ /* 0x36089E78: cmp ecx, dword ptr [eax] */
   7678     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   7679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7680     _flag_k = FK_CMP;
   7681     if (CMP_NE(_flag_a, _flag_b)) goto L_36089ED5; /* 0x36089E7A: jne 0x36089ed5 */
   7682 L_36089E7C:
   7683     /* cmp ebx, eax */ /* 0x36089E7C: cmp ebx, eax */
   7684     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   7685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7686     _flag_k = FK_CMP;
   7687     if (CMP_NE(_flag_a, _flag_b)) goto L_36089ED5; /* 0x36089E7E: jne 0x36089ed5 */
   7688 L_36089E80:
   7689     ebx = MEM32(eax + 0x4); /* 0x36089E80: mov ebx, dword ptr [eax + 4] */
   7690     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36089E83: cmp ebx, dword ptr [esi + 8] */
   7691     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   7692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7693     _flag_k = FK_CMP;
   7694     edi = ebx; /* 0x36089E86: mov edi, ebx */
   7695     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089EA9; /* 0x36089E88: je 0x36089ea9 */
   7696 L_36089E8A:
   7697     eax = MEM32(edi + 0x8); /* 0x36089E8A: mov eax, dword ptr [edi + 8] */
   7698     PUSH32(esp, eax); /* 0x36089E8D: push eax */
   7699     ecx = esi; /* 0x36089E8E: mov ecx, esi */
   7700     RECOMP_ICALL(0x3608A020u); /* 0x36089E90: call 0x3608a020 */ /* not lifted */
   7701     RECOMP_FLAGS_IN();
   7702     edi = MEM32(edi); /* 0x36089E95: mov edi, dword ptr [edi] */
   7703     PUSH32(esp, ebx); /* 0x36089E97: push ebx */
   7704     RECOMP_ICALL(0x3615FCC4u); /* 0x36089E98: call 0x3615fcc4 */ /* not lifted */
   7705     RECOMP_FLAGS_IN();
   7706     eax = MEM32(esi + 0x8); /* 0x36089E9D: mov eax, dword ptr [esi + 8] */
   7707     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7708     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7709     esp = esp + 4; /* 0x36089EA0: add esp, 4 */
   7710     _flag_k = FK_ADD;
   7711     /* cmp edi, eax */ /* 0x36089EA3: cmp edi, eax */
   7712     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   7713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7714     _flag_k = FK_CMP;
   7715     ebx = edi; /* 0x36089EA5: mov ebx, edi */
   7716     RECOMP_BACKEDGE();
   7717     if (CMP_NE(_flag_a, _flag_b)) goto L_36089E8A; /* 0x36089EA7: jne 0x36089e8a */
   7718 L_36089EA9:
   7719     ecx = MEM32(esi + 0x4); /* 0x36089EA9: mov ecx, dword ptr [esi + 4] */
   7720     edx = MEM32(esi + 0x8); /* 0x36089EAC: mov edx, dword ptr [esi + 8] */
   7721     MEM32(ecx + 0x4) = edx; /* 0x36089EAF: mov dword ptr [ecx + 4], edx */
   7722     eax = MEM32(esi + 0x4); /* 0x36089EB2: mov eax, dword ptr [esi + 4] */
   7723     MEM32(esi + 0x10) = 0; /* 0x36089EB5: mov dword ptr [esi + 0x10], 0 */
   7724     MEM32(eax) = eax; /* 0x36089EBC: mov dword ptr [eax], eax */
   7725     eax = MEM32(esi + 0x4); /* 0x36089EBE: mov eax, dword ptr [esi + 4] */
   7726     MEM32(eax + 0x8) = eax; /* 0x36089EC1: mov dword ptr [eax + 8], eax */
   7727     eax = MEM32(esi + 0x4); /* 0x36089EC4: mov eax, dword ptr [esi + 4] */
   7728     ecx = MEM32(eax); /* 0x36089EC7: mov ecx, dword ptr [eax] */
   7729     eax = MEM32(ebp + 0x8); /* 0x36089EC9: mov eax, dword ptr [ebp + 8] */
   7730     edi = POP32_VAL(esp); /* 0x36089ECC: pop edi */
   7731     esi = POP32_VAL(esp); /* 0x36089ECD: pop esi */
   7732     MEM32(eax) = ecx; /* 0x36089ECE: mov dword ptr [eax], ecx */
   7733     ebx = POP32_VAL(esp); /* 0x36089ED0: pop ebx */
   7734     ebp = POP32_VAL(esp); /* 0x36089ED1: pop ebp */
   7735     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36089ED2: ret 0xc */
   7736 L_36089ED5:
   7737     /* cmp ecx, ebx */ /* 0x36089ED5: cmp ecx, ebx */
   7738     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7739     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7740     _flag_k = FK_CMP;
   7741     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089EF6; /* 0x36089ED7: je 0x36089ef6 */
   7742 L_36089ED9:
   7743     edi = ecx; /* 0x36089ED9: mov edi, ecx */
   7744     ecx = ebp + 0xC; /* 0x36089EDB: lea ecx, [ebp + 0xc] */
   7745     RECOMP_ICALL(0x360FF670u); /* 0x36089EDE: call 0x360ff670 */ /* not lifted */
   7746     RECOMP_FLAGS_IN();
   7747     PUSH32(esp, edi); /* 0x36089EE3: push edi */
   7748     ecx = ebp + 0x10; /* 0x36089EE4: lea ecx, [ebp + 0x10] */
   7749     PUSH32(esp, ecx); /* 0x36089EE7: push ecx */
   7750     ecx = esi; /* 0x36089EE8: mov ecx, esi */
   7751     RECOMP_ICALL(0x360E3330u); /* 0x36089EEA: call 0x360e3330 */ /* not lifted */
   7752     RECOMP_FLAGS_IN();
   7753     ecx = MEM32(ebp + 0xC); /* 0x36089EEF: mov ecx, dword ptr [ebp + 0xc] */
   7754     /* cmp ecx, ebx */ /* 0x36089EF2: cmp ecx, ebx */
   7755     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7757     _flag_k = FK_CMP;
   7758     RECOMP_BACKEDGE();
   7759     if (CMP_NE(_flag_a, _flag_b)) goto L_36089ED9; /* 0x36089EF4: jne 0x36089ed9 */
   7760 L_36089EF6:
   7761     eax = MEM32(ebp + 0x8); /* 0x36089EF6: mov eax, dword ptr [ebp + 8] */
   7762     edi = POP32_VAL(esp); /* 0x36089EF9: pop edi */
   7763     esi = POP32_VAL(esp); /* 0x36089EFA: pop esi */
   7764     MEM32(eax) = ecx; /* 0x36089EFB: mov dword ptr [eax], ecx */
   7765     ebx = POP32_VAL(esp); /* 0x36089EFD: pop ebx */
   7766     ebp = POP32_VAL(esp); /* 0x36089EFE: pop ebp */
   7767     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36089EFF: ret 0xc */
   7768     RECOMP_REGS_OUT();
   7769 }
   7770 
   7771 void sub_36089F10(void) {
   7772     int _fpu_cmp = 0;
   7773     uint32_t _cf = 0;
   7774     int _df = 1;
   7775     uint32_t _flag_k = FK_NONE;
   7776     uint32_t _flag_a = 0, _flag_b = 0;
   7777     uint32_t _itail_tgt = 0;
   7778     RECOMP_REGS_LOCALS
   7779     RECOMP_ENTER(0x36089F10u);
   7780 
   7781 L_36089F10:
   7782     PUSH32(esp, ebp); /* 0x36089F10: push ebp */
   7783     ebp = esp; /* 0x36089F11: mov ebp, esp */
   7784     PUSH32(esp, ecx); /* 0x36089F13: push ecx */
   7785     PUSH32(esp, ebx); /* 0x36089F14: push ebx */
   7786     PUSH32(esp, esi); /* 0x36089F15: push esi */
   7787     ebx = ecx; /* 0x36089F16: mov ebx, ecx */
   7788     eax = MEM32(ebx + 0x8); /* 0x36089F18: mov eax, dword ptr [ebx + 8] */
   7789     PUSH32(esp, edi); /* 0x36089F1B: push edi */
   7790     edi = MEM32(ebx + 0x4); /* 0x36089F1C: mov edi, dword ptr [ebx + 4] */
   7791     esi = MEM32(edi + 0x4); /* 0x36089F1F: mov esi, dword ptr [edi + 4] */
   7792     /* cmp esi, eax */ /* 0x36089F22: cmp esi, eax */
   7793     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   7794     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7795     _flag_k = FK_CMP;
   7796     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089F44; /* 0x36089F24: je 0x36089f44 */
   7797 L_36089F26:
   7798     eax = MEM32(ebp + 0xC); /* 0x36089F26: mov eax, dword ptr [ebp + 0xc] */
   7799     PUSH32(esp, eax); /* 0x36089F29: push eax */
   7800     ecx = esi + 0xC; /* 0x36089F2A: lea ecx, [esi + 0xc] */
   7801     RECOMP_ICALL(0x36089E30u); /* 0x36089F2D: call 0x36089e30 */ /* not lifted */
   7802     RECOMP_FLAGS_IN();
   7803     /* test LO8(eax), LO8(eax) */ /* 0x36089F32: test al, al */
   7804     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7805     _cf = 0;
   7806     _flag_k = FK_NARROW(FK_TEST, 24);
   7807     if (TEST_Z(_flag_a, _flag_b)) goto L_36089F3B; /* 0x36089F34: je 0x36089f3b */
   7808 L_36089F36:
   7809     esi = MEM32(esi + 0x8); /* 0x36089F36: mov esi, dword ptr [esi + 8] */
   7810     goto L_36089F3F; /* 0x36089F39: jmp 0x36089f3f */
   7811 L_36089F3B:
   7812     edi = esi; /* 0x36089F3B: mov edi, esi */
   7813     esi = MEM32(esi); /* 0x36089F3D: mov esi, dword ptr [esi] */
   7814 L_36089F3F:
   7815     /* cmp esi, MEM32(ebx + 0x8) */ /* 0x36089F3F: cmp esi, dword ptr [ebx + 8] */
   7816     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x8));
   7817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7818     _flag_k = FK_CMP;
   7819     RECOMP_BACKEDGE();
   7820     if (CMP_NE(_flag_a, _flag_b)) goto L_36089F26; /* 0x36089F42: jne 0x36089f26 */
   7821 L_36089F44:
   7822     ebx = MEM32(ebx + 0x4); /* 0x36089F44: mov ebx, dword ptr [ebx + 4] */
   7823     /* cmp edi, ebx */ /* 0x36089F47: cmp edi, ebx */
   7824     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   7825     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7826     _flag_k = FK_CMP;
   7827     MEM32(ebp + (-0x4)) = edi; /* 0x36089F49: mov dword ptr [ebp - 4], edi */
   7828     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089F84; /* 0x36089F4C: je 0x36089f84 */
   7829 L_36089F4E:
   7830     edx = MEM32(ebp + 0xC); /* 0x36089F4E: mov edx, dword ptr [ebp + 0xc] */
   7831     eax = MEM32(edx + 0x4); /* 0x36089F51: mov eax, dword ptr [edx + 4] */
   7832     ecx = MEM32(edi + 0x10); /* 0x36089F54: mov ecx, dword ptr [edi + 0x10] */
   7833     /* cmp eax, ecx */ /* 0x36089F57: cmp eax, ecx */
   7834     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7836     _flag_k = FK_CMP;
   7837     if (CMP_NE(_flag_a, _flag_b)) goto L_36089F6A; /* 0x36089F59: jne 0x36089f6a */
   7838 L_36089F5B:
   7839     eax = MEM32(edx + 0x8); /* 0x36089F5B: mov eax, dword ptr [edx + 8] */
   7840     ecx = MEM32(edi + 0x14); /* 0x36089F5E: mov ecx, dword ptr [edi + 0x14] */
   7841     /* cmp eax, ecx */ /* 0x36089F61: cmp eax, ecx */
   7842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7844     _flag_k = FK_CMP;
   7845     if (CMP_NE(_flag_a, _flag_b)) goto L_36089F6A; /* 0x36089F63: jne 0x36089f6a */
   7846 L_36089F65:
   7847     ecx = MEM32(edx); /* 0x36089F65: mov ecx, dword ptr [edx] */
   7848     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x36089F67: cmp ecx, dword ptr [edi + 0xc] */
   7849     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   7850     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7851     _flag_k = FK_CMP;
   7852 L_36089F6A:
   7853     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_B, _cf)) ? 1 : 0); /* 0x36089F6A: setb al */
   7854     /* test LO8(eax), LO8(eax) */ /* 0x36089F6D: test al, al */
   7855     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7856     _cf = 0;
   7857     _flag_k = FK_NARROW(FK_TEST, 24);
   7858     if (TEST_NZ(_flag_a, _flag_b)) goto L_36089F84; /* 0x36089F6F: jne 0x36089f84 */
   7859 L_36089F71:
   7860     eax = ebp + (-0x4); /* 0x36089F71: lea eax, [ebp - 4] */
   7861     edx = MEM32(eax); /* 0x36089F74: mov edx, dword ptr [eax] */
   7862     eax = MEM32(ebp + 0x8); /* 0x36089F76: mov eax, dword ptr [ebp + 8] */
   7863     edi = POP32_VAL(esp); /* 0x36089F79: pop edi */
   7864     esi = POP32_VAL(esp); /* 0x36089F7A: pop esi */
   7865     MEM32(eax) = edx; /* 0x36089F7B: mov dword ptr [eax], edx */
   7866     ebx = POP32_VAL(esp); /* 0x36089F7D: pop ebx */
   7867     esp = ebp; /* 0x36089F7E: mov esp, ebp */
   7868     ebp = POP32_VAL(esp); /* 0x36089F80: pop ebp */
   7869     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089F81: ret 8 */
   7870 L_36089F84:
   7871     eax = ebp + 0xC; /* 0x36089F84: lea eax, [ebp + 0xc] */
   7872     MEM32(ebp + 0xC) = ebx; /* 0x36089F87: mov dword ptr [ebp + 0xc], ebx */
   7873     edx = MEM32(eax); /* 0x36089F8A: mov edx, dword ptr [eax] */
   7874     eax = MEM32(ebp + 0x8); /* 0x36089F8C: mov eax, dword ptr [ebp + 8] */
   7875     edi = POP32_VAL(esp); /* 0x36089F8F: pop edi */
   7876     esi = POP32_VAL(esp); /* 0x36089F90: pop esi */
   7877     MEM32(eax) = edx; /* 0x36089F91: mov dword ptr [eax], edx */
   7878     ebx = POP32_VAL(esp); /* 0x36089F93: pop ebx */
   7879     esp = ebp; /* 0x36089F94: mov esp, ebp */
   7880     ebp = POP32_VAL(esp); /* 0x36089F96: pop ebp */
   7881     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36089F97: ret 8 */
   7882     RECOMP_REGS_OUT();
   7883 }
   7884 
   7885 void sub_36089FA0(void) {
   7886     int _fpu_cmp = 0;
   7887     uint32_t _cf = 0;
   7888     int _df = 1;
   7889     uint32_t _flag_k = FK_NONE;
   7890     uint32_t _flag_a = 0, _flag_b = 0;
   7891     uint32_t _itail_tgt = 0;
   7892     RECOMP_REGS_LOCALS
   7893     RECOMP_ENTER(0x36089FA0u);
   7894 
   7895 L_36089FA0:
   7896     PUSH32(esp, ebp); /* 0x36089FA0: push ebp */
   7897     ebp = esp; /* 0x36089FA1: mov ebp, esp */
   7898     PUSH32(esp, ecx); /* 0x36089FA3: push ecx */
   7899     PUSH32(esp, ebx); /* 0x36089FA4: push ebx */
   7900     PUSH32(esp, esi); /* 0x36089FA5: push esi */
   7901     PUSH32(esp, edi); /* 0x36089FA6: push edi */
   7902     edi = ecx; /* 0x36089FA7: mov edi, ecx */
   7903     eax = MEM32(edi + 0x4); /* 0x36089FA9: mov eax, dword ptr [edi + 4] */
   7904     esi = MEM32(eax + 0x4); /* 0x36089FAC: mov esi, dword ptr [eax + 4] */
   7905     MEM32(ebp + (-0x4)) = eax; /* 0x36089FAF: mov dword ptr [ebp - 4], eax */
   7906     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36089FB2: cmp esi, dword ptr [edi + 8] */
   7907     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7909     _flag_k = FK_CMP;
   7910     if (CMP_EQ(_flag_a, _flag_b)) goto L_36089FD6; /* 0x36089FB5: je 0x36089fd6 */
   7911 L_36089FB7:
   7912     ecx = MEM32(ebp + 0xC); /* 0x36089FB7: mov ecx, dword ptr [ebp + 0xc] */
   7913     eax = esi + 0xC; /* 0x36089FBA: lea eax, [esi + 0xc] */
   7914     PUSH32(esp, eax); /* 0x36089FBD: push eax */
   7915     RECOMP_ICALL(0x36089E30u); /* 0x36089FBE: call 0x36089e30 */ /* not lifted */
   7916     RECOMP_FLAGS_IN();
   7917     /* test LO8(eax), LO8(eax) */ /* 0x36089FC3: test al, al */
   7918     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7919     _cf = 0;
   7920     _flag_k = FK_NARROW(FK_TEST, 24);
   7921     if (TEST_Z(_flag_a, _flag_b)) goto L_36089FCE; /* 0x36089FC5: je 0x36089fce */
   7922 L_36089FC7:
   7923     MEM32(ebp + (-0x4)) = esi; /* 0x36089FC7: mov dword ptr [ebp - 4], esi */
   7924     esi = MEM32(esi); /* 0x36089FCA: mov esi, dword ptr [esi] */
   7925     goto L_36089FD1; /* 0x36089FCC: jmp 0x36089fd1 */
   7926 L_36089FCE:
   7927     esi = MEM32(esi + 0x8); /* 0x36089FCE: mov esi, dword ptr [esi + 8] */
   7928 L_36089FD1:
   7929     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36089FD1: cmp esi, dword ptr [edi + 8] */
   7930     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7931     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7932     _flag_k = FK_CMP;
   7933     RECOMP_BACKEDGE();
   7934     if (CMP_NE(_flag_a, _flag_b)) goto L_36089FB7; /* 0x36089FD4: jne 0x36089fb7 */
   7935 L_36089FD6:
   7936     eax = MEM32(edi + 0x4); /* 0x36089FD6: mov eax, dword ptr [edi + 4] */
   7937     esi = MEM32(eax + 0x4); /* 0x36089FD9: mov esi, dword ptr [eax + 4] */
   7938     ebx = eax; /* 0x36089FDC: mov ebx, eax */
   7939     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36089FDE: cmp esi, dword ptr [edi + 8] */
   7940     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7942     _flag_k = FK_CMP;
   7943     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A001; /* 0x36089FE1: je 0x3608a001 */
   7944 L_36089FE3:
   7945     ecx = MEM32(ebp + 0xC); /* 0x36089FE3: mov ecx, dword ptr [ebp + 0xc] */
   7946     PUSH32(esp, ecx); /* 0x36089FE6: push ecx */
   7947     ecx = esi + 0xC; /* 0x36089FE7: lea ecx, [esi + 0xc] */
   7948     RECOMP_ICALL(0x36089E30u); /* 0x36089FEA: call 0x36089e30 */ /* not lifted */
   7949     RECOMP_FLAGS_IN();
   7950     /* test LO8(eax), LO8(eax) */ /* 0x36089FEF: test al, al */
   7951     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7952     _cf = 0;
   7953     _flag_k = FK_NARROW(FK_TEST, 24);
   7954     if (TEST_Z(_flag_a, _flag_b)) goto L_36089FF8; /* 0x36089FF1: je 0x36089ff8 */
   7955 L_36089FF3:
   7956     esi = MEM32(esi + 0x8); /* 0x36089FF3: mov esi, dword ptr [esi + 8] */
   7957     goto L_36089FFC; /* 0x36089FF6: jmp 0x36089ffc */
   7958 L_36089FF8:
   7959     ebx = esi; /* 0x36089FF8: mov ebx, esi */
   7960     esi = MEM32(esi); /* 0x36089FFA: mov esi, dword ptr [esi] */
   7961 L_36089FFC:
   7962     /* cmp esi, MEM32(edi + 0x8) */ /* 0x36089FFC: cmp esi, dword ptr [edi + 8] */
   7963     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   7964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7965     _flag_k = FK_CMP;
   7966     RECOMP_BACKEDGE();
   7967     if (CMP_NE(_flag_a, _flag_b)) goto L_36089FE3; /* 0x36089FFF: jne 0x36089fe3 */
   7968 L_3608A001:
   7969     eax = MEM32(ebp + 0x8); /* 0x3608A001: mov eax, dword ptr [ebp + 8] */
   7970     edx = MEM32(ebp + (-0x4)); /* 0x3608A004: mov edx, dword ptr [ebp - 4] */
   7971     edi = POP32_VAL(esp); /* 0x3608A007: pop edi */
   7972     MEM32(eax) = ebx; /* 0x3608A008: mov dword ptr [eax], ebx */
   7973     esi = POP32_VAL(esp); /* 0x3608A00A: pop esi */
   7974     MEM32(eax + 0x4) = edx; /* 0x3608A00B: mov dword ptr [eax + 4], edx */
   7975     ebx = POP32_VAL(esp); /* 0x3608A00E: pop ebx */
   7976     esp = ebp; /* 0x3608A00F: mov esp, ebp */
   7977     ebp = POP32_VAL(esp); /* 0x3608A011: pop ebp */
   7978     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608A012: ret 8 */
   7979     RECOMP_REGS_OUT();
   7980 }
   7981 
   7982 void sub_3608A020(void) {
   7983     int _fpu_cmp = 0;
   7984     uint32_t _cf = 0;
   7985     int _df = 1;
   7986     uint32_t _flag_k = FK_NONE;
   7987     uint32_t _flag_a = 0, _flag_b = 0;
   7988     uint32_t _itail_tgt = 0;
   7989     RECOMP_REGS_LOCALS
   7990     RECOMP_ENTER(0x3608A020u);
   7991 
   7992 L_3608A020:
   7993     PUSH32(esp, ebp); /* 0x3608A020: push ebp */
   7994     ebp = esp; /* 0x3608A021: mov ebp, esp */
   7995     PUSH32(esp, ebx); /* 0x3608A023: push ebx */
   7996     PUSH32(esp, esi); /* 0x3608A024: push esi */
   7997     ebx = ecx; /* 0x3608A025: mov ebx, ecx */
   7998     eax = MEM32(ebx + 0x8); /* 0x3608A027: mov eax, dword ptr [ebx + 8] */
   7999     PUSH32(esp, edi); /* 0x3608A02A: push edi */
   8000     edi = MEM32(ebp + 0x8); /* 0x3608A02B: mov edi, dword ptr [ebp + 8] */
   8001     /* cmp edi, eax */ /* 0x3608A02E: cmp edi, eax */
   8002     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8004     _flag_k = FK_CMP;
   8005     esi = edi; /* 0x3608A030: mov esi, edi */
   8006     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A053; /* 0x3608A032: je 0x3608a053 */
   8007 L_3608A034:
   8008     eax = MEM32(esi + 0x8); /* 0x3608A034: mov eax, dword ptr [esi + 8] */
   8009     PUSH32(esp, eax); /* 0x3608A037: push eax */
   8010     ecx = ebx; /* 0x3608A038: mov ecx, ebx */
   8011     RECOMP_ICALL(0x3608A020u); /* 0x3608A03A: call 0x3608a020 */ /* not lifted */
   8012     RECOMP_FLAGS_IN();
   8013     esi = MEM32(esi); /* 0x3608A03F: mov esi, dword ptr [esi] */
   8014     PUSH32(esp, edi); /* 0x3608A041: push edi */
   8015     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A042: call 0x3615fcc4 */ /* not lifted */
   8016     RECOMP_FLAGS_IN();
   8017     eax = MEM32(ebx + 0x8); /* 0x3608A047: mov eax, dword ptr [ebx + 8] */
   8018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8020     esp = esp + 4; /* 0x3608A04A: add esp, 4 */
   8021     _flag_k = FK_ADD;
   8022     /* cmp esi, eax */ /* 0x3608A04D: cmp esi, eax */
   8023     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8025     _flag_k = FK_CMP;
   8026     edi = esi; /* 0x3608A04F: mov edi, esi */
   8027     RECOMP_BACKEDGE();
   8028     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A034; /* 0x3608A051: jne 0x3608a034 */
   8029 L_3608A053:
   8030     edi = POP32_VAL(esp); /* 0x3608A053: pop edi */
   8031     esi = POP32_VAL(esp); /* 0x3608A054: pop esi */
   8032     ebx = POP32_VAL(esp); /* 0x3608A055: pop ebx */
   8033     ebp = POP32_VAL(esp); /* 0x3608A056: pop ebp */
   8034     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608A057: ret 4 */
   8035     RECOMP_REGS_OUT();
   8036 }
   8037 
   8038 void sub_3608A060(void) {
   8039     int _fpu_cmp = 0;
   8040     uint32_t _cf = 0;
   8041     int _df = 1;
   8042     uint32_t _flag_k = FK_NONE;
   8043     uint32_t _flag_a = 0, _flag_b = 0;
   8044     uint32_t _itail_tgt = 0;
   8045     RECOMP_REGS_LOCALS
   8046     RECOMP_ENTER(0x3608A060u);
   8047 
   8048 L_3608A060:
   8049     PUSH32(esp, ebp); /* 0x3608A060: push ebp */
   8050     ebp = esp; /* 0x3608A061: mov ebp, esp */
   8051     PUSH32(esp, ecx); /* 0x3608A063: push ecx */
   8052     PUSH32(esp, ebx); /* 0x3608A064: push ebx */
   8053     PUSH32(esp, esi); /* 0x3608A065: push esi */
   8054     PUSH32(esp, edi); /* 0x3608A066: push edi */
   8055     PUSH32(esp, 0x20u); /* 0x3608A067: push 0x20 */
   8056     esi = ecx; /* 0x3608A069: mov esi, ecx */
   8057     RECOMP_ICALL(0x3615FD6Au); /* 0x3608A06B: call 0x3615fd6a */ /* not lifted */
   8058     RECOMP_FLAGS_IN();
   8059     edi = MEM32(ebp + 0x10); /* 0x3608A070: mov edi, dword ptr [ebp + 0x10] */
   8060     ebx = MEM32(ebp + 0x14); /* 0x3608A073: mov ebx, dword ptr [ebp + 0x14] */
   8061     MEM32(eax + 0x4) = edi; /* 0x3608A076: mov dword ptr [eax + 4], edi */
   8062     MEM8(eax + 0x1C) = (uint8_t)(0); /* 0x3608A079: mov byte ptr [eax + 0x1c], 0 */
   8063     MEM8(eax + 0x1D) = (uint8_t)(0); /* 0x3608A07D: mov byte ptr [eax + 0x1d], 0 */
   8064     ecx = MEM32(esi + 0x8); /* 0x3608A081: mov ecx, dword ptr [esi + 8] */
   8065     MEM32(eax) = ecx; /* 0x3608A084: mov dword ptr [eax], ecx */
   8066     edx = MEM32(esi + 0x8); /* 0x3608A086: mov edx, dword ptr [esi + 8] */
   8067     MEM32(ebp + (-0x4)) = eax; /* 0x3608A089: mov dword ptr [ebp - 4], eax */
   8068     MEM32(eax + 0x8) = edx; /* 0x3608A08C: mov dword ptr [eax + 8], edx */
   8069     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   8070     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8071     eax = eax + 0xCu; /* 0x3608A08F: add eax, 0xc */
   8072     _flag_k = FK_ADD;
   8073     PUSH32(esp, ebx); /* 0x3608A092: push ebx */
   8074     PUSH32(esp, eax); /* 0x3608A093: push eax */
   8075     RECOMP_ICALL(0x360E3A00u); /* 0x3608A094: call 0x360e3a00 */ /* not lifted */
   8076     RECOMP_FLAGS_IN();
   8077     ecx = MEM32(esi + 0x10); /* 0x3608A099: mov ecx, dword ptr [esi + 0x10] */
   8078     eax = MEM32(esi + 0x4); /* 0x3608A09C: mov eax, dword ptr [esi + 4] */
   8079     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8080     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8081     esp = esp + 0xCu; /* 0x3608A09F: add esp, 0xc */
   8082     _flag_k = FK_ADD;
   8083     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   8084     ecx = ecx + 1; /* 0x3608A0A2: inc ecx */
   8085     _flag_k = FK_INC;
   8086     /* cmp edi, eax */ /* 0x3608A0A3: cmp edi, eax */
   8087     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8089     _flag_k = FK_CMP;
   8090     MEM32(esi + 0x10) = ecx; /* 0x3608A0A5: mov dword ptr [esi + 0x10], ecx */
   8091     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A0D4; /* 0x3608A0A8: je 0x3608a0d4 */
   8092 L_3608A0AA:
   8093     eax = MEM32(ebp + 0xC); /* 0x3608A0AA: mov eax, dword ptr [ebp + 0xc] */
   8094     /* cmp eax, MEM32(esi + 0x8) */ /* 0x3608A0AD: cmp eax, dword ptr [esi + 8] */
   8095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8097     _flag_k = FK_CMP;
   8098     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A0D4; /* 0x3608A0B0: jne 0x3608a0d4 */
   8099 L_3608A0B2:
   8100     ecx = edi + 0xC; /* 0x3608A0B2: lea ecx, [edi + 0xc] */
   8101     PUSH32(esp, ecx); /* 0x3608A0B5: push ecx */
   8102     ecx = ebx; /* 0x3608A0B6: mov ecx, ebx */
   8103     RECOMP_ICALL(0x36089E30u); /* 0x3608A0B8: call 0x36089e30 */ /* not lifted */
   8104     RECOMP_FLAGS_IN();
   8105     /* test LO8(eax), LO8(eax) */ /* 0x3608A0BD: test al, al */
   8106     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8107     _cf = 0;
   8108     _flag_k = FK_NARROW(FK_TEST, 24);
   8109     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A0D4; /* 0x3608A0BF: jne 0x3608a0d4 */
   8110 L_3608A0C1:
   8111     ecx = MEM32(ebp + (-0x4)); /* 0x3608A0C1: mov ecx, dword ptr [ebp - 4] */
   8112     MEM32(edi + 0x8) = ecx; /* 0x3608A0C4: mov dword ptr [edi + 8], ecx */
   8113     eax = MEM32(esi + 0x4); /* 0x3608A0C7: mov eax, dword ptr [esi + 4] */
   8114     /* cmp edi, MEM32(eax + 0x8) */ /* 0x3608A0CA: cmp edi, dword ptr [eax + 8] */
   8115     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8117     _flag_k = FK_CMP;
   8118     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A0F4; /* 0x3608A0CD: jne 0x3608a0f4 */
   8119 L_3608A0CF:
   8120     MEM32(eax + 0x8) = ecx; /* 0x3608A0CF: mov dword ptr [eax + 8], ecx */
   8121     goto L_3608A0F4; /* 0x3608A0D2: jmp 0x3608a0f4 */
   8122 L_3608A0D4:
   8123     ecx = MEM32(ebp + (-0x4)); /* 0x3608A0D4: mov ecx, dword ptr [ebp - 4] */
   8124     MEM32(edi) = ecx; /* 0x3608A0D7: mov dword ptr [edi], ecx */
   8125     eax = MEM32(esi + 0x4); /* 0x3608A0D9: mov eax, dword ptr [esi + 4] */
   8126     /* cmp edi, eax */ /* 0x3608A0DC: cmp edi, eax */
   8127     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   8128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8129     _flag_k = FK_CMP;
   8130     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A0EB; /* 0x3608A0DE: jne 0x3608a0eb */
   8131 L_3608A0E0:
   8132     MEM32(eax + 0x4) = ecx; /* 0x3608A0E0: mov dword ptr [eax + 4], ecx */
   8133     edx = MEM32(esi + 0x4); /* 0x3608A0E3: mov edx, dword ptr [esi + 4] */
   8134     MEM32(edx + 0x8) = ecx; /* 0x3608A0E6: mov dword ptr [edx + 8], ecx */
   8135     goto L_3608A0F4; /* 0x3608A0E9: jmp 0x3608a0f4 */
   8136 L_3608A0EB:
   8137     /* cmp edi, MEM32(eax) */ /* 0x3608A0EB: cmp edi, dword ptr [eax] */
   8138     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   8139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8140     _flag_k = FK_CMP;
   8141     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A0F4; /* 0x3608A0ED: jne 0x3608a0f4 */
   8142 L_3608A0EF:
   8143     ecx = MEM32(ebp + (-0x4)); /* 0x3608A0EF: mov ecx, dword ptr [ebp - 4] */
   8144     MEM32(eax) = ecx; /* 0x3608A0F2: mov dword ptr [eax], ecx */
   8145 L_3608A0F4:
   8146     edx = MEM32(esi + 0x4); /* 0x3608A0F4: mov edx, dword ptr [esi + 4] */
   8147     eax = MEM32(ebp + (-0x4)); /* 0x3608A0F7: mov eax, dword ptr [ebp - 4] */
   8148     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A0FA: cmp eax, dword ptr [edx + 4] */
   8149     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8151     _flag_k = FK_CMP;
   8152     SET_LO8(ebx, 1); /* 0x3608A0FD: mov bl, 1 */
   8153     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A0FF: je 0x3608a285 */
   8154 L_3608A105:
   8155     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   8156     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   8157     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   8158     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8159     _cf = 0;
   8160     _flag_k = FK_NARROW(FK_TEST, 24);
   8161     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   8162 L_3608A113:
   8163     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   8164     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   8165     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   8166     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8168     _flag_k = FK_CMP;
   8169     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   8170 L_3608A120:
   8171     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   8172     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   8173     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   8174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8175     _flag_k = FK_NARROW(FK_CMP, 24);
   8176     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   8177 L_3608A129:
   8178     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   8179     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   8180     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
   8181     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
   8182     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
   8183     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
   8184     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
   8185     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
   8186 L_3608A144:
   8187     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
   8188     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8189     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8190     _flag_k = FK_CMP;
   8191     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
   8192 L_3608A149:
   8193     eax = ecx; /* 0x3608A149: mov eax, ecx */
   8194     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
   8195     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
   8196     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
   8197     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
   8198     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
   8199     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8201     _flag_k = FK_CMP;
   8202     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
   8203 L_3608A15A:
   8204     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
   8205 L_3608A15D:
   8206     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
   8207     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
   8208     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
   8209     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
   8210     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8212     _flag_k = FK_CMP;
   8213     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
   8214 L_3608A16B:
   8215     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
   8216     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
   8217 L_3608A170:
   8218     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
   8219     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
   8220     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8221     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8222     _flag_k = FK_CMP;
   8223     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
   8224 L_3608A177:
   8225     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
   8226     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
   8227 L_3608A17B:
   8228     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
   8229 L_3608A17E:
   8230     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
   8231     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
   8232 L_3608A183:
   8233     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
   8234     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
   8235     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
   8236     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
   8237     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
   8238     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
   8239     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
   8240     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
   8241     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
   8242     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
   8243     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
   8244     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
   8245     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8247     _flag_k = FK_CMP;
   8248     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
   8249 L_3608A1A8:
   8250     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
   8251 L_3608A1AB:
   8252     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
   8253     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
   8254     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
   8255     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
   8256     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8258     _flag_k = FK_CMP;
   8259     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
   8260 L_3608A1B9:
   8261     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
   8262     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
   8263     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
   8264 L_3608A1C4:
   8265     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
   8266     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
   8267     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8269     _flag_k = FK_CMP;
   8270     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
   8271 L_3608A1CC:
   8272     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
   8273     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
   8274     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
   8275 L_3608A1D7:
   8276     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
   8277     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
   8278     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
   8279 L_3608A1E1:
   8280     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
   8281     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   8282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8283     _flag_k = FK_NARROW(FK_CMP, 24);
   8284     RECOMP_BACKEDGE();
   8285     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
   8286 L_3608A1EB:
   8287     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
   8288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8290     _flag_k = FK_CMP;
   8291     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
   8292 L_3608A1EF:
   8293     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
   8294     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
   8295     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
   8296     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
   8297     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
   8298     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
   8299     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8301     _flag_k = FK_CMP;
   8302     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
   8303 L_3608A200:
   8304     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
   8305 L_3608A203:
   8306     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
   8307     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
   8308     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
   8309     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
   8310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8311     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8312     _flag_k = FK_CMP;
   8313     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
   8314 L_3608A211:
   8315     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
   8316     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
   8317 L_3608A216:
   8318     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
   8319     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
   8320     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8322     _flag_k = FK_CMP;
   8323     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
   8324 L_3608A21E:
   8325     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
   8326     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
   8327 L_3608A223:
   8328     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
   8329 L_3608A225:
   8330     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
   8331     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
   8332 L_3608A22B:
   8333     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
   8334     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
   8335     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
   8336     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
   8337     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
   8338     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
   8339     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
   8340     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
   8341     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
   8342     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
   8343     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
   8344     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
   8345     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8347     _flag_k = FK_CMP;
   8348     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
   8349 L_3608A250:
   8350     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
   8351 L_3608A253:
   8352     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
   8353     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
   8354     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
   8355     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
   8356     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8358     _flag_k = FK_CMP;
   8359     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
   8360 L_3608A261:
   8361     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
   8362     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
   8363 L_3608A266:
   8364     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
   8365     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
   8366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8368     _flag_k = FK_CMP;
   8369     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
   8370 L_3608A26D:
   8371     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
   8372     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
   8373 L_3608A271:
   8374     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
   8375 L_3608A274:
   8376     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
   8377 L_3608A276:
   8378     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
   8379 L_3608A279:
   8380     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
   8381     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
   8382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8384     _flag_k = FK_CMP;
   8385     RECOMP_BACKEDGE();
   8386     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
   8387 L_3608A285:
   8388     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
   8389     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
   8390     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
   8391     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
   8392     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
   8393     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
   8394     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
   8395     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
   8396     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
   8397     esp = ebp; /* 0x3608A299: mov esp, ebp */
   8398     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
   8399     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
   8400     RECOMP_REGS_OUT();
   8401 }
   8402 
   8403 void sub_3608A105(void) {
   8404     int _fpu_cmp = 0;
   8405     uint32_t _cf = 0;
   8406     int _df = 1;
   8407     uint32_t _flag_k = FK_NONE;
   8408     uint32_t _flag_a = 0, _flag_b = 0;
   8409     uint32_t _itail_tgt = 0;
   8410     RECOMP_REGS_LOCALS
   8411     RECOMP_ENTER(0x3608A105u);
   8412 
   8413 L_3608A105:
   8414     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   8415     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   8416     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   8417     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8418     _cf = 0;
   8419     _flag_k = FK_NARROW(FK_TEST, 24);
   8420     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   8421 L_3608A113:
   8422     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   8423     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   8424     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   8425     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8427     _flag_k = FK_CMP;
   8428     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   8429 L_3608A120:
   8430     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   8431     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   8432     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   8433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8434     _flag_k = FK_NARROW(FK_CMP, 24);
   8435     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   8436 L_3608A129:
   8437     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   8438     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   8439     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
   8440     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
   8441     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
   8442     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
   8443     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
   8444     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
   8445 L_3608A144:
   8446     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
   8447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8449     _flag_k = FK_CMP;
   8450     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
   8451 L_3608A149:
   8452     eax = ecx; /* 0x3608A149: mov eax, ecx */
   8453     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
   8454     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
   8455     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
   8456     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
   8457     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
   8458     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8459     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8460     _flag_k = FK_CMP;
   8461     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
   8462 L_3608A15A:
   8463     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
   8464 L_3608A15D:
   8465     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
   8466     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
   8467     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
   8468     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
   8469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8471     _flag_k = FK_CMP;
   8472     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
   8473 L_3608A16B:
   8474     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
   8475     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
   8476 L_3608A170:
   8477     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
   8478     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
   8479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8481     _flag_k = FK_CMP;
   8482     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
   8483 L_3608A177:
   8484     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
   8485     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
   8486 L_3608A17B:
   8487     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
   8488 L_3608A17E:
   8489     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
   8490     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
   8491 L_3608A183:
   8492     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
   8493     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
   8494     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
   8495     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
   8496     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
   8497     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
   8498     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
   8499     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
   8500     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
   8501     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
   8502     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
   8503     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
   8504     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8506     _flag_k = FK_CMP;
   8507     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
   8508 L_3608A1A8:
   8509     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
   8510 L_3608A1AB:
   8511     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
   8512     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
   8513     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
   8514     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
   8515     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8517     _flag_k = FK_CMP;
   8518     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
   8519 L_3608A1B9:
   8520     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
   8521     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
   8522     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
   8523 L_3608A1C4:
   8524     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
   8525     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
   8526     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8528     _flag_k = FK_CMP;
   8529     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
   8530 L_3608A1CC:
   8531     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
   8532     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
   8533     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
   8534 L_3608A1D7:
   8535     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
   8536     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
   8537     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
   8538 L_3608A1E1:
   8539     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
   8540     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   8541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8542     _flag_k = FK_NARROW(FK_CMP, 24);
   8543     RECOMP_BACKEDGE();
   8544     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
   8545 L_3608A1EB:
   8546     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
   8547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8549     _flag_k = FK_CMP;
   8550     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
   8551 L_3608A1EF:
   8552     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
   8553     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
   8554     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
   8555     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
   8556     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
   8557     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
   8558     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8560     _flag_k = FK_CMP;
   8561     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
   8562 L_3608A200:
   8563     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
   8564 L_3608A203:
   8565     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
   8566     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
   8567     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
   8568     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
   8569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8571     _flag_k = FK_CMP;
   8572     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
   8573 L_3608A211:
   8574     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
   8575     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
   8576 L_3608A216:
   8577     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
   8578     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
   8579     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8581     _flag_k = FK_CMP;
   8582     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
   8583 L_3608A21E:
   8584     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
   8585     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
   8586 L_3608A223:
   8587     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
   8588 L_3608A225:
   8589     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
   8590     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
   8591 L_3608A22B:
   8592     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
   8593     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
   8594     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
   8595     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
   8596     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
   8597     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
   8598     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
   8599     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
   8600     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
   8601     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
   8602     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
   8603     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
   8604     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8606     _flag_k = FK_CMP;
   8607     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
   8608 L_3608A250:
   8609     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
   8610 L_3608A253:
   8611     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
   8612     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
   8613     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
   8614     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
   8615     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8617     _flag_k = FK_CMP;
   8618     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
   8619 L_3608A261:
   8620     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
   8621     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
   8622 L_3608A266:
   8623     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
   8624     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
   8625     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8627     _flag_k = FK_CMP;
   8628     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
   8629 L_3608A26D:
   8630     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
   8631     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
   8632 L_3608A271:
   8633     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
   8634 L_3608A274:
   8635     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
   8636 L_3608A276:
   8637     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
   8638 L_3608A279:
   8639     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
   8640     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
   8641     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8643     _flag_k = FK_CMP;
   8644     RECOMP_BACKEDGE();
   8645     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
   8646 L_3608A285:
   8647     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
   8648     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
   8649     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
   8650     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
   8651     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
   8652     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
   8653     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
   8654     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
   8655     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
   8656     esp = ebp; /* 0x3608A299: mov esp, ebp */
   8657     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
   8658     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
   8659     RECOMP_REGS_OUT();
   8660 }
   8661 
   8662 void sub_3608A129(void) {
   8663     int _fpu_cmp = 0;
   8664     uint32_t _cf = 0;
   8665     int _df = 1;
   8666     uint32_t _flag_k = FK_NONE;
   8667     uint32_t _flag_a = 0, _flag_b = 0;
   8668     uint32_t _itail_tgt = 0;
   8669     RECOMP_REGS_LOCALS
   8670     RECOMP_ENTER(0x3608A129u);
   8671 
   8672     goto L_3608A129;
   8673 L_3608A105:
   8674     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   8675     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   8676     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   8677     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8678     _cf = 0;
   8679     _flag_k = FK_NARROW(FK_TEST, 24);
   8680     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   8681 L_3608A113:
   8682     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   8683     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   8684     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   8685     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8687     _flag_k = FK_CMP;
   8688     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   8689 L_3608A120:
   8690     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   8691     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   8692     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   8693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8694     _flag_k = FK_NARROW(FK_CMP, 24);
   8695     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   8696 L_3608A129:
   8697     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   8698     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   8699     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
   8700     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
   8701     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
   8702     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
   8703     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
   8704     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
   8705 L_3608A144:
   8706     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
   8707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8708     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8709     _flag_k = FK_CMP;
   8710     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
   8711 L_3608A149:
   8712     eax = ecx; /* 0x3608A149: mov eax, ecx */
   8713     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
   8714     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
   8715     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
   8716     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
   8717     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
   8718     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8720     _flag_k = FK_CMP;
   8721     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
   8722 L_3608A15A:
   8723     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
   8724 L_3608A15D:
   8725     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
   8726     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
   8727     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
   8728     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
   8729     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8731     _flag_k = FK_CMP;
   8732     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
   8733 L_3608A16B:
   8734     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
   8735     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
   8736 L_3608A170:
   8737     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
   8738     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
   8739     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   8740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8741     _flag_k = FK_CMP;
   8742     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
   8743 L_3608A177:
   8744     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
   8745     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
   8746 L_3608A17B:
   8747     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
   8748 L_3608A17E:
   8749     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
   8750     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
   8751 L_3608A183:
   8752     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
   8753     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
   8754     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
   8755     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
   8756     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
   8757     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
   8758     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
   8759     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
   8760     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
   8761     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
   8762     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
   8763     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
   8764     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8765     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8766     _flag_k = FK_CMP;
   8767     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
   8768 L_3608A1A8:
   8769     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
   8770 L_3608A1AB:
   8771     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
   8772     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
   8773     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
   8774     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
   8775     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8777     _flag_k = FK_CMP;
   8778     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
   8779 L_3608A1B9:
   8780     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
   8781     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
   8782     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
   8783 L_3608A1C4:
   8784     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
   8785     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
   8786     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   8787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8788     _flag_k = FK_CMP;
   8789     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
   8790 L_3608A1CC:
   8791     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
   8792     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
   8793     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
   8794 L_3608A1D7:
   8795     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
   8796     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
   8797     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
   8798 L_3608A1E1:
   8799     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
   8800     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   8801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8802     _flag_k = FK_NARROW(FK_CMP, 24);
   8803     RECOMP_BACKEDGE();
   8804     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
   8805 L_3608A1EB:
   8806     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
   8807     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   8808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8809     _flag_k = FK_CMP;
   8810     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
   8811 L_3608A1EF:
   8812     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
   8813     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
   8814     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
   8815     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
   8816     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
   8817     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
   8818     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8820     _flag_k = FK_CMP;
   8821     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
   8822 L_3608A200:
   8823     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
   8824 L_3608A203:
   8825     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
   8826     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
   8827     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
   8828     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
   8829     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8831     _flag_k = FK_CMP;
   8832     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
   8833 L_3608A211:
   8834     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
   8835     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
   8836 L_3608A216:
   8837     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
   8838     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
   8839     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   8840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8841     _flag_k = FK_CMP;
   8842     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
   8843 L_3608A21E:
   8844     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
   8845     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
   8846 L_3608A223:
   8847     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
   8848 L_3608A225:
   8849     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
   8850     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
   8851 L_3608A22B:
   8852     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
   8853     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
   8854     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
   8855     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
   8856     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
   8857     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
   8858     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
   8859     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
   8860     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
   8861     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
   8862     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
   8863     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
   8864     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8866     _flag_k = FK_CMP;
   8867     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
   8868 L_3608A250:
   8869     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
   8870 L_3608A253:
   8871     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
   8872     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
   8873     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
   8874     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
   8875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   8876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8877     _flag_k = FK_CMP;
   8878     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
   8879 L_3608A261:
   8880     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
   8881     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
   8882 L_3608A266:
   8883     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
   8884     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
   8885     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   8886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8887     _flag_k = FK_CMP;
   8888     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
   8889 L_3608A26D:
   8890     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
   8891     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
   8892 L_3608A271:
   8893     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
   8894 L_3608A274:
   8895     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
   8896 L_3608A276:
   8897     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
   8898 L_3608A279:
   8899     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
   8900     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
   8901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   8902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8903     _flag_k = FK_CMP;
   8904     RECOMP_BACKEDGE();
   8905     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
   8906 L_3608A285:
   8907     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
   8908     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
   8909     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
   8910     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
   8911     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
   8912     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
   8913     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
   8914     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
   8915     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
   8916     esp = ebp; /* 0x3608A299: mov esp, ebp */
   8917     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
   8918     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
   8919     RECOMP_REGS_OUT();
   8920 }
   8921 
   8922 void sub_3608A17E(void) {
   8923     int _fpu_cmp = 0;
   8924     uint32_t _cf = 0;
   8925     int _df = 1;
   8926     uint32_t _flag_k = FK_NONE;
   8927     uint32_t _flag_a = 0, _flag_b = 0;
   8928     uint32_t _itail_tgt = 0;
   8929     RECOMP_REGS_LOCALS
   8930     RECOMP_ENTER(0x3608A17Eu);
   8931 
   8932     goto L_3608A17E;
   8933 L_3608A105:
   8934     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   8935     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   8936     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   8937     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8938     _cf = 0;
   8939     _flag_k = FK_NARROW(FK_TEST, 24);
   8940     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   8941 L_3608A113:
   8942     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   8943     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   8944     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   8945     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8947     _flag_k = FK_CMP;
   8948     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   8949 L_3608A120:
   8950     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   8951     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   8952     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   8953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8954     _flag_k = FK_NARROW(FK_CMP, 24);
   8955     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   8956 L_3608A129:
   8957     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   8958     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   8959     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
   8960     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
   8961     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
   8962     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
   8963     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
   8964     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
   8965 L_3608A144:
   8966     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
   8967     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   8968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8969     _flag_k = FK_CMP;
   8970     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
   8971 L_3608A149:
   8972     eax = ecx; /* 0x3608A149: mov eax, ecx */
   8973     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
   8974     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
   8975     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
   8976     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
   8977     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
   8978     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   8979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8980     _flag_k = FK_CMP;
   8981     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
   8982 L_3608A15A:
   8983     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
   8984 L_3608A15D:
   8985     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
   8986     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
   8987     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
   8988     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
   8989     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8991     _flag_k = FK_CMP;
   8992     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
   8993 L_3608A16B:
   8994     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
   8995     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
   8996 L_3608A170:
   8997     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
   8998     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
   8999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9001     _flag_k = FK_CMP;
   9002     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
   9003 L_3608A177:
   9004     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
   9005     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
   9006 L_3608A17B:
   9007     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
   9008 L_3608A17E:
   9009     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
   9010     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
   9011 L_3608A183:
   9012     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
   9013     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
   9014     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
   9015     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
   9016     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
   9017     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
   9018     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
   9019     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
   9020     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
   9021     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
   9022     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
   9023     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
   9024     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9026     _flag_k = FK_CMP;
   9027     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
   9028 L_3608A1A8:
   9029     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
   9030 L_3608A1AB:
   9031     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
   9032     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
   9033     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
   9034     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
   9035     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9037     _flag_k = FK_CMP;
   9038     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
   9039 L_3608A1B9:
   9040     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
   9041     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
   9042     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
   9043 L_3608A1C4:
   9044     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
   9045     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
   9046     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9048     _flag_k = FK_CMP;
   9049     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
   9050 L_3608A1CC:
   9051     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
   9052     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
   9053     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
   9054 L_3608A1D7:
   9055     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
   9056     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
   9057     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
   9058 L_3608A1E1:
   9059     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
   9060     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9062     _flag_k = FK_NARROW(FK_CMP, 24);
   9063     RECOMP_BACKEDGE();
   9064     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
   9065 L_3608A1EB:
   9066     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
   9067     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9069     _flag_k = FK_CMP;
   9070     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
   9071 L_3608A1EF:
   9072     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
   9073     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
   9074     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
   9075     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
   9076     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
   9077     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
   9078     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9080     _flag_k = FK_CMP;
   9081     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
   9082 L_3608A200:
   9083     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
   9084 L_3608A203:
   9085     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
   9086     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
   9087     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
   9088     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
   9089     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9091     _flag_k = FK_CMP;
   9092     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
   9093 L_3608A211:
   9094     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
   9095     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
   9096 L_3608A216:
   9097     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
   9098     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
   9099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9101     _flag_k = FK_CMP;
   9102     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
   9103 L_3608A21E:
   9104     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
   9105     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
   9106 L_3608A223:
   9107     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
   9108 L_3608A225:
   9109     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
   9110     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
   9111 L_3608A22B:
   9112     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
   9113     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
   9114     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
   9115     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
   9116     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
   9117     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
   9118     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
   9119     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
   9120     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
   9121     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
   9122     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
   9123     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
   9124     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9126     _flag_k = FK_CMP;
   9127     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
   9128 L_3608A250:
   9129     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
   9130 L_3608A253:
   9131     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
   9132     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
   9133     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
   9134     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
   9135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9137     _flag_k = FK_CMP;
   9138     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
   9139 L_3608A261:
   9140     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
   9141     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
   9142 L_3608A266:
   9143     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
   9144     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
   9145     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9147     _flag_k = FK_CMP;
   9148     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
   9149 L_3608A26D:
   9150     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
   9151     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
   9152 L_3608A271:
   9153     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
   9154 L_3608A274:
   9155     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
   9156 L_3608A276:
   9157     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
   9158 L_3608A279:
   9159     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
   9160     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
   9161     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9163     _flag_k = FK_CMP;
   9164     RECOMP_BACKEDGE();
   9165     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
   9166 L_3608A285:
   9167     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
   9168     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
   9169     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
   9170     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
   9171     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
   9172     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
   9173     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
   9174     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
   9175     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
   9176     esp = ebp; /* 0x3608A299: mov esp, ebp */
   9177     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
   9178     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
   9179     RECOMP_REGS_OUT();
   9180 }
   9181 
   9182 void sub_3608A183(void) {
   9183     int _fpu_cmp = 0;
   9184     uint32_t _cf = 0;
   9185     int _df = 1;
   9186     uint32_t _flag_k = FK_NONE;
   9187     uint32_t _flag_a = 0, _flag_b = 0;
   9188     uint32_t _itail_tgt = 0;
   9189     RECOMP_REGS_LOCALS
   9190     RECOMP_ENTER(0x3608A183u);
   9191 
   9192     goto L_3608A183;
   9193 L_3608A105:
   9194     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   9195     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   9196     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   9197     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9198     _cf = 0;
   9199     _flag_k = FK_NARROW(FK_TEST, 24);
   9200     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   9201 L_3608A113:
   9202     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   9203     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   9204     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   9205     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9207     _flag_k = FK_CMP;
   9208     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   9209 L_3608A120:
   9210     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   9211     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   9212     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9213     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9214     _flag_k = FK_NARROW(FK_CMP, 24);
   9215     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   9216 L_3608A129:
   9217     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   9218     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   9219     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
   9220     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
   9221     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
   9222     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
   9223     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
   9224     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
   9225 L_3608A144:
   9226     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
   9227     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9229     _flag_k = FK_CMP;
   9230     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
   9231 L_3608A149:
   9232     eax = ecx; /* 0x3608A149: mov eax, ecx */
   9233     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
   9234     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
   9235     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
   9236     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
   9237     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
   9238     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9240     _flag_k = FK_CMP;
   9241     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
   9242 L_3608A15A:
   9243     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
   9244 L_3608A15D:
   9245     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
   9246     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
   9247     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
   9248     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
   9249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9251     _flag_k = FK_CMP;
   9252     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
   9253 L_3608A16B:
   9254     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
   9255     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
   9256 L_3608A170:
   9257     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
   9258     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
   9259     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9261     _flag_k = FK_CMP;
   9262     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
   9263 L_3608A177:
   9264     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
   9265     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
   9266 L_3608A17B:
   9267     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
   9268 L_3608A17E:
   9269     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
   9270     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
   9271 L_3608A183:
   9272     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
   9273     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
   9274     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
   9275     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
   9276     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
   9277     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
   9278     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
   9279     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
   9280     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
   9281     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
   9282     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
   9283     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
   9284     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9286     _flag_k = FK_CMP;
   9287     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
   9288 L_3608A1A8:
   9289     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
   9290 L_3608A1AB:
   9291     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
   9292     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
   9293     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
   9294     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
   9295     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9296     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9297     _flag_k = FK_CMP;
   9298     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
   9299 L_3608A1B9:
   9300     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
   9301     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
   9302     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
   9303 L_3608A1C4:
   9304     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
   9305     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
   9306     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9308     _flag_k = FK_CMP;
   9309     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
   9310 L_3608A1CC:
   9311     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
   9312     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
   9313     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
   9314 L_3608A1D7:
   9315     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
   9316     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
   9317     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
   9318 L_3608A1E1:
   9319     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
   9320     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9322     _flag_k = FK_NARROW(FK_CMP, 24);
   9323     RECOMP_BACKEDGE();
   9324     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
   9325 L_3608A1EB:
   9326     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
   9327     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9329     _flag_k = FK_CMP;
   9330     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
   9331 L_3608A1EF:
   9332     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
   9333     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
   9334     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
   9335     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
   9336     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
   9337     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
   9338     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9340     _flag_k = FK_CMP;
   9341     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
   9342 L_3608A200:
   9343     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
   9344 L_3608A203:
   9345     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
   9346     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
   9347     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
   9348     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
   9349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9351     _flag_k = FK_CMP;
   9352     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
   9353 L_3608A211:
   9354     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
   9355     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
   9356 L_3608A216:
   9357     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
   9358     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
   9359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9361     _flag_k = FK_CMP;
   9362     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
   9363 L_3608A21E:
   9364     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
   9365     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
   9366 L_3608A223:
   9367     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
   9368 L_3608A225:
   9369     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
   9370     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
   9371 L_3608A22B:
   9372     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
   9373     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
   9374     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
   9375     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
   9376     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
   9377     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
   9378     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
   9379     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
   9380     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
   9381     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
   9382     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
   9383     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
   9384     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9386     _flag_k = FK_CMP;
   9387     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
   9388 L_3608A250:
   9389     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
   9390 L_3608A253:
   9391     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
   9392     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
   9393     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
   9394     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
   9395     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9397     _flag_k = FK_CMP;
   9398     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
   9399 L_3608A261:
   9400     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
   9401     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
   9402 L_3608A266:
   9403     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
   9404     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
   9405     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9407     _flag_k = FK_CMP;
   9408     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
   9409 L_3608A26D:
   9410     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
   9411     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
   9412 L_3608A271:
   9413     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
   9414 L_3608A274:
   9415     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
   9416 L_3608A276:
   9417     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
   9418 L_3608A279:
   9419     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
   9420     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
   9421     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9423     _flag_k = FK_CMP;
   9424     RECOMP_BACKEDGE();
   9425     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
   9426 L_3608A285:
   9427     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
   9428     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
   9429     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
   9430     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
   9431     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
   9432     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
   9433     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
   9434     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
   9435     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
   9436     esp = ebp; /* 0x3608A299: mov esp, ebp */
   9437     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
   9438     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
   9439     RECOMP_REGS_OUT();
   9440 }
   9441 
   9442 void sub_3608A1E1(void) {
   9443     int _fpu_cmp = 0;
   9444     uint32_t _cf = 0;
   9445     int _df = 1;
   9446     uint32_t _flag_k = FK_NONE;
   9447     uint32_t _flag_a = 0, _flag_b = 0;
   9448     uint32_t _itail_tgt = 0;
   9449     RECOMP_REGS_LOCALS
   9450     RECOMP_ENTER(0x3608A1E1u);
   9451 
   9452     goto L_3608A1E1;
   9453 L_3608A105:
   9454     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   9455     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   9456     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   9457     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9458     _cf = 0;
   9459     _flag_k = FK_NARROW(FK_TEST, 24);
   9460     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   9461 L_3608A113:
   9462     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   9463     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   9464     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   9465     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9467     _flag_k = FK_CMP;
   9468     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   9469 L_3608A120:
   9470     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   9471     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   9472     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9473     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9474     _flag_k = FK_NARROW(FK_CMP, 24);
   9475     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   9476 L_3608A129:
   9477     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   9478     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   9479     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
   9480     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
   9481     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
   9482     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
   9483     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
   9484     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
   9485 L_3608A144:
   9486     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
   9487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9489     _flag_k = FK_CMP;
   9490     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
   9491 L_3608A149:
   9492     eax = ecx; /* 0x3608A149: mov eax, ecx */
   9493     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
   9494     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
   9495     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
   9496     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
   9497     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
   9498     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9500     _flag_k = FK_CMP;
   9501     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
   9502 L_3608A15A:
   9503     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
   9504 L_3608A15D:
   9505     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
   9506     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
   9507     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
   9508     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
   9509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9511     _flag_k = FK_CMP;
   9512     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
   9513 L_3608A16B:
   9514     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
   9515     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
   9516 L_3608A170:
   9517     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
   9518     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
   9519     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9521     _flag_k = FK_CMP;
   9522     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
   9523 L_3608A177:
   9524     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
   9525     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
   9526 L_3608A17B:
   9527     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
   9528 L_3608A17E:
   9529     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
   9530     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
   9531 L_3608A183:
   9532     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
   9533     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
   9534     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
   9535     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
   9536     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
   9537     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
   9538     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
   9539     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
   9540     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
   9541     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
   9542     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
   9543     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
   9544     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9546     _flag_k = FK_CMP;
   9547     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
   9548 L_3608A1A8:
   9549     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
   9550 L_3608A1AB:
   9551     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
   9552     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
   9553     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
   9554     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
   9555     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9557     _flag_k = FK_CMP;
   9558     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
   9559 L_3608A1B9:
   9560     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
   9561     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
   9562     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
   9563 L_3608A1C4:
   9564     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
   9565     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
   9566     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9567     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9568     _flag_k = FK_CMP;
   9569     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
   9570 L_3608A1CC:
   9571     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
   9572     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
   9573     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
   9574 L_3608A1D7:
   9575     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
   9576     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
   9577     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
   9578 L_3608A1E1:
   9579     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
   9580     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9581     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9582     _flag_k = FK_NARROW(FK_CMP, 24);
   9583     RECOMP_BACKEDGE();
   9584     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
   9585 L_3608A1EB:
   9586     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
   9587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9589     _flag_k = FK_CMP;
   9590     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
   9591 L_3608A1EF:
   9592     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
   9593     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
   9594     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
   9595     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
   9596     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
   9597     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
   9598     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9600     _flag_k = FK_CMP;
   9601     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
   9602 L_3608A200:
   9603     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
   9604 L_3608A203:
   9605     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
   9606     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
   9607     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
   9608     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
   9609     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9611     _flag_k = FK_CMP;
   9612     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
   9613 L_3608A211:
   9614     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
   9615     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
   9616 L_3608A216:
   9617     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
   9618     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
   9619     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9621     _flag_k = FK_CMP;
   9622     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
   9623 L_3608A21E:
   9624     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
   9625     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
   9626 L_3608A223:
   9627     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
   9628 L_3608A225:
   9629     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
   9630     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
   9631 L_3608A22B:
   9632     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
   9633     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
   9634     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
   9635     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
   9636     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
   9637     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
   9638     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
   9639     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
   9640     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
   9641     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
   9642     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
   9643     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
   9644     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9646     _flag_k = FK_CMP;
   9647     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
   9648 L_3608A250:
   9649     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
   9650 L_3608A253:
   9651     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
   9652     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
   9653     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
   9654     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
   9655     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9657     _flag_k = FK_CMP;
   9658     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
   9659 L_3608A261:
   9660     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
   9661     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
   9662 L_3608A266:
   9663     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
   9664     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
   9665     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9667     _flag_k = FK_CMP;
   9668     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
   9669 L_3608A26D:
   9670     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
   9671     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
   9672 L_3608A271:
   9673     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
   9674 L_3608A274:
   9675     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
   9676 L_3608A276:
   9677     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
   9678 L_3608A279:
   9679     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
   9680     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
   9681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9683     _flag_k = FK_CMP;
   9684     RECOMP_BACKEDGE();
   9685     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
   9686 L_3608A285:
   9687     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
   9688     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
   9689     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
   9690     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
   9691     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
   9692     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
   9693     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
   9694     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
   9695     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
   9696     esp = ebp; /* 0x3608A299: mov esp, ebp */
   9697     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
   9698     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
   9699     RECOMP_REGS_OUT();
   9700 }
   9701 
   9702 void sub_3608A225(void) {
   9703     int _fpu_cmp = 0;
   9704     uint32_t _cf = 0;
   9705     int _df = 1;
   9706     uint32_t _flag_k = FK_NONE;
   9707     uint32_t _flag_a = 0, _flag_b = 0;
   9708     uint32_t _itail_tgt = 0;
   9709     RECOMP_REGS_LOCALS
   9710     RECOMP_ENTER(0x3608A225u);
   9711 
   9712     goto L_3608A225;
   9713 L_3608A105:
   9714     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   9715     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   9716     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   9717     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9718     _cf = 0;
   9719     _flag_k = FK_NARROW(FK_TEST, 24);
   9720     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   9721 L_3608A113:
   9722     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   9723     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   9724     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   9725     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9727     _flag_k = FK_CMP;
   9728     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   9729 L_3608A120:
   9730     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   9731     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   9732     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9734     _flag_k = FK_NARROW(FK_CMP, 24);
   9735     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   9736 L_3608A129:
   9737     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   9738     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   9739     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
   9740     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
   9741     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
   9742     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
   9743     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
   9744     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
   9745 L_3608A144:
   9746     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
   9747     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   9748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9749     _flag_k = FK_CMP;
   9750     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
   9751 L_3608A149:
   9752     eax = ecx; /* 0x3608A149: mov eax, ecx */
   9753     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
   9754     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
   9755     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
   9756     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
   9757     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
   9758     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9760     _flag_k = FK_CMP;
   9761     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
   9762 L_3608A15A:
   9763     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
   9764 L_3608A15D:
   9765     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
   9766     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
   9767     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
   9768     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
   9769     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9771     _flag_k = FK_CMP;
   9772     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
   9773 L_3608A16B:
   9774     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
   9775     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
   9776 L_3608A170:
   9777     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
   9778     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
   9779     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   9780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9781     _flag_k = FK_CMP;
   9782     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
   9783 L_3608A177:
   9784     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
   9785     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
   9786 L_3608A17B:
   9787     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
   9788 L_3608A17E:
   9789     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
   9790     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
   9791 L_3608A183:
   9792     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
   9793     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
   9794     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
   9795     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
   9796     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
   9797     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
   9798     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
   9799     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
   9800     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
   9801     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
   9802     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
   9803     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
   9804     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9806     _flag_k = FK_CMP;
   9807     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
   9808 L_3608A1A8:
   9809     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
   9810 L_3608A1AB:
   9811     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
   9812     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
   9813     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
   9814     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
   9815     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9816     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9817     _flag_k = FK_CMP;
   9818     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
   9819 L_3608A1B9:
   9820     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
   9821     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
   9822     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
   9823 L_3608A1C4:
   9824     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
   9825     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
   9826     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   9827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9828     _flag_k = FK_CMP;
   9829     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
   9830 L_3608A1CC:
   9831     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
   9832     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
   9833     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
   9834 L_3608A1D7:
   9835     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
   9836     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
   9837     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
   9838 L_3608A1E1:
   9839     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
   9840     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9842     _flag_k = FK_NARROW(FK_CMP, 24);
   9843     RECOMP_BACKEDGE();
   9844     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
   9845 L_3608A1EB:
   9846     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
   9847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   9848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9849     _flag_k = FK_CMP;
   9850     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
   9851 L_3608A1EF:
   9852     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
   9853     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
   9854     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
   9855     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
   9856     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
   9857     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
   9858     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9860     _flag_k = FK_CMP;
   9861     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
   9862 L_3608A200:
   9863     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
   9864 L_3608A203:
   9865     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
   9866     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
   9867     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
   9868     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
   9869     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   9870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9871     _flag_k = FK_CMP;
   9872     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
   9873 L_3608A211:
   9874     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
   9875     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
   9876 L_3608A216:
   9877     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
   9878     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
   9879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   9880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9881     _flag_k = FK_CMP;
   9882     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
   9883 L_3608A21E:
   9884     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
   9885     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
   9886 L_3608A223:
   9887     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
   9888 L_3608A225:
   9889     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
   9890     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
   9891 L_3608A22B:
   9892     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
   9893     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
   9894     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
   9895     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
   9896     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
   9897     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
   9898     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
   9899     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
   9900     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
   9901     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
   9902     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
   9903     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
   9904     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   9905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9906     _flag_k = FK_CMP;
   9907     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
   9908 L_3608A250:
   9909     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
   9910 L_3608A253:
   9911     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
   9912     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
   9913     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
   9914     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
   9915     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   9916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9917     _flag_k = FK_CMP;
   9918     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
   9919 L_3608A261:
   9920     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
   9921     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
   9922 L_3608A266:
   9923     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
   9924     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
   9925     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9927     _flag_k = FK_CMP;
   9928     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
   9929 L_3608A26D:
   9930     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
   9931     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
   9932 L_3608A271:
   9933     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
   9934 L_3608A274:
   9935     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
   9936 L_3608A276:
   9937     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
   9938 L_3608A279:
   9939     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
   9940     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
   9941     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9943     _flag_k = FK_CMP;
   9944     RECOMP_BACKEDGE();
   9945     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
   9946 L_3608A285:
   9947     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
   9948     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
   9949     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
   9950     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
   9951     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
   9952     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
   9953     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
   9954     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
   9955     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
   9956     esp = ebp; /* 0x3608A299: mov esp, ebp */
   9957     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
   9958     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
   9959     RECOMP_REGS_OUT();
   9960 }
   9961 
   9962 void sub_3608A22B(void) {
   9963     int _fpu_cmp = 0;
   9964     uint32_t _cf = 0;
   9965     int _df = 1;
   9966     uint32_t _flag_k = FK_NONE;
   9967     uint32_t _flag_a = 0, _flag_b = 0;
   9968     uint32_t _itail_tgt = 0;
   9969     RECOMP_REGS_LOCALS
   9970     RECOMP_ENTER(0x3608A22Bu);
   9971 
   9972     goto L_3608A22B;
   9973 L_3608A105:
   9974     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
   9975     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
   9976     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
   9977     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   9978     _cf = 0;
   9979     _flag_k = FK_NARROW(FK_TEST, 24);
   9980     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
   9981 L_3608A113:
   9982     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
   9983     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
   9984     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
   9985     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   9986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9987     _flag_k = FK_CMP;
   9988     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
   9989 L_3608A120:
   9990     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
   9991     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
   9992     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
   9993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9994     _flag_k = FK_NARROW(FK_CMP, 24);
   9995     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
   9996 L_3608A129:
   9997     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
   9998     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
   9999     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
  10000     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
  10001     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
  10002     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
  10003     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
  10004     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
  10005 L_3608A144:
  10006     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
  10007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  10008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10009     _flag_k = FK_CMP;
  10010     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
  10011 L_3608A149:
  10012     eax = ecx; /* 0x3608A149: mov eax, ecx */
  10013     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
  10014     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
  10015     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
  10016     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
  10017     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
  10018     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10020     _flag_k = FK_CMP;
  10021     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
  10022 L_3608A15A:
  10023     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
  10024 L_3608A15D:
  10025     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
  10026     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
  10027     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
  10028     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
  10029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10031     _flag_k = FK_CMP;
  10032     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
  10033 L_3608A16B:
  10034     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
  10035     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
  10036 L_3608A170:
  10037     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
  10038     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
  10039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  10040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10041     _flag_k = FK_CMP;
  10042     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
  10043 L_3608A177:
  10044     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
  10045     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
  10046 L_3608A17B:
  10047     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
  10048 L_3608A17E:
  10049     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
  10050     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
  10051 L_3608A183:
  10052     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
  10053     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
  10054     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
  10055     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
  10056     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
  10057     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
  10058     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
  10059     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
  10060     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
  10061     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
  10062     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
  10063     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
  10064     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10066     _flag_k = FK_CMP;
  10067     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
  10068 L_3608A1A8:
  10069     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
  10070 L_3608A1AB:
  10071     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
  10072     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
  10073     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
  10074     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
  10075     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10077     _flag_k = FK_CMP;
  10078     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
  10079 L_3608A1B9:
  10080     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
  10081     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
  10082     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
  10083 L_3608A1C4:
  10084     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
  10085     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
  10086     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10088     _flag_k = FK_CMP;
  10089     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
  10090 L_3608A1CC:
  10091     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
  10092     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
  10093     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
  10094 L_3608A1D7:
  10095     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
  10096     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
  10097     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
  10098 L_3608A1E1:
  10099     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
  10100     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
  10101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10102     _flag_k = FK_NARROW(FK_CMP, 24);
  10103     RECOMP_BACKEDGE();
  10104     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
  10105 L_3608A1EB:
  10106     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
  10107     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  10108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10109     _flag_k = FK_CMP;
  10110     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
  10111 L_3608A1EF:
  10112     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
  10113     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
  10114     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
  10115     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
  10116     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
  10117     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
  10118     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10120     _flag_k = FK_CMP;
  10121     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
  10122 L_3608A200:
  10123     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
  10124 L_3608A203:
  10125     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
  10126     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
  10127     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
  10128     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
  10129     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10131     _flag_k = FK_CMP;
  10132     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
  10133 L_3608A211:
  10134     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
  10135     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
  10136 L_3608A216:
  10137     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
  10138     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
  10139     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  10140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10141     _flag_k = FK_CMP;
  10142     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
  10143 L_3608A21E:
  10144     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
  10145     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
  10146 L_3608A223:
  10147     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
  10148 L_3608A225:
  10149     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
  10150     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
  10151 L_3608A22B:
  10152     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
  10153     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
  10154     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
  10155     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
  10156     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
  10157     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
  10158     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
  10159     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
  10160     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
  10161     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
  10162     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
  10163     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
  10164     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10165     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10166     _flag_k = FK_CMP;
  10167     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
  10168 L_3608A250:
  10169     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
  10170 L_3608A253:
  10171     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
  10172     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
  10173     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
  10174     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
  10175     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10177     _flag_k = FK_CMP;
  10178     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
  10179 L_3608A261:
  10180     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
  10181     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
  10182 L_3608A266:
  10183     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
  10184     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
  10185     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  10186     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10187     _flag_k = FK_CMP;
  10188     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
  10189 L_3608A26D:
  10190     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
  10191     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
  10192 L_3608A271:
  10193     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
  10194 L_3608A274:
  10195     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
  10196 L_3608A276:
  10197     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
  10198 L_3608A279:
  10199     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
  10200     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
  10201     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10203     _flag_k = FK_CMP;
  10204     RECOMP_BACKEDGE();
  10205     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
  10206 L_3608A285:
  10207     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
  10208     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
  10209     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
  10210     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
  10211     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
  10212     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
  10213     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
  10214     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
  10215     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
  10216     esp = ebp; /* 0x3608A299: mov esp, ebp */
  10217     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
  10218     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
  10219     RECOMP_REGS_OUT();
  10220 }
  10221 
  10222 void sub_3608A274(void) {
  10223     int _fpu_cmp = 0;
  10224     uint32_t _cf = 0;
  10225     int _df = 1;
  10226     uint32_t _flag_k = FK_NONE;
  10227     uint32_t _flag_a = 0, _flag_b = 0;
  10228     uint32_t _itail_tgt = 0;
  10229     RECOMP_REGS_LOCALS
  10230     RECOMP_ENTER(0x3608A274u);
  10231 
  10232     goto L_3608A274;
  10233 L_3608A105:
  10234     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
  10235     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
  10236     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
  10237     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10238     _cf = 0;
  10239     _flag_k = FK_NARROW(FK_TEST, 24);
  10240     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
  10241 L_3608A113:
  10242     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
  10243     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
  10244     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
  10245     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  10246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10247     _flag_k = FK_CMP;
  10248     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
  10249 L_3608A120:
  10250     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
  10251     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
  10252     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
  10253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10254     _flag_k = FK_NARROW(FK_CMP, 24);
  10255     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
  10256 L_3608A129:
  10257     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
  10258     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
  10259     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
  10260     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
  10261     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
  10262     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
  10263     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
  10264     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
  10265 L_3608A144:
  10266     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
  10267     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  10268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10269     _flag_k = FK_CMP;
  10270     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
  10271 L_3608A149:
  10272     eax = ecx; /* 0x3608A149: mov eax, ecx */
  10273     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
  10274     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
  10275     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
  10276     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
  10277     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
  10278     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10280     _flag_k = FK_CMP;
  10281     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
  10282 L_3608A15A:
  10283     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
  10284 L_3608A15D:
  10285     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
  10286     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
  10287     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
  10288     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
  10289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10291     _flag_k = FK_CMP;
  10292     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
  10293 L_3608A16B:
  10294     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
  10295     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
  10296 L_3608A170:
  10297     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
  10298     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
  10299     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  10300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10301     _flag_k = FK_CMP;
  10302     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
  10303 L_3608A177:
  10304     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
  10305     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
  10306 L_3608A17B:
  10307     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
  10308 L_3608A17E:
  10309     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
  10310     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
  10311 L_3608A183:
  10312     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
  10313     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
  10314     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
  10315     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
  10316     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
  10317     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
  10318     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
  10319     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
  10320     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
  10321     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
  10322     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
  10323     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
  10324     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10326     _flag_k = FK_CMP;
  10327     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
  10328 L_3608A1A8:
  10329     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
  10330 L_3608A1AB:
  10331     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
  10332     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
  10333     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
  10334     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
  10335     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10337     _flag_k = FK_CMP;
  10338     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
  10339 L_3608A1B9:
  10340     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
  10341     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
  10342     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
  10343 L_3608A1C4:
  10344     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
  10345     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
  10346     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10347     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10348     _flag_k = FK_CMP;
  10349     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
  10350 L_3608A1CC:
  10351     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
  10352     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
  10353     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
  10354 L_3608A1D7:
  10355     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
  10356     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
  10357     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
  10358 L_3608A1E1:
  10359     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
  10360     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
  10361     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10362     _flag_k = FK_NARROW(FK_CMP, 24);
  10363     RECOMP_BACKEDGE();
  10364     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
  10365 L_3608A1EB:
  10366     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
  10367     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  10368     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10369     _flag_k = FK_CMP;
  10370     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
  10371 L_3608A1EF:
  10372     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
  10373     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
  10374     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
  10375     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
  10376     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
  10377     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
  10378     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10380     _flag_k = FK_CMP;
  10381     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
  10382 L_3608A200:
  10383     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
  10384 L_3608A203:
  10385     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
  10386     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
  10387     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
  10388     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
  10389     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10391     _flag_k = FK_CMP;
  10392     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
  10393 L_3608A211:
  10394     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
  10395     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
  10396 L_3608A216:
  10397     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
  10398     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
  10399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  10400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10401     _flag_k = FK_CMP;
  10402     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
  10403 L_3608A21E:
  10404     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
  10405     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
  10406 L_3608A223:
  10407     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
  10408 L_3608A225:
  10409     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
  10410     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
  10411 L_3608A22B:
  10412     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
  10413     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
  10414     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
  10415     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
  10416     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
  10417     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
  10418     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
  10419     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
  10420     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
  10421     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
  10422     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
  10423     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
  10424     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10426     _flag_k = FK_CMP;
  10427     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
  10428 L_3608A250:
  10429     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
  10430 L_3608A253:
  10431     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
  10432     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
  10433     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
  10434     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
  10435     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10437     _flag_k = FK_CMP;
  10438     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
  10439 L_3608A261:
  10440     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
  10441     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
  10442 L_3608A266:
  10443     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
  10444     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
  10445     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  10446     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10447     _flag_k = FK_CMP;
  10448     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
  10449 L_3608A26D:
  10450     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
  10451     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
  10452 L_3608A271:
  10453     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
  10454 L_3608A274:
  10455     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
  10456 L_3608A276:
  10457     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
  10458 L_3608A279:
  10459     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
  10460     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
  10461     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10463     _flag_k = FK_CMP;
  10464     RECOMP_BACKEDGE();
  10465     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
  10466 L_3608A285:
  10467     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
  10468     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
  10469     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
  10470     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
  10471     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
  10472     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
  10473     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
  10474     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
  10475     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
  10476     esp = ebp; /* 0x3608A299: mov esp, ebp */
  10477     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
  10478     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
  10479     RECOMP_REGS_OUT();
  10480 }
  10481 
  10482 void sub_3608A276(void) {
  10483     int _fpu_cmp = 0;
  10484     uint32_t _cf = 0;
  10485     int _df = 1;
  10486     uint32_t _flag_k = FK_NONE;
  10487     uint32_t _flag_a = 0, _flag_b = 0;
  10488     uint32_t _itail_tgt = 0;
  10489     RECOMP_REGS_LOCALS
  10490     RECOMP_ENTER(0x3608A276u);
  10491 
  10492     goto L_3608A276;
  10493 L_3608A105:
  10494     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
  10495     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
  10496     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
  10497     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10498     _cf = 0;
  10499     _flag_k = FK_NARROW(FK_TEST, 24);
  10500     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
  10501 L_3608A113:
  10502     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
  10503     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
  10504     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
  10505     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  10506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10507     _flag_k = FK_CMP;
  10508     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
  10509 L_3608A120:
  10510     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
  10511     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
  10512     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
  10513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10514     _flag_k = FK_NARROW(FK_CMP, 24);
  10515     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
  10516 L_3608A129:
  10517     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
  10518     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
  10519     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
  10520     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
  10521     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
  10522     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
  10523     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
  10524     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
  10525 L_3608A144:
  10526     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
  10527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  10528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10529     _flag_k = FK_CMP;
  10530     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
  10531 L_3608A149:
  10532     eax = ecx; /* 0x3608A149: mov eax, ecx */
  10533     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
  10534     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
  10535     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
  10536     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
  10537     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
  10538     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10540     _flag_k = FK_CMP;
  10541     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
  10542 L_3608A15A:
  10543     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
  10544 L_3608A15D:
  10545     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
  10546     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
  10547     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
  10548     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
  10549     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10551     _flag_k = FK_CMP;
  10552     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
  10553 L_3608A16B:
  10554     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
  10555     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
  10556 L_3608A170:
  10557     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
  10558     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
  10559     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  10560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10561     _flag_k = FK_CMP;
  10562     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
  10563 L_3608A177:
  10564     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
  10565     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
  10566 L_3608A17B:
  10567     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
  10568 L_3608A17E:
  10569     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
  10570     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
  10571 L_3608A183:
  10572     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
  10573     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
  10574     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
  10575     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
  10576     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
  10577     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
  10578     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
  10579     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
  10580     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
  10581     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
  10582     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
  10583     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
  10584     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10586     _flag_k = FK_CMP;
  10587     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
  10588 L_3608A1A8:
  10589     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
  10590 L_3608A1AB:
  10591     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
  10592     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
  10593     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
  10594     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
  10595     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10597     _flag_k = FK_CMP;
  10598     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
  10599 L_3608A1B9:
  10600     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
  10601     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
  10602     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
  10603 L_3608A1C4:
  10604     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
  10605     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
  10606     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10607     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10608     _flag_k = FK_CMP;
  10609     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
  10610 L_3608A1CC:
  10611     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
  10612     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
  10613     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
  10614 L_3608A1D7:
  10615     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
  10616     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
  10617     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
  10618 L_3608A1E1:
  10619     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
  10620     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
  10621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10622     _flag_k = FK_NARROW(FK_CMP, 24);
  10623     RECOMP_BACKEDGE();
  10624     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
  10625 L_3608A1EB:
  10626     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
  10627     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  10628     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10629     _flag_k = FK_CMP;
  10630     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
  10631 L_3608A1EF:
  10632     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
  10633     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
  10634     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
  10635     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
  10636     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
  10637     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
  10638     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10640     _flag_k = FK_CMP;
  10641     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
  10642 L_3608A200:
  10643     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
  10644 L_3608A203:
  10645     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
  10646     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
  10647     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
  10648     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
  10649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10651     _flag_k = FK_CMP;
  10652     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
  10653 L_3608A211:
  10654     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
  10655     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
  10656 L_3608A216:
  10657     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
  10658     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
  10659     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  10660     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10661     _flag_k = FK_CMP;
  10662     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
  10663 L_3608A21E:
  10664     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
  10665     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
  10666 L_3608A223:
  10667     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
  10668 L_3608A225:
  10669     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
  10670     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
  10671 L_3608A22B:
  10672     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
  10673     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
  10674     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
  10675     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
  10676     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
  10677     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
  10678     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
  10679     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
  10680     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
  10681     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
  10682     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
  10683     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
  10684     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10686     _flag_k = FK_CMP;
  10687     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
  10688 L_3608A250:
  10689     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
  10690 L_3608A253:
  10691     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
  10692     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
  10693     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
  10694     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
  10695     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10697     _flag_k = FK_CMP;
  10698     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
  10699 L_3608A261:
  10700     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
  10701     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
  10702 L_3608A266:
  10703     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
  10704     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
  10705     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  10706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10707     _flag_k = FK_CMP;
  10708     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
  10709 L_3608A26D:
  10710     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
  10711     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
  10712 L_3608A271:
  10713     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
  10714 L_3608A274:
  10715     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
  10716 L_3608A276:
  10717     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
  10718 L_3608A279:
  10719     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
  10720     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
  10721     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10723     _flag_k = FK_CMP;
  10724     RECOMP_BACKEDGE();
  10725     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
  10726 L_3608A285:
  10727     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
  10728     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
  10729     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
  10730     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
  10731     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
  10732     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
  10733     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
  10734     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
  10735     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
  10736     esp = ebp; /* 0x3608A299: mov esp, ebp */
  10737     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
  10738     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
  10739     RECOMP_REGS_OUT();
  10740 }
  10741 
  10742 void sub_3608A279(void) {
  10743     int _fpu_cmp = 0;
  10744     uint32_t _cf = 0;
  10745     int _df = 1;
  10746     uint32_t _flag_k = FK_NONE;
  10747     uint32_t _flag_a = 0, _flag_b = 0;
  10748     uint32_t _itail_tgt = 0;
  10749     RECOMP_REGS_LOCALS
  10750     RECOMP_ENTER(0x3608A279u);
  10751 
  10752     goto L_3608A279;
  10753 L_3608A105:
  10754     ecx = MEM32(eax + 0x4); /* 0x3608A105: mov ecx, dword ptr [eax + 4] */
  10755     SET_LO8(edx, MEM8(ecx + 0x1C)); /* 0x3608A108: mov dl, byte ptr [ecx + 0x1c] */
  10756     /* test LO8(edx), LO8(edx) */ /* 0x3608A10B: test dl, dl */
  10757     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
  10758     _cf = 0;
  10759     _flag_k = FK_NARROW(FK_TEST, 24);
  10760     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A285; /* 0x3608A10D: jne 0x3608a285 */
  10761 L_3608A113:
  10762     edi = MEM32(ecx + 0x4); /* 0x3608A113: mov edi, dword ptr [ecx + 4] */
  10763     edx = MEM32(edi); /* 0x3608A116: mov edx, dword ptr [edi] */
  10764     /* cmp ecx, edx */ /* 0x3608A118: cmp ecx, edx */
  10765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
  10766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10767     _flag_k = FK_CMP;
  10768     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1E1; /* 0x3608A11A: jne 0x3608a1e1 */
  10769 L_3608A120:
  10770     edx = MEM32(edi + 0x8); /* 0x3608A120: mov edx, dword ptr [edi + 8] */
  10771     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A123: cmp byte ptr [edx + 0x1c], 0 */
  10772     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
  10773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10774     _flag_k = FK_NARROW(FK_CMP, 24);
  10775     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A144; /* 0x3608A127: jne 0x3608a144 */
  10776 L_3608A129:
  10777     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A129: mov byte ptr [ecx + 0x1c], bl */
  10778     MEM8(edx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A12C: mov byte ptr [edx + 0x1c], bl */
  10779     ecx = MEM32(eax + 0x4); /* 0x3608A12F: mov ecx, dword ptr [eax + 4] */
  10780     edx = MEM32(ecx + 0x4); /* 0x3608A132: mov edx, dword ptr [ecx + 4] */
  10781     MEM8(edx + 0x1C) = (uint8_t)(0); /* 0x3608A135: mov byte ptr [edx + 0x1c], 0 */
  10782     eax = MEM32(eax + 0x4); /* 0x3608A139: mov eax, dword ptr [eax + 4] */
  10783     eax = MEM32(eax + 0x4); /* 0x3608A13C: mov eax, dword ptr [eax + 4] */
  10784     goto L_3608A279; /* 0x3608A13F: jmp 0x3608a279 */
  10785 L_3608A144:
  10786     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A144: cmp eax, dword ptr [ecx + 8] */
  10787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  10788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10789     _flag_k = FK_CMP;
  10790     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A183; /* 0x3608A147: jne 0x3608a183 */
  10791 L_3608A149:
  10792     eax = ecx; /* 0x3608A149: mov eax, ecx */
  10793     ecx = MEM32(eax + 0x8); /* 0x3608A14B: mov ecx, dword ptr [eax + 8] */
  10794     edx = MEM32(ecx); /* 0x3608A14E: mov edx, dword ptr [ecx] */
  10795     MEM32(eax + 0x8) = edx; /* 0x3608A150: mov dword ptr [eax + 8], edx */
  10796     edx = MEM32(ecx); /* 0x3608A153: mov edx, dword ptr [ecx] */
  10797     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A155: cmp edx, dword ptr [esi + 8] */
  10798     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10800     _flag_k = FK_CMP;
  10801     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A15D; /* 0x3608A158: je 0x3608a15d */
  10802 L_3608A15A:
  10803     MEM32(edx + 0x4) = eax; /* 0x3608A15A: mov dword ptr [edx + 4], eax */
  10804 L_3608A15D:
  10805     edx = MEM32(eax + 0x4); /* 0x3608A15D: mov edx, dword ptr [eax + 4] */
  10806     MEM32(ecx + 0x4) = edx; /* 0x3608A160: mov dword ptr [ecx + 4], edx */
  10807     edx = MEM32(esi + 0x4); /* 0x3608A163: mov edx, dword ptr [esi + 4] */
  10808     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A166: cmp eax, dword ptr [edx + 4] */
  10809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10811     _flag_k = FK_CMP;
  10812     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A170; /* 0x3608A169: jne 0x3608a170 */
  10813 L_3608A16B:
  10814     MEM32(edx + 0x4) = ecx; /* 0x3608A16B: mov dword ptr [edx + 4], ecx */
  10815     goto L_3608A17E; /* 0x3608A16E: jmp 0x3608a17e */
  10816 L_3608A170:
  10817     edx = MEM32(eax + 0x4); /* 0x3608A170: mov edx, dword ptr [eax + 4] */
  10818     /* cmp eax, MEM32(edx) */ /* 0x3608A173: cmp eax, dword ptr [edx] */
  10819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
  10820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10821     _flag_k = FK_CMP;
  10822     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A17B; /* 0x3608A175: jne 0x3608a17b */
  10823 L_3608A177:
  10824     MEM32(edx) = ecx; /* 0x3608A177: mov dword ptr [edx], ecx */
  10825     goto L_3608A17E; /* 0x3608A179: jmp 0x3608a17e */
  10826 L_3608A17B:
  10827     MEM32(edx + 0x8) = ecx; /* 0x3608A17B: mov dword ptr [edx + 8], ecx */
  10828 L_3608A17E:
  10829     MEM32(ecx) = eax; /* 0x3608A17E: mov dword ptr [ecx], eax */
  10830     MEM32(eax + 0x4) = ecx; /* 0x3608A180: mov dword ptr [eax + 4], ecx */
  10831 L_3608A183:
  10832     ecx = MEM32(eax + 0x4); /* 0x3608A183: mov ecx, dword ptr [eax + 4] */
  10833     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A186: mov byte ptr [ecx + 0x1c], bl */
  10834     edx = MEM32(eax + 0x4); /* 0x3608A189: mov edx, dword ptr [eax + 4] */
  10835     ecx = MEM32(edx + 0x4); /* 0x3608A18C: mov ecx, dword ptr [edx + 4] */
  10836     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A18F: mov byte ptr [ecx + 0x1c], 0 */
  10837     edx = MEM32(eax + 0x4); /* 0x3608A193: mov edx, dword ptr [eax + 4] */
  10838     ecx = MEM32(edx + 0x4); /* 0x3608A196: mov ecx, dword ptr [edx + 4] */
  10839     edx = MEM32(ecx); /* 0x3608A199: mov edx, dword ptr [ecx] */
  10840     edi = MEM32(edx + 0x8); /* 0x3608A19B: mov edi, dword ptr [edx + 8] */
  10841     MEM32(ecx) = edi; /* 0x3608A19E: mov dword ptr [ecx], edi */
  10842     edi = MEM32(edx + 0x8); /* 0x3608A1A0: mov edi, dword ptr [edx + 8] */
  10843     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A1A3: cmp edi, dword ptr [esi + 8] */
  10844     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10846     _flag_k = FK_CMP;
  10847     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A1AB; /* 0x3608A1A6: je 0x3608a1ab */
  10848 L_3608A1A8:
  10849     MEM32(edi + 0x4) = ecx; /* 0x3608A1A8: mov dword ptr [edi + 4], ecx */
  10850 L_3608A1AB:
  10851     edi = MEM32(ecx + 0x4); /* 0x3608A1AB: mov edi, dword ptr [ecx + 4] */
  10852     MEM32(edx + 0x4) = edi; /* 0x3608A1AE: mov dword ptr [edx + 4], edi */
  10853     edi = MEM32(esi + 0x4); /* 0x3608A1B1: mov edi, dword ptr [esi + 4] */
  10854     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A1B4: cmp ecx, dword ptr [edi + 4] */
  10855     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10857     _flag_k = FK_CMP;
  10858     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1C4; /* 0x3608A1B7: jne 0x3608a1c4 */
  10859 L_3608A1B9:
  10860     MEM32(edi + 0x4) = edx; /* 0x3608A1B9: mov dword ptr [edi + 4], edx */
  10861     MEM32(edx + 0x8) = ecx; /* 0x3608A1BC: mov dword ptr [edx + 8], ecx */
  10862     goto L_3608A276; /* 0x3608A1BF: jmp 0x3608a276 */
  10863 L_3608A1C4:
  10864     edi = MEM32(ecx + 0x4); /* 0x3608A1C4: mov edi, dword ptr [ecx + 4] */
  10865     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3608A1C7: cmp ecx, dword ptr [edi + 8] */
  10866     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
  10867     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10868     _flag_k = FK_CMP;
  10869     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A1D7; /* 0x3608A1CA: jne 0x3608a1d7 */
  10870 L_3608A1CC:
  10871     MEM32(edi + 0x8) = edx; /* 0x3608A1CC: mov dword ptr [edi + 8], edx */
  10872     MEM32(edx + 0x8) = ecx; /* 0x3608A1CF: mov dword ptr [edx + 8], ecx */
  10873     goto L_3608A276; /* 0x3608A1D2: jmp 0x3608a276 */
  10874 L_3608A1D7:
  10875     MEM32(edi) = edx; /* 0x3608A1D7: mov dword ptr [edi], edx */
  10876     MEM32(edx + 0x8) = ecx; /* 0x3608A1D9: mov dword ptr [edx + 8], ecx */
  10877     goto L_3608A276; /* 0x3608A1DC: jmp 0x3608a276 */
  10878 L_3608A1E1:
  10879     /* cmp MEM8(edx + 0x1C), 0 */ /* 0x3608A1E1: cmp byte ptr [edx + 0x1c], 0 */
  10880     _flag_a = (uint32_t)(MEM8(edx + 0x1C)) << 24; _flag_b = (uint32_t)(0) << 24;
  10881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10882     _flag_k = FK_NARROW(FK_CMP, 24);
  10883     RECOMP_BACKEDGE();
  10884     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A129; /* 0x3608A1E5: je 0x3608a129 */
  10885 L_3608A1EB:
  10886     /* cmp eax, MEM32(ecx) */ /* 0x3608A1EB: cmp eax, dword ptr [ecx] */
  10887     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
  10888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10889     _flag_k = FK_CMP;
  10890     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A22B; /* 0x3608A1ED: jne 0x3608a22b */
  10891 L_3608A1EF:
  10892     eax = ecx; /* 0x3608A1EF: mov eax, ecx */
  10893     ecx = MEM32(eax); /* 0x3608A1F1: mov ecx, dword ptr [eax] */
  10894     edx = MEM32(ecx + 0x8); /* 0x3608A1F3: mov edx, dword ptr [ecx + 8] */
  10895     MEM32(eax) = edx; /* 0x3608A1F6: mov dword ptr [eax], edx */
  10896     edx = MEM32(ecx + 0x8); /* 0x3608A1F8: mov edx, dword ptr [ecx + 8] */
  10897     /* cmp edx, MEM32(esi + 0x8) */ /* 0x3608A1FB: cmp edx, dword ptr [esi + 8] */
  10898     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10900     _flag_k = FK_CMP;
  10901     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A203; /* 0x3608A1FE: je 0x3608a203 */
  10902 L_3608A200:
  10903     MEM32(edx + 0x4) = eax; /* 0x3608A200: mov dword ptr [edx + 4], eax */
  10904 L_3608A203:
  10905     edx = MEM32(eax + 0x4); /* 0x3608A203: mov edx, dword ptr [eax + 4] */
  10906     MEM32(ecx + 0x4) = edx; /* 0x3608A206: mov dword ptr [ecx + 4], edx */
  10907     edx = MEM32(esi + 0x4); /* 0x3608A209: mov edx, dword ptr [esi + 4] */
  10908     /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608A20C: cmp eax, dword ptr [edx + 4] */
  10909     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  10910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10911     _flag_k = FK_CMP;
  10912     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A216; /* 0x3608A20F: jne 0x3608a216 */
  10913 L_3608A211:
  10914     MEM32(edx + 0x4) = ecx; /* 0x3608A211: mov dword ptr [edx + 4], ecx */
  10915     goto L_3608A225; /* 0x3608A214: jmp 0x3608a225 */
  10916 L_3608A216:
  10917     edx = MEM32(eax + 0x4); /* 0x3608A216: mov edx, dword ptr [eax + 4] */
  10918     /* cmp eax, MEM32(edx + 0x8) */ /* 0x3608A219: cmp eax, dword ptr [edx + 8] */
  10919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
  10920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10921     _flag_k = FK_CMP;
  10922     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A223; /* 0x3608A21C: jne 0x3608a223 */
  10923 L_3608A21E:
  10924     MEM32(edx + 0x8) = ecx; /* 0x3608A21E: mov dword ptr [edx + 8], ecx */
  10925     goto L_3608A225; /* 0x3608A221: jmp 0x3608a225 */
  10926 L_3608A223:
  10927     MEM32(edx) = ecx; /* 0x3608A223: mov dword ptr [edx], ecx */
  10928 L_3608A225:
  10929     MEM32(ecx + 0x8) = eax; /* 0x3608A225: mov dword ptr [ecx + 8], eax */
  10930     MEM32(eax + 0x4) = ecx; /* 0x3608A228: mov dword ptr [eax + 4], ecx */
  10931 L_3608A22B:
  10932     ecx = MEM32(eax + 0x4); /* 0x3608A22B: mov ecx, dword ptr [eax + 4] */
  10933     MEM8(ecx + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A22E: mov byte ptr [ecx + 0x1c], bl */
  10934     edx = MEM32(eax + 0x4); /* 0x3608A231: mov edx, dword ptr [eax + 4] */
  10935     ecx = MEM32(edx + 0x4); /* 0x3608A234: mov ecx, dword ptr [edx + 4] */
  10936     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x3608A237: mov byte ptr [ecx + 0x1c], 0 */
  10937     edx = MEM32(eax + 0x4); /* 0x3608A23B: mov edx, dword ptr [eax + 4] */
  10938     ecx = MEM32(edx + 0x4); /* 0x3608A23E: mov ecx, dword ptr [edx + 4] */
  10939     edx = MEM32(ecx + 0x8); /* 0x3608A241: mov edx, dword ptr [ecx + 8] */
  10940     edi = MEM32(edx); /* 0x3608A244: mov edi, dword ptr [edx] */
  10941     MEM32(ecx + 0x8) = edi; /* 0x3608A246: mov dword ptr [ecx + 8], edi */
  10942     edi = MEM32(edx); /* 0x3608A249: mov edi, dword ptr [edx] */
  10943     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3608A24B: cmp edi, dword ptr [esi + 8] */
  10944     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10946     _flag_k = FK_CMP;
  10947     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A253; /* 0x3608A24E: je 0x3608a253 */
  10948 L_3608A250:
  10949     MEM32(edi + 0x4) = ecx; /* 0x3608A250: mov dword ptr [edi + 4], ecx */
  10950 L_3608A253:
  10951     edi = MEM32(ecx + 0x4); /* 0x3608A253: mov edi, dword ptr [ecx + 4] */
  10952     MEM32(edx + 0x4) = edi; /* 0x3608A256: mov dword ptr [edx + 4], edi */
  10953     edi = MEM32(esi + 0x4); /* 0x3608A259: mov edi, dword ptr [esi + 4] */
  10954     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3608A25C: cmp ecx, dword ptr [edi + 4] */
  10955     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
  10956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10957     _flag_k = FK_CMP;
  10958     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A266; /* 0x3608A25F: jne 0x3608a266 */
  10959 L_3608A261:
  10960     MEM32(edi + 0x4) = edx; /* 0x3608A261: mov dword ptr [edi + 4], edx */
  10961     goto L_3608A274; /* 0x3608A264: jmp 0x3608a274 */
  10962 L_3608A266:
  10963     edi = MEM32(ecx + 0x4); /* 0x3608A266: mov edi, dword ptr [ecx + 4] */
  10964     /* cmp ecx, MEM32(edi) */ /* 0x3608A269: cmp ecx, dword ptr [edi] */
  10965     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
  10966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10967     _flag_k = FK_CMP;
  10968     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A271; /* 0x3608A26B: jne 0x3608a271 */
  10969 L_3608A26D:
  10970     MEM32(edi) = edx; /* 0x3608A26D: mov dword ptr [edi], edx */
  10971     goto L_3608A274; /* 0x3608A26F: jmp 0x3608a274 */
  10972 L_3608A271:
  10973     MEM32(edi + 0x8) = edx; /* 0x3608A271: mov dword ptr [edi + 8], edx */
  10974 L_3608A274:
  10975     MEM32(edx) = ecx; /* 0x3608A274: mov dword ptr [edx], ecx */
  10976 L_3608A276:
  10977     MEM32(ecx + 0x4) = edx; /* 0x3608A276: mov dword ptr [ecx + 4], edx */
  10978 L_3608A279:
  10979     ecx = MEM32(esi + 0x4); /* 0x3608A279: mov ecx, dword ptr [esi + 4] */
  10980     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A27C: cmp eax, dword ptr [ecx + 4] */
  10981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  10982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10983     _flag_k = FK_CMP;
  10984     RECOMP_BACKEDGE();
  10985     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A105; /* 0x3608A27F: jne 0x3608a105 */
  10986 L_3608A285:
  10987     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
  10988     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
  10989     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
  10990     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
  10991     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
  10992     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
  10993     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
  10994     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
  10995     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
  10996     esp = ebp; /* 0x3608A299: mov esp, ebp */
  10997     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
  10998     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
  10999     RECOMP_REGS_OUT();
  11000 }
  11001 
  11002 void sub_3608A285(void) {
  11003     int _fpu_cmp = 0;
  11004     uint32_t _cf = 0;
  11005     int _df = 1;
  11006     uint32_t _flag_k = FK_NONE;
  11007     uint32_t _flag_a = 0, _flag_b = 0;
  11008     uint32_t _itail_tgt = 0;
  11009     RECOMP_REGS_LOCALS
  11010     RECOMP_ENTER(0x3608A285u);
  11011 
  11012 L_3608A285:
  11013     edx = MEM32(esi + 0x4); /* 0x3608A285: mov edx, dword ptr [esi + 4] */
  11014     eax = MEM32(edx + 0x4); /* 0x3608A288: mov eax, dword ptr [edx + 4] */
  11015     ecx = MEM32(ebp + (-0x4)); /* 0x3608A28B: mov ecx, dword ptr [ebp - 4] */
  11016     MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x3608A28E: mov byte ptr [eax + 0x1c], bl */
  11017     eax = MEM32(ebp + 0x8); /* 0x3608A291: mov eax, dword ptr [ebp + 8] */
  11018     edi = POP32_VAL(esp); /* 0x3608A294: pop edi */
  11019     esi = POP32_VAL(esp); /* 0x3608A295: pop esi */
  11020     MEM32(eax) = ecx; /* 0x3608A296: mov dword ptr [eax], ecx */
  11021     ebx = POP32_VAL(esp); /* 0x3608A298: pop ebx */
  11022     esp = ebp; /* 0x3608A299: mov esp, ebp */
  11023     ebp = POP32_VAL(esp); /* 0x3608A29B: pop ebp */
  11024     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3608A29C: ret 0x10 */
  11025     RECOMP_REGS_OUT();
  11026 }
  11027 
  11028 void sub_3608A2A0(void) {
  11029     int _fpu_cmp = 0;
  11030     uint32_t _cf = 0;
  11031     int _df = 1;
  11032     uint32_t _flag_k = FK_NONE;
  11033     uint32_t _flag_a = 0, _flag_b = 0;
  11034     uint32_t _itail_tgt = 0;
  11035     RECOMP_REGS_LOCALS
  11036     RECOMP_ENTER(0x3608A2A0u);
  11037 
  11038 L_3608A2A0:
  11039     PUSH32(esp, ebp); /* 0x3608A2A0: push ebp */
  11040     ebp = esp; /* 0x3608A2A1: mov ebp, esp */
  11041     eax = MEM32(ebp + 0xC); /* 0x3608A2A3: mov eax, dword ptr [ebp + 0xc] */
  11042     /* test eax, eax */ /* 0x3608A2A6: test eax, eax */
  11043     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11044     _cf = 0;
  11045     _flag_k = FK_TEST;
  11046     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A2CD; /* 0x3608A2A8: jbe 0x3608a2cd */
  11047 L_3608A2AA:
  11048     PUSH32(esp, ebx); /* 0x3608A2AA: push ebx */
  11049     ebx = MEM32(ebp + 0x10); /* 0x3608A2AB: mov ebx, dword ptr [ebp + 0x10] */
  11050     PUSH32(esp, esi); /* 0x3608A2AE: push esi */
  11051     edx = eax; /* 0x3608A2AF: mov edx, eax */
  11052     eax = MEM32(ebp + 0x8); /* 0x3608A2B1: mov eax, dword ptr [ebp + 8] */
  11053     PUSH32(esp, edi); /* 0x3608A2B4: push edi */
  11054 L_3608A2B5:
  11055     /* test eax, eax */ /* 0x3608A2B5: test eax, eax */
  11056     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11057     _cf = 0;
  11058     _flag_k = FK_TEST;
  11059     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A2C4; /* 0x3608A2B7: je 0x3608a2c4 */
  11060 L_3608A2B9:
  11061     ecx = 5; /* 0x3608A2B9: mov ecx, 5 */
  11062     esi = ebx; /* 0x3608A2BE: mov esi, ebx */
  11063     edi = eax; /* 0x3608A2C0: mov edi, eax */
  11064     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3608A2C2: 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; }
  11065 L_3608A2C4:
  11066     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  11067     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11068     eax = eax + 0x14u; /* 0x3608A2C4: add eax, 0x14 */
  11069     _flag_k = FK_ADD;
  11070     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
  11071     edx = edx - 1; /* 0x3608A2C7: dec edx */
  11072     _flag_k = FK_DEC;
  11073     RECOMP_BACKEDGE();
  11074     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3608A2B5; /* 0x3608A2C8: jne 0x3608a2b5 */
  11075 L_3608A2CA:
  11076     edi = POP32_VAL(esp); /* 0x3608A2CA: pop edi */
  11077     esi = POP32_VAL(esp); /* 0x3608A2CB: pop esi */
  11078     ebx = POP32_VAL(esp); /* 0x3608A2CC: pop ebx */
  11079 L_3608A2CD:
  11080     ebp = POP32_VAL(esp); /* 0x3608A2CD: pop ebp */
  11081     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608A2CE: ret 0xc */
  11082     RECOMP_REGS_OUT();
  11083 }
  11084 
  11085 void sub_3608A2E0(void) {
  11086     int _fpu_cmp = 0;
  11087     uint32_t _cf = 0;
  11088     int _df = 1;
  11089     uint32_t _flag_k = FK_NONE;
  11090     uint32_t _flag_a = 0, _flag_b = 0;
  11091     uint32_t _itail_tgt = 0;
  11092     RECOMP_REGS_LOCALS
  11093     RECOMP_ENTER(0x3608A2E0u);
  11094 
  11095 L_3608A2E0:
  11096     PUSH32(esp, ebp); /* 0x3608A2E0: push ebp */
  11097     ebp = esp; /* 0x3608A2E1: mov ebp, esp */
  11098     PUSH32(esp, 0x20u); /* 0x3608A2E3: push 0x20 */
  11099     RECOMP_ICALL(0x3615FD6Au); /* 0x3608A2E5: call 0x3615fd6a */ /* not lifted */
  11100     RECOMP_FLAGS_IN();
  11101     ecx = MEM32(ebp + 0x8); /* 0x3608A2EA: mov ecx, dword ptr [ebp + 8] */
  11102     SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x3608A2ED: mov dl, byte ptr [ebp + 0xc] */
  11103     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11104     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11105     esp = esp + 4; /* 0x3608A2F0: add esp, 4 */
  11106     _flag_k = FK_ADD;
  11107     MEM32(eax + 0x4) = ecx; /* 0x3608A2F3: mov dword ptr [eax + 4], ecx */
  11108     MEM8(eax + 0x1C) = (uint8_t)(LO8(edx)); /* 0x3608A2F6: mov byte ptr [eax + 0x1c], dl */
  11109     MEM8(eax + 0x1D) = (uint8_t)(0); /* 0x3608A2F9: mov byte ptr [eax + 0x1d], 0 */
  11110     ebp = POP32_VAL(esp); /* 0x3608A2FD: pop ebp */
  11111     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608A2FE: ret 8 */
  11112     RECOMP_REGS_OUT();
  11113 }
  11114 
  11115 void sub_3608A310(void) {
  11116     int _fpu_cmp = 0;
  11117     uint32_t _cf = 0;
  11118     int _df = 1;
  11119     uint32_t _flag_k = FK_NONE;
  11120     uint32_t _flag_a = 0, _flag_b = 0;
  11121     uint32_t _itail_tgt = 0;
  11122     RECOMP_REGS_LOCALS
  11123     RECOMP_ENTER(0x3608A310u);
  11124 
  11125 L_3608A310:
  11126     PUSH32(esp, ebp); /* 0x3608A310: push ebp */
  11127     ebp = esp; /* 0x3608A311: mov ebp, esp */
  11128     edx = MEM32(ebp + 0x8); /* 0x3608A313: mov edx, dword ptr [ebp + 8] */
  11129     PUSH32(esp, ebx); /* 0x3608A316: push ebx */
  11130     ebx = MEM32(ebp + 0xC); /* 0x3608A317: mov ebx, dword ptr [ebp + 0xc] */
  11131     /* cmp edx, ebx */ /* 0x3608A31A: cmp edx, ebx */
  11132     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11134     _flag_k = FK_CMP;
  11135     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A33D; /* 0x3608A31C: je 0x3608a33d */
  11136 L_3608A31E:
  11137     eax = MEM32(ebp + 0x10); /* 0x3608A31E: mov eax, dword ptr [ebp + 0x10] */
  11138     PUSH32(esp, esi); /* 0x3608A321: push esi */
  11139     PUSH32(esp, edi); /* 0x3608A322: push edi */
  11140 L_3608A323:
  11141     esi = edx; /* 0x3608A323: mov esi, edx */
  11142     edi = eax; /* 0x3608A325: mov edi, eax */
  11143     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
  11144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11145     edx = edx + 0x14u; /* 0x3608A327: add edx, 0x14 */
  11146     _flag_k = FK_ADD;
  11147     ecx = 5; /* 0x3608A32A: mov ecx, 5 */
  11148     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u);
  11149     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11150     eax = eax + 0x14u; /* 0x3608A32F: add eax, 0x14 */
  11151     _flag_k = FK_ADD;
  11152     /* cmp edx, ebx */ /* 0x3608A332: cmp edx, ebx */
  11153     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11155     _flag_k = FK_CMP;
  11156     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3608A334: 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; }
  11157     RECOMP_BACKEDGE();
  11158     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A323; /* 0x3608A336: jne 0x3608a323 */
  11159 L_3608A338:
  11160     edi = POP32_VAL(esp); /* 0x3608A338: pop edi */
  11161     esi = POP32_VAL(esp); /* 0x3608A339: pop esi */
  11162     ebx = POP32_VAL(esp); /* 0x3608A33A: pop ebx */
  11163     ebp = POP32_VAL(esp); /* 0x3608A33B: pop ebp */
  11164     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A33C: ret  */
  11165 L_3608A33D:
  11166     eax = MEM32(ebp + 0x10); /* 0x3608A33D: mov eax, dword ptr [ebp + 0x10] */
  11167     ebx = POP32_VAL(esp); /* 0x3608A340: pop ebx */
  11168     ebp = POP32_VAL(esp); /* 0x3608A341: pop ebp */
  11169     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A342: ret  */
  11170     RECOMP_REGS_OUT();
  11171 }
  11172 
  11173 void sub_3608A350(void) {
  11174     int _fpu_cmp = 0;
  11175     uint32_t _cf = 0;
  11176     int _df = 1;
  11177     uint32_t _flag_k = FK_NONE;
  11178     uint32_t _flag_a = 0, _flag_b = 0;
  11179     uint32_t _itail_tgt = 0;
  11180     RECOMP_REGS_LOCALS
  11181     RECOMP_ENTER(0x3608A350u);
  11182 
  11183 L_3608A350:
  11184     PUSH32(esp, ebp); /* 0x3608A350: push ebp */
  11185     ebp = esp; /* 0x3608A351: mov ebp, esp */
  11186     eax = MEM32(ebp + 0x8); /* 0x3608A353: mov eax, dword ptr [ebp + 8] */
  11187     PUSH32(esp, esi); /* 0x3608A356: push esi */
  11188     esi = MEM32(ebp + 0xC); /* 0x3608A357: mov esi, dword ptr [ebp + 0xc] */
  11189     /* cmp eax, esi */ /* 0x3608A35A: cmp eax, esi */
  11190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  11191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11192     _flag_k = FK_CMP;
  11193     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A3A2; /* 0x3608A35C: je 0x3608a3a2 */
  11194 L_3608A35E:
  11195     edx = MEM32(ebp + 0x10); /* 0x3608A35E: mov edx, dword ptr [ebp + 0x10] */
  11196     PUSH32(esp, ebx); /* 0x3608A361: push ebx */
  11197 L_3608A362:
  11198     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(1);
  11199     MEM32(edx) = MEM32(edx) + 1; /* 0x3608A362: inc dword ptr [edx] */
  11200     _flag_k = FK_INC;
  11201     ecx = MEM32(eax + 0x8); /* 0x3608A364: mov ecx, dword ptr [eax + 8] */
  11202     SET_LO8(ebx, MEM8(ecx + 0x1D)); /* 0x3608A367: mov bl, byte ptr [ecx + 0x1d] */
  11203     /* test LO8(ebx), LO8(ebx) */ /* 0x3608A36A: test bl, bl */
  11204     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11205     _cf = 0;
  11206     _flag_k = FK_NARROW(FK_TEST, 24);
  11207     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A384; /* 0x3608A36C: jne 0x3608a384 */
  11208 L_3608A36E:
  11209     eax = MEM32(ecx); /* 0x3608A36E: mov eax, dword ptr [ecx] */
  11210     SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x3608A370: mov bl, byte ptr [eax + 0x1d] */
  11211     /* test LO8(ebx), LO8(ebx) */ /* 0x3608A373: test bl, bl */
  11212     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11213     _cf = 0;
  11214     _flag_k = FK_NARROW(FK_TEST, 24);
  11215     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A39B; /* 0x3608A375: jne 0x3608a39b */
  11216 L_3608A377:
  11217     ecx = eax; /* 0x3608A377: mov ecx, eax */
  11218     eax = MEM32(ecx); /* 0x3608A379: mov eax, dword ptr [ecx] */
  11219     SET_LO8(ebx, MEM8(eax + 0x1D)); /* 0x3608A37B: mov bl, byte ptr [eax + 0x1d] */
  11220     /* test LO8(ebx), LO8(ebx) */ /* 0x3608A37E: test bl, bl */
  11221     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11222     _cf = 0;
  11223     _flag_k = FK_NARROW(FK_TEST, 24);
  11224     RECOMP_BACKEDGE();
  11225     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A377; /* 0x3608A380: je 0x3608a377 */
  11226 L_3608A382:
  11227     goto L_3608A39B; /* 0x3608A382: jmp 0x3608a39b */
  11228 L_3608A384:
  11229     ecx = MEM32(eax + 0x4); /* 0x3608A384: mov ecx, dword ptr [eax + 4] */
  11230     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A387: cmp eax, dword ptr [ecx + 8] */
  11231     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  11232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11233     _flag_k = FK_CMP;
  11234     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A396; /* 0x3608A38A: jne 0x3608a396 */
  11235 L_3608A38C:
  11236     eax = ecx; /* 0x3608A38C: mov eax, ecx */
  11237     ecx = MEM32(ecx + 0x4); /* 0x3608A38E: mov ecx, dword ptr [ecx + 4] */
  11238     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3608A391: cmp eax, dword ptr [ecx + 8] */
  11239     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
  11240     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11241     _flag_k = FK_CMP;
  11242     RECOMP_BACKEDGE();
  11243     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A38C; /* 0x3608A394: je 0x3608a38c */
  11244 L_3608A396:
  11245     /* cmp MEM32(eax + 0x8), ecx */ /* 0x3608A396: cmp dword ptr [eax + 8], ecx */
  11246     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx);
  11247     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11248     _flag_k = FK_CMP;
  11249     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A39D; /* 0x3608A399: je 0x3608a39d */
  11250 L_3608A39B:
  11251     eax = ecx; /* 0x3608A39B: mov eax, ecx */
  11252 L_3608A39D:
  11253     /* cmp eax, esi */ /* 0x3608A39D: cmp eax, esi */
  11254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  11255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11256     _flag_k = FK_CMP;
  11257     RECOMP_BACKEDGE();
  11258     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A362; /* 0x3608A39F: jne 0x3608a362 */
  11259 L_3608A3A1:
  11260     ebx = POP32_VAL(esp); /* 0x3608A3A1: pop ebx */
  11261 L_3608A3A2:
  11262     esi = POP32_VAL(esp); /* 0x3608A3A2: pop esi */
  11263     ebp = POP32_VAL(esp); /* 0x3608A3A3: pop ebp */
  11264     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A3A4: ret  */
  11265     RECOMP_REGS_OUT();
  11266 }
  11267 
  11268 void sub_3608A3B0(void) {
  11269     int _fpu_cmp = 0;
  11270     uint32_t _cf = 0;
  11271     int _df = 1;
  11272     uint32_t _flag_k = FK_NONE;
  11273     uint32_t _flag_a = 0, _flag_b = 0;
  11274     uint32_t _itail_tgt = 0;
  11275     RECOMP_REGS_LOCALS
  11276     RECOMP_ENTER(0x3608A3B0u);
  11277 
  11278 L_3608A3B0:
  11279     PUSH32(esp, ebp); /* 0x3608A3B0: push ebp */
  11280     ebp = esp; /* 0x3608A3B1: mov ebp, esp */
  11281     PUSH32(esp, edi); /* 0x3608A3B3: push edi */
  11282     edi = MEM32(ebp + 0x8); /* 0x3608A3B4: mov edi, dword ptr [ebp + 8] */
  11283     /* test edi, edi */ /* 0x3608A3B7: test edi, edi */
  11284     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  11285     _cf = 0;
  11286     _flag_k = FK_TEST;
  11287     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A3C7; /* 0x3608A3B9: je 0x3608a3c7 */
  11288 L_3608A3BB:
  11289     PUSH32(esp, esi); /* 0x3608A3BB: push esi */
  11290     esi = MEM32(ebp + 0xC); /* 0x3608A3BC: mov esi, dword ptr [ebp + 0xc] */
  11291     ecx = 5; /* 0x3608A3BF: mov ecx, 5 */
  11292     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3608A3C4: 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; }
  11293     esi = POP32_VAL(esp); /* 0x3608A3C6: pop esi */
  11294 L_3608A3C7:
  11295     edi = POP32_VAL(esp); /* 0x3608A3C7: pop edi */
  11296     ebp = POP32_VAL(esp); /* 0x3608A3C8: pop ebp */
  11297     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A3C9: ret  */
  11298     RECOMP_REGS_OUT();
  11299 }
  11300 
  11301 void sub_3608A3D0(void) {
  11302     int _fpu_cmp = 0;
  11303     uint32_t _cf = 0;
  11304     int _df = 1;
  11305     uint32_t _flag_k = FK_NONE;
  11306     uint32_t _flag_a = 0, _flag_b = 0;
  11307     uint32_t _itail_tgt = 0;
  11308     RECOMP_REGS_LOCALS
  11309     RECOMP_ENTER(0x3608A3D0u);
  11310 
  11311 L_3608A3D0:
  11312     PUSH32(esp, ebp); /* 0x3608A3D0: push ebp */
  11313     ebp = esp; /* 0x3608A3D1: mov ebp, esp */
  11314     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608A3D3: push -1 */
  11315     PUSH32(esp, 0x36165DFBu); /* 0x3608A3D5: push 0x36165dfb */
  11316     eax = MEM32(FS_BASE + (0)); /* 0x3608A3DA: mov eax, dword ptr fs:[0] */
  11317     PUSH32(esp, eax); /* 0x3608A3E0: push eax */
  11318     MEM32(FS_BASE + (0)) = esp; /* 0x3608A3E1: mov dword ptr fs:[0], esp */
  11319     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11321     esp = esp - 0xCu; /* 0x3608A3E8: sub esp, 0xc */
  11322     _flag_k = FK_CMP;
  11323     PUSH32(esp, ebx); /* 0x3608A3EB: push ebx */
  11324     PUSH32(esp, esi); /* 0x3608A3EC: push esi */
  11325     PUSH32(esp, edi); /* 0x3608A3ED: push edi */
  11326     edi = ecx; /* 0x3608A3EE: mov edi, ecx */
  11327     PUSH32(esp, 0x14u); /* 0x3608A3F0: push 0x14 */
  11328     MEM32(edi) = 0x36171EDCu; /* 0x3608A3F2: mov dword ptr [edi], 0x36171edc */
  11329     RECOMP_ICALL(0x3615FD6Au); /* 0x3608A3F8: call 0x3615fd6a */ /* not lifted */
  11330     RECOMP_FLAGS_IN();
  11331     esi = eax; /* 0x3608A3FD: mov esi, eax */
  11332     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11333     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11334     esp = esp + 4; /* 0x3608A3FF: add esp, 4 */
  11335     _flag_k = FK_ADD;
  11336     MEM32(ebp + (-0x18)) = esi; /* 0x3608A402: mov dword ptr [ebp - 0x18], esi */
  11337     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11338     ebx = 0; /* 0x3608A405: xor ebx, ebx */
  11339     _cf = 0;
  11340     _flag_k = FK_TEST;
  11341     /* cmp esi, ebx */ /* 0x3608A407: cmp esi, ebx */
  11342     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  11343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11344     _flag_k = FK_CMP;
  11345     MEM32(ebp + (-0x4)) = ebx; /* 0x3608A409: mov dword ptr [ebp - 4], ebx */
  11346     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A47F; /* 0x3608A40C: je 0x3608a47f */
  11347 L_3608A40E:
  11348     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3608A40E: mov al, byte ptr [ebp - 0xd] */
  11349     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3608A411: mov cl, byte ptr [ebp - 0xd] */
  11350     PUSH32(esp, 0x18u); /* 0x3608A414: push 0x18 */
  11351     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3608A416: mov byte ptr [esi], al */
  11352     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3608A418: mov byte ptr [esi + 1], cl */
  11353     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3608A41B: mov byte ptr [esi + 0xc], bl */
  11354     RECOMP_ICALL(0x3615FD6Au); /* 0x3608A41E: call 0x3615fd6a */ /* not lifted */
  11355     RECOMP_FLAGS_IN();
  11356     MEM32(eax + 0x4) = ebx; /* 0x3608A423: mov dword ptr [eax + 4], ebx */
  11357     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3608A426: mov byte ptr [eax + 0x15], bl */
  11358     SET_LO8(ecx, 1); /* 0x3608A429: mov cl, 1 */
  11359     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3608A42B: mov byte ptr [eax + 0x14], cl */
  11360     MEM32(esi + 0x8) = eax; /* 0x3608A42E: mov dword ptr [esi + 8], eax */
  11361     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3608A431: mov byte ptr [eax + 0x15], cl */
  11362     edx = MEM32(esi + 0x8); /* 0x3608A434: mov edx, dword ptr [esi + 8] */
  11363     MEM32(edx) = ebx; /* 0x3608A437: mov dword ptr [edx], ebx */
  11364     eax = MEM32(esi + 0x8); /* 0x3608A439: mov eax, dword ptr [esi + 8] */
  11365     MEM32(eax + 0x8) = ebx; /* 0x3608A43C: mov dword ptr [eax + 8], ebx */
  11366     ecx = MEM32(esi + 0x8); /* 0x3608A43F: mov ecx, dword ptr [esi + 8] */
  11367     PUSH32(esp, 0x18u); /* 0x3608A442: push 0x18 */
  11368     MEM32(ebp + (-0x14)) = ecx; /* 0x3608A444: mov dword ptr [ebp - 0x14], ecx */
  11369     RECOMP_ICALL(0x3615FD6Au); /* 0x3608A447: call 0x3615fd6a */ /* not lifted */
  11370     RECOMP_FLAGS_IN();
  11371     edx = MEM32(ebp + (-0x14)); /* 0x3608A44C: mov edx, dword ptr [ebp - 0x14] */
  11372     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3608A44F: mov byte ptr [eax + 0x14], bl */
  11373     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3608A452: mov byte ptr [eax + 0x15], bl */
  11374     MEM32(eax + 0x4) = edx; /* 0x3608A455: mov dword ptr [eax + 4], edx */
  11375     MEM32(esi + 0x4) = eax; /* 0x3608A458: mov dword ptr [esi + 4], eax */
  11376     MEM32(eax) = eax; /* 0x3608A45B: mov dword ptr [eax], eax */
  11377     eax = MEM32(esi + 0x4); /* 0x3608A45D: mov eax, dword ptr [esi + 4] */
  11378     MEM32(eax + 0x8) = eax; /* 0x3608A460: mov dword ptr [eax + 8], eax */
  11379     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11381     esp = esp + 8; /* 0x3608A463: add esp, 8 */
  11382     _flag_k = FK_ADD;
  11383     MEM32(esi + 0x10) = ebx; /* 0x3608A466: mov dword ptr [esi + 0x10], ebx */
  11384     MEM32(edi + 0x4) = esi; /* 0x3608A469: mov dword ptr [edi + 4], esi */
  11385     eax = edi; /* 0x3608A46C: mov eax, edi */
  11386     edi = POP32_VAL(esp); /* 0x3608A46E: pop edi */
  11387     esi = POP32_VAL(esp); /* 0x3608A46F: pop esi */
  11388     ebx = POP32_VAL(esp); /* 0x3608A470: pop ebx */
  11389     ecx = MEM32(ebp + (-0xC)); /* 0x3608A471: mov ecx, dword ptr [ebp - 0xc] */
  11390     MEM32(FS_BASE + (0)) = ecx; /* 0x3608A474: mov dword ptr fs:[0], ecx */
  11391     esp = ebp; /* 0x3608A47B: mov esp, ebp */
  11392     ebp = POP32_VAL(esp); /* 0x3608A47D: pop ebp */
  11393     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A47E: ret  */
  11394 L_3608A47F:
  11395     ecx = MEM32(ebp + (-0xC)); /* 0x3608A47F: mov ecx, dword ptr [ebp - 0xc] */
  11396     MEM32(edi + 0x4) = ebx; /* 0x3608A482: mov dword ptr [edi + 4], ebx */
  11397     eax = edi; /* 0x3608A485: mov eax, edi */
  11398     edi = POP32_VAL(esp); /* 0x3608A487: pop edi */
  11399     esi = POP32_VAL(esp); /* 0x3608A488: pop esi */
  11400     ebx = POP32_VAL(esp); /* 0x3608A489: pop ebx */
  11401     MEM32(FS_BASE + (0)) = ecx; /* 0x3608A48A: mov dword ptr fs:[0], ecx */
  11402     esp = ebp; /* 0x3608A491: mov esp, ebp */
  11403     ebp = POP32_VAL(esp); /* 0x3608A493: pop ebp */
  11404     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A494: ret  */
  11405     RECOMP_REGS_OUT();
  11406 }
  11407 
  11408 void sub_3608A4A0(void) {
  11409     int _fpu_cmp = 0;
  11410     uint32_t _cf = 0;
  11411     int _df = 1;
  11412     uint32_t _flag_k = FK_NONE;
  11413     uint32_t _flag_a = 0, _flag_b = 0;
  11414     uint32_t _itail_tgt = 0;
  11415     RECOMP_REGS_LOCALS
  11416     RECOMP_ENTER(0x3608A4A0u);
  11417 
  11418 L_3608A4A0:
  11419     PUSH32(esp, ebp); /* 0x3608A4A0: push ebp */
  11420     ebp = esp; /* 0x3608A4A1: mov ebp, esp */
  11421     PUSH32(esp, esi); /* 0x3608A4A3: push esi */
  11422     esi = ecx; /* 0x3608A4A4: mov esi, ecx */
  11423     RECOMP_ICALL(0x3608A4D0u); /* 0x3608A4A6: call 0x3608a4d0 */ /* not lifted */
  11424     RECOMP_FLAGS_IN();
  11425     /* test MEM8(ebp + 0x8), 1 */ /* 0x3608A4AB: test byte ptr [ebp + 8], 1 */
  11426     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  11427     _cf = 0;
  11428     _flag_k = FK_NARROW(FK_TEST, 24);
  11429     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A4BA; /* 0x3608A4AF: je 0x3608a4ba */
  11430 L_3608A4B1:
  11431     PUSH32(esp, esi); /* 0x3608A4B1: push esi */
  11432     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4B2: call 0x3615fcc4 */ /* not lifted */
  11433     RECOMP_FLAGS_IN();
  11434     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11435     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11436     esp = esp + 4; /* 0x3608A4B7: add esp, 4 */
  11437     _flag_k = FK_ADD;
  11438 L_3608A4BA:
  11439     eax = esi; /* 0x3608A4BA: mov eax, esi */
  11440     esi = POP32_VAL(esp); /* 0x3608A4BC: pop esi */
  11441     ebp = POP32_VAL(esp); /* 0x3608A4BD: pop ebp */
  11442     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608A4BE: ret 4 */
  11443     RECOMP_REGS_OUT();
  11444 }
  11445 
  11446 void sub_3608A4D0(void) {
  11447     int _fpu_cmp = 0;
  11448     uint32_t _cf = 0;
  11449     int _df = 1;
  11450     uint32_t _flag_k = FK_NONE;
  11451     uint32_t _flag_a = 0, _flag_b = 0;
  11452     uint32_t _itail_tgt = 0;
  11453     RECOMP_REGS_LOCALS
  11454     RECOMP_ENTER(0x3608A4D0u);
  11455 
  11456 L_3608A4D0:
  11457     PUSH32(esp, ebp); /* 0x3608A4D0: push ebp */
  11458     ebp = esp; /* 0x3608A4D1: mov ebp, esp */
  11459     PUSH32(esp, ecx); /* 0x3608A4D3: push ecx */
  11460     PUSH32(esp, ebx); /* 0x3608A4D4: push ebx */
  11461     ebx = ecx; /* 0x3608A4D5: mov ebx, ecx */
  11462     eax = MEM32(ebx + 0x4); /* 0x3608A4D7: mov eax, dword ptr [ebx + 4] */
  11463     MEM32(ebx) = 0x36171EDCu; /* 0x3608A4DA: mov dword ptr [ebx], 0x36171edc */
  11464     eax = MEM32(eax + 0x4); /* 0x3608A4E0: mov eax, dword ptr [eax + 4] */
  11465     PUSH32(esp, esi); /* 0x3608A4E3: push esi */
  11466     esi = MEM32(eax); /* 0x3608A4E4: mov esi, dword ptr [eax] */
  11467     /* cmp esi, eax */ /* 0x3608A4E6: cmp esi, eax */
  11468     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  11469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11470     _flag_k = FK_CMP;
  11471     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A549; /* 0x3608A4E8: je 0x3608a549 */
  11472 L_3608A4EA:
  11473     PUSH32(esp, edi); /* 0x3608A4EA: push edi */
  11474 L_3608A4EB:
  11475     edi = MEM32(esi + 0x10); /* 0x3608A4EB: mov edi, dword ptr [esi + 0x10] */
  11476     /* test edi, edi */ /* 0x3608A4EE: test edi, edi */
  11477     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  11478     _cf = 0;
  11479     _flag_k = FK_TEST;
  11480     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A512; /* 0x3608A4F0: je 0x3608a512 */
  11481 L_3608A4F2:
  11482     eax = MEM32(edi + 0x4); /* 0x3608A4F2: mov eax, dword ptr [edi + 4] */
  11483     PUSH32(esp, eax); /* 0x3608A4F5: push eax */
  11484     MEM32(ebp + (-0x4)) = eax; /* 0x3608A4F6: mov dword ptr [ebp - 4], eax */
  11485     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4F9: call 0x3615fcc4 */ /* not lifted */
  11486     RECOMP_FLAGS_IN();
  11487     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11488     eax = 0; /* 0x3608A4FE: xor eax, eax */
  11489     _cf = 0;
  11490     _flag_k = FK_TEST;
  11491     PUSH32(esp, edi); /* 0x3608A500: push edi */
  11492     MEM32(edi + 0x4) = eax; /* 0x3608A501: mov dword ptr [edi + 4], eax */
  11493     MEM32(edi + 0x8) = eax; /* 0x3608A504: mov dword ptr [edi + 8], eax */
  11494     MEM32(edi + 0xC) = eax; /* 0x3608A507: mov dword ptr [edi + 0xc], eax */
  11495     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A50A: call 0x3615fcc4 */ /* not lifted */
  11496     RECOMP_FLAGS_IN();
  11497     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11499     esp = esp + 8; /* 0x3608A50F: add esp, 8 */
  11500     _flag_k = FK_ADD;
  11501 L_3608A512:
  11502     eax = MEM32(esi + 0x8); /* 0x3608A512: mov eax, dword ptr [esi + 8] */
  11503     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608A515: mov cl, byte ptr [eax + 0x15] */
  11504     /* test LO8(ecx), LO8(ecx) */ /* 0x3608A518: test cl, cl */
  11505     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11506     _cf = 0;
  11507     _flag_k = FK_NARROW(FK_TEST, 24);
  11508     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A527; /* 0x3608A51A: jne 0x3608a527 */
  11509 L_3608A51C:
  11510     PUSH32(esp, eax); /* 0x3608A51C: push eax */
  11511     RECOMP_ICALL(0x3614FC90u); /* 0x3608A51D: call 0x3614fc90 */ /* not lifted */
  11512     RECOMP_FLAGS_IN();
  11513     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11514     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11515     esp = esp + 4; /* 0x3608A522: add esp, 4 */
  11516     _flag_k = FK_ADD;
  11517     goto L_3608A53E; /* 0x3608A525: jmp 0x3608a53e */
  11518 L_3608A527:
  11519     eax = MEM32(esi + 0x4); /* 0x3608A527: mov eax, dword ptr [esi + 4] */
  11520     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A52A: cmp esi, dword ptr [eax + 8] */
  11521     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11523     _flag_k = FK_CMP;
  11524     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A539; /* 0x3608A52D: jne 0x3608a539 */
  11525 L_3608A52F:
  11526     esi = eax; /* 0x3608A52F: mov esi, eax */
  11527     eax = MEM32(eax + 0x4); /* 0x3608A531: mov eax, dword ptr [eax + 4] */
  11528     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A534: cmp esi, dword ptr [eax + 8] */
  11529     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11531     _flag_k = FK_CMP;
  11532     RECOMP_BACKEDGE();
  11533     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A52F; /* 0x3608A537: je 0x3608a52f */
  11534 L_3608A539:
  11535     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608A539: cmp dword ptr [esi + 8], eax */
  11536     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  11537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11538     _flag_k = FK_CMP;
  11539     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A540; /* 0x3608A53C: je 0x3608a540 */
  11540 L_3608A53E:
  11541     esi = eax; /* 0x3608A53E: mov esi, eax */
  11542 L_3608A540:
  11543     ecx = MEM32(ebx + 0x4); /* 0x3608A540: mov ecx, dword ptr [ebx + 4] */
  11544     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608A543: cmp esi, dword ptr [ecx + 4] */
  11545     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11547     _flag_k = FK_CMP;
  11548     RECOMP_BACKEDGE();
  11549     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A4EB; /* 0x3608A546: jne 0x3608a4eb */
  11550 L_3608A548:
  11551     edi = POP32_VAL(esp); /* 0x3608A548: pop edi */
  11552 L_3608A549:
  11553     esi = MEM32(ebx + 0x4); /* 0x3608A549: mov esi, dword ptr [ebx + 4] */
  11554     /* test esi, esi */ /* 0x3608A54C: test esi, esi */
  11555     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11556     _cf = 0;
  11557     _flag_k = FK_TEST;
  11558     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A560; /* 0x3608A54E: je 0x3608a560 */
  11559 L_3608A550:
  11560     ecx = esi; /* 0x3608A550: mov ecx, esi */
  11561     RECOMP_ICALL(0x3608A570u); /* 0x3608A552: call 0x3608a570 */ /* not lifted */
  11562     RECOMP_FLAGS_IN();
  11563     PUSH32(esp, esi); /* 0x3608A557: push esi */
  11564     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A558: call 0x3615fcc4 */ /* not lifted */
  11565     RECOMP_FLAGS_IN();
  11566     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11567     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11568     esp = esp + 4; /* 0x3608A55D: add esp, 4 */
  11569     _flag_k = FK_ADD;
  11570 L_3608A560:
  11571     esi = POP32_VAL(esp); /* 0x3608A560: pop esi */
  11572     MEM32(ebx + 0x4) = 0; /* 0x3608A561: mov dword ptr [ebx + 4], 0 */
  11573     ebx = POP32_VAL(esp); /* 0x3608A568: pop ebx */
  11574     esp = ebp; /* 0x3608A569: mov esp, ebp */
  11575     ebp = POP32_VAL(esp); /* 0x3608A56B: pop ebp */
  11576     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A56C: ret  */
  11577     RECOMP_REGS_OUT();
  11578 }
  11579 
  11580 void sub_3608A4EB(void) {
  11581     int _fpu_cmp = 0;
  11582     uint32_t _cf = 0;
  11583     int _df = 1;
  11584     uint32_t _flag_k = FK_NONE;
  11585     uint32_t _flag_a = 0, _flag_b = 0;
  11586     uint32_t _itail_tgt = 0;
  11587     RECOMP_REGS_LOCALS
  11588     RECOMP_ENTER(0x3608A4EBu);
  11589 
  11590 L_3608A4EB:
  11591     edi = MEM32(esi + 0x10); /* 0x3608A4EB: mov edi, dword ptr [esi + 0x10] */
  11592     /* test edi, edi */ /* 0x3608A4EE: test edi, edi */
  11593     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  11594     _cf = 0;
  11595     _flag_k = FK_TEST;
  11596     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A512; /* 0x3608A4F0: je 0x3608a512 */
  11597 L_3608A4F2:
  11598     eax = MEM32(edi + 0x4); /* 0x3608A4F2: mov eax, dword ptr [edi + 4] */
  11599     PUSH32(esp, eax); /* 0x3608A4F5: push eax */
  11600     MEM32(ebp + (-0x4)) = eax; /* 0x3608A4F6: mov dword ptr [ebp - 4], eax */
  11601     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4F9: call 0x3615fcc4 */ /* not lifted */
  11602     RECOMP_FLAGS_IN();
  11603     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11604     eax = 0; /* 0x3608A4FE: xor eax, eax */
  11605     _cf = 0;
  11606     _flag_k = FK_TEST;
  11607     PUSH32(esp, edi); /* 0x3608A500: push edi */
  11608     MEM32(edi + 0x4) = eax; /* 0x3608A501: mov dword ptr [edi + 4], eax */
  11609     MEM32(edi + 0x8) = eax; /* 0x3608A504: mov dword ptr [edi + 8], eax */
  11610     MEM32(edi + 0xC) = eax; /* 0x3608A507: mov dword ptr [edi + 0xc], eax */
  11611     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A50A: call 0x3615fcc4 */ /* not lifted */
  11612     RECOMP_FLAGS_IN();
  11613     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11614     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11615     esp = esp + 8; /* 0x3608A50F: add esp, 8 */
  11616     _flag_k = FK_ADD;
  11617 L_3608A512:
  11618     eax = MEM32(esi + 0x8); /* 0x3608A512: mov eax, dword ptr [esi + 8] */
  11619     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608A515: mov cl, byte ptr [eax + 0x15] */
  11620     /* test LO8(ecx), LO8(ecx) */ /* 0x3608A518: test cl, cl */
  11621     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11622     _cf = 0;
  11623     _flag_k = FK_NARROW(FK_TEST, 24);
  11624     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A527; /* 0x3608A51A: jne 0x3608a527 */
  11625 L_3608A51C:
  11626     PUSH32(esp, eax); /* 0x3608A51C: push eax */
  11627     RECOMP_ICALL(0x3614FC90u); /* 0x3608A51D: call 0x3614fc90 */ /* not lifted */
  11628     RECOMP_FLAGS_IN();
  11629     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11630     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11631     esp = esp + 4; /* 0x3608A522: add esp, 4 */
  11632     _flag_k = FK_ADD;
  11633     goto L_3608A53E; /* 0x3608A525: jmp 0x3608a53e */
  11634 L_3608A527:
  11635     eax = MEM32(esi + 0x4); /* 0x3608A527: mov eax, dword ptr [esi + 4] */
  11636     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A52A: cmp esi, dword ptr [eax + 8] */
  11637     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11638     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11639     _flag_k = FK_CMP;
  11640     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A539; /* 0x3608A52D: jne 0x3608a539 */
  11641 L_3608A52F:
  11642     esi = eax; /* 0x3608A52F: mov esi, eax */
  11643     eax = MEM32(eax + 0x4); /* 0x3608A531: mov eax, dword ptr [eax + 4] */
  11644     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A534: cmp esi, dword ptr [eax + 8] */
  11645     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11646     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11647     _flag_k = FK_CMP;
  11648     RECOMP_BACKEDGE();
  11649     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A52F; /* 0x3608A537: je 0x3608a52f */
  11650 L_3608A539:
  11651     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608A539: cmp dword ptr [esi + 8], eax */
  11652     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  11653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11654     _flag_k = FK_CMP;
  11655     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A540; /* 0x3608A53C: je 0x3608a540 */
  11656 L_3608A53E:
  11657     esi = eax; /* 0x3608A53E: mov esi, eax */
  11658 L_3608A540:
  11659     ecx = MEM32(ebx + 0x4); /* 0x3608A540: mov ecx, dword ptr [ebx + 4] */
  11660     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608A543: cmp esi, dword ptr [ecx + 4] */
  11661     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11663     _flag_k = FK_CMP;
  11664     RECOMP_BACKEDGE();
  11665     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A4EB; /* 0x3608A546: jne 0x3608a4eb */
  11666 L_3608A548:
  11667     edi = POP32_VAL(esp); /* 0x3608A548: pop edi */
  11668     esi = MEM32(ebx + 0x4); /* 0x3608A549: mov esi, dword ptr [ebx + 4] */
  11669     /* test esi, esi */ /* 0x3608A54C: test esi, esi */
  11670     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11671     _cf = 0;
  11672     _flag_k = FK_TEST;
  11673     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A560; /* 0x3608A54E: je 0x3608a560 */
  11674 L_3608A550:
  11675     ecx = esi; /* 0x3608A550: mov ecx, esi */
  11676     RECOMP_ICALL(0x3608A570u); /* 0x3608A552: call 0x3608a570 */ /* not lifted */
  11677     RECOMP_FLAGS_IN();
  11678     PUSH32(esp, esi); /* 0x3608A557: push esi */
  11679     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A558: call 0x3615fcc4 */ /* not lifted */
  11680     RECOMP_FLAGS_IN();
  11681     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11682     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11683     esp = esp + 4; /* 0x3608A55D: add esp, 4 */
  11684     _flag_k = FK_ADD;
  11685 L_3608A560:
  11686     esi = POP32_VAL(esp); /* 0x3608A560: pop esi */
  11687     MEM32(ebx + 0x4) = 0; /* 0x3608A561: mov dword ptr [ebx + 4], 0 */
  11688     ebx = POP32_VAL(esp); /* 0x3608A568: pop ebx */
  11689     esp = ebp; /* 0x3608A569: mov esp, ebp */
  11690     ebp = POP32_VAL(esp); /* 0x3608A56B: pop ebp */
  11691     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A56C: ret  */
  11692     RECOMP_REGS_OUT();
  11693 }
  11694 
  11695 void sub_3608A53E(void) {
  11696     int _fpu_cmp = 0;
  11697     uint32_t _cf = 0;
  11698     int _df = 1;
  11699     uint32_t _flag_k = FK_NONE;
  11700     uint32_t _flag_a = 0, _flag_b = 0;
  11701     uint32_t _itail_tgt = 0;
  11702     RECOMP_REGS_LOCALS
  11703     RECOMP_ENTER(0x3608A53Eu);
  11704 
  11705     goto L_3608A53E;
  11706 L_3608A4EB:
  11707     edi = MEM32(esi + 0x10); /* 0x3608A4EB: mov edi, dword ptr [esi + 0x10] */
  11708     /* test edi, edi */ /* 0x3608A4EE: test edi, edi */
  11709     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  11710     _cf = 0;
  11711     _flag_k = FK_TEST;
  11712     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A512; /* 0x3608A4F0: je 0x3608a512 */
  11713 L_3608A4F2:
  11714     eax = MEM32(edi + 0x4); /* 0x3608A4F2: mov eax, dword ptr [edi + 4] */
  11715     PUSH32(esp, eax); /* 0x3608A4F5: push eax */
  11716     MEM32(ebp + (-0x4)) = eax; /* 0x3608A4F6: mov dword ptr [ebp - 4], eax */
  11717     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4F9: call 0x3615fcc4 */ /* not lifted */
  11718     RECOMP_FLAGS_IN();
  11719     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11720     eax = 0; /* 0x3608A4FE: xor eax, eax */
  11721     _cf = 0;
  11722     _flag_k = FK_TEST;
  11723     PUSH32(esp, edi); /* 0x3608A500: push edi */
  11724     MEM32(edi + 0x4) = eax; /* 0x3608A501: mov dword ptr [edi + 4], eax */
  11725     MEM32(edi + 0x8) = eax; /* 0x3608A504: mov dword ptr [edi + 8], eax */
  11726     MEM32(edi + 0xC) = eax; /* 0x3608A507: mov dword ptr [edi + 0xc], eax */
  11727     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A50A: call 0x3615fcc4 */ /* not lifted */
  11728     RECOMP_FLAGS_IN();
  11729     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11730     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11731     esp = esp + 8; /* 0x3608A50F: add esp, 8 */
  11732     _flag_k = FK_ADD;
  11733 L_3608A512:
  11734     eax = MEM32(esi + 0x8); /* 0x3608A512: mov eax, dword ptr [esi + 8] */
  11735     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608A515: mov cl, byte ptr [eax + 0x15] */
  11736     /* test LO8(ecx), LO8(ecx) */ /* 0x3608A518: test cl, cl */
  11737     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11738     _cf = 0;
  11739     _flag_k = FK_NARROW(FK_TEST, 24);
  11740     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A527; /* 0x3608A51A: jne 0x3608a527 */
  11741 L_3608A51C:
  11742     PUSH32(esp, eax); /* 0x3608A51C: push eax */
  11743     RECOMP_ICALL(0x3614FC90u); /* 0x3608A51D: call 0x3614fc90 */ /* not lifted */
  11744     RECOMP_FLAGS_IN();
  11745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11747     esp = esp + 4; /* 0x3608A522: add esp, 4 */
  11748     _flag_k = FK_ADD;
  11749     goto L_3608A53E; /* 0x3608A525: jmp 0x3608a53e */
  11750 L_3608A527:
  11751     eax = MEM32(esi + 0x4); /* 0x3608A527: mov eax, dword ptr [esi + 4] */
  11752     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A52A: cmp esi, dword ptr [eax + 8] */
  11753     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11755     _flag_k = FK_CMP;
  11756     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A539; /* 0x3608A52D: jne 0x3608a539 */
  11757 L_3608A52F:
  11758     esi = eax; /* 0x3608A52F: mov esi, eax */
  11759     eax = MEM32(eax + 0x4); /* 0x3608A531: mov eax, dword ptr [eax + 4] */
  11760     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A534: cmp esi, dword ptr [eax + 8] */
  11761     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11763     _flag_k = FK_CMP;
  11764     RECOMP_BACKEDGE();
  11765     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A52F; /* 0x3608A537: je 0x3608a52f */
  11766 L_3608A539:
  11767     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608A539: cmp dword ptr [esi + 8], eax */
  11768     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  11769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11770     _flag_k = FK_CMP;
  11771     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A540; /* 0x3608A53C: je 0x3608a540 */
  11772 L_3608A53E:
  11773     esi = eax; /* 0x3608A53E: mov esi, eax */
  11774 L_3608A540:
  11775     ecx = MEM32(ebx + 0x4); /* 0x3608A540: mov ecx, dword ptr [ebx + 4] */
  11776     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608A543: cmp esi, dword ptr [ecx + 4] */
  11777     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11779     _flag_k = FK_CMP;
  11780     RECOMP_BACKEDGE();
  11781     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A4EB; /* 0x3608A546: jne 0x3608a4eb */
  11782 L_3608A548:
  11783     edi = POP32_VAL(esp); /* 0x3608A548: pop edi */
  11784     esi = MEM32(ebx + 0x4); /* 0x3608A549: mov esi, dword ptr [ebx + 4] */
  11785     /* test esi, esi */ /* 0x3608A54C: test esi, esi */
  11786     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11787     _cf = 0;
  11788     _flag_k = FK_TEST;
  11789     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A560; /* 0x3608A54E: je 0x3608a560 */
  11790 L_3608A550:
  11791     ecx = esi; /* 0x3608A550: mov ecx, esi */
  11792     RECOMP_ICALL(0x3608A570u); /* 0x3608A552: call 0x3608a570 */ /* not lifted */
  11793     RECOMP_FLAGS_IN();
  11794     PUSH32(esp, esi); /* 0x3608A557: push esi */
  11795     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A558: call 0x3615fcc4 */ /* not lifted */
  11796     RECOMP_FLAGS_IN();
  11797     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11798     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11799     esp = esp + 4; /* 0x3608A55D: add esp, 4 */
  11800     _flag_k = FK_ADD;
  11801 L_3608A560:
  11802     esi = POP32_VAL(esp); /* 0x3608A560: pop esi */
  11803     MEM32(ebx + 0x4) = 0; /* 0x3608A561: mov dword ptr [ebx + 4], 0 */
  11804     ebx = POP32_VAL(esp); /* 0x3608A568: pop ebx */
  11805     esp = ebp; /* 0x3608A569: mov esp, ebp */
  11806     ebp = POP32_VAL(esp); /* 0x3608A56B: pop ebp */
  11807     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A56C: ret  */
  11808     RECOMP_REGS_OUT();
  11809 }
  11810 
  11811 void sub_3608A540(void) {
  11812     int _fpu_cmp = 0;
  11813     uint32_t _cf = 0;
  11814     int _df = 1;
  11815     uint32_t _flag_k = FK_NONE;
  11816     uint32_t _flag_a = 0, _flag_b = 0;
  11817     uint32_t _itail_tgt = 0;
  11818     RECOMP_REGS_LOCALS
  11819     RECOMP_ENTER(0x3608A540u);
  11820 
  11821     goto L_3608A540;
  11822 L_3608A4EB:
  11823     edi = MEM32(esi + 0x10); /* 0x3608A4EB: mov edi, dword ptr [esi + 0x10] */
  11824     /* test edi, edi */ /* 0x3608A4EE: test edi, edi */
  11825     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  11826     _cf = 0;
  11827     _flag_k = FK_TEST;
  11828     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A512; /* 0x3608A4F0: je 0x3608a512 */
  11829 L_3608A4F2:
  11830     eax = MEM32(edi + 0x4); /* 0x3608A4F2: mov eax, dword ptr [edi + 4] */
  11831     PUSH32(esp, eax); /* 0x3608A4F5: push eax */
  11832     MEM32(ebp + (-0x4)) = eax; /* 0x3608A4F6: mov dword ptr [ebp - 4], eax */
  11833     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4F9: call 0x3615fcc4 */ /* not lifted */
  11834     RECOMP_FLAGS_IN();
  11835     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11836     eax = 0; /* 0x3608A4FE: xor eax, eax */
  11837     _cf = 0;
  11838     _flag_k = FK_TEST;
  11839     PUSH32(esp, edi); /* 0x3608A500: push edi */
  11840     MEM32(edi + 0x4) = eax; /* 0x3608A501: mov dword ptr [edi + 4], eax */
  11841     MEM32(edi + 0x8) = eax; /* 0x3608A504: mov dword ptr [edi + 8], eax */
  11842     MEM32(edi + 0xC) = eax; /* 0x3608A507: mov dword ptr [edi + 0xc], eax */
  11843     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A50A: call 0x3615fcc4 */ /* not lifted */
  11844     RECOMP_FLAGS_IN();
  11845     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11846     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11847     esp = esp + 8; /* 0x3608A50F: add esp, 8 */
  11848     _flag_k = FK_ADD;
  11849 L_3608A512:
  11850     eax = MEM32(esi + 0x8); /* 0x3608A512: mov eax, dword ptr [esi + 8] */
  11851     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608A515: mov cl, byte ptr [eax + 0x15] */
  11852     /* test LO8(ecx), LO8(ecx) */ /* 0x3608A518: test cl, cl */
  11853     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11854     _cf = 0;
  11855     _flag_k = FK_NARROW(FK_TEST, 24);
  11856     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A527; /* 0x3608A51A: jne 0x3608a527 */
  11857 L_3608A51C:
  11858     PUSH32(esp, eax); /* 0x3608A51C: push eax */
  11859     RECOMP_ICALL(0x3614FC90u); /* 0x3608A51D: call 0x3614fc90 */ /* not lifted */
  11860     RECOMP_FLAGS_IN();
  11861     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11862     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11863     esp = esp + 4; /* 0x3608A522: add esp, 4 */
  11864     _flag_k = FK_ADD;
  11865     goto L_3608A53E; /* 0x3608A525: jmp 0x3608a53e */
  11866 L_3608A527:
  11867     eax = MEM32(esi + 0x4); /* 0x3608A527: mov eax, dword ptr [esi + 4] */
  11868     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A52A: cmp esi, dword ptr [eax + 8] */
  11869     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11871     _flag_k = FK_CMP;
  11872     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A539; /* 0x3608A52D: jne 0x3608a539 */
  11873 L_3608A52F:
  11874     esi = eax; /* 0x3608A52F: mov esi, eax */
  11875     eax = MEM32(eax + 0x4); /* 0x3608A531: mov eax, dword ptr [eax + 4] */
  11876     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A534: cmp esi, dword ptr [eax + 8] */
  11877     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  11878     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11879     _flag_k = FK_CMP;
  11880     RECOMP_BACKEDGE();
  11881     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A52F; /* 0x3608A537: je 0x3608a52f */
  11882 L_3608A539:
  11883     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608A539: cmp dword ptr [esi + 8], eax */
  11884     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  11885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11886     _flag_k = FK_CMP;
  11887     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A540; /* 0x3608A53C: je 0x3608a540 */
  11888 L_3608A53E:
  11889     esi = eax; /* 0x3608A53E: mov esi, eax */
  11890 L_3608A540:
  11891     ecx = MEM32(ebx + 0x4); /* 0x3608A540: mov ecx, dword ptr [ebx + 4] */
  11892     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608A543: cmp esi, dword ptr [ecx + 4] */
  11893     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  11894     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11895     _flag_k = FK_CMP;
  11896     RECOMP_BACKEDGE();
  11897     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A4EB; /* 0x3608A546: jne 0x3608a4eb */
  11898 L_3608A548:
  11899     edi = POP32_VAL(esp); /* 0x3608A548: pop edi */
  11900     esi = MEM32(ebx + 0x4); /* 0x3608A549: mov esi, dword ptr [ebx + 4] */
  11901     /* test esi, esi */ /* 0x3608A54C: test esi, esi */
  11902     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11903     _cf = 0;
  11904     _flag_k = FK_TEST;
  11905     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A560; /* 0x3608A54E: je 0x3608a560 */
  11906 L_3608A550:
  11907     ecx = esi; /* 0x3608A550: mov ecx, esi */
  11908     RECOMP_ICALL(0x3608A570u); /* 0x3608A552: call 0x3608a570 */ /* not lifted */
  11909     RECOMP_FLAGS_IN();
  11910     PUSH32(esp, esi); /* 0x3608A557: push esi */
  11911     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A558: call 0x3615fcc4 */ /* not lifted */
  11912     RECOMP_FLAGS_IN();
  11913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11915     esp = esp + 4; /* 0x3608A55D: add esp, 4 */
  11916     _flag_k = FK_ADD;
  11917 L_3608A560:
  11918     esi = POP32_VAL(esp); /* 0x3608A560: pop esi */
  11919     MEM32(ebx + 0x4) = 0; /* 0x3608A561: mov dword ptr [ebx + 4], 0 */
  11920     ebx = POP32_VAL(esp); /* 0x3608A568: pop ebx */
  11921     esp = ebp; /* 0x3608A569: mov esp, ebp */
  11922     ebp = POP32_VAL(esp); /* 0x3608A56B: pop ebp */
  11923     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A56C: ret  */
  11924     RECOMP_REGS_OUT();
  11925 }
  11926 
  11927 void sub_3608A570(void) {
  11928     int _fpu_cmp = 0;
  11929     uint32_t _cf = 0;
  11930     int _df = 1;
  11931     uint32_t _flag_k = FK_NONE;
  11932     uint32_t _flag_a = 0, _flag_b = 0;
  11933     uint32_t _itail_tgt = 0;
  11934     RECOMP_REGS_LOCALS
  11935     RECOMP_ENTER(0x3608A570u);
  11936 
  11937 L_3608A570:
  11938     PUSH32(esp, ebp); /* 0x3608A570: push ebp */
  11939     ebp = esp; /* 0x3608A571: mov ebp, esp */
  11940     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11942     esp = esp - 8; /* 0x3608A573: sub esp, 8 */
  11943     _flag_k = FK_CMP;
  11944     PUSH32(esp, ebx); /* 0x3608A576: push ebx */
  11945     PUSH32(esp, esi); /* 0x3608A577: push esi */
  11946     esi = ecx; /* 0x3608A578: mov esi, ecx */
  11947     ecx = MEM32(esi + 0x10); /* 0x3608A57A: mov ecx, dword ptr [esi + 0x10] */
  11948     /* test ecx, ecx */ /* 0x3608A57D: test ecx, ecx */
  11949     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  11950     _cf = 0;
  11951     _flag_k = FK_TEST;
  11952     PUSH32(esp, edi); /* 0x3608A57F: push edi */
  11953     edi = MEM32(esi + 0x4); /* 0x3608A580: mov edi, dword ptr [esi + 4] */
  11954     eax = MEM32(edi); /* 0x3608A583: mov eax, dword ptr [edi] */
  11955     MEM32(ebp + (-0x4)) = eax; /* 0x3608A585: mov dword ptr [ebp - 4], eax */
  11956     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A5E5; /* 0x3608A588: je 0x3608a5e5 */
  11957 L_3608A58A:
  11958     ecx = eax; /* 0x3608A58A: mov ecx, eax */
  11959     /* cmp eax, ecx */ /* 0x3608A58C: cmp eax, ecx */
  11960     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  11961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11962     _flag_k = FK_CMP;
  11963     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A5E5; /* 0x3608A58E: jne 0x3608a5e5 */
  11964 L_3608A590:
  11965     /* cmp edi, edi */ /* 0x3608A590: cmp edi, edi */
  11966     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  11967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11968     _flag_k = FK_CMP;
  11969     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A5E5; /* 0x3608A592: jne 0x3608a5e5 */
  11970 L_3608A594:
  11971     ebx = MEM32(edi + 0x4); /* 0x3608A594: mov ebx, dword ptr [edi + 4] */
  11972     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3608A597: cmp ebx, dword ptr [esi + 8] */
  11973     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  11974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11975     _flag_k = FK_CMP;
  11976     edi = ebx; /* 0x3608A59A: mov edi, ebx */
  11977     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A5BD; /* 0x3608A59C: je 0x3608a5bd */
  11978 L_3608A59E:
  11979     eax = MEM32(edi + 0x8); /* 0x3608A59E: mov eax, dword ptr [edi + 8] */
  11980     PUSH32(esp, eax); /* 0x3608A5A1: push eax */
  11981     ecx = esi; /* 0x3608A5A2: mov ecx, esi */
  11982     RECOMP_ICALL(0x3608A9E0u); /* 0x3608A5A4: call 0x3608a9e0 */ /* not lifted */
  11983     RECOMP_FLAGS_IN();
  11984     edi = MEM32(edi); /* 0x3608A5A9: mov edi, dword ptr [edi] */
  11985     PUSH32(esp, ebx); /* 0x3608A5AB: push ebx */
  11986     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A5AC: call 0x3615fcc4 */ /* not lifted */
  11987     RECOMP_FLAGS_IN();
  11988     eax = MEM32(esi + 0x8); /* 0x3608A5B1: mov eax, dword ptr [esi + 8] */
  11989     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11990     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11991     esp = esp + 4; /* 0x3608A5B4: add esp, 4 */
  11992     _flag_k = FK_ADD;
  11993     /* cmp edi, eax */ /* 0x3608A5B7: cmp edi, eax */
  11994     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  11995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11996     _flag_k = FK_CMP;
  11997     ebx = edi; /* 0x3608A5B9: mov ebx, edi */
  11998     RECOMP_BACKEDGE();
  11999     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A59E; /* 0x3608A5BB: jne 0x3608a59e */
  12000 L_3608A5BD:
  12001     ecx = MEM32(esi + 0x4); /* 0x3608A5BD: mov ecx, dword ptr [esi + 4] */
  12002     edx = MEM32(esi + 0x8); /* 0x3608A5C0: mov edx, dword ptr [esi + 8] */
  12003     MEM32(ecx + 0x4) = edx; /* 0x3608A5C3: mov dword ptr [ecx + 4], edx */
  12004     eax = MEM32(esi + 0x4); /* 0x3608A5C6: mov eax, dword ptr [esi + 4] */
  12005     MEM32(esi + 0x10) = 0; /* 0x3608A5C9: mov dword ptr [esi + 0x10], 0 */
  12006     MEM32(eax) = eax; /* 0x3608A5D0: mov dword ptr [eax], eax */
  12007     eax = MEM32(esi + 0x4); /* 0x3608A5D2: mov eax, dword ptr [esi + 4] */
  12008     MEM32(eax + 0x8) = eax; /* 0x3608A5D5: mov dword ptr [eax + 8], eax */
  12009     eax = ebp + (-0x8); /* 0x3608A5D8: lea eax, [ebp - 8] */
  12010     PUSH32(esp, eax); /* 0x3608A5DB: push eax */
  12011     ecx = esi; /* 0x3608A5DC: mov ecx, esi */
  12012     RECOMP_ICALL(0x3614FC30u); /* 0x3608A5DE: call 0x3614fc30 */ /* not lifted */
  12013     RECOMP_FLAGS_IN();
  12014     goto L_3608A606; /* 0x3608A5E3: jmp 0x3608a606 */
  12015 L_3608A5E5:
  12016     /* cmp eax, edi */ /* 0x3608A5E5: cmp eax, edi */
  12017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  12018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12019     _flag_k = FK_CMP;
  12020     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A606; /* 0x3608A5E7: je 0x3608a606 */
  12021 L_3608A5E9:
  12022     ecx = ebp + (-0x4); /* 0x3608A5E9: lea ecx, [ebp - 4] */
  12023     ebx = eax; /* 0x3608A5EC: mov ebx, eax */
  12024     RECOMP_ICALL(0x36064140u); /* 0x3608A5EE: call 0x36064140 */ /* not lifted */
  12025     RECOMP_FLAGS_IN();
  12026     PUSH32(esp, ebx); /* 0x3608A5F3: push ebx */
  12027     ecx = ebp + (-0x8); /* 0x3608A5F4: lea ecx, [ebp - 8] */
  12028     PUSH32(esp, ecx); /* 0x3608A5F7: push ecx */
  12029     ecx = esi; /* 0x3608A5F8: mov ecx, esi */
  12030     RECOMP_ICALL(0x360588E0u); /* 0x3608A5FA: call 0x360588e0 */ /* not lifted */
  12031     RECOMP_FLAGS_IN();
  12032     eax = MEM32(ebp + (-0x4)); /* 0x3608A5FF: mov eax, dword ptr [ebp - 4] */
  12033     /* cmp eax, edi */ /* 0x3608A602: cmp eax, edi */
  12034     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  12035     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12036     _flag_k = FK_CMP;
  12037     RECOMP_BACKEDGE();
  12038     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A5E9; /* 0x3608A604: jne 0x3608a5e9 */
  12039 L_3608A606:
  12040     edx = MEM32(esi + 0x4); /* 0x3608A606: mov edx, dword ptr [esi + 4] */
  12041     PUSH32(esp, edx); /* 0x3608A609: push edx */
  12042     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A60A: call 0x3615fcc4 */ /* not lifted */
  12043     RECOMP_FLAGS_IN();
  12044     eax = MEM32(esi + 0x8); /* 0x3608A60F: mov eax, dword ptr [esi + 8] */
  12045     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12046     edi = 0; /* 0x3608A612: xor edi, edi */
  12047     _cf = 0;
  12048     _flag_k = FK_TEST;
  12049     PUSH32(esp, eax); /* 0x3608A614: push eax */
  12050     MEM32(esi + 0x4) = edi; /* 0x3608A615: mov dword ptr [esi + 4], edi */
  12051     MEM32(esi + 0x10) = edi; /* 0x3608A618: mov dword ptr [esi + 0x10], edi */
  12052     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A61B: call 0x3615fcc4 */ /* not lifted */
  12053     RECOMP_FLAGS_IN();
  12054     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12055     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12056     esp = esp + 8; /* 0x3608A620: add esp, 8 */
  12057     _flag_k = FK_ADD;
  12058     MEM32(esi + 0x8) = edi; /* 0x3608A623: mov dword ptr [esi + 8], edi */
  12059     edi = POP32_VAL(esp); /* 0x3608A626: pop edi */
  12060     esi = POP32_VAL(esp); /* 0x3608A627: pop esi */
  12061     ebx = POP32_VAL(esp); /* 0x3608A628: pop ebx */
  12062     esp = ebp; /* 0x3608A629: mov esp, ebp */
  12063     ebp = POP32_VAL(esp); /* 0x3608A62B: pop ebp */
  12064     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A62C: ret  */
  12065     RECOMP_REGS_OUT();
  12066 }
  12067 
  12068 void sub_3608A630(void) {
  12069     int _fpu_cmp = 0;
  12070     uint32_t _cf = 0;
  12071     int _df = 1;
  12072     uint32_t _flag_k = FK_NONE;
  12073     uint32_t _flag_a = 0, _flag_b = 0;
  12074     uint32_t _itail_tgt = 0;
  12075     RECOMP_REGS_LOCALS
  12076     RECOMP_ENTER(0x3608A630u);
  12077 
  12078 L_3608A630:
  12079     PUSH32(esp, ebp); /* 0x3608A630: push ebp */
  12080     ebp = esp; /* 0x3608A631: mov ebp, esp */
  12081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
  12082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12083     esp = esp - 0x28u; /* 0x3608A633: sub esp, 0x28 */
  12084     _flag_k = FK_CMP;
  12085     eax = MEM32(ebp + 0x8); /* 0x3608A636: mov eax, dword ptr [ebp + 8] */
  12086     PUSH32(esp, ebx); /* 0x3608A639: push ebx */
  12087     PUSH32(esp, esi); /* 0x3608A63A: push esi */
  12088     PUSH32(esp, edi); /* 0x3608A63B: push edi */
  12089     edx = ebp + (-0x8); /* 0x3608A63C: lea edx, [ebp - 8] */
  12090     MEM32(ebp + (-0x8)) = eax; /* 0x3608A63F: mov dword ptr [ebp - 8], eax */
  12091     edi = ecx; /* 0x3608A642: mov edi, ecx */
  12092     ecx = MEM32(edi + 0x4); /* 0x3608A644: mov ecx, dword ptr [edi + 4] */
  12093     PUSH32(esp, edx); /* 0x3608A647: push edx */
  12094     eax = ebp + (-0x18); /* 0x3608A648: lea eax, [ebp - 0x18] */
  12095     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12096     ebx = 0; /* 0x3608A64B: xor ebx, ebx */
  12097     _cf = 0;
  12098     _flag_k = FK_TEST;
  12099     PUSH32(esp, eax); /* 0x3608A64D: push eax */
  12100     MEM32(ebp + (-0x4)) = ebx; /* 0x3608A64E: mov dword ptr [ebp - 4], ebx */
  12101     RECOMP_ICALL(0x3603E790u); /* 0x3608A651: call 0x3603e790 */ /* not lifted */
  12102     RECOMP_FLAGS_IN();
  12103     ecx = eax; /* 0x3608A656: mov ecx, eax */
  12104     eax = MEM32(ecx); /* 0x3608A658: mov eax, dword ptr [ecx] */
  12105     esi = MEM32(eax + 0x10); /* 0x3608A65A: mov esi, dword ptr [eax + 0x10] */
  12106     /* cmp MEM32(ebp + 0xC), ebx */ /* 0x3608A65D: cmp dword ptr [ebp + 0xc], ebx */
  12107     _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(ebx);
  12108     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12109     _flag_k = FK_CMP;
  12110     edx = MEM32(ecx + 0x4); /* 0x3608A660: mov edx, dword ptr [ecx + 4] */
  12111     MEM32(ebp + (-0xC)) = edx; /* 0x3608A663: mov dword ptr [ebp - 0xc], edx */
  12112     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A6CB; /* 0x3608A666: je 0x3608a6cb */
  12113 L_3608A668:
  12114     /* cmp esi, ebx */ /* 0x3608A668: cmp esi, ebx */
  12115     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  12116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12117     _flag_k = FK_CMP;
  12118     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A6B4; /* 0x3608A66A: jne 0x3608a6b4 */
  12119 L_3608A66C:
  12120     PUSH32(esp, 0x10u); /* 0x3608A66C: push 0x10 */
  12121     RECOMP_ICALL(0x3615FD6Au); /* 0x3608A66E: call 0x3615fd6a */ /* not lifted */
  12122     RECOMP_FLAGS_IN();
  12123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12125     esp = esp + 4; /* 0x3608A673: add esp, 4 */
  12126     _flag_k = FK_ADD;
  12127     /* cmp eax, ebx */ /* 0x3608A676: cmp eax, ebx */
  12128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
  12129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12130     _flag_k = FK_CMP;
  12131     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A68C; /* 0x3608A678: je 0x3608a68c */
  12132 L_3608A67A:
  12133     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3608A67A: mov cl, byte ptr [ebp + 0xb] */
  12134     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3608A67D: mov byte ptr [eax], cl */
  12135     MEM32(eax + 0x4) = ebx; /* 0x3608A67F: mov dword ptr [eax + 4], ebx */
  12136     MEM32(eax + 0x8) = ebx; /* 0x3608A682: mov dword ptr [eax + 8], ebx */
  12137     MEM32(eax + 0xC) = ebx; /* 0x3608A685: mov dword ptr [eax + 0xc], ebx */
  12138     esi = eax; /* 0x3608A688: mov esi, eax */
  12139     goto L_3608A68E; /* 0x3608A68A: jmp 0x3608a68e */
  12140 L_3608A68C:
  12141     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12142     esi = 0; /* 0x3608A68C: xor esi, esi */
  12143     _cf = 0;
  12144     _flag_k = FK_TEST;
  12145 L_3608A68E:
  12146     edx = MEM32(ebp + 0x8); /* 0x3608A68E: mov edx, dword ptr [ebp + 8] */
  12147     ecx = MEM32(edi + 0x4); /* 0x3608A691: mov ecx, dword ptr [edi + 4] */
  12148     eax = ebp + (-0x10); /* 0x3608A694: lea eax, [ebp - 0x10] */
  12149     MEM32(ebp + (-0x10)) = edx; /* 0x3608A697: mov dword ptr [ebp - 0x10], edx */
  12150     PUSH32(esp, eax); /* 0x3608A69A: push eax */
  12151     edx = ebp + (-0x20); /* 0x3608A69B: lea edx, [ebp - 0x20] */
  12152     PUSH32(esp, edx); /* 0x3608A69E: push edx */
  12153     MEM32(ebp + (-0xC)) = ebx; /* 0x3608A69F: mov dword ptr [ebp - 0xc], ebx */
  12154     RECOMP_ICALL(0x3603E790u); /* 0x3608A6A2: call 0x3603e790 */ /* not lifted */
  12155     RECOMP_FLAGS_IN();
  12156     ecx = eax; /* 0x3608A6A7: mov ecx, eax */
  12157     eax = MEM32(ecx); /* 0x3608A6A9: mov eax, dword ptr [ecx] */
  12158     edx = MEM32(ecx + 0x4); /* 0x3608A6AB: mov edx, dword ptr [ecx + 4] */
  12159     MEM32(ebp + (-0x24)) = edx; /* 0x3608A6AE: mov dword ptr [ebp - 0x24], edx */
  12160     MEM32(eax + 0x10) = esi; /* 0x3608A6B1: mov dword ptr [eax + 0x10], esi */
  12161 L_3608A6B4:
  12162     edx = MEM32(esi + 0x8); /* 0x3608A6B4: mov edx, dword ptr [esi + 8] */
  12163     eax = MEM32(ebp + 0xC); /* 0x3608A6B7: mov eax, dword ptr [ebp + 0xc] */
  12164     ecx = ebp + 0x8; /* 0x3608A6BA: lea ecx, [ebp + 8] */
  12165     PUSH32(esp, ecx); /* 0x3608A6BD: push ecx */
  12166     PUSH32(esp, 1); /* 0x3608A6BE: push 1 */
  12167     PUSH32(esp, edx); /* 0x3608A6C0: push edx */
  12168     ecx = esi; /* 0x3608A6C1: mov ecx, esi */
  12169     MEM32(ebp + 0x8) = eax; /* 0x3608A6C3: mov dword ptr [ebp + 8], eax */
  12170     RECOMP_ICALL(0x3610ED70u); /* 0x3608A6C6: call 0x3610ed70 */ /* not lifted */
  12171     RECOMP_FLAGS_IN();
  12172 L_3608A6CB:
  12173     edi = POP32_VAL(esp); /* 0x3608A6CB: pop edi */
  12174     esi = POP32_VAL(esp); /* 0x3608A6CC: pop esi */
  12175     ebx = POP32_VAL(esp); /* 0x3608A6CD: pop ebx */
  12176     esp = ebp; /* 0x3608A6CE: mov esp, ebp */
  12177     ebp = POP32_VAL(esp); /* 0x3608A6D0: pop ebp */
  12178     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608A6D1: ret 8 */
  12179     RECOMP_REGS_OUT();
  12180 }
  12181 
  12182 void sub_3608A6E0(void) {
  12183     int _fpu_cmp = 0;
  12184     uint32_t _cf = 0;
  12185     int _df = 1;
  12186     uint32_t _flag_k = FK_NONE;
  12187     uint32_t _flag_a = 0, _flag_b = 0;
  12188     uint32_t _itail_tgt = 0;
  12189     RECOMP_REGS_LOCALS
  12190     RECOMP_ENTER(0x3608A6E0u);
  12191 
  12192 L_3608A6E0:
  12193     PUSH32(esp, ebp); /* 0x3608A6E0: push ebp */
  12194     ebp = esp; /* 0x3608A6E1: mov ebp, esp */
  12195     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  12196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12197     esp = esp - 0x18u; /* 0x3608A6E3: sub esp, 0x18 */
  12198     _flag_k = FK_CMP;
  12199     eax = MEM32(ebp + 0x8); /* 0x3608A6E6: mov eax, dword ptr [ebp + 8] */
  12200     PUSH32(esp, ebx); /* 0x3608A6E9: push ebx */
  12201     PUSH32(esp, esi); /* 0x3608A6EA: push esi */
  12202     PUSH32(esp, edi); /* 0x3608A6EB: push edi */
  12203     edx = ebp + (-0x10); /* 0x3608A6EC: lea edx, [ebp - 0x10] */
  12204     MEM32(ebp + (-0x10)) = eax; /* 0x3608A6EF: mov dword ptr [ebp - 0x10], eax */
  12205     edi = ecx; /* 0x3608A6F2: mov edi, ecx */
  12206     ecx = MEM32(edi + 0x4); /* 0x3608A6F4: mov ecx, dword ptr [edi + 4] */
  12207     PUSH32(esp, edx); /* 0x3608A6F7: push edx */
  12208     eax = ebp + (-0x18); /* 0x3608A6F8: lea eax, [ebp - 0x18] */
  12209     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12210     ebx = 0; /* 0x3608A6FB: xor ebx, ebx */
  12211     _cf = 0;
  12212     _flag_k = FK_TEST;
  12213     PUSH32(esp, eax); /* 0x3608A6FD: push eax */
  12214     MEM32(ebp + (-0xC)) = ebx; /* 0x3608A6FE: mov dword ptr [ebp - 0xc], ebx */
  12215     RECOMP_ICALL(0x3603E790u); /* 0x3608A701: call 0x3603e790 */ /* not lifted */
  12216     RECOMP_FLAGS_IN();
  12217     ecx = eax; /* 0x3608A706: mov ecx, eax */
  12218     eax = MEM32(ecx); /* 0x3608A708: mov eax, dword ptr [ecx] */
  12219     esi = MEM32(eax + 0x10); /* 0x3608A70A: mov esi, dword ptr [eax + 0x10] */
  12220     /* cmp esi, ebx */ /* 0x3608A70D: cmp esi, ebx */
  12221     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  12222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12223     _flag_k = FK_CMP;
  12224     edx = MEM32(ecx + 0x4); /* 0x3608A70F: mov edx, dword ptr [ecx + 4] */
  12225     MEM32(ebp + (-0x4)) = edx; /* 0x3608A712: mov dword ptr [ebp - 4], edx */
  12226     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A735; /* 0x3608A715: je 0x3608a735 */
  12227 L_3608A717:
  12228     eax = MEM32(esi + 0x4); /* 0x3608A717: mov eax, dword ptr [esi + 4] */
  12229     PUSH32(esp, eax); /* 0x3608A71A: push eax */
  12230     MEM32(ebp + (-0x4)) = eax; /* 0x3608A71B: mov dword ptr [ebp - 4], eax */
  12231     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A71E: call 0x3615fcc4 */ /* not lifted */
  12232     RECOMP_FLAGS_IN();
  12233     PUSH32(esp, esi); /* 0x3608A723: push esi */
  12234     MEM32(esi + 0x4) = ebx; /* 0x3608A724: mov dword ptr [esi + 4], ebx */
  12235     MEM32(esi + 0x8) = ebx; /* 0x3608A727: mov dword ptr [esi + 8], ebx */
  12236     MEM32(esi + 0xC) = ebx; /* 0x3608A72A: mov dword ptr [esi + 0xc], ebx */
  12237     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A72D: call 0x3615fcc4 */ /* not lifted */
  12238     RECOMP_FLAGS_IN();
  12239     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12241     esp = esp + 8; /* 0x3608A732: add esp, 8 */
  12242     _flag_k = FK_ADD;
  12243 L_3608A735:
  12244     eax = MEM32(ebp + 0x8); /* 0x3608A735: mov eax, dword ptr [ebp + 8] */
  12245     ecx = MEM32(edi + 0x4); /* 0x3608A738: mov ecx, dword ptr [edi + 4] */
  12246     edx = ebp + (-0x10); /* 0x3608A73B: lea edx, [ebp - 0x10] */
  12247     MEM32(ebp + (-0x10)) = eax; /* 0x3608A73E: mov dword ptr [ebp - 0x10], eax */
  12248     PUSH32(esp, edx); /* 0x3608A741: push edx */
  12249     eax = ebp + (-0x18); /* 0x3608A742: lea eax, [ebp - 0x18] */
  12250     PUSH32(esp, eax); /* 0x3608A745: push eax */
  12251     MEM32(ebp + (-0xC)) = ebx; /* 0x3608A746: mov dword ptr [ebp - 0xc], ebx */
  12252     RECOMP_ICALL(0x3603E790u); /* 0x3608A749: call 0x3603e790 */ /* not lifted */
  12253     RECOMP_FLAGS_IN();
  12254     ecx = eax; /* 0x3608A74E: mov ecx, eax */
  12255     eax = MEM32(ecx); /* 0x3608A750: mov eax, dword ptr [ecx] */
  12256     edx = MEM32(ecx + 0x4); /* 0x3608A752: mov edx, dword ptr [ecx + 4] */
  12257     edi = POP32_VAL(esp); /* 0x3608A755: pop edi */
  12258     esi = POP32_VAL(esp); /* 0x3608A756: pop esi */
  12259     MEM32(eax + 0x10) = ebx; /* 0x3608A757: mov dword ptr [eax + 0x10], ebx */
  12260     MEM32(ebp + (-0x4)) = edx; /* 0x3608A75A: mov dword ptr [ebp - 4], edx */
  12261     ebx = POP32_VAL(esp); /* 0x3608A75D: pop ebx */
  12262     esp = ebp; /* 0x3608A75E: mov esp, ebp */
  12263     ebp = POP32_VAL(esp); /* 0x3608A760: pop ebp */
  12264     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608A761: ret 4 */
  12265     RECOMP_REGS_OUT();
  12266 }
  12267 
  12268 void sub_3608A770(void) {
  12269     int _fpu_cmp = 0;
  12270     uint32_t _cf = 0;
  12271     int _df = 1;
  12272     uint32_t _flag_k = FK_NONE;
  12273     uint32_t _flag_a = 0, _flag_b = 0;
  12274     uint32_t _itail_tgt = 0;
  12275     RECOMP_REGS_LOCALS
  12276     RECOMP_ENTER(0x3608A770u);
  12277 
  12278 L_3608A770:
  12279     PUSH32(esp, ebp); /* 0x3608A770: push ebp */
  12280     ebp = esp; /* 0x3608A771: mov ebp, esp */
  12281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
  12282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12283     esp = esp - 0x10u; /* 0x3608A773: sub esp, 0x10 */
  12284     _flag_k = FK_CMP;
  12285     PUSH32(esp, esi); /* 0x3608A776: push esi */
  12286     PUSH32(esp, edi); /* 0x3608A777: push edi */
  12287     edi = ecx; /* 0x3608A778: mov edi, ecx */
  12288     esi = MEM32(edi + 0x4); /* 0x3608A77A: mov esi, dword ptr [edi + 4] */
  12289     eax = ebp + 0x8; /* 0x3608A77D: lea eax, [ebp + 8] */
  12290     PUSH32(esp, eax); /* 0x3608A780: push eax */
  12291     ecx = ebp + (-0xC); /* 0x3608A781: lea ecx, [ebp - 0xc] */
  12292     PUSH32(esp, ecx); /* 0x3608A784: push ecx */
  12293     ecx = esi; /* 0x3608A785: mov ecx, esi */
  12294     RECOMP_ICALL(0x3602F6E0u); /* 0x3608A787: call 0x3602f6e0 */ /* not lifted */
  12295     RECOMP_FLAGS_IN();
  12296     eax = MEM32(eax); /* 0x3608A78C: mov eax, dword ptr [eax] */
  12297     esi = MEM32(esi + 0x4); /* 0x3608A78E: mov esi, dword ptr [esi + 4] */
  12298     /* cmp eax, esi */ /* 0x3608A791: cmp eax, esi */
  12299     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  12300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12301     _flag_k = FK_CMP;
  12302     MEM32(ebp + (-0x4)) = eax; /* 0x3608A793: mov dword ptr [ebp - 4], eax */
  12303     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A7A5; /* 0x3608A796: je 0x3608a7a5 */
  12304 L_3608A798:
  12305     edx = MEM32(ebp + 0x8); /* 0x3608A798: mov edx, dword ptr [ebp + 8] */
  12306     /* cmp edx, MEM32(eax + 0xC) */ /* 0x3608A79B: cmp edx, dword ptr [eax + 0xc] */
  12307     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
  12308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12309     _flag_k = FK_CMP;
  12310     if (CMP_L(_flag_a, _flag_b)) goto L_3608A7A5; /* 0x3608A79E: jl 0x3608a7a5 */
  12311 L_3608A7A0:
  12312     eax = ebp + (-0x4); /* 0x3608A7A0: lea eax, [ebp - 4] */
  12313     goto L_3608A7AB; /* 0x3608A7A3: jmp 0x3608a7ab */
  12314 L_3608A7A5:
  12315     MEM32(ebp + (-0x8)) = esi; /* 0x3608A7A5: mov dword ptr [ebp - 8], esi */
  12316     eax = ebp + (-0x8); /* 0x3608A7A8: lea eax, [ebp - 8] */
  12317 L_3608A7AB:
  12318     ecx = MEM32(edi + 0x4); /* 0x3608A7AB: mov ecx, dword ptr [edi + 4] */
  12319     eax = MEM32(eax); /* 0x3608A7AE: mov eax, dword ptr [eax] */
  12320     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608A7B0: cmp eax, dword ptr [ecx + 4] */
  12321     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12323     _flag_k = FK_CMP;
  12324     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A812; /* 0x3608A7B3: je 0x3608a812 */
  12325 L_3608A7B5:
  12326     edi = MEM32(eax + 0x10); /* 0x3608A7B5: mov edi, dword ptr [eax + 0x10] */
  12327     /* test edi, edi */ /* 0x3608A7B8: test edi, edi */
  12328     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  12329     _cf = 0;
  12330     _flag_k = FK_TEST;
  12331     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A812; /* 0x3608A7BA: je 0x3608a812 */
  12332 L_3608A7BC:
  12333     eax = MEM32(edi + 0x4); /* 0x3608A7BC: mov eax, dword ptr [edi + 4] */
  12334     /* test eax, eax */ /* 0x3608A7BF: test eax, eax */
  12335     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12336     _cf = 0;
  12337     _flag_k = FK_TEST;
  12338     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A7C7; /* 0x3608A7C1: jne 0x3608a7c7 */
  12339 L_3608A7C3:
  12340     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12341     esi = 0; /* 0x3608A7C3: xor esi, esi */
  12342     _cf = 0;
  12343     _flag_k = FK_TEST;
  12344     goto L_3608A7CF; /* 0x3608A7C5: jmp 0x3608a7cf */
  12345 L_3608A7C7:
  12346     esi = MEM32(edi + 0x8); /* 0x3608A7C7: mov esi, dword ptr [edi + 8] */
  12347     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  12348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12349     esi = esi - eax; /* 0x3608A7CA: sub esi, eax */
  12350     _flag_k = FK_CMP;
  12351     if (2u) _cf = (((esi) >> 1) & 1u); /* 0x3608A7CC: sar esi, 2 */
  12352     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  12353     esi = (uint32_t)((int32_t)esi >> 2u);
  12354 L_3608A7CF:
  12355     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x3608A7CF: call dword ptr [0x3616f254] */
  12356     RECOMP_FLAGS_IN();
  12357     MEM32(ebp + (-0x8)) = eax; /* 0x3608A7D5: mov dword ptr [ebp - 8], eax */
  12358     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3608A7D8: fild dword ptr [ebp - 8] */
  12359     MEM32(ebp + (-0x10)) = esi; /* 0x3608A7DB: mov dword ptr [ebp - 0x10], esi */
  12360     MEM32(ebp + (-0xC)) = 0; /* 0x3608A7DE: mov dword ptr [ebp - 0xc], 0 */
  12361     _st[0] *= *(double*)ADDR(0x36171EE0); /* 0x3608A7E5: fmul qword ptr [0x36171ee0] */
  12362     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12364     esp = esp - 8; /* 0x3608A7EB: sub esp, 8 */
  12365     _flag_k = FK_CMP;
  12366     fp_push_i64((int64_t)MEM64(ebp + (-0x10))); /* 0x3608A7EE: fild qword ptr [ebp - 0x10] */
  12367     { double _v = fp_pop(); _st[0] *= _v; } /* 0x3608A7F1: fmulp st(1) */
  12368     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3608A7F3: fstp qword ptr [esp] */
  12369     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3608A7F6: call dword ptr [0x3616f198] */
  12370     RECOMP_FLAGS_IN();
  12371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12372     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12373     esp = esp + 8; /* 0x3608A7FC: add esp, 8 */
  12374     _flag_k = FK_ADD;
  12375     RECOMP_ICALL(0x3615FD8Cu); /* 0x3608A7FF: call 0x3615fd8c */ /* not lifted */
  12376     RECOMP_FLAGS_IN();
  12377     edx = MEM32(edi + 0x4); /* 0x3608A804: mov edx, dword ptr [edi + 4] */
  12378     eax = MEM32(edx + eax * 4); /* 0x3608A807: mov eax, dword ptr [edx + eax*4] */
  12379     edi = POP32_VAL(esp); /* 0x3608A80A: pop edi */
  12380     esi = POP32_VAL(esp); /* 0x3608A80B: pop esi */
  12381     esp = ebp; /* 0x3608A80C: mov esp, ebp */
  12382     ebp = POP32_VAL(esp); /* 0x3608A80E: pop ebp */
  12383     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608A80F: ret 4 */
  12384 L_3608A812:
  12385     edi = POP32_VAL(esp); /* 0x3608A812: pop edi */
  12386     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12387     eax = 0; /* 0x3608A813: xor eax, eax */
  12388     _cf = 0;
  12389     _flag_k = FK_TEST;
  12390     esi = POP32_VAL(esp); /* 0x3608A815: pop esi */
  12391     esp = ebp; /* 0x3608A816: mov esp, ebp */
  12392     ebp = POP32_VAL(esp); /* 0x3608A818: pop ebp */
  12393     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608A819: ret 4 */
  12394     RECOMP_REGS_OUT();
  12395 }
  12396 
  12397 void sub_3608A820(void) {
  12398     int _fpu_cmp = 0;
  12399     uint32_t _cf = 0;
  12400     int _df = 1;
  12401     uint32_t _flag_k = FK_NONE;
  12402     uint32_t _flag_a = 0, _flag_b = 0;
  12403     uint32_t _itail_tgt = 0;
  12404     RECOMP_REGS_LOCALS
  12405     RECOMP_ENTER(0x3608A820u);
  12406 
  12407 L_3608A820:
  12408     PUSH32(esp, ebp); /* 0x3608A820: push ebp */
  12409     ebp = esp; /* 0x3608A821: mov ebp, esp */
  12410     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
  12411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12412     esp = esp - 0x20u; /* 0x3608A823: sub esp, 0x20 */
  12413     _flag_k = FK_CMP;
  12414     ecx = MEM32(ebp + 0x8); /* 0x3608A826: mov ecx, dword ptr [ebp + 8] */
  12415     PUSH32(esp, ebx); /* 0x3608A829: push ebx */
  12416     PUSH32(esp, esi); /* 0x3608A82A: push esi */
  12417     PUSH32(esp, edi); /* 0x3608A82B: push edi */
  12418     eax = ebp + (-0x4); /* 0x3608A82C: lea eax, [ebp - 4] */
  12419     PUSH32(esp, eax); /* 0x3608A82F: push eax */
  12420     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3608A830: call dword ptr [0x3616fa8c] */
  12421     RECOMP_FLAGS_IN();
  12422     ecx = MEM32(ebp + (-0x4)); /* 0x3608A836: mov ecx, dword ptr [ebp - 4] */
  12423     eax = 0x81E722C3u; /* 0x3608A839: mov eax, 0x81e722c3 */
  12424     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3608A83E: imul ecx */
  12425       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
  12426       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  12427     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  12428     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12429     edx = edx + ecx; /* 0x3608A840: add edx, ecx */
  12430     _flag_k = FK_ADD;
  12431     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x3608A842: sar edx, 9 */
  12432     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  12433     edx = (uint32_t)((int32_t)edx >> 9u);
  12434     ecx = edx; /* 0x3608A845: mov ecx, edx */
  12435     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3608A847: shr ecx, 0x1f */
  12436     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  12437     ecx = ecx >> 31u; /* 0x3608A847: shr ecx, 0x1f */
  12438     edx = edx + ecx + (-0x1); /* 0x3608A84A: lea edx, [edx + ecx - 1] */
  12439     MEM32(ebp + (-0x4)) = edx; /* 0x3608A84E: mov dword ptr [ebp - 4], edx */
  12440     edx = MEM32(ebp + 0xC); /* 0x3608A851: mov edx, dword ptr [ebp + 0xc] */
  12441     eax = MEM32(edx + 0x4); /* 0x3608A854: mov eax, dword ptr [edx + 4] */
  12442     ecx = MEM32(eax); /* 0x3608A857: mov ecx, dword ptr [eax] */
  12443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12444     edi = 0; /* 0x3608A859: xor edi, edi */
  12445     _cf = 0;
  12446     _flag_k = FK_TEST;
  12447     /* cmp ecx, eax */ /* 0x3608A85B: cmp ecx, eax */
  12448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  12449     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12450     _flag_k = FK_CMP;
  12451     MEM32(ebp + (-0x8)) = ecx; /* 0x3608A85D: mov dword ptr [ebp - 8], ecx */
  12452     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A89F; /* 0x3608A860: je 0x3608a89f */
  12453 L_3608A862:
  12454     esi = MEM32(ecx + 0x10); /* 0x3608A862: mov esi, dword ptr [ecx + 0x10] */
  12455     /* cmp esi, edi */ /* 0x3608A865: cmp esi, edi */
  12456     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
  12457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12458     _flag_k = FK_CMP;
  12459     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A887; /* 0x3608A867: je 0x3608a887 */
  12460 L_3608A869:
  12461     eax = MEM32(esi + 0x4); /* 0x3608A869: mov eax, dword ptr [esi + 4] */
  12462     PUSH32(esp, eax); /* 0x3608A86C: push eax */
  12463     MEM32(ebp + (-0x14)) = eax; /* 0x3608A86D: mov dword ptr [ebp - 0x14], eax */
  12464     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A870: call 0x3615fcc4 */ /* not lifted */
  12465     RECOMP_FLAGS_IN();
  12466     PUSH32(esp, esi); /* 0x3608A875: push esi */
  12467     MEM32(esi + 0x4) = edi; /* 0x3608A876: mov dword ptr [esi + 4], edi */
  12468     MEM32(esi + 0x8) = edi; /* 0x3608A879: mov dword ptr [esi + 8], edi */
  12469     MEM32(esi + 0xC) = edi; /* 0x3608A87C: mov dword ptr [esi + 0xc], edi */
  12470     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A87F: call 0x3615fcc4 */ /* not lifted */
  12471     RECOMP_FLAGS_IN();
  12472     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12473     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12474     esp = esp + 8; /* 0x3608A884: add esp, 8 */
  12475     _flag_k = FK_ADD;
  12476 L_3608A887:
  12477     ecx = ebp + (-0x8); /* 0x3608A887: lea ecx, [ebp - 8] */
  12478     RECOMP_ICALL(0x36064140u); /* 0x3608A88A: call 0x36064140 */ /* not lifted */
  12479     RECOMP_FLAGS_IN();
  12480     eax = MEM32(ebp + 0xC); /* 0x3608A88F: mov eax, dword ptr [ebp + 0xc] */
  12481     eax = MEM32(eax + 0x4); /* 0x3608A892: mov eax, dword ptr [eax + 4] */
  12482     ecx = MEM32(ebp + (-0x8)); /* 0x3608A895: mov ecx, dword ptr [ebp - 8] */
  12483     /* cmp ecx, eax */ /* 0x3608A898: cmp ecx, eax */
  12484     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  12485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12486     _flag_k = FK_CMP;
  12487     RECOMP_BACKEDGE();
  12488     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A862; /* 0x3608A89A: jne 0x3608a862 */
  12489 L_3608A89C:
  12490     edx = MEM32(ebp + 0xC); /* 0x3608A89C: mov edx, dword ptr [ebp + 0xc] */
  12491 L_3608A89F:
  12492     eax = MEM32(edx + 0x4); /* 0x3608A89F: mov eax, dword ptr [edx + 4] */
  12493     ecx = MEM32(eax); /* 0x3608A8A2: mov ecx, dword ptr [eax] */
  12494     PUSH32(esp, eax); /* 0x3608A8A4: push eax */
  12495     PUSH32(esp, ecx); /* 0x3608A8A5: push ecx */
  12496     ecx = ebp + (-0x14); /* 0x3608A8A6: lea ecx, [ebp - 0x14] */
  12497     PUSH32(esp, ecx); /* 0x3608A8A9: push ecx */
  12498     ecx = edx; /* 0x3608A8AA: mov ecx, edx */
  12499     RECOMP_ICALL(0x3608A930u); /* 0x3608A8AC: call 0x3608a930 */ /* not lifted */
  12500     RECOMP_FLAGS_IN();
  12501     eax = MEM32(ebp + (-0x4)); /* 0x3608A8B1: mov eax, dword ptr [ebp - 4] */
  12502     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12503     ebx = 0; /* 0x3608A8B4: xor ebx, ebx */
  12504     _cf = 0;
  12505     _flag_k = FK_TEST;
  12506     /* cmp eax, edi */ /* 0x3608A8B6: cmp eax, edi */
  12507     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  12508     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12509     _flag_k = FK_CMP;
  12510     if (CMP_LE(_flag_a, _flag_b)) goto L_3608A924; /* 0x3608A8B8: jle 0x3608a924 */
  12511 L_3608A8BA:
  12512     PUSH32(esp, 0x10u); /* 0x3608A8BA: push 0x10 */
  12513     RECOMP_ICALL(0x3615FD6Au); /* 0x3608A8BC: call 0x3615fd6a */ /* not lifted */
  12514     RECOMP_FLAGS_IN();
  12515     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12516     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12517     esp = esp + 4; /* 0x3608A8C1: add esp, 4 */
  12518     _flag_k = FK_ADD;
  12519     /* cmp eax, edi */ /* 0x3608A8C4: cmp eax, edi */
  12520     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  12521     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12522     _flag_k = FK_CMP;
  12523     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A8DA; /* 0x3608A8C6: je 0x3608a8da */
  12524 L_3608A8C8:
  12525     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3608A8C8: mov dl, byte ptr [ebp + 0xb] */
  12526     MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3608A8CB: mov byte ptr [eax], dl */
  12527     MEM32(eax + 0x4) = edi; /* 0x3608A8CD: mov dword ptr [eax + 4], edi */
  12528     MEM32(eax + 0x8) = edi; /* 0x3608A8D0: mov dword ptr [eax + 8], edi */
  12529     MEM32(eax + 0xC) = edi; /* 0x3608A8D3: mov dword ptr [eax + 0xc], edi */
  12530     esi = eax; /* 0x3608A8D6: mov esi, eax */
  12531     goto L_3608A8DC; /* 0x3608A8D8: jmp 0x3608a8dc */
  12532 L_3608A8DA:
  12533     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12534     esi = 0; /* 0x3608A8DA: xor esi, esi */
  12535     _cf = 0;
  12536     _flag_k = FK_TEST;
  12537 L_3608A8DC:
  12538     ecx = MEM32(ebp + 0x8); /* 0x3608A8DC: mov ecx, dword ptr [ebp + 8] */
  12539     eax = ebp + (-0x10); /* 0x3608A8DF: lea eax, [ebp - 0x10] */
  12540     PUSH32(esp, eax); /* 0x3608A8E2: push eax */
  12541     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3608A8E3: call dword ptr [0x3616fa8c] */
  12542     RECOMP_FLAGS_IN();
  12543     ecx = MEM32(ebp + 0x8); /* 0x3608A8E9: mov ecx, dword ptr [ebp + 8] */
  12544     PUSH32(esp, esi); /* 0x3608A8EC: push esi */
  12545     PUSH32(esp, ecx); /* 0x3608A8ED: push ecx */
  12546     RECOMP_ICALL(0x3601DF00u); /* 0x3608A8EE: call 0x3601df00 */ /* not lifted */
  12547     RECOMP_FLAGS_IN();
  12548     edx = MEM32(ebp + (-0x10)); /* 0x3608A8F3: mov edx, dword ptr [ebp - 0x10] */
  12549     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12550     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12551     esp = esp + 8; /* 0x3608A8F6: add esp, 8 */
  12552     _flag_k = FK_ADD;
  12553     eax = ebp + (-0x18); /* 0x3608A8F9: lea eax, [ebp - 0x18] */
  12554     PUSH32(esp, eax); /* 0x3608A8FC: push eax */
  12555     ecx = ebp + (-0xC); /* 0x3608A8FD: lea ecx, [ebp - 0xc] */
  12556     PUSH32(esp, ecx); /* 0x3608A900: push ecx */
  12557     ecx = MEM32(ebp + 0xC); /* 0x3608A901: mov ecx, dword ptr [ebp + 0xc] */
  12558     MEM32(ebp + (-0x18)) = edx; /* 0x3608A904: mov dword ptr [ebp - 0x18], edx */
  12559     MEM32(ebp + (-0x14)) = edi; /* 0x3608A907: mov dword ptr [ebp - 0x14], edi */
  12560     RECOMP_ICALL(0x3603E790u); /* 0x3608A90A: call 0x3603e790 */ /* not lifted */
  12561     RECOMP_FLAGS_IN();
  12562     edx = eax; /* 0x3608A90F: mov edx, eax */
  12563     eax = MEM32(edx); /* 0x3608A911: mov eax, dword ptr [edx] */
  12564     ecx = MEM32(edx + 0x4); /* 0x3608A913: mov ecx, dword ptr [edx + 4] */
  12565     MEM32(eax + 0x10) = esi; /* 0x3608A916: mov dword ptr [eax + 0x10], esi */
  12566     eax = MEM32(ebp + (-0x4)); /* 0x3608A919: mov eax, dword ptr [ebp - 4] */
  12567     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  12568     ebx = ebx + 1; /* 0x3608A91C: inc ebx */
  12569     _flag_k = FK_INC;
  12570     /* cmp ebx, eax */ /* 0x3608A91D: cmp ebx, eax */
  12571     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  12572     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12573     _flag_k = FK_CMP;
  12574     MEM32(ebp + (-0x1C)) = ecx; /* 0x3608A91F: mov dword ptr [ebp - 0x1c], ecx */
  12575     RECOMP_BACKEDGE();
  12576     if (CMP_L(_flag_a, _flag_b)) goto L_3608A8BA; /* 0x3608A922: jl 0x3608a8ba */
  12577 L_3608A924:
  12578     eax = MEM32(ebp + 0x8); /* 0x3608A924: mov eax, dword ptr [ebp + 8] */
  12579     edi = POP32_VAL(esp); /* 0x3608A927: pop edi */
  12580     esi = POP32_VAL(esp); /* 0x3608A928: pop esi */
  12581     ebx = POP32_VAL(esp); /* 0x3608A929: pop ebx */
  12582     esp = ebp; /* 0x3608A92A: mov esp, ebp */
  12583     ebp = POP32_VAL(esp); /* 0x3608A92C: pop ebp */
  12584     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A92D: ret  */
  12585     RECOMP_REGS_OUT();
  12586 }
  12587 
  12588 void sub_3608A930(void) {
  12589     int _fpu_cmp = 0;
  12590     uint32_t _cf = 0;
  12591     int _df = 1;
  12592     uint32_t _flag_k = FK_NONE;
  12593     uint32_t _flag_a = 0, _flag_b = 0;
  12594     uint32_t _itail_tgt = 0;
  12595     RECOMP_REGS_LOCALS
  12596     RECOMP_ENTER(0x3608A930u);
  12597 
  12598 L_3608A930:
  12599     PUSH32(esp, ebp); /* 0x3608A930: push ebp */
  12600     ebp = esp; /* 0x3608A931: mov ebp, esp */
  12601     PUSH32(esp, ebx); /* 0x3608A933: push ebx */
  12602     ebx = MEM32(ebp + 0x10); /* 0x3608A934: mov ebx, dword ptr [ebp + 0x10] */
  12603     PUSH32(esp, esi); /* 0x3608A937: push esi */
  12604     esi = ecx; /* 0x3608A938: mov esi, ecx */
  12605     eax = MEM32(esi + 0x10); /* 0x3608A93A: mov eax, dword ptr [esi + 0x10] */
  12606     /* test eax, eax */ /* 0x3608A93D: test eax, eax */
  12607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12608     _cf = 0;
  12609     _flag_k = FK_TEST;
  12610     ecx = MEM32(ebp + 0xC); /* 0x3608A93F: mov ecx, dword ptr [ebp + 0xc] */
  12611     PUSH32(esp, edi); /* 0x3608A942: push edi */
  12612     if (TEST_Z(_flag_a, _flag_b)) goto L_3608A9A5; /* 0x3608A943: je 0x3608a9a5 */
  12613 L_3608A945:
  12614     eax = MEM32(esi + 0x4); /* 0x3608A945: mov eax, dword ptr [esi + 4] */
  12615     /* cmp ecx, MEM32(eax) */ /* 0x3608A948: cmp ecx, dword ptr [eax] */
  12616     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
  12617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12618     _flag_k = FK_CMP;
  12619     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A9A5; /* 0x3608A94A: jne 0x3608a9a5 */
  12620 L_3608A94C:
  12621     /* cmp ebx, eax */ /* 0x3608A94C: cmp ebx, eax */
  12622     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  12623     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12624     _flag_k = FK_CMP;
  12625     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A9A5; /* 0x3608A94E: jne 0x3608a9a5 */
  12626 L_3608A950:
  12627     ebx = MEM32(eax + 0x4); /* 0x3608A950: mov ebx, dword ptr [eax + 4] */
  12628     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3608A953: cmp ebx, dword ptr [esi + 8] */
  12629     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  12630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12631     _flag_k = FK_CMP;
  12632     edi = ebx; /* 0x3608A956: mov edi, ebx */
  12633     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A979; /* 0x3608A958: je 0x3608a979 */
  12634 L_3608A95A:
  12635     eax = MEM32(edi + 0x8); /* 0x3608A95A: mov eax, dword ptr [edi + 8] */
  12636     PUSH32(esp, eax); /* 0x3608A95D: push eax */
  12637     ecx = esi; /* 0x3608A95E: mov ecx, esi */
  12638     RECOMP_ICALL(0x3608A9E0u); /* 0x3608A960: call 0x3608a9e0 */ /* not lifted */
  12639     RECOMP_FLAGS_IN();
  12640     edi = MEM32(edi); /* 0x3608A965: mov edi, dword ptr [edi] */
  12641     PUSH32(esp, ebx); /* 0x3608A967: push ebx */
  12642     RECOMP_ICALL(0x3615FCC4u); /* 0x3608A968: call 0x3615fcc4 */ /* not lifted */
  12643     RECOMP_FLAGS_IN();
  12644     eax = MEM32(esi + 0x8); /* 0x3608A96D: mov eax, dword ptr [esi + 8] */
  12645     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12646     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12647     esp = esp + 4; /* 0x3608A970: add esp, 4 */
  12648     _flag_k = FK_ADD;
  12649     /* cmp edi, eax */ /* 0x3608A973: cmp edi, eax */
  12650     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  12651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12652     _flag_k = FK_CMP;
  12653     ebx = edi; /* 0x3608A975: mov ebx, edi */
  12654     RECOMP_BACKEDGE();
  12655     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A95A; /* 0x3608A977: jne 0x3608a95a */
  12656 L_3608A979:
  12657     ecx = MEM32(esi + 0x4); /* 0x3608A979: mov ecx, dword ptr [esi + 4] */
  12658     edx = MEM32(esi + 0x8); /* 0x3608A97C: mov edx, dword ptr [esi + 8] */
  12659     MEM32(ecx + 0x4) = edx; /* 0x3608A97F: mov dword ptr [ecx + 4], edx */
  12660     eax = MEM32(esi + 0x4); /* 0x3608A982: mov eax, dword ptr [esi + 4] */
  12661     MEM32(esi + 0x10) = 0; /* 0x3608A985: mov dword ptr [esi + 0x10], 0 */
  12662     MEM32(eax) = eax; /* 0x3608A98C: mov dword ptr [eax], eax */
  12663     eax = MEM32(esi + 0x4); /* 0x3608A98E: mov eax, dword ptr [esi + 4] */
  12664     MEM32(eax + 0x8) = eax; /* 0x3608A991: mov dword ptr [eax + 8], eax */
  12665     eax = MEM32(esi + 0x4); /* 0x3608A994: mov eax, dword ptr [esi + 4] */
  12666     ecx = MEM32(eax); /* 0x3608A997: mov ecx, dword ptr [eax] */
  12667     eax = MEM32(ebp + 0x8); /* 0x3608A999: mov eax, dword ptr [ebp + 8] */
  12668     edi = POP32_VAL(esp); /* 0x3608A99C: pop edi */
  12669     esi = POP32_VAL(esp); /* 0x3608A99D: pop esi */
  12670     MEM32(eax) = ecx; /* 0x3608A99E: mov dword ptr [eax], ecx */
  12671     ebx = POP32_VAL(esp); /* 0x3608A9A0: pop ebx */
  12672     ebp = POP32_VAL(esp); /* 0x3608A9A1: pop ebp */
  12673     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608A9A2: ret 0xc */
  12674 L_3608A9A5:
  12675     /* cmp ecx, ebx */ /* 0x3608A9A5: cmp ecx, ebx */
  12676     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  12677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12678     _flag_k = FK_CMP;
  12679     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A9C6; /* 0x3608A9A7: je 0x3608a9c6 */
  12680 L_3608A9A9:
  12681     edi = ecx; /* 0x3608A9A9: mov edi, ecx */
  12682     ecx = ebp + 0xC; /* 0x3608A9AB: lea ecx, [ebp + 0xc] */
  12683     RECOMP_ICALL(0x36064140u); /* 0x3608A9AE: call 0x36064140 */ /* not lifted */
  12684     RECOMP_FLAGS_IN();
  12685     PUSH32(esp, edi); /* 0x3608A9B3: push edi */
  12686     ecx = ebp + 0x10; /* 0x3608A9B4: lea ecx, [ebp + 0x10] */
  12687     PUSH32(esp, ecx); /* 0x3608A9B7: push ecx */
  12688     ecx = esi; /* 0x3608A9B8: mov ecx, esi */
  12689     RECOMP_ICALL(0x360588E0u); /* 0x3608A9BA: call 0x360588e0 */ /* not lifted */
  12690     RECOMP_FLAGS_IN();
  12691     ecx = MEM32(ebp + 0xC); /* 0x3608A9BF: mov ecx, dword ptr [ebp + 0xc] */
  12692     /* cmp ecx, ebx */ /* 0x3608A9C2: cmp ecx, ebx */
  12693     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  12694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12695     _flag_k = FK_CMP;
  12696     RECOMP_BACKEDGE();
  12697     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A9A9; /* 0x3608A9C4: jne 0x3608a9a9 */
  12698 L_3608A9C6:
  12699     eax = MEM32(ebp + 0x8); /* 0x3608A9C6: mov eax, dword ptr [ebp + 8] */
  12700     edi = POP32_VAL(esp); /* 0x3608A9C9: pop edi */
  12701     esi = POP32_VAL(esp); /* 0x3608A9CA: pop esi */
  12702     MEM32(eax) = ecx; /* 0x3608A9CB: mov dword ptr [eax], ecx */
  12703     ebx = POP32_VAL(esp); /* 0x3608A9CD: pop ebx */
  12704     ebp = POP32_VAL(esp); /* 0x3608A9CE: pop ebp */
  12705     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608A9CF: ret 0xc */
  12706     RECOMP_REGS_OUT();
  12707 }
  12708 
  12709 void sub_3608A9E0(void) {
  12710     int _fpu_cmp = 0;
  12711     uint32_t _cf = 0;
  12712     int _df = 1;
  12713     uint32_t _flag_k = FK_NONE;
  12714     uint32_t _flag_a = 0, _flag_b = 0;
  12715     uint32_t _itail_tgt = 0;
  12716     RECOMP_REGS_LOCALS
  12717     RECOMP_ENTER(0x3608A9E0u);
  12718 
  12719 L_3608A9E0:
  12720     PUSH32(esp, ebp); /* 0x3608A9E0: push ebp */
  12721     ebp = esp; /* 0x3608A9E1: mov ebp, esp */
  12722     PUSH32(esp, ebx); /* 0x3608A9E3: push ebx */
  12723     PUSH32(esp, esi); /* 0x3608A9E4: push esi */
  12724     ebx = ecx; /* 0x3608A9E5: mov ebx, ecx */
  12725     eax = MEM32(ebx + 0x8); /* 0x3608A9E7: mov eax, dword ptr [ebx + 8] */
  12726     PUSH32(esp, edi); /* 0x3608A9EA: push edi */
  12727     edi = MEM32(ebp + 0x8); /* 0x3608A9EB: mov edi, dword ptr [ebp + 8] */
  12728     /* cmp edi, eax */ /* 0x3608A9EE: cmp edi, eax */
  12729     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  12730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12731     _flag_k = FK_CMP;
  12732     esi = edi; /* 0x3608A9F0: mov esi, edi */
  12733     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608AA13; /* 0x3608A9F2: je 0x3608aa13 */
  12734 L_3608A9F4:
  12735     eax = MEM32(esi + 0x8); /* 0x3608A9F4: mov eax, dword ptr [esi + 8] */
  12736     PUSH32(esp, eax); /* 0x3608A9F7: push eax */
  12737     ecx = ebx; /* 0x3608A9F8: mov ecx, ebx */
  12738     RECOMP_ICALL(0x3608A9E0u); /* 0x3608A9FA: call 0x3608a9e0 */ /* not lifted */
  12739     RECOMP_FLAGS_IN();
  12740     esi = MEM32(esi); /* 0x3608A9FF: mov esi, dword ptr [esi] */
  12741     PUSH32(esp, edi); /* 0x3608AA01: push edi */
  12742     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AA02: call 0x3615fcc4 */ /* not lifted */
  12743     RECOMP_FLAGS_IN();
  12744     eax = MEM32(ebx + 0x8); /* 0x3608AA07: mov eax, dword ptr [ebx + 8] */
  12745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12747     esp = esp + 4; /* 0x3608AA0A: add esp, 4 */
  12748     _flag_k = FK_ADD;
  12749     /* cmp esi, eax */ /* 0x3608AA0D: cmp esi, eax */
  12750     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  12751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12752     _flag_k = FK_CMP;
  12753     edi = esi; /* 0x3608AA0F: mov edi, esi */
  12754     RECOMP_BACKEDGE();
  12755     if (CMP_NE(_flag_a, _flag_b)) goto L_3608A9F4; /* 0x3608AA11: jne 0x3608a9f4 */
  12756 L_3608AA13:
  12757     edi = POP32_VAL(esp); /* 0x3608AA13: pop edi */
  12758     esi = POP32_VAL(esp); /* 0x3608AA14: pop esi */
  12759     ebx = POP32_VAL(esp); /* 0x3608AA15: pop ebx */
  12760     ebp = POP32_VAL(esp); /* 0x3608AA16: pop ebp */
  12761     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AA17: ret 4 */
  12762     RECOMP_REGS_OUT();
  12763 }
  12764 
  12765 void sub_3608AA20(void) {
  12766     int _fpu_cmp = 0;
  12767     uint32_t _cf = 0;
  12768     int _df = 1;
  12769     uint32_t _flag_k = FK_NONE;
  12770     uint32_t _flag_a = 0, _flag_b = 0;
  12771     uint32_t _itail_tgt = 0;
  12772     RECOMP_REGS_LOCALS
  12773     RECOMP_ENTER(0x3608AA20u);
  12774 
  12775 L_3608AA20:
  12776     PUSH32(esp, ebp); /* 0x3608AA20: push ebp */
  12777     ebp = esp; /* 0x3608AA21: mov ebp, esp */
  12778     PUSH32(esp, 0x18u); /* 0x3608AA23: push 0x18 */
  12779     RECOMP_ICALL(0x3615FD6Au); /* 0x3608AA25: call 0x3615fd6a */ /* not lifted */
  12780     RECOMP_FLAGS_IN();
  12781     ecx = MEM32(ebp + 0x8); /* 0x3608AA2A: mov ecx, dword ptr [ebp + 8] */
  12782     SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x3608AA2D: mov dl, byte ptr [ebp + 0xc] */
  12783     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12784     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12785     esp = esp + 4; /* 0x3608AA30: add esp, 4 */
  12786     _flag_k = FK_ADD;
  12787     MEM32(eax + 0x4) = ecx; /* 0x3608AA33: mov dword ptr [eax + 4], ecx */
  12788     MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x3608AA36: mov byte ptr [eax + 0x14], dl */
  12789     MEM8(eax + 0x15) = (uint8_t)(0); /* 0x3608AA39: mov byte ptr [eax + 0x15], 0 */
  12790     ebp = POP32_VAL(esp); /* 0x3608AA3D: pop ebp */
  12791     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608AA3E: ret 8 */
  12792     RECOMP_REGS_OUT();
  12793 }
  12794 
  12795 void sub_3608AA50(void) {
  12796     int _fpu_cmp = 0;
  12797     uint32_t _cf = 0;
  12798     int _df = 1;
  12799     uint32_t _flag_k = FK_NONE;
  12800     uint32_t _flag_a = 0, _flag_b = 0;
  12801     uint32_t _itail_tgt = 0;
  12802     RECOMP_REGS_LOCALS
  12803     RECOMP_ENTER(0x3608AA50u);
  12804 
  12805 L_3608AA50:
  12806     PUSH32(esp, ebp); /* 0x3608AA50: push ebp */
  12807     ebp = esp; /* 0x3608AA51: mov ebp, esp */
  12808     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608AA53: push -1 */
  12809     PUSH32(esp, 0x36165E1Bu); /* 0x3608AA55: push 0x36165e1b */
  12810     eax = MEM32(FS_BASE + (0)); /* 0x3608AA5A: mov eax, dword ptr fs:[0] */
  12811     PUSH32(esp, eax); /* 0x3608AA60: push eax */
  12812     MEM32(FS_BASE + (0)) = esp; /* 0x3608AA61: mov dword ptr fs:[0], esp */
  12813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  12814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12815     esp = esp - 0xCu; /* 0x3608AA68: sub esp, 0xc */
  12816     _flag_k = FK_CMP;
  12817     PUSH32(esp, ebx); /* 0x3608AA6B: push ebx */
  12818     PUSH32(esp, esi); /* 0x3608AA6C: push esi */
  12819     PUSH32(esp, edi); /* 0x3608AA6D: push edi */
  12820     edi = ecx; /* 0x3608AA6E: mov edi, ecx */
  12821     PUSH32(esp, 0x14u); /* 0x3608AA70: push 0x14 */
  12822     MEM32(edi) = 0x36171EECu; /* 0x3608AA72: mov dword ptr [edi], 0x36171eec */
  12823     RECOMP_ICALL(0x3615FD6Au); /* 0x3608AA78: call 0x3615fd6a */ /* not lifted */
  12824     RECOMP_FLAGS_IN();
  12825     esi = eax; /* 0x3608AA7D: mov esi, eax */
  12826     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12827     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12828     esp = esp + 4; /* 0x3608AA7F: add esp, 4 */
  12829     _flag_k = FK_ADD;
  12830     MEM32(ebp + (-0x18)) = esi; /* 0x3608AA82: mov dword ptr [ebp - 0x18], esi */
  12831     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12832     ebx = 0; /* 0x3608AA85: xor ebx, ebx */
  12833     _cf = 0;
  12834     _flag_k = FK_TEST;
  12835     /* cmp esi, ebx */ /* 0x3608AA87: cmp esi, ebx */
  12836     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
  12837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12838     _flag_k = FK_CMP;
  12839     MEM32(ebp + (-0x4)) = ebx; /* 0x3608AA89: mov dword ptr [ebp - 4], ebx */
  12840     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608AAFF; /* 0x3608AA8C: je 0x3608aaff */
  12841 L_3608AA8E:
  12842     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3608AA8E: mov al, byte ptr [ebp - 0xd] */
  12843     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3608AA91: mov cl, byte ptr [ebp - 0xd] */
  12844     PUSH32(esp, 0x18u); /* 0x3608AA94: push 0x18 */
  12845     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3608AA96: mov byte ptr [esi], al */
  12846     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3608AA98: mov byte ptr [esi + 1], cl */
  12847     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3608AA9B: mov byte ptr [esi + 0xc], bl */
  12848     RECOMP_ICALL(0x3615FD6Au); /* 0x3608AA9E: call 0x3615fd6a */ /* not lifted */
  12849     RECOMP_FLAGS_IN();
  12850     MEM32(eax + 0x4) = ebx; /* 0x3608AAA3: mov dword ptr [eax + 4], ebx */
  12851     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3608AAA6: mov byte ptr [eax + 0x15], bl */
  12852     SET_LO8(ecx, 1); /* 0x3608AAA9: mov cl, 1 */
  12853     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3608AAAB: mov byte ptr [eax + 0x14], cl */
  12854     MEM32(esi + 0x8) = eax; /* 0x3608AAAE: mov dword ptr [esi + 8], eax */
  12855     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x3608AAB1: mov byte ptr [eax + 0x15], cl */
  12856     edx = MEM32(esi + 0x8); /* 0x3608AAB4: mov edx, dword ptr [esi + 8] */
  12857     MEM32(edx) = ebx; /* 0x3608AAB7: mov dword ptr [edx], ebx */
  12858     eax = MEM32(esi + 0x8); /* 0x3608AAB9: mov eax, dword ptr [esi + 8] */
  12859     MEM32(eax + 0x8) = ebx; /* 0x3608AABC: mov dword ptr [eax + 8], ebx */
  12860     ecx = MEM32(esi + 0x8); /* 0x3608AABF: mov ecx, dword ptr [esi + 8] */
  12861     PUSH32(esp, 0x18u); /* 0x3608AAC2: push 0x18 */
  12862     MEM32(ebp + (-0x14)) = ecx; /* 0x3608AAC4: mov dword ptr [ebp - 0x14], ecx */
  12863     RECOMP_ICALL(0x3615FD6Au); /* 0x3608AAC7: call 0x3615fd6a */ /* not lifted */
  12864     RECOMP_FLAGS_IN();
  12865     edx = MEM32(ebp + (-0x14)); /* 0x3608AACC: mov edx, dword ptr [ebp - 0x14] */
  12866     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3608AACF: mov byte ptr [eax + 0x14], bl */
  12867     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3608AAD2: mov byte ptr [eax + 0x15], bl */
  12868     MEM32(eax + 0x4) = edx; /* 0x3608AAD5: mov dword ptr [eax + 4], edx */
  12869     MEM32(esi + 0x4) = eax; /* 0x3608AAD8: mov dword ptr [esi + 4], eax */
  12870     MEM32(eax) = eax; /* 0x3608AADB: mov dword ptr [eax], eax */
  12871     eax = MEM32(esi + 0x4); /* 0x3608AADD: mov eax, dword ptr [esi + 4] */
  12872     MEM32(eax + 0x8) = eax; /* 0x3608AAE0: mov dword ptr [eax + 8], eax */
  12873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12875     esp = esp + 8; /* 0x3608AAE3: add esp, 8 */
  12876     _flag_k = FK_ADD;
  12877     MEM32(esi + 0x10) = ebx; /* 0x3608AAE6: mov dword ptr [esi + 0x10], ebx */
  12878     MEM32(edi + 0x4) = esi; /* 0x3608AAE9: mov dword ptr [edi + 4], esi */
  12879     eax = edi; /* 0x3608AAEC: mov eax, edi */
  12880     edi = POP32_VAL(esp); /* 0x3608AAEE: pop edi */
  12881     esi = POP32_VAL(esp); /* 0x3608AAEF: pop esi */
  12882     ebx = POP32_VAL(esp); /* 0x3608AAF0: pop ebx */
  12883     ecx = MEM32(ebp + (-0xC)); /* 0x3608AAF1: mov ecx, dword ptr [ebp - 0xc] */
  12884     MEM32(FS_BASE + (0)) = ecx; /* 0x3608AAF4: mov dword ptr fs:[0], ecx */
  12885     esp = ebp; /* 0x3608AAFB: mov esp, ebp */
  12886     ebp = POP32_VAL(esp); /* 0x3608AAFD: pop ebp */
  12887     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608AAFE: ret  */
  12888 L_3608AAFF:
  12889     ecx = MEM32(ebp + (-0xC)); /* 0x3608AAFF: mov ecx, dword ptr [ebp - 0xc] */
  12890     MEM32(edi + 0x4) = ebx; /* 0x3608AB02: mov dword ptr [edi + 4], ebx */
  12891     eax = edi; /* 0x3608AB05: mov eax, edi */
  12892     edi = POP32_VAL(esp); /* 0x3608AB07: pop edi */
  12893     esi = POP32_VAL(esp); /* 0x3608AB08: pop esi */
  12894     ebx = POP32_VAL(esp); /* 0x3608AB09: pop ebx */
  12895     MEM32(FS_BASE + (0)) = ecx; /* 0x3608AB0A: mov dword ptr fs:[0], ecx */
  12896     esp = ebp; /* 0x3608AB11: mov esp, ebp */
  12897     ebp = POP32_VAL(esp); /* 0x3608AB13: pop ebp */
  12898     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608AB14: ret  */
  12899     RECOMP_REGS_OUT();
  12900 }
  12901 
  12902 void sub_3608AB20(void) {
  12903     int _fpu_cmp = 0;
  12904     uint32_t _cf = 0;
  12905     int _df = 1;
  12906     uint32_t _flag_k = FK_NONE;
  12907     uint32_t _flag_a = 0, _flag_b = 0;
  12908     uint32_t _itail_tgt = 0;
  12909     RECOMP_REGS_LOCALS
  12910     RECOMP_ENTER(0x3608AB20u);
  12911 
  12912 L_3608AB20:
  12913     PUSH32(esp, ebp); /* 0x3608AB20: push ebp */
  12914     ebp = esp; /* 0x3608AB21: mov ebp, esp */
  12915     PUSH32(esp, esi); /* 0x3608AB23: push esi */
  12916     esi = ecx; /* 0x3608AB24: mov esi, ecx */
  12917     RECOMP_ICALL(0x3608AB50u); /* 0x3608AB26: call 0x3608ab50 */ /* not lifted */
  12918     RECOMP_FLAGS_IN();
  12919     /* test MEM8(ebp + 0x8), 1 */ /* 0x3608AB2B: test byte ptr [ebp + 8], 1 */
  12920     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  12921     _cf = 0;
  12922     _flag_k = FK_NARROW(FK_TEST, 24);
  12923     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB3A; /* 0x3608AB2F: je 0x3608ab3a */
  12924 L_3608AB31:
  12925     PUSH32(esp, esi); /* 0x3608AB31: push esi */
  12926     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB32: call 0x3615fcc4 */ /* not lifted */
  12927     RECOMP_FLAGS_IN();
  12928     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12929     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12930     esp = esp + 4; /* 0x3608AB37: add esp, 4 */
  12931     _flag_k = FK_ADD;
  12932 L_3608AB3A:
  12933     eax = esi; /* 0x3608AB3A: mov eax, esi */
  12934     esi = POP32_VAL(esp); /* 0x3608AB3C: pop esi */
  12935     ebp = POP32_VAL(esp); /* 0x3608AB3D: pop ebp */
  12936     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AB3E: ret 4 */
  12937     RECOMP_REGS_OUT();
  12938 }
  12939 
  12940 void sub_3608AB50(void) {
  12941     int _fpu_cmp = 0;
  12942     uint32_t _cf = 0;
  12943     int _df = 1;
  12944     uint32_t _flag_k = FK_NONE;
  12945     uint32_t _flag_a = 0, _flag_b = 0;
  12946     uint32_t _itail_tgt = 0;
  12947     RECOMP_REGS_LOCALS
  12948     RECOMP_ENTER(0x3608AB50u);
  12949 
  12950 L_3608AB50:
  12951     PUSH32(esp, ebp); /* 0x3608AB50: push ebp */
  12952     ebp = esp; /* 0x3608AB51: mov ebp, esp */
  12953     PUSH32(esp, ecx); /* 0x3608AB53: push ecx */
  12954     PUSH32(esp, ebx); /* 0x3608AB54: push ebx */
  12955     ebx = ecx; /* 0x3608AB55: mov ebx, ecx */
  12956     eax = MEM32(ebx + 0x4); /* 0x3608AB57: mov eax, dword ptr [ebx + 4] */
  12957     MEM32(ebx) = 0x36171EECu; /* 0x3608AB5A: mov dword ptr [ebx], 0x36171eec */
  12958     eax = MEM32(eax + 0x4); /* 0x3608AB60: mov eax, dword ptr [eax + 4] */
  12959     PUSH32(esp, esi); /* 0x3608AB63: push esi */
  12960     esi = MEM32(eax); /* 0x3608AB64: mov esi, dword ptr [eax] */
  12961     /* cmp esi, eax */ /* 0x3608AB66: cmp esi, eax */
  12962     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  12963     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12964     _flag_k = FK_CMP;
  12965     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC9; /* 0x3608AB68: je 0x3608abc9 */
  12966 L_3608AB6A:
  12967     PUSH32(esp, edi); /* 0x3608AB6A: push edi */
  12968 L_3608AB6B:
  12969     edi = MEM32(esi + 0x10); /* 0x3608AB6B: mov edi, dword ptr [esi + 0x10] */
  12970     /* test edi, edi */ /* 0x3608AB6E: test edi, edi */
  12971     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  12972     _cf = 0;
  12973     _flag_k = FK_TEST;
  12974     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB92; /* 0x3608AB70: je 0x3608ab92 */
  12975 L_3608AB72:
  12976     eax = MEM32(edi + 0x4); /* 0x3608AB72: mov eax, dword ptr [edi + 4] */
  12977     PUSH32(esp, eax); /* 0x3608AB75: push eax */
  12978     MEM32(ebp + (-0x4)) = eax; /* 0x3608AB76: mov dword ptr [ebp - 4], eax */
  12979     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB79: call 0x3615fcc4 */ /* not lifted */
  12980     RECOMP_FLAGS_IN();
  12981     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  12982     eax = 0; /* 0x3608AB7E: xor eax, eax */
  12983     _cf = 0;
  12984     _flag_k = FK_TEST;
  12985     PUSH32(esp, edi); /* 0x3608AB80: push edi */
  12986     MEM32(edi + 0x4) = eax; /* 0x3608AB81: mov dword ptr [edi + 4], eax */
  12987     MEM32(edi + 0x8) = eax; /* 0x3608AB84: mov dword ptr [edi + 8], eax */
  12988     MEM32(edi + 0xC) = eax; /* 0x3608AB87: mov dword ptr [edi + 0xc], eax */
  12989     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB8A: call 0x3615fcc4 */ /* not lifted */
  12990     RECOMP_FLAGS_IN();
  12991     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  12992     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12993     esp = esp + 8; /* 0x3608AB8F: add esp, 8 */
  12994     _flag_k = FK_ADD;
  12995 L_3608AB92:
  12996     eax = MEM32(esi + 0x8); /* 0x3608AB92: mov eax, dword ptr [esi + 8] */
  12997     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608AB95: mov cl, byte ptr [eax + 0x15] */
  12998     /* test LO8(ecx), LO8(ecx) */ /* 0x3608AB98: test cl, cl */
  12999     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  13000     _cf = 0;
  13001     _flag_k = FK_NARROW(FK_TEST, 24);
  13002     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608ABA7; /* 0x3608AB9A: jne 0x3608aba7 */
  13003 L_3608AB9C:
  13004     PUSH32(esp, eax); /* 0x3608AB9C: push eax */
  13005     RECOMP_ICALL(0x3614FC90u); /* 0x3608AB9D: call 0x3614fc90 */ /* not lifted */
  13006     RECOMP_FLAGS_IN();
  13007     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13008     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13009     esp = esp + 4; /* 0x3608ABA2: add esp, 4 */
  13010     _flag_k = FK_ADD;
  13011     goto L_3608ABBE; /* 0x3608ABA5: jmp 0x3608abbe */
  13012 L_3608ABA7:
  13013     eax = MEM32(esi + 0x4); /* 0x3608ABA7: mov eax, dword ptr [esi + 4] */
  13014     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABAA: cmp esi, dword ptr [eax + 8] */
  13015     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13017     _flag_k = FK_CMP;
  13018     if (CMP_NE(_flag_a, _flag_b)) goto L_3608ABB9; /* 0x3608ABAD: jne 0x3608abb9 */
  13019 L_3608ABAF:
  13020     esi = eax; /* 0x3608ABAF: mov esi, eax */
  13021     eax = MEM32(eax + 0x4); /* 0x3608ABB1: mov eax, dword ptr [eax + 4] */
  13022     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABB4: cmp esi, dword ptr [eax + 8] */
  13023     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13025     _flag_k = FK_CMP;
  13026     RECOMP_BACKEDGE();
  13027     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABAF; /* 0x3608ABB7: je 0x3608abaf */
  13028 L_3608ABB9:
  13029     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608ABB9: cmp dword ptr [esi + 8], eax */
  13030     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  13031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13032     _flag_k = FK_CMP;
  13033     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC0; /* 0x3608ABBC: je 0x3608abc0 */
  13034 L_3608ABBE:
  13035     esi = eax; /* 0x3608ABBE: mov esi, eax */
  13036 L_3608ABC0:
  13037     ecx = MEM32(ebx + 0x4); /* 0x3608ABC0: mov ecx, dword ptr [ebx + 4] */
  13038     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608ABC3: cmp esi, dword ptr [ecx + 4] */
  13039     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13041     _flag_k = FK_CMP;
  13042     RECOMP_BACKEDGE();
  13043     if (CMP_NE(_flag_a, _flag_b)) goto L_3608AB6B; /* 0x3608ABC6: jne 0x3608ab6b */
  13044 L_3608ABC8:
  13045     edi = POP32_VAL(esp); /* 0x3608ABC8: pop edi */
  13046 L_3608ABC9:
  13047     esi = MEM32(ebx + 0x4); /* 0x3608ABC9: mov esi, dword ptr [ebx + 4] */
  13048     /* test esi, esi */ /* 0x3608ABCC: test esi, esi */
  13049     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  13050     _cf = 0;
  13051     _flag_k = FK_TEST;
  13052     if (TEST_Z(_flag_a, _flag_b)) goto L_3608ABE0; /* 0x3608ABCE: je 0x3608abe0 */
  13053 L_3608ABD0:
  13054     ecx = esi; /* 0x3608ABD0: mov ecx, esi */
  13055     RECOMP_ICALL(0x3608A570u); /* 0x3608ABD2: call 0x3608a570 */ /* not lifted */
  13056     RECOMP_FLAGS_IN();
  13057     PUSH32(esp, esi); /* 0x3608ABD7: push esi */
  13058     RECOMP_ICALL(0x3615FCC4u); /* 0x3608ABD8: call 0x3615fcc4 */ /* not lifted */
  13059     RECOMP_FLAGS_IN();
  13060     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13061     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13062     esp = esp + 4; /* 0x3608ABDD: add esp, 4 */
  13063     _flag_k = FK_ADD;
  13064 L_3608ABE0:
  13065     esi = POP32_VAL(esp); /* 0x3608ABE0: pop esi */
  13066     MEM32(ebx + 0x4) = 0; /* 0x3608ABE1: mov dword ptr [ebx + 4], 0 */
  13067     ebx = POP32_VAL(esp); /* 0x3608ABE8: pop ebx */
  13068     esp = ebp; /* 0x3608ABE9: mov esp, ebp */
  13069     ebp = POP32_VAL(esp); /* 0x3608ABEB: pop ebp */
  13070     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ABEC: ret  */
  13071     RECOMP_REGS_OUT();
  13072 }
  13073 
  13074 void sub_3608AB6B(void) {
  13075     int _fpu_cmp = 0;
  13076     uint32_t _cf = 0;
  13077     int _df = 1;
  13078     uint32_t _flag_k = FK_NONE;
  13079     uint32_t _flag_a = 0, _flag_b = 0;
  13080     uint32_t _itail_tgt = 0;
  13081     RECOMP_REGS_LOCALS
  13082     RECOMP_ENTER(0x3608AB6Bu);
  13083 
  13084 L_3608AB6B:
  13085     edi = MEM32(esi + 0x10); /* 0x3608AB6B: mov edi, dword ptr [esi + 0x10] */
  13086     /* test edi, edi */ /* 0x3608AB6E: test edi, edi */
  13087     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  13088     _cf = 0;
  13089     _flag_k = FK_TEST;
  13090     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB92; /* 0x3608AB70: je 0x3608ab92 */
  13091 L_3608AB72:
  13092     eax = MEM32(edi + 0x4); /* 0x3608AB72: mov eax, dword ptr [edi + 4] */
  13093     PUSH32(esp, eax); /* 0x3608AB75: push eax */
  13094     MEM32(ebp + (-0x4)) = eax; /* 0x3608AB76: mov dword ptr [ebp - 4], eax */
  13095     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB79: call 0x3615fcc4 */ /* not lifted */
  13096     RECOMP_FLAGS_IN();
  13097     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13098     eax = 0; /* 0x3608AB7E: xor eax, eax */
  13099     _cf = 0;
  13100     _flag_k = FK_TEST;
  13101     PUSH32(esp, edi); /* 0x3608AB80: push edi */
  13102     MEM32(edi + 0x4) = eax; /* 0x3608AB81: mov dword ptr [edi + 4], eax */
  13103     MEM32(edi + 0x8) = eax; /* 0x3608AB84: mov dword ptr [edi + 8], eax */
  13104     MEM32(edi + 0xC) = eax; /* 0x3608AB87: mov dword ptr [edi + 0xc], eax */
  13105     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB8A: call 0x3615fcc4 */ /* not lifted */
  13106     RECOMP_FLAGS_IN();
  13107     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13108     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13109     esp = esp + 8; /* 0x3608AB8F: add esp, 8 */
  13110     _flag_k = FK_ADD;
  13111 L_3608AB92:
  13112     eax = MEM32(esi + 0x8); /* 0x3608AB92: mov eax, dword ptr [esi + 8] */
  13113     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608AB95: mov cl, byte ptr [eax + 0x15] */
  13114     /* test LO8(ecx), LO8(ecx) */ /* 0x3608AB98: test cl, cl */
  13115     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  13116     _cf = 0;
  13117     _flag_k = FK_NARROW(FK_TEST, 24);
  13118     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608ABA7; /* 0x3608AB9A: jne 0x3608aba7 */
  13119 L_3608AB9C:
  13120     PUSH32(esp, eax); /* 0x3608AB9C: push eax */
  13121     RECOMP_ICALL(0x3614FC90u); /* 0x3608AB9D: call 0x3614fc90 */ /* not lifted */
  13122     RECOMP_FLAGS_IN();
  13123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13125     esp = esp + 4; /* 0x3608ABA2: add esp, 4 */
  13126     _flag_k = FK_ADD;
  13127     goto L_3608ABBE; /* 0x3608ABA5: jmp 0x3608abbe */
  13128 L_3608ABA7:
  13129     eax = MEM32(esi + 0x4); /* 0x3608ABA7: mov eax, dword ptr [esi + 4] */
  13130     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABAA: cmp esi, dword ptr [eax + 8] */
  13131     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13133     _flag_k = FK_CMP;
  13134     if (CMP_NE(_flag_a, _flag_b)) goto L_3608ABB9; /* 0x3608ABAD: jne 0x3608abb9 */
  13135 L_3608ABAF:
  13136     esi = eax; /* 0x3608ABAF: mov esi, eax */
  13137     eax = MEM32(eax + 0x4); /* 0x3608ABB1: mov eax, dword ptr [eax + 4] */
  13138     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABB4: cmp esi, dword ptr [eax + 8] */
  13139     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13141     _flag_k = FK_CMP;
  13142     RECOMP_BACKEDGE();
  13143     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABAF; /* 0x3608ABB7: je 0x3608abaf */
  13144 L_3608ABB9:
  13145     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608ABB9: cmp dword ptr [esi + 8], eax */
  13146     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  13147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13148     _flag_k = FK_CMP;
  13149     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC0; /* 0x3608ABBC: je 0x3608abc0 */
  13150 L_3608ABBE:
  13151     esi = eax; /* 0x3608ABBE: mov esi, eax */
  13152 L_3608ABC0:
  13153     ecx = MEM32(ebx + 0x4); /* 0x3608ABC0: mov ecx, dword ptr [ebx + 4] */
  13154     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608ABC3: cmp esi, dword ptr [ecx + 4] */
  13155     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13157     _flag_k = FK_CMP;
  13158     RECOMP_BACKEDGE();
  13159     if (CMP_NE(_flag_a, _flag_b)) goto L_3608AB6B; /* 0x3608ABC6: jne 0x3608ab6b */
  13160 L_3608ABC8:
  13161     edi = POP32_VAL(esp); /* 0x3608ABC8: pop edi */
  13162     esi = MEM32(ebx + 0x4); /* 0x3608ABC9: mov esi, dword ptr [ebx + 4] */
  13163     /* test esi, esi */ /* 0x3608ABCC: test esi, esi */
  13164     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  13165     _cf = 0;
  13166     _flag_k = FK_TEST;
  13167     if (TEST_Z(_flag_a, _flag_b)) goto L_3608ABE0; /* 0x3608ABCE: je 0x3608abe0 */
  13168 L_3608ABD0:
  13169     ecx = esi; /* 0x3608ABD0: mov ecx, esi */
  13170     RECOMP_ICALL(0x3608A570u); /* 0x3608ABD2: call 0x3608a570 */ /* not lifted */
  13171     RECOMP_FLAGS_IN();
  13172     PUSH32(esp, esi); /* 0x3608ABD7: push esi */
  13173     RECOMP_ICALL(0x3615FCC4u); /* 0x3608ABD8: call 0x3615fcc4 */ /* not lifted */
  13174     RECOMP_FLAGS_IN();
  13175     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13176     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13177     esp = esp + 4; /* 0x3608ABDD: add esp, 4 */
  13178     _flag_k = FK_ADD;
  13179 L_3608ABE0:
  13180     esi = POP32_VAL(esp); /* 0x3608ABE0: pop esi */
  13181     MEM32(ebx + 0x4) = 0; /* 0x3608ABE1: mov dword ptr [ebx + 4], 0 */
  13182     ebx = POP32_VAL(esp); /* 0x3608ABE8: pop ebx */
  13183     esp = ebp; /* 0x3608ABE9: mov esp, ebp */
  13184     ebp = POP32_VAL(esp); /* 0x3608ABEB: pop ebp */
  13185     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ABEC: ret  */
  13186     RECOMP_REGS_OUT();
  13187 }
  13188 
  13189 void sub_3608ABBE(void) {
  13190     int _fpu_cmp = 0;
  13191     uint32_t _cf = 0;
  13192     int _df = 1;
  13193     uint32_t _flag_k = FK_NONE;
  13194     uint32_t _flag_a = 0, _flag_b = 0;
  13195     uint32_t _itail_tgt = 0;
  13196     RECOMP_REGS_LOCALS
  13197     RECOMP_ENTER(0x3608ABBEu);
  13198 
  13199     goto L_3608ABBE;
  13200 L_3608AB6B:
  13201     edi = MEM32(esi + 0x10); /* 0x3608AB6B: mov edi, dword ptr [esi + 0x10] */
  13202     /* test edi, edi */ /* 0x3608AB6E: test edi, edi */
  13203     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  13204     _cf = 0;
  13205     _flag_k = FK_TEST;
  13206     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB92; /* 0x3608AB70: je 0x3608ab92 */
  13207 L_3608AB72:
  13208     eax = MEM32(edi + 0x4); /* 0x3608AB72: mov eax, dword ptr [edi + 4] */
  13209     PUSH32(esp, eax); /* 0x3608AB75: push eax */
  13210     MEM32(ebp + (-0x4)) = eax; /* 0x3608AB76: mov dword ptr [ebp - 4], eax */
  13211     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB79: call 0x3615fcc4 */ /* not lifted */
  13212     RECOMP_FLAGS_IN();
  13213     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13214     eax = 0; /* 0x3608AB7E: xor eax, eax */
  13215     _cf = 0;
  13216     _flag_k = FK_TEST;
  13217     PUSH32(esp, edi); /* 0x3608AB80: push edi */
  13218     MEM32(edi + 0x4) = eax; /* 0x3608AB81: mov dword ptr [edi + 4], eax */
  13219     MEM32(edi + 0x8) = eax; /* 0x3608AB84: mov dword ptr [edi + 8], eax */
  13220     MEM32(edi + 0xC) = eax; /* 0x3608AB87: mov dword ptr [edi + 0xc], eax */
  13221     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB8A: call 0x3615fcc4 */ /* not lifted */
  13222     RECOMP_FLAGS_IN();
  13223     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13224     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13225     esp = esp + 8; /* 0x3608AB8F: add esp, 8 */
  13226     _flag_k = FK_ADD;
  13227 L_3608AB92:
  13228     eax = MEM32(esi + 0x8); /* 0x3608AB92: mov eax, dword ptr [esi + 8] */
  13229     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608AB95: mov cl, byte ptr [eax + 0x15] */
  13230     /* test LO8(ecx), LO8(ecx) */ /* 0x3608AB98: test cl, cl */
  13231     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  13232     _cf = 0;
  13233     _flag_k = FK_NARROW(FK_TEST, 24);
  13234     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608ABA7; /* 0x3608AB9A: jne 0x3608aba7 */
  13235 L_3608AB9C:
  13236     PUSH32(esp, eax); /* 0x3608AB9C: push eax */
  13237     RECOMP_ICALL(0x3614FC90u); /* 0x3608AB9D: call 0x3614fc90 */ /* not lifted */
  13238     RECOMP_FLAGS_IN();
  13239     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13240     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13241     esp = esp + 4; /* 0x3608ABA2: add esp, 4 */
  13242     _flag_k = FK_ADD;
  13243     goto L_3608ABBE; /* 0x3608ABA5: jmp 0x3608abbe */
  13244 L_3608ABA7:
  13245     eax = MEM32(esi + 0x4); /* 0x3608ABA7: mov eax, dword ptr [esi + 4] */
  13246     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABAA: cmp esi, dword ptr [eax + 8] */
  13247     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13249     _flag_k = FK_CMP;
  13250     if (CMP_NE(_flag_a, _flag_b)) goto L_3608ABB9; /* 0x3608ABAD: jne 0x3608abb9 */
  13251 L_3608ABAF:
  13252     esi = eax; /* 0x3608ABAF: mov esi, eax */
  13253     eax = MEM32(eax + 0x4); /* 0x3608ABB1: mov eax, dword ptr [eax + 4] */
  13254     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABB4: cmp esi, dword ptr [eax + 8] */
  13255     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13257     _flag_k = FK_CMP;
  13258     RECOMP_BACKEDGE();
  13259     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABAF; /* 0x3608ABB7: je 0x3608abaf */
  13260 L_3608ABB9:
  13261     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608ABB9: cmp dword ptr [esi + 8], eax */
  13262     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  13263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13264     _flag_k = FK_CMP;
  13265     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC0; /* 0x3608ABBC: je 0x3608abc0 */
  13266 L_3608ABBE:
  13267     esi = eax; /* 0x3608ABBE: mov esi, eax */
  13268 L_3608ABC0:
  13269     ecx = MEM32(ebx + 0x4); /* 0x3608ABC0: mov ecx, dword ptr [ebx + 4] */
  13270     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608ABC3: cmp esi, dword ptr [ecx + 4] */
  13271     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13272     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13273     _flag_k = FK_CMP;
  13274     RECOMP_BACKEDGE();
  13275     if (CMP_NE(_flag_a, _flag_b)) goto L_3608AB6B; /* 0x3608ABC6: jne 0x3608ab6b */
  13276 L_3608ABC8:
  13277     edi = POP32_VAL(esp); /* 0x3608ABC8: pop edi */
  13278     esi = MEM32(ebx + 0x4); /* 0x3608ABC9: mov esi, dword ptr [ebx + 4] */
  13279     /* test esi, esi */ /* 0x3608ABCC: test esi, esi */
  13280     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  13281     _cf = 0;
  13282     _flag_k = FK_TEST;
  13283     if (TEST_Z(_flag_a, _flag_b)) goto L_3608ABE0; /* 0x3608ABCE: je 0x3608abe0 */
  13284 L_3608ABD0:
  13285     ecx = esi; /* 0x3608ABD0: mov ecx, esi */
  13286     RECOMP_ICALL(0x3608A570u); /* 0x3608ABD2: call 0x3608a570 */ /* not lifted */
  13287     RECOMP_FLAGS_IN();
  13288     PUSH32(esp, esi); /* 0x3608ABD7: push esi */
  13289     RECOMP_ICALL(0x3615FCC4u); /* 0x3608ABD8: call 0x3615fcc4 */ /* not lifted */
  13290     RECOMP_FLAGS_IN();
  13291     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13292     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13293     esp = esp + 4; /* 0x3608ABDD: add esp, 4 */
  13294     _flag_k = FK_ADD;
  13295 L_3608ABE0:
  13296     esi = POP32_VAL(esp); /* 0x3608ABE0: pop esi */
  13297     MEM32(ebx + 0x4) = 0; /* 0x3608ABE1: mov dword ptr [ebx + 4], 0 */
  13298     ebx = POP32_VAL(esp); /* 0x3608ABE8: pop ebx */
  13299     esp = ebp; /* 0x3608ABE9: mov esp, ebp */
  13300     ebp = POP32_VAL(esp); /* 0x3608ABEB: pop ebp */
  13301     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ABEC: ret  */
  13302     RECOMP_REGS_OUT();
  13303 }
  13304 
  13305 void sub_3608ABC0(void) {
  13306     int _fpu_cmp = 0;
  13307     uint32_t _cf = 0;
  13308     int _df = 1;
  13309     uint32_t _flag_k = FK_NONE;
  13310     uint32_t _flag_a = 0, _flag_b = 0;
  13311     uint32_t _itail_tgt = 0;
  13312     RECOMP_REGS_LOCALS
  13313     RECOMP_ENTER(0x3608ABC0u);
  13314 
  13315     goto L_3608ABC0;
  13316 L_3608AB6B:
  13317     edi = MEM32(esi + 0x10); /* 0x3608AB6B: mov edi, dword ptr [esi + 0x10] */
  13318     /* test edi, edi */ /* 0x3608AB6E: test edi, edi */
  13319     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  13320     _cf = 0;
  13321     _flag_k = FK_TEST;
  13322     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB92; /* 0x3608AB70: je 0x3608ab92 */
  13323 L_3608AB72:
  13324     eax = MEM32(edi + 0x4); /* 0x3608AB72: mov eax, dword ptr [edi + 4] */
  13325     PUSH32(esp, eax); /* 0x3608AB75: push eax */
  13326     MEM32(ebp + (-0x4)) = eax; /* 0x3608AB76: mov dword ptr [ebp - 4], eax */
  13327     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB79: call 0x3615fcc4 */ /* not lifted */
  13328     RECOMP_FLAGS_IN();
  13329     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13330     eax = 0; /* 0x3608AB7E: xor eax, eax */
  13331     _cf = 0;
  13332     _flag_k = FK_TEST;
  13333     PUSH32(esp, edi); /* 0x3608AB80: push edi */
  13334     MEM32(edi + 0x4) = eax; /* 0x3608AB81: mov dword ptr [edi + 4], eax */
  13335     MEM32(edi + 0x8) = eax; /* 0x3608AB84: mov dword ptr [edi + 8], eax */
  13336     MEM32(edi + 0xC) = eax; /* 0x3608AB87: mov dword ptr [edi + 0xc], eax */
  13337     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB8A: call 0x3615fcc4 */ /* not lifted */
  13338     RECOMP_FLAGS_IN();
  13339     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13340     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13341     esp = esp + 8; /* 0x3608AB8F: add esp, 8 */
  13342     _flag_k = FK_ADD;
  13343 L_3608AB92:
  13344     eax = MEM32(esi + 0x8); /* 0x3608AB92: mov eax, dword ptr [esi + 8] */
  13345     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608AB95: mov cl, byte ptr [eax + 0x15] */
  13346     /* test LO8(ecx), LO8(ecx) */ /* 0x3608AB98: test cl, cl */
  13347     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  13348     _cf = 0;
  13349     _flag_k = FK_NARROW(FK_TEST, 24);
  13350     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608ABA7; /* 0x3608AB9A: jne 0x3608aba7 */
  13351 L_3608AB9C:
  13352     PUSH32(esp, eax); /* 0x3608AB9C: push eax */
  13353     RECOMP_ICALL(0x3614FC90u); /* 0x3608AB9D: call 0x3614fc90 */ /* not lifted */
  13354     RECOMP_FLAGS_IN();
  13355     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13356     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13357     esp = esp + 4; /* 0x3608ABA2: add esp, 4 */
  13358     _flag_k = FK_ADD;
  13359     goto L_3608ABBE; /* 0x3608ABA5: jmp 0x3608abbe */
  13360 L_3608ABA7:
  13361     eax = MEM32(esi + 0x4); /* 0x3608ABA7: mov eax, dword ptr [esi + 4] */
  13362     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABAA: cmp esi, dword ptr [eax + 8] */
  13363     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13365     _flag_k = FK_CMP;
  13366     if (CMP_NE(_flag_a, _flag_b)) goto L_3608ABB9; /* 0x3608ABAD: jne 0x3608abb9 */
  13367 L_3608ABAF:
  13368     esi = eax; /* 0x3608ABAF: mov esi, eax */
  13369     eax = MEM32(eax + 0x4); /* 0x3608ABB1: mov eax, dword ptr [eax + 4] */
  13370     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABB4: cmp esi, dword ptr [eax + 8] */
  13371     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
  13372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13373     _flag_k = FK_CMP;
  13374     RECOMP_BACKEDGE();
  13375     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABAF; /* 0x3608ABB7: je 0x3608abaf */
  13376 L_3608ABB9:
  13377     /* cmp MEM32(esi + 0x8), eax */ /* 0x3608ABB9: cmp dword ptr [esi + 8], eax */
  13378     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
  13379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13380     _flag_k = FK_CMP;
  13381     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC0; /* 0x3608ABBC: je 0x3608abc0 */
  13382 L_3608ABBE:
  13383     esi = eax; /* 0x3608ABBE: mov esi, eax */
  13384 L_3608ABC0:
  13385     ecx = MEM32(ebx + 0x4); /* 0x3608ABC0: mov ecx, dword ptr [ebx + 4] */
  13386     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608ABC3: cmp esi, dword ptr [ecx + 4] */
  13387     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13389     _flag_k = FK_CMP;
  13390     RECOMP_BACKEDGE();
  13391     if (CMP_NE(_flag_a, _flag_b)) goto L_3608AB6B; /* 0x3608ABC6: jne 0x3608ab6b */
  13392 L_3608ABC8:
  13393     edi = POP32_VAL(esp); /* 0x3608ABC8: pop edi */
  13394     esi = MEM32(ebx + 0x4); /* 0x3608ABC9: mov esi, dword ptr [ebx + 4] */
  13395     /* test esi, esi */ /* 0x3608ABCC: test esi, esi */
  13396     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  13397     _cf = 0;
  13398     _flag_k = FK_TEST;
  13399     if (TEST_Z(_flag_a, _flag_b)) goto L_3608ABE0; /* 0x3608ABCE: je 0x3608abe0 */
  13400 L_3608ABD0:
  13401     ecx = esi; /* 0x3608ABD0: mov ecx, esi */
  13402     RECOMP_ICALL(0x3608A570u); /* 0x3608ABD2: call 0x3608a570 */ /* not lifted */
  13403     RECOMP_FLAGS_IN();
  13404     PUSH32(esp, esi); /* 0x3608ABD7: push esi */
  13405     RECOMP_ICALL(0x3615FCC4u); /* 0x3608ABD8: call 0x3615fcc4 */ /* not lifted */
  13406     RECOMP_FLAGS_IN();
  13407     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13408     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13409     esp = esp + 4; /* 0x3608ABDD: add esp, 4 */
  13410     _flag_k = FK_ADD;
  13411 L_3608ABE0:
  13412     esi = POP32_VAL(esp); /* 0x3608ABE0: pop esi */
  13413     MEM32(ebx + 0x4) = 0; /* 0x3608ABE1: mov dword ptr [ebx + 4], 0 */
  13414     ebx = POP32_VAL(esp); /* 0x3608ABE8: pop ebx */
  13415     esp = ebp; /* 0x3608ABE9: mov esp, ebp */
  13416     ebp = POP32_VAL(esp); /* 0x3608ABEB: pop ebp */
  13417     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ABEC: ret  */
  13418     RECOMP_REGS_OUT();
  13419 }
  13420 
  13421 void sub_3608ABF0(void) {
  13422     int _fpu_cmp = 0;
  13423     uint32_t _cf = 0;
  13424     int _df = 1;
  13425     uint32_t _flag_k = FK_NONE;
  13426     uint32_t _flag_a = 0, _flag_b = 0;
  13427     uint32_t _itail_tgt = 0;
  13428     RECOMP_REGS_LOCALS
  13429     RECOMP_ENTER(0x3608ABF0u);
  13430 
  13431 L_3608ABF0:
  13432     PUSH32(esp, ebp); /* 0x3608ABF0: push ebp */
  13433     ebp = esp; /* 0x3608ABF1: mov ebp, esp */
  13434     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  13435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13436     esp = esp - 0x18u; /* 0x3608ABF3: sub esp, 0x18 */
  13437     _flag_k = FK_CMP;
  13438     eax = MEM32(ebp + 0x8); /* 0x3608ABF6: mov eax, dword ptr [ebp + 8] */
  13439     ecx = MEM32(ecx + 0x4); /* 0x3608ABF9: mov ecx, dword ptr [ecx + 4] */
  13440     PUSH32(esp, esi); /* 0x3608ABFC: push esi */
  13441     PUSH32(esp, edi); /* 0x3608ABFD: push edi */
  13442     edx = ebp + (-0x8); /* 0x3608ABFE: lea edx, [ebp - 8] */
  13443     MEM32(ebp + (-0x8)) = eax; /* 0x3608AC01: mov dword ptr [ebp - 8], eax */
  13444     PUSH32(esp, edx); /* 0x3608AC04: push edx */
  13445     eax = ebp + (-0x18); /* 0x3608AC05: lea eax, [ebp - 0x18] */
  13446     PUSH32(esp, eax); /* 0x3608AC08: push eax */
  13447     MEM32(ebp + (-0x4)) = 0; /* 0x3608AC09: mov dword ptr [ebp - 4], 0 */
  13448     RECOMP_ICALL(0x3603E790u); /* 0x3608AC10: call 0x3603e790 */ /* not lifted */
  13449     RECOMP_FLAGS_IN();
  13450     ecx = eax; /* 0x3608AC15: mov ecx, eax */
  13451     eax = MEM32(ecx); /* 0x3608AC17: mov eax, dword ptr [ecx] */
  13452     esi = MEM32(eax + 0x10); /* 0x3608AC19: mov esi, dword ptr [eax + 0x10] */
  13453     /* test esi, esi */ /* 0x3608AC1C: test esi, esi */
  13454     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  13455     _cf = 0;
  13456     _flag_k = FK_TEST;
  13457     edx = MEM32(ecx + 0x4); /* 0x3608AC1E: mov edx, dword ptr [ecx + 4] */
  13458     MEM32(ebp + (-0xC)) = edx; /* 0x3608AC21: mov dword ptr [ebp - 0xc], edx */
  13459     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608AC30; /* 0x3608AC24: jne 0x3608ac30 */
  13460 L_3608AC26:
  13461     edi = POP32_VAL(esp); /* 0x3608AC26: pop edi */
  13462     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13463     eax = 0; /* 0x3608AC27: xor eax, eax */
  13464     _cf = 0;
  13465     _flag_k = FK_TEST;
  13466     esi = POP32_VAL(esp); /* 0x3608AC29: pop esi */
  13467     esp = ebp; /* 0x3608AC2A: mov esp, ebp */
  13468     ebp = POP32_VAL(esp); /* 0x3608AC2C: pop ebp */
  13469     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AC2D: ret 4 */
  13470 L_3608AC30:
  13471     eax = MEM32(esi + 0x4); /* 0x3608AC30: mov eax, dword ptr [esi + 4] */
  13472     /* test eax, eax */ /* 0x3608AC33: test eax, eax */
  13473     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  13474     _cf = 0;
  13475     _flag_k = FK_TEST;
  13476     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AC41; /* 0x3608AC35: je 0x3608ac41 */
  13477 L_3608AC37:
  13478     edi = MEM32(esi + 0x8); /* 0x3608AC37: mov edi, dword ptr [esi + 8] */
  13479     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  13480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13481     edi = edi - eax; /* 0x3608AC3A: sub edi, eax */
  13482     _flag_k = FK_CMP;
  13483     if (2u) _cf = (((edi) >> 1) & 1u); /* 0x3608AC3C: sar edi, 2 */
  13484     if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  13485     edi = (uint32_t)((int32_t)edi >> 2u);
  13486     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3608AC4B; /* 0x3608AC3F: jne 0x3608ac4b */
  13487 L_3608AC41:
  13488     edi = POP32_VAL(esp); /* 0x3608AC41: pop edi */
  13489     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  13490     eax = 0; /* 0x3608AC42: xor eax, eax */
  13491     _cf = 0;
  13492     _flag_k = FK_TEST;
  13493     esi = POP32_VAL(esp); /* 0x3608AC44: pop esi */
  13494     esp = ebp; /* 0x3608AC45: mov esp, ebp */
  13495     ebp = POP32_VAL(esp); /* 0x3608AC47: pop ebp */
  13496     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AC48: ret 4 */
  13497 L_3608AC4B:
  13498     RECOMP_ICALL(MEM32(0x3616F254)); /* 0x3608AC4B: call dword ptr [0x3616f254] */
  13499     RECOMP_FLAGS_IN();
  13500     MEM32(ebp + 0x8) = eax; /* 0x3608AC51: mov dword ptr [ebp + 8], eax */
  13501     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3608AC54: fild dword ptr [ebp + 8] */
  13502     MEM32(ebp + (-0x10)) = edi; /* 0x3608AC57: mov dword ptr [ebp - 0x10], edi */
  13503     MEM32(ebp + (-0xC)) = 0; /* 0x3608AC5A: mov dword ptr [ebp - 0xc], 0 */
  13504     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13506     esp = esp - 8; /* 0x3608AC61: sub esp, 8 */
  13507     _flag_k = FK_CMP;
  13508     _st[0] *= *(double*)ADDR(0x36171EE0); /* 0x3608AC64: fmul qword ptr [0x36171ee0] */
  13509     fp_push_i64((int64_t)MEM64(ebp + (-0x10))); /* 0x3608AC6A: fild qword ptr [ebp - 0x10] */
  13510     { double _v = fp_pop(); _st[0] *= _v; } /* 0x3608AC6D: fmulp st(1) */
  13511     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3608AC6F: fstp qword ptr [esp] */
  13512     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3608AC72: call dword ptr [0x3616f198] */
  13513     RECOMP_FLAGS_IN();
  13514     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13515     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13516     esp = esp + 8; /* 0x3608AC78: add esp, 8 */
  13517     _flag_k = FK_ADD;
  13518     RECOMP_ICALL(0x3615FD8Cu); /* 0x3608AC7B: call 0x3615fd8c */ /* not lifted */
  13519     RECOMP_FLAGS_IN();
  13520     ecx = MEM32(esi + 0x4); /* 0x3608AC80: mov ecx, dword ptr [esi + 4] */
  13521     eax = MEM32(ecx + eax * 4); /* 0x3608AC83: mov eax, dword ptr [ecx + eax*4] */
  13522     edi = POP32_VAL(esp); /* 0x3608AC86: pop edi */
  13523     esi = POP32_VAL(esp); /* 0x3608AC87: pop esi */
  13524     esp = ebp; /* 0x3608AC88: mov esp, ebp */
  13525     ebp = POP32_VAL(esp); /* 0x3608AC8A: pop ebp */
  13526     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AC8B: ret 4 */
  13527     RECOMP_REGS_OUT();
  13528 }
  13529 
  13530 void sub_3608AC90(void) {
  13531     int _fpu_cmp = 0;
  13532     uint32_t _cf = 0;
  13533     int _df = 1;
  13534     uint32_t _flag_k = FK_NONE;
  13535     uint32_t _flag_a = 0, _flag_b = 0;
  13536     uint32_t _itail_tgt = 0;
  13537     RECOMP_REGS_LOCALS
  13538     RECOMP_ENTER(0x3608AC90u);
  13539 
  13540 L_3608AC90:
  13541     PUSH32(esp, ebp); /* 0x3608AC90: push ebp */
  13542     ebp = esp; /* 0x3608AC91: mov ebp, esp */
  13543     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608AC93: push -1 */
  13544     PUSH32(esp, 0x36165E38u); /* 0x3608AC95: push 0x36165e38 */
  13545     eax = MEM32(FS_BASE + (0)); /* 0x3608AC9A: mov eax, dword ptr fs:[0] */
  13546     PUSH32(esp, eax); /* 0x3608ACA0: push eax */
  13547     MEM32(FS_BASE + (0)) = esp; /* 0x3608ACA1: mov dword ptr fs:[0], esp */
  13548     PUSH32(esp, ecx); /* 0x3608ACA8: push ecx */
  13549     eax = MEM32(ebp + 0xC); /* 0x3608ACA9: mov eax, dword ptr [ebp + 0xc] */
  13550     PUSH32(esp, esi); /* 0x3608ACAC: push esi */
  13551     esi = ecx; /* 0x3608ACAD: mov esi, ecx */
  13552     ecx = MEM32(ebp + 0x8); /* 0x3608ACAF: mov ecx, dword ptr [ebp + 8] */
  13553     PUSH32(esp, eax); /* 0x3608ACB2: push eax */
  13554     PUSH32(esp, ecx); /* 0x3608ACB3: push ecx */
  13555     ecx = esi; /* 0x3608ACB4: mov ecx, esi */
  13556     MEM32(ebp + (-0x10)) = esi; /* 0x3608ACB6: mov dword ptr [ebp - 0x10], esi */
  13557     RECOMP_ICALL(0x3608B3B0u); /* 0x3608ACB9: call 0x3608b3b0 */ /* not lifted */
  13558     RECOMP_FLAGS_IN();
  13559     ecx = esi; /* 0x3608ACBE: mov ecx, esi */
  13560     MEM32(ebp + (-0x4)) = 0; /* 0x3608ACC0: mov dword ptr [ebp - 4], 0 */
  13561     MEM32(esi) = 0x36171FECu; /* 0x3608ACC7: mov dword ptr [esi], 0x36171fec */
  13562     MEM32(esi + 0x8) = 0x36171FDCu; /* 0x3608ACCD: mov dword ptr [esi + 8], 0x36171fdc */
  13563     MEM32(esi + 0x40) = 0x36171FD4u; /* 0x3608ACD4: mov dword ptr [esi + 0x40], 0x36171fd4 */
  13564     MEM32(esi + 0x4C) = 0x36171FCCu; /* 0x3608ACDB: mov dword ptr [esi + 0x4c], 0x36171fcc */
  13565     MEM32(esi + 0x80) = 0x36171FB8u; /* 0x3608ACE2: mov dword ptr [esi + 0x80], 0x36171fb8 */
  13566     MEM32(esi + 0x8C) = 0x36171F14u; /* 0x3608ACEC: mov dword ptr [esi + 0x8c], 0x36171f14 */
  13567     MEM32(esi + 0xA8) = 0x36171EFCu; /* 0x3608ACF6: mov dword ptr [esi + 0xa8], 0x36171efc */
  13568     MEM32(esi + 0xAC) = 0x36171EF4u; /* 0x3608AD00: mov dword ptr [esi + 0xac], 0x36171ef4 */
  13569     RECOMP_ICALL(0x360E2940u); /* 0x3608AD0A: call 0x360e2940 */ /* not lifted */
  13570     RECOMP_FLAGS_IN();
  13571     ecx = MEM32(ebp + (-0xC)); /* 0x3608AD0F: mov ecx, dword ptr [ebp - 0xc] */
  13572     eax = esi; /* 0x3608AD12: mov eax, esi */
  13573     esi = POP32_VAL(esp); /* 0x3608AD14: pop esi */
  13574     MEM32(FS_BASE + (0)) = ecx; /* 0x3608AD15: mov dword ptr fs:[0], ecx */
  13575     esp = ebp; /* 0x3608AD1C: mov esp, ebp */
  13576     ebp = POP32_VAL(esp); /* 0x3608AD1E: pop ebp */
  13577     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608AD1F: ret 8 */
  13578     RECOMP_REGS_OUT();
  13579 }
  13580 
  13581 void sub_3608AD30(void) {
  13582     int _fpu_cmp = 0;
  13583     uint32_t _cf = 0;
  13584     int _df = 1;
  13585     uint32_t _flag_k = FK_NONE;
  13586     uint32_t _flag_a = 0, _flag_b = 0;
  13587     uint32_t _itail_tgt = 0;
  13588     RECOMP_REGS_LOCALS
  13589     RECOMP_ENTER(0x3608AD30u);
  13590 
  13591 L_3608AD30:
  13592     PUSH32(esp, ebp); /* 0x3608AD30: push ebp */
  13593     ebp = esp; /* 0x3608AD31: mov ebp, esp */
  13594     PUSH32(esp, esi); /* 0x3608AD33: push esi */
  13595     esi = ecx; /* 0x3608AD34: mov esi, ecx */
  13596     RECOMP_ICALL(0x3608AD70u); /* 0x3608AD36: call 0x3608ad70 */ /* not lifted */
  13597     RECOMP_FLAGS_IN();
  13598     /* test MEM8(ebp + 0x8), 1 */ /* 0x3608AD3B: test byte ptr [ebp + 8], 1 */
  13599     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  13600     _cf = 0;
  13601     _flag_k = FK_NARROW(FK_TEST, 24);
  13602     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AD4A; /* 0x3608AD3F: je 0x3608ad4a */
  13603 L_3608AD41:
  13604     PUSH32(esp, esi); /* 0x3608AD41: push esi */
  13605     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AD42: call 0x3615fcc4 */ /* not lifted */
  13606     RECOMP_FLAGS_IN();
  13607     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13609     esp = esp + 4; /* 0x3608AD47: add esp, 4 */
  13610     _flag_k = FK_ADD;
  13611 L_3608AD4A:
  13612     eax = esi; /* 0x3608AD4A: mov eax, esi */
  13613     esi = POP32_VAL(esp); /* 0x3608AD4C: pop esi */
  13614     ebp = POP32_VAL(esp); /* 0x3608AD4D: pop ebp */
  13615     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AD4E: ret 4 */
  13616     RECOMP_REGS_OUT();
  13617 }
  13618 
  13619 void sub_3608AD60(void) {
  13620     int _fpu_cmp = 0;
  13621     uint32_t _cf = 0;
  13622     int _df = 1;
  13623     uint32_t _flag_k = FK_NONE;
  13624     uint32_t _flag_a = 0, _flag_b = 0;
  13625     uint32_t _itail_tgt = 0;
  13626     RECOMP_REGS_LOCALS
  13627     RECOMP_ENTER(0x3608AD60u);
  13628 
  13629 L_3608AD60:
  13630     goto L_36097360; /* 0x3608AD60: jmp 0x36097360 */
  13631 L_36097360:
  13632     goto L_3609C6C0; /* 0x36097360: jmp 0x3609c6c0 */
  13633 L_3609C6C0:
  13634     PUSH32(esp, ebp); /* 0x3609C6C0: push ebp */
  13635     ebp = esp; /* 0x3609C6C1: mov ebp, esp */
  13636     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  13637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13638     esp = esp - 0x14u; /* 0x3609C6C3: sub esp, 0x14 */
  13639     _flag_k = FK_CMP;
  13640     PUSH32(esp, ebx); /* 0x3609C6C6: push ebx */
  13641     PUSH32(esp, esi); /* 0x3609C6C7: push esi */
  13642     PUSH32(esp, edi); /* 0x3609C6C8: push edi */
  13643     ebx = ecx; /* 0x3609C6C9: mov ebx, ecx */
  13644     RECOMP_ICALL(MEM32(0x3616FBE4)); /* 0x3609C6CB: call dword ptr [0x3616fbe4] */
  13645     RECOMP_FLAGS_IN();
  13646     eax = MEM32(ebx + 0xF0); /* 0x3609C6D1: mov eax, dword ptr [ebx + 0xf0] */
  13647     ecx = MEM32(eax + 0x8); /* 0x3609C6D7: mov ecx, dword ptr [eax + 8] */
  13648     /* test ecx, ecx */ /* 0x3609C6DA: test ecx, ecx */
  13649     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  13650     _cf = 0;
  13651     _flag_k = FK_TEST;
  13652     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C77E; /* 0x3609C6DC: je 0x3609c77e */
  13653 L_3609C6E2:
  13654     eax = MEM32(eax + 0x4); /* 0x3609C6E2: mov eax, dword ptr [eax + 4] */
  13655     edi = MEM32(eax); /* 0x3609C6E5: mov edi, dword ptr [eax] */
  13656     /* cmp edi, eax */ /* 0x3609C6E7: cmp edi, eax */
  13657     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
  13658     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13659     _flag_k = FK_CMP;
  13660     MEM32(ebp + (-0x4)) = edi; /* 0x3609C6E9: mov dword ptr [ebp - 4], edi */
  13661     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609C77E; /* 0x3609C6EC: je 0x3609c77e */
  13662 L_3609C6F2:
  13663     goto L_3609C6F7; /* 0x3609C6F2: jmp 0x3609c6f7 */
  13664 L_3609C6F4:
  13665     edi = MEM32(ebp + (-0x4)); /* 0x3609C6F4: mov edi, dword ptr [ebp - 4] */
  13666 L_3609C6F7:
  13667     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
  13668     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13669     edi = edi + 8; /* 0x3609C6F7: add edi, 8 */
  13670     _flag_k = FK_ADD;
  13671     PUSH32(esp, edi); /* 0x3609C6FA: push edi */
  13672     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3609C6FB: call dword ptr [0x3616ff70] */
  13673     RECOMP_FLAGS_IN();
  13674     esi = eax; /* 0x3609C701: mov esi, eax */
  13675     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13677     esp = esp + 4; /* 0x3609C703: add esp, 4 */
  13678     _flag_k = FK_ADD;
  13679     /* test esi, esi */ /* 0x3609C706: test esi, esi */
  13680     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  13681     _cf = 0;
  13682     _flag_k = FK_TEST;
  13683     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609C71A; /* 0x3609C708: jne 0x3609c71a */
  13684 L_3609C70A:
  13685     PUSH32(esp, edi); /* 0x3609C70A: push edi */
  13686     RECOMP_ICALL(MEM32(0x3616FF58)); /* 0x3609C70B: call dword ptr [0x3616ff58] */
  13687     RECOMP_FLAGS_IN();
  13688     esi = eax; /* 0x3609C711: mov esi, eax */
  13689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13691     esp = esp + 4; /* 0x3609C713: add esp, 4 */
  13692     _flag_k = FK_ADD;
  13693     /* test esi, esi */ /* 0x3609C716: test esi, esi */
  13694     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  13695     _cf = 0;
  13696     _flag_k = FK_TEST;
  13697     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C767; /* 0x3609C718: je 0x3609c767 */
  13698 L_3609C71A:
  13699     ecx = esi; /* 0x3609C71A: mov ecx, esi */
  13700     RECOMP_ICALL(MEM32(0x3616FCB0)); /* 0x3609C71C: call dword ptr [0x3616fcb0] */
  13701     RECOMP_FLAGS_IN();
  13702     /* test LO8(eax), LO8(eax) */ /* 0x3609C722: test al, al */
  13703     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  13704     _cf = 0;
  13705     _flag_k = FK_NARROW(FK_TEST, 24);
  13706     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609C73C; /* 0x3609C724: jne 0x3609c73c */
  13707 L_3609C726:
  13708     ecx = MEM32(0x3616FC1C); /* 0x3609C726: mov ecx, dword ptr [0x3616fc1c] */
  13709     edx = MEM32(0x3616FC18); /* 0x3609C72C: mov edx, dword ptr [0x3616fc18] */
  13710     eax = MEM32(ebx); /* 0x3609C732: mov eax, dword ptr [ebx] */
  13711     PUSH32(esp, ecx); /* 0x3609C734: push ecx */
  13712     PUSH32(esp, edx); /* 0x3609C735: push edx */
  13713     PUSH32(esp, esi); /* 0x3609C736: push esi */
  13714     ecx = ebx; /* 0x3609C737: mov ecx, ebx */
  13715     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x3609C739: call dword ptr [eax + 0x1c] */
  13716     RECOMP_FLAGS_IN();
  13717 L_3609C73C:
  13718     PUSH32(esp, 0); /* 0x3609C73C: push 0 */
  13719     PUSH32(esp, 0x361C4320u); /* 0x3609C73E: push 0x361c4320 */
  13720     PUSH32(esp, 0x361B2CC0u); /* 0x3609C743: push 0x361b2cc0 */
  13721     PUSH32(esp, 0); /* 0x3609C748: push 0 */
  13722     PUSH32(esp, esi); /* 0x3609C74A: push esi */
  13723     RECOMP_ICALL(0x3615FD86u); /* 0x3609C74B: call 0x3615fd86 */ /* not lifted */
  13724     RECOMP_FLAGS_IN();
  13725     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  13726     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13727     esp = esp + 0x14u; /* 0x3609C750: add esp, 0x14 */
  13728     _flag_k = FK_ADD;
  13729     /* test eax, eax */ /* 0x3609C753: test eax, eax */
  13730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  13731     _cf = 0;
  13732     _flag_k = FK_TEST;
  13733     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C767; /* 0x3609C755: je 0x3609c767 */
  13734 L_3609C757:
  13735     PUSH32(esp, 9); /* 0x3609C757: push 9 */
  13736     ecx = ebx + (-0x8C); /* 0x3609C759: lea ecx, [ebx - 0x8c] */
  13737     PUSH32(esp, ecx); /* 0x3609C75F: push ecx */
  13738     ecx = eax; /* 0x3609C760: mov ecx, eax */
  13739     RECOMP_ICALL(0x360A8990u); /* 0x3609C762: call 0x360a8990 */ /* not lifted */
  13740     RECOMP_FLAGS_IN();
  13741 L_3609C767:
  13742     edx = MEM32(ebp + (-0x4)); /* 0x3609C767: mov edx, dword ptr [ebp - 4] */
  13743     eax = MEM32(edx); /* 0x3609C76A: mov eax, dword ptr [edx] */
  13744     ecx = MEM32(ebx + 0xF0); /* 0x3609C76C: mov ecx, dword ptr [ebx + 0xf0] */
  13745     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3609C772: cmp eax, dword ptr [ecx + 4] */
  13746     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  13747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13748     _flag_k = FK_CMP;
  13749     MEM32(ebp + (-0x4)) = eax; /* 0x3609C775: mov dword ptr [ebp - 4], eax */
  13750     RECOMP_BACKEDGE();
  13751     if (CMP_NE(_flag_a, _flag_b)) goto L_3609C6F4; /* 0x3609C778: jne 0x3609c6f4 */
  13752 L_3609C77E:
  13753     edx = MEM32(ebx + (-0x8C)); /* 0x3609C77E: mov edx, dword ptr [ebx - 0x8c] */
  13754     esi = ebx + (-0x8C); /* 0x3609C784: lea esi, [ebx - 0x8c] */
  13755     PUSH32(esp, 2); /* 0x3609C78A: push 2 */
  13756     PUSH32(esp, 0x190u); /* 0x3609C78C: push 0x190 */
  13757     ecx = esi; /* 0x3609C791: mov ecx, esi */
  13758     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609C793: call dword ptr [edx + 4] */
  13759     RECOMP_FLAGS_IN();
  13760     /* test eax, eax */ /* 0x3609C796: test eax, eax */
  13761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  13762     _cf = 0;
  13763     _flag_k = FK_TEST;
  13764     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C83E; /* 0x3609C798: je 0x3609c83e */
  13765 L_3609C79E:
  13766     eax = MEM32(esi); /* 0x3609C79E: mov eax, dword ptr [esi] */
  13767     PUSH32(esp, 2); /* 0x3609C7A0: push 2 */
  13768     PUSH32(esp, 0x190u); /* 0x3609C7A2: push 0x190 */
  13769     ecx = esi; /* 0x3609C7A7: mov ecx, esi */
  13770     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3609C7A9: call dword ptr [eax + 4] */
  13771     RECOMP_FLAGS_IN();
  13772     MEM32(ebp + (-0x4)) = eax; /* 0x3609C7AC: mov dword ptr [ebp - 4], eax */
  13773     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x3609C7AF: fild dword ptr [ebp - 4] */
  13774     _st[0] *= (double)*(float*)ADDR(ebx + 0x118); /* 0x3609C7B2: fmul dword ptr [ebx + 0x118] */
  13775     RECOMP_ICALL(0x3615FD8Cu); /* 0x3609C7B8: call 0x3615fd8c */ /* not lifted */
  13776     RECOMP_FLAGS_IN();
  13777     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3609C7BD: cdq  */
  13778     ecx = 0x168u; /* 0x3609C7BE: mov ecx, 0x168 */
  13779     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x3609C7C3: idiv ecx */
  13780       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
  13781       else { eax = 0; edx = 0; } }
  13782     MEM32(ebp + (-0x4)) = edx; /* 0x3609C7C5: mov dword ptr [ebp - 4], edx */
  13783     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x3609C7C8: fild dword ptr [ebp - 4] */
  13784     _st[0] *= (double)*(float*)ADDR(0x361708D4); /* 0x3609C7CB: fmul dword ptr [0x361708d4] */
  13785     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3609C7D1: fcom dword ptr [0x3617040c] */
  13786     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3609C7D7: fnstsw ax */
  13787     /* test HI8(eax), 1 */ /* 0x3609C7D9: test ah, 1 */
  13788     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13789     _cf = 0;
  13790     _flag_k = FK_NARROW(FK_TEST, 24);
  13791     if (TEST_NZ(_flag_a, _flag_b)) goto L_3609C7F3; /* 0x3609C7DC: jne 0x3609c7f3 */
  13792 L_3609C7DE:
  13793     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x3609C7DE: fcom qword ptr [0x361708b8] */
  13794     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3609C7E4: fnstsw ax */
  13795     /* test HI8(eax), 1 */ /* 0x3609C7E6: test ah, 1 */
  13796     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  13797     _cf = 0;
  13798     _flag_k = FK_NARROW(FK_TEST, 24);
  13799     if (TEST_Z(_flag_a, _flag_b)) goto L_3609C7F3; /* 0x3609C7E9: je 0x3609c7f3 */
  13800 L_3609C7EB:
  13801     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3609C7EB: fmul dword ptr [0x36170464] */
  13802     goto L_3609C814; /* 0x3609C7F1: jmp 0x3609c814 */
  13803 L_3609C7F3:
  13804     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x3609C7F3: fmul dword ptr [0x361708b4] */
  13805     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  13807     esp = esp - 8; /* 0x3609C7F9: sub esp, 8 */
  13808     _flag_k = FK_CMP;
  13809     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3609C7FC: fst dword ptr [ebp - 4] */
  13810     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x3609C7FF: fstp qword ptr [esp] */
  13811     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x3609C802: call dword ptr [0x3616f198] */
  13812     RECOMP_FLAGS_IN();
  13813     _st[0] = (double)*(float*)ADDR(ebp + (-0x4)) - _st[0]; /* 0x3609C808: fsubr dword ptr [ebp - 4] */
  13814     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  13815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13816     esp = esp + 8; /* 0x3609C80B: add esp, 8 */
  13817     _flag_k = FK_ADD;
  13818     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x3609C80E: fmul dword ptr [0x361708b0] */
  13819 L_3609C814:
  13820     fp_push(_st[0]); /* 0x3609C814: fld st(0) */
  13821     eax = ebp + (-0x14); /* 0x3609C816: lea eax, [ebp - 0x14] */
  13822     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x3609C819: fsin  */
  13823     PUSH32(esp, eax); /* 0x3609C81B: push eax */
  13824     ecx = ebx; /* 0x3609C81C: mov ecx, ebx */
  13825     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3609C81E: fld dword ptr [0x3617040c] */
  13826     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3609C824: fst dword ptr [ebp - 4] */
  13827     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3609C827: fstp dword ptr [ebp - 0x14] */
  13828     edx = MEM32(ebp + (-0x4)); /* 0x3609C82A: mov edx, dword ptr [ebp - 4] */
  13829     MEM32(ebp + (-0xC)) = edx; /* 0x3609C82D: mov dword ptr [ebp - 0xc], edx */
  13830     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3609C830: fstp dword ptr [ebp - 0x10] */
  13831     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x3609C833: fcos  */
  13832     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3609C835: fstp dword ptr [ebp - 8] */
  13833     RECOMP_ICALL(MEM32(0x3616FC68)); /* 0x3609C838: call dword ptr [0x3616fc68] */
  13834     RECOMP_FLAGS_IN();
  13835 L_3609C83E:
  13836     edi = POP32_VAL(esp); /* 0x3609C83E: pop edi */
  13837     esi = POP32_VAL(esp); /* 0x3609C83F: pop esi */
  13838     SET_LO8(eax, 1); /* 0x3609C840: mov al, 1 */
  13839     ebx = POP32_VAL(esp); /* 0x3609C842: pop ebx */
  13840     esp = ebp; /* 0x3609C843: mov esp, ebp */
  13841     ebp = POP32_VAL(esp); /* 0x3609C845: pop ebp */
  13842     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609C846: ret  */
  13843     RECOMP_REGS_OUT();
  13844 }
  13845 
  13846 void sub_3608AD70(void) {
  13847     int _fpu_cmp = 0;
  13848     uint32_t _cf = 0;
  13849     int _df = 1;
  13850     uint32_t _flag_k = FK_NONE;
  13851     uint32_t _flag_a = 0, _flag_b = 0;
  13852     uint32_t _itail_tgt = 0;
  13853     RECOMP_REGS_LOCALS
  13854     RECOMP_ENTER(0x3608AD70u);
  13855 
  13856 L_3608AD70:
  13857     MEM32(ecx) = 0x36171FECu; /* 0x3608AD70: mov dword ptr [ecx], 0x36171fec */
  13858     MEM32(ecx + 0x8) = 0x36171FDCu; /* 0x3608AD76: mov dword ptr [ecx + 8], 0x36171fdc */
  13859     MEM32(ecx + 0x40) = 0x36171FD4u; /* 0x3608AD7D: mov dword ptr [ecx + 0x40], 0x36171fd4 */
  13860     MEM32(ecx + 0x4C) = 0x36171FCCu; /* 0x3608AD84: mov dword ptr [ecx + 0x4c], 0x36171fcc */
  13861     MEM32(ecx + 0x80) = 0x36171FB8u; /* 0x3608AD8B: mov dword ptr [ecx + 0x80], 0x36171fb8 */
  13862     MEM32(ecx + 0x8C) = 0x36171F14u; /* 0x3608AD95: mov dword ptr [ecx + 0x8c], 0x36171f14 */
  13863     MEM32(ecx + 0xA8) = 0x36171EFCu; /* 0x3608AD9F: mov dword ptr [ecx + 0xa8], 0x36171efc */
  13864     MEM32(ecx + 0xAC) = 0x36171EF4u; /* 0x3608ADA9: mov dword ptr [ecx + 0xac], 0x36171ef4 */
  13865     goto L_3608B5C0; /* 0x3608ADB3: jmp 0x3608b5c0 */
  13866 L_3608B5C0:
  13867     PUSH32(esp, ebp); /* 0x3608B5C0: push ebp */
  13868     ebp = esp; /* 0x3608B5C1: mov ebp, esp */
  13869     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608B5C3: push -1 */
  13870     PUSH32(esp, 0x36165EF8u); /* 0x3608B5C5: push 0x36165ef8 */
  13871     eax = MEM32(FS_BASE + (0)); /* 0x3608B5CA: mov eax, dword ptr fs:[0] */
  13872     PUSH32(esp, eax); /* 0x3608B5D0: push eax */
  13873     MEM32(FS_BASE + (0)) = esp; /* 0x3608B5D1: mov dword ptr fs:[0], esp */
  13874     PUSH32(esp, ecx); /* 0x3608B5D8: push ecx */
  13875     PUSH32(esp, esi); /* 0x3608B5D9: push esi */
  13876     esi = ecx; /* 0x3608B5DA: mov esi, ecx */
  13877     PUSH32(esp, edi); /* 0x3608B5DC: push edi */
  13878     MEM32(ebp + (-0x10)) = esi; /* 0x3608B5DD: mov dword ptr [ebp - 0x10], esi */
  13879     MEM32(esi) = 0x36172438u; /* 0x3608B5E0: mov dword ptr [esi], 0x36172438 */
  13880     MEM32(esi + 0x8) = 0x36172428u; /* 0x3608B5E6: mov dword ptr [esi + 8], 0x36172428 */
  13881     MEM32(esi + 0x40) = 0x36172420u; /* 0x3608B5ED: mov dword ptr [esi + 0x40], 0x36172420 */
  13882     MEM32(esi + 0x4C) = 0x36172418u; /* 0x3608B5F4: mov dword ptr [esi + 0x4c], 0x36172418 */
  13883     MEM32(esi + 0x80) = 0x36172404u; /* 0x3608B5FB: mov dword ptr [esi + 0x80], 0x36172404 */
  13884     MEM32(esi + 0x8C) = 0x36172360u; /* 0x3608B605: mov dword ptr [esi + 0x8c], 0x36172360 */
  13885     MEM32(esi + 0xA8) = 0x36172348u; /* 0x3608B60F: mov dword ptr [esi + 0xa8], 0x36172348 */
  13886     MEM32(esi + 0xAC) = 0x36172340u; /* 0x3608B619: mov dword ptr [esi + 0xac], 0x36172340 */
  13887     edi = MEM32(esi + 0x1AC); /* 0x3608B623: mov edi, dword ptr [esi + 0x1ac] */
  13888     /* test edi, edi */ /* 0x3608B629: test edi, edi */
  13889     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  13890     _cf = 0;
  13891     _flag_k = FK_TEST;
  13892     MEM32(ebp + (-0x4)) = 0; /* 0x3608B62B: mov dword ptr [ebp - 4], 0 */
  13893     if (TEST_Z(_flag_a, _flag_b)) goto L_3608B644; /* 0x3608B632: je 0x3608b644 */
  13894 L_3608B634:
  13895     ecx = edi; /* 0x3608B634: mov ecx, edi */
  13896     RECOMP_ICALL(0x3601E1B0u); /* 0x3608B636: call 0x3601e1b0 */ /* not lifted */
  13897     RECOMP_FLAGS_IN();
  13898     PUSH32(esp, edi); /* 0x3608B63B: push edi */
  13899     RECOMP_ICALL(0x3615FCC4u); /* 0x3608B63C: call 0x3615fcc4 */ /* not lifted */
  13900     RECOMP_FLAGS_IN();
  13901     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  13902     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  13903     esp = esp + 4; /* 0x3608B641: add esp, 4 */
  13904     _flag_k = FK_ADD;
  13905 L_3608B644:
  13906     MEM32(esi + 0x1AC) = 0; /* 0x3608B644: mov dword ptr [esi + 0x1ac], 0 */
  13907     _flag_a = (uint32_t)(MEM32(0x36306B18)); _flag_b = (uint32_t)(1);
  13908     MEM32(0x36306B18) = MEM32(0x36306B18) + 1; /* 0x3608B64E: inc dword ptr [0x36306b18] */
  13909     _flag_k = FK_INC;
  13910     ecx = MEM32(esi + 0x1B0); /* 0x3608B654: mov ecx, dword ptr [esi + 0x1b0] */
  13911     /* test ecx, ecx */ /* 0x3608B65A: test ecx, ecx */
  13912     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  13913     _cf = 0;
  13914     _flag_k = FK_TEST;
  13915     if (TEST_Z(_flag_a, _flag_b)) goto L_3608B664; /* 0x3608B65C: je 0x3608b664 */
  13916 L_3608B65E:
  13917     eax = MEM32(ecx); /* 0x3608B65E: mov eax, dword ptr [ecx] */
  13918     PUSH32(esp, 1); /* 0x3608B660: push 1 */
  13919     RECOMP_ICALL(MEM32(eax)); /* 0x3608B662: call dword ptr [eax] */
  13920     RECOMP_FLAGS_IN();
  13921 L_3608B664:
  13922     ecx = esi; /* 0x3608B664: mov ecx, esi */
  13923     MEM32(esi + 0x1B0) = 0; /* 0x3608B666: mov dword ptr [esi + 0x1b0], 0 */
  13924     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608B670: mov dword ptr [ebp - 4], 0xffffffff */
  13925     RECOMP_ICALL(0x36097440u); /* 0x3608B677: call 0x36097440 */ /* not lifted */
  13926     RECOMP_FLAGS_IN();
  13927     ecx = MEM32(ebp + (-0xC)); /* 0x3608B67C: mov ecx, dword ptr [ebp - 0xc] */
  13928     edi = POP32_VAL(esp); /* 0x3608B67F: pop edi */
  13929     esi = POP32_VAL(esp); /* 0x3608B680: pop esi */
  13930     MEM32(FS_BASE + (0)) = ecx; /* 0x3608B681: mov dword ptr fs:[0], ecx */
  13931     esp = ebp; /* 0x3608B688: mov esp, ebp */
  13932     ebp = POP32_VAL(esp); /* 0x3608B68A: pop ebp */
  13933     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608B68B: ret  */
  13934     RECOMP_REGS_OUT();
  13935 }
  13936 
  13937 void sub_3608ADC0(void) {
  13938     int _fpu_cmp = 0;
  13939     uint32_t _cf = 0;
  13940     int _df = 1;
  13941     uint32_t _flag_k = FK_NONE;
  13942     uint32_t _flag_a = 0, _flag_b = 0;
  13943     uint32_t _itail_tgt = 0;
  13944     RECOMP_REGS_LOCALS
  13945     RECOMP_ENTER(0x3608ADC0u);
  13946 
  13947 L_3608ADC0:
  13948     PUSH32(esp, ebp); /* 0x3608ADC0: push ebp */
  13949     ebp = esp; /* 0x3608ADC1: mov ebp, esp */
  13950     eax = MEM32(ebp + 0x8); /* 0x3608ADC3: mov eax, dword ptr [ebp + 8] */
  13951     PUSH32(esp, eax); /* 0x3608ADC6: push eax */
  13952     RECOMP_ICALL(0x3608BC20u); /* 0x3608ADC7: call 0x3608bc20 */ /* not lifted */
  13953     RECOMP_FLAGS_IN();
  13954     ebp = POP32_VAL(esp); /* 0x3608ADCC: pop ebp */
  13955     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608ADCD: ret 4 */
  13956     RECOMP_REGS_OUT();
  13957 }
  13958 
  13959 void sub_3608ADD0(void) {
  13960     int _fpu_cmp = 0;
  13961     uint32_t _cf = 0;
  13962     int _df = 1;
  13963     uint32_t _flag_k = FK_NONE;
  13964     uint32_t _flag_a = 0, _flag_b = 0;
  13965     uint32_t _itail_tgt = 0;
  13966     RECOMP_REGS_LOCALS
  13967     RECOMP_ENTER(0x3608ADD0u);
  13968 
  13969 L_3608ADD0:
  13970     PUSH32(esp, ebp); /* 0x3608ADD0: push ebp */
  13971     ebp = esp; /* 0x3608ADD1: mov ebp, esp */
  13972     PUSH32(esp, esi); /* 0x3608ADD3: push esi */
  13973     PUSH32(esp, edi); /* 0x3608ADD4: push edi */
  13974     edi = MEM32(ebp + 0x8); /* 0x3608ADD5: mov edi, dword ptr [ebp + 8] */
  13975     /* test edi, edi */ /* 0x3608ADD8: test edi, edi */
  13976     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  13977     _cf = 0;
  13978     _flag_k = FK_TEST;
  13979     esi = ecx; /* 0x3608ADDA: mov esi, ecx */
  13980     if (TEST_Z(_flag_a, _flag_b)) goto L_3608ADF7; /* 0x3608ADDC: je 0x3608adf7 */
  13981 L_3608ADDE:
  13982     PUSH32(esp, 1); /* 0x3608ADDE: push 1 */
  13983     PUSH32(esp, 0); /* 0x3608ADE0: push 0 */
  13984     eax = esi + 0x90; /* 0x3608ADE2: lea eax, [esi + 0x90] */
  13985     PUSH32(esp, eax); /* 0x3608ADE8: push eax */
  13986     ecx = edi; /* 0x3608ADE9: mov ecx, edi */
  13987     RECOMP_ICALL(0x36072000u); /* 0x3608ADEB: call 0x36072000 */ /* not lifted */
  13988     RECOMP_FLAGS_IN();
  13989     ecx = eax; /* 0x3608ADF0: mov ecx, eax */
  13990     RECOMP_ICALL(0x360530C0u); /* 0x3608ADF2: call 0x360530c0 */ /* not lifted */
  13991     RECOMP_FLAGS_IN();
  13992 L_3608ADF7:
  13993     PUSH32(esp, edi); /* 0x3608ADF7: push edi */
  13994     ecx = esi; /* 0x3608ADF8: mov ecx, esi */
  13995     RECOMP_ICALL(0x36097780u); /* 0x3608ADFA: call 0x36097780 */ /* not lifted */
  13996     RECOMP_FLAGS_IN();
  13997     edi = POP32_VAL(esp); /* 0x3608ADFF: pop edi */
  13998     esi = POP32_VAL(esp); /* 0x3608AE00: pop esi */
  13999     ebp = POP32_VAL(esp); /* 0x3608AE01: pop ebp */
  14000     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AE02: ret 4 */
  14001     RECOMP_REGS_OUT();
  14002 }
  14003 
  14004 void sub_3608AE10(void) {
  14005     int _fpu_cmp = 0;
  14006     uint32_t _cf = 0;
  14007     int _df = 1;
  14008     uint32_t _flag_k = FK_NONE;
  14009     uint32_t _flag_a = 0, _flag_b = 0;
  14010     uint32_t _itail_tgt = 0;
  14011     RECOMP_REGS_LOCALS
  14012     RECOMP_ENTER(0x3608AE10u);
  14013 
  14014 L_3608AE10:
  14015     PUSH32(esp, ebp); /* 0x3608AE10: push ebp */
  14016     ebp = esp; /* 0x3608AE11: mov ebp, esp */
  14017     PUSH32(esp, esi); /* 0x3608AE13: push esi */
  14018     PUSH32(esp, edi); /* 0x3608AE14: push edi */
  14019     edi = MEM32(ebp + 0x8); /* 0x3608AE15: mov edi, dword ptr [ebp + 8] */
  14020     /* test edi, edi */ /* 0x3608AE18: test edi, edi */
  14021     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  14022     _cf = 0;
  14023     _flag_k = FK_TEST;
  14024     esi = ecx; /* 0x3608AE1A: mov esi, ecx */
  14025     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AE33; /* 0x3608AE1C: je 0x3608ae33 */
  14026 L_3608AE1E:
  14027     eax = esi + 0x90; /* 0x3608AE1E: lea eax, [esi + 0x90] */
  14028     PUSH32(esp, eax); /* 0x3608AE24: push eax */
  14029     ecx = edi; /* 0x3608AE25: mov ecx, edi */
  14030     RECOMP_ICALL(0x36072000u); /* 0x3608AE27: call 0x36072000 */ /* not lifted */
  14031     RECOMP_FLAGS_IN();
  14032     ecx = eax; /* 0x3608AE2C: mov ecx, eax */
  14033     RECOMP_ICALL(0x36053160u); /* 0x3608AE2E: call 0x36053160 */ /* not lifted */
  14034     RECOMP_FLAGS_IN();
  14035 L_3608AE33:
  14036     PUSH32(esp, edi); /* 0x3608AE33: push edi */
  14037     ecx = esi; /* 0x3608AE34: mov ecx, esi */
  14038     RECOMP_ICALL(0x360977E0u); /* 0x3608AE36: call 0x360977e0 */ /* not lifted */
  14039     RECOMP_FLAGS_IN();
  14040     edi = POP32_VAL(esp); /* 0x3608AE3B: pop edi */
  14041     esi = POP32_VAL(esp); /* 0x3608AE3C: pop esi */
  14042     ebp = POP32_VAL(esp); /* 0x3608AE3D: pop ebp */
  14043     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AE3E: ret 4 */
  14044     RECOMP_REGS_OUT();
  14045 }
  14046 
  14047 void sub_3608AE50(void) {
  14048     int _fpu_cmp = 0;
  14049     uint32_t _cf = 0;
  14050     int _df = 1;
  14051     uint32_t _flag_k = FK_NONE;
  14052     uint32_t _flag_a = 0, _flag_b = 0;
  14053     uint32_t _itail_tgt = 0;
  14054     RECOMP_REGS_LOCALS
  14055     RECOMP_ENTER(0x3608AE50u);
  14056 
  14057 L_3608AE50:
  14058     PUSH32(esp, ebp); /* 0x3608AE50: push ebp */
  14059     ebp = esp; /* 0x3608AE51: mov ebp, esp */
  14060     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608AE53: push -1 */
  14061     PUSH32(esp, 0x36165E59u); /* 0x3608AE55: push 0x36165e59 */
  14062     eax = MEM32(FS_BASE + (0)); /* 0x3608AE5A: mov eax, dword ptr fs:[0] */
  14063     PUSH32(esp, eax); /* 0x3608AE60: push eax */
  14064     MEM32(FS_BASE + (0)) = esp; /* 0x3608AE61: mov dword ptr fs:[0], esp */
  14065     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  14066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14067     esp = esp - 0x14u; /* 0x3608AE68: sub esp, 0x14 */
  14068     _flag_k = FK_CMP;
  14069     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3608AE6B: mov al, byte ptr [ebp + 0xb] */
  14070     PUSH32(esp, ebx); /* 0x3608AE6E: push ebx */
  14071     PUSH32(esp, esi); /* 0x3608AE6F: push esi */
  14072     MEM32(ebp + (-0x10)) = ecx; /* 0x3608AE70: mov dword ptr [ebp - 0x10], ecx */
  14073     PUSH32(esp, edi); /* 0x3608AE73: push edi */
  14074     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  14075     ecx = ecx | 0xFFFFFFFFu; /* 0x3608AE74: or ecx, 0xffffffff */
  14076     _cf = 0;
  14077     _flag_k = FK_TEST;
  14078     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14079     esi = 0; /* 0x3608AE77: xor esi, esi */
  14080     _cf = 0;
  14081     _flag_k = FK_TEST;
  14082     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3608AE79: mov byte ptr [ebp - 0x20], al */
  14083     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14084     eax = 0; /* 0x3608AE7C: xor eax, eax */
  14085     _cf = 0;
  14086     _flag_k = FK_TEST;
  14087     edi = 0x361C5638u; /* 0x3608AE7E: mov edi, 0x361c5638 */
  14088     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; } /* 0x3608AE83: repne scasb al, byte ptr es:[edi] */
  14089     ecx = ~ecx; /* 0x3608AE85: not ecx */
  14090     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  14091     ecx = ecx - 1; /* 0x3608AE87: dec ecx */
  14092     _flag_k = FK_DEC;
  14093     ebx = ecx; /* 0x3608AE88: mov ebx, ecx */
  14094     PUSH32(esp, 1); /* 0x3608AE8A: push 1 */
  14095     PUSH32(esp, ebx); /* 0x3608AE8C: push ebx */
  14096     ecx = ebp + (-0x20); /* 0x3608AE8D: lea ecx, [ebp - 0x20] */
  14097     MEM32(ebp + (-0x1C)) = esi; /* 0x3608AE90: mov dword ptr [ebp - 0x1c], esi */
  14098     MEM32(ebp + (-0x18)) = esi; /* 0x3608AE93: mov dword ptr [ebp - 0x18], esi */
  14099     MEM32(ebp + (-0x14)) = esi; /* 0x3608AE96: mov dword ptr [ebp - 0x14], esi */
  14100     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3608AE99: call dword ptr [0x3616f00c] */
  14101     RECOMP_FLAGS_IN();
  14102     /* test LO8(eax), LO8(eax) */ /* 0x3608AE9F: test al, al */
  14103     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14104     _cf = 0;
  14105     _flag_k = FK_NARROW(FK_TEST, 24);
  14106     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AEC7; /* 0x3608AEA1: je 0x3608aec7 */
  14107 L_3608AEA3:
  14108     edi = MEM32(ebp + (-0x1C)); /* 0x3608AEA3: mov edi, dword ptr [ebp - 0x1c] */
  14109     ecx = ebx; /* 0x3608AEA6: mov ecx, ebx */
  14110     edx = ecx; /* 0x3608AEA8: mov edx, ecx */
  14111     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3608AEAA: shr ecx, 2 */
  14112     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14113     ecx = ecx >> 2u; /* 0x3608AEAA: shr ecx, 2 */
  14114     esi = 0x361C5638u; /* 0x3608AEAD: mov esi, 0x361c5638 */
  14115     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3608AEB2: 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; }
  14116     ecx = edx; /* 0x3608AEB4: mov ecx, edx */
  14117     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  14118     ecx = ecx & 3; /* 0x3608AEB6: and ecx, 3 */
  14119     _cf = 0;
  14120     _flag_k = FK_TEST;
  14121     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3608AEB9: 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; }
  14122     eax = MEM32(ebp + (-0x1C)); /* 0x3608AEBB: mov eax, dword ptr [ebp - 0x1c] */
  14123     MEM32(ebp + (-0x18)) = ebx; /* 0x3608AEBE: mov dword ptr [ebp - 0x18], ebx */
  14124     MEM8(eax + ebx) = (uint8_t)(0); /* 0x3608AEC1: mov byte ptr [eax + ebx], 0 */
  14125     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14126     esi = 0; /* 0x3608AEC5: xor esi, esi */
  14127     _cf = 0;
  14128     _flag_k = FK_TEST;
  14129 L_3608AEC7:
  14130     edi = MEM32(ebp + 0x8); /* 0x3608AEC7: mov edi, dword ptr [ebp + 8] */
  14131     edx = MEM32(edi); /* 0x3608AECA: mov edx, dword ptr [edi] */
  14132     eax = ebp + (-0x20); /* 0x3608AECC: lea eax, [ebp - 0x20] */
  14133     PUSH32(esp, eax); /* 0x3608AECF: push eax */
  14134     ecx = edi; /* 0x3608AED0: mov ecx, edi */
  14135     MEM32(ebp + (-0x4)) = esi; /* 0x3608AED2: mov dword ptr [ebp - 4], esi */
  14136     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608AED5: call dword ptr [edx + 8] */
  14137     RECOMP_FLAGS_IN();
  14138     eax = MEM32(ebp + (-0x1C)); /* 0x3608AED8: mov eax, dword ptr [ebp - 0x1c] */
  14139     /* cmp eax, esi */ /* 0x3608AEDB: cmp eax, esi */
  14140     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
  14141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14142     _flag_k = FK_CMP;
  14143     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608AEDD: mov dword ptr [ebp - 4], 0xffffffff */
  14144     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608AF02; /* 0x3608AEE4: je 0x3608af02 */
  14145 L_3608AEE6:
  14146     ecx = eax + (-0x1); /* 0x3608AEE6: lea ecx, [eax - 1] */
  14147     SET_LO8(eax, MEM8(ecx)); /* 0x3608AEE9: mov al, byte ptr [ecx] */
  14148     /* test LO8(eax), LO8(eax) */ /* 0x3608AEEB: test al, al */
  14149     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14150     _cf = 0;
  14151     _flag_k = FK_NARROW(FK_TEST, 24);
  14152     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AEF9; /* 0x3608AEED: je 0x3608aef9 */
  14153 L_3608AEEF:
  14154     /* cmp LO8(eax), 0xFFu */ /* 0x3608AEEF: cmp al, 0xff */
  14155     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
  14156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14157     _flag_k = FK_NARROW(FK_CMP, 24);
  14158     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608AEF9; /* 0x3608AEF1: je 0x3608aef9 */
  14159 L_3608AEF3:
  14160     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  14161     SET_LO8(eax, LO8(eax) - 1); /* 0x3608AEF3: dec al */
  14162     _flag_k = FK_NARROW(FK_DEC, 24);
  14163     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3608AEF5: mov byte ptr [ecx], al */
  14164     goto L_3608AF02; /* 0x3608AEF7: jmp 0x3608af02 */
  14165 L_3608AEF9:
  14166     PUSH32(esp, ecx); /* 0x3608AEF9: push ecx */
  14167     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AEFA: call 0x3615fcc4 */ /* not lifted */
  14168     RECOMP_FLAGS_IN();
  14169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14171     esp = esp + 4; /* 0x3608AEFF: add esp, 4 */
  14172     _flag_k = FK_ADD;
  14173 L_3608AF02:
  14174     ecx = MEM32(ebp + (-0x10)); /* 0x3608AF02: mov ecx, dword ptr [ebp - 0x10] */
  14175     edx = MEM32(ecx); /* 0x3608AF05: mov edx, dword ptr [ecx] */
  14176     PUSH32(esp, edi); /* 0x3608AF07: push edi */
  14177     MEM32(ebp + (-0x1C)) = esi; /* 0x3608AF08: mov dword ptr [ebp - 0x1c], esi */
  14178     MEM32(ebp + (-0x18)) = esi; /* 0x3608AF0B: mov dword ptr [ebp - 0x18], esi */
  14179     MEM32(ebp + (-0x14)) = esi; /* 0x3608AF0E: mov dword ptr [ebp - 0x14], esi */
  14180     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608AF11: call dword ptr [edx + 4] */
  14181     RECOMP_FLAGS_IN();
  14182     ecx = MEM32(ebp + (-0xC)); /* 0x3608AF14: mov ecx, dword ptr [ebp - 0xc] */
  14183     edi = POP32_VAL(esp); /* 0x3608AF17: pop edi */
  14184     esi = POP32_VAL(esp); /* 0x3608AF18: pop esi */
  14185     ebx = POP32_VAL(esp); /* 0x3608AF19: pop ebx */
  14186     MEM32(FS_BASE + (0)) = ecx; /* 0x3608AF1A: mov dword ptr fs:[0], ecx */
  14187     esp = ebp; /* 0x3608AF21: mov esp, ebp */
  14188     ebp = POP32_VAL(esp); /* 0x3608AF23: pop ebp */
  14189     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AF24: ret 4 */
  14190     RECOMP_REGS_OUT();
  14191 }
  14192 
  14193 void sub_3608AF30(void) {
  14194     int _fpu_cmp = 0;
  14195     uint32_t _cf = 0;
  14196     int _df = 1;
  14197     uint32_t _flag_k = FK_NONE;
  14198     uint32_t _flag_a = 0, _flag_b = 0;
  14199     uint32_t _itail_tgt = 0;
  14200     RECOMP_REGS_LOCALS
  14201     RECOMP_ENTER(0x3608AF30u);
  14202 
  14203 L_3608AF30:
  14204     PUSH32(esp, ebp); /* 0x3608AF30: push ebp */
  14205     ebp = esp; /* 0x3608AF31: mov ebp, esp */
  14206     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608AF33: push -1 */
  14207     PUSH32(esp, 0x36165E79u); /* 0x3608AF35: push 0x36165e79 */
  14208     eax = MEM32(FS_BASE + (0)); /* 0x3608AF3A: mov eax, dword ptr fs:[0] */
  14209     PUSH32(esp, eax); /* 0x3608AF40: push eax */
  14210     MEM32(FS_BASE + (0)) = esp; /* 0x3608AF41: mov dword ptr fs:[0], esp */
  14211     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
  14212     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14213     esp = esp - 0x10u; /* 0x3608AF48: sub esp, 0x10 */
  14214     _flag_k = FK_CMP;
  14215     PUSH32(esp, ebx); /* 0x3608AF4B: push ebx */
  14216     PUSH32(esp, esi); /* 0x3608AF4C: push esi */
  14217     esi = MEM32(ebp + 0x8); /* 0x3608AF4D: mov esi, dword ptr [ebp + 8] */
  14218     PUSH32(esp, edi); /* 0x3608AF50: push edi */
  14219     PUSH32(esp, esi); /* 0x3608AF51: push esi */
  14220     RECOMP_ICALL(0x3608B840u); /* 0x3608AF52: call 0x3608b840 */ /* not lifted */
  14221     RECOMP_FLAGS_IN();
  14222     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3608AF57: mov al, byte ptr [ebp + 0xb] */
  14223     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  14224     ecx = ecx | 0xFFFFFFFFu; /* 0x3608AF5A: or ecx, 0xffffffff */
  14225     _cf = 0;
  14226     _flag_k = FK_TEST;
  14227     MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x3608AF5D: mov byte ptr [ebp - 0x1c], al */
  14228     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  14229     eax = 0; /* 0x3608AF60: xor eax, eax */
  14230     _cf = 0;
  14231     _flag_k = FK_TEST;
  14232     edi = 0x361C5648u; /* 0x3608AF62: mov edi, 0x361c5648 */
  14233     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; } /* 0x3608AF67: repne scasb al, byte ptr es:[edi] */
  14234     ecx = ~ecx; /* 0x3608AF69: not ecx */
  14235     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  14236     ecx = ecx - 1; /* 0x3608AF6B: dec ecx */
  14237     _flag_k = FK_DEC;
  14238     ebx = ecx; /* 0x3608AF6C: mov ebx, ecx */
  14239     PUSH32(esp, 1); /* 0x3608AF6E: push 1 */
  14240     PUSH32(esp, ebx); /* 0x3608AF70: push ebx */
  14241     ecx = ebp + (-0x1C); /* 0x3608AF71: lea ecx, [ebp - 0x1c] */
  14242     MEM32(ebp + (-0x18)) = eax; /* 0x3608AF74: mov dword ptr [ebp - 0x18], eax */
  14243     MEM32(ebp + (-0x14)) = eax; /* 0x3608AF77: mov dword ptr [ebp - 0x14], eax */
  14244     MEM32(ebp + (-0x10)) = eax; /* 0x3608AF7A: mov dword ptr [ebp - 0x10], eax */
  14245     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3608AF7D: call dword ptr [0x3616f00c] */
  14246     RECOMP_FLAGS_IN();
  14247     /* test LO8(eax), LO8(eax) */ /* 0x3608AF83: test al, al */
  14248     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14249     _cf = 0;
  14250     _flag_k = FK_NARROW(FK_TEST, 24);
  14251     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AFAC; /* 0x3608AF85: je 0x3608afac */
  14252 L_3608AF87:
  14253     edi = MEM32(ebp + (-0x18)); /* 0x3608AF87: mov edi, dword ptr [ebp - 0x18] */
  14254     ecx = ebx; /* 0x3608AF8A: mov ecx, ebx */
  14255     edx = ecx; /* 0x3608AF8C: mov edx, ecx */
  14256     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3608AF8E: shr ecx, 2 */
  14257     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  14258     ecx = ecx >> 2u; /* 0x3608AF8E: shr ecx, 2 */
  14259     esi = 0x361C5648u; /* 0x3608AF91: mov esi, 0x361c5648 */
  14260     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3608AF96: 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; }
  14261     ecx = edx; /* 0x3608AF98: mov ecx, edx */
  14262     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  14263     ecx = ecx & 3; /* 0x3608AF9A: and ecx, 3 */
  14264     _cf = 0;
  14265     _flag_k = FK_TEST;
  14266     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3608AF9D: 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; }
  14267     eax = MEM32(ebp + (-0x18)); /* 0x3608AF9F: mov eax, dword ptr [ebp - 0x18] */
  14268     esi = MEM32(ebp + 0x8); /* 0x3608AFA2: mov esi, dword ptr [ebp + 8] */
  14269     MEM32(ebp + (-0x14)) = ebx; /* 0x3608AFA5: mov dword ptr [ebp - 0x14], ebx */
  14270     MEM8(eax + ebx) = (uint8_t)(0); /* 0x3608AFA8: mov byte ptr [eax + ebx], 0 */
  14271 L_3608AFAC:
  14272     edx = MEM32(esi); /* 0x3608AFAC: mov edx, dword ptr [esi] */
  14273     eax = ebp + (-0x1C); /* 0x3608AFAE: lea eax, [ebp - 0x1c] */
  14274     PUSH32(esp, eax); /* 0x3608AFB1: push eax */
  14275     ecx = esi; /* 0x3608AFB2: mov ecx, esi */
  14276     MEM32(ebp + (-0x4)) = 0; /* 0x3608AFB4: mov dword ptr [ebp - 4], 0 */
  14277     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3608AFBB: call dword ptr [edx + 0x20] */
  14278     RECOMP_FLAGS_IN();
  14279     eax = MEM32(ebp + (-0x18)); /* 0x3608AFBE: mov eax, dword ptr [ebp - 0x18] */
  14280     /* test eax, eax */ /* 0x3608AFC1: test eax, eax */
  14281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  14282     _cf = 0;
  14283     _flag_k = FK_TEST;
  14284     edi = POP32_VAL(esp); /* 0x3608AFC3: pop edi */
  14285     esi = POP32_VAL(esp); /* 0x3608AFC4: pop esi */
  14286     ebx = POP32_VAL(esp); /* 0x3608AFC5: pop ebx */
  14287     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AFF2; /* 0x3608AFC6: je 0x3608aff2 */
  14288 L_3608AFC8:
  14289     ecx = eax + (-0x1); /* 0x3608AFC8: lea ecx, [eax - 1] */
  14290     SET_LO8(eax, MEM8(ecx)); /* 0x3608AFCB: mov al, byte ptr [ecx] */
  14291     /* test LO8(eax), LO8(eax) */ /* 0x3608AFCD: test al, al */
  14292     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  14293     _cf = 0;
  14294     _flag_k = FK_NARROW(FK_TEST, 24);
  14295     if (TEST_Z(_flag_a, _flag_b)) goto L_3608AFE9; /* 0x3608AFCF: je 0x3608afe9 */
  14296 L_3608AFD1:
  14297     /* cmp LO8(eax), 0xFFu */ /* 0x3608AFD1: cmp al, 0xff */
  14298     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
  14299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  14300     _flag_k = FK_NARROW(FK_CMP, 24);
  14301     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608AFE9; /* 0x3608AFD3: je 0x3608afe9 */
  14302 L_3608AFD5:
  14303     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  14304     SET_LO8(eax, LO8(eax) - 1); /* 0x3608AFD5: dec al */
  14305     _flag_k = FK_NARROW(FK_DEC, 24);
  14306     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3608AFD7: mov byte ptr [ecx], al */
  14307     ecx = MEM32(ebp + (-0xC)); /* 0x3608AFD9: mov ecx, dword ptr [ebp - 0xc] */
  14308     MEM32(FS_BASE + (0)) = ecx; /* 0x3608AFDC: mov dword ptr fs:[0], ecx */
  14309     esp = ebp; /* 0x3608AFE3: mov esp, ebp */
  14310     ebp = POP32_VAL(esp); /* 0x3608AFE5: pop ebp */
  14311     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AFE6: ret 4 */
  14312 L_3608AFE9:
  14313     PUSH32(esp, ecx); /* 0x3608AFE9: push ecx */
  14314     RECOMP_ICALL(0x3615FCC4u); /* 0x3608AFEA: call 0x3615fcc4 */ /* not lifted */
  14315     RECOMP_FLAGS_IN();
  14316     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  14317     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  14318     esp = esp + 4; /* 0x3608AFEF: add esp, 4 */
  14319     _flag_k = FK_ADD;
  14320 L_3608AFF2:
  14321     ecx = MEM32(ebp + (-0xC)); /* 0x3608AFF2: mov ecx, dword ptr [ebp - 0xc] */
  14322     MEM32(FS_BASE + (0)) = ecx; /* 0x3608AFF5: mov dword ptr fs:[0], ecx */
  14323     esp = ebp; /* 0x3608AFFC: mov esp, ebp */
  14324     ebp = POP32_VAL(esp); /* 0x3608AFFE: pop ebp */
  14325     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608AFFF: ret 4 */
  14326     RECOMP_REGS_OUT();
  14327 }