aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0000.c (560750B)


      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_36001000(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(0x36001000u);
     17 
     18 L_36001000:
     19     goto L_36001010; /* 0x36001000: jmp 0x36001010 */
     20 L_36001010:
     21     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     22     eax = 0; /* 0x36001010: xor eax, eax */
     23     _cf = 0;
     24     _flag_k = FK_TEST;
     25     MEM32(0x362EA500) = eax; /* 0x36001012: mov dword ptr [0x362ea500], eax */
     26     MEM32(0x362EA504) = eax; /* 0x36001017: mov dword ptr [0x362ea504], eax */
     27     MEM32(0x362EA508) = eax; /* 0x3600101C: mov dword ptr [0x362ea508], eax */
     28     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001021: ret  */
     29     RECOMP_REGS_OUT();
     30 }
     31 
     32 void sub_36001010(void) {
     33     int _fpu_cmp = 0;
     34     uint32_t _cf = 0;
     35     int _df = 1;
     36     uint32_t _flag_k = FK_NONE;
     37     uint32_t _flag_a = 0, _flag_b = 0;
     38     uint32_t _itail_tgt = 0;
     39     RECOMP_REGS_LOCALS
     40     RECOMP_ENTER(0x36001010u);
     41 
     42 L_36001010:
     43     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     44     eax = 0; /* 0x36001010: xor eax, eax */
     45     _cf = 0;
     46     _flag_k = FK_TEST;
     47     MEM32(0x362EA500) = eax; /* 0x36001012: mov dword ptr [0x362ea500], eax */
     48     MEM32(0x362EA504) = eax; /* 0x36001017: mov dword ptr [0x362ea504], eax */
     49     MEM32(0x362EA508) = eax; /* 0x3600101C: mov dword ptr [0x362ea508], eax */
     50     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001021: ret  */
     51     RECOMP_REGS_OUT();
     52 }
     53 
     54 void sub_36001030(void) {
     55     int _fpu_cmp = 0;
     56     uint32_t _cf = 0;
     57     int _df = 1;
     58     uint32_t _flag_k = FK_NONE;
     59     uint32_t _flag_a = 0, _flag_b = 0;
     60     uint32_t _itail_tgt = 0;
     61     RECOMP_REGS_LOCALS
     62     RECOMP_ENTER(0x36001030u);
     63 
     64 L_36001030:
     65     PUSH32(esp, ebp); /* 0x36001030: push ebp */
     66     ebp = esp; /* 0x36001031: mov ebp, esp */
     67     PUSH32(esp, ebx); /* 0x36001033: push ebx */
     68     ebx = MEM32(ebp + 0x8); /* 0x36001034: mov ebx, dword ptr [ebp + 8] */
     69     PUSH32(esp, esi); /* 0x36001037: push esi */
     70     PUSH32(esp, edi); /* 0x36001038: push edi */
     71     edi = MEM32(ebp + 0xC); /* 0x36001039: mov edi, dword ptr [ebp + 0xc] */
     72     eax = MEM32(edi + 0x8); /* 0x3600103C: mov eax, dword ptr [edi + 8] */
     73     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     74     eax = eax + 1; /* 0x3600103F: inc eax */
     75     _flag_k = FK_INC;
     76     ecx = eax; /* 0x36001040: mov ecx, eax */
     77     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x36001042: shl ecx, 6 */
     78     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
     79     ecx = ecx << 6u; /* 0x36001042: shl ecx, 6 */
     80     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
     81     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     82     ecx = ecx - eax; /* 0x36001045: sub ecx, eax */
     83     _flag_k = FK_CMP;
     84     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x36001047: shl ecx, 4 */
     85     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
     86     ecx = ecx << 4u; /* 0x36001047: shl ecx, 4 */
     87     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
     88     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     89     ecx = ecx + eax; /* 0x3600104A: add ecx, eax */
     90     _flag_k = FK_ADD;
     91     PUSH32(esp, ecx); /* 0x3600104C: push ecx */
     92     ecx = ebx; /* 0x3600104D: mov ecx, ebx */
     93     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3600104F: call dword ptr [0x3616faec] */
     94     RECOMP_FLAGS_IN();
     95     eax = MEM32(edi + 0x4); /* 0x36001055: mov eax, dword ptr [edi + 4] */
     96     esi = MEM32(eax); /* 0x36001058: mov esi, dword ptr [eax] */
     97     /* cmp esi, eax */ /* 0x3600105A: cmp esi, eax */
     98     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
     99     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    100     _flag_k = FK_CMP;
    101     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001076; /* 0x3600105C: je 0x36001076 */
    102 L_3600105E:
    103     eax = esi; /* 0x3600105E: mov eax, esi */
    104     esi = MEM32(esi); /* 0x36001060: mov esi, dword ptr [esi] */
    105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    106     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    107     eax = eax + 8; /* 0x36001062: add eax, 8 */
    108     _flag_k = FK_ADD;
    109     PUSH32(esp, eax); /* 0x36001065: push eax */
    110     PUSH32(esp, ebx); /* 0x36001066: push ebx */
    111     RECOMP_ICALL(0x36001170u); /* 0x36001067: call 0x36001170 */ /* not lifted */
    112     RECOMP_FLAGS_IN();
    113     eax = MEM32(edi + 0x4); /* 0x3600106C: mov eax, dword ptr [edi + 4] */
    114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    116     esp = esp + 8; /* 0x3600106F: add esp, 8 */
    117     _flag_k = FK_ADD;
    118     /* cmp esi, eax */ /* 0x36001072: cmp esi, eax */
    119     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    120     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    121     _flag_k = FK_CMP;
    122     RECOMP_BACKEDGE();
    123     if (CMP_NE(_flag_a, _flag_b)) goto L_3600105E; /* 0x36001074: jne 0x3600105e */
    124 L_36001076:
    125     edi = POP32_VAL(esp); /* 0x36001076: pop edi */
    126     esi = POP32_VAL(esp); /* 0x36001077: pop esi */
    127     eax = ebx; /* 0x36001078: mov eax, ebx */
    128     ebx = POP32_VAL(esp); /* 0x3600107A: pop ebx */
    129     ebp = POP32_VAL(esp); /* 0x3600107B: pop ebp */
    130     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600107C: ret  */
    131     RECOMP_REGS_OUT();
    132 }
    133 
    134 void sub_36001080(void) {
    135     int _fpu_cmp = 0;
    136     uint32_t _cf = 0;
    137     int _df = 1;
    138     uint32_t _flag_k = FK_NONE;
    139     uint32_t _flag_a = 0, _flag_b = 0;
    140     uint32_t _itail_tgt = 0;
    141     RECOMP_REGS_LOCALS
    142     RECOMP_ENTER(0x36001080u);
    143 
    144 L_36001080:
    145     PUSH32(esp, ebp); /* 0x36001080: push ebp */
    146     ebp = esp; /* 0x36001081: mov ebp, esp */
    147     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    148     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    149     esp = esp - 0x18u; /* 0x36001083: sub esp, 0x18 */
    150     _flag_k = FK_CMP;
    151     ecx = MEM32(ebp + 0x8); /* 0x36001086: mov ecx, dword ptr [ebp + 8] */
    152     PUSH32(esp, esi); /* 0x36001089: push esi */
    153     eax = ebp + (-0x4); /* 0x3600108A: lea eax, [ebp - 4] */
    154     PUSH32(esp, eax); /* 0x3600108D: push eax */
    155     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3600108E: call dword ptr [0x3616fa8c] */
    156     RECOMP_FLAGS_IN();
    157     ecx = MEM32(ebp + (-0x4)); /* 0x36001094: mov ecx, dword ptr [ebp - 4] */
    158     eax = ecx; /* 0x36001097: mov eax, ecx */
    159     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36001099: cdq  */
    160     esi = 0x3F1u; /* 0x3600109A: mov esi, 0x3f1 */
    161     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x3600109F: idiv esi */
    162       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
    163       else { eax = 0; edx = 0; } }
    164     /* test edx, edx */ /* 0x360010A1: test edx, edx */
    165     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
    166     _cf = 0;
    167     _flag_k = FK_TEST;
    168     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600114F; /* 0x360010A3: jne 0x3600114f */
    169 L_360010A9:
    170     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    171     esi = 0; /* 0x360010A9: xor esi, esi */
    172     _cf = 0;
    173     _flag_k = FK_TEST;
    174     /* cmp ecx, esi */ /* 0x360010AB: cmp ecx, esi */
    175     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
    176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    177     _flag_k = FK_CMP;
    178     if (CMP_LE(_flag_a, _flag_b)) goto L_3600114F; /* 0x360010AD: jle 0x3600114f */
    179 L_360010B3:
    180     eax = 0x81E722C3u; /* 0x360010B3: mov eax, 0x81e722c3 */
    181     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360010B8: imul ecx */
    182       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
    183       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
    184     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
    185     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    186     edx = edx + ecx; /* 0x360010BA: add edx, ecx */
    187     _flag_k = FK_ADD;
    188     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x360010BC: sar edx, 9 */
    189     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    190     edx = (uint32_t)((int32_t)edx >> 9u);
    191     ecx = edx; /* 0x360010BF: mov ecx, edx */
    192     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x360010C1: shr ecx, 0x1f */
    193     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    194     ecx = ecx >> 31u; /* 0x360010C1: shr ecx, 0x1f */
    195     eax = edx + ecx + (-0x1); /* 0x360010C4: lea eax, [edx + ecx - 1] */
    196     /* cmp eax, esi */ /* 0x360010C8: cmp eax, esi */
    197     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    198     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    199     _flag_k = FK_CMP;
    200     MEM32(ebp + (-0x4)) = eax; /* 0x360010CA: mov dword ptr [ebp - 4], eax */
    201     MEM32(ebp + (-0x18)) = esi; /* 0x360010CD: mov dword ptr [ebp - 0x18], esi */
    202     MEM32(ebp + (-0x14)) = esi; /* 0x360010D0: mov dword ptr [ebp - 0x14], esi */
    203     MEM32(ebp + (-0x10)) = esi; /* 0x360010D3: mov dword ptr [ebp - 0x10], esi */
    204     MEM32(ebp + (-0x8)) = esi; /* 0x360010D6: mov dword ptr [ebp - 8], esi */
    205     if (CMP_LE(_flag_a, _flag_b)) goto L_36001147; /* 0x360010D9: jle 0x36001147 */
    206 L_360010DB:
    207     PUSH32(esp, ebx); /* 0x360010DB: push ebx */
    208     ebx = MEM32(ebp + 0xC); /* 0x360010DC: mov ebx, dword ptr [ebp + 0xc] */
    209     PUSH32(esp, edi); /* 0x360010DF: push edi */
    210 L_360010E0:
    211     eax = MEM32(ebp + 0x8); /* 0x360010E0: mov eax, dword ptr [ebp + 8] */
    212     edx = ebp + (-0x18); /* 0x360010E3: lea edx, [ebp - 0x18] */
    213     PUSH32(esp, edx); /* 0x360010E6: push edx */
    214     PUSH32(esp, eax); /* 0x360010E7: push eax */
    215     RECOMP_ICALL(0x360011B0u); /* 0x360010E8: call 0x360011b0 */ /* not lifted */
    216     RECOMP_FLAGS_IN();
    217     esi = MEM32(ebx + 0x4); /* 0x360010ED: mov esi, dword ptr [ebx + 4] */
    218     edi = MEM32(esi + 0x4); /* 0x360010F0: mov edi, dword ptr [esi + 4] */
    219     PUSH32(esp, 0x14u); /* 0x360010F3: push 0x14 */
    220     RECOMP_ICALL(0x3615FD6Au); /* 0x360010F5: call 0x3615fd6a */ /* not lifted */
    221     RECOMP_FLAGS_IN();
    222     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    223     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    224     esp = esp + 0xCu; /* 0x360010FA: add esp, 0xc */
    225     _flag_k = FK_ADD;
    226     /* test esi, esi */ /* 0x360010FD: test esi, esi */
    227     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    228     _cf = 0;
    229     _flag_k = FK_TEST;
    230     ecx = esi; /* 0x360010FF: mov ecx, esi */
    231     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001105; /* 0x36001101: jne 0x36001105 */
    232 L_36001103:
    233     ecx = eax; /* 0x36001103: mov ecx, eax */
    234 L_36001105:
    235     /* test edi, edi */ /* 0x36001105: test edi, edi */
    236     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    237     _cf = 0;
    238     _flag_k = FK_TEST;
    239     MEM32(eax) = ecx; /* 0x36001107: mov dword ptr [eax], ecx */
    240     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600110D; /* 0x36001109: jne 0x3600110d */
    241 L_3600110B:
    242     edi = eax; /* 0x3600110B: mov edi, eax */
    243 L_3600110D:
    244     MEM32(eax + 0x4) = edi; /* 0x3600110D: mov dword ptr [eax + 4], edi */
    245     MEM32(esi + 0x4) = eax; /* 0x36001110: mov dword ptr [esi + 4], eax */
    246     ecx = MEM32(eax + 0x4); /* 0x36001113: mov ecx, dword ptr [eax + 4] */
    247     MEM32(ecx) = eax; /* 0x36001116: mov dword ptr [ecx], eax */
    248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    249     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    250     eax = eax + 8; /* 0x36001118: add eax, 8 */
    251     _flag_k = FK_ADD;
    252     /* test eax, eax */ /* 0x3600111B: test eax, eax */
    253     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    254     _cf = 0;
    255     _flag_k = FK_TEST;
    256     if (TEST_Z(_flag_a, _flag_b)) goto L_36001130; /* 0x3600111D: je 0x36001130 */
    257 L_3600111F:
    258     edx = MEM32(ebp + (-0x18)); /* 0x3600111F: mov edx, dword ptr [ebp - 0x18] */
    259     MEM32(eax) = edx; /* 0x36001122: mov dword ptr [eax], edx */
    260     ecx = MEM32(ebp + (-0x14)); /* 0x36001124: mov ecx, dword ptr [ebp - 0x14] */
    261     MEM32(eax + 0x4) = ecx; /* 0x36001127: mov dword ptr [eax + 4], ecx */
    262     edx = MEM32(ebp + (-0x10)); /* 0x3600112A: mov edx, dword ptr [ebp - 0x10] */
    263     MEM32(eax + 0x8) = edx; /* 0x3600112D: mov dword ptr [eax + 8], edx */
    264 L_36001130:
    265     esi = MEM32(ebx + 0x8); /* 0x36001130: mov esi, dword ptr [ebx + 8] */
    266     eax = MEM32(ebp + (-0x8)); /* 0x36001133: mov eax, dword ptr [ebp - 8] */
    267     ecx = MEM32(ebp + (-0x4)); /* 0x36001136: mov ecx, dword ptr [ebp - 4] */
    268     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
    269     esi = esi + 1; /* 0x36001139: inc esi */
    270     _flag_k = FK_INC;
    271     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    272     eax = eax + 1; /* 0x3600113A: inc eax */
    273     _flag_k = FK_INC;
    274     /* cmp eax, ecx */ /* 0x3600113B: cmp eax, ecx */
    275     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    277     _flag_k = FK_CMP;
    278     MEM32(ebx + 0x8) = esi; /* 0x3600113D: mov dword ptr [ebx + 8], esi */
    279     MEM32(ebp + (-0x8)) = eax; /* 0x36001140: mov dword ptr [ebp - 8], eax */
    280     RECOMP_BACKEDGE();
    281     if (CMP_L(_flag_a, _flag_b)) goto L_360010E0; /* 0x36001143: jl 0x360010e0 */
    282 L_36001145:
    283     edi = POP32_VAL(esp); /* 0x36001145: pop edi */
    284     ebx = POP32_VAL(esp); /* 0x36001146: pop ebx */
    285 L_36001147:
    286     eax = MEM32(ebp + 0x8); /* 0x36001147: mov eax, dword ptr [ebp + 8] */
    287     esi = POP32_VAL(esp); /* 0x3600114A: pop esi */
    288     esp = ebp; /* 0x3600114B: mov esp, ebp */
    289     ebp = POP32_VAL(esp); /* 0x3600114D: pop ebp */
    290     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600114E: ret  */
    291 L_3600114F:
    292     PUSH32(esp, 0x361B2C2Cu); /* 0x3600114F: push 0x361b2c2c */
    293     ecx = ebp + (-0xC); /* 0x36001154: lea ecx, [ebp - 0xc] */
    294     RECOMP_ICALL(0x36008EF0u); /* 0x36001157: call 0x36008ef0 */ /* not lifted */
    295     RECOMP_FLAGS_IN();
    296     PUSH32(esp, 0x36184170u); /* 0x3600115C: push 0x36184170 */
    297     eax = ebp + (-0xC); /* 0x36001161: lea eax, [ebp - 0xc] */
    298     PUSH32(esp, eax); /* 0x36001164: push eax */
    299     RECOMP_ICALL(0x3615FD70u); /* 0x36001165: call 0x3615fd70 */ /* not lifted */
    300     RECOMP_FLAGS_IN();
    301     /* nop */ /* 0x3600116A: nop  */
    302     /* nop */ /* 0x3600116B: nop  */
    303     /* nop */ /* 0x3600116C: nop  */
    304     /* nop */ /* 0x3600116D: nop  */
    305     /* nop */ /* 0x3600116E: nop  */
    306     /* nop */ /* 0x3600116F: nop  */
    307     PUSH32(esp, ebp); /* 0x36001170: push ebp */
    308     ebp = esp; /* 0x36001171: mov ebp, esp */
    309     eax = MEM32(ebp + 0xC); /* 0x36001173: mov eax, dword ptr [ebp + 0xc] */
    310     ecx = MEM32(ebp + 0x8); /* 0x36001176: mov ecx, dword ptr [ebp + 8] */
    311     PUSH32(esp, ebx); /* 0x36001179: push ebx */
    312     ebx = MEM32(eax + 0x8); /* 0x3600117A: mov ebx, dword ptr [eax + 8] */
    313     PUSH32(esp, esi); /* 0x3600117D: push esi */
    314     esi = MEM32(0x3616FAEC); /* 0x3600117E: mov esi, dword ptr [0x3616faec] */
    315     PUSH32(esp, edi); /* 0x36001184: push edi */
    316     edi = MEM32(eax); /* 0x36001185: mov edi, dword ptr [eax] */
    317     eax = MEM32(eax + 0x4); /* 0x36001187: mov eax, dword ptr [eax + 4] */
    318     PUSH32(esp, eax); /* 0x3600118A: push eax */
    319     RECOMP_ICALL(esi); /* 0x3600118B: call esi */
    320     RECOMP_FLAGS_IN();
    321     PUSH32(esp, ebx); /* 0x3600118D: push ebx */
    322     ecx = eax; /* 0x3600118E: mov ecx, eax */
    323     RECOMP_ICALL(esi); /* 0x36001190: call esi */
    324     RECOMP_FLAGS_IN();
    325     PUSH32(esp, edi); /* 0x36001192: push edi */
    326     ecx = eax; /* 0x36001193: mov ecx, eax */
    327     RECOMP_ICALL(esi); /* 0x36001195: call esi */
    328     RECOMP_FLAGS_IN();
    329     PUSH32(esp, 0); /* 0x36001197: push 0 */
    330     ecx = eax; /* 0x36001199: mov ecx, eax */
    331     RECOMP_ICALL(esi); /* 0x3600119B: call esi */
    332     RECOMP_FLAGS_IN();
    333     edi = POP32_VAL(esp); /* 0x3600119D: pop edi */
    334     esi = POP32_VAL(esp); /* 0x3600119E: pop esi */
    335     ebx = POP32_VAL(esp); /* 0x3600119F: pop ebx */
    336     ebp = POP32_VAL(esp); /* 0x360011A0: pop ebp */
    337     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360011A1: ret  */
    338     RECOMP_REGS_OUT();
    339 }
    340 
    341 void sub_36001170(void) {
    342     int _fpu_cmp = 0;
    343     uint32_t _cf = 0;
    344     int _df = 1;
    345     uint32_t _flag_k = FK_NONE;
    346     uint32_t _flag_a = 0, _flag_b = 0;
    347     uint32_t _itail_tgt = 0;
    348     RECOMP_REGS_LOCALS
    349     RECOMP_ENTER(0x36001170u);
    350 
    351 L_36001170:
    352     PUSH32(esp, ebp); /* 0x36001170: push ebp */
    353     ebp = esp; /* 0x36001171: mov ebp, esp */
    354     eax = MEM32(ebp + 0xC); /* 0x36001173: mov eax, dword ptr [ebp + 0xc] */
    355     ecx = MEM32(ebp + 0x8); /* 0x36001176: mov ecx, dword ptr [ebp + 8] */
    356     PUSH32(esp, ebx); /* 0x36001179: push ebx */
    357     ebx = MEM32(eax + 0x8); /* 0x3600117A: mov ebx, dword ptr [eax + 8] */
    358     PUSH32(esp, esi); /* 0x3600117D: push esi */
    359     esi = MEM32(0x3616FAEC); /* 0x3600117E: mov esi, dword ptr [0x3616faec] */
    360     PUSH32(esp, edi); /* 0x36001184: push edi */
    361     edi = MEM32(eax); /* 0x36001185: mov edi, dword ptr [eax] */
    362     eax = MEM32(eax + 0x4); /* 0x36001187: mov eax, dword ptr [eax + 4] */
    363     PUSH32(esp, eax); /* 0x3600118A: push eax */
    364     RECOMP_ICALL(esi); /* 0x3600118B: call esi */
    365     RECOMP_FLAGS_IN();
    366     PUSH32(esp, ebx); /* 0x3600118D: push ebx */
    367     ecx = eax; /* 0x3600118E: mov ecx, eax */
    368     RECOMP_ICALL(esi); /* 0x36001190: call esi */
    369     RECOMP_FLAGS_IN();
    370     PUSH32(esp, edi); /* 0x36001192: push edi */
    371     ecx = eax; /* 0x36001193: mov ecx, eax */
    372     RECOMP_ICALL(esi); /* 0x36001195: call esi */
    373     RECOMP_FLAGS_IN();
    374     PUSH32(esp, 0); /* 0x36001197: push 0 */
    375     ecx = eax; /* 0x36001199: mov ecx, eax */
    376     RECOMP_ICALL(esi); /* 0x3600119B: call esi */
    377     RECOMP_FLAGS_IN();
    378     edi = POP32_VAL(esp); /* 0x3600119D: pop edi */
    379     esi = POP32_VAL(esp); /* 0x3600119E: pop esi */
    380     ebx = POP32_VAL(esp); /* 0x3600119F: pop ebx */
    381     ebp = POP32_VAL(esp); /* 0x360011A0: pop ebp */
    382     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360011A1: ret  */
    383     RECOMP_REGS_OUT();
    384 }
    385 
    386 void sub_360011B0(void) {
    387     int _fpu_cmp = 0;
    388     uint32_t _cf = 0;
    389     int _df = 1;
    390     uint32_t _flag_k = FK_NONE;
    391     uint32_t _flag_a = 0, _flag_b = 0;
    392     uint32_t _itail_tgt = 0;
    393     RECOMP_REGS_LOCALS
    394     RECOMP_ENTER(0x360011B0u);
    395 
    396 L_360011B0:
    397     PUSH32(esp, ebp); /* 0x360011B0: push ebp */
    398     ebp = esp; /* 0x360011B1: mov ebp, esp */
    399     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    400     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    401     esp = esp - 0xCu; /* 0x360011B3: sub esp, 0xc */
    402     _flag_k = FK_CMP;
    403     PUSH32(esp, esi); /* 0x360011B6: push esi */
    404     esi = MEM32(0x3616FA8C); /* 0x360011B7: mov esi, dword ptr [0x3616fa8c] */
    405     PUSH32(esp, edi); /* 0x360011BD: push edi */
    406     edi = MEM32(ebp + 0x8); /* 0x360011BE: mov edi, dword ptr [ebp + 8] */
    407     eax = ebp + (-0x8); /* 0x360011C1: lea eax, [ebp - 8] */
    408     PUSH32(esp, eax); /* 0x360011C4: push eax */
    409     ecx = edi; /* 0x360011C5: mov ecx, edi */
    410     RECOMP_ICALL(esi); /* 0x360011C7: call esi */
    411     RECOMP_FLAGS_IN();
    412     ecx = ebp + (-0x4); /* 0x360011C9: lea ecx, [ebp - 4] */
    413     PUSH32(esp, ecx); /* 0x360011CC: push ecx */
    414     ecx = eax; /* 0x360011CD: mov ecx, eax */
    415     RECOMP_ICALL(esi); /* 0x360011CF: call esi */
    416     RECOMP_FLAGS_IN();
    417     edx = ebp + 0x8; /* 0x360011D1: lea edx, [ebp + 8] */
    418     PUSH32(esp, edx); /* 0x360011D4: push edx */
    419     ecx = eax; /* 0x360011D5: mov ecx, eax */
    420     RECOMP_ICALL(esi); /* 0x360011D7: call esi */
    421     RECOMP_FLAGS_IN();
    422     ecx = ebp + (-0xC); /* 0x360011D9: lea ecx, [ebp - 0xc] */
    423     PUSH32(esp, ecx); /* 0x360011DC: push ecx */
    424     ecx = eax; /* 0x360011DD: mov ecx, eax */
    425     RECOMP_ICALL(esi); /* 0x360011DF: call esi */
    426     RECOMP_FLAGS_IN();
    427     eax = MEM32(ebp + 0x8); /* 0x360011E1: mov eax, dword ptr [ebp + 8] */
    428     /* cmp eax, 0x1FFu */ /* 0x360011E4: cmp eax, 0x1ff */
    429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1FFu);
    430     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    431     _flag_k = FK_CMP;
    432     if (CMP_BE(_flag_a, _flag_b)) goto L_360011F0; /* 0x360011E9: jbe 0x360011f0 */
    433 L_360011EB:
    434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1FFu);
    435     eax = eax & 0x1FFu; /* 0x360011EB: and eax, 0x1ff */
    436     _cf = 0;
    437     _flag_k = FK_TEST;
    438 L_360011F0:
    439     ecx = MEM32(ebp + (-0x4)); /* 0x360011F0: mov ecx, dword ptr [ebp - 4] */
    440     /* test ecx, ecx */ /* 0x360011F3: test ecx, ecx */
    441     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    442     _cf = 0;
    443     _flag_k = FK_TEST;
    444     edx = MEM32(ebp + (-0x8)); /* 0x360011F5: mov edx, dword ptr [ebp - 8] */
    445     if (TEST_NZ(_flag_a, _flag_b)) goto L_360011FC; /* 0x360011F8: jne 0x360011fc */
    446 L_360011FA:
    447     ecx = edx; /* 0x360011FA: mov ecx, edx */
    448 L_360011FC:
    449     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
    450     eax = eax & 0xFFFFu; /* 0x360011FC: and eax, 0xffff */
    451     _cf = 0;
    452     _flag_k = FK_TEST;
    453     /* test ecx, ecx */ /* 0x36001201: test ecx, ecx */
    454     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    455     _cf = 0;
    456     _flag_k = FK_TEST;
    457     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001207; /* 0x36001203: jne 0x36001207 */
    458 L_36001205:
    459     ecx = edx; /* 0x36001205: mov ecx, edx */
    460 L_36001207:
    461     esi = MEM32(ebp + 0xC); /* 0x36001207: mov esi, dword ptr [ebp + 0xc] */
    462     MEM32(esi) = eax; /* 0x3600120A: mov dword ptr [esi], eax */
    463     MEM32(esi + 0x4) = edx; /* 0x3600120C: mov dword ptr [esi + 4], edx */
    464     eax = edi; /* 0x3600120F: mov eax, edi */
    465     edi = POP32_VAL(esp); /* 0x36001211: pop edi */
    466     MEM32(esi + 0x8) = ecx; /* 0x36001212: mov dword ptr [esi + 8], ecx */
    467     esi = POP32_VAL(esp); /* 0x36001215: pop esi */
    468     esp = ebp; /* 0x36001216: mov esp, ebp */
    469     ebp = POP32_VAL(esp); /* 0x36001218: pop ebp */
    470     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001219: ret  */
    471     RECOMP_REGS_OUT();
    472 }
    473 
    474 void sub_36001220(void) {
    475     int _fpu_cmp = 0;
    476     uint32_t _cf = 0;
    477     int _df = 1;
    478     uint32_t _flag_k = FK_NONE;
    479     uint32_t _flag_a = 0, _flag_b = 0;
    480     uint32_t _itail_tgt = 0;
    481     RECOMP_REGS_LOCALS
    482     RECOMP_ENTER(0x36001220u);
    483 
    484 L_36001220:
    485     PUSH32(esp, ebp); /* 0x36001220: push ebp */
    486     ebp = esp; /* 0x36001221: mov ebp, esp */
    487     eax = MEM32(ebp + 0xC); /* 0x36001223: mov eax, dword ptr [ebp + 0xc] */
    488     PUSH32(esp, esi); /* 0x36001226: push esi */
    489     esi = MEM32(ebp + 0x8); /* 0x36001227: mov esi, dword ptr [ebp + 8] */
    490     PUSH32(esp, eax); /* 0x3600122A: push eax */
    491     ecx = esi; /* 0x3600122B: mov ecx, esi */
    492     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3600122D: call dword ptr [0x3616faec] */
    493     RECOMP_FLAGS_IN();
    494     eax = esi; /* 0x36001233: mov eax, esi */
    495     esi = POP32_VAL(esp); /* 0x36001235: pop esi */
    496     ebp = POP32_VAL(esp); /* 0x36001236: pop ebp */
    497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001237: ret  */
    498     RECOMP_REGS_OUT();
    499 }
    500 
    501 void sub_36001240(void) {
    502     int _fpu_cmp = 0;
    503     uint32_t _cf = 0;
    504     int _df = 1;
    505     uint32_t _flag_k = FK_NONE;
    506     uint32_t _flag_a = 0, _flag_b = 0;
    507     uint32_t _itail_tgt = 0;
    508     RECOMP_REGS_LOCALS
    509     RECOMP_ENTER(0x36001240u);
    510 
    511 L_36001240:
    512     PUSH32(esp, ebp); /* 0x36001240: push ebp */
    513     ebp = esp; /* 0x36001241: mov ebp, esp */
    514     PUSH32(esp, esi); /* 0x36001243: push esi */
    515     esi = MEM32(ebp + 0x8); /* 0x36001244: mov esi, dword ptr [ebp + 8] */
    516     eax = ebp + 0x8; /* 0x36001247: lea eax, [ebp + 8] */
    517     PUSH32(esp, eax); /* 0x3600124A: push eax */
    518     ecx = esi; /* 0x3600124B: mov ecx, esi */
    519     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3600124D: call dword ptr [0x3616fa8c] */
    520     RECOMP_FLAGS_IN();
    521     ecx = MEM32(ebp + 0xC); /* 0x36001253: mov ecx, dword ptr [ebp + 0xc] */
    522     edx = MEM32(ebp + 0x8); /* 0x36001256: mov edx, dword ptr [ebp + 8] */
    523     eax = esi; /* 0x36001259: mov eax, esi */
    524     MEM32(ecx) = edx; /* 0x3600125B: mov dword ptr [ecx], edx */
    525     esi = POP32_VAL(esp); /* 0x3600125D: pop esi */
    526     ebp = POP32_VAL(esp); /* 0x3600125E: pop ebp */
    527     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600125F: ret  */
    528     RECOMP_REGS_OUT();
    529 }
    530 
    531 void sub_36001260(void) {
    532     int _fpu_cmp = 0;
    533     uint32_t _cf = 0;
    534     int _df = 1;
    535     uint32_t _flag_k = FK_NONE;
    536     uint32_t _flag_a = 0, _flag_b = 0;
    537     uint32_t _itail_tgt = 0;
    538     RECOMP_REGS_LOCALS
    539     RECOMP_ENTER(0x36001260u);
    540 
    541 L_36001260:
    542     PUSH32(esp, ebp); /* 0x36001260: push ebp */
    543     ebp = esp; /* 0x36001261: mov ebp, esp */
    544     PUSH32(esp, 0xFFFFFFFFu); /* 0x36001263: push -1 */
    545     PUSH32(esp, 0x36160144u); /* 0x36001265: push 0x36160144 */
    546     eax = MEM32(FS_BASE + (0)); /* 0x3600126A: mov eax, dword ptr fs:[0] */
    547     PUSH32(esp, eax); /* 0x36001270: push eax */
    548     MEM32(FS_BASE + (0)) = esp; /* 0x36001271: mov dword ptr fs:[0], esp */
    549     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    551     esp = esp - 8; /* 0x36001278: sub esp, 8 */
    552     _flag_k = FK_CMP;
    553     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3600127B: mov al, byte ptr [ebp + 0xb] */
    554     PUSH32(esp, ebx); /* 0x3600127E: push ebx */
    555     ebx = ecx; /* 0x3600127F: mov ebx, ecx */
    556     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36001281: mov cl, byte ptr [ebp + 0xb] */
    557     PUSH32(esp, esi); /* 0x36001284: push esi */
    558     PUSH32(esp, edi); /* 0x36001285: push edi */
    559     PUSH32(esp, 0x1Cu); /* 0x36001286: push 0x1c */
    560     MEM32(ebp + (-0x14)) = ebx; /* 0x36001288: mov dword ptr [ebp - 0x14], ebx */
    561     MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x3600128B: mov byte ptr [ebx], al */
    562     MEM8(ebx + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3600128D: mov byte ptr [ebx + 1], cl */
    563     MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x36001290: mov byte ptr [ebx + 0xc], 0 */
    564     RECOMP_ICALL(0x3615FD6Au); /* 0x36001294: call 0x3615fd6a */ /* not lifted */
    565     RECOMP_FLAGS_IN();
    566     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x36001299: mov byte ptr [eax + 0x18], 1 */
    567     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x3600129D: mov byte ptr [eax + 0x19], 0 */
    568     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    569     edi = 0; /* 0x360012A1: xor edi, edi */
    570     _cf = 0;
    571     _flag_k = FK_TEST;
    572     MEM32(eax + 0x4) = edi; /* 0x360012A3: mov dword ptr [eax + 4], edi */
    573     MEM32(ebx + 0x8) = eax; /* 0x360012A6: mov dword ptr [ebx + 8], eax */
    574     MEM8(eax + 0x19) = (uint8_t)(1); /* 0x360012A9: mov byte ptr [eax + 0x19], 1 */
    575     eax = MEM32(ebx + 0x8); /* 0x360012AD: mov eax, dword ptr [ebx + 8] */
    576     MEM32(eax) = edi; /* 0x360012B0: mov dword ptr [eax], edi */
    577     edx = MEM32(ebx + 0x8); /* 0x360012B2: mov edx, dword ptr [ebx + 8] */
    578     MEM32(edx + 0x8) = edi; /* 0x360012B5: mov dword ptr [edx + 8], edi */
    579     esi = MEM32(ebx + 0x8); /* 0x360012B8: mov esi, dword ptr [ebx + 8] */
    580     PUSH32(esp, 0x1Cu); /* 0x360012BB: push 0x1c */
    581     RECOMP_ICALL(0x3615FD6Au); /* 0x360012BD: call 0x3615fd6a */ /* not lifted */
    582     RECOMP_FLAGS_IN();
    583     MEM32(eax + 0x4) = esi; /* 0x360012C2: mov dword ptr [eax + 4], esi */
    584     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x360012C5: mov byte ptr [eax + 0x18], 0 */
    585     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x360012C9: mov byte ptr [eax + 0x19], 0 */
    586     MEM32(ebx + 0x4) = eax; /* 0x360012CD: mov dword ptr [ebx + 4], eax */
    587     MEM32(eax) = eax; /* 0x360012D0: mov dword ptr [eax], eax */
    588     eax = MEM32(ebx + 0x4); /* 0x360012D2: mov eax, dword ptr [ebx + 4] */
    589     MEM32(eax + 0x8) = eax; /* 0x360012D5: mov dword ptr [eax + 8], eax */
    590     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    591     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    592     esp = esp + 8; /* 0x360012D8: add esp, 8 */
    593     _flag_k = FK_ADD;
    594     MEM32(ebx + 0x10) = edi; /* 0x360012DB: mov dword ptr [ebx + 0x10], edi */
    595     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360012DE: mov al, byte ptr [ebp + 0xb] */
    596     esi = ebx + 0x14; /* 0x360012E1: lea esi, [ebx + 0x14] */
    597     MEM32(ebp + (-0x4)) = edi; /* 0x360012E4: mov dword ptr [ebp - 4], edi */
    598     MEM32(esi + 0x4) = edi; /* 0x360012E7: mov dword ptr [esi + 4], edi */
    599     MEM32(esi + 0x8) = edi; /* 0x360012EA: mov dword ptr [esi + 8], edi */
    600     MEM32(esi + 0xC) = edi; /* 0x360012ED: mov dword ptr [esi + 0xc], edi */
    601     edi = MEM32(ebp + 0x8); /* 0x360012F0: mov edi, dword ptr [ebp + 8] */
    602     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
    603     ecx = ecx | 0xFFFFFFFFu; /* 0x360012F3: or ecx, 0xffffffff */
    604     _cf = 0;
    605     _flag_k = FK_TEST;
    606     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x360012F6: mov byte ptr [esi], al */
    607     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    608     eax = 0; /* 0x360012F8: xor eax, eax */
    609     _cf = 0;
    610     _flag_k = FK_TEST;
    611     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; } /* 0x360012FA: repne scasb al, byte ptr es:[edi] */
    612     ecx = ~ecx; /* 0x360012FC: not ecx */
    613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    614     ecx = ecx - 1; /* 0x360012FE: dec ecx */
    615     _flag_k = FK_DEC;
    616     edi = ecx; /* 0x360012FF: mov edi, ecx */
    617     ecx = esi; /* 0x36001301: mov ecx, esi */
    618     MEM32(ebp + (-0x10)) = edi; /* 0x36001303: mov dword ptr [ebp - 0x10], edi */
    619     RECOMP_ICALL(MEM32(0x3616F108)); /* 0x36001306: call dword ptr [0x3616f108] */
    620     RECOMP_FLAGS_IN();
    621     /* cmp eax, edi */ /* 0x3600130C: cmp eax, edi */
    622     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    623     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    624     _flag_k = FK_CMP;
    625     if (CMP_AE(_flag_a, _flag_b)) goto L_36001316; /* 0x3600130E: jae 0x36001316 */
    626 L_36001310:
    627     RECOMP_ICALL(MEM32(0x3616F104)); /* 0x36001310: call dword ptr [0x3616f104] */
    628     RECOMP_FLAGS_IN();
    629 L_36001316:
    630     eax = MEM32(esi + 0x4); /* 0x36001316: mov eax, dword ptr [esi + 4] */
    631     /* test eax, eax */ /* 0x36001319: test eax, eax */
    632     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    633     _cf = 0;
    634     _flag_k = FK_TEST;
    635     MEM32(esi + 0x8) = 0; /* 0x3600131B: mov dword ptr [esi + 8], 0 */
    636     if (TEST_Z(_flag_a, _flag_b)) goto L_3600133F; /* 0x36001322: je 0x3600133f */
    637 L_36001324:
    638     SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x36001324: mov al, byte ptr [eax - 1] */
    639     /* test LO8(eax), LO8(eax) */ /* 0x36001327: test al, al */
    640     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    641     _cf = 0;
    642     _flag_k = FK_NARROW(FK_TEST, 24);
    643     if (TEST_Z(_flag_a, _flag_b)) goto L_3600133F; /* 0x36001329: je 0x3600133f */
    644 L_3600132B:
    645     /* cmp LO8(eax), 0xFFu */ /* 0x3600132B: cmp al, 0xff */
    646     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
    647     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    648     _flag_k = FK_NARROW(FK_CMP, 24);
    649     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600133F; /* 0x3600132D: je 0x3600133f */
    650 L_3600132F:
    651     /* test edi, edi */ /* 0x3600132F: test edi, edi */
    652     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    653     _cf = 0;
    654     _flag_k = FK_TEST;
    655     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001365; /* 0x36001331: jne 0x36001365 */
    656 L_36001333:
    657     PUSH32(esp, 1); /* 0x36001333: push 1 */
    658     ecx = esi; /* 0x36001335: mov ecx, esi */
    659     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36001337: call dword ptr [0x3616f100] */
    660     RECOMP_FLAGS_IN();
    661     goto L_36001393; /* 0x3600133D: jmp 0x36001393 */
    662 L_3600133F:
    663     /* test edi, edi */ /* 0x3600133F: test edi, edi */
    664     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    665     _cf = 0;
    666     _flag_k = FK_TEST;
    667     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600134F; /* 0x36001341: jne 0x3600134f */
    668 L_36001343:
    669     PUSH32(esp, 1); /* 0x36001343: push 1 */
    670     ecx = esi; /* 0x36001345: mov ecx, esi */
    671     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36001347: call dword ptr [0x3616f100] */
    672     RECOMP_FLAGS_IN();
    673     goto L_36001393; /* 0x3600134D: jmp 0x36001393 */
    674 L_3600134F:
    675     eax = MEM32(esi + 0xC); /* 0x3600134F: mov eax, dword ptr [esi + 0xc] */
    676     /* cmp eax, 0x1Fu */ /* 0x36001352: cmp eax, 0x1f */
    677     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu);
    678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    679     _flag_k = FK_CMP;
    680     if (CMP_A(_flag_a, _flag_b)) goto L_3600135B; /* 0x36001355: ja 0x3600135b */
    681 L_36001357:
    682     /* cmp eax, edi */ /* 0x36001357: cmp eax, edi */
    683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    685     _flag_k = FK_CMP;
    686     if (CMP_AE(_flag_a, _flag_b)) goto L_3600136E; /* 0x36001359: jae 0x3600136e */
    687 L_3600135B:
    688     PUSH32(esp, 1); /* 0x3600135B: push 1 */
    689     ecx = esi; /* 0x3600135D: mov ecx, esi */
    690     RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3600135F: call dword ptr [0x3616f100] */
    691     RECOMP_FLAGS_IN();
    692 L_36001365:
    693     PUSH32(esp, edi); /* 0x36001365: push edi */
    694     ecx = esi; /* 0x36001366: mov ecx, esi */
    695     RECOMP_ICALL(MEM32(0x3616F048)); /* 0x36001368: call dword ptr [0x3616f048] */
    696     RECOMP_FLAGS_IN();
    697 L_3600136E:
    698     eax = MEM32(esi + 0x4); /* 0x3600136E: mov eax, dword ptr [esi + 4] */
    699     esi = MEM32(ebp + 0x8); /* 0x36001371: mov esi, dword ptr [ebp + 8] */
    700     ecx = edi; /* 0x36001374: mov ecx, edi */
    701     edx = ecx; /* 0x36001376: mov edx, ecx */
    702     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36001378: shr ecx, 2 */
    703     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    704     ecx = ecx >> 2u; /* 0x36001378: shr ecx, 2 */
    705     edi = eax; /* 0x3600137B: mov edi, eax */
    706     eax = MEM32(ebp + (-0x10)); /* 0x3600137D: mov eax, dword ptr [ebp - 0x10] */
    707     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001380: 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; }
    708     ecx = edx; /* 0x36001382: mov ecx, edx */
    709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    710     ecx = ecx & 3; /* 0x36001384: and ecx, 3 */
    711     _cf = 0;
    712     _flag_k = FK_TEST;
    713     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36001387: 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; }
    714     PUSH32(esp, eax); /* 0x36001389: push eax */
    715     ecx = ebx + 0x14; /* 0x3600138A: lea ecx, [ebx + 0x14] */
    716     RECOMP_ICALL(MEM32(0x3616F044)); /* 0x3600138D: call dword ptr [0x3616f044] */
    717     RECOMP_FLAGS_IN();
    718 L_36001393:
    719     ecx = ebx; /* 0x36001393: mov ecx, ebx */
    720     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36001395: mov byte ptr [ebp - 4], 1 */
    721     RECOMP_ICALL(0x36001480u); /* 0x36001399: call 0x36001480 */ /* not lifted */
    722     RECOMP_FLAGS_IN();
    723     ecx = MEM32(ebp + (-0xC)); /* 0x3600139E: mov ecx, dword ptr [ebp - 0xc] */
    724     edi = POP32_VAL(esp); /* 0x360013A1: pop edi */
    725     esi = POP32_VAL(esp); /* 0x360013A2: pop esi */
    726     eax = ebx; /* 0x360013A3: mov eax, ebx */
    727     ebx = POP32_VAL(esp); /* 0x360013A5: pop ebx */
    728     MEM32(FS_BASE + (0)) = ecx; /* 0x360013A6: mov dword ptr fs:[0], ecx */
    729     esp = ebp; /* 0x360013AD: mov esp, ebp */
    730     ebp = POP32_VAL(esp); /* 0x360013AF: pop ebp */
    731     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360013B0: ret 4 */
    732     RECOMP_REGS_OUT();
    733 }
    734 
    735 void sub_360013C0(void) {
    736     int _fpu_cmp = 0;
    737     uint32_t _cf = 0;
    738     int _df = 1;
    739     uint32_t _flag_k = FK_NONE;
    740     uint32_t _flag_a = 0, _flag_b = 0;
    741     uint32_t _itail_tgt = 0;
    742     RECOMP_REGS_LOCALS
    743     RECOMP_ENTER(0x360013C0u);
    744 
    745 L_360013C0:
    746     PUSH32(esp, ebp); /* 0x360013C0: push ebp */
    747     ebp = esp; /* 0x360013C1: mov ebp, esp */
    748     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    749     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    750     esp = esp - 8; /* 0x360013C3: sub esp, 8 */
    751     _flag_k = FK_CMP;
    752     PUSH32(esp, ebx); /* 0x360013C6: push ebx */
    753     PUSH32(esp, esi); /* 0x360013C7: push esi */
    754     esi = ecx; /* 0x360013C8: mov esi, ecx */
    755     ecx = MEM32(esi + 0x10); /* 0x360013CA: mov ecx, dword ptr [esi + 0x10] */
    756     /* test ecx, ecx */ /* 0x360013CD: test ecx, ecx */
    757     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    758     _cf = 0;
    759     _flag_k = FK_TEST;
    760     PUSH32(esp, edi); /* 0x360013CF: push edi */
    761     edi = MEM32(esi + 0x4); /* 0x360013D0: mov edi, dword ptr [esi + 4] */
    762     eax = MEM32(edi); /* 0x360013D3: mov eax, dword ptr [edi] */
    763     MEM32(ebp + (-0x4)) = eax; /* 0x360013D5: mov dword ptr [ebp - 4], eax */
    764     if (TEST_Z(_flag_a, _flag_b)) goto L_36001435; /* 0x360013D8: je 0x36001435 */
    765 L_360013DA:
    766     ecx = eax; /* 0x360013DA: mov ecx, eax */
    767     /* cmp eax, ecx */ /* 0x360013DC: cmp eax, ecx */
    768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    770     _flag_k = FK_CMP;
    771     if (CMP_NE(_flag_a, _flag_b)) goto L_36001435; /* 0x360013DE: jne 0x36001435 */
    772 L_360013E0:
    773     /* cmp edi, edi */ /* 0x360013E0: cmp edi, edi */
    774     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    775     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    776     _flag_k = FK_CMP;
    777     if (CMP_NE(_flag_a, _flag_b)) goto L_36001435; /* 0x360013E2: jne 0x36001435 */
    778 L_360013E4:
    779     ebx = MEM32(edi + 0x4); /* 0x360013E4: mov ebx, dword ptr [edi + 4] */
    780     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360013E7: cmp ebx, dword ptr [esi + 8] */
    781     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    783     _flag_k = FK_CMP;
    784     edi = ebx; /* 0x360013EA: mov edi, ebx */
    785     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600140D; /* 0x360013EC: je 0x3600140d */
    786 L_360013EE:
    787     eax = MEM32(edi + 0x8); /* 0x360013EE: mov eax, dword ptr [edi + 8] */
    788     PUSH32(esp, eax); /* 0x360013F1: push eax */
    789     ecx = esi; /* 0x360013F2: mov ecx, esi */
    790     RECOMP_ICALL(0x36001A20u); /* 0x360013F4: call 0x36001a20 */ /* not lifted */
    791     RECOMP_FLAGS_IN();
    792     edi = MEM32(edi); /* 0x360013F9: mov edi, dword ptr [edi] */
    793     PUSH32(esp, ebx); /* 0x360013FB: push ebx */
    794     RECOMP_ICALL(0x3615FCC4u); /* 0x360013FC: call 0x3615fcc4 */ /* not lifted */
    795     RECOMP_FLAGS_IN();
    796     eax = MEM32(esi + 0x8); /* 0x36001401: mov eax, dword ptr [esi + 8] */
    797     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    798     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    799     esp = esp + 4; /* 0x36001404: add esp, 4 */
    800     _flag_k = FK_ADD;
    801     /* cmp edi, eax */ /* 0x36001407: cmp edi, eax */
    802     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    804     _flag_k = FK_CMP;
    805     ebx = edi; /* 0x36001409: mov ebx, edi */
    806     RECOMP_BACKEDGE();
    807     if (CMP_NE(_flag_a, _flag_b)) goto L_360013EE; /* 0x3600140B: jne 0x360013ee */
    808 L_3600140D:
    809     ecx = MEM32(esi + 0x4); /* 0x3600140D: mov ecx, dword ptr [esi + 4] */
    810     edx = MEM32(esi + 0x8); /* 0x36001410: mov edx, dword ptr [esi + 8] */
    811     MEM32(ecx + 0x4) = edx; /* 0x36001413: mov dword ptr [ecx + 4], edx */
    812     eax = MEM32(esi + 0x4); /* 0x36001416: mov eax, dword ptr [esi + 4] */
    813     MEM32(esi + 0x10) = 0; /* 0x36001419: mov dword ptr [esi + 0x10], 0 */
    814     MEM32(eax) = eax; /* 0x36001420: mov dword ptr [eax], eax */
    815     eax = MEM32(esi + 0x4); /* 0x36001422: mov eax, dword ptr [esi + 4] */
    816     MEM32(eax + 0x8) = eax; /* 0x36001425: mov dword ptr [eax + 8], eax */
    817     eax = ebp + (-0x8); /* 0x36001428: lea eax, [ebp - 8] */
    818     PUSH32(esp, eax); /* 0x3600142B: push eax */
    819     ecx = esi; /* 0x3600142C: mov ecx, esi */
    820     RECOMP_ICALL(0x3614FC30u); /* 0x3600142E: call 0x3614fc30 */ /* not lifted */
    821     RECOMP_FLAGS_IN();
    822     goto L_36001456; /* 0x36001433: jmp 0x36001456 */
    823 L_36001435:
    824     /* cmp eax, edi */ /* 0x36001435: cmp eax, edi */
    825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    827     _flag_k = FK_CMP;
    828     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001456; /* 0x36001437: je 0x36001456 */
    829 L_36001439:
    830     ecx = ebp + (-0x4); /* 0x36001439: lea ecx, [ebp - 4] */
    831     ebx = eax; /* 0x3600143C: mov ebx, eax */
    832     RECOMP_ICALL(0x36096C20u); /* 0x3600143E: call 0x36096c20 */ /* not lifted */
    833     RECOMP_FLAGS_IN();
    834     PUSH32(esp, ebx); /* 0x36001443: push ebx */
    835     ecx = ebp + (-0x8); /* 0x36001444: lea ecx, [ebp - 8] */
    836     PUSH32(esp, ecx); /* 0x36001447: push ecx */
    837     ecx = esi; /* 0x36001448: mov ecx, esi */
    838     RECOMP_ICALL(0x3603ECC0u); /* 0x3600144A: call 0x3603ecc0 */ /* not lifted */
    839     RECOMP_FLAGS_IN();
    840     eax = MEM32(ebp + (-0x4)); /* 0x3600144F: mov eax, dword ptr [ebp - 4] */
    841     /* cmp eax, edi */ /* 0x36001452: cmp eax, edi */
    842     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    844     _flag_k = FK_CMP;
    845     RECOMP_BACKEDGE();
    846     if (CMP_NE(_flag_a, _flag_b)) goto L_36001439; /* 0x36001454: jne 0x36001439 */
    847 L_36001456:
    848     edx = MEM32(esi + 0x4); /* 0x36001456: mov edx, dword ptr [esi + 4] */
    849     PUSH32(esp, edx); /* 0x36001459: push edx */
    850     RECOMP_ICALL(0x3615FCC4u); /* 0x3600145A: call 0x3615fcc4 */ /* not lifted */
    851     RECOMP_FLAGS_IN();
    852     eax = MEM32(esi + 0x8); /* 0x3600145F: mov eax, dword ptr [esi + 8] */
    853     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    854     edi = 0; /* 0x36001462: xor edi, edi */
    855     _cf = 0;
    856     _flag_k = FK_TEST;
    857     PUSH32(esp, eax); /* 0x36001464: push eax */
    858     MEM32(esi + 0x4) = edi; /* 0x36001465: mov dword ptr [esi + 4], edi */
    859     MEM32(esi + 0x10) = edi; /* 0x36001468: mov dword ptr [esi + 0x10], edi */
    860     RECOMP_ICALL(0x3615FCC4u); /* 0x3600146B: call 0x3615fcc4 */ /* not lifted */
    861     RECOMP_FLAGS_IN();
    862     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    864     esp = esp + 8; /* 0x36001470: add esp, 8 */
    865     _flag_k = FK_ADD;
    866     MEM32(esi + 0x8) = edi; /* 0x36001473: mov dword ptr [esi + 8], edi */
    867     edi = POP32_VAL(esp); /* 0x36001476: pop edi */
    868     esi = POP32_VAL(esp); /* 0x36001477: pop esi */
    869     ebx = POP32_VAL(esp); /* 0x36001478: pop ebx */
    870     esp = ebp; /* 0x36001479: mov esp, ebp */
    871     ebp = POP32_VAL(esp); /* 0x3600147B: pop ebp */
    872     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600147C: ret  */
    873     RECOMP_REGS_OUT();
    874 }
    875 
    876 void sub_36001480(void) {
    877     int _fpu_cmp = 0;
    878     uint32_t _cf = 0;
    879     int _df = 1;
    880     uint32_t _flag_k = FK_NONE;
    881     uint32_t _flag_a = 0, _flag_b = 0;
    882     uint32_t _itail_tgt = 0;
    883     RECOMP_REGS_LOCALS
    884     RECOMP_ENTER(0x36001480u);
    885 
    886 L_36001480:
    887     PUSH32(esp, ebp); /* 0x36001480: push ebp */
    888     ebp = esp; /* 0x36001481: mov ebp, esp */
    889     PUSH32(esp, 0xFFFFFFFFu); /* 0x36001483: push -1 */
    890     PUSH32(esp, 0x36160162u); /* 0x36001485: push 0x36160162 */
    891     eax = MEM32(FS_BASE + (0)); /* 0x3600148A: mov eax, dword ptr fs:[0] */
    892     PUSH32(esp, eax); /* 0x36001490: push eax */
    893     MEM32(FS_BASE + (0)) = esp; /* 0x36001491: mov dword ptr fs:[0], esp */
    894     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1F0u);
    895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    896     esp = esp - 0x1F0u; /* 0x36001498: sub esp, 0x1f0 */
    897     _flag_k = FK_CMP;
    898     PUSH32(esp, esi); /* 0x3600149E: push esi */
    899     esi = ecx; /* 0x3600149F: mov esi, ecx */
    900     eax = MEM32(esi + 0x4); /* 0x360014A1: mov eax, dword ptr [esi + 4] */
    901     ecx = MEM32(eax); /* 0x360014A4: mov ecx, dword ptr [eax] */
    902     PUSH32(esp, eax); /* 0x360014A6: push eax */
    903     PUSH32(esp, ecx); /* 0x360014A7: push ecx */
    904     eax = ebp + (-0x10); /* 0x360014A8: lea eax, [ebp - 0x10] */
    905     PUSH32(esp, eax); /* 0x360014AB: push eax */
    906     ecx = esi; /* 0x360014AC: mov ecx, esi */
    907     MEM32(ebp + (-0x18)) = esi; /* 0x360014AE: mov dword ptr [ebp - 0x18], esi */
    908     RECOMP_ICALL(0x36001710u); /* 0x360014B1: call 0x36001710 */ /* not lifted */
    909     RECOMP_FLAGS_IN();
    910     eax = MEM32(esi + 0x18); /* 0x360014B6: mov eax, dword ptr [esi + 0x18] */
    911     /* test eax, eax */ /* 0x360014B9: test eax, eax */
    912     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    913     _cf = 0;
    914     _flag_k = FK_TEST;
    915     if (TEST_NZ(_flag_a, _flag_b)) goto L_360014C2; /* 0x360014BB: jne 0x360014c2 */
    916 L_360014BD:
    917     eax = MEM32(0x3616F10C); /* 0x360014BD: mov eax, dword ptr [0x3616f10c] */
    918 L_360014C2:
    919     PUSH32(esp, eax); /* 0x360014C2: push eax */
    920     ecx = ebp + (-0x3C); /* 0x360014C3: lea ecx, [ebp - 0x3c] */
    921     RECOMP_ICALL(MEM32(0x3616FA0C)); /* 0x360014C6: call dword ptr [0x3616fa0c] */
    922     RECOMP_FLAGS_IN();
    923     PUSH32(esp, 1); /* 0x360014CC: push 1 */
    924     ecx = ebp + (-0x3C); /* 0x360014CE: lea ecx, [ebp - 0x3c] */
    925     MEM32(ebp + (-0x4)) = 0; /* 0x360014D1: mov dword ptr [ebp - 4], 0 */
    926     RECOMP_ICALL(MEM32(0x3616FA08)); /* 0x360014D8: call dword ptr [0x3616fa08] */
    927     RECOMP_FLAGS_IN();
    928     /* test eax, eax */ /* 0x360014DE: test eax, eax */
    929     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    930     _cf = 0;
    931     _flag_k = FK_TEST;
    932     if (TEST_Z(_flag_a, _flag_b)) goto L_36001501; /* 0x360014E0: je 0x36001501 */
    933 L_360014E2:
    934     ecx = ebp + (-0x3C); /* 0x360014E2: lea ecx, [ebp - 0x3c] */
    935     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360014E5: mov dword ptr [ebp - 4], 0xffffffff */
    936     RECOMP_ICALL(MEM32(0x3616FA04)); /* 0x360014EC: call dword ptr [0x3616fa04] */
    937     RECOMP_FLAGS_IN();
    938     esi = POP32_VAL(esp); /* 0x360014F2: pop esi */
    939     ecx = MEM32(ebp + (-0xC)); /* 0x360014F3: mov ecx, dword ptr [ebp - 0xc] */
    940     MEM32(FS_BASE + (0)) = ecx; /* 0x360014F6: mov dword ptr fs:[0], ecx */
    941     esp = ebp; /* 0x360014FD: mov esp, ebp */
    942     ebp = POP32_VAL(esp); /* 0x360014FF: pop ebp */
    943     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001500: ret  */
    944 L_36001501:
    945     PUSH32(esp, ebx); /* 0x36001501: push ebx */
    946     PUSH32(esp, edi); /* 0x36001502: push edi */
    947     ecx = ebp + (-0x3C); /* 0x36001503: lea ecx, [ebp - 0x3c] */
    948     RECOMP_ICALL(MEM32(0x3616FA00)); /* 0x36001506: call dword ptr [0x3616fa00] */
    949     RECOMP_FLAGS_IN();
    950     edi = eax; /* 0x3600150C: mov edi, eax */
    951     PUSH32(esp, edi); /* 0x3600150E: push edi */
    952     MEM32(ebp + (-0x14)) = edi; /* 0x3600150F: mov dword ptr [ebp - 0x14], edi */
    953     RECOMP_ICALL(0x3615FD6Au); /* 0x36001512: call 0x3615fd6a */ /* not lifted */
    954     RECOMP_FLAGS_IN();
    955     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    956     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    957     esp = esp + 4; /* 0x36001517: add esp, 4 */
    958     _flag_k = FK_ADD;
    959     esi = eax; /* 0x3600151A: mov esi, eax */
    960     PUSH32(esp, edi); /* 0x3600151C: push edi */
    961     PUSH32(esp, esi); /* 0x3600151D: push esi */
    962     ecx = ebp + (-0x3C); /* 0x3600151E: lea ecx, [ebp - 0x3c] */
    963     RECOMP_ICALL(MEM32(0x3616FA40)); /* 0x36001521: call dword ptr [0x3616fa40] */
    964     RECOMP_FLAGS_IN();
    965     ecx = ebp + (-0x3C); /* 0x36001527: lea ecx, [ebp - 0x3c] */
    966     RECOMP_ICALL(MEM32(0x3616FA6C)); /* 0x3600152A: call dword ptr [0x3616fa6c] */
    967     RECOMP_FLAGS_IN();
    968     PUSH32(esp, edi); /* 0x36001530: push edi */
    969     PUSH32(esp, esi); /* 0x36001531: push esi */
    970     ecx = ebp + (-0x5C); /* 0x36001532: lea ecx, [ebp - 0x5c] */
    971     RECOMP_ICALL(MEM32(0x3616FA68)); /* 0x36001535: call dword ptr [0x3616fa68] */
    972     RECOMP_FLAGS_IN();
    973     PUSH32(esp, 1); /* 0x3600153B: push 1 */
    974     ecx = ebp + (-0x5C); /* 0x3600153D: lea ecx, [ebp - 0x5c] */
    975     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36001540: mov byte ptr [ebp - 4], 1 */
    976     RECOMP_ICALL(MEM32(0x3616F9FC)); /* 0x36001544: call dword ptr [0x3616f9fc] */
    977     RECOMP_FLAGS_IN();
    978     ebx = MEM32(0x3616F278); /* 0x3600154A: mov ebx, dword ptr [0x3616f278] */
    979     goto L_36001555; /* 0x36001550: jmp 0x36001555 */
    980 L_36001552:
    981     edi = MEM32(ebp + (-0x14)); /* 0x36001552: mov edi, dword ptr [ebp - 0x14] */
    982 L_36001555:
    983     ecx = ebp + (-0x5C); /* 0x36001555: lea ecx, [ebp - 0x5c] */
    984     RECOMP_ICALL(MEM32(0x3616FA3C)); /* 0x36001558: call dword ptr [0x3616fa3c] */
    985     RECOMP_FLAGS_IN();
    986     /* cmp eax, edi */ /* 0x3600155E: cmp eax, edi */
    987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    988     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    989     _flag_k = FK_CMP;
    990     if (CMP_GE(_flag_a, _flag_b)) goto L_3600166E; /* 0x36001560: jge 0x3600166e */
    991 L_36001566:
    992     PUSH32(esp, 0xAu); /* 0x36001566: push 0xa */
    993     PUSH32(esp, 0xA0u); /* 0x36001568: push 0xa0 */
    994     ecx = ebp + (-0x1FC); /* 0x3600156D: lea ecx, [ebp - 0x1fc] */
    995     PUSH32(esp, ecx); /* 0x36001573: push ecx */
    996     ecx = ebp + (-0x5C); /* 0x36001574: lea ecx, [ebp - 0x5c] */
    997     RECOMP_ICALL(MEM32(0x3616FA64)); /* 0x36001577: call dword ptr [0x3616fa64] */
    998     RECOMP_FLAGS_IN();
    999     /* test eax, eax */ /* 0x3600157D: test eax, eax */
   1000     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1001     _cf = 0;
   1002     _flag_k = FK_TEST;
   1003     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600166E; /* 0x3600157F: jne 0x3600166e */
   1004 L_36001585:
   1005     MEM8(ebp + (-0x15C)) = (uint8_t)(LO8(eax)); /* 0x36001585: mov byte ptr [ebp - 0x15c], al */
   1006     ecx = 0x13u; /* 0x3600158B: mov ecx, 0x13 */
   1007     edi = ebp + (-0x15B); /* 0x36001590: lea edi, [ebp - 0x15b] */
   1008     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1009     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36001598: stosw word ptr es:[edi], ax */
   1010     MEM8(edi) = LO8(eax); edi += _df; /* 0x3600159A: stosb byte ptr es:[edi], al */
   1011     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1012     eax = 0; /* 0x3600159B: xor eax, eax */
   1013     _cf = 0;
   1014     _flag_k = FK_TEST;
   1015     MEM8(ebp + (-0x10C)) = (uint8_t)(0); /* 0x3600159D: mov byte ptr [ebp - 0x10c], 0 */
   1016     ecx = 0x13u; /* 0x360015A4: mov ecx, 0x13 */
   1017     edi = ebp + (-0x10B); /* 0x360015A9: lea edi, [ebp - 0x10b] */
   1018     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1019     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360015B1: stosw word ptr es:[edi], ax */
   1020     MEM8(edi) = LO8(eax); edi += _df; /* 0x360015B3: stosb byte ptr es:[edi], al */
   1021     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1022     eax = 0; /* 0x360015B4: xor eax, eax */
   1023     _cf = 0;
   1024     _flag_k = FK_TEST;
   1025     ecx = 0x14u; /* 0x360015B6: mov ecx, 0x14 */
   1026     edi = ebp + (-0xBC); /* 0x360015BB: lea edi, [ebp - 0xbc] */
   1027     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1028     edx = ebp + (-0xBC); /* 0x360015C3: lea edx, [ebp - 0xbc] */
   1029     PUSH32(esp, edx); /* 0x360015C9: push edx */
   1030     eax = ebp + (-0x10C); /* 0x360015CA: lea eax, [ebp - 0x10c] */
   1031     PUSH32(esp, eax); /* 0x360015D0: push eax */
   1032     ecx = ebp + (-0x15C); /* 0x360015D1: lea ecx, [ebp - 0x15c] */
   1033     PUSH32(esp, ecx); /* 0x360015D7: push ecx */
   1034     edx = ebp + (-0x1FC); /* 0x360015D8: lea edx, [ebp - 0x1fc] */
   1035     PUSH32(esp, 0x361B2C54u); /* 0x360015DE: push 0x361b2c54 */
   1036     PUSH32(esp, edx); /* 0x360015E3: push edx */
   1037     RECOMP_ICALL(MEM32(0x3616F280)); /* 0x360015E4: call dword ptr [0x3616f280] */
   1038     RECOMP_FLAGS_IN();
   1039     SET_LO8(eax, MEM8(ebp + (-0x15C))); /* 0x360015EA: mov al, byte ptr [ebp - 0x15c] */
   1040     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1041     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1042     esp = esp + 0x14u; /* 0x360015F0: add esp, 0x14 */
   1043     _flag_k = FK_ADD;
   1044     /* test LO8(eax), LO8(eax) */ /* 0x360015F3: test al, al */
   1045     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1046     _cf = 0;
   1047     _flag_k = FK_NARROW(FK_TEST, 24);
   1048     RECOMP_BACKEDGE();
   1049     if (TEST_Z(_flag_a, _flag_b)) goto L_36001552; /* 0x360015F5: je 0x36001552 */
   1050 L_360015FB:
   1051     /* cmp LO8(eax), 0xAu */ /* 0x360015FB: cmp al, 0xa */
   1052     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xAu) << 24;
   1053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1054     _flag_k = FK_NARROW(FK_CMP, 24);
   1055     RECOMP_BACKEDGE();
   1056     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x360015FD: je 0x36001552 */
   1057 L_36001603:
   1058     /* cmp LO8(eax), 0x2Fu */ /* 0x36001603: cmp al, 0x2f */
   1059     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x2Fu) << 24;
   1060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1061     _flag_k = FK_NARROW(FK_CMP, 24);
   1062     RECOMP_BACKEDGE();
   1063     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x36001605: je 0x36001552 */
   1064 L_3600160B:
   1065     /* cmp LO8(eax), 0x23u */ /* 0x3600160B: cmp al, 0x23 */
   1066     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x23u) << 24;
   1067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1068     _flag_k = FK_NARROW(FK_CMP, 24);
   1069     RECOMP_BACKEDGE();
   1070     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x3600160D: je 0x36001552 */
   1071 L_36001613:
   1072     eax = ebp + (-0x15C); /* 0x36001613: lea eax, [ebp - 0x15c] */
   1073     PUSH32(esp, eax); /* 0x36001619: push eax */
   1074     RECOMP_ICALL(ebx); /* 0x3600161A: call ebx */
   1075     RECOMP_FLAGS_IN();
   1076     ecx = ebp + (-0x10C); /* 0x3600161C: lea ecx, [ebp - 0x10c] */
   1077     PUSH32(esp, ecx); /* 0x36001622: push ecx */
   1078     esi = eax; /* 0x36001623: mov esi, eax */
   1079     RECOMP_ICALL(ebx); /* 0x36001625: call ebx */
   1080     RECOMP_FLAGS_IN();
   1081     edx = ebp + (-0xBC); /* 0x36001627: lea edx, [ebp - 0xbc] */
   1082     PUSH32(esp, edx); /* 0x3600162D: push edx */
   1083     edi = eax; /* 0x3600162E: mov edi, eax */
   1084     RECOMP_ICALL(MEM32(0x3616F270)); /* 0x36001630: call dword ptr [0x3616f270] */
   1085     RECOMP_FLAGS_IN();
   1086     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36001636: fstp dword ptr [ebp - 0x10] */
   1087     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1088     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1089     esp = esp + 0xCu; /* 0x36001639: add esp, 0xc */
   1090     _flag_k = FK_ADD;
   1091     eax = ebp + (-0x24); /* 0x3600163C: lea eax, [ebp - 0x24] */
   1092     PUSH32(esp, eax); /* 0x3600163F: push eax */
   1093     ecx = ebp + (-0x6C); /* 0x36001640: lea ecx, [ebp - 0x6c] */
   1094     PUSH32(esp, ecx); /* 0x36001643: push ecx */
   1095     ecx = MEM32(ebp + (-0x18)); /* 0x36001644: mov ecx, dword ptr [ebp - 0x18] */
   1096     MEM32(ebp + (-0x24)) = esi; /* 0x36001647: mov dword ptr [ebp - 0x24], esi */
   1097     MEM32(ebp + (-0x20)) = edi; /* 0x3600164A: mov dword ptr [ebp - 0x20], edi */
   1098     MEM32(ebp + (-0x1C)) = 0; /* 0x3600164D: mov dword ptr [ebp - 0x1c], 0 */
   1099     RECOMP_ICALL(0x360017C0u); /* 0x36001654: call 0x360017c0 */ /* not lifted */
   1100     RECOMP_FLAGS_IN();
   1101     edx = eax; /* 0x36001659: mov edx, eax */
   1102     eax = MEM32(edx); /* 0x3600165B: mov eax, dword ptr [edx] */
   1103     ecx = MEM32(edx + 0x4); /* 0x3600165D: mov ecx, dword ptr [edx + 4] */
   1104     edx = MEM32(ebp + (-0x10)); /* 0x36001660: mov edx, dword ptr [ebp - 0x10] */
   1105     MEM32(ebp + (-0x60)) = ecx; /* 0x36001663: mov dword ptr [ebp - 0x60], ecx */
   1106     MEM32(eax + 0x14) = edx; /* 0x36001666: mov dword ptr [eax + 0x14], edx */
   1107     RECOMP_BACKEDGE();
   1108     goto L_36001552; /* 0x36001669: jmp 0x36001552 */
   1109 L_3600166E:
   1110     ecx = ebp + (-0x5C); /* 0x3600166E: lea ecx, [ebp - 0x5c] */
   1111     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36001671: mov byte ptr [ebp - 4], 0 */
   1112     RECOMP_ICALL(MEM32(0x3616FA60)); /* 0x36001675: call dword ptr [0x3616fa60] */
   1113     RECOMP_FLAGS_IN();
   1114     ecx = ebp + (-0x3C); /* 0x3600167B: lea ecx, [ebp - 0x3c] */
   1115     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3600167E: mov dword ptr [ebp - 4], 0xffffffff */
   1116     RECOMP_ICALL(MEM32(0x3616FA04)); /* 0x36001685: call dword ptr [0x3616fa04] */
   1117     RECOMP_FLAGS_IN();
   1118     ecx = MEM32(ebp + (-0xC)); /* 0x3600168B: mov ecx, dword ptr [ebp - 0xc] */
   1119     edi = POP32_VAL(esp); /* 0x3600168E: pop edi */
   1120     ebx = POP32_VAL(esp); /* 0x3600168F: pop ebx */
   1121     esi = POP32_VAL(esp); /* 0x36001690: pop esi */
   1122     MEM32(FS_BASE + (0)) = ecx; /* 0x36001691: mov dword ptr fs:[0], ecx */
   1123     esp = ebp; /* 0x36001698: mov esp, ebp */
   1124     ebp = POP32_VAL(esp); /* 0x3600169A: pop ebp */
   1125     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600169B: ret  */
   1126     RECOMP_REGS_OUT();
   1127 }
   1128 
   1129 void sub_36001552(void) {
   1130     int _fpu_cmp = 0;
   1131     uint32_t _cf = 0;
   1132     int _df = 1;
   1133     uint32_t _flag_k = FK_NONE;
   1134     uint32_t _flag_a = 0, _flag_b = 0;
   1135     uint32_t _itail_tgt = 0;
   1136     RECOMP_REGS_LOCALS
   1137     RECOMP_ENTER(0x36001552u);
   1138 
   1139 L_36001552:
   1140     edi = MEM32(ebp + (-0x14)); /* 0x36001552: mov edi, dword ptr [ebp - 0x14] */
   1141     ecx = ebp + (-0x5C); /* 0x36001555: lea ecx, [ebp - 0x5c] */
   1142     RECOMP_ICALL(MEM32(0x3616FA3C)); /* 0x36001558: call dword ptr [0x3616fa3c] */
   1143     RECOMP_FLAGS_IN();
   1144     /* cmp eax, edi */ /* 0x3600155E: cmp eax, edi */
   1145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1147     _flag_k = FK_CMP;
   1148     if (CMP_GE(_flag_a, _flag_b)) goto L_3600166E; /* 0x36001560: jge 0x3600166e */
   1149 L_36001566:
   1150     PUSH32(esp, 0xAu); /* 0x36001566: push 0xa */
   1151     PUSH32(esp, 0xA0u); /* 0x36001568: push 0xa0 */
   1152     ecx = ebp + (-0x1FC); /* 0x3600156D: lea ecx, [ebp - 0x1fc] */
   1153     PUSH32(esp, ecx); /* 0x36001573: push ecx */
   1154     ecx = ebp + (-0x5C); /* 0x36001574: lea ecx, [ebp - 0x5c] */
   1155     RECOMP_ICALL(MEM32(0x3616FA64)); /* 0x36001577: call dword ptr [0x3616fa64] */
   1156     RECOMP_FLAGS_IN();
   1157     /* test eax, eax */ /* 0x3600157D: test eax, eax */
   1158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1159     _cf = 0;
   1160     _flag_k = FK_TEST;
   1161     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600166E; /* 0x3600157F: jne 0x3600166e */
   1162 L_36001585:
   1163     MEM8(ebp + (-0x15C)) = (uint8_t)(LO8(eax)); /* 0x36001585: mov byte ptr [ebp - 0x15c], al */
   1164     ecx = 0x13u; /* 0x3600158B: mov ecx, 0x13 */
   1165     edi = ebp + (-0x15B); /* 0x36001590: lea edi, [ebp - 0x15b] */
   1166     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1167     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36001598: stosw word ptr es:[edi], ax */
   1168     MEM8(edi) = LO8(eax); edi += _df; /* 0x3600159A: stosb byte ptr es:[edi], al */
   1169     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1170     eax = 0; /* 0x3600159B: xor eax, eax */
   1171     _cf = 0;
   1172     _flag_k = FK_TEST;
   1173     MEM8(ebp + (-0x10C)) = (uint8_t)(0); /* 0x3600159D: mov byte ptr [ebp - 0x10c], 0 */
   1174     ecx = 0x13u; /* 0x360015A4: mov ecx, 0x13 */
   1175     edi = ebp + (-0x10B); /* 0x360015A9: lea edi, [ebp - 0x10b] */
   1176     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1177     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360015B1: stosw word ptr es:[edi], ax */
   1178     MEM8(edi) = LO8(eax); edi += _df; /* 0x360015B3: stosb byte ptr es:[edi], al */
   1179     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1180     eax = 0; /* 0x360015B4: xor eax, eax */
   1181     _cf = 0;
   1182     _flag_k = FK_TEST;
   1183     ecx = 0x14u; /* 0x360015B6: mov ecx, 0x14 */
   1184     edi = ebp + (-0xBC); /* 0x360015BB: lea edi, [ebp - 0xbc] */
   1185     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1186     edx = ebp + (-0xBC); /* 0x360015C3: lea edx, [ebp - 0xbc] */
   1187     PUSH32(esp, edx); /* 0x360015C9: push edx */
   1188     eax = ebp + (-0x10C); /* 0x360015CA: lea eax, [ebp - 0x10c] */
   1189     PUSH32(esp, eax); /* 0x360015D0: push eax */
   1190     ecx = ebp + (-0x15C); /* 0x360015D1: lea ecx, [ebp - 0x15c] */
   1191     PUSH32(esp, ecx); /* 0x360015D7: push ecx */
   1192     edx = ebp + (-0x1FC); /* 0x360015D8: lea edx, [ebp - 0x1fc] */
   1193     PUSH32(esp, 0x361B2C54u); /* 0x360015DE: push 0x361b2c54 */
   1194     PUSH32(esp, edx); /* 0x360015E3: push edx */
   1195     RECOMP_ICALL(MEM32(0x3616F280)); /* 0x360015E4: call dword ptr [0x3616f280] */
   1196     RECOMP_FLAGS_IN();
   1197     SET_LO8(eax, MEM8(ebp + (-0x15C))); /* 0x360015EA: mov al, byte ptr [ebp - 0x15c] */
   1198     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1200     esp = esp + 0x14u; /* 0x360015F0: add esp, 0x14 */
   1201     _flag_k = FK_ADD;
   1202     /* test LO8(eax), LO8(eax) */ /* 0x360015F3: test al, al */
   1203     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1204     _cf = 0;
   1205     _flag_k = FK_NARROW(FK_TEST, 24);
   1206     RECOMP_BACKEDGE();
   1207     if (TEST_Z(_flag_a, _flag_b)) goto L_36001552; /* 0x360015F5: je 0x36001552 */
   1208 L_360015FB:
   1209     /* cmp LO8(eax), 0xAu */ /* 0x360015FB: cmp al, 0xa */
   1210     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xAu) << 24;
   1211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1212     _flag_k = FK_NARROW(FK_CMP, 24);
   1213     RECOMP_BACKEDGE();
   1214     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x360015FD: je 0x36001552 */
   1215 L_36001603:
   1216     /* cmp LO8(eax), 0x2Fu */ /* 0x36001603: cmp al, 0x2f */
   1217     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x2Fu) << 24;
   1218     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1219     _flag_k = FK_NARROW(FK_CMP, 24);
   1220     RECOMP_BACKEDGE();
   1221     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x36001605: je 0x36001552 */
   1222 L_3600160B:
   1223     /* cmp LO8(eax), 0x23u */ /* 0x3600160B: cmp al, 0x23 */
   1224     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x23u) << 24;
   1225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1226     _flag_k = FK_NARROW(FK_CMP, 24);
   1227     RECOMP_BACKEDGE();
   1228     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x3600160D: je 0x36001552 */
   1229 L_36001613:
   1230     eax = ebp + (-0x15C); /* 0x36001613: lea eax, [ebp - 0x15c] */
   1231     PUSH32(esp, eax); /* 0x36001619: push eax */
   1232     RECOMP_ICALL(ebx); /* 0x3600161A: call ebx */
   1233     RECOMP_FLAGS_IN();
   1234     ecx = ebp + (-0x10C); /* 0x3600161C: lea ecx, [ebp - 0x10c] */
   1235     PUSH32(esp, ecx); /* 0x36001622: push ecx */
   1236     esi = eax; /* 0x36001623: mov esi, eax */
   1237     RECOMP_ICALL(ebx); /* 0x36001625: call ebx */
   1238     RECOMP_FLAGS_IN();
   1239     edx = ebp + (-0xBC); /* 0x36001627: lea edx, [ebp - 0xbc] */
   1240     PUSH32(esp, edx); /* 0x3600162D: push edx */
   1241     edi = eax; /* 0x3600162E: mov edi, eax */
   1242     RECOMP_ICALL(MEM32(0x3616F270)); /* 0x36001630: call dword ptr [0x3616f270] */
   1243     RECOMP_FLAGS_IN();
   1244     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36001636: fstp dword ptr [ebp - 0x10] */
   1245     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1247     esp = esp + 0xCu; /* 0x36001639: add esp, 0xc */
   1248     _flag_k = FK_ADD;
   1249     eax = ebp + (-0x24); /* 0x3600163C: lea eax, [ebp - 0x24] */
   1250     PUSH32(esp, eax); /* 0x3600163F: push eax */
   1251     ecx = ebp + (-0x6C); /* 0x36001640: lea ecx, [ebp - 0x6c] */
   1252     PUSH32(esp, ecx); /* 0x36001643: push ecx */
   1253     ecx = MEM32(ebp + (-0x18)); /* 0x36001644: mov ecx, dword ptr [ebp - 0x18] */
   1254     MEM32(ebp + (-0x24)) = esi; /* 0x36001647: mov dword ptr [ebp - 0x24], esi */
   1255     MEM32(ebp + (-0x20)) = edi; /* 0x3600164A: mov dword ptr [ebp - 0x20], edi */
   1256     MEM32(ebp + (-0x1C)) = 0; /* 0x3600164D: mov dword ptr [ebp - 0x1c], 0 */
   1257     RECOMP_ICALL(0x360017C0u); /* 0x36001654: call 0x360017c0 */ /* not lifted */
   1258     RECOMP_FLAGS_IN();
   1259     edx = eax; /* 0x36001659: mov edx, eax */
   1260     eax = MEM32(edx); /* 0x3600165B: mov eax, dword ptr [edx] */
   1261     ecx = MEM32(edx + 0x4); /* 0x3600165D: mov ecx, dword ptr [edx + 4] */
   1262     edx = MEM32(ebp + (-0x10)); /* 0x36001660: mov edx, dword ptr [ebp - 0x10] */
   1263     MEM32(ebp + (-0x60)) = ecx; /* 0x36001663: mov dword ptr [ebp - 0x60], ecx */
   1264     MEM32(eax + 0x14) = edx; /* 0x36001666: mov dword ptr [eax + 0x14], edx */
   1265     RECOMP_BACKEDGE();
   1266     goto L_36001552; /* 0x36001669: jmp 0x36001552 */
   1267 L_3600166E:
   1268     ecx = ebp + (-0x5C); /* 0x3600166E: lea ecx, [ebp - 0x5c] */
   1269     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36001671: mov byte ptr [ebp - 4], 0 */
   1270     RECOMP_ICALL(MEM32(0x3616FA60)); /* 0x36001675: call dword ptr [0x3616fa60] */
   1271     RECOMP_FLAGS_IN();
   1272     ecx = ebp + (-0x3C); /* 0x3600167B: lea ecx, [ebp - 0x3c] */
   1273     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3600167E: mov dword ptr [ebp - 4], 0xffffffff */
   1274     RECOMP_ICALL(MEM32(0x3616FA04)); /* 0x36001685: call dword ptr [0x3616fa04] */
   1275     RECOMP_FLAGS_IN();
   1276     ecx = MEM32(ebp + (-0xC)); /* 0x3600168B: mov ecx, dword ptr [ebp - 0xc] */
   1277     edi = POP32_VAL(esp); /* 0x3600168E: pop edi */
   1278     ebx = POP32_VAL(esp); /* 0x3600168F: pop ebx */
   1279     esi = POP32_VAL(esp); /* 0x36001690: pop esi */
   1280     MEM32(FS_BASE + (0)) = ecx; /* 0x36001691: mov dword ptr fs:[0], ecx */
   1281     esp = ebp; /* 0x36001698: mov esp, ebp */
   1282     ebp = POP32_VAL(esp); /* 0x3600169A: pop ebp */
   1283     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600169B: ret  */
   1284     RECOMP_REGS_OUT();
   1285 }
   1286 
   1287 void sub_36001555(void) {
   1288     int _fpu_cmp = 0;
   1289     uint32_t _cf = 0;
   1290     int _df = 1;
   1291     uint32_t _flag_k = FK_NONE;
   1292     uint32_t _flag_a = 0, _flag_b = 0;
   1293     uint32_t _itail_tgt = 0;
   1294     RECOMP_REGS_LOCALS
   1295     RECOMP_ENTER(0x36001555u);
   1296 
   1297     goto L_36001555;
   1298 L_36001552:
   1299     edi = MEM32(ebp + (-0x14)); /* 0x36001552: mov edi, dword ptr [ebp - 0x14] */
   1300 L_36001555:
   1301     ecx = ebp + (-0x5C); /* 0x36001555: lea ecx, [ebp - 0x5c] */
   1302     RECOMP_ICALL(MEM32(0x3616FA3C)); /* 0x36001558: call dword ptr [0x3616fa3c] */
   1303     RECOMP_FLAGS_IN();
   1304     /* cmp eax, edi */ /* 0x3600155E: cmp eax, edi */
   1305     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1307     _flag_k = FK_CMP;
   1308     if (CMP_GE(_flag_a, _flag_b)) goto L_3600166E; /* 0x36001560: jge 0x3600166e */
   1309 L_36001566:
   1310     PUSH32(esp, 0xAu); /* 0x36001566: push 0xa */
   1311     PUSH32(esp, 0xA0u); /* 0x36001568: push 0xa0 */
   1312     ecx = ebp + (-0x1FC); /* 0x3600156D: lea ecx, [ebp - 0x1fc] */
   1313     PUSH32(esp, ecx); /* 0x36001573: push ecx */
   1314     ecx = ebp + (-0x5C); /* 0x36001574: lea ecx, [ebp - 0x5c] */
   1315     RECOMP_ICALL(MEM32(0x3616FA64)); /* 0x36001577: call dword ptr [0x3616fa64] */
   1316     RECOMP_FLAGS_IN();
   1317     /* test eax, eax */ /* 0x3600157D: test eax, eax */
   1318     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1319     _cf = 0;
   1320     _flag_k = FK_TEST;
   1321     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600166E; /* 0x3600157F: jne 0x3600166e */
   1322 L_36001585:
   1323     MEM8(ebp + (-0x15C)) = (uint8_t)(LO8(eax)); /* 0x36001585: mov byte ptr [ebp - 0x15c], al */
   1324     ecx = 0x13u; /* 0x3600158B: mov ecx, 0x13 */
   1325     edi = ebp + (-0x15B); /* 0x36001590: lea edi, [ebp - 0x15b] */
   1326     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36001596: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1327     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x36001598: stosw word ptr es:[edi], ax */
   1328     MEM8(edi) = LO8(eax); edi += _df; /* 0x3600159A: stosb byte ptr es:[edi], al */
   1329     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1330     eax = 0; /* 0x3600159B: xor eax, eax */
   1331     _cf = 0;
   1332     _flag_k = FK_TEST;
   1333     MEM8(ebp + (-0x10C)) = (uint8_t)(0); /* 0x3600159D: mov byte ptr [ebp - 0x10c], 0 */
   1334     ecx = 0x13u; /* 0x360015A4: mov ecx, 0x13 */
   1335     edi = ebp + (-0x10B); /* 0x360015A9: lea edi, [ebp - 0x10b] */
   1336     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015AF: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1337     MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x360015B1: stosw word ptr es:[edi], ax */
   1338     MEM8(edi) = LO8(eax); edi += _df; /* 0x360015B3: stosb byte ptr es:[edi], al */
   1339     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1340     eax = 0; /* 0x360015B4: xor eax, eax */
   1341     _cf = 0;
   1342     _flag_k = FK_TEST;
   1343     ecx = 0x14u; /* 0x360015B6: mov ecx, 0x14 */
   1344     edi = ebp + (-0xBC); /* 0x360015BB: lea edi, [ebp - 0xbc] */
   1345     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360015C1: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; }
   1346     edx = ebp + (-0xBC); /* 0x360015C3: lea edx, [ebp - 0xbc] */
   1347     PUSH32(esp, edx); /* 0x360015C9: push edx */
   1348     eax = ebp + (-0x10C); /* 0x360015CA: lea eax, [ebp - 0x10c] */
   1349     PUSH32(esp, eax); /* 0x360015D0: push eax */
   1350     ecx = ebp + (-0x15C); /* 0x360015D1: lea ecx, [ebp - 0x15c] */
   1351     PUSH32(esp, ecx); /* 0x360015D7: push ecx */
   1352     edx = ebp + (-0x1FC); /* 0x360015D8: lea edx, [ebp - 0x1fc] */
   1353     PUSH32(esp, 0x361B2C54u); /* 0x360015DE: push 0x361b2c54 */
   1354     PUSH32(esp, edx); /* 0x360015E3: push edx */
   1355     RECOMP_ICALL(MEM32(0x3616F280)); /* 0x360015E4: call dword ptr [0x3616f280] */
   1356     RECOMP_FLAGS_IN();
   1357     SET_LO8(eax, MEM8(ebp + (-0x15C))); /* 0x360015EA: mov al, byte ptr [ebp - 0x15c] */
   1358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1360     esp = esp + 0x14u; /* 0x360015F0: add esp, 0x14 */
   1361     _flag_k = FK_ADD;
   1362     /* test LO8(eax), LO8(eax) */ /* 0x360015F3: test al, al */
   1363     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1364     _cf = 0;
   1365     _flag_k = FK_NARROW(FK_TEST, 24);
   1366     RECOMP_BACKEDGE();
   1367     if (TEST_Z(_flag_a, _flag_b)) goto L_36001552; /* 0x360015F5: je 0x36001552 */
   1368 L_360015FB:
   1369     /* cmp LO8(eax), 0xAu */ /* 0x360015FB: cmp al, 0xa */
   1370     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xAu) << 24;
   1371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1372     _flag_k = FK_NARROW(FK_CMP, 24);
   1373     RECOMP_BACKEDGE();
   1374     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x360015FD: je 0x36001552 */
   1375 L_36001603:
   1376     /* cmp LO8(eax), 0x2Fu */ /* 0x36001603: cmp al, 0x2f */
   1377     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x2Fu) << 24;
   1378     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1379     _flag_k = FK_NARROW(FK_CMP, 24);
   1380     RECOMP_BACKEDGE();
   1381     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x36001605: je 0x36001552 */
   1382 L_3600160B:
   1383     /* cmp LO8(eax), 0x23u */ /* 0x3600160B: cmp al, 0x23 */
   1384     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x23u) << 24;
   1385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1386     _flag_k = FK_NARROW(FK_CMP, 24);
   1387     RECOMP_BACKEDGE();
   1388     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001552; /* 0x3600160D: je 0x36001552 */
   1389 L_36001613:
   1390     eax = ebp + (-0x15C); /* 0x36001613: lea eax, [ebp - 0x15c] */
   1391     PUSH32(esp, eax); /* 0x36001619: push eax */
   1392     RECOMP_ICALL(ebx); /* 0x3600161A: call ebx */
   1393     RECOMP_FLAGS_IN();
   1394     ecx = ebp + (-0x10C); /* 0x3600161C: lea ecx, [ebp - 0x10c] */
   1395     PUSH32(esp, ecx); /* 0x36001622: push ecx */
   1396     esi = eax; /* 0x36001623: mov esi, eax */
   1397     RECOMP_ICALL(ebx); /* 0x36001625: call ebx */
   1398     RECOMP_FLAGS_IN();
   1399     edx = ebp + (-0xBC); /* 0x36001627: lea edx, [ebp - 0xbc] */
   1400     PUSH32(esp, edx); /* 0x3600162D: push edx */
   1401     edi = eax; /* 0x3600162E: mov edi, eax */
   1402     RECOMP_ICALL(MEM32(0x3616F270)); /* 0x36001630: call dword ptr [0x3616f270] */
   1403     RECOMP_FLAGS_IN();
   1404     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36001636: fstp dword ptr [ebp - 0x10] */
   1405     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1406     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1407     esp = esp + 0xCu; /* 0x36001639: add esp, 0xc */
   1408     _flag_k = FK_ADD;
   1409     eax = ebp + (-0x24); /* 0x3600163C: lea eax, [ebp - 0x24] */
   1410     PUSH32(esp, eax); /* 0x3600163F: push eax */
   1411     ecx = ebp + (-0x6C); /* 0x36001640: lea ecx, [ebp - 0x6c] */
   1412     PUSH32(esp, ecx); /* 0x36001643: push ecx */
   1413     ecx = MEM32(ebp + (-0x18)); /* 0x36001644: mov ecx, dword ptr [ebp - 0x18] */
   1414     MEM32(ebp + (-0x24)) = esi; /* 0x36001647: mov dword ptr [ebp - 0x24], esi */
   1415     MEM32(ebp + (-0x20)) = edi; /* 0x3600164A: mov dword ptr [ebp - 0x20], edi */
   1416     MEM32(ebp + (-0x1C)) = 0; /* 0x3600164D: mov dword ptr [ebp - 0x1c], 0 */
   1417     RECOMP_ICALL(0x360017C0u); /* 0x36001654: call 0x360017c0 */ /* not lifted */
   1418     RECOMP_FLAGS_IN();
   1419     edx = eax; /* 0x36001659: mov edx, eax */
   1420     eax = MEM32(edx); /* 0x3600165B: mov eax, dword ptr [edx] */
   1421     ecx = MEM32(edx + 0x4); /* 0x3600165D: mov ecx, dword ptr [edx + 4] */
   1422     edx = MEM32(ebp + (-0x10)); /* 0x36001660: mov edx, dword ptr [ebp - 0x10] */
   1423     MEM32(ebp + (-0x60)) = ecx; /* 0x36001663: mov dword ptr [ebp - 0x60], ecx */
   1424     MEM32(eax + 0x14) = edx; /* 0x36001666: mov dword ptr [eax + 0x14], edx */
   1425     RECOMP_BACKEDGE();
   1426     goto L_36001552; /* 0x36001669: jmp 0x36001552 */
   1427 L_3600166E:
   1428     ecx = ebp + (-0x5C); /* 0x3600166E: lea ecx, [ebp - 0x5c] */
   1429     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36001671: mov byte ptr [ebp - 4], 0 */
   1430     RECOMP_ICALL(MEM32(0x3616FA60)); /* 0x36001675: call dword ptr [0x3616fa60] */
   1431     RECOMP_FLAGS_IN();
   1432     ecx = ebp + (-0x3C); /* 0x3600167B: lea ecx, [ebp - 0x3c] */
   1433     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3600167E: mov dword ptr [ebp - 4], 0xffffffff */
   1434     RECOMP_ICALL(MEM32(0x3616FA04)); /* 0x36001685: call dword ptr [0x3616fa04] */
   1435     RECOMP_FLAGS_IN();
   1436     ecx = MEM32(ebp + (-0xC)); /* 0x3600168B: mov ecx, dword ptr [ebp - 0xc] */
   1437     edi = POP32_VAL(esp); /* 0x3600168E: pop edi */
   1438     ebx = POP32_VAL(esp); /* 0x3600168F: pop ebx */
   1439     esi = POP32_VAL(esp); /* 0x36001690: pop esi */
   1440     MEM32(FS_BASE + (0)) = ecx; /* 0x36001691: mov dword ptr fs:[0], ecx */
   1441     esp = ebp; /* 0x36001698: mov esp, ebp */
   1442     ebp = POP32_VAL(esp); /* 0x3600169A: pop ebp */
   1443     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600169B: ret  */
   1444     RECOMP_REGS_OUT();
   1445 }
   1446 
   1447 void sub_360016A0(void) {
   1448     int _fpu_cmp = 0;
   1449     uint32_t _cf = 0;
   1450     int _df = 1;
   1451     uint32_t _flag_k = FK_NONE;
   1452     uint32_t _flag_a = 0, _flag_b = 0;
   1453     uint32_t _itail_tgt = 0;
   1454     RECOMP_REGS_LOCALS
   1455     RECOMP_ENTER(0x360016A0u);
   1456 
   1457 L_360016A0:
   1458     PUSH32(esp, ebp); /* 0x360016A0: push ebp */
   1459     ebp = esp; /* 0x360016A1: mov ebp, esp */
   1460     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1462     esp = esp - 8; /* 0x360016A3: sub esp, 8 */
   1463     _flag_k = FK_CMP;
   1464     eax = MEM32(ebp + 0x8); /* 0x360016A6: mov eax, dword ptr [ebp + 8] */
   1465     PUSH32(esp, esi); /* 0x360016A9: push esi */
   1466     esi = ecx; /* 0x360016AA: mov esi, ecx */
   1467     ecx = MEM32(ebp + 0xC); /* 0x360016AC: mov ecx, dword ptr [ebp + 0xc] */
   1468     edx = ebp + (-0x8); /* 0x360016AF: lea edx, [ebp - 8] */
   1469     MEM32(ebp + (-0x4)) = ecx; /* 0x360016B2: mov dword ptr [ebp - 4], ecx */
   1470     PUSH32(esp, edx); /* 0x360016B5: push edx */
   1471     ecx = esi; /* 0x360016B6: mov ecx, esi */
   1472     MEM32(ebp + (-0x8)) = eax; /* 0x360016B8: mov dword ptr [ebp - 8], eax */
   1473     RECOMP_ICALL(0x36001CB0u); /* 0x360016BB: call 0x36001cb0 */ /* not lifted */
   1474     RECOMP_FLAGS_IN();
   1475     /* cmp eax, MEM32(esi + 0x4) */ /* 0x360016C0: cmp eax, dword ptr [esi + 4] */
   1476     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   1477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1478     _flag_k = FK_CMP;
   1479     MEM32(ebp + 0x8) = eax; /* 0x360016C3: mov dword ptr [ebp + 8], eax */
   1480     if (CMP_EQ(_flag_a, _flag_b)) goto L_360016E1; /* 0x360016C6: je 0x360016e1 */
   1481 L_360016C8:
   1482     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1483     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1484     eax = eax + 0xCu; /* 0x360016C8: add eax, 0xc */
   1485     _flag_k = FK_ADD;
   1486     PUSH32(esp, eax); /* 0x360016CB: push eax */
   1487     eax = ebp + (-0x8); /* 0x360016CC: lea eax, [ebp - 8] */
   1488     PUSH32(esp, eax); /* 0x360016CF: push eax */
   1489     RECOMP_ICALL(0x36001CF0u); /* 0x360016D0: call 0x36001cf0 */ /* not lifted */
   1490     RECOMP_FLAGS_IN();
   1491     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1492     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1493     esp = esp + 8; /* 0x360016D5: add esp, 8 */
   1494     _flag_k = FK_ADD;
   1495     /* test LO8(eax), LO8(eax) */ /* 0x360016D8: test al, al */
   1496     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1497     _cf = 0;
   1498     _flag_k = FK_NARROW(FK_TEST, 24);
   1499     if (TEST_NZ(_flag_a, _flag_b)) goto L_360016E1; /* 0x360016DA: jne 0x360016e1 */
   1500 L_360016DC:
   1501     eax = ebp + 0x8; /* 0x360016DC: lea eax, [ebp + 8] */
   1502     goto L_360016EC; /* 0x360016DF: jmp 0x360016ec */
   1503 L_360016E1:
   1504     ecx = ebp + 0xC; /* 0x360016E1: lea ecx, [ebp + 0xc] */
   1505     PUSH32(esp, ecx); /* 0x360016E4: push ecx */
   1506     ecx = esi; /* 0x360016E5: mov ecx, esi */
   1507     RECOMP_ICALL(0x360C5CB0u); /* 0x360016E7: call 0x360c5cb0 */ /* not lifted */
   1508     RECOMP_FLAGS_IN();
   1509 L_360016EC:
   1510     ecx = MEM32(esi + 0x4); /* 0x360016EC: mov ecx, dword ptr [esi + 4] */
   1511     eax = MEM32(eax); /* 0x360016EF: mov eax, dword ptr [eax] */
   1512     /* cmp eax, ecx */ /* 0x360016F1: cmp eax, ecx */
   1513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1515     _flag_k = FK_CMP;
   1516     esi = POP32_VAL(esp); /* 0x360016F3: pop esi */
   1517     if (CMP_NE(_flag_a, _flag_b)) goto L_36001702; /* 0x360016F4: jne 0x36001702 */
   1518 L_360016F6:
   1519     fp_push(*(float*)&MEM32(0x36170380)); /* 0x360016F6: fld dword ptr [0x36170380] */
   1520     esp = ebp; /* 0x360016FC: mov esp, ebp */
   1521     ebp = POP32_VAL(esp); /* 0x360016FE: pop ebp */
   1522     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360016FF: ret 8 */
   1523 L_36001702:
   1524     fp_push(*(float*)&MEM32(eax + 0x14)); /* 0x36001702: fld dword ptr [eax + 0x14] */
   1525     esp = ebp; /* 0x36001705: mov esp, ebp */
   1526     ebp = POP32_VAL(esp); /* 0x36001707: pop ebp */
   1527     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36001708: ret 8 */
   1528     RECOMP_REGS_OUT();
   1529 }
   1530 
   1531 void sub_36001710(void) {
   1532     int _fpu_cmp = 0;
   1533     uint32_t _cf = 0;
   1534     int _df = 1;
   1535     uint32_t _flag_k = FK_NONE;
   1536     uint32_t _flag_a = 0, _flag_b = 0;
   1537     uint32_t _itail_tgt = 0;
   1538     RECOMP_REGS_LOCALS
   1539     RECOMP_ENTER(0x36001710u);
   1540 
   1541 L_36001710:
   1542     PUSH32(esp, ebp); /* 0x36001710: push ebp */
   1543     ebp = esp; /* 0x36001711: mov ebp, esp */
   1544     PUSH32(esp, ebx); /* 0x36001713: push ebx */
   1545     ebx = MEM32(ebp + 0x10); /* 0x36001714: mov ebx, dword ptr [ebp + 0x10] */
   1546     PUSH32(esp, esi); /* 0x36001717: push esi */
   1547     esi = ecx; /* 0x36001718: mov esi, ecx */
   1548     eax = MEM32(esi + 0x10); /* 0x3600171A: mov eax, dword ptr [esi + 0x10] */
   1549     /* test eax, eax */ /* 0x3600171D: test eax, eax */
   1550     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1551     _cf = 0;
   1552     _flag_k = FK_TEST;
   1553     ecx = MEM32(ebp + 0xC); /* 0x3600171F: mov ecx, dword ptr [ebp + 0xc] */
   1554     PUSH32(esp, edi); /* 0x36001722: push edi */
   1555     if (TEST_Z(_flag_a, _flag_b)) goto L_36001785; /* 0x36001723: je 0x36001785 */
   1556 L_36001725:
   1557     eax = MEM32(esi + 0x4); /* 0x36001725: mov eax, dword ptr [esi + 4] */
   1558     /* cmp ecx, MEM32(eax) */ /* 0x36001728: cmp ecx, dword ptr [eax] */
   1559     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax));
   1560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1561     _flag_k = FK_CMP;
   1562     if (CMP_NE(_flag_a, _flag_b)) goto L_36001785; /* 0x3600172A: jne 0x36001785 */
   1563 L_3600172C:
   1564     /* cmp ebx, eax */ /* 0x3600172C: cmp ebx, eax */
   1565     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   1566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1567     _flag_k = FK_CMP;
   1568     if (CMP_NE(_flag_a, _flag_b)) goto L_36001785; /* 0x3600172E: jne 0x36001785 */
   1569 L_36001730:
   1570     ebx = MEM32(eax + 0x4); /* 0x36001730: mov ebx, dword ptr [eax + 4] */
   1571     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36001733: cmp ebx, dword ptr [esi + 8] */
   1572     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1574     _flag_k = FK_CMP;
   1575     edi = ebx; /* 0x36001736: mov edi, ebx */
   1576     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001759; /* 0x36001738: je 0x36001759 */
   1577 L_3600173A:
   1578     eax = MEM32(edi + 0x8); /* 0x3600173A: mov eax, dword ptr [edi + 8] */
   1579     PUSH32(esp, eax); /* 0x3600173D: push eax */
   1580     ecx = esi; /* 0x3600173E: mov ecx, esi */
   1581     RECOMP_ICALL(0x36001A20u); /* 0x36001740: call 0x36001a20 */ /* not lifted */
   1582     RECOMP_FLAGS_IN();
   1583     edi = MEM32(edi); /* 0x36001745: mov edi, dword ptr [edi] */
   1584     PUSH32(esp, ebx); /* 0x36001747: push ebx */
   1585     RECOMP_ICALL(0x3615FCC4u); /* 0x36001748: call 0x3615fcc4 */ /* not lifted */
   1586     RECOMP_FLAGS_IN();
   1587     eax = MEM32(esi + 0x8); /* 0x3600174D: mov eax, dword ptr [esi + 8] */
   1588     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1589     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1590     esp = esp + 4; /* 0x36001750: add esp, 4 */
   1591     _flag_k = FK_ADD;
   1592     /* cmp edi, eax */ /* 0x36001753: cmp edi, eax */
   1593     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1595     _flag_k = FK_CMP;
   1596     ebx = edi; /* 0x36001755: mov ebx, edi */
   1597     RECOMP_BACKEDGE();
   1598     if (CMP_NE(_flag_a, _flag_b)) goto L_3600173A; /* 0x36001757: jne 0x3600173a */
   1599 L_36001759:
   1600     ecx = MEM32(esi + 0x4); /* 0x36001759: mov ecx, dword ptr [esi + 4] */
   1601     edx = MEM32(esi + 0x8); /* 0x3600175C: mov edx, dword ptr [esi + 8] */
   1602     MEM32(ecx + 0x4) = edx; /* 0x3600175F: mov dword ptr [ecx + 4], edx */
   1603     eax = MEM32(esi + 0x4); /* 0x36001762: mov eax, dword ptr [esi + 4] */
   1604     MEM32(esi + 0x10) = 0; /* 0x36001765: mov dword ptr [esi + 0x10], 0 */
   1605     MEM32(eax) = eax; /* 0x3600176C: mov dword ptr [eax], eax */
   1606     eax = MEM32(esi + 0x4); /* 0x3600176E: mov eax, dword ptr [esi + 4] */
   1607     MEM32(eax + 0x8) = eax; /* 0x36001771: mov dword ptr [eax + 8], eax */
   1608     eax = MEM32(esi + 0x4); /* 0x36001774: mov eax, dword ptr [esi + 4] */
   1609     ecx = MEM32(eax); /* 0x36001777: mov ecx, dword ptr [eax] */
   1610     eax = MEM32(ebp + 0x8); /* 0x36001779: mov eax, dword ptr [ebp + 8] */
   1611     edi = POP32_VAL(esp); /* 0x3600177C: pop edi */
   1612     esi = POP32_VAL(esp); /* 0x3600177D: pop esi */
   1613     MEM32(eax) = ecx; /* 0x3600177E: mov dword ptr [eax], ecx */
   1614     ebx = POP32_VAL(esp); /* 0x36001780: pop ebx */
   1615     ebp = POP32_VAL(esp); /* 0x36001781: pop ebp */
   1616     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36001782: ret 0xc */
   1617 L_36001785:
   1618     /* cmp ecx, ebx */ /* 0x36001785: cmp ecx, ebx */
   1619     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1621     _flag_k = FK_CMP;
   1622     if (CMP_EQ(_flag_a, _flag_b)) goto L_360017A6; /* 0x36001787: je 0x360017a6 */
   1623 L_36001789:
   1624     edi = ecx; /* 0x36001789: mov edi, ecx */
   1625     ecx = ebp + 0xC; /* 0x3600178B: lea ecx, [ebp + 0xc] */
   1626     RECOMP_ICALL(0x36096C20u); /* 0x3600178E: call 0x36096c20 */ /* not lifted */
   1627     RECOMP_FLAGS_IN();
   1628     PUSH32(esp, edi); /* 0x36001793: push edi */
   1629     ecx = ebp + 0x10; /* 0x36001794: lea ecx, [ebp + 0x10] */
   1630     PUSH32(esp, ecx); /* 0x36001797: push ecx */
   1631     ecx = esi; /* 0x36001798: mov ecx, esi */
   1632     RECOMP_ICALL(0x3603ECC0u); /* 0x3600179A: call 0x3603ecc0 */ /* not lifted */
   1633     RECOMP_FLAGS_IN();
   1634     ecx = MEM32(ebp + 0xC); /* 0x3600179F: mov ecx, dword ptr [ebp + 0xc] */
   1635     /* cmp ecx, ebx */ /* 0x360017A2: cmp ecx, ebx */
   1636     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1637     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1638     _flag_k = FK_CMP;
   1639     RECOMP_BACKEDGE();
   1640     if (CMP_NE(_flag_a, _flag_b)) goto L_36001789; /* 0x360017A4: jne 0x36001789 */
   1641 L_360017A6:
   1642     eax = MEM32(ebp + 0x8); /* 0x360017A6: mov eax, dword ptr [ebp + 8] */
   1643     edi = POP32_VAL(esp); /* 0x360017A9: pop edi */
   1644     esi = POP32_VAL(esp); /* 0x360017AA: pop esi */
   1645     MEM32(eax) = ecx; /* 0x360017AB: mov dword ptr [eax], ecx */
   1646     ebx = POP32_VAL(esp); /* 0x360017AD: pop ebx */
   1647     ebp = POP32_VAL(esp); /* 0x360017AE: pop ebp */
   1648     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360017AF: ret 0xc */
   1649     RECOMP_REGS_OUT();
   1650 }
   1651 
   1652 void sub_360017C0(void) {
   1653     int _fpu_cmp = 0;
   1654     uint32_t _cf = 0;
   1655     int _df = 1;
   1656     uint32_t _flag_k = FK_NONE;
   1657     uint32_t _flag_a = 0, _flag_b = 0;
   1658     uint32_t _itail_tgt = 0;
   1659     RECOMP_REGS_LOCALS
   1660     RECOMP_ENTER(0x360017C0u);
   1661 
   1662 L_360017C0:
   1663     PUSH32(esp, ebp); /* 0x360017C0: push ebp */
   1664     ebp = esp; /* 0x360017C1: mov ebp, esp */
   1665     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1667     esp = esp - 0xCu; /* 0x360017C3: sub esp, 0xc */
   1668     _flag_k = FK_CMP;
   1669     PUSH32(esp, ebx); /* 0x360017C6: push ebx */
   1670     PUSH32(esp, esi); /* 0x360017C7: push esi */
   1671     PUSH32(esp, edi); /* 0x360017C8: push edi */
   1672     edi = ecx; /* 0x360017C9: mov edi, ecx */
   1673     esi = MEM32(edi + 0x4); /* 0x360017CB: mov esi, dword ptr [edi + 4] */
   1674     ebx = MEM32(esi + 0x4); /* 0x360017CE: mov ebx, dword ptr [esi + 4] */
   1675     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x360017D1: cmp ebx, dword ptr [edi + 8] */
   1676     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1678     _flag_k = FK_CMP;
   1679     SET_LO8(eax, 1); /* 0x360017D4: mov al, 1 */
   1680     if (CMP_EQ(_flag_a, _flag_b)) goto L_360017FA; /* 0x360017D6: je 0x360017fa */
   1681 L_360017D8:
   1682     ecx = MEM32(ebp + 0xC); /* 0x360017D8: mov ecx, dword ptr [ebp + 0xc] */
   1683     eax = ebx + 0xC; /* 0x360017DB: lea eax, [ebx + 0xc] */
   1684     PUSH32(esp, eax); /* 0x360017DE: push eax */
   1685     PUSH32(esp, ecx); /* 0x360017DF: push ecx */
   1686     esi = ebx; /* 0x360017E0: mov esi, ebx */
   1687     RECOMP_ICALL(0x36001CF0u); /* 0x360017E2: call 0x36001cf0 */ /* not lifted */
   1688     RECOMP_FLAGS_IN();
   1689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1691     esp = esp + 8; /* 0x360017E7: add esp, 8 */
   1692     _flag_k = FK_ADD;
   1693     /* test LO8(eax), LO8(eax) */ /* 0x360017EA: test al, al */
   1694     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1695     _cf = 0;
   1696     _flag_k = FK_NARROW(FK_TEST, 24);
   1697     if (TEST_Z(_flag_a, _flag_b)) goto L_360017F2; /* 0x360017EC: je 0x360017f2 */
   1698 L_360017EE:
   1699     ebx = MEM32(ebx); /* 0x360017EE: mov ebx, dword ptr [ebx] */
   1700     goto L_360017F5; /* 0x360017F0: jmp 0x360017f5 */
   1701 L_360017F2:
   1702     ebx = MEM32(ebx + 0x8); /* 0x360017F2: mov ebx, dword ptr [ebx + 8] */
   1703 L_360017F5:
   1704     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x360017F5: cmp ebx, dword ptr [edi + 8] */
   1705     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1707     _flag_k = FK_CMP;
   1708     RECOMP_BACKEDGE();
   1709     if (CMP_NE(_flag_a, _flag_b)) goto L_360017D8; /* 0x360017F8: jne 0x360017d8 */
   1710 L_360017FA:
   1711     SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x360017FA: mov cl, byte ptr [edi + 0xc] */
   1712     /* test LO8(ecx), LO8(ecx) */ /* 0x360017FD: test cl, cl */
   1713     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1714     _cf = 0;
   1715     _flag_k = FK_NARROW(FK_TEST, 24);
   1716     if (TEST_Z(_flag_a, _flag_b)) goto L_3600197F; /* 0x360017FF: je 0x3600197f */
   1717 L_36001805:
   1718     PUSH32(esp, 0); /* 0x36001805: push 0 */
   1719     PUSH32(esp, esi); /* 0x36001807: push esi */
   1720     ecx = edi; /* 0x36001808: mov ecx, edi */
   1721     RECOMP_ICALL(0x36094880u); /* 0x3600180A: call 0x36094880 */ /* not lifted */
   1722     RECOMP_FLAGS_IN();
   1723     edx = MEM32(edi + 0x8); /* 0x3600180F: mov edx, dword ptr [edi + 8] */
   1724     MEM32(eax) = edx; /* 0x36001812: mov dword ptr [eax], edx */
   1725     ecx = MEM32(edi + 0x8); /* 0x36001814: mov ecx, dword ptr [edi + 8] */
   1726     edx = MEM32(ebp + 0xC); /* 0x36001817: mov edx, dword ptr [ebp + 0xc] */
   1727     MEM32(ebp + (-0x4)) = eax; /* 0x3600181A: mov dword ptr [ebp - 4], eax */
   1728     MEM32(eax + 0x8) = ecx; /* 0x3600181D: mov dword ptr [eax + 8], ecx */
   1729     PUSH32(esp, edx); /* 0x36001820: push edx */
   1730     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1732     eax = eax + 0xCu; /* 0x36001821: add eax, 0xc */
   1733     _flag_k = FK_ADD;
   1734     PUSH32(esp, eax); /* 0x36001824: push eax */
   1735     RECOMP_ICALL(0x361473E0u); /* 0x36001825: call 0x361473e0 */ /* not lifted */
   1736     RECOMP_FLAGS_IN();
   1737     ecx = MEM32(edi + 0x10); /* 0x3600182A: mov ecx, dword ptr [edi + 0x10] */
   1738     eax = MEM32(edi + 0x4); /* 0x3600182D: mov eax, dword ptr [edi + 4] */
   1739     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1740     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1741     esp = esp + 8; /* 0x36001830: add esp, 8 */
   1742     _flag_k = FK_ADD;
   1743     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1744     ecx = ecx + 1; /* 0x36001833: inc ecx */
   1745     _flag_k = FK_INC;
   1746     /* cmp esi, eax */ /* 0x36001834: cmp esi, eax */
   1747     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1749     _flag_k = FK_CMP;
   1750     MEM32(edi + 0x10) = ecx; /* 0x36001836: mov dword ptr [edi + 0x10], ecx */
   1751     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001867; /* 0x36001839: je 0x36001867 */
   1752 L_3600183B:
   1753     /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3600183B: cmp ebx, dword ptr [edi + 8] */
   1754     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1756     _flag_k = FK_CMP;
   1757     if (CMP_NE(_flag_a, _flag_b)) goto L_36001867; /* 0x3600183E: jne 0x36001867 */
   1758 L_36001840:
   1759     ecx = MEM32(ebp + 0xC); /* 0x36001840: mov ecx, dword ptr [ebp + 0xc] */
   1760     eax = esi + 0xC; /* 0x36001843: lea eax, [esi + 0xc] */
   1761     PUSH32(esp, eax); /* 0x36001846: push eax */
   1762     PUSH32(esp, ecx); /* 0x36001847: push ecx */
   1763     RECOMP_ICALL(0x36001CF0u); /* 0x36001848: call 0x36001cf0 */ /* not lifted */
   1764     RECOMP_FLAGS_IN();
   1765     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1766     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1767     esp = esp + 8; /* 0x3600184D: add esp, 8 */
   1768     _flag_k = FK_ADD;
   1769     /* test LO8(eax), LO8(eax) */ /* 0x36001850: test al, al */
   1770     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1771     _cf = 0;
   1772     _flag_k = FK_NARROW(FK_TEST, 24);
   1773     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001867; /* 0x36001852: jne 0x36001867 */
   1774 L_36001854:
   1775     ebx = MEM32(ebp + (-0x4)); /* 0x36001854: mov ebx, dword ptr [ebp - 4] */
   1776     MEM32(esi + 0x8) = ebx; /* 0x36001857: mov dword ptr [esi + 8], ebx */
   1777     eax = MEM32(edi + 0x4); /* 0x3600185A: mov eax, dword ptr [edi + 4] */
   1778     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3600185D: cmp esi, dword ptr [eax + 8] */
   1779     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1781     _flag_k = FK_CMP;
   1782     if (CMP_NE(_flag_a, _flag_b)) goto L_3600188A; /* 0x36001860: jne 0x3600188a */
   1783 L_36001862:
   1784     MEM32(eax + 0x8) = ebx; /* 0x36001862: mov dword ptr [eax + 8], ebx */
   1785     goto L_3600188A; /* 0x36001865: jmp 0x3600188a */
   1786 L_36001867:
   1787     ecx = MEM32(ebp + (-0x4)); /* 0x36001867: mov ecx, dword ptr [ebp - 4] */
   1788     MEM32(esi) = ecx; /* 0x3600186A: mov dword ptr [esi], ecx */
   1789     eax = MEM32(edi + 0x4); /* 0x3600186C: mov eax, dword ptr [edi + 4] */
   1790     /* cmp esi, eax */ /* 0x3600186F: cmp esi, eax */
   1791     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1792     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1793     _flag_k = FK_CMP;
   1794     if (CMP_NE(_flag_a, _flag_b)) goto L_3600187E; /* 0x36001871: jne 0x3600187e */
   1795 L_36001873:
   1796     MEM32(eax + 0x4) = ecx; /* 0x36001873: mov dword ptr [eax + 4], ecx */
   1797     edx = MEM32(edi + 0x4); /* 0x36001876: mov edx, dword ptr [edi + 4] */
   1798     MEM32(edx + 0x8) = ecx; /* 0x36001879: mov dword ptr [edx + 8], ecx */
   1799     goto L_36001887; /* 0x3600187C: jmp 0x36001887 */
   1800 L_3600187E:
   1801     /* cmp esi, MEM32(eax) */ /* 0x3600187E: cmp esi, dword ptr [eax] */
   1802     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   1803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1804     _flag_k = FK_CMP;
   1805     if (CMP_NE(_flag_a, _flag_b)) goto L_36001887; /* 0x36001880: jne 0x36001887 */
   1806 L_36001882:
   1807     ecx = MEM32(ebp + (-0x4)); /* 0x36001882: mov ecx, dword ptr [ebp - 4] */
   1808     MEM32(eax) = ecx; /* 0x36001885: mov dword ptr [eax], ecx */
   1809 L_36001887:
   1810     ebx = MEM32(ebp + (-0x4)); /* 0x36001887: mov ebx, dword ptr [ebp - 4] */
   1811 L_3600188A:
   1812     edx = MEM32(edi + 0x4); /* 0x3600188A: mov edx, dword ptr [edi + 4] */
   1813     /* cmp ebx, MEM32(edx + 0x4) */ /* 0x3600188D: cmp ebx, dword ptr [edx + 4] */
   1814     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1815     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1816     _flag_k = FK_CMP;
   1817     esi = ebx; /* 0x36001890: mov esi, ebx */
   1818     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600195D; /* 0x36001892: je 0x3600195d */
   1819 L_36001898:
   1820     eax = MEM32(esi + 0x4); /* 0x36001898: mov eax, dword ptr [esi + 4] */
   1821     SET_LO8(ecx, MEM8(eax + 0x18)); /* 0x3600189B: mov cl, byte ptr [eax + 0x18] */
   1822     /* test LO8(ecx), LO8(ecx) */ /* 0x3600189E: test cl, cl */
   1823     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1824     _cf = 0;
   1825     _flag_k = FK_NARROW(FK_TEST, 24);
   1826     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600195D; /* 0x360018A0: jne 0x3600195d */
   1827 L_360018A6:
   1828     edx = MEM32(eax + 0x4); /* 0x360018A6: mov edx, dword ptr [eax + 4] */
   1829     ecx = MEM32(edx); /* 0x360018A9: mov ecx, dword ptr [edx] */
   1830     /* cmp eax, ecx */ /* 0x360018AB: cmp eax, ecx */
   1831     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1832     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1833     _flag_k = FK_CMP;
   1834     if (CMP_NE(_flag_a, _flag_b)) goto L_36001903; /* 0x360018AD: jne 0x36001903 */
   1835 L_360018AF:
   1836     ecx = MEM32(edx + 0x8); /* 0x360018AF: mov ecx, dword ptr [edx + 8] */
   1837     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360018B2: mov dl, byte ptr [ecx + 0x18] */
   1838     /* test LO8(edx), LO8(edx) */ /* 0x360018B5: test dl, dl */
   1839     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1840     _cf = 0;
   1841     _flag_k = FK_NARROW(FK_TEST, 24);
   1842     if (TEST_NZ(_flag_a, _flag_b)) goto L_360018D3; /* 0x360018B7: jne 0x360018d3 */
   1843 L_360018B9:
   1844     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x360018B9: mov byte ptr [eax + 0x18], 1 */
   1845     MEM8(ecx + 0x18) = (uint8_t)(1); /* 0x360018BD: mov byte ptr [ecx + 0x18], 1 */
   1846     eax = MEM32(esi + 0x4); /* 0x360018C1: mov eax, dword ptr [esi + 4] */
   1847     ecx = MEM32(eax + 0x4); /* 0x360018C4: mov ecx, dword ptr [eax + 4] */
   1848     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360018C7: mov byte ptr [ecx + 0x18], 0 */
   1849     edx = MEM32(esi + 0x4); /* 0x360018CB: mov edx, dword ptr [esi + 4] */
   1850     esi = MEM32(edx + 0x4); /* 0x360018CE: mov esi, dword ptr [edx + 4] */
   1851     goto L_36001951; /* 0x360018D1: jmp 0x36001951 */
   1852 L_360018D3:
   1853     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360018D3: cmp esi, dword ptr [eax + 8] */
   1854     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1855     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1856     _flag_k = FK_CMP;
   1857     if (CMP_NE(_flag_a, _flag_b)) goto L_360018E2; /* 0x360018D6: jne 0x360018e2 */
   1858 L_360018D8:
   1859     esi = eax; /* 0x360018D8: mov esi, eax */
   1860     PUSH32(esp, esi); /* 0x360018DA: push esi */
   1861     ecx = edi; /* 0x360018DB: mov ecx, edi */
   1862     RECOMP_ICALL(0x36096920u); /* 0x360018DD: call 0x36096920 */ /* not lifted */
   1863     RECOMP_FLAGS_IN();
   1864 L_360018E2:
   1865     eax = MEM32(esi + 0x4); /* 0x360018E2: mov eax, dword ptr [esi + 4] */
   1866     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x360018E5: mov byte ptr [eax + 0x18], 1 */
   1867     ecx = MEM32(esi + 0x4); /* 0x360018E9: mov ecx, dword ptr [esi + 4] */
   1868     edx = MEM32(ecx + 0x4); /* 0x360018EC: mov edx, dword ptr [ecx + 4] */
   1869     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360018EF: mov byte ptr [edx + 0x18], 0 */
   1870     eax = MEM32(esi + 0x4); /* 0x360018F3: mov eax, dword ptr [esi + 4] */
   1871     ecx = MEM32(eax + 0x4); /* 0x360018F6: mov ecx, dword ptr [eax + 4] */
   1872     PUSH32(esp, ecx); /* 0x360018F9: push ecx */
   1873     ecx = edi; /* 0x360018FA: mov ecx, edi */
   1874     RECOMP_ICALL(0x360B4260u); /* 0x360018FC: call 0x360b4260 */ /* not lifted */
   1875     RECOMP_FLAGS_IN();
   1876     goto L_36001951; /* 0x36001901: jmp 0x36001951 */
   1877 L_36001903:
   1878     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001903: mov dl, byte ptr [ecx + 0x18] */
   1879     /* test LO8(edx), LO8(edx) */ /* 0x36001906: test dl, dl */
   1880     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1881     _cf = 0;
   1882     _flag_k = FK_NARROW(FK_TEST, 24);
   1883     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001924; /* 0x36001908: jne 0x36001924 */
   1884 L_3600190A:
   1885     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x3600190A: mov byte ptr [eax + 0x18], 1 */
   1886     MEM8(ecx + 0x18) = (uint8_t)(1); /* 0x3600190E: mov byte ptr [ecx + 0x18], 1 */
   1887     edx = MEM32(esi + 0x4); /* 0x36001912: mov edx, dword ptr [esi + 4] */
   1888     eax = MEM32(edx + 0x4); /* 0x36001915: mov eax, dword ptr [edx + 4] */
   1889     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x36001918: mov byte ptr [eax + 0x18], 0 */
   1890     ecx = MEM32(esi + 0x4); /* 0x3600191C: mov ecx, dword ptr [esi + 4] */
   1891     esi = MEM32(ecx + 0x4); /* 0x3600191F: mov esi, dword ptr [ecx + 4] */
   1892     goto L_36001951; /* 0x36001922: jmp 0x36001951 */
   1893 L_36001924:
   1894     /* cmp esi, MEM32(eax) */ /* 0x36001924: cmp esi, dword ptr [eax] */
   1895     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax));
   1896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1897     _flag_k = FK_CMP;
   1898     if (CMP_NE(_flag_a, _flag_b)) goto L_36001932; /* 0x36001926: jne 0x36001932 */
   1899 L_36001928:
   1900     esi = eax; /* 0x36001928: mov esi, eax */
   1901     PUSH32(esp, esi); /* 0x3600192A: push esi */
   1902     ecx = edi; /* 0x3600192B: mov ecx, edi */
   1903     RECOMP_ICALL(0x360B4260u); /* 0x3600192D: call 0x360b4260 */ /* not lifted */
   1904     RECOMP_FLAGS_IN();
   1905 L_36001932:
   1906     edx = MEM32(esi + 0x4); /* 0x36001932: mov edx, dword ptr [esi + 4] */
   1907     MEM8(edx + 0x18) = (uint8_t)(1); /* 0x36001935: mov byte ptr [edx + 0x18], 1 */
   1908     eax = MEM32(esi + 0x4); /* 0x36001939: mov eax, dword ptr [esi + 4] */
   1909     ecx = MEM32(eax + 0x4); /* 0x3600193C: mov ecx, dword ptr [eax + 4] */
   1910     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x3600193F: mov byte ptr [ecx + 0x18], 0 */
   1911     edx = MEM32(esi + 0x4); /* 0x36001943: mov edx, dword ptr [esi + 4] */
   1912     eax = MEM32(edx + 0x4); /* 0x36001946: mov eax, dword ptr [edx + 4] */
   1913     PUSH32(esp, eax); /* 0x36001949: push eax */
   1914     ecx = edi; /* 0x3600194A: mov ecx, edi */
   1915     RECOMP_ICALL(0x36096920u); /* 0x3600194C: call 0x36096920 */ /* not lifted */
   1916     RECOMP_FLAGS_IN();
   1917 L_36001951:
   1918     ecx = MEM32(edi + 0x4); /* 0x36001951: mov ecx, dword ptr [edi + 4] */
   1919     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x36001954: cmp esi, dword ptr [ecx + 4] */
   1920     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1922     _flag_k = FK_CMP;
   1923     RECOMP_BACKEDGE();
   1924     if (CMP_NE(_flag_a, _flag_b)) goto L_36001898; /* 0x36001957: jne 0x36001898 */
   1925 L_3600195D:
   1926     edx = MEM32(edi + 0x4); /* 0x3600195D: mov edx, dword ptr [edi + 4] */
   1927     eax = MEM32(edx + 0x4); /* 0x36001960: mov eax, dword ptr [edx + 4] */
   1928     MEM8(eax + 0x18) = (uint8_t)(1); /* 0x36001963: mov byte ptr [eax + 0x18], 1 */
   1929     eax = MEM32(ebp + 0x8); /* 0x36001967: mov eax, dword ptr [ebp + 8] */
   1930     edi = POP32_VAL(esp); /* 0x3600196A: pop edi */
   1931     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x3600196B: mov byte ptr [ebp - 8], 1 */
   1932     ecx = MEM32(ebp + (-0x8)); /* 0x3600196F: mov ecx, dword ptr [ebp - 8] */
   1933     MEM32(eax) = ebx; /* 0x36001972: mov dword ptr [eax], ebx */
   1934     esi = POP32_VAL(esp); /* 0x36001974: pop esi */
   1935     MEM32(eax + 0x4) = ecx; /* 0x36001975: mov dword ptr [eax + 4], ecx */
   1936     ebx = POP32_VAL(esp); /* 0x36001978: pop ebx */
   1937     esp = ebp; /* 0x36001979: mov esp, ebp */
   1938     ebp = POP32_VAL(esp); /* 0x3600197B: pop ebp */
   1939     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3600197C: ret 8 */
   1940 L_3600197F:
   1941     /* test LO8(eax), LO8(eax) */ /* 0x3600197F: test al, al */
   1942     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1943     _cf = 0;
   1944     _flag_k = FK_NARROW(FK_TEST, 24);
   1945     MEM32(ebp + (-0x8)) = esi; /* 0x36001981: mov dword ptr [ebp - 8], esi */
   1946     if (TEST_Z(_flag_a, _flag_b)) goto L_360019C0; /* 0x36001984: je 0x360019c0 */
   1947 L_36001986:
   1948     edx = MEM32(edi + 0x4); /* 0x36001986: mov edx, dword ptr [edi + 4] */
   1949     /* cmp esi, MEM32(edx) */ /* 0x36001989: cmp esi, dword ptr [edx] */
   1950     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx));
   1951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1952     _flag_k = FK_CMP;
   1953     if (CMP_NE(_flag_a, _flag_b)) goto L_360019B8; /* 0x3600198B: jne 0x360019b8 */
   1954 L_3600198D:
   1955     eax = MEM32(ebp + 0xC); /* 0x3600198D: mov eax, dword ptr [ebp + 0xc] */
   1956     PUSH32(esp, eax); /* 0x36001990: push eax */
   1957     PUSH32(esp, esi); /* 0x36001991: push esi */
   1958     PUSH32(esp, ebx); /* 0x36001992: push ebx */
   1959     ecx = ebp + 0xC; /* 0x36001993: lea ecx, [ebp + 0xc] */
   1960     PUSH32(esp, ecx); /* 0x36001996: push ecx */
   1961     ecx = edi; /* 0x36001997: mov ecx, edi */
   1962     RECOMP_ICALL(0x36001A60u); /* 0x36001999: call 0x36001a60 */ /* not lifted */
   1963     RECOMP_FLAGS_IN();
   1964     ecx = MEM32(eax); /* 0x3600199E: mov ecx, dword ptr [eax] */
   1965     eax = MEM32(ebp + 0x8); /* 0x360019A0: mov eax, dword ptr [ebp + 8] */
   1966     edi = POP32_VAL(esp); /* 0x360019A3: pop edi */
   1967     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x360019A4: mov byte ptr [ebp - 8], 1 */
   1968     edx = MEM32(ebp + (-0x8)); /* 0x360019A8: mov edx, dword ptr [ebp - 8] */
   1969     esi = POP32_VAL(esp); /* 0x360019AB: pop esi */
   1970     MEM32(eax) = ecx; /* 0x360019AC: mov dword ptr [eax], ecx */
   1971     MEM32(eax + 0x4) = edx; /* 0x360019AE: mov dword ptr [eax + 4], edx */
   1972     ebx = POP32_VAL(esp); /* 0x360019B1: pop ebx */
   1973     esp = ebp; /* 0x360019B2: mov esp, ebp */
   1974     ebp = POP32_VAL(esp); /* 0x360019B4: pop ebp */
   1975     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360019B5: ret 8 */
   1976 L_360019B8:
   1977     ecx = ebp + (-0x8); /* 0x360019B8: lea ecx, [ebp - 8] */
   1978     RECOMP_ICALL(0x3603F800u); /* 0x360019BB: call 0x3603f800 */ /* not lifted */
   1979     RECOMP_FLAGS_IN();
   1980 L_360019C0:
   1981     eax = MEM32(ebp + (-0x8)); /* 0x360019C0: mov eax, dword ptr [ebp - 8] */
   1982     ecx = MEM32(ebp + 0xC); /* 0x360019C3: mov ecx, dword ptr [ebp + 0xc] */
   1983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   1984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1985     eax = eax + 0xCu; /* 0x360019C6: add eax, 0xc */
   1986     _flag_k = FK_ADD;
   1987     PUSH32(esp, ecx); /* 0x360019C9: push ecx */
   1988     PUSH32(esp, eax); /* 0x360019CA: push eax */
   1989     RECOMP_ICALL(0x36001CF0u); /* 0x360019CB: call 0x36001cf0 */ /* not lifted */
   1990     RECOMP_FLAGS_IN();
   1991     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1992     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1993     esp = esp + 8; /* 0x360019D0: add esp, 8 */
   1994     _flag_k = FK_ADD;
   1995     /* test LO8(eax), LO8(eax) */ /* 0x360019D3: test al, al */
   1996     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1997     _cf = 0;
   1998     _flag_k = FK_NARROW(FK_TEST, 24);
   1999     if (TEST_Z(_flag_a, _flag_b)) goto L_36001A02; /* 0x360019D5: je 0x36001a02 */
   2000 L_360019D7:
   2001     edx = MEM32(ebp + 0xC); /* 0x360019D7: mov edx, dword ptr [ebp + 0xc] */
   2002     PUSH32(esp, edx); /* 0x360019DA: push edx */
   2003     PUSH32(esp, esi); /* 0x360019DB: push esi */
   2004     PUSH32(esp, ebx); /* 0x360019DC: push ebx */
   2005     eax = ebp + 0xC; /* 0x360019DD: lea eax, [ebp + 0xc] */
   2006     PUSH32(esp, eax); /* 0x360019E0: push eax */
   2007     ecx = edi; /* 0x360019E1: mov ecx, edi */
   2008     RECOMP_ICALL(0x36001A60u); /* 0x360019E3: call 0x36001a60 */ /* not lifted */
   2009     RECOMP_FLAGS_IN();
   2010     ecx = MEM32(eax); /* 0x360019E8: mov ecx, dword ptr [eax] */
   2011     eax = MEM32(ebp + 0x8); /* 0x360019EA: mov eax, dword ptr [ebp + 8] */
   2012     edi = POP32_VAL(esp); /* 0x360019ED: pop edi */
   2013     MEM32(eax) = ecx; /* 0x360019EE: mov dword ptr [eax], ecx */
   2014     MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x360019F0: mov byte ptr [ebp - 8], 1 */
   2015     ecx = MEM32(ebp + (-0x8)); /* 0x360019F4: mov ecx, dword ptr [ebp - 8] */
   2016     esi = POP32_VAL(esp); /* 0x360019F7: pop esi */
   2017     MEM32(eax + 0x4) = ecx; /* 0x360019F8: mov dword ptr [eax + 4], ecx */
   2018     ebx = POP32_VAL(esp); /* 0x360019FB: pop ebx */
   2019     esp = ebp; /* 0x360019FC: mov esp, ebp */
   2020     ebp = POP32_VAL(esp); /* 0x360019FE: pop ebp */
   2021     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360019FF: ret 8 */
   2022 L_36001A02:
   2023     ecx = MEM32(ebp + (-0x8)); /* 0x36001A02: mov ecx, dword ptr [ebp - 8] */
   2024     eax = MEM32(ebp + 0x8); /* 0x36001A05: mov eax, dword ptr [ebp + 8] */
   2025     edi = POP32_VAL(esp); /* 0x36001A08: pop edi */
   2026     MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x36001A09: mov byte ptr [ebp - 8], 0 */
   2027     edx = MEM32(ebp + (-0x8)); /* 0x36001A0D: mov edx, dword ptr [ebp - 8] */
   2028     esi = POP32_VAL(esp); /* 0x36001A10: pop esi */
   2029     MEM32(eax) = ecx; /* 0x36001A11: mov dword ptr [eax], ecx */
   2030     MEM32(eax + 0x4) = edx; /* 0x36001A13: mov dword ptr [eax + 4], edx */
   2031     ebx = POP32_VAL(esp); /* 0x36001A16: pop ebx */
   2032     esp = ebp; /* 0x36001A17: mov esp, ebp */
   2033     ebp = POP32_VAL(esp); /* 0x36001A19: pop ebp */
   2034     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36001A1A: ret 8 */
   2035     RECOMP_REGS_OUT();
   2036 }
   2037 
   2038 void sub_36001A20(void) {
   2039     int _fpu_cmp = 0;
   2040     uint32_t _cf = 0;
   2041     int _df = 1;
   2042     uint32_t _flag_k = FK_NONE;
   2043     uint32_t _flag_a = 0, _flag_b = 0;
   2044     uint32_t _itail_tgt = 0;
   2045     RECOMP_REGS_LOCALS
   2046     RECOMP_ENTER(0x36001A20u);
   2047 
   2048 L_36001A20:
   2049     PUSH32(esp, ebp); /* 0x36001A20: push ebp */
   2050     ebp = esp; /* 0x36001A21: mov ebp, esp */
   2051     PUSH32(esp, ebx); /* 0x36001A23: push ebx */
   2052     PUSH32(esp, esi); /* 0x36001A24: push esi */
   2053     ebx = ecx; /* 0x36001A25: mov ebx, ecx */
   2054     eax = MEM32(ebx + 0x8); /* 0x36001A27: mov eax, dword ptr [ebx + 8] */
   2055     PUSH32(esp, edi); /* 0x36001A2A: push edi */
   2056     edi = MEM32(ebp + 0x8); /* 0x36001A2B: mov edi, dword ptr [ebp + 8] */
   2057     /* cmp edi, eax */ /* 0x36001A2E: cmp edi, eax */
   2058     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2060     _flag_k = FK_CMP;
   2061     esi = edi; /* 0x36001A30: mov esi, edi */
   2062     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001A53; /* 0x36001A32: je 0x36001a53 */
   2063 L_36001A34:
   2064     eax = MEM32(esi + 0x8); /* 0x36001A34: mov eax, dword ptr [esi + 8] */
   2065     PUSH32(esp, eax); /* 0x36001A37: push eax */
   2066     ecx = ebx; /* 0x36001A38: mov ecx, ebx */
   2067     RECOMP_ICALL(0x36001A20u); /* 0x36001A3A: call 0x36001a20 */ /* not lifted */
   2068     RECOMP_FLAGS_IN();
   2069     esi = MEM32(esi); /* 0x36001A3F: mov esi, dword ptr [esi] */
   2070     PUSH32(esp, edi); /* 0x36001A41: push edi */
   2071     RECOMP_ICALL(0x3615FCC4u); /* 0x36001A42: call 0x3615fcc4 */ /* not lifted */
   2072     RECOMP_FLAGS_IN();
   2073     eax = MEM32(ebx + 0x8); /* 0x36001A47: mov eax, dword ptr [ebx + 8] */
   2074     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2075     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2076     esp = esp + 4; /* 0x36001A4A: add esp, 4 */
   2077     _flag_k = FK_ADD;
   2078     /* cmp esi, eax */ /* 0x36001A4D: cmp esi, eax */
   2079     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2081     _flag_k = FK_CMP;
   2082     edi = esi; /* 0x36001A4F: mov edi, esi */
   2083     RECOMP_BACKEDGE();
   2084     if (CMP_NE(_flag_a, _flag_b)) goto L_36001A34; /* 0x36001A51: jne 0x36001a34 */
   2085 L_36001A53:
   2086     edi = POP32_VAL(esp); /* 0x36001A53: pop edi */
   2087     esi = POP32_VAL(esp); /* 0x36001A54: pop esi */
   2088     ebx = POP32_VAL(esp); /* 0x36001A55: pop ebx */
   2089     ebp = POP32_VAL(esp); /* 0x36001A56: pop ebp */
   2090     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36001A57: ret 4 */
   2091     RECOMP_REGS_OUT();
   2092 }
   2093 
   2094 void sub_36001A60(void) {
   2095     int _fpu_cmp = 0;
   2096     uint32_t _cf = 0;
   2097     int _df = 1;
   2098     uint32_t _flag_k = FK_NONE;
   2099     uint32_t _flag_a = 0, _flag_b = 0;
   2100     uint32_t _itail_tgt = 0;
   2101     RECOMP_REGS_LOCALS
   2102     RECOMP_ENTER(0x36001A60u);
   2103 
   2104 L_36001A60:
   2105     PUSH32(esp, ebp); /* 0x36001A60: push ebp */
   2106     ebp = esp; /* 0x36001A61: mov ebp, esp */
   2107     PUSH32(esp, ecx); /* 0x36001A63: push ecx */
   2108     PUSH32(esp, ebx); /* 0x36001A64: push ebx */
   2109     PUSH32(esp, esi); /* 0x36001A65: push esi */
   2110     PUSH32(esp, edi); /* 0x36001A66: push edi */
   2111     PUSH32(esp, 0x1Cu); /* 0x36001A67: push 0x1c */
   2112     esi = ecx; /* 0x36001A69: mov esi, ecx */
   2113     RECOMP_ICALL(0x3615FD6Au); /* 0x36001A6B: call 0x3615fd6a */ /* not lifted */
   2114     RECOMP_FLAGS_IN();
   2115     edi = MEM32(ebp + 0x10); /* 0x36001A70: mov edi, dword ptr [ebp + 0x10] */
   2116     ebx = MEM32(ebp + 0x14); /* 0x36001A73: mov ebx, dword ptr [ebp + 0x14] */
   2117     MEM32(eax + 0x4) = edi; /* 0x36001A76: mov dword ptr [eax + 4], edi */
   2118     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x36001A79: mov byte ptr [eax + 0x18], 0 */
   2119     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x36001A7D: mov byte ptr [eax + 0x19], 0 */
   2120     ecx = MEM32(esi + 0x8); /* 0x36001A81: mov ecx, dword ptr [esi + 8] */
   2121     MEM32(eax) = ecx; /* 0x36001A84: mov dword ptr [eax], ecx */
   2122     edx = MEM32(esi + 0x8); /* 0x36001A86: mov edx, dword ptr [esi + 8] */
   2123     MEM32(ebp + (-0x4)) = eax; /* 0x36001A89: mov dword ptr [ebp - 4], eax */
   2124     MEM32(eax + 0x8) = edx; /* 0x36001A8C: mov dword ptr [eax + 8], edx */
   2125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2126     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2127     eax = eax + 0xCu; /* 0x36001A8F: add eax, 0xc */
   2128     _flag_k = FK_ADD;
   2129     PUSH32(esp, ebx); /* 0x36001A92: push ebx */
   2130     PUSH32(esp, eax); /* 0x36001A93: push eax */
   2131     RECOMP_ICALL(0x361473E0u); /* 0x36001A94: call 0x361473e0 */ /* not lifted */
   2132     RECOMP_FLAGS_IN();
   2133     ecx = MEM32(esi + 0x10); /* 0x36001A99: mov ecx, dword ptr [esi + 0x10] */
   2134     eax = MEM32(esi + 0x4); /* 0x36001A9C: mov eax, dword ptr [esi + 4] */
   2135     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2136     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2137     esp = esp + 0xCu; /* 0x36001A9F: add esp, 0xc */
   2138     _flag_k = FK_ADD;
   2139     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2140     ecx = ecx + 1; /* 0x36001AA2: inc ecx */
   2141     _flag_k = FK_INC;
   2142     /* cmp edi, eax */ /* 0x36001AA3: cmp edi, eax */
   2143     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2145     _flag_k = FK_CMP;
   2146     MEM32(esi + 0x10) = ecx; /* 0x36001AA5: mov dword ptr [esi + 0x10], ecx */
   2147     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001AD6; /* 0x36001AA8: je 0x36001ad6 */
   2148 L_36001AAA:
   2149     eax = MEM32(ebp + 0xC); /* 0x36001AAA: mov eax, dword ptr [ebp + 0xc] */
   2150     /* cmp eax, MEM32(esi + 0x8) */ /* 0x36001AAD: cmp eax, dword ptr [esi + 8] */
   2151     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2153     _flag_k = FK_CMP;
   2154     if (CMP_NE(_flag_a, _flag_b)) goto L_36001AD6; /* 0x36001AB0: jne 0x36001ad6 */
   2155 L_36001AB2:
   2156     ecx = edi + 0xC; /* 0x36001AB2: lea ecx, [edi + 0xc] */
   2157     PUSH32(esp, ecx); /* 0x36001AB5: push ecx */
   2158     PUSH32(esp, ebx); /* 0x36001AB6: push ebx */
   2159     RECOMP_ICALL(0x36001CF0u); /* 0x36001AB7: call 0x36001cf0 */ /* not lifted */
   2160     RECOMP_FLAGS_IN();
   2161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2163     esp = esp + 8; /* 0x36001ABC: add esp, 8 */
   2164     _flag_k = FK_ADD;
   2165     /* test LO8(eax), LO8(eax) */ /* 0x36001ABF: test al, al */
   2166     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2167     _cf = 0;
   2168     _flag_k = FK_NARROW(FK_TEST, 24);
   2169     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001AD6; /* 0x36001AC1: jne 0x36001ad6 */
   2170 L_36001AC3:
   2171     ecx = MEM32(ebp + (-0x4)); /* 0x36001AC3: mov ecx, dword ptr [ebp - 4] */
   2172     MEM32(edi + 0x8) = ecx; /* 0x36001AC6: mov dword ptr [edi + 8], ecx */
   2173     eax = MEM32(esi + 0x4); /* 0x36001AC9: mov eax, dword ptr [esi + 4] */
   2174     /* cmp edi, MEM32(eax + 0x8) */ /* 0x36001ACC: cmp edi, dword ptr [eax + 8] */
   2175     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2177     _flag_k = FK_CMP;
   2178     if (CMP_NE(_flag_a, _flag_b)) goto L_36001AF6; /* 0x36001ACF: jne 0x36001af6 */
   2179 L_36001AD1:
   2180     MEM32(eax + 0x8) = ecx; /* 0x36001AD1: mov dword ptr [eax + 8], ecx */
   2181     goto L_36001AF6; /* 0x36001AD4: jmp 0x36001af6 */
   2182 L_36001AD6:
   2183     ecx = MEM32(ebp + (-0x4)); /* 0x36001AD6: mov ecx, dword ptr [ebp - 4] */
   2184     MEM32(edi) = ecx; /* 0x36001AD9: mov dword ptr [edi], ecx */
   2185     eax = MEM32(esi + 0x4); /* 0x36001ADB: mov eax, dword ptr [esi + 4] */
   2186     /* cmp edi, eax */ /* 0x36001ADE: cmp edi, eax */
   2187     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2189     _flag_k = FK_CMP;
   2190     if (CMP_NE(_flag_a, _flag_b)) goto L_36001AED; /* 0x36001AE0: jne 0x36001aed */
   2191 L_36001AE2:
   2192     MEM32(eax + 0x4) = ecx; /* 0x36001AE2: mov dword ptr [eax + 4], ecx */
   2193     edx = MEM32(esi + 0x4); /* 0x36001AE5: mov edx, dword ptr [esi + 4] */
   2194     MEM32(edx + 0x8) = ecx; /* 0x36001AE8: mov dword ptr [edx + 8], ecx */
   2195     goto L_36001AF6; /* 0x36001AEB: jmp 0x36001af6 */
   2196 L_36001AED:
   2197     /* cmp edi, MEM32(eax) */ /* 0x36001AED: cmp edi, dword ptr [eax] */
   2198     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   2199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2200     _flag_k = FK_CMP;
   2201     if (CMP_NE(_flag_a, _flag_b)) goto L_36001AF6; /* 0x36001AEF: jne 0x36001af6 */
   2202 L_36001AF1:
   2203     ecx = MEM32(ebp + (-0x4)); /* 0x36001AF1: mov ecx, dword ptr [ebp - 4] */
   2204     MEM32(eax) = ecx; /* 0x36001AF4: mov dword ptr [eax], ecx */
   2205 L_36001AF6:
   2206     edx = MEM32(esi + 0x4); /* 0x36001AF6: mov edx, dword ptr [esi + 4] */
   2207     eax = MEM32(ebp + (-0x4)); /* 0x36001AF9: mov eax, dword ptr [ebp - 4] */
   2208     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001AFC: cmp eax, dword ptr [edx + 4] */
   2209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2211     _flag_k = FK_CMP;
   2212     SET_LO8(ebx, 1); /* 0x36001AFF: mov bl, 1 */
   2213     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B01: je 0x36001c87 */
   2214 L_36001B07:
   2215     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   2216     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   2217     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   2218     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2219     _cf = 0;
   2220     _flag_k = FK_NARROW(FK_TEST, 24);
   2221     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   2222 L_36001B15:
   2223     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   2224     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   2225     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   2226     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2228     _flag_k = FK_CMP;
   2229     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   2230 L_36001B22:
   2231     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   2232     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   2233     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2235     _flag_k = FK_NARROW(FK_CMP, 24);
   2236     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   2237 L_36001B2B:
   2238     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   2239     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   2240     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   2241     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   2242     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   2243     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   2244     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   2245     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   2246 L_36001B46:
   2247     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   2248     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2250     _flag_k = FK_CMP;
   2251     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   2252 L_36001B4B:
   2253     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   2254     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   2255     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   2256     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   2257     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   2258     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   2259     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2261     _flag_k = FK_CMP;
   2262     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   2263 L_36001B5C:
   2264     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   2265 L_36001B5F:
   2266     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   2267     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   2268     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   2269     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   2270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2271     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2272     _flag_k = FK_CMP;
   2273     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   2274 L_36001B6D:
   2275     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   2276     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   2277 L_36001B72:
   2278     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   2279     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   2280     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2282     _flag_k = FK_CMP;
   2283     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   2284 L_36001B79:
   2285     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   2286     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   2287 L_36001B7D:
   2288     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   2289 L_36001B80:
   2290     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   2291     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   2292 L_36001B85:
   2293     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   2294     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   2295     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   2296     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   2297     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   2298     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   2299     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   2300     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   2301     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   2302     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   2303     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   2304     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   2305     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2307     _flag_k = FK_CMP;
   2308     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   2309 L_36001BAA:
   2310     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   2311 L_36001BAD:
   2312     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   2313     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   2314     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   2315     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   2316     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2317     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2318     _flag_k = FK_CMP;
   2319     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   2320 L_36001BBB:
   2321     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   2322     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   2323     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   2324 L_36001BC6:
   2325     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   2326     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   2327     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2329     _flag_k = FK_CMP;
   2330     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   2331 L_36001BCE:
   2332     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   2333     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   2334     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   2335 L_36001BD9:
   2336     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   2337     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   2338     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   2339 L_36001BE3:
   2340     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   2341     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2343     _flag_k = FK_NARROW(FK_CMP, 24);
   2344     RECOMP_BACKEDGE();
   2345     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   2346 L_36001BED:
   2347     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   2348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2350     _flag_k = FK_CMP;
   2351     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   2352 L_36001BF1:
   2353     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   2354     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   2355     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   2356     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   2357     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   2358     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   2359     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2361     _flag_k = FK_CMP;
   2362     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   2363 L_36001C02:
   2364     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   2365 L_36001C05:
   2366     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   2367     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   2368     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   2369     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   2370     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2372     _flag_k = FK_CMP;
   2373     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   2374 L_36001C13:
   2375     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   2376     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   2377 L_36001C18:
   2378     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   2379     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   2380     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2382     _flag_k = FK_CMP;
   2383     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   2384 L_36001C20:
   2385     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   2386     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   2387 L_36001C25:
   2388     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   2389 L_36001C27:
   2390     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   2391     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   2392 L_36001C2D:
   2393     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   2394     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   2395     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   2396     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   2397     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   2398     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   2399     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   2400     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   2401     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   2402     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   2403     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   2404     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   2405     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2407     _flag_k = FK_CMP;
   2408     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   2409 L_36001C52:
   2410     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   2411 L_36001C55:
   2412     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   2413     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   2414     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   2415     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   2416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2418     _flag_k = FK_CMP;
   2419     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   2420 L_36001C63:
   2421     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   2422     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   2423 L_36001C68:
   2424     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   2425     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   2426     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2428     _flag_k = FK_CMP;
   2429     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   2430 L_36001C6F:
   2431     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   2432     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   2433 L_36001C73:
   2434     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   2435 L_36001C76:
   2436     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   2437 L_36001C78:
   2438     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   2439 L_36001C7B:
   2440     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   2441     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   2442     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2443     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2444     _flag_k = FK_CMP;
   2445     RECOMP_BACKEDGE();
   2446     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   2447 L_36001C87:
   2448     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   2449     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   2450     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   2451     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   2452     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   2453     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   2454     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   2455     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   2456     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   2457     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   2458     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   2459     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   2460     RECOMP_REGS_OUT();
   2461 }
   2462 
   2463 void sub_36001B07(void) {
   2464     int _fpu_cmp = 0;
   2465     uint32_t _cf = 0;
   2466     int _df = 1;
   2467     uint32_t _flag_k = FK_NONE;
   2468     uint32_t _flag_a = 0, _flag_b = 0;
   2469     uint32_t _itail_tgt = 0;
   2470     RECOMP_REGS_LOCALS
   2471     RECOMP_ENTER(0x36001B07u);
   2472 
   2473 L_36001B07:
   2474     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   2475     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   2476     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   2477     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2478     _cf = 0;
   2479     _flag_k = FK_NARROW(FK_TEST, 24);
   2480     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   2481 L_36001B15:
   2482     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   2483     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   2484     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   2485     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2487     _flag_k = FK_CMP;
   2488     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   2489 L_36001B22:
   2490     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   2491     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   2492     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2494     _flag_k = FK_NARROW(FK_CMP, 24);
   2495     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   2496 L_36001B2B:
   2497     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   2498     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   2499     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   2500     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   2501     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   2502     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   2503     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   2504     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   2505 L_36001B46:
   2506     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   2507     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2508     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2509     _flag_k = FK_CMP;
   2510     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   2511 L_36001B4B:
   2512     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   2513     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   2514     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   2515     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   2516     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   2517     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   2518     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2520     _flag_k = FK_CMP;
   2521     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   2522 L_36001B5C:
   2523     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   2524 L_36001B5F:
   2525     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   2526     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   2527     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   2528     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   2529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2531     _flag_k = FK_CMP;
   2532     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   2533 L_36001B6D:
   2534     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   2535     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   2536 L_36001B72:
   2537     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   2538     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   2539     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2541     _flag_k = FK_CMP;
   2542     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   2543 L_36001B79:
   2544     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   2545     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   2546 L_36001B7D:
   2547     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   2548 L_36001B80:
   2549     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   2550     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   2551 L_36001B85:
   2552     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   2553     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   2554     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   2555     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   2556     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   2557     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   2558     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   2559     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   2560     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   2561     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   2562     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   2563     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   2564     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2566     _flag_k = FK_CMP;
   2567     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   2568 L_36001BAA:
   2569     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   2570 L_36001BAD:
   2571     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   2572     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   2573     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   2574     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   2575     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2577     _flag_k = FK_CMP;
   2578     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   2579 L_36001BBB:
   2580     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   2581     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   2582     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   2583 L_36001BC6:
   2584     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   2585     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   2586     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2588     _flag_k = FK_CMP;
   2589     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   2590 L_36001BCE:
   2591     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   2592     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   2593     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   2594 L_36001BD9:
   2595     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   2596     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   2597     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   2598 L_36001BE3:
   2599     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   2600     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2602     _flag_k = FK_NARROW(FK_CMP, 24);
   2603     RECOMP_BACKEDGE();
   2604     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   2605 L_36001BED:
   2606     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   2607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2609     _flag_k = FK_CMP;
   2610     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   2611 L_36001BF1:
   2612     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   2613     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   2614     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   2615     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   2616     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   2617     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   2618     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2620     _flag_k = FK_CMP;
   2621     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   2622 L_36001C02:
   2623     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   2624 L_36001C05:
   2625     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   2626     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   2627     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   2628     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   2629     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2631     _flag_k = FK_CMP;
   2632     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   2633 L_36001C13:
   2634     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   2635     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   2636 L_36001C18:
   2637     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   2638     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   2639     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2640     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2641     _flag_k = FK_CMP;
   2642     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   2643 L_36001C20:
   2644     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   2645     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   2646 L_36001C25:
   2647     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   2648 L_36001C27:
   2649     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   2650     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   2651 L_36001C2D:
   2652     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   2653     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   2654     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   2655     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   2656     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   2657     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   2658     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   2659     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   2660     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   2661     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   2662     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   2663     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   2664     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2666     _flag_k = FK_CMP;
   2667     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   2668 L_36001C52:
   2669     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   2670 L_36001C55:
   2671     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   2672     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   2673     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   2674     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   2675     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2677     _flag_k = FK_CMP;
   2678     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   2679 L_36001C63:
   2680     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   2681     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   2682 L_36001C68:
   2683     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   2684     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   2685     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2687     _flag_k = FK_CMP;
   2688     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   2689 L_36001C6F:
   2690     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   2691     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   2692 L_36001C73:
   2693     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   2694 L_36001C76:
   2695     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   2696 L_36001C78:
   2697     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   2698 L_36001C7B:
   2699     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   2700     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   2701     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2703     _flag_k = FK_CMP;
   2704     RECOMP_BACKEDGE();
   2705     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   2706 L_36001C87:
   2707     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   2708     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   2709     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   2710     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   2711     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   2712     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   2713     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   2714     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   2715     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   2716     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   2717     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   2718     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   2719     RECOMP_REGS_OUT();
   2720 }
   2721 
   2722 void sub_36001B2B(void) {
   2723     int _fpu_cmp = 0;
   2724     uint32_t _cf = 0;
   2725     int _df = 1;
   2726     uint32_t _flag_k = FK_NONE;
   2727     uint32_t _flag_a = 0, _flag_b = 0;
   2728     uint32_t _itail_tgt = 0;
   2729     RECOMP_REGS_LOCALS
   2730     RECOMP_ENTER(0x36001B2Bu);
   2731 
   2732     goto L_36001B2B;
   2733 L_36001B07:
   2734     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   2735     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   2736     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   2737     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2738     _cf = 0;
   2739     _flag_k = FK_NARROW(FK_TEST, 24);
   2740     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   2741 L_36001B15:
   2742     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   2743     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   2744     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   2745     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2747     _flag_k = FK_CMP;
   2748     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   2749 L_36001B22:
   2750     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   2751     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   2752     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2754     _flag_k = FK_NARROW(FK_CMP, 24);
   2755     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   2756 L_36001B2B:
   2757     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   2758     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   2759     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   2760     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   2761     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   2762     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   2763     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   2764     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   2765 L_36001B46:
   2766     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   2767     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2769     _flag_k = FK_CMP;
   2770     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   2771 L_36001B4B:
   2772     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   2773     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   2774     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   2775     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   2776     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   2777     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   2778     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2779     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2780     _flag_k = FK_CMP;
   2781     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   2782 L_36001B5C:
   2783     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   2784 L_36001B5F:
   2785     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   2786     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   2787     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   2788     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   2789     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2791     _flag_k = FK_CMP;
   2792     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   2793 L_36001B6D:
   2794     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   2795     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   2796 L_36001B72:
   2797     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   2798     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   2799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2801     _flag_k = FK_CMP;
   2802     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   2803 L_36001B79:
   2804     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   2805     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   2806 L_36001B7D:
   2807     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   2808 L_36001B80:
   2809     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   2810     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   2811 L_36001B85:
   2812     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   2813     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   2814     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   2815     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   2816     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   2817     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   2818     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   2819     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   2820     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   2821     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   2822     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   2823     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   2824     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2825     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2826     _flag_k = FK_CMP;
   2827     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   2828 L_36001BAA:
   2829     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   2830 L_36001BAD:
   2831     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   2832     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   2833     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   2834     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   2835     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2837     _flag_k = FK_CMP;
   2838     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   2839 L_36001BBB:
   2840     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   2841     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   2842     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   2843 L_36001BC6:
   2844     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   2845     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   2846     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2848     _flag_k = FK_CMP;
   2849     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   2850 L_36001BCE:
   2851     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   2852     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   2853     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   2854 L_36001BD9:
   2855     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   2856     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   2857     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   2858 L_36001BE3:
   2859     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   2860     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2862     _flag_k = FK_NARROW(FK_CMP, 24);
   2863     RECOMP_BACKEDGE();
   2864     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   2865 L_36001BED:
   2866     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   2867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2869     _flag_k = FK_CMP;
   2870     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   2871 L_36001BF1:
   2872     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   2873     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   2874     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   2875     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   2876     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   2877     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   2878     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2880     _flag_k = FK_CMP;
   2881     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   2882 L_36001C02:
   2883     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   2884 L_36001C05:
   2885     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   2886     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   2887     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   2888     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   2889     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2891     _flag_k = FK_CMP;
   2892     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   2893 L_36001C13:
   2894     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   2895     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   2896 L_36001C18:
   2897     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   2898     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   2899     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2900     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2901     _flag_k = FK_CMP;
   2902     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   2903 L_36001C20:
   2904     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   2905     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   2906 L_36001C25:
   2907     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   2908 L_36001C27:
   2909     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   2910     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   2911 L_36001C2D:
   2912     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   2913     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   2914     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   2915     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   2916     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   2917     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   2918     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   2919     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   2920     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   2921     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   2922     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   2923     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   2924     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2926     _flag_k = FK_CMP;
   2927     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   2928 L_36001C52:
   2929     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   2930 L_36001C55:
   2931     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   2932     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   2933     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   2934     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   2935     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2937     _flag_k = FK_CMP;
   2938     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   2939 L_36001C63:
   2940     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   2941     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   2942 L_36001C68:
   2943     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   2944     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   2945     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2947     _flag_k = FK_CMP;
   2948     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   2949 L_36001C6F:
   2950     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   2951     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   2952 L_36001C73:
   2953     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   2954 L_36001C76:
   2955     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   2956 L_36001C78:
   2957     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   2958 L_36001C7B:
   2959     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   2960     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   2961     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2963     _flag_k = FK_CMP;
   2964     RECOMP_BACKEDGE();
   2965     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   2966 L_36001C87:
   2967     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   2968     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   2969     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   2970     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   2971     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   2972     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   2973     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   2974     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   2975     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   2976     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   2977     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   2978     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   2979     RECOMP_REGS_OUT();
   2980 }
   2981 
   2982 void sub_36001B80(void) {
   2983     int _fpu_cmp = 0;
   2984     uint32_t _cf = 0;
   2985     int _df = 1;
   2986     uint32_t _flag_k = FK_NONE;
   2987     uint32_t _flag_a = 0, _flag_b = 0;
   2988     uint32_t _itail_tgt = 0;
   2989     RECOMP_REGS_LOCALS
   2990     RECOMP_ENTER(0x36001B80u);
   2991 
   2992     goto L_36001B80;
   2993 L_36001B07:
   2994     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   2995     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   2996     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   2997     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2998     _cf = 0;
   2999     _flag_k = FK_NARROW(FK_TEST, 24);
   3000     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   3001 L_36001B15:
   3002     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   3003     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   3004     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   3005     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3007     _flag_k = FK_CMP;
   3008     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   3009 L_36001B22:
   3010     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   3011     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   3012     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3014     _flag_k = FK_NARROW(FK_CMP, 24);
   3015     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   3016 L_36001B2B:
   3017     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   3018     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   3019     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   3020     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   3021     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   3022     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   3023     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   3024     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   3025 L_36001B46:
   3026     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   3027     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3029     _flag_k = FK_CMP;
   3030     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   3031 L_36001B4B:
   3032     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   3033     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   3034     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   3035     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   3036     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   3037     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   3038     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3040     _flag_k = FK_CMP;
   3041     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   3042 L_36001B5C:
   3043     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   3044 L_36001B5F:
   3045     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   3046     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   3047     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   3048     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   3049     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3051     _flag_k = FK_CMP;
   3052     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   3053 L_36001B6D:
   3054     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   3055     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   3056 L_36001B72:
   3057     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   3058     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   3059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3061     _flag_k = FK_CMP;
   3062     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   3063 L_36001B79:
   3064     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   3065     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   3066 L_36001B7D:
   3067     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   3068 L_36001B80:
   3069     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   3070     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   3071 L_36001B85:
   3072     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   3073     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   3074     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   3075     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   3076     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   3077     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   3078     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   3079     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   3080     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   3081     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   3082     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   3083     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   3084     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3086     _flag_k = FK_CMP;
   3087     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   3088 L_36001BAA:
   3089     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   3090 L_36001BAD:
   3091     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   3092     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   3093     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   3094     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   3095     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3097     _flag_k = FK_CMP;
   3098     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   3099 L_36001BBB:
   3100     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   3101     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   3102     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   3103 L_36001BC6:
   3104     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   3105     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   3106     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3108     _flag_k = FK_CMP;
   3109     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   3110 L_36001BCE:
   3111     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   3112     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   3113     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   3114 L_36001BD9:
   3115     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   3116     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   3117     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   3118 L_36001BE3:
   3119     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   3120     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3122     _flag_k = FK_NARROW(FK_CMP, 24);
   3123     RECOMP_BACKEDGE();
   3124     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   3125 L_36001BED:
   3126     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   3127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3129     _flag_k = FK_CMP;
   3130     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   3131 L_36001BF1:
   3132     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   3133     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   3134     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   3135     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   3136     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   3137     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   3138     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3140     _flag_k = FK_CMP;
   3141     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   3142 L_36001C02:
   3143     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   3144 L_36001C05:
   3145     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   3146     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   3147     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   3148     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   3149     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3151     _flag_k = FK_CMP;
   3152     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   3153 L_36001C13:
   3154     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   3155     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   3156 L_36001C18:
   3157     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   3158     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   3159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3161     _flag_k = FK_CMP;
   3162     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   3163 L_36001C20:
   3164     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   3165     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   3166 L_36001C25:
   3167     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   3168 L_36001C27:
   3169     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   3170     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   3171 L_36001C2D:
   3172     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   3173     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   3174     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   3175     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   3176     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   3177     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   3178     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   3179     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   3180     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   3181     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   3182     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   3183     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   3184     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3186     _flag_k = FK_CMP;
   3187     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   3188 L_36001C52:
   3189     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   3190 L_36001C55:
   3191     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   3192     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   3193     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   3194     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   3195     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3197     _flag_k = FK_CMP;
   3198     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   3199 L_36001C63:
   3200     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   3201     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   3202 L_36001C68:
   3203     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   3204     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   3205     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3207     _flag_k = FK_CMP;
   3208     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   3209 L_36001C6F:
   3210     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   3211     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   3212 L_36001C73:
   3213     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   3214 L_36001C76:
   3215     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   3216 L_36001C78:
   3217     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   3218 L_36001C7B:
   3219     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   3220     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   3221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3223     _flag_k = FK_CMP;
   3224     RECOMP_BACKEDGE();
   3225     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   3226 L_36001C87:
   3227     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   3228     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   3229     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   3230     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   3231     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   3232     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   3233     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   3234     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   3235     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   3236     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   3237     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   3238     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   3239     RECOMP_REGS_OUT();
   3240 }
   3241 
   3242 void sub_36001B85(void) {
   3243     int _fpu_cmp = 0;
   3244     uint32_t _cf = 0;
   3245     int _df = 1;
   3246     uint32_t _flag_k = FK_NONE;
   3247     uint32_t _flag_a = 0, _flag_b = 0;
   3248     uint32_t _itail_tgt = 0;
   3249     RECOMP_REGS_LOCALS
   3250     RECOMP_ENTER(0x36001B85u);
   3251 
   3252     goto L_36001B85;
   3253 L_36001B07:
   3254     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   3255     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   3256     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   3257     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3258     _cf = 0;
   3259     _flag_k = FK_NARROW(FK_TEST, 24);
   3260     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   3261 L_36001B15:
   3262     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   3263     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   3264     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   3265     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3267     _flag_k = FK_CMP;
   3268     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   3269 L_36001B22:
   3270     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   3271     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   3272     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3274     _flag_k = FK_NARROW(FK_CMP, 24);
   3275     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   3276 L_36001B2B:
   3277     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   3278     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   3279     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   3280     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   3281     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   3282     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   3283     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   3284     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   3285 L_36001B46:
   3286     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   3287     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3289     _flag_k = FK_CMP;
   3290     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   3291 L_36001B4B:
   3292     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   3293     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   3294     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   3295     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   3296     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   3297     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   3298     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3299     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3300     _flag_k = FK_CMP;
   3301     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   3302 L_36001B5C:
   3303     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   3304 L_36001B5F:
   3305     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   3306     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   3307     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   3308     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   3309     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3311     _flag_k = FK_CMP;
   3312     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   3313 L_36001B6D:
   3314     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   3315     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   3316 L_36001B72:
   3317     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   3318     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   3319     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3321     _flag_k = FK_CMP;
   3322     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   3323 L_36001B79:
   3324     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   3325     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   3326 L_36001B7D:
   3327     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   3328 L_36001B80:
   3329     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   3330     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   3331 L_36001B85:
   3332     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   3333     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   3334     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   3335     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   3336     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   3337     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   3338     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   3339     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   3340     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   3341     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   3342     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   3343     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   3344     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3346     _flag_k = FK_CMP;
   3347     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   3348 L_36001BAA:
   3349     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   3350 L_36001BAD:
   3351     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   3352     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   3353     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   3354     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   3355     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3356     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3357     _flag_k = FK_CMP;
   3358     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   3359 L_36001BBB:
   3360     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   3361     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   3362     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   3363 L_36001BC6:
   3364     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   3365     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   3366     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3368     _flag_k = FK_CMP;
   3369     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   3370 L_36001BCE:
   3371     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   3372     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   3373     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   3374 L_36001BD9:
   3375     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   3376     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   3377     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   3378 L_36001BE3:
   3379     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   3380     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3381     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3382     _flag_k = FK_NARROW(FK_CMP, 24);
   3383     RECOMP_BACKEDGE();
   3384     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   3385 L_36001BED:
   3386     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   3387     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3389     _flag_k = FK_CMP;
   3390     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   3391 L_36001BF1:
   3392     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   3393     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   3394     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   3395     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   3396     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   3397     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   3398     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3400     _flag_k = FK_CMP;
   3401     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   3402 L_36001C02:
   3403     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   3404 L_36001C05:
   3405     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   3406     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   3407     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   3408     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   3409     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3411     _flag_k = FK_CMP;
   3412     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   3413 L_36001C13:
   3414     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   3415     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   3416 L_36001C18:
   3417     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   3418     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   3419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3421     _flag_k = FK_CMP;
   3422     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   3423 L_36001C20:
   3424     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   3425     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   3426 L_36001C25:
   3427     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   3428 L_36001C27:
   3429     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   3430     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   3431 L_36001C2D:
   3432     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   3433     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   3434     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   3435     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   3436     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   3437     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   3438     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   3439     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   3440     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   3441     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   3442     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   3443     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   3444     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3445     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3446     _flag_k = FK_CMP;
   3447     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   3448 L_36001C52:
   3449     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   3450 L_36001C55:
   3451     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   3452     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   3453     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   3454     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   3455     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3457     _flag_k = FK_CMP;
   3458     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   3459 L_36001C63:
   3460     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   3461     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   3462 L_36001C68:
   3463     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   3464     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   3465     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3467     _flag_k = FK_CMP;
   3468     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   3469 L_36001C6F:
   3470     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   3471     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   3472 L_36001C73:
   3473     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   3474 L_36001C76:
   3475     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   3476 L_36001C78:
   3477     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   3478 L_36001C7B:
   3479     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   3480     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   3481     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3483     _flag_k = FK_CMP;
   3484     RECOMP_BACKEDGE();
   3485     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   3486 L_36001C87:
   3487     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   3488     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   3489     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   3490     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   3491     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   3492     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   3493     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   3494     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   3495     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   3496     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   3497     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   3498     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   3499     RECOMP_REGS_OUT();
   3500 }
   3501 
   3502 void sub_36001BE3(void) {
   3503     int _fpu_cmp = 0;
   3504     uint32_t _cf = 0;
   3505     int _df = 1;
   3506     uint32_t _flag_k = FK_NONE;
   3507     uint32_t _flag_a = 0, _flag_b = 0;
   3508     uint32_t _itail_tgt = 0;
   3509     RECOMP_REGS_LOCALS
   3510     RECOMP_ENTER(0x36001BE3u);
   3511 
   3512     goto L_36001BE3;
   3513 L_36001B07:
   3514     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   3515     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   3516     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   3517     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3518     _cf = 0;
   3519     _flag_k = FK_NARROW(FK_TEST, 24);
   3520     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   3521 L_36001B15:
   3522     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   3523     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   3524     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   3525     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3526     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3527     _flag_k = FK_CMP;
   3528     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   3529 L_36001B22:
   3530     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   3531     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   3532     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3533     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3534     _flag_k = FK_NARROW(FK_CMP, 24);
   3535     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   3536 L_36001B2B:
   3537     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   3538     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   3539     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   3540     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   3541     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   3542     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   3543     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   3544     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   3545 L_36001B46:
   3546     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   3547     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3549     _flag_k = FK_CMP;
   3550     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   3551 L_36001B4B:
   3552     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   3553     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   3554     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   3555     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   3556     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   3557     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   3558     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3559     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3560     _flag_k = FK_CMP;
   3561     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   3562 L_36001B5C:
   3563     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   3564 L_36001B5F:
   3565     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   3566     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   3567     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   3568     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   3569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3571     _flag_k = FK_CMP;
   3572     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   3573 L_36001B6D:
   3574     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   3575     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   3576 L_36001B72:
   3577     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   3578     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   3579     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3581     _flag_k = FK_CMP;
   3582     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   3583 L_36001B79:
   3584     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   3585     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   3586 L_36001B7D:
   3587     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   3588 L_36001B80:
   3589     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   3590     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   3591 L_36001B85:
   3592     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   3593     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   3594     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   3595     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   3596     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   3597     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   3598     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   3599     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   3600     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   3601     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   3602     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   3603     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   3604     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3606     _flag_k = FK_CMP;
   3607     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   3608 L_36001BAA:
   3609     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   3610 L_36001BAD:
   3611     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   3612     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   3613     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   3614     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   3615     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3617     _flag_k = FK_CMP;
   3618     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   3619 L_36001BBB:
   3620     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   3621     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   3622     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   3623 L_36001BC6:
   3624     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   3625     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   3626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3628     _flag_k = FK_CMP;
   3629     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   3630 L_36001BCE:
   3631     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   3632     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   3633     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   3634 L_36001BD9:
   3635     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   3636     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   3637     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   3638 L_36001BE3:
   3639     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   3640     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3642     _flag_k = FK_NARROW(FK_CMP, 24);
   3643     RECOMP_BACKEDGE();
   3644     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   3645 L_36001BED:
   3646     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   3647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3649     _flag_k = FK_CMP;
   3650     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   3651 L_36001BF1:
   3652     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   3653     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   3654     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   3655     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   3656     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   3657     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   3658     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3660     _flag_k = FK_CMP;
   3661     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   3662 L_36001C02:
   3663     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   3664 L_36001C05:
   3665     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   3666     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   3667     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   3668     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   3669     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3671     _flag_k = FK_CMP;
   3672     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   3673 L_36001C13:
   3674     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   3675     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   3676 L_36001C18:
   3677     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   3678     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   3679     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3681     _flag_k = FK_CMP;
   3682     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   3683 L_36001C20:
   3684     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   3685     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   3686 L_36001C25:
   3687     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   3688 L_36001C27:
   3689     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   3690     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   3691 L_36001C2D:
   3692     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   3693     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   3694     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   3695     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   3696     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   3697     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   3698     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   3699     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   3700     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   3701     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   3702     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   3703     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   3704     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3705     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3706     _flag_k = FK_CMP;
   3707     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   3708 L_36001C52:
   3709     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   3710 L_36001C55:
   3711     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   3712     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   3713     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   3714     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   3715     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3717     _flag_k = FK_CMP;
   3718     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   3719 L_36001C63:
   3720     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   3721     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   3722 L_36001C68:
   3723     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   3724     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   3725     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3727     _flag_k = FK_CMP;
   3728     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   3729 L_36001C6F:
   3730     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   3731     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   3732 L_36001C73:
   3733     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   3734 L_36001C76:
   3735     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   3736 L_36001C78:
   3737     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   3738 L_36001C7B:
   3739     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   3740     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   3741     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3743     _flag_k = FK_CMP;
   3744     RECOMP_BACKEDGE();
   3745     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   3746 L_36001C87:
   3747     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   3748     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   3749     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   3750     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   3751     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   3752     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   3753     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   3754     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   3755     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   3756     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   3757     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   3758     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   3759     RECOMP_REGS_OUT();
   3760 }
   3761 
   3762 void sub_36001C27(void) {
   3763     int _fpu_cmp = 0;
   3764     uint32_t _cf = 0;
   3765     int _df = 1;
   3766     uint32_t _flag_k = FK_NONE;
   3767     uint32_t _flag_a = 0, _flag_b = 0;
   3768     uint32_t _itail_tgt = 0;
   3769     RECOMP_REGS_LOCALS
   3770     RECOMP_ENTER(0x36001C27u);
   3771 
   3772     goto L_36001C27;
   3773 L_36001B07:
   3774     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   3775     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   3776     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   3777     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3778     _cf = 0;
   3779     _flag_k = FK_NARROW(FK_TEST, 24);
   3780     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   3781 L_36001B15:
   3782     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   3783     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   3784     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   3785     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3786     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3787     _flag_k = FK_CMP;
   3788     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   3789 L_36001B22:
   3790     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   3791     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   3792     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3794     _flag_k = FK_NARROW(FK_CMP, 24);
   3795     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   3796 L_36001B2B:
   3797     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   3798     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   3799     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   3800     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   3801     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   3802     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   3803     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   3804     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   3805 L_36001B46:
   3806     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   3807     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3809     _flag_k = FK_CMP;
   3810     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   3811 L_36001B4B:
   3812     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   3813     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   3814     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   3815     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   3816     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   3817     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   3818     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3820     _flag_k = FK_CMP;
   3821     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   3822 L_36001B5C:
   3823     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   3824 L_36001B5F:
   3825     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   3826     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   3827     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   3828     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   3829     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3831     _flag_k = FK_CMP;
   3832     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   3833 L_36001B6D:
   3834     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   3835     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   3836 L_36001B72:
   3837     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   3838     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   3839     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3841     _flag_k = FK_CMP;
   3842     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   3843 L_36001B79:
   3844     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   3845     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   3846 L_36001B7D:
   3847     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   3848 L_36001B80:
   3849     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   3850     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   3851 L_36001B85:
   3852     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   3853     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   3854     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   3855     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   3856     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   3857     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   3858     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   3859     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   3860     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   3861     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   3862     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   3863     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   3864     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3866     _flag_k = FK_CMP;
   3867     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   3868 L_36001BAA:
   3869     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   3870 L_36001BAD:
   3871     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   3872     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   3873     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   3874     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   3875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3876     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3877     _flag_k = FK_CMP;
   3878     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   3879 L_36001BBB:
   3880     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   3881     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   3882     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   3883 L_36001BC6:
   3884     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   3885     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   3886     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3887     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3888     _flag_k = FK_CMP;
   3889     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   3890 L_36001BCE:
   3891     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   3892     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   3893     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   3894 L_36001BD9:
   3895     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   3896     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   3897     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   3898 L_36001BE3:
   3899     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   3900     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   3901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3902     _flag_k = FK_NARROW(FK_CMP, 24);
   3903     RECOMP_BACKEDGE();
   3904     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   3905 L_36001BED:
   3906     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   3907     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3909     _flag_k = FK_CMP;
   3910     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   3911 L_36001BF1:
   3912     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   3913     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   3914     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   3915     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   3916     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   3917     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   3918     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3920     _flag_k = FK_CMP;
   3921     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   3922 L_36001C02:
   3923     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   3924 L_36001C05:
   3925     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   3926     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   3927     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   3928     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   3929     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3931     _flag_k = FK_CMP;
   3932     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   3933 L_36001C13:
   3934     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   3935     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   3936 L_36001C18:
   3937     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   3938     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   3939     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3940     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3941     _flag_k = FK_CMP;
   3942     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   3943 L_36001C20:
   3944     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   3945     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   3946 L_36001C25:
   3947     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   3948 L_36001C27:
   3949     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   3950     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   3951 L_36001C2D:
   3952     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   3953     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   3954     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   3955     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   3956     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   3957     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   3958     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   3959     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   3960     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   3961     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   3962     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   3963     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   3964     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3966     _flag_k = FK_CMP;
   3967     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   3968 L_36001C52:
   3969     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   3970 L_36001C55:
   3971     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   3972     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   3973     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   3974     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   3975     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3977     _flag_k = FK_CMP;
   3978     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   3979 L_36001C63:
   3980     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   3981     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   3982 L_36001C68:
   3983     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   3984     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   3985     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3987     _flag_k = FK_CMP;
   3988     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   3989 L_36001C6F:
   3990     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   3991     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   3992 L_36001C73:
   3993     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   3994 L_36001C76:
   3995     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   3996 L_36001C78:
   3997     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   3998 L_36001C7B:
   3999     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   4000     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   4001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4003     _flag_k = FK_CMP;
   4004     RECOMP_BACKEDGE();
   4005     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   4006 L_36001C87:
   4007     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   4008     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   4009     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   4010     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   4011     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   4012     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   4013     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   4014     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   4015     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   4016     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   4017     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   4018     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   4019     RECOMP_REGS_OUT();
   4020 }
   4021 
   4022 void sub_36001C2D(void) {
   4023     int _fpu_cmp = 0;
   4024     uint32_t _cf = 0;
   4025     int _df = 1;
   4026     uint32_t _flag_k = FK_NONE;
   4027     uint32_t _flag_a = 0, _flag_b = 0;
   4028     uint32_t _itail_tgt = 0;
   4029     RECOMP_REGS_LOCALS
   4030     RECOMP_ENTER(0x36001C2Du);
   4031 
   4032     goto L_36001C2D;
   4033 L_36001B07:
   4034     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   4035     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   4036     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   4037     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4038     _cf = 0;
   4039     _flag_k = FK_NARROW(FK_TEST, 24);
   4040     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   4041 L_36001B15:
   4042     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   4043     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   4044     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   4045     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4047     _flag_k = FK_CMP;
   4048     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   4049 L_36001B22:
   4050     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   4051     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   4052     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4054     _flag_k = FK_NARROW(FK_CMP, 24);
   4055     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   4056 L_36001B2B:
   4057     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   4058     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   4059     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   4060     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   4061     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   4062     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   4063     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   4064     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   4065 L_36001B46:
   4066     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   4067     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4069     _flag_k = FK_CMP;
   4070     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   4071 L_36001B4B:
   4072     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   4073     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   4074     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   4075     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   4076     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   4077     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   4078     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4080     _flag_k = FK_CMP;
   4081     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   4082 L_36001B5C:
   4083     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   4084 L_36001B5F:
   4085     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   4086     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   4087     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   4088     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   4089     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4091     _flag_k = FK_CMP;
   4092     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   4093 L_36001B6D:
   4094     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   4095     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   4096 L_36001B72:
   4097     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   4098     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   4099     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4101     _flag_k = FK_CMP;
   4102     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   4103 L_36001B79:
   4104     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   4105     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   4106 L_36001B7D:
   4107     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   4108 L_36001B80:
   4109     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   4110     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   4111 L_36001B85:
   4112     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   4113     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   4114     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   4115     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   4116     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   4117     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   4118     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   4119     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   4120     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   4121     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   4122     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   4123     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   4124     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4125     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4126     _flag_k = FK_CMP;
   4127     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   4128 L_36001BAA:
   4129     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   4130 L_36001BAD:
   4131     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   4132     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   4133     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   4134     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   4135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4137     _flag_k = FK_CMP;
   4138     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   4139 L_36001BBB:
   4140     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   4141     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   4142     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   4143 L_36001BC6:
   4144     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   4145     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   4146     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4148     _flag_k = FK_CMP;
   4149     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   4150 L_36001BCE:
   4151     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   4152     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   4153     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   4154 L_36001BD9:
   4155     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   4156     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   4157     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   4158 L_36001BE3:
   4159     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   4160     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4162     _flag_k = FK_NARROW(FK_CMP, 24);
   4163     RECOMP_BACKEDGE();
   4164     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   4165 L_36001BED:
   4166     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   4167     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4168     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4169     _flag_k = FK_CMP;
   4170     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   4171 L_36001BF1:
   4172     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   4173     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   4174     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   4175     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   4176     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   4177     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   4178     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4179     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4180     _flag_k = FK_CMP;
   4181     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   4182 L_36001C02:
   4183     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   4184 L_36001C05:
   4185     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   4186     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   4187     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   4188     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   4189     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4191     _flag_k = FK_CMP;
   4192     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   4193 L_36001C13:
   4194     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   4195     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   4196 L_36001C18:
   4197     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   4198     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   4199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4201     _flag_k = FK_CMP;
   4202     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   4203 L_36001C20:
   4204     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   4205     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   4206 L_36001C25:
   4207     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   4208 L_36001C27:
   4209     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   4210     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   4211 L_36001C2D:
   4212     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   4213     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   4214     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   4215     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   4216     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   4217     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   4218     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   4219     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   4220     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   4221     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   4222     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   4223     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   4224     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4226     _flag_k = FK_CMP;
   4227     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   4228 L_36001C52:
   4229     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   4230 L_36001C55:
   4231     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   4232     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   4233     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   4234     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   4235     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4236     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4237     _flag_k = FK_CMP;
   4238     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   4239 L_36001C63:
   4240     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   4241     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   4242 L_36001C68:
   4243     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   4244     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   4245     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4247     _flag_k = FK_CMP;
   4248     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   4249 L_36001C6F:
   4250     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   4251     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   4252 L_36001C73:
   4253     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   4254 L_36001C76:
   4255     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   4256 L_36001C78:
   4257     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   4258 L_36001C7B:
   4259     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   4260     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   4261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4263     _flag_k = FK_CMP;
   4264     RECOMP_BACKEDGE();
   4265     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   4266 L_36001C87:
   4267     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   4268     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   4269     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   4270     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   4271     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   4272     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   4273     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   4274     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   4275     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   4276     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   4277     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   4278     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   4279     RECOMP_REGS_OUT();
   4280 }
   4281 
   4282 void sub_36001C76(void) {
   4283     int _fpu_cmp = 0;
   4284     uint32_t _cf = 0;
   4285     int _df = 1;
   4286     uint32_t _flag_k = FK_NONE;
   4287     uint32_t _flag_a = 0, _flag_b = 0;
   4288     uint32_t _itail_tgt = 0;
   4289     RECOMP_REGS_LOCALS
   4290     RECOMP_ENTER(0x36001C76u);
   4291 
   4292     goto L_36001C76;
   4293 L_36001B07:
   4294     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   4295     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   4296     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   4297     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4298     _cf = 0;
   4299     _flag_k = FK_NARROW(FK_TEST, 24);
   4300     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   4301 L_36001B15:
   4302     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   4303     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   4304     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   4305     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4306     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4307     _flag_k = FK_CMP;
   4308     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   4309 L_36001B22:
   4310     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   4311     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   4312     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4314     _flag_k = FK_NARROW(FK_CMP, 24);
   4315     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   4316 L_36001B2B:
   4317     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   4318     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   4319     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   4320     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   4321     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   4322     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   4323     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   4324     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   4325 L_36001B46:
   4326     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   4327     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4329     _flag_k = FK_CMP;
   4330     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   4331 L_36001B4B:
   4332     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   4333     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   4334     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   4335     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   4336     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   4337     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   4338     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4339     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4340     _flag_k = FK_CMP;
   4341     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   4342 L_36001B5C:
   4343     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   4344 L_36001B5F:
   4345     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   4346     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   4347     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   4348     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   4349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4351     _flag_k = FK_CMP;
   4352     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   4353 L_36001B6D:
   4354     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   4355     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   4356 L_36001B72:
   4357     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   4358     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   4359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4361     _flag_k = FK_CMP;
   4362     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   4363 L_36001B79:
   4364     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   4365     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   4366 L_36001B7D:
   4367     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   4368 L_36001B80:
   4369     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   4370     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   4371 L_36001B85:
   4372     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   4373     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   4374     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   4375     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   4376     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   4377     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   4378     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   4379     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   4380     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   4381     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   4382     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   4383     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   4384     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4386     _flag_k = FK_CMP;
   4387     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   4388 L_36001BAA:
   4389     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   4390 L_36001BAD:
   4391     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   4392     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   4393     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   4394     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   4395     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4397     _flag_k = FK_CMP;
   4398     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   4399 L_36001BBB:
   4400     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   4401     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   4402     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   4403 L_36001BC6:
   4404     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   4405     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   4406     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4408     _flag_k = FK_CMP;
   4409     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   4410 L_36001BCE:
   4411     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   4412     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   4413     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   4414 L_36001BD9:
   4415     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   4416     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   4417     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   4418 L_36001BE3:
   4419     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   4420     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4422     _flag_k = FK_NARROW(FK_CMP, 24);
   4423     RECOMP_BACKEDGE();
   4424     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   4425 L_36001BED:
   4426     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   4427     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4428     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4429     _flag_k = FK_CMP;
   4430     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   4431 L_36001BF1:
   4432     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   4433     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   4434     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   4435     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   4436     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   4437     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   4438     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4440     _flag_k = FK_CMP;
   4441     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   4442 L_36001C02:
   4443     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   4444 L_36001C05:
   4445     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   4446     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   4447     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   4448     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   4449     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4451     _flag_k = FK_CMP;
   4452     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   4453 L_36001C13:
   4454     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   4455     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   4456 L_36001C18:
   4457     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   4458     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   4459     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4461     _flag_k = FK_CMP;
   4462     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   4463 L_36001C20:
   4464     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   4465     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   4466 L_36001C25:
   4467     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   4468 L_36001C27:
   4469     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   4470     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   4471 L_36001C2D:
   4472     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   4473     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   4474     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   4475     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   4476     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   4477     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   4478     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   4479     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   4480     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   4481     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   4482     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   4483     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   4484     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4486     _flag_k = FK_CMP;
   4487     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   4488 L_36001C52:
   4489     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   4490 L_36001C55:
   4491     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   4492     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   4493     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   4494     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   4495     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4496     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4497     _flag_k = FK_CMP;
   4498     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   4499 L_36001C63:
   4500     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   4501     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   4502 L_36001C68:
   4503     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   4504     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   4505     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4507     _flag_k = FK_CMP;
   4508     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   4509 L_36001C6F:
   4510     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   4511     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   4512 L_36001C73:
   4513     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   4514 L_36001C76:
   4515     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   4516 L_36001C78:
   4517     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   4518 L_36001C7B:
   4519     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   4520     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   4521     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4523     _flag_k = FK_CMP;
   4524     RECOMP_BACKEDGE();
   4525     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   4526 L_36001C87:
   4527     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   4528     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   4529     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   4530     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   4531     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   4532     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   4533     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   4534     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   4535     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   4536     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   4537     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   4538     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   4539     RECOMP_REGS_OUT();
   4540 }
   4541 
   4542 void sub_36001C78(void) {
   4543     int _fpu_cmp = 0;
   4544     uint32_t _cf = 0;
   4545     int _df = 1;
   4546     uint32_t _flag_k = FK_NONE;
   4547     uint32_t _flag_a = 0, _flag_b = 0;
   4548     uint32_t _itail_tgt = 0;
   4549     RECOMP_REGS_LOCALS
   4550     RECOMP_ENTER(0x36001C78u);
   4551 
   4552     goto L_36001C78;
   4553 L_36001B07:
   4554     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   4555     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   4556     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   4557     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4558     _cf = 0;
   4559     _flag_k = FK_NARROW(FK_TEST, 24);
   4560     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   4561 L_36001B15:
   4562     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   4563     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   4564     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   4565     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4566     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4567     _flag_k = FK_CMP;
   4568     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   4569 L_36001B22:
   4570     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   4571     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   4572     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4574     _flag_k = FK_NARROW(FK_CMP, 24);
   4575     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   4576 L_36001B2B:
   4577     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   4578     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   4579     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   4580     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   4581     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   4582     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   4583     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   4584     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   4585 L_36001B46:
   4586     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   4587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4589     _flag_k = FK_CMP;
   4590     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   4591 L_36001B4B:
   4592     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   4593     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   4594     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   4595     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   4596     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   4597     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   4598     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4600     _flag_k = FK_CMP;
   4601     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   4602 L_36001B5C:
   4603     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   4604 L_36001B5F:
   4605     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   4606     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   4607     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   4608     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   4609     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4611     _flag_k = FK_CMP;
   4612     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   4613 L_36001B6D:
   4614     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   4615     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   4616 L_36001B72:
   4617     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   4618     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   4619     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4621     _flag_k = FK_CMP;
   4622     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   4623 L_36001B79:
   4624     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   4625     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   4626 L_36001B7D:
   4627     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   4628 L_36001B80:
   4629     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   4630     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   4631 L_36001B85:
   4632     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   4633     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   4634     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   4635     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   4636     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   4637     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   4638     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   4639     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   4640     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   4641     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   4642     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   4643     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   4644     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4646     _flag_k = FK_CMP;
   4647     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   4648 L_36001BAA:
   4649     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   4650 L_36001BAD:
   4651     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   4652     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   4653     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   4654     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   4655     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4657     _flag_k = FK_CMP;
   4658     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   4659 L_36001BBB:
   4660     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   4661     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   4662     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   4663 L_36001BC6:
   4664     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   4665     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   4666     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4668     _flag_k = FK_CMP;
   4669     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   4670 L_36001BCE:
   4671     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   4672     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   4673     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   4674 L_36001BD9:
   4675     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   4676     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   4677     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   4678 L_36001BE3:
   4679     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   4680     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4682     _flag_k = FK_NARROW(FK_CMP, 24);
   4683     RECOMP_BACKEDGE();
   4684     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   4685 L_36001BED:
   4686     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   4687     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4689     _flag_k = FK_CMP;
   4690     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   4691 L_36001BF1:
   4692     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   4693     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   4694     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   4695     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   4696     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   4697     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   4698     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4700     _flag_k = FK_CMP;
   4701     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   4702 L_36001C02:
   4703     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   4704 L_36001C05:
   4705     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   4706     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   4707     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   4708     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   4709     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4711     _flag_k = FK_CMP;
   4712     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   4713 L_36001C13:
   4714     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   4715     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   4716 L_36001C18:
   4717     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   4718     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   4719     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4721     _flag_k = FK_CMP;
   4722     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   4723 L_36001C20:
   4724     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   4725     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   4726 L_36001C25:
   4727     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   4728 L_36001C27:
   4729     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   4730     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   4731 L_36001C2D:
   4732     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   4733     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   4734     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   4735     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   4736     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   4737     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   4738     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   4739     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   4740     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   4741     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   4742     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   4743     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   4744     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4746     _flag_k = FK_CMP;
   4747     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   4748 L_36001C52:
   4749     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   4750 L_36001C55:
   4751     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   4752     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   4753     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   4754     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   4755     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4757     _flag_k = FK_CMP;
   4758     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   4759 L_36001C63:
   4760     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   4761     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   4762 L_36001C68:
   4763     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   4764     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   4765     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4767     _flag_k = FK_CMP;
   4768     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   4769 L_36001C6F:
   4770     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   4771     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   4772 L_36001C73:
   4773     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   4774 L_36001C76:
   4775     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   4776 L_36001C78:
   4777     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   4778 L_36001C7B:
   4779     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   4780     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   4781     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4783     _flag_k = FK_CMP;
   4784     RECOMP_BACKEDGE();
   4785     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   4786 L_36001C87:
   4787     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   4788     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   4789     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   4790     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   4791     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   4792     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   4793     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   4794     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   4795     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   4796     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   4797     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   4798     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   4799     RECOMP_REGS_OUT();
   4800 }
   4801 
   4802 void sub_36001C7B(void) {
   4803     int _fpu_cmp = 0;
   4804     uint32_t _cf = 0;
   4805     int _df = 1;
   4806     uint32_t _flag_k = FK_NONE;
   4807     uint32_t _flag_a = 0, _flag_b = 0;
   4808     uint32_t _itail_tgt = 0;
   4809     RECOMP_REGS_LOCALS
   4810     RECOMP_ENTER(0x36001C7Bu);
   4811 
   4812     goto L_36001C7B;
   4813 L_36001B07:
   4814     ecx = MEM32(eax + 0x4); /* 0x36001B07: mov ecx, dword ptr [eax + 4] */
   4815     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x36001B0A: mov dl, byte ptr [ecx + 0x18] */
   4816     /* test LO8(edx), LO8(edx) */ /* 0x36001B0D: test dl, dl */
   4817     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4818     _cf = 0;
   4819     _flag_k = FK_NARROW(FK_TEST, 24);
   4820     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001C87; /* 0x36001B0F: jne 0x36001c87 */
   4821 L_36001B15:
   4822     edi = MEM32(ecx + 0x4); /* 0x36001B15: mov edi, dword ptr [ecx + 4] */
   4823     edx = MEM32(edi); /* 0x36001B18: mov edx, dword ptr [edi] */
   4824     /* cmp ecx, edx */ /* 0x36001B1A: cmp ecx, edx */
   4825     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4827     _flag_k = FK_CMP;
   4828     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BE3; /* 0x36001B1C: jne 0x36001be3 */
   4829 L_36001B22:
   4830     edx = MEM32(edi + 0x8); /* 0x36001B22: mov edx, dword ptr [edi + 8] */
   4831     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001B25: cmp byte ptr [edx + 0x18], 0 */
   4832     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4834     _flag_k = FK_NARROW(FK_CMP, 24);
   4835     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B46; /* 0x36001B29: jne 0x36001b46 */
   4836 L_36001B2B:
   4837     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2B: mov byte ptr [ecx + 0x18], bl */
   4838     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B2E: mov byte ptr [edx + 0x18], bl */
   4839     ecx = MEM32(eax + 0x4); /* 0x36001B31: mov ecx, dword ptr [eax + 4] */
   4840     edx = MEM32(ecx + 0x4); /* 0x36001B34: mov edx, dword ptr [ecx + 4] */
   4841     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x36001B37: mov byte ptr [edx + 0x18], 0 */
   4842     eax = MEM32(eax + 0x4); /* 0x36001B3B: mov eax, dword ptr [eax + 4] */
   4843     eax = MEM32(eax + 0x4); /* 0x36001B3E: mov eax, dword ptr [eax + 4] */
   4844     goto L_36001C7B; /* 0x36001B41: jmp 0x36001c7b */
   4845 L_36001B46:
   4846     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x36001B46: cmp eax, dword ptr [ecx + 8] */
   4847     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4849     _flag_k = FK_CMP;
   4850     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B85; /* 0x36001B49: jne 0x36001b85 */
   4851 L_36001B4B:
   4852     eax = ecx; /* 0x36001B4B: mov eax, ecx */
   4853     ecx = MEM32(eax + 0x8); /* 0x36001B4D: mov ecx, dword ptr [eax + 8] */
   4854     edx = MEM32(ecx); /* 0x36001B50: mov edx, dword ptr [ecx] */
   4855     MEM32(eax + 0x8) = edx; /* 0x36001B52: mov dword ptr [eax + 8], edx */
   4856     edx = MEM32(ecx); /* 0x36001B55: mov edx, dword ptr [ecx] */
   4857     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001B57: cmp edx, dword ptr [esi + 8] */
   4858     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4859     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4860     _flag_k = FK_CMP;
   4861     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B5F; /* 0x36001B5A: je 0x36001b5f */
   4862 L_36001B5C:
   4863     MEM32(edx + 0x4) = eax; /* 0x36001B5C: mov dword ptr [edx + 4], eax */
   4864 L_36001B5F:
   4865     edx = MEM32(eax + 0x4); /* 0x36001B5F: mov edx, dword ptr [eax + 4] */
   4866     MEM32(ecx + 0x4) = edx; /* 0x36001B62: mov dword ptr [ecx + 4], edx */
   4867     edx = MEM32(esi + 0x4); /* 0x36001B65: mov edx, dword ptr [esi + 4] */
   4868     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001B68: cmp eax, dword ptr [edx + 4] */
   4869     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4871     _flag_k = FK_CMP;
   4872     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B72; /* 0x36001B6B: jne 0x36001b72 */
   4873 L_36001B6D:
   4874     MEM32(edx + 0x4) = ecx; /* 0x36001B6D: mov dword ptr [edx + 4], ecx */
   4875     goto L_36001B80; /* 0x36001B70: jmp 0x36001b80 */
   4876 L_36001B72:
   4877     edx = MEM32(eax + 0x4); /* 0x36001B72: mov edx, dword ptr [eax + 4] */
   4878     /* cmp eax, MEM32(edx) */ /* 0x36001B75: cmp eax, dword ptr [edx] */
   4879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4881     _flag_k = FK_CMP;
   4882     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B7D; /* 0x36001B77: jne 0x36001b7d */
   4883 L_36001B79:
   4884     MEM32(edx) = ecx; /* 0x36001B79: mov dword ptr [edx], ecx */
   4885     goto L_36001B80; /* 0x36001B7B: jmp 0x36001b80 */
   4886 L_36001B7D:
   4887     MEM32(edx + 0x8) = ecx; /* 0x36001B7D: mov dword ptr [edx + 8], ecx */
   4888 L_36001B80:
   4889     MEM32(ecx) = eax; /* 0x36001B80: mov dword ptr [ecx], eax */
   4890     MEM32(eax + 0x4) = ecx; /* 0x36001B82: mov dword ptr [eax + 4], ecx */
   4891 L_36001B85:
   4892     ecx = MEM32(eax + 0x4); /* 0x36001B85: mov ecx, dword ptr [eax + 4] */
   4893     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001B88: mov byte ptr [ecx + 0x18], bl */
   4894     edx = MEM32(eax + 0x4); /* 0x36001B8B: mov edx, dword ptr [eax + 4] */
   4895     ecx = MEM32(edx + 0x4); /* 0x36001B8E: mov ecx, dword ptr [edx + 4] */
   4896     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001B91: mov byte ptr [ecx + 0x18], 0 */
   4897     edx = MEM32(eax + 0x4); /* 0x36001B95: mov edx, dword ptr [eax + 4] */
   4898     ecx = MEM32(edx + 0x4); /* 0x36001B98: mov ecx, dword ptr [edx + 4] */
   4899     edx = MEM32(ecx); /* 0x36001B9B: mov edx, dword ptr [ecx] */
   4900     edi = MEM32(edx + 0x8); /* 0x36001B9D: mov edi, dword ptr [edx + 8] */
   4901     MEM32(ecx) = edi; /* 0x36001BA0: mov dword ptr [ecx], edi */
   4902     edi = MEM32(edx + 0x8); /* 0x36001BA2: mov edi, dword ptr [edx + 8] */
   4903     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001BA5: cmp edi, dword ptr [esi + 8] */
   4904     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4905     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4906     _flag_k = FK_CMP;
   4907     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001BAD; /* 0x36001BA8: je 0x36001bad */
   4908 L_36001BAA:
   4909     MEM32(edi + 0x4) = ecx; /* 0x36001BAA: mov dword ptr [edi + 4], ecx */
   4910 L_36001BAD:
   4911     edi = MEM32(ecx + 0x4); /* 0x36001BAD: mov edi, dword ptr [ecx + 4] */
   4912     MEM32(edx + 0x4) = edi; /* 0x36001BB0: mov dword ptr [edx + 4], edi */
   4913     edi = MEM32(esi + 0x4); /* 0x36001BB3: mov edi, dword ptr [esi + 4] */
   4914     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001BB6: cmp ecx, dword ptr [edi + 4] */
   4915     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4917     _flag_k = FK_CMP;
   4918     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BC6; /* 0x36001BB9: jne 0x36001bc6 */
   4919 L_36001BBB:
   4920     MEM32(edi + 0x4) = edx; /* 0x36001BBB: mov dword ptr [edi + 4], edx */
   4921     MEM32(edx + 0x8) = ecx; /* 0x36001BBE: mov dword ptr [edx + 8], ecx */
   4922     goto L_36001C78; /* 0x36001BC1: jmp 0x36001c78 */
   4923 L_36001BC6:
   4924     edi = MEM32(ecx + 0x4); /* 0x36001BC6: mov edi, dword ptr [ecx + 4] */
   4925     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x36001BC9: cmp ecx, dword ptr [edi + 8] */
   4926     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4927     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4928     _flag_k = FK_CMP;
   4929     if (CMP_NE(_flag_a, _flag_b)) goto L_36001BD9; /* 0x36001BCC: jne 0x36001bd9 */
   4930 L_36001BCE:
   4931     MEM32(edi + 0x8) = edx; /* 0x36001BCE: mov dword ptr [edi + 8], edx */
   4932     MEM32(edx + 0x8) = ecx; /* 0x36001BD1: mov dword ptr [edx + 8], ecx */
   4933     goto L_36001C78; /* 0x36001BD4: jmp 0x36001c78 */
   4934 L_36001BD9:
   4935     MEM32(edi) = edx; /* 0x36001BD9: mov dword ptr [edi], edx */
   4936     MEM32(edx + 0x8) = ecx; /* 0x36001BDB: mov dword ptr [edx + 8], ecx */
   4937     goto L_36001C78; /* 0x36001BDE: jmp 0x36001c78 */
   4938 L_36001BE3:
   4939     /* cmp MEM8(edx + 0x18), 0 */ /* 0x36001BE3: cmp byte ptr [edx + 0x18], 0 */
   4940     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   4941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4942     _flag_k = FK_NARROW(FK_CMP, 24);
   4943     RECOMP_BACKEDGE();
   4944     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001B2B; /* 0x36001BE7: je 0x36001b2b */
   4945 L_36001BED:
   4946     /* cmp eax, MEM32(ecx) */ /* 0x36001BED: cmp eax, dword ptr [ecx] */
   4947     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4949     _flag_k = FK_CMP;
   4950     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C2D; /* 0x36001BEF: jne 0x36001c2d */
   4951 L_36001BF1:
   4952     eax = ecx; /* 0x36001BF1: mov eax, ecx */
   4953     ecx = MEM32(eax); /* 0x36001BF3: mov ecx, dword ptr [eax] */
   4954     edx = MEM32(ecx + 0x8); /* 0x36001BF5: mov edx, dword ptr [ecx + 8] */
   4955     MEM32(eax) = edx; /* 0x36001BF8: mov dword ptr [eax], edx */
   4956     edx = MEM32(ecx + 0x8); /* 0x36001BFA: mov edx, dword ptr [ecx + 8] */
   4957     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36001BFD: cmp edx, dword ptr [esi + 8] */
   4958     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4960     _flag_k = FK_CMP;
   4961     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C05; /* 0x36001C00: je 0x36001c05 */
   4962 L_36001C02:
   4963     MEM32(edx + 0x4) = eax; /* 0x36001C02: mov dword ptr [edx + 4], eax */
   4964 L_36001C05:
   4965     edx = MEM32(eax + 0x4); /* 0x36001C05: mov edx, dword ptr [eax + 4] */
   4966     MEM32(ecx + 0x4) = edx; /* 0x36001C08: mov dword ptr [ecx + 4], edx */
   4967     edx = MEM32(esi + 0x4); /* 0x36001C0B: mov edx, dword ptr [esi + 4] */
   4968     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36001C0E: cmp eax, dword ptr [edx + 4] */
   4969     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4971     _flag_k = FK_CMP;
   4972     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C18; /* 0x36001C11: jne 0x36001c18 */
   4973 L_36001C13:
   4974     MEM32(edx + 0x4) = ecx; /* 0x36001C13: mov dword ptr [edx + 4], ecx */
   4975     goto L_36001C27; /* 0x36001C16: jmp 0x36001c27 */
   4976 L_36001C18:
   4977     edx = MEM32(eax + 0x4); /* 0x36001C18: mov edx, dword ptr [eax + 4] */
   4978     /* cmp eax, MEM32(edx + 0x8) */ /* 0x36001C1B: cmp eax, dword ptr [edx + 8] */
   4979     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4980     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4981     _flag_k = FK_CMP;
   4982     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C25; /* 0x36001C1E: jne 0x36001c25 */
   4983 L_36001C20:
   4984     MEM32(edx + 0x8) = ecx; /* 0x36001C20: mov dword ptr [edx + 8], ecx */
   4985     goto L_36001C27; /* 0x36001C23: jmp 0x36001c27 */
   4986 L_36001C25:
   4987     MEM32(edx) = ecx; /* 0x36001C25: mov dword ptr [edx], ecx */
   4988 L_36001C27:
   4989     MEM32(ecx + 0x8) = eax; /* 0x36001C27: mov dword ptr [ecx + 8], eax */
   4990     MEM32(eax + 0x4) = ecx; /* 0x36001C2A: mov dword ptr [eax + 4], ecx */
   4991 L_36001C2D:
   4992     ecx = MEM32(eax + 0x4); /* 0x36001C2D: mov ecx, dword ptr [eax + 4] */
   4993     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C30: mov byte ptr [ecx + 0x18], bl */
   4994     edx = MEM32(eax + 0x4); /* 0x36001C33: mov edx, dword ptr [eax + 4] */
   4995     ecx = MEM32(edx + 0x4); /* 0x36001C36: mov ecx, dword ptr [edx + 4] */
   4996     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x36001C39: mov byte ptr [ecx + 0x18], 0 */
   4997     edx = MEM32(eax + 0x4); /* 0x36001C3D: mov edx, dword ptr [eax + 4] */
   4998     ecx = MEM32(edx + 0x4); /* 0x36001C40: mov ecx, dword ptr [edx + 4] */
   4999     edx = MEM32(ecx + 0x8); /* 0x36001C43: mov edx, dword ptr [ecx + 8] */
   5000     edi = MEM32(edx); /* 0x36001C46: mov edi, dword ptr [edx] */
   5001     MEM32(ecx + 0x8) = edi; /* 0x36001C48: mov dword ptr [ecx + 8], edi */
   5002     edi = MEM32(edx); /* 0x36001C4B: mov edi, dword ptr [edx] */
   5003     /* cmp edi, MEM32(esi + 0x8) */ /* 0x36001C4D: cmp edi, dword ptr [esi + 8] */
   5004     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5005     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5006     _flag_k = FK_CMP;
   5007     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001C55; /* 0x36001C50: je 0x36001c55 */
   5008 L_36001C52:
   5009     MEM32(edi + 0x4) = ecx; /* 0x36001C52: mov dword ptr [edi + 4], ecx */
   5010 L_36001C55:
   5011     edi = MEM32(ecx + 0x4); /* 0x36001C55: mov edi, dword ptr [ecx + 4] */
   5012     MEM32(edx + 0x4) = edi; /* 0x36001C58: mov dword ptr [edx + 4], edi */
   5013     edi = MEM32(esi + 0x4); /* 0x36001C5B: mov edi, dword ptr [esi + 4] */
   5014     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x36001C5E: cmp ecx, dword ptr [edi + 4] */
   5015     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5017     _flag_k = FK_CMP;
   5018     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C68; /* 0x36001C61: jne 0x36001c68 */
   5019 L_36001C63:
   5020     MEM32(edi + 0x4) = edx; /* 0x36001C63: mov dword ptr [edi + 4], edx */
   5021     goto L_36001C76; /* 0x36001C66: jmp 0x36001c76 */
   5022 L_36001C68:
   5023     edi = MEM32(ecx + 0x4); /* 0x36001C68: mov edi, dword ptr [ecx + 4] */
   5024     /* cmp ecx, MEM32(edi) */ /* 0x36001C6B: cmp ecx, dword ptr [edi] */
   5025     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5027     _flag_k = FK_CMP;
   5028     if (CMP_NE(_flag_a, _flag_b)) goto L_36001C73; /* 0x36001C6D: jne 0x36001c73 */
   5029 L_36001C6F:
   5030     MEM32(edi) = edx; /* 0x36001C6F: mov dword ptr [edi], edx */
   5031     goto L_36001C76; /* 0x36001C71: jmp 0x36001c76 */
   5032 L_36001C73:
   5033     MEM32(edi + 0x8) = edx; /* 0x36001C73: mov dword ptr [edi + 8], edx */
   5034 L_36001C76:
   5035     MEM32(edx) = ecx; /* 0x36001C76: mov dword ptr [edx], ecx */
   5036 L_36001C78:
   5037     MEM32(ecx + 0x4) = edx; /* 0x36001C78: mov dword ptr [ecx + 4], edx */
   5038 L_36001C7B:
   5039     ecx = MEM32(esi + 0x4); /* 0x36001C7B: mov ecx, dword ptr [esi + 4] */
   5040     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36001C7E: cmp eax, dword ptr [ecx + 4] */
   5041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5043     _flag_k = FK_CMP;
   5044     RECOMP_BACKEDGE();
   5045     if (CMP_NE(_flag_a, _flag_b)) goto L_36001B07; /* 0x36001C81: jne 0x36001b07 */
   5046 L_36001C87:
   5047     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   5048     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   5049     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   5050     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   5051     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   5052     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   5053     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   5054     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   5055     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   5056     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   5057     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   5058     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   5059     RECOMP_REGS_OUT();
   5060 }
   5061 
   5062 void sub_36001C87(void) {
   5063     int _fpu_cmp = 0;
   5064     uint32_t _cf = 0;
   5065     int _df = 1;
   5066     uint32_t _flag_k = FK_NONE;
   5067     uint32_t _flag_a = 0, _flag_b = 0;
   5068     uint32_t _itail_tgt = 0;
   5069     RECOMP_REGS_LOCALS
   5070     RECOMP_ENTER(0x36001C87u);
   5071 
   5072 L_36001C87:
   5073     edx = MEM32(esi + 0x4); /* 0x36001C87: mov edx, dword ptr [esi + 4] */
   5074     eax = MEM32(edx + 0x4); /* 0x36001C8A: mov eax, dword ptr [edx + 4] */
   5075     ecx = MEM32(ebp + (-0x4)); /* 0x36001C8D: mov ecx, dword ptr [ebp - 4] */
   5076     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x36001C90: mov byte ptr [eax + 0x18], bl */
   5077     eax = MEM32(ebp + 0x8); /* 0x36001C93: mov eax, dword ptr [ebp + 8] */
   5078     edi = POP32_VAL(esp); /* 0x36001C96: pop edi */
   5079     esi = POP32_VAL(esp); /* 0x36001C97: pop esi */
   5080     MEM32(eax) = ecx; /* 0x36001C98: mov dword ptr [eax], ecx */
   5081     ebx = POP32_VAL(esp); /* 0x36001C9A: pop ebx */
   5082     esp = ebp; /* 0x36001C9B: mov esp, ebp */
   5083     ebp = POP32_VAL(esp); /* 0x36001C9D: pop ebp */
   5084     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36001C9E: ret 0x10 */
   5085     RECOMP_REGS_OUT();
   5086 }
   5087 
   5088 void sub_36001CB0(void) {
   5089     int _fpu_cmp = 0;
   5090     uint32_t _cf = 0;
   5091     int _df = 1;
   5092     uint32_t _flag_k = FK_NONE;
   5093     uint32_t _flag_a = 0, _flag_b = 0;
   5094     uint32_t _itail_tgt = 0;
   5095     RECOMP_REGS_LOCALS
   5096     RECOMP_ENTER(0x36001CB0u);
   5097 
   5098 L_36001CB0:
   5099     PUSH32(esp, ebp); /* 0x36001CB0: push ebp */
   5100     ebp = esp; /* 0x36001CB1: mov ebp, esp */
   5101     eax = MEM32(ecx + 0x4); /* 0x36001CB3: mov eax, dword ptr [ecx + 4] */
   5102     edx = MEM32(eax + 0x4); /* 0x36001CB6: mov edx, dword ptr [eax + 4] */
   5103     PUSH32(esp, edi); /* 0x36001CB9: push edi */
   5104     edi = MEM32(ecx + 0x8); /* 0x36001CBA: mov edi, dword ptr [ecx + 8] */
   5105     /* cmp edx, edi */ /* 0x36001CBD: cmp edx, edi */
   5106     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   5107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5108     _flag_k = FK_CMP;
   5109     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001CE8; /* 0x36001CBF: je 0x36001ce8 */
   5110 L_36001CC1:
   5111     PUSH32(esp, ebx); /* 0x36001CC1: push ebx */
   5112     ebx = MEM32(ebp + 0x8); /* 0x36001CC2: mov ebx, dword ptr [ebp + 8] */
   5113     PUSH32(esp, esi); /* 0x36001CC5: push esi */
   5114     esi = MEM32(ebx); /* 0x36001CC6: mov esi, dword ptr [ebx] */
   5115 L_36001CC8:
   5116     ecx = MEM32(edx + 0xC); /* 0x36001CC8: mov ecx, dword ptr [edx + 0xc] */
   5117     /* cmp esi, ecx */ /* 0x36001CCB: cmp esi, ecx */
   5118     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   5119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5120     _flag_k = FK_CMP;
   5121     if (CMP_G(_flag_a, _flag_b)) goto L_36001CD9; /* 0x36001CCD: jg 0x36001cd9 */
   5122 L_36001CCF:
   5123     if (CMP_L(_flag_a, _flag_b)) goto L_36001CDE; /* 0x36001CCF: jl 0x36001cde */
   5124 L_36001CD1:
   5125     ecx = MEM32(edx + 0x10); /* 0x36001CD1: mov ecx, dword ptr [edx + 0x10] */
   5126     /* cmp ecx, MEM32(ebx + 0x4) */ /* 0x36001CD4: cmp ecx, dword ptr [ebx + 4] */
   5127     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x4));
   5128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5129     _flag_k = FK_CMP;
   5130     if (CMP_GE(_flag_a, _flag_b)) goto L_36001CDE; /* 0x36001CD7: jge 0x36001cde */
   5131 L_36001CD9:
   5132     edx = MEM32(edx + 0x8); /* 0x36001CD9: mov edx, dword ptr [edx + 8] */
   5133     goto L_36001CE2; /* 0x36001CDC: jmp 0x36001ce2 */
   5134 L_36001CDE:
   5135     eax = edx; /* 0x36001CDE: mov eax, edx */
   5136     edx = MEM32(edx); /* 0x36001CE0: mov edx, dword ptr [edx] */
   5137 L_36001CE2:
   5138     /* cmp edx, edi */ /* 0x36001CE2: cmp edx, edi */
   5139     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi);
   5140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5141     _flag_k = FK_CMP;
   5142     RECOMP_BACKEDGE();
   5143     if (CMP_NE(_flag_a, _flag_b)) goto L_36001CC8; /* 0x36001CE4: jne 0x36001cc8 */
   5144 L_36001CE6:
   5145     esi = POP32_VAL(esp); /* 0x36001CE6: pop esi */
   5146     ebx = POP32_VAL(esp); /* 0x36001CE7: pop ebx */
   5147 L_36001CE8:
   5148     edi = POP32_VAL(esp); /* 0x36001CE8: pop edi */
   5149     ebp = POP32_VAL(esp); /* 0x36001CE9: pop ebp */
   5150     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36001CEA: ret 4 */
   5151     RECOMP_REGS_OUT();
   5152 }
   5153 
   5154 void sub_36001CF0(void) {
   5155     int _fpu_cmp = 0;
   5156     uint32_t _cf = 0;
   5157     int _df = 1;
   5158     uint32_t _flag_k = FK_NONE;
   5159     uint32_t _flag_a = 0, _flag_b = 0;
   5160     uint32_t _itail_tgt = 0;
   5161     RECOMP_REGS_LOCALS
   5162     RECOMP_ENTER(0x36001CF0u);
   5163 
   5164 L_36001CF0:
   5165     PUSH32(esp, ebp); /* 0x36001CF0: push ebp */
   5166     ebp = esp; /* 0x36001CF1: mov ebp, esp */
   5167     edx = MEM32(ebp + 0x8); /* 0x36001CF3: mov edx, dword ptr [ebp + 8] */
   5168     eax = MEM32(edx); /* 0x36001CF6: mov eax, dword ptr [edx] */
   5169     PUSH32(esp, esi); /* 0x36001CF8: push esi */
   5170     esi = MEM32(ebp + 0xC); /* 0x36001CF9: mov esi, dword ptr [ebp + 0xc] */
   5171     ecx = MEM32(esi); /* 0x36001CFC: mov ecx, dword ptr [esi] */
   5172     /* cmp ecx, eax */ /* 0x36001CFE: cmp ecx, eax */
   5173     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5175     _flag_k = FK_CMP;
   5176     if (CMP_G(_flag_a, _flag_b)) goto L_36001D11; /* 0x36001D00: jg 0x36001d11 */
   5177 L_36001D02:
   5178     if (CMP_L(_flag_a, _flag_b)) goto L_36001D0C; /* 0x36001D02: jl 0x36001d0c */
   5179 L_36001D04:
   5180     eax = MEM32(edx + 0x4); /* 0x36001D04: mov eax, dword ptr [edx + 4] */
   5181     /* cmp eax, MEM32(esi + 0x4) */ /* 0x36001D07: cmp eax, dword ptr [esi + 4] */
   5182     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   5183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5184     _flag_k = FK_CMP;
   5185     if (CMP_L(_flag_a, _flag_b)) goto L_36001D11; /* 0x36001D0A: jl 0x36001d11 */
   5186 L_36001D0C:
   5187     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5188     eax = 0; /* 0x36001D0C: xor eax, eax */
   5189     _cf = 0;
   5190     _flag_k = FK_TEST;
   5191     esi = POP32_VAL(esp); /* 0x36001D0E: pop esi */
   5192     ebp = POP32_VAL(esp); /* 0x36001D0F: pop ebp */
   5193     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001D10: ret  */
   5194 L_36001D11:
   5195     eax = 1; /* 0x36001D11: mov eax, 1 */
   5196     esi = POP32_VAL(esp); /* 0x36001D16: pop esi */
   5197     ebp = POP32_VAL(esp); /* 0x36001D17: pop ebp */
   5198     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001D18: ret  */
   5199     RECOMP_REGS_OUT();
   5200 }
   5201 
   5202 void sub_36001D20(void) {
   5203     int _fpu_cmp = 0;
   5204     uint32_t _cf = 0;
   5205     int _df = 1;
   5206     uint32_t _flag_k = FK_NONE;
   5207     uint32_t _flag_a = 0, _flag_b = 0;
   5208     uint32_t _itail_tgt = 0;
   5209     RECOMP_REGS_LOCALS
   5210     RECOMP_ENTER(0x36001D20u);
   5211 
   5212 L_36001D20:
   5213     PUSH32(esp, ebp); /* 0x36001D20: push ebp */
   5214     ebp = esp; /* 0x36001D21: mov ebp, esp */
   5215     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5217     esp = esp - 0xCu; /* 0x36001D23: sub esp, 0xc */
   5218     _flag_k = FK_CMP;
   5219     PUSH32(esp, ebx); /* 0x36001D26: push ebx */
   5220     ebx = MEM32(ebp + 0x8); /* 0x36001D27: mov ebx, dword ptr [ebp + 8] */
   5221     PUSH32(esp, esi); /* 0x36001D2A: push esi */
   5222     eax = ebp + 0x8; /* 0x36001D2B: lea eax, [ebp + 8] */
   5223     PUSH32(esp, eax); /* 0x36001D2E: push eax */
   5224     ecx = ebx; /* 0x36001D2F: mov ecx, ebx */
   5225     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36001D31: call dword ptr [0x3616fa8c] */
   5226     RECOMP_FLAGS_IN();
   5227     ecx = MEM32(ebp + 0x8); /* 0x36001D37: mov ecx, dword ptr [ebp + 8] */
   5228     eax = ecx; /* 0x36001D3A: mov eax, ecx */
   5229     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x36001D3C: cdq  */
   5230     esi = 0x3F1u; /* 0x36001D3D: mov esi, 0x3f1 */
   5231     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x36001D42: idiv esi */
   5232       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   5233       else { eax = 0; edx = 0; } }
   5234     /* test edx, edx */ /* 0x36001D44: test edx, edx */
   5235     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5236     _cf = 0;
   5237     _flag_k = FK_TEST;
   5238     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001E92; /* 0x36001D46: jne 0x36001e92 */
   5239 L_36001D4C:
   5240     /* test ecx, ecx */ /* 0x36001D4C: test ecx, ecx */
   5241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5242     _cf = 0;
   5243     _flag_k = FK_TEST;
   5244     if (TEST_LE(_flag_a, _flag_b)) goto L_36001E92; /* 0x36001D4E: jle 0x36001e92 */
   5245 L_36001D54:
   5246     eax = 0x81E722C3u; /* 0x36001D54: mov eax, 0x81e722c3 */
   5247     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36001D59: imul ecx */
   5248       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   5249       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   5250     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   5251     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5252     edx = edx + ecx; /* 0x36001D5B: add edx, ecx */
   5253     _flag_k = FK_ADD;
   5254     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x36001D5D: sar edx, 9 */
   5255     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5256     edx = (uint32_t)((int32_t)edx >> 9u);
   5257     ecx = edx; /* 0x36001D60: mov ecx, edx */
   5258     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36001D62: shr ecx, 0x1f */
   5259     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5260     ecx = ecx >> 31u; /* 0x36001D62: shr ecx, 0x1f */
   5261     edx = edx + ecx + (-0x1); /* 0x36001D65: lea edx, [edx + ecx - 1] */
   5262     /* cmp edx, 0x3E7u */ /* 0x36001D69: cmp edx, 0x3e7 */
   5263     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x3E7u);
   5264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5265     _flag_k = FK_CMP;
   5266     MEM32(ebp + 0x8) = edx; /* 0x36001D6F: mov dword ptr [ebp + 8], edx */
   5267     if (CMP_G(_flag_a, _flag_b)) goto L_36001E92; /* 0x36001D72: jg 0x36001e92 */
   5268 L_36001D78:
   5269     PUSH32(esp, edi); /* 0x36001D78: push edi */
   5270     edi = MEM32(ebp + 0xC); /* 0x36001D79: mov edi, dword ptr [ebp + 0xc] */
   5271     eax = MEM32(edi + 0x4); /* 0x36001D7C: mov eax, dword ptr [edi + 4] */
   5272     esi = MEM32(eax); /* 0x36001D7F: mov esi, dword ptr [eax] */
   5273     /* cmp esi, eax */ /* 0x36001D81: cmp esi, eax */
   5274     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5276     _flag_k = FK_CMP;
   5277     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001D9A; /* 0x36001D83: je 0x36001d9a */
   5278 L_36001D85:
   5279     edx = MEM32(esi + 0x8); /* 0x36001D85: mov edx, dword ptr [esi + 8] */
   5280     PUSH32(esp, edx); /* 0x36001D88: push edx */
   5281     RECOMP_ICALL(0x3615FCC4u); /* 0x36001D89: call 0x3615fcc4 */ /* not lifted */
   5282     RECOMP_FLAGS_IN();
   5283     esi = MEM32(esi); /* 0x36001D8E: mov esi, dword ptr [esi] */
   5284     eax = MEM32(edi + 0x4); /* 0x36001D90: mov eax, dword ptr [edi + 4] */
   5285     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5286     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5287     esp = esp + 4; /* 0x36001D93: add esp, 4 */
   5288     _flag_k = FK_ADD;
   5289     /* cmp esi, eax */ /* 0x36001D96: cmp esi, eax */
   5290     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5292     _flag_k = FK_CMP;
   5293     RECOMP_BACKEDGE();
   5294     if (CMP_NE(_flag_a, _flag_b)) goto L_36001D85; /* 0x36001D98: jne 0x36001d85 */
   5295 L_36001D9A:
   5296     eax = MEM32(edi + 0x4); /* 0x36001D9A: mov eax, dword ptr [edi + 4] */
   5297     esi = MEM32(eax); /* 0x36001D9D: mov esi, dword ptr [eax] */
   5298     /* cmp esi, eax */ /* 0x36001D9F: cmp esi, eax */
   5299     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5301     _flag_k = FK_CMP;
   5302     MEM32(ebp + (-0x8)) = eax; /* 0x36001DA1: mov dword ptr [ebp - 8], eax */
   5303     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001DE3; /* 0x36001DA4: je 0x36001de3 */
   5304 L_36001DA6:
   5305     eax = esi; /* 0x36001DA6: mov eax, esi */
   5306     esi = MEM32(esi); /* 0x36001DA8: mov esi, dword ptr [esi] */
   5307     MEM32(ebp + (-0x4)) = eax; /* 0x36001DAA: mov dword ptr [ebp - 4], eax */
   5308     PUSH32(esp, 0); /* 0x36001DAD: push 0 */
   5309     eax = ebp + (-0xC); /* 0x36001DAF: lea eax, [ebp - 0xc] */
   5310     PUSH32(esp, eax); /* 0x36001DB2: push eax */
   5311     ecx = ebp + (-0x4); /* 0x36001DB3: lea ecx, [ebp - 4] */
   5312     RECOMP_ICALL(0x360641D0u); /* 0x36001DB6: call 0x360641d0 */ /* not lifted */
   5313     RECOMP_FLAGS_IN();
   5314     eax = MEM32(eax); /* 0x36001DBB: mov eax, dword ptr [eax] */
   5315     ecx = MEM32(eax + 0x4); /* 0x36001DBD: mov ecx, dword ptr [eax + 4] */
   5316     edx = MEM32(eax); /* 0x36001DC0: mov edx, dword ptr [eax] */
   5317     MEM32(ecx) = edx; /* 0x36001DC2: mov dword ptr [ecx], edx */
   5318     ecx = MEM32(eax); /* 0x36001DC4: mov ecx, dword ptr [eax] */
   5319     edx = MEM32(eax + 0x4); /* 0x36001DC6: mov edx, dword ptr [eax + 4] */
   5320     PUSH32(esp, eax); /* 0x36001DC9: push eax */
   5321     MEM32(ecx + 0x4) = edx; /* 0x36001DCA: mov dword ptr [ecx + 4], edx */
   5322     RECOMP_ICALL(0x3615FCC4u); /* 0x36001DCD: call 0x3615fcc4 */ /* not lifted */
   5323     RECOMP_FLAGS_IN();
   5324     ecx = MEM32(edi + 0x8); /* 0x36001DD2: mov ecx, dword ptr [edi + 8] */
   5325     eax = MEM32(ebp + (-0x8)); /* 0x36001DD5: mov eax, dword ptr [ebp - 8] */
   5326     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5327     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5328     esp = esp + 4; /* 0x36001DD8: add esp, 4 */
   5329     _flag_k = FK_ADD;
   5330     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5331     ecx = ecx - 1; /* 0x36001DDB: dec ecx */
   5332     _flag_k = FK_DEC;
   5333     /* cmp esi, eax */ /* 0x36001DDC: cmp esi, eax */
   5334     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5336     _flag_k = FK_CMP;
   5337     MEM32(edi + 0x8) = ecx; /* 0x36001DDE: mov dword ptr [edi + 8], ecx */
   5338     RECOMP_BACKEDGE();
   5339     if (CMP_NE(_flag_a, _flag_b)) goto L_36001DA6; /* 0x36001DE1: jne 0x36001da6 */
   5340 L_36001DE3:
   5341     eax = MEM32(ebp + 0x8); /* 0x36001DE3: mov eax, dword ptr [ebp + 8] */
   5342     /* test eax, eax */ /* 0x36001DE6: test eax, eax */
   5343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5344     _cf = 0;
   5345     _flag_k = FK_TEST;
   5346     MEM32(ebp + (-0x4)) = 0; /* 0x36001DE8: mov dword ptr [ebp - 4], 0 */
   5347     if (TEST_LE(_flag_a, _flag_b)) goto L_36001E89; /* 0x36001DEF: jle 0x36001e89 */
   5348 L_36001DF5:
   5349     goto L_36001DFA; /* 0x36001DF5: jmp 0x36001dfa */
   5350 L_36001DF7:
   5351     edi = MEM32(ebp + 0xC); /* 0x36001DF7: mov edi, dword ptr [ebp + 0xc] */
   5352 L_36001DFA:
   5353     PUSH32(esp, 0xCu); /* 0x36001DFA: push 0xc */
   5354     RECOMP_ICALL(0x3615FD6Au); /* 0x36001DFC: call 0x3615fd6a */ /* not lifted */
   5355     RECOMP_FLAGS_IN();
   5356     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5357     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5358     esp = esp + 4; /* 0x36001E01: add esp, 4 */
   5359     _flag_k = FK_ADD;
   5360     esi = eax; /* 0x36001E04: mov esi, eax */
   5361     PUSH32(esp, esi); /* 0x36001E06: push esi */
   5362     ecx = ebx; /* 0x36001E07: mov ecx, ebx */
   5363     RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36001E09: call dword ptr [0x3616fae0] */
   5364     RECOMP_FLAGS_IN();
   5365     eax = esi + 0x4; /* 0x36001E0F: lea eax, [esi + 4] */
   5366     PUSH32(esp, eax); /* 0x36001E12: push eax */
   5367     ecx = ebx; /* 0x36001E13: mov ecx, ebx */
   5368     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36001E15: call dword ptr [0x3616fa8c] */
   5369     RECOMP_FLAGS_IN();
   5370     ecx = esi + 0x8; /* 0x36001E1B: lea ecx, [esi + 8] */
   5371     PUSH32(esp, ecx); /* 0x36001E1E: push ecx */
   5372     ecx = ebx; /* 0x36001E1F: mov ecx, ebx */
   5373     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36001E21: call dword ptr [0x3616fa8c] */
   5374     RECOMP_FLAGS_IN();
   5375     edx = esi + 0x1; /* 0x36001E27: lea edx, [esi + 1] */
   5376     PUSH32(esp, edx); /* 0x36001E2A: push edx */
   5377     ecx = ebx; /* 0x36001E2B: mov ecx, ebx */
   5378     RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36001E2D: call dword ptr [0x3616fae0] */
   5379     RECOMP_FLAGS_IN();
   5380     edi = MEM32(edi + 0x4); /* 0x36001E33: mov edi, dword ptr [edi + 4] */
   5381     eax = MEM32(edi + 0x4); /* 0x36001E36: mov eax, dword ptr [edi + 4] */
   5382     PUSH32(esp, 0xCu); /* 0x36001E39: push 0xc */
   5383     MEM32(ebp + (-0x8)) = eax; /* 0x36001E3B: mov dword ptr [ebp - 8], eax */
   5384     RECOMP_ICALL(0x3615FD6Au); /* 0x36001E3E: call 0x3615fd6a */ /* not lifted */
   5385     RECOMP_FLAGS_IN();
   5386     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5387     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5388     esp = esp + 4; /* 0x36001E43: add esp, 4 */
   5389     _flag_k = FK_ADD;
   5390     /* test edi, edi */ /* 0x36001E46: test edi, edi */
   5391     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5392     _cf = 0;
   5393     _flag_k = FK_TEST;
   5394     ecx = edi; /* 0x36001E48: mov ecx, edi */
   5395     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001E4E; /* 0x36001E4A: jne 0x36001e4e */
   5396 L_36001E4C:
   5397     ecx = eax; /* 0x36001E4C: mov ecx, eax */
   5398 L_36001E4E:
   5399     MEM32(eax) = ecx; /* 0x36001E4E: mov dword ptr [eax], ecx */
   5400     ecx = MEM32(ebp + (-0x8)); /* 0x36001E50: mov ecx, dword ptr [ebp - 8] */
   5401     /* test ecx, ecx */ /* 0x36001E53: test ecx, ecx */
   5402     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5403     _cf = 0;
   5404     _flag_k = FK_TEST;
   5405     if (TEST_NZ(_flag_a, _flag_b)) goto L_36001E59; /* 0x36001E55: jne 0x36001e59 */
   5406 L_36001E57:
   5407     ecx = eax; /* 0x36001E57: mov ecx, eax */
   5408 L_36001E59:
   5409     MEM32(eax + 0x4) = ecx; /* 0x36001E59: mov dword ptr [eax + 4], ecx */
   5410     MEM32(edi + 0x4) = eax; /* 0x36001E5C: mov dword ptr [edi + 4], eax */
   5411     ecx = MEM32(eax + 0x4); /* 0x36001E5F: mov ecx, dword ptr [eax + 4] */
   5412     MEM32(ecx) = eax; /* 0x36001E62: mov dword ptr [ecx], eax */
   5413     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   5414     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5415     eax = eax + 8; /* 0x36001E64: add eax, 8 */
   5416     _flag_k = FK_ADD;
   5417     /* test eax, eax */ /* 0x36001E67: test eax, eax */
   5418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5419     _cf = 0;
   5420     _flag_k = FK_TEST;
   5421     if (TEST_Z(_flag_a, _flag_b)) goto L_36001E6D; /* 0x36001E69: je 0x36001e6d */
   5422 L_36001E6B:
   5423     MEM32(eax) = esi; /* 0x36001E6B: mov dword ptr [eax], esi */
   5424 L_36001E6D:
   5425     eax = MEM32(ebp + 0xC); /* 0x36001E6D: mov eax, dword ptr [ebp + 0xc] */
   5426     esi = MEM32(eax + 0x8); /* 0x36001E70: mov esi, dword ptr [eax + 8] */
   5427     ecx = MEM32(ebp + 0x8); /* 0x36001E73: mov ecx, dword ptr [ebp + 8] */
   5428     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   5429     esi = esi + 1; /* 0x36001E76: inc esi */
   5430     _flag_k = FK_INC;
   5431     MEM32(eax + 0x8) = esi; /* 0x36001E77: mov dword ptr [eax + 8], esi */
   5432     eax = MEM32(ebp + (-0x4)); /* 0x36001E7A: mov eax, dword ptr [ebp - 4] */
   5433     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5434     eax = eax + 1; /* 0x36001E7D: inc eax */
   5435     _flag_k = FK_INC;
   5436     /* cmp eax, ecx */ /* 0x36001E7E: cmp eax, ecx */
   5437     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5439     _flag_k = FK_CMP;
   5440     MEM32(ebp + (-0x4)) = eax; /* 0x36001E80: mov dword ptr [ebp - 4], eax */
   5441     RECOMP_BACKEDGE();
   5442     if (CMP_L(_flag_a, _flag_b)) goto L_36001DF7; /* 0x36001E83: jl 0x36001df7 */
   5443 L_36001E89:
   5444     edi = POP32_VAL(esp); /* 0x36001E89: pop edi */
   5445     esi = POP32_VAL(esp); /* 0x36001E8A: pop esi */
   5446     eax = ebx; /* 0x36001E8B: mov eax, ebx */
   5447     ebx = POP32_VAL(esp); /* 0x36001E8D: pop ebx */
   5448     esp = ebp; /* 0x36001E8E: mov esp, ebp */
   5449     ebp = POP32_VAL(esp); /* 0x36001E90: pop ebp */
   5450     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001E91: ret  */
   5451 L_36001E92:
   5452     PUSH32(esp, 4); /* 0x36001E92: push 4 */
   5453     ecx = ebx; /* 0x36001E94: mov ecx, ebx */
   5454     RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x36001E96: call dword ptr [0x3616fae4] */
   5455     RECOMP_FLAGS_IN();
   5456     esi = POP32_VAL(esp); /* 0x36001E9C: pop esi */
   5457     eax = ebx; /* 0x36001E9D: mov eax, ebx */
   5458     ebx = POP32_VAL(esp); /* 0x36001E9F: pop ebx */
   5459     esp = ebp; /* 0x36001EA0: mov esp, ebp */
   5460     ebp = POP32_VAL(esp); /* 0x36001EA2: pop ebp */
   5461     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001EA3: ret  */
   5462     RECOMP_REGS_OUT();
   5463 }
   5464 
   5465 void sub_36001EB0(void) {
   5466     int _fpu_cmp = 0;
   5467     uint32_t _cf = 0;
   5468     int _df = 1;
   5469     uint32_t _flag_k = FK_NONE;
   5470     uint32_t _flag_a = 0, _flag_b = 0;
   5471     uint32_t _itail_tgt = 0;
   5472     RECOMP_REGS_LOCALS
   5473     RECOMP_ENTER(0x36001EB0u);
   5474 
   5475 L_36001EB0:
   5476     goto L_36001EC0; /* 0x36001EB0: jmp 0x36001ec0 */
   5477 L_36001EC0:
   5478     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5479     eax = 0; /* 0x36001EC0: xor eax, eax */
   5480     _cf = 0;
   5481     _flag_k = FK_TEST;
   5482     MEM32(0x362EA510) = eax; /* 0x36001EC2: mov dword ptr [0x362ea510], eax */
   5483     MEM32(0x362EA514) = eax; /* 0x36001EC7: mov dword ptr [0x362ea514], eax */
   5484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001ECC: ret  */
   5485     RECOMP_REGS_OUT();
   5486 }
   5487 
   5488 void sub_36001EC0(void) {
   5489     int _fpu_cmp = 0;
   5490     uint32_t _cf = 0;
   5491     int _df = 1;
   5492     uint32_t _flag_k = FK_NONE;
   5493     uint32_t _flag_a = 0, _flag_b = 0;
   5494     uint32_t _itail_tgt = 0;
   5495     RECOMP_REGS_LOCALS
   5496     RECOMP_ENTER(0x36001EC0u);
   5497 
   5498 L_36001EC0:
   5499     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5500     eax = 0; /* 0x36001EC0: xor eax, eax */
   5501     _cf = 0;
   5502     _flag_k = FK_TEST;
   5503     MEM32(0x362EA510) = eax; /* 0x36001EC2: mov dword ptr [0x362ea510], eax */
   5504     MEM32(0x362EA514) = eax; /* 0x36001EC7: mov dword ptr [0x362ea514], eax */
   5505     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001ECC: ret  */
   5506     RECOMP_REGS_OUT();
   5507 }
   5508 
   5509 void sub_36001ED0(void) {
   5510     int _fpu_cmp = 0;
   5511     uint32_t _cf = 0;
   5512     int _df = 1;
   5513     uint32_t _flag_k = FK_NONE;
   5514     uint32_t _flag_a = 0, _flag_b = 0;
   5515     uint32_t _itail_tgt = 0;
   5516     RECOMP_REGS_LOCALS
   5517     RECOMP_ENTER(0x36001ED0u);
   5518 
   5519 L_36001ED0:
   5520     PUSH32(esp, ebp); /* 0x36001ED0: push ebp */
   5521     ebp = esp; /* 0x36001ED1: mov ebp, esp */
   5522     PUSH32(esp, 0xFFFFFFFFu); /* 0x36001ED3: push -1 */
   5523     PUSH32(esp, 0x36160199u); /* 0x36001ED5: push 0x36160199 */
   5524     eax = MEM32(FS_BASE + (0)); /* 0x36001EDA: mov eax, dword ptr fs:[0] */
   5525     PUSH32(esp, eax); /* 0x36001EE0: push eax */
   5526     MEM32(FS_BASE + (0)) = esp; /* 0x36001EE1: mov dword ptr fs:[0], esp */
   5527     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5529     esp = esp - 0xCu; /* 0x36001EE8: sub esp, 0xc */
   5530     _flag_k = FK_CMP;
   5531     PUSH32(esp, ebx); /* 0x36001EEB: push ebx */
   5532     PUSH32(esp, esi); /* 0x36001EEC: push esi */
   5533     esi = ecx; /* 0x36001EED: mov esi, ecx */
   5534     PUSH32(esp, edi); /* 0x36001EEF: push edi */
   5535     MEM32(ebp + (-0x14)) = esi; /* 0x36001EF0: mov dword ptr [ebp - 0x14], esi */
   5536     RECOMP_ICALL(0x3602FD30u); /* 0x36001EF3: call 0x3602fd30 */ /* not lifted */
   5537     RECOMP_FLAGS_IN();
   5538     edi = esi + 0x8; /* 0x36001EF8: lea edi, [esi + 8] */
   5539     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5540     ebx = 0; /* 0x36001EFB: xor ebx, ebx */
   5541     _cf = 0;
   5542     _flag_k = FK_TEST;
   5543     ecx = edi; /* 0x36001EFD: mov ecx, edi */
   5544     MEM32(ebp + (-0x4)) = ebx; /* 0x36001EFF: mov dword ptr [ebp - 4], ebx */
   5545     RECOMP_ICALL(0x3602EB80u); /* 0x36001F02: call 0x3602eb80 */ /* not lifted */
   5546     RECOMP_FLAGS_IN();
   5547     MEM32(esi + 0x24) = ebx; /* 0x36001F07: mov dword ptr [esi + 0x24], ebx */
   5548     MEM32(esi + 0x28) = ebx; /* 0x36001F0A: mov dword ptr [esi + 0x28], ebx */
   5549     MEM32(esi + 0x2C) = ebx; /* 0x36001F0D: mov dword ptr [esi + 0x2c], ebx */
   5550     MEM32(esi + 0x30) = ebx; /* 0x36001F10: mov dword ptr [esi + 0x30], ebx */
   5551     PUSH32(esp, 0x10u); /* 0x36001F13: push 0x10 */
   5552     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36001F15: mov byte ptr [ebp - 4], 1 */
   5553     MEM32(esi) = 0x36170398u; /* 0x36001F19: mov dword ptr [esi], 0x36170398 */
   5554     MEM32(edi) = 0x36170388u; /* 0x36001F1F: mov dword ptr [edi], 0x36170388 */
   5555     RECOMP_ICALL(0x3615FD6Au); /* 0x36001F25: call 0x3615fd6a */ /* not lifted */
   5556     RECOMP_FLAGS_IN();
   5557     edi = eax; /* 0x36001F2A: mov edi, eax */
   5558     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5560     esp = esp + 4; /* 0x36001F2C: add esp, 4 */
   5561     _flag_k = FK_ADD;
   5562     MEM32(ebp + (-0x18)) = edi; /* 0x36001F2F: mov dword ptr [ebp - 0x18], edi */
   5563     /* cmp edi, ebx */ /* 0x36001F32: cmp edi, ebx */
   5564     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5566     _flag_k = FK_CMP;
   5567     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36001F34: mov byte ptr [ebp - 4], 2 */
   5568     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001F6B; /* 0x36001F38: je 0x36001f6b */
   5569 L_36001F3A:
   5570     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36001F3A: mov al, byte ptr [ebp - 0xd] */
   5571     PUSH32(esp, 0x6Cu); /* 0x36001F3D: push 0x6c */
   5572     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x36001F3F: mov byte ptr [edi], al */
   5573     RECOMP_ICALL(0x3615FD6Au); /* 0x36001F41: call 0x3615fd6a */ /* not lifted */
   5574     RECOMP_FLAGS_IN();
   5575     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5577     esp = esp + 4; /* 0x36001F46: add esp, 4 */
   5578     _flag_k = FK_ADD;
   5579     MEM32(edi + 0x4) = eax; /* 0x36001F49: mov dword ptr [edi + 4], eax */
   5580     ecx = 0x1Bu; /* 0x36001F4C: mov ecx, 0x1b */
   5581 L_36001F51:
   5582     /* cmp eax, ebx */ /* 0x36001F51: cmp eax, ebx */
   5583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5585     _flag_k = FK_CMP;
   5586     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001F57; /* 0x36001F53: je 0x36001f57 */
   5587 L_36001F55:
   5588     MEM32(eax) = ebx; /* 0x36001F55: mov dword ptr [eax], ebx */
   5589 L_36001F57:
   5590     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   5591     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5592     eax = eax + 4; /* 0x36001F57: add eax, 4 */
   5593     _flag_k = FK_ADD;
   5594     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5595     ecx = ecx - 1; /* 0x36001F5A: dec ecx */
   5596     _flag_k = FK_DEC;
   5597     RECOMP_BACKEDGE();
   5598     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36001F51; /* 0x36001F5B: jne 0x36001f51 */
   5599 L_36001F5D:
   5600     eax = MEM32(edi + 0x4); /* 0x36001F5D: mov eax, dword ptr [edi + 4] */
   5601     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Cu);
   5602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5603     eax = eax + 0x6Cu; /* 0x36001F60: add eax, 0x6c */
   5604     _flag_k = FK_ADD;
   5605     MEM32(edi + 0x8) = eax; /* 0x36001F63: mov dword ptr [edi + 8], eax */
   5606     MEM32(edi + 0xC) = eax; /* 0x36001F66: mov dword ptr [edi + 0xc], eax */
   5607     goto L_36001F6D; /* 0x36001F69: jmp 0x36001f6d */
   5608 L_36001F6B:
   5609     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5610     edi = 0; /* 0x36001F6B: xor edi, edi */
   5611     _cf = 0;
   5612     _flag_k = FK_TEST;
   5613 L_36001F6D:
   5614     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36001F6D: mov byte ptr [ebp - 4], 1 */
   5615     MEM32(esi + 0x1C) = edi; /* 0x36001F71: mov dword ptr [esi + 0x1c], edi */
   5616     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5617     eax = 0; /* 0x36001F74: xor eax, eax */
   5618     _cf = 0;
   5619     _flag_k = FK_TEST;
   5620 L_36001F76:
   5621     ecx = MEM32(esi + 0x1C); /* 0x36001F76: mov ecx, dword ptr [esi + 0x1c] */
   5622     ecx = MEM32(ecx + 0x4); /* 0x36001F79: mov ecx, dword ptr [ecx + 4] */
   5623     MEM32(eax + ecx) = ebx; /* 0x36001F7C: mov dword ptr [eax + ecx], ebx */
   5624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   5625     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5626     eax = eax + 4; /* 0x36001F7F: add eax, 4 */
   5627     _flag_k = FK_ADD;
   5628     /* cmp eax, 0x6Cu */ /* 0x36001F82: cmp eax, 0x6c */
   5629     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Cu);
   5630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5631     _flag_k = FK_CMP;
   5632     RECOMP_BACKEDGE();
   5633     if (CMP_L(_flag_a, _flag_b)) goto L_36001F76; /* 0x36001F85: jl 0x36001f76 */
   5634 L_36001F87:
   5635     PUSH32(esp, 0x34u); /* 0x36001F87: push 0x34 */
   5636     RECOMP_ICALL(0x3615FD6Au); /* 0x36001F89: call 0x3615fd6a */ /* not lifted */
   5637     RECOMP_FLAGS_IN();
   5638     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5640     esp = esp + 4; /* 0x36001F8E: add esp, 4 */
   5641     _flag_k = FK_ADD;
   5642     MEM32(ebp + (-0x18)) = eax; /* 0x36001F91: mov dword ptr [ebp - 0x18], eax */
   5643     /* cmp eax, ebx */ /* 0x36001F94: cmp eax, ebx */
   5644     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5646     _flag_k = FK_CMP;
   5647     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36001F96: mov byte ptr [ebp - 4], 3 */
   5648     if (CMP_EQ(_flag_a, _flag_b)) goto L_36001FA5; /* 0x36001F9A: je 0x36001fa5 */
   5649 L_36001F9C:
   5650     ecx = eax; /* 0x36001F9C: mov ecx, eax */
   5651     RECOMP_ICALL(0x360BFE20u); /* 0x36001F9E: call 0x360bfe20 */ /* not lifted */
   5652     RECOMP_FLAGS_IN();
   5653     goto L_36001FA7; /* 0x36001FA3: jmp 0x36001fa7 */
   5654 L_36001FA5:
   5655     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5656     eax = 0; /* 0x36001FA5: xor eax, eax */
   5657     _cf = 0;
   5658     _flag_k = FK_TEST;
   5659 L_36001FA7:
   5660     edx = MEM32(esi + 0x1C); /* 0x36001FA7: mov edx, dword ptr [esi + 0x1c] */
   5661     MEM32(esi + 0x20) = eax; /* 0x36001FAA: mov dword ptr [esi + 0x20], eax */
   5662     ecx = MEM32(edx + 0x4); /* 0x36001FAD: mov ecx, dword ptr [edx + 4] */
   5663     MEM32(ecx + 0x24) = eax; /* 0x36001FB0: mov dword ptr [ecx + 0x24], eax */
   5664     ecx = MEM32(ebp + (-0xC)); /* 0x36001FB3: mov ecx, dword ptr [ebp - 0xc] */
   5665     MEM32(esi + 0x34) = ebx; /* 0x36001FB6: mov dword ptr [esi + 0x34], ebx */
   5666     MEM32(esi + 0x38) = ebx; /* 0x36001FB9: mov dword ptr [esi + 0x38], ebx */
   5667     edi = POP32_VAL(esp); /* 0x36001FBC: pop edi */
   5668     MEM8(esi + 0x3C) = (uint8_t)(1); /* 0x36001FBD: mov byte ptr [esi + 0x3c], 1 */
   5669     eax = esi; /* 0x36001FC1: mov eax, esi */
   5670     esi = POP32_VAL(esp); /* 0x36001FC3: pop esi */
   5671     ebx = POP32_VAL(esp); /* 0x36001FC4: pop ebx */
   5672     MEM32(FS_BASE + (0)) = ecx; /* 0x36001FC5: mov dword ptr fs:[0], ecx */
   5673     esp = ebp; /* 0x36001FCC: mov esp, ebp */
   5674     ebp = POP32_VAL(esp); /* 0x36001FCE: pop ebp */
   5675     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36001FCF: ret  */
   5676     RECOMP_REGS_OUT();
   5677 }
   5678 
   5679 void sub_36001FD0(void) {
   5680     int _fpu_cmp = 0;
   5681     uint32_t _cf = 0;
   5682     int _df = 1;
   5683     uint32_t _flag_k = FK_NONE;
   5684     uint32_t _flag_a = 0, _flag_b = 0;
   5685     uint32_t _itail_tgt = 0;
   5686     RECOMP_REGS_LOCALS
   5687     RECOMP_ENTER(0x36001FD0u);
   5688 
   5689 L_36001FD0:
   5690     PUSH32(esp, ebp); /* 0x36001FD0: push ebp */
   5691     ebp = esp; /* 0x36001FD1: mov ebp, esp */
   5692     PUSH32(esp, esi); /* 0x36001FD3: push esi */
   5693     esi = ecx; /* 0x36001FD4: mov esi, ecx */
   5694     RECOMP_ICALL(0x36002000u); /* 0x36001FD6: call 0x36002000 */ /* not lifted */
   5695     RECOMP_FLAGS_IN();
   5696     /* test MEM8(ebp + 0x8), 1 */ /* 0x36001FDB: test byte ptr [ebp + 8], 1 */
   5697     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5698     _cf = 0;
   5699     _flag_k = FK_NARROW(FK_TEST, 24);
   5700     if (TEST_Z(_flag_a, _flag_b)) goto L_36001FEA; /* 0x36001FDF: je 0x36001fea */
   5701 L_36001FE1:
   5702     PUSH32(esp, esi); /* 0x36001FE1: push esi */
   5703     RECOMP_ICALL(0x3615FCC4u); /* 0x36001FE2: call 0x3615fcc4 */ /* not lifted */
   5704     RECOMP_FLAGS_IN();
   5705     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5706     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5707     esp = esp + 4; /* 0x36001FE7: add esp, 4 */
   5708     _flag_k = FK_ADD;
   5709 L_36001FEA:
   5710     eax = esi; /* 0x36001FEA: mov eax, esi */
   5711     esi = POP32_VAL(esp); /* 0x36001FEC: pop esi */
   5712     ebp = POP32_VAL(esp); /* 0x36001FED: pop ebp */
   5713     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36001FEE: ret 4 */
   5714     RECOMP_REGS_OUT();
   5715 }
   5716 
   5717 void sub_36002000(void) {
   5718     int _fpu_cmp = 0;
   5719     uint32_t _cf = 0;
   5720     int _df = 1;
   5721     uint32_t _flag_k = FK_NONE;
   5722     uint32_t _flag_a = 0, _flag_b = 0;
   5723     uint32_t _itail_tgt = 0;
   5724     RECOMP_REGS_LOCALS
   5725     RECOMP_ENTER(0x36002000u);
   5726 
   5727 L_36002000:
   5728     PUSH32(esp, ebp); /* 0x36002000: push ebp */
   5729     ebp = esp; /* 0x36002001: mov ebp, esp */
   5730     PUSH32(esp, 0xFFFFFFFFu); /* 0x36002003: push -1 */
   5731     PUSH32(esp, 0x361601DFu); /* 0x36002005: push 0x361601df */
   5732     eax = MEM32(FS_BASE + (0)); /* 0x3600200A: mov eax, dword ptr fs:[0] */
   5733     PUSH32(esp, eax); /* 0x36002010: push eax */
   5734     MEM32(FS_BASE + (0)) = esp; /* 0x36002011: mov dword ptr fs:[0], esp */
   5735     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5737     esp = esp - 0xCu; /* 0x36002018: sub esp, 0xc */
   5738     _flag_k = FK_CMP;
   5739     PUSH32(esp, ebx); /* 0x3600201B: push ebx */
   5740     PUSH32(esp, esi); /* 0x3600201C: push esi */
   5741     esi = ecx; /* 0x3600201D: mov esi, ecx */
   5742     MEM32(ebp + (-0x10)) = esi; /* 0x3600201F: mov dword ptr [ebp - 0x10], esi */
   5743     MEM32(esi) = 0x36170398u; /* 0x36002022: mov dword ptr [esi], 0x36170398 */
   5744     MEM32(esi + 0x8) = 0x36170388u; /* 0x36002028: mov dword ptr [esi + 8], 0x36170388 */
   5745     eax = MEM32(esi + 0x1C); /* 0x3600202F: mov eax, dword ptr [esi + 0x1c] */
   5746     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5747     ebx = 0; /* 0x36002032: xor ebx, ebx */
   5748     _cf = 0;
   5749     _flag_k = FK_TEST;
   5750     /* cmp eax, ebx */ /* 0x36002034: cmp eax, ebx */
   5751     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5753     _flag_k = FK_CMP;
   5754     MEM32(ebp + (-0x4)) = 1; /* 0x36002036: mov dword ptr [ebp - 4], 1 */
   5755     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002086; /* 0x3600203D: je 0x36002086 */
   5756 L_3600203F:
   5757     PUSH32(esp, edi); /* 0x3600203F: push edi */
   5758     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5759     edi = 0; /* 0x36002040: xor edi, edi */
   5760     _cf = 0;
   5761     _flag_k = FK_TEST;
   5762 L_36002042:
   5763     eax = MEM32(esi + 0x1C); /* 0x36002042: mov eax, dword ptr [esi + 0x1c] */
   5764     eax = MEM32(eax + 0x4); /* 0x36002045: mov eax, dword ptr [eax + 4] */
   5765     ecx = MEM32(edi + eax); /* 0x36002048: mov ecx, dword ptr [edi + eax] */
   5766     /* cmp ecx, ebx */ /* 0x3600204B: cmp ecx, ebx */
   5767     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   5768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5769     _flag_k = FK_CMP;
   5770     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002055; /* 0x3600204D: je 0x36002055 */
   5771 L_3600204F:
   5772     edx = MEM32(ecx); /* 0x3600204F: mov edx, dword ptr [ecx] */
   5773     PUSH32(esp, 1); /* 0x36002051: push 1 */
   5774     RECOMP_ICALL(MEM32(edx)); /* 0x36002053: call dword ptr [edx] */
   5775     RECOMP_FLAGS_IN();
   5776 L_36002055:
   5777     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   5778     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5779     edi = edi + 4; /* 0x36002055: add edi, 4 */
   5780     _flag_k = FK_ADD;
   5781     /* cmp edi, 0x6Cu */ /* 0x36002058: cmp edi, 0x6c */
   5782     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x6Cu);
   5783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5784     _flag_k = FK_CMP;
   5785     RECOMP_BACKEDGE();
   5786     if (CMP_L(_flag_a, _flag_b)) goto L_36002042; /* 0x3600205B: jl 0x36002042 */
   5787 L_3600205D:
   5788     edi = MEM32(esi + 0x1C); /* 0x3600205D: mov edi, dword ptr [esi + 0x1c] */
   5789     /* cmp edi, ebx */ /* 0x36002060: cmp edi, ebx */
   5790     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5792     _flag_k = FK_CMP;
   5793     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002082; /* 0x36002062: je 0x36002082 */
   5794 L_36002064:
   5795     eax = MEM32(edi + 0x4); /* 0x36002064: mov eax, dword ptr [edi + 4] */
   5796     PUSH32(esp, eax); /* 0x36002067: push eax */
   5797     MEM32(ebp + (-0x14)) = eax; /* 0x36002068: mov dword ptr [ebp - 0x14], eax */
   5798     RECOMP_ICALL(0x3615FCC4u); /* 0x3600206B: call 0x3615fcc4 */ /* not lifted */
   5799     RECOMP_FLAGS_IN();
   5800     PUSH32(esp, edi); /* 0x36002070: push edi */
   5801     MEM32(edi + 0x4) = ebx; /* 0x36002071: mov dword ptr [edi + 4], ebx */
   5802     MEM32(edi + 0x8) = ebx; /* 0x36002074: mov dword ptr [edi + 8], ebx */
   5803     MEM32(edi + 0xC) = ebx; /* 0x36002077: mov dword ptr [edi + 0xc], ebx */
   5804     RECOMP_ICALL(0x3615FCC4u); /* 0x3600207A: call 0x3615fcc4 */ /* not lifted */
   5805     RECOMP_FLAGS_IN();
   5806     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5807     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5808     esp = esp + 8; /* 0x3600207F: add esp, 8 */
   5809     _flag_k = FK_ADD;
   5810 L_36002082:
   5811     MEM32(esi + 0x1C) = ebx; /* 0x36002082: mov dword ptr [esi + 0x1c], ebx */
   5812     edi = POP32_VAL(esp); /* 0x36002085: pop edi */
   5813 L_36002086:
   5814     ecx = esi; /* 0x36002086: mov ecx, esi */
   5815     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   5816     _cf = (ecx) != 0;
   5817     ecx = (uint32_t)(-(int32_t)ecx); /* 0x36002088: neg ecx */
   5818     _flag_k = FK_CMP;
   5819     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3600208A: sbb ecx, ecx */
   5820       ecx = _sc ? 0xFFFFFFFFu : 0;
   5821       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5822       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5823     eax = esi + 0x8; /* 0x3600208C: lea eax, [esi + 8] */
   5824     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5825     ecx = ecx & eax; /* 0x3600208F: and ecx, eax */
   5826     _cf = 0;
   5827     _flag_k = FK_TEST;
   5828     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36002091: mov byte ptr [ebp - 4], bl */
   5829     RECOMP_ICALL(0x3602EC70u); /* 0x36002094: call 0x3602ec70 */ /* not lifted */
   5830     RECOMP_FLAGS_IN();
   5831     ecx = esi; /* 0x36002099: mov ecx, esi */
   5832     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3600209B: mov dword ptr [ebp - 4], 0xffffffff */
   5833     RECOMP_ICALL(0x3602FDE0u); /* 0x360020A2: call 0x3602fde0 */ /* not lifted */
   5834     RECOMP_FLAGS_IN();
   5835     ecx = MEM32(ebp + (-0xC)); /* 0x360020A7: mov ecx, dword ptr [ebp - 0xc] */
   5836     esi = POP32_VAL(esp); /* 0x360020AA: pop esi */
   5837     ebx = POP32_VAL(esp); /* 0x360020AB: pop ebx */
   5838     MEM32(FS_BASE + (0)) = ecx; /* 0x360020AC: mov dword ptr fs:[0], ecx */
   5839     esp = ebp; /* 0x360020B3: mov esp, ebp */
   5840     ebp = POP32_VAL(esp); /* 0x360020B5: pop ebp */
   5841     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360020B6: ret  */
   5842     RECOMP_REGS_OUT();
   5843 }
   5844 
   5845 void sub_360020C0(void) {
   5846     int _fpu_cmp = 0;
   5847     uint32_t _cf = 0;
   5848     int _df = 1;
   5849     uint32_t _flag_k = FK_NONE;
   5850     uint32_t _flag_a = 0, _flag_b = 0;
   5851     uint32_t _itail_tgt = 0;
   5852     RECOMP_REGS_LOCALS
   5853     RECOMP_ENTER(0x360020C0u);
   5854 
   5855 L_360020C0:
   5856     PUSH32(esp, ebp); /* 0x360020C0: push ebp */
   5857     ebp = esp; /* 0x360020C1: mov ebp, esp */
   5858     eax = MEM32(ecx + 0x1C); /* 0x360020C3: mov eax, dword ptr [ecx + 0x1c] */
   5859     ecx = MEM32(eax + 0x4); /* 0x360020C6: mov ecx, dword ptr [eax + 4] */
   5860     edx = MEM32(ebp + 0x8); /* 0x360020C9: mov edx, dword ptr [ebp + 8] */
   5861     eax = MEM32(ecx + edx * 4); /* 0x360020CC: mov eax, dword ptr [ecx + edx*4] */
   5862     ebp = POP32_VAL(esp); /* 0x360020CF: pop ebp */
   5863     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360020D0: ret 4 */
   5864     RECOMP_REGS_OUT();
   5865 }
   5866 
   5867 void sub_360020E0(void) {
   5868     int _fpu_cmp = 0;
   5869     uint32_t _cf = 0;
   5870     int _df = 1;
   5871     uint32_t _flag_k = FK_NONE;
   5872     uint32_t _flag_a = 0, _flag_b = 0;
   5873     uint32_t _itail_tgt = 0;
   5874     RECOMP_REGS_LOCALS
   5875     RECOMP_ENTER(0x360020E0u);
   5876 
   5877 L_360020E0:
   5878     PUSH32(esp, ebp); /* 0x360020E0: push ebp */
   5879     ebp = esp; /* 0x360020E1: mov ebp, esp */
   5880     eax = MEM32(FS_BASE + (0)); /* 0x360020E3: mov eax, dword ptr fs:[0] */
   5881     PUSH32(esp, 0xFFFFFFFFu); /* 0x360020E9: push -1 */
   5882     PUSH32(esp, 0x361601FBu); /* 0x360020EB: push 0x361601fb */
   5883     PUSH32(esp, eax); /* 0x360020F0: push eax */
   5884     MEM32(FS_BASE + (0)) = esp; /* 0x360020F1: mov dword ptr fs:[0], esp */
   5885     PUSH32(esp, esi); /* 0x360020F8: push esi */
   5886     esi = ecx; /* 0x360020F9: mov esi, ecx */
   5887     eax = MEM32(esi + 0x1C); /* 0x360020FB: mov eax, dword ptr [esi + 0x1c] */
   5888     eax = MEM32(eax + 0x4); /* 0x360020FE: mov eax, dword ptr [eax + 4] */
   5889     PUSH32(esp, edi); /* 0x36002101: push edi */
   5890     edi = MEM32(ebp + 0x8); /* 0x36002102: mov edi, dword ptr [ebp + 8] */
   5891     /* cmp MEM32(eax + edi * 4), 0 */ /* 0x36002105: cmp dword ptr [eax + edi*4], 0 */
   5892     _flag_a = (uint32_t)(MEM32(eax + edi * 4)); _flag_b = (uint32_t)(0);
   5893     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5894     _flag_k = FK_CMP;
   5895     if (CMP_NE(_flag_a, _flag_b)) goto L_36002137; /* 0x36002109: jne 0x36002137 */
   5896 L_3600210B:
   5897     PUSH32(esp, 0x34u); /* 0x3600210B: push 0x34 */
   5898     RECOMP_ICALL(0x3615FD6Au); /* 0x3600210D: call 0x3615fd6a */ /* not lifted */
   5899     RECOMP_FLAGS_IN();
   5900     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5901     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5902     esp = esp + 4; /* 0x36002112: add esp, 4 */
   5903     _flag_k = FK_ADD;
   5904     MEM32(ebp + 0x8) = eax; /* 0x36002115: mov dword ptr [ebp + 8], eax */
   5905     /* test eax, eax */ /* 0x36002118: test eax, eax */
   5906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5907     _cf = 0;
   5908     _flag_k = FK_TEST;
   5909     MEM32(ebp + (-0x4)) = 0; /* 0x3600211A: mov dword ptr [ebp - 4], 0 */
   5910     if (TEST_Z(_flag_a, _flag_b)) goto L_3600212C; /* 0x36002121: je 0x3600212c */
   5911 L_36002123:
   5912     ecx = eax; /* 0x36002123: mov ecx, eax */
   5913     RECOMP_ICALL(0x360BFE20u); /* 0x36002125: call 0x360bfe20 */ /* not lifted */
   5914     RECOMP_FLAGS_IN();
   5915     goto L_3600212E; /* 0x3600212A: jmp 0x3600212e */
   5916 L_3600212C:
   5917     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5918     eax = 0; /* 0x3600212C: xor eax, eax */
   5919     _cf = 0;
   5920     _flag_k = FK_TEST;
   5921 L_3600212E:
   5922     ecx = MEM32(esi + 0x1C); /* 0x3600212E: mov ecx, dword ptr [esi + 0x1c] */
   5923     edx = MEM32(ecx + 0x4); /* 0x36002131: mov edx, dword ptr [ecx + 4] */
   5924     MEM32(edx + edi * 4) = eax; /* 0x36002134: mov dword ptr [edx + edi*4], eax */
   5925 L_36002137:
   5926     eax = MEM32(esi + 0x1C); /* 0x36002137: mov eax, dword ptr [esi + 0x1c] */
   5927     ecx = MEM32(eax + 0x4); /* 0x3600213A: mov ecx, dword ptr [eax + 4] */
   5928     eax = MEM32(ecx + edi * 4); /* 0x3600213D: mov eax, dword ptr [ecx + edi*4] */
   5929     ecx = MEM32(ebp + (-0xC)); /* 0x36002140: mov ecx, dword ptr [ebp - 0xc] */
   5930     edi = POP32_VAL(esp); /* 0x36002143: pop edi */
   5931     MEM32(FS_BASE + (0)) = ecx; /* 0x36002144: mov dword ptr fs:[0], ecx */
   5932     esi = POP32_VAL(esp); /* 0x3600214B: pop esi */
   5933     esp = ebp; /* 0x3600214C: mov esp, ebp */
   5934     ebp = POP32_VAL(esp); /* 0x3600214E: pop ebp */
   5935     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600214F: ret 4 */
   5936     RECOMP_REGS_OUT();
   5937 }
   5938 
   5939 void sub_36002160(void) {
   5940     int _fpu_cmp = 0;
   5941     uint32_t _cf = 0;
   5942     int _df = 1;
   5943     uint32_t _flag_k = FK_NONE;
   5944     uint32_t _flag_a = 0, _flag_b = 0;
   5945     uint32_t _itail_tgt = 0;
   5946     RECOMP_REGS_LOCALS
   5947     RECOMP_ENTER(0x36002160u);
   5948 
   5949 L_36002160:
   5950     PUSH32(esp, ebp); /* 0x36002160: push ebp */
   5951     ebp = esp; /* 0x36002161: mov ebp, esp */
   5952     eax = MEM32(ecx + 0x1C); /* 0x36002163: mov eax, dword ptr [ecx + 0x1c] */
   5953     ecx = MEM32(eax + 0x4); /* 0x36002166: mov ecx, dword ptr [eax + 4] */
   5954     edx = MEM32(ebp + 0x8); /* 0x36002169: mov edx, dword ptr [ebp + 8] */
   5955     /* cmp MEM32(ecx + edx * 4), 0 */ /* 0x3600216C: cmp dword ptr [ecx + edx*4], 0 */
   5956     _flag_a = (uint32_t)(MEM32(ecx + edx * 4)); _flag_b = (uint32_t)(0);
   5957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5958     _flag_k = FK_CMP;
   5959     SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x36002170: setne al */
   5960     ebp = POP32_VAL(esp); /* 0x36002173: pop ebp */
   5961     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002174: ret 4 */
   5962     RECOMP_REGS_OUT();
   5963 }
   5964 
   5965 void sub_36002180(void) {
   5966     int _fpu_cmp = 0;
   5967     uint32_t _cf = 0;
   5968     int _df = 1;
   5969     uint32_t _flag_k = FK_NONE;
   5970     uint32_t _flag_a = 0, _flag_b = 0;
   5971     uint32_t _itail_tgt = 0;
   5972     RECOMP_REGS_LOCALS
   5973     RECOMP_ENTER(0x36002180u);
   5974 
   5975 L_36002180:
   5976     PUSH32(esp, ebp); /* 0x36002180: push ebp */
   5977     ebp = esp; /* 0x36002181: mov ebp, esp */
   5978     eax = MEM32(ecx + 0x1C); /* 0x36002183: mov eax, dword ptr [ecx + 0x1c] */
   5979     eax = MEM32(eax + 0x4); /* 0x36002186: mov eax, dword ptr [eax + 4] */
   5980     ecx = MEM32(ebp + 0x8); /* 0x36002189: mov ecx, dword ptr [ebp + 8] */
   5981     /* cmp MEM32(eax + ecx * 4), 0 */ /* 0x3600218C: cmp dword ptr [eax + ecx*4], 0 */
   5982     _flag_a = (uint32_t)(MEM32(eax + ecx * 4)); _flag_b = (uint32_t)(0);
   5983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5984     _flag_k = FK_CMP;
   5985     if (CMP_NE(_flag_a, _flag_b)) goto L_36002198; /* 0x36002190: jne 0x36002198 */
   5986 L_36002192:
   5987     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   5988     SET_LO8(eax, 0); /* 0x36002192: xor al, al */
   5989     _cf = 0;
   5990     _flag_k = FK_NARROW(FK_TEST, 24);
   5991     ebp = POP32_VAL(esp); /* 0x36002194: pop ebp */
   5992     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002195: ret 4 */
   5993 L_36002198:
   5994     ecx = MEM32(eax + ecx * 4); /* 0x36002198: mov ecx, dword ptr [eax + ecx*4] */
   5995     RECOMP_ICALL(0x360C0580u); /* 0x3600219B: call 0x360c0580 */ /* not lifted */
   5996     RECOMP_FLAGS_IN();
   5997     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5998     _cf = (LO8(eax)) != 0;
   5999     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x360021A0: neg al */
   6000     _flag_k = FK_NARROW(FK_CMP, 24);
   6001     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360021A2: sbb eax, eax */
   6002       eax = _sc ? 0xFFFFFFFFu : 0;
   6003       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6004       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6005     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6006     eax = eax + 1; /* 0x360021A4: inc eax */
   6007     _flag_k = FK_INC;
   6008     ebp = POP32_VAL(esp); /* 0x360021A5: pop ebp */
   6009     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360021A6: ret 4 */
   6010     RECOMP_REGS_OUT();
   6011 }
   6012 
   6013 void sub_360021B0(void) {
   6014     int _fpu_cmp = 0;
   6015     uint32_t _cf = 0;
   6016     int _df = 1;
   6017     uint32_t _flag_k = FK_NONE;
   6018     uint32_t _flag_a = 0, _flag_b = 0;
   6019     uint32_t _itail_tgt = 0;
   6020     RECOMP_REGS_LOCALS
   6021     RECOMP_ENTER(0x360021B0u);
   6022 
   6023 L_360021B0:
   6024     PUSH32(esp, ebp); /* 0x360021B0: push ebp */
   6025     ebp = esp; /* 0x360021B1: mov ebp, esp */
   6026     PUSH32(esp, esi); /* 0x360021B3: push esi */
   6027     esi = ecx; /* 0x360021B4: mov esi, ecx */
   6028     eax = MEM32(esi + 0x1C); /* 0x360021B6: mov eax, dword ptr [esi + 0x1c] */
   6029     ecx = MEM32(eax + 0x4); /* 0x360021B9: mov ecx, dword ptr [eax + 4] */
   6030     PUSH32(esp, edi); /* 0x360021BC: push edi */
   6031     edi = MEM32(ebp + 0x8); /* 0x360021BD: mov edi, dword ptr [ebp + 8] */
   6032     ecx = MEM32(ecx + edi * 4); /* 0x360021C0: mov ecx, dword ptr [ecx + edi*4] */
   6033     /* test ecx, ecx */ /* 0x360021C3: test ecx, ecx */
   6034     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6035     _cf = 0;
   6036     _flag_k = FK_TEST;
   6037     if (TEST_Z(_flag_a, _flag_b)) goto L_360021CD; /* 0x360021C5: je 0x360021cd */
   6038 L_360021C7:
   6039     edx = MEM32(ecx); /* 0x360021C7: mov edx, dword ptr [ecx] */
   6040     PUSH32(esp, 1); /* 0x360021C9: push 1 */
   6041     RECOMP_ICALL(MEM32(edx)); /* 0x360021CB: call dword ptr [edx] */
   6042     RECOMP_FLAGS_IN();
   6043 L_360021CD:
   6044     /* cmp edi, 9 */ /* 0x360021CD: cmp edi, 9 */
   6045     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(9);
   6046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6047     _flag_k = FK_CMP;
   6048     eax = MEM32(ebp + 0xC); /* 0x360021D0: mov eax, dword ptr [ebp + 0xc] */
   6049     if (CMP_NE(_flag_a, _flag_b)) goto L_360021D8; /* 0x360021D3: jne 0x360021d8 */
   6050 L_360021D5:
   6051     MEM32(esi + 0x20) = eax; /* 0x360021D5: mov dword ptr [esi + 0x20], eax */
   6052 L_360021D8:
   6053     ecx = MEM32(esi + 0x1C); /* 0x360021D8: mov ecx, dword ptr [esi + 0x1c] */
   6054     edx = MEM32(ecx + 0x4); /* 0x360021DB: mov edx, dword ptr [ecx + 4] */
   6055     MEM32(edx + edi * 4) = eax; /* 0x360021DE: mov dword ptr [edx + edi*4], eax */
   6056     edi = POP32_VAL(esp); /* 0x360021E1: pop edi */
   6057     esi = POP32_VAL(esp); /* 0x360021E2: pop esi */
   6058     ebp = POP32_VAL(esp); /* 0x360021E3: pop ebp */
   6059     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360021E4: ret 8 */
   6060     RECOMP_REGS_OUT();
   6061 }
   6062 
   6063 void sub_360021F0(void) {
   6064     int _fpu_cmp = 0;
   6065     uint32_t _cf = 0;
   6066     int _df = 1;
   6067     uint32_t _flag_k = FK_NONE;
   6068     uint32_t _flag_a = 0, _flag_b = 0;
   6069     uint32_t _itail_tgt = 0;
   6070     RECOMP_REGS_LOCALS
   6071     RECOMP_ENTER(0x360021F0u);
   6072 
   6073 L_360021F0:
   6074     PUSH32(esp, ebp); /* 0x360021F0: push ebp */
   6075     ebp = esp; /* 0x360021F1: mov ebp, esp */
   6076     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u);
   6077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6078     esp = esp - 0x30u; /* 0x360021F3: sub esp, 0x30 */
   6079     _flag_k = FK_CMP;
   6080     PUSH32(esp, ebx); /* 0x360021F6: push ebx */
   6081     PUSH32(esp, esi); /* 0x360021F7: push esi */
   6082     PUSH32(esp, edi); /* 0x360021F8: push edi */
   6083     edi = ecx; /* 0x360021F9: mov edi, ecx */
   6084     ecx = MEM32(edi + 0x20); /* 0x360021FB: mov ecx, dword ptr [edi + 0x20] */
   6085     RECOMP_ICALL(0x360C0580u); /* 0x360021FE: call 0x360c0580 */ /* not lifted */
   6086     RECOMP_FLAGS_IN();
   6087     /* test LO8(eax), LO8(eax) */ /* 0x36002203: test al, al */
   6088     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6089     _cf = 0;
   6090     _flag_k = FK_NARROW(FK_TEST, 24);
   6091     if (TEST_NZ(_flag_a, _flag_b)) goto L_36002331; /* 0x36002205: jne 0x36002331 */
   6092 L_3600220B:
   6093     eax = MEM32(edi); /* 0x3600220B: mov eax, dword ptr [edi] */
   6094     PUSH32(esp, 1); /* 0x3600220D: push 1 */
   6095     ecx = edi; /* 0x3600220F: mov ecx, edi */
   6096     RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x36002211: call dword ptr [eax + 0x20] */
   6097     RECOMP_FLAGS_IN();
   6098     ecx = ebp + (-0x20); /* 0x36002214: lea ecx, [ebp - 0x20] */
   6099     PUSH32(esp, ecx); /* 0x36002217: push ecx */
   6100     ecx = MEM32(edi + 0x20); /* 0x36002218: mov ecx, dword ptr [edi + 0x20] */
   6101     RECOMP_ICALL(0x360C02D0u); /* 0x3600221B: call 0x360c02d0 */ /* not lifted */
   6102     RECOMP_FLAGS_IN();
   6103     edx = MEM32(eax); /* 0x36002220: mov edx, dword ptr [eax] */
   6104     ecx = MEM32(eax + 0x4); /* 0x36002222: mov ecx, dword ptr [eax + 4] */
   6105     esi = MEM32(eax + 0x8); /* 0x36002225: mov esi, dword ptr [eax + 8] */
   6106     ebx = MEM32(eax + 0xC); /* 0x36002228: mov ebx, dword ptr [eax + 0xc] */
   6107     MEM32(ebp + (-0x10)) = edx; /* 0x3600222B: mov dword ptr [ebp - 0x10], edx */
   6108     edx = ebp + (-0x20); /* 0x3600222E: lea edx, [ebp - 0x20] */
   6109     MEM32(ebp + (-0xC)) = ecx; /* 0x36002231: mov dword ptr [ebp - 0xc], ecx */
   6110     ecx = MEM32(edi + 0x20); /* 0x36002234: mov ecx, dword ptr [edi + 0x20] */
   6111     PUSH32(esp, edx); /* 0x36002237: push edx */
   6112     RECOMP_ICALL(0x360C0300u); /* 0x36002238: call 0x360c0300 */ /* not lifted */
   6113     RECOMP_FLAGS_IN();
   6114     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3600223D: cmp esi, dword ptr [eax + 8] */
   6115     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6117     _flag_k = FK_CMP;
   6118     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600227F; /* 0x36002240: je 0x3600227f */
   6119 L_36002242:
   6120     ecx = MEM32(esi); /* 0x36002242: mov ecx, dword ptr [esi] */
   6121     PUSH32(esp, edi); /* 0x36002244: push edi */
   6122     RECOMP_ICALL(0x360BE8E0u); /* 0x36002245: call 0x360be8e0 */ /* not lifted */
   6123     RECOMP_FLAGS_IN();
   6124     eax = MEM32(ebp + (-0xC)); /* 0x3600224A: mov eax, dword ptr [ebp - 0xc] */
   6125     /* cmp esi, eax */ /* 0x3600224D: cmp esi, eax */
   6126     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6127     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6128     _flag_k = FK_CMP;
   6129     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600226E; /* 0x3600224F: je 0x3600226e */
   6130 L_36002251:
   6131     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   6132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6133     esi = esi + 4; /* 0x36002251: add esi, 4 */
   6134     _flag_k = FK_ADD;
   6135     /* cmp esi, eax */ /* 0x36002254: cmp esi, eax */
   6136     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6137     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6138     _flag_k = FK_CMP;
   6139     if (CMP_NE(_flag_a, _flag_b)) goto L_3600226E; /* 0x36002256: jne 0x3600226e */
   6140 L_36002258:
   6141     eax = MEM32(ebx + 0x4); /* 0x36002258: mov eax, dword ptr [ebx + 4] */
   6142     /* test eax, eax */ /* 0x3600225B: test eax, eax */
   6143     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6144     _cf = 0;
   6145     _flag_k = FK_TEST;
   6146     if (TEST_Z(_flag_a, _flag_b)) goto L_3600226E; /* 0x3600225D: je 0x3600226e */
   6147 L_3600225F:
   6148     esi = MEM32(ebx + 0x4); /* 0x3600225F: mov esi, dword ptr [ebx + 4] */
   6149     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   6150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6151     ebx = ebx + 4; /* 0x36002262: add ebx, 4 */
   6152     _flag_k = FK_ADD;
   6153     eax = esi + 0x1000; /* 0x36002265: lea eax, [esi + 0x1000] */
   6154     MEM32(ebp + (-0xC)) = eax; /* 0x3600226B: mov dword ptr [ebp - 0xc], eax */
   6155 L_3600226E:
   6156     ecx = ebp + (-0x20); /* 0x3600226E: lea ecx, [ebp - 0x20] */
   6157     PUSH32(esp, ecx); /* 0x36002271: push ecx */
   6158     ecx = MEM32(edi + 0x20); /* 0x36002272: mov ecx, dword ptr [edi + 0x20] */
   6159     RECOMP_ICALL(0x360C0300u); /* 0x36002275: call 0x360c0300 */ /* not lifted */
   6160     RECOMP_FLAGS_IN();
   6161     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3600227A: cmp esi, dword ptr [eax + 8] */
   6162     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6164     _flag_k = FK_CMP;
   6165     RECOMP_BACKEDGE();
   6166     if (CMP_NE(_flag_a, _flag_b)) goto L_36002242; /* 0x3600227D: jne 0x36002242 */
   6167 L_3600227F:
   6168     ebx = MEM32(edi + 0x38); /* 0x3600227F: mov ebx, dword ptr [edi + 0x38] */
   6169     ecx = MEM32(edi + 0x20); /* 0x36002282: mov ecx, dword ptr [edi + 0x20] */
   6170     edx = ebp + (-0x20); /* 0x36002285: lea edx, [ebp - 0x20] */
   6171     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   6172     ebx = ebx & 0xFFFFFFFEu; /* 0x36002288: and ebx, 0xfffffffe */
   6173     _cf = 0;
   6174     _flag_k = FK_TEST;
   6175     PUSH32(esp, edx); /* 0x3600228B: push edx */
   6176     MEM32(edi + 0x38) = ebx; /* 0x3600228C: mov dword ptr [edi + 0x38], ebx */
   6177     RECOMP_ICALL(0x360C02D0u); /* 0x3600228F: call 0x360c02d0 */ /* not lifted */
   6178     RECOMP_FLAGS_IN();
   6179     ecx = MEM32(eax); /* 0x36002294: mov ecx, dword ptr [eax] */
   6180     edx = MEM32(eax + 0x4); /* 0x36002296: mov edx, dword ptr [eax + 4] */
   6181     esi = MEM32(eax + 0x8); /* 0x36002299: mov esi, dword ptr [eax + 8] */
   6182     ebx = MEM32(eax + 0xC); /* 0x3600229C: mov ebx, dword ptr [eax + 0xc] */
   6183     eax = ebp + (-0x20); /* 0x3600229F: lea eax, [ebp - 0x20] */
   6184     MEM32(ebp + (-0x10)) = ecx; /* 0x360022A2: mov dword ptr [ebp - 0x10], ecx */
   6185     ecx = MEM32(edi + 0x20); /* 0x360022A5: mov ecx, dword ptr [edi + 0x20] */
   6186     PUSH32(esp, eax); /* 0x360022A8: push eax */
   6187     MEM32(ebp + (-0xC)) = edx; /* 0x360022A9: mov dword ptr [ebp - 0xc], edx */
   6188     RECOMP_ICALL(0x360C0300u); /* 0x360022AC: call 0x360c0300 */ /* not lifted */
   6189     RECOMP_FLAGS_IN();
   6190     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360022B1: cmp esi, dword ptr [eax + 8] */
   6191     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6193     _flag_k = FK_CMP;
   6194     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002331; /* 0x360022B4: je 0x36002331 */
   6195 L_360022B6:
   6196     ecx = MEM32(esi); /* 0x360022B6: mov ecx, dword ptr [esi] */
   6197     eax = MEM32(ecx + 0x8); /* 0x360022B8: mov eax, dword ptr [ecx + 8] */
   6198     /* test eax, eax */ /* 0x360022BB: test eax, eax */
   6199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6200     _cf = 0;
   6201     _flag_k = FK_TEST;
   6202     if (TEST_NZ(_flag_a, _flag_b)) goto L_360022F9; /* 0x360022BD: jne 0x360022f9 */
   6203 L_360022BF:
   6204     RECOMP_ICALL(0x360B7D60u); /* 0x360022BF: call 0x360b7d60 */ /* not lifted */
   6205     RECOMP_FLAGS_IN();
   6206     edx = MEM32(ebp + (-0x10)); /* 0x360022C4: mov edx, dword ptr [ebp - 0x10] */
   6207     eax = MEM32(ebp + (-0xC)); /* 0x360022C7: mov eax, dword ptr [ebp - 0xc] */
   6208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6210     esp = esp - 0x10u; /* 0x360022CA: sub esp, 0x10 */
   6211     _flag_k = FK_CMP;
   6212     ecx = esp; /* 0x360022CD: mov ecx, esp */
   6213     MEM32(ecx) = edx; /* 0x360022CF: mov dword ptr [ecx], edx */
   6214     MEM32(ecx + 0x4) = eax; /* 0x360022D1: mov dword ptr [ecx + 4], eax */
   6215     MEM32(ecx + 0x8) = esi; /* 0x360022D4: mov dword ptr [ecx + 8], esi */
   6216     MEM32(ecx + 0xC) = ebx; /* 0x360022D7: mov dword ptr [ecx + 0xc], ebx */
   6217     ecx = ebp + (-0x30); /* 0x360022DA: lea ecx, [ebp - 0x30] */
   6218     PUSH32(esp, ecx); /* 0x360022DD: push ecx */
   6219     ecx = MEM32(edi + 0x20); /* 0x360022DE: mov ecx, dword ptr [edi + 0x20] */
   6220     RECOMP_ICALL(0x360C0910u); /* 0x360022E1: call 0x360c0910 */ /* not lifted */
   6221     RECOMP_FLAGS_IN();
   6222     edx = MEM32(eax); /* 0x360022E6: mov edx, dword ptr [eax] */
   6223     ecx = MEM32(eax + 0x4); /* 0x360022E8: mov ecx, dword ptr [eax + 4] */
   6224     esi = MEM32(eax + 0x8); /* 0x360022EB: mov esi, dword ptr [eax + 8] */
   6225     ebx = MEM32(eax + 0xC); /* 0x360022EE: mov ebx, dword ptr [eax + 0xc] */
   6226     MEM32(ebp + (-0x10)) = edx; /* 0x360022F1: mov dword ptr [ebp - 0x10], edx */
   6227     MEM32(ebp + (-0xC)) = ecx; /* 0x360022F4: mov dword ptr [ebp - 0xc], ecx */
   6228     goto L_36002320; /* 0x360022F7: jmp 0x36002320 */
   6229 L_360022F9:
   6230     eax = MEM32(ebp + (-0xC)); /* 0x360022F9: mov eax, dword ptr [ebp - 0xc] */
   6231     /* cmp esi, eax */ /* 0x360022FC: cmp esi, eax */
   6232     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6234     _flag_k = FK_CMP;
   6235     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002320; /* 0x360022FE: je 0x36002320 */
   6236 L_36002300:
   6237     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   6238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6239     esi = esi + 4; /* 0x36002300: add esi, 4 */
   6240     _flag_k = FK_ADD;
   6241     /* cmp esi, eax */ /* 0x36002303: cmp esi, eax */
   6242     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6244     _flag_k = FK_CMP;
   6245     if (CMP_NE(_flag_a, _flag_b)) goto L_36002320; /* 0x36002305: jne 0x36002320 */
   6246 L_36002307:
   6247     eax = MEM32(ebx + 0x4); /* 0x36002307: mov eax, dword ptr [ebx + 4] */
   6248     /* test eax, eax */ /* 0x3600230A: test eax, eax */
   6249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6250     _cf = 0;
   6251     _flag_k = FK_TEST;
   6252     if (TEST_Z(_flag_a, _flag_b)) goto L_36002320; /* 0x3600230C: je 0x36002320 */
   6253 L_3600230E:
   6254     esi = MEM32(ebx + 0x4); /* 0x3600230E: mov esi, dword ptr [ebx + 4] */
   6255     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   6256     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6257     ebx = ebx + 4; /* 0x36002311: add ebx, 4 */
   6258     _flag_k = FK_ADD;
   6259     edx = esi + 0x1000; /* 0x36002314: lea edx, [esi + 0x1000] */
   6260     MEM32(ebp + (-0x10)) = esi; /* 0x3600231A: mov dword ptr [ebp - 0x10], esi */
   6261     MEM32(ebp + (-0xC)) = edx; /* 0x3600231D: mov dword ptr [ebp - 0xc], edx */
   6262 L_36002320:
   6263     ecx = MEM32(edi + 0x20); /* 0x36002320: mov ecx, dword ptr [edi + 0x20] */
   6264     eax = ebp + (-0x20); /* 0x36002323: lea eax, [ebp - 0x20] */
   6265     PUSH32(esp, eax); /* 0x36002326: push eax */
   6266     RECOMP_ICALL(0x360C0300u); /* 0x36002327: call 0x360c0300 */ /* not lifted */
   6267     RECOMP_FLAGS_IN();
   6268     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3600232C: cmp esi, dword ptr [eax + 8] */
   6269     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6271     _flag_k = FK_CMP;
   6272     RECOMP_BACKEDGE();
   6273     if (CMP_NE(_flag_a, _flag_b)) goto L_360022B6; /* 0x3600232F: jne 0x360022b6 */
   6274 L_36002331:
   6275     edi = POP32_VAL(esp); /* 0x36002331: pop edi */
   6276     esi = POP32_VAL(esp); /* 0x36002332: pop esi */
   6277     ebx = POP32_VAL(esp); /* 0x36002333: pop ebx */
   6278     esp = ebp; /* 0x36002334: mov esp, ebp */
   6279     ebp = POP32_VAL(esp); /* 0x36002336: pop ebp */
   6280     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36002337: ret  */
   6281     RECOMP_REGS_OUT();
   6282 }
   6283 
   6284 void sub_36002340(void) {
   6285     int _fpu_cmp = 0;
   6286     uint32_t _cf = 0;
   6287     int _df = 1;
   6288     uint32_t _flag_k = FK_NONE;
   6289     uint32_t _flag_a = 0, _flag_b = 0;
   6290     uint32_t _itail_tgt = 0;
   6291     RECOMP_REGS_LOCALS
   6292     RECOMP_ENTER(0x36002340u);
   6293 
   6294 L_36002340:
   6295     PUSH32(esp, ebp); /* 0x36002340: push ebp */
   6296     ebp = esp; /* 0x36002341: mov ebp, esp */
   6297     eax = MEM32(ebp + 0x14); /* 0x36002343: mov eax, dword ptr [ebp + 0x14] */
   6298     edx = MEM32(ebp + 0xC); /* 0x36002346: mov edx, dword ptr [ebp + 0xc] */
   6299     PUSH32(esp, esi); /* 0x36002349: push esi */
   6300     PUSH32(esp, edi); /* 0x3600234A: push edi */
   6301     esi = ecx; /* 0x3600234B: mov esi, ecx */
   6302     ecx = MEM32(ebp + 0x10); /* 0x3600234D: mov ecx, dword ptr [ebp + 0x10] */
   6303     edi = MEM32(esi); /* 0x36002350: mov edi, dword ptr [esi] */
   6304     PUSH32(esp, eax); /* 0x36002352: push eax */
   6305     eax = MEM32(ebp + 0x8); /* 0x36002353: mov eax, dword ptr [ebp + 8] */
   6306     PUSH32(esp, ecx); /* 0x36002356: push ecx */
   6307     PUSH32(esp, edx); /* 0x36002357: push edx */
   6308     PUSH32(esp, eax); /* 0x36002358: push eax */
   6309     ecx = esi; /* 0x36002359: mov ecx, esi */
   6310     RECOMP_ICALL(0x360020C0u); /* 0x3600235B: call 0x360020c0 */ /* not lifted */
   6311     RECOMP_FLAGS_IN();
   6312     PUSH32(esp, eax); /* 0x36002360: push eax */
   6313     ecx = esi; /* 0x36002361: mov ecx, esi */
   6314     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x36002363: call dword ptr [edi + 0x34] */
   6315     RECOMP_FLAGS_IN();
   6316     edi = POP32_VAL(esp); /* 0x36002366: pop edi */
   6317     esi = POP32_VAL(esp); /* 0x36002367: pop esi */
   6318     ebp = POP32_VAL(esp); /* 0x36002368: pop ebp */
   6319     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36002369: ret 0x10 */
   6320     RECOMP_REGS_OUT();
   6321 }
   6322 
   6323 void sub_36002370(void) {
   6324     int _fpu_cmp = 0;
   6325     uint32_t _cf = 0;
   6326     int _df = 1;
   6327     uint32_t _flag_k = FK_NONE;
   6328     uint32_t _flag_a = 0, _flag_b = 0;
   6329     uint32_t _itail_tgt = 0;
   6330     RECOMP_REGS_LOCALS
   6331     RECOMP_ENTER(0x36002370u);
   6332 
   6333 L_36002370:
   6334     PUSH32(esp, ebp); /* 0x36002370: push ebp */
   6335     ebp = esp; /* 0x36002371: mov ebp, esp */
   6336     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   6337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6338     esp = esp - 0x24u; /* 0x36002373: sub esp, 0x24 */
   6339     _flag_k = FK_CMP;
   6340     PUSH32(esp, ebx); /* 0x36002376: push ebx */
   6341     PUSH32(esp, esi); /* 0x36002377: push esi */
   6342     PUSH32(esp, edi); /* 0x36002378: push edi */
   6343     edi = MEM32(ebp + 0x8); /* 0x36002379: mov edi, dword ptr [ebp + 8] */
   6344     /* test edi, edi */ /* 0x3600237C: test edi, edi */
   6345     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6346     _cf = 0;
   6347     _flag_k = FK_TEST;
   6348     MEM32(ebp + (-0x4)) = ecx; /* 0x3600237E: mov dword ptr [ebp - 4], ecx */
   6349     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002381: je 0x360025cb */
   6350 L_36002387:
   6351     eax = ebp + (-0x24); /* 0x36002387: lea eax, [ebp - 0x24] */
   6352     PUSH32(esp, eax); /* 0x3600238A: push eax */
   6353     ecx = edi; /* 0x3600238B: mov ecx, edi */
   6354     RECOMP_ICALL(0x360C02D0u); /* 0x3600238D: call 0x360c02d0 */ /* not lifted */
   6355     RECOMP_FLAGS_IN();
   6356     ecx = MEM32(eax); /* 0x36002392: mov ecx, dword ptr [eax] */
   6357     edx = MEM32(eax + 0x4); /* 0x36002394: mov edx, dword ptr [eax + 4] */
   6358     esi = MEM32(eax + 0x8); /* 0x36002397: mov esi, dword ptr [eax + 8] */
   6359     eax = MEM32(eax + 0xC); /* 0x3600239A: mov eax, dword ptr [eax + 0xc] */
   6360     MEM32(ebp + (-0x14)) = ecx; /* 0x3600239D: mov dword ptr [ebp - 0x14], ecx */
   6361     ecx = ebp + (-0x24); /* 0x360023A0: lea ecx, [ebp - 0x24] */
   6362     PUSH32(esp, ecx); /* 0x360023A3: push ecx */
   6363     ecx = edi; /* 0x360023A4: mov ecx, edi */
   6364     MEM32(ebp + (-0x10)) = edx; /* 0x360023A6: mov dword ptr [ebp - 0x10], edx */
   6365     MEM32(ebp + (-0xC)) = esi; /* 0x360023A9: mov dword ptr [ebp - 0xc], esi */
   6366     MEM32(ebp + (-0x8)) = eax; /* 0x360023AC: mov dword ptr [ebp - 8], eax */
   6367     RECOMP_ICALL(0x360C0300u); /* 0x360023AF: call 0x360c0300 */ /* not lifted */
   6368     RECOMP_FLAGS_IN();
   6369     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360023B4: cmp esi, dword ptr [eax + 8] */
   6370     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6372     _flag_k = FK_CMP;
   6373     if (CMP_EQ(_flag_a, _flag_b)) goto L_360025CB; /* 0x360023B7: je 0x360025cb */
   6374 L_360023BD:
   6375     ecx = MEM32(esi); /* 0x360023BD: mov ecx, dword ptr [esi] */
   6376     RECOMP_ICALL(0x360BFC30u); /* 0x360023BF: call 0x360bfc30 */ /* not lifted */
   6377     RECOMP_FLAGS_IN();
   6378     esi = eax; /* 0x360023C4: mov esi, eax */
   6379     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360023C6: mov al, byte ptr [ebp + 0x10] */
   6380     /* test LO8(eax), LO8(eax) */ /* 0x360023C9: test al, al */
   6381     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6382     _cf = 0;
   6383     _flag_k = FK_NARROW(FK_TEST, 24);
   6384     eax = MEM32(esi + 0x1C); /* 0x360023CB: mov eax, dword ptr [esi + 0x1c] */
   6385     if (TEST_Z(_flag_a, _flag_b)) goto L_360023D5; /* 0x360023CE: je 0x360023d5 */
   6386 L_360023D0:
   6387     _flag_a = (uint32_t)((eax | 1)); _flag_b = (uint32_t)((eax | 1));
   6388     eax = eax | 1; /* 0x360023D0: or eax, 1 */
   6389     _cf = 0;
   6390     _flag_k = FK_TEST;
   6391     goto L_360023D8; /* 0x360023D3: jmp 0x360023d8 */
   6392 L_360023D5:
   6393     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   6394     eax = eax & 0xFFFFFFFEu; /* 0x360023D5: and eax, 0xfffffffe */
   6395     _cf = 0;
   6396     _flag_k = FK_TEST;
   6397 L_360023D8:
   6398     /* test LO8(eax), 8 */ /* 0x360023D8: test al, 8 */
   6399     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
   6400     _cf = 0;
   6401     _flag_k = FK_NARROW(FK_TEST, 24);
   6402     MEM32(esi + 0x1C) = eax; /* 0x360023DA: mov dword ptr [esi + 0x1c], eax */
   6403     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023DD: jne 0x3600257a */
   6404 L_360023E3:
   6405     eax = MEM32(ebp + 0x14); /* 0x360023E3: mov eax, dword ptr [ebp + 0x14] */
   6406     edx = MEM32(eax); /* 0x360023E6: mov edx, dword ptr [eax] */
   6407     MEM32(esi + 0x10) = edx; /* 0x360023E8: mov dword ptr [esi + 0x10], edx */
   6408     eax = MEM32(eax + 0x4); /* 0x360023EB: mov eax, dword ptr [eax + 4] */
   6409     ecx = esi; /* 0x360023EE: mov ecx, esi */
   6410     MEM32(esi + 0x14) = eax; /* 0x360023F0: mov dword ptr [esi + 0x14], eax */
   6411     RECOMP_ICALL(0x360BD340u); /* 0x360023F3: call 0x360bd340 */ /* not lifted */
   6412     RECOMP_FLAGS_IN();
   6413     /* cmp MEM32(esi + 0x8), 0xFFFFFFFFu */ /* 0x360023F8: cmp dword ptr [esi + 8], -1 */
   6414     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6416     _flag_k = FK_CMP;
   6417     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023FC: je 0x3600257a */
   6418 L_36002402:
   6419     PUSH32(esp, 0x20u); /* 0x36002402: push 0x20 */
   6420     ecx = esi; /* 0x36002404: mov ecx, esi */
   6421     RECOMP_ICALL(0x360BD190u); /* 0x36002406: call 0x360bd190 */ /* not lifted */
   6422     RECOMP_FLAGS_IN();
   6423     edi = eax; /* 0x3600240B: mov edi, eax */
   6424     eax = MEM32(esi); /* 0x3600240D: mov eax, dword ptr [esi] */
   6425     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6426     SET_LO8(ebx, 0); /* 0x3600240F: xor bl, bl */
   6427     _cf = 0;
   6428     _flag_k = FK_NARROW(FK_TEST, 24);
   6429     /* cmp eax, 0xCF16u */ /* 0x36002411: cmp eax, 0xcf16 */
   6430     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCF16u);
   6431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6432     _flag_k = FK_CMP;
   6433     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600242B; /* 0x36002416: je 0x3600242b */
   6434 L_36002418:
   6435     /* cmp MEM32(esi + 0x8), 1 */ /* 0x36002418: cmp dword ptr [esi + 8], 1 */
   6436     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1);
   6437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6438     _flag_k = FK_CMP;
   6439     if (CMP_G(_flag_a, _flag_b)) goto L_3600242B; /* 0x3600241C: jg 0x3600242b */
   6440 L_3600241E:
   6441     PUSH32(esp, 4); /* 0x3600241E: push 4 */
   6442     ecx = esi; /* 0x36002420: mov ecx, esi */
   6443     RECOMP_ICALL(0x360BD190u); /* 0x36002422: call 0x360bd190 */ /* not lifted */
   6444     RECOMP_FLAGS_IN();
   6445     /* test eax, eax */ /* 0x36002427: test eax, eax */
   6446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6447     _cf = 0;
   6448     _flag_k = FK_TEST;
   6449     if (TEST_LE(_flag_a, _flag_b)) goto L_3600242D; /* 0x36002429: jle 0x3600242d */
   6450 L_3600242B:
   6451     SET_LO8(ebx, 1); /* 0x3600242B: mov bl, 1 */
   6452 L_3600242D:
   6453     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x3600242D: mov al, byte ptr [ebp + 0x10] */
   6454     /* test LO8(eax), LO8(eax) */ /* 0x36002430: test al, al */
   6455     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6456     _cf = 0;
   6457     _flag_k = FK_NARROW(FK_TEST, 24);
   6458     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002432: je 0x3600243f */
   6459 L_36002434:
   6460     /* test LO8(ebx), LO8(ebx) */ /* 0x36002434: test bl, bl */
   6461     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6462     _cf = 0;
   6463     _flag_k = FK_NARROW(FK_TEST, 24);
   6464     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002436: je 0x3600243f */
   6465 L_36002438:
   6466     MEM32(esi + 0x8) = 1; /* 0x36002438: mov dword ptr [esi + 8], 1 */
   6467 L_3600243F:
   6468     /* cmp edi, 2 */ /* 0x3600243F: cmp edi, 2 */
   6469     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   6470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6471     _flag_k = FK_CMP;
   6472     if (CMP_NE(_flag_a, _flag_b)) goto L_3600247D; /* 0x36002442: jne 0x3600247d */
   6473 L_36002444:
   6474     edi = MEM32(ebp + (-0x4)); /* 0x36002444: mov edi, dword ptr [ebp - 4] */
   6475     ecx = edi; /* 0x36002447: mov ecx, edi */
   6476     RECOMP_ICALL(0x36002750u); /* 0x36002449: call 0x36002750 */ /* not lifted */
   6477     RECOMP_FLAGS_IN();
   6478     /* test eax, eax */ /* 0x3600244E: test eax, eax */
   6479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6480     _cf = 0;
   6481     _flag_k = FK_TEST;
   6482     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002450: je 0x360025cb */
   6483 L_36002456:
   6484     /* test LO8(ebx), LO8(ebx) */ /* 0x36002456: test bl, bl */
   6485     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6486     _cf = 0;
   6487     _flag_k = FK_NARROW(FK_TEST, 24);
   6488     if (TEST_Z(_flag_a, _flag_b)) goto L_36002470; /* 0x36002458: je 0x36002470 */
   6489 L_3600245A:
   6490     PUSH32(esp, esi); /* 0x3600245A: push esi */
   6491     PUSH32(esp, 9); /* 0x3600245B: push 9 */
   6492     ecx = edi; /* 0x3600245D: mov ecx, edi */
   6493     RECOMP_ICALL(0x36002750u); /* 0x3600245F: call 0x36002750 */ /* not lifted */
   6494     RECOMP_FLAGS_IN();
   6495     ecx = eax; /* 0x36002464: mov ecx, eax */
   6496     RECOMP_ICALL(0x360027E0u); /* 0x36002466: call 0x360027e0 */ /* not lifted */
   6497     RECOMP_FLAGS_IN();
   6498     goto L_36002581; /* 0x3600246B: jmp 0x36002581 */
   6499 L_36002470:
   6500     ecx = edi; /* 0x36002470: mov ecx, edi */
   6501     RECOMP_ICALL(0x36002750u); /* 0x36002472: call 0x36002750 */ /* not lifted */
   6502     RECOMP_FLAGS_IN();
   6503     PUSH32(esp, eax); /* 0x36002477: push eax */
   6504     goto L_36002573; /* 0x36002478: jmp 0x36002573 */
   6505 L_3600247D:
   6506     /* cmp edi, 3 */ /* 0x3600247D: cmp edi, 3 */
   6507     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   6508     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6509     _flag_k = FK_CMP;
   6510     if (CMP_NE(_flag_a, _flag_b)) goto L_360024A4; /* 0x36002480: jne 0x360024a4 */
   6511 L_36002482:
   6512     ecx = MEM32(ebp + 0xC); /* 0x36002482: mov ecx, dword ptr [ebp + 0xc] */
   6513     /* test ecx, ecx */ /* 0x36002485: test ecx, ecx */
   6514     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6515     _cf = 0;
   6516     _flag_k = FK_TEST;
   6517     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002487: je 0x360025cb */
   6518 L_3600248D:
   6519     /* test LO8(ebx), LO8(ebx) */ /* 0x3600248D: test bl, bl */
   6520     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6521     _cf = 0;
   6522     _flag_k = FK_NARROW(FK_TEST, 24);
   6523     if (TEST_Z(_flag_a, _flag_b)) goto L_3600249E; /* 0x3600248F: je 0x3600249e */
   6524 L_36002491:
   6525     PUSH32(esp, esi); /* 0x36002491: push esi */
   6526     PUSH32(esp, 9); /* 0x36002492: push 9 */
   6527     RECOMP_ICALL(0x360027E0u); /* 0x36002494: call 0x360027e0 */ /* not lifted */
   6528     RECOMP_FLAGS_IN();
   6529     goto L_36002581; /* 0x36002499: jmp 0x36002581 */
   6530 L_3600249E:
   6531     PUSH32(esp, ecx); /* 0x3600249E: push ecx */
   6532     goto L_36002573; /* 0x3600249F: jmp 0x36002573 */
   6533 L_360024A4:
   6534     /* cmp edi, 0xEu */ /* 0x360024A4: cmp edi, 0xe */
   6535     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xEu);
   6536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6537     _flag_k = FK_CMP;
   6538     if (CMP_NE(_flag_a, _flag_b)) goto L_3600255E; /* 0x360024A7: jne 0x3600255e */
   6539 L_360024AD:
   6540     ecx = MEM32(ebp + (-0x4)); /* 0x360024AD: mov ecx, dword ptr [ebp - 4] */
   6541     PUSH32(esp, 0); /* 0x360024B0: push 0 */
   6542     PUSH32(esp, 0x361B2CD8u); /* 0x360024B2: push 0x361b2cd8 */
   6543     PUSH32(esp, 0x361B2CC0u); /* 0x360024B7: push 0x361b2cc0 */
   6544     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   6545     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6546     ecx = ecx + 0x24u; /* 0x360024BC: add ecx, 0x24 */
   6547     _flag_k = FK_ADD;
   6548     PUSH32(esp, 0); /* 0x360024BF: push 0 */
   6549     PUSH32(esp, ecx); /* 0x360024C1: push ecx */
   6550     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024C2: call dword ptr [0x3616ff70] */
   6551     RECOMP_FLAGS_IN();
   6552     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6553     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6554     esp = esp + 4; /* 0x360024C8: add esp, 4 */
   6555     _flag_k = FK_ADD;
   6556     PUSH32(esp, eax); /* 0x360024CB: push eax */
   6557     RECOMP_ICALL(0x3615FD86u); /* 0x360024CC: call 0x3615fd86 */ /* not lifted */
   6558     RECOMP_FLAGS_IN();
   6559     edi = eax; /* 0x360024D1: mov edi, eax */
   6560     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6561     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6562     esp = esp + 0x14u; /* 0x360024D3: add esp, 0x14 */
   6563     _flag_k = FK_ADD;
   6564     /* test edi, edi */ /* 0x360024D6: test edi, edi */
   6565     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6566     _cf = 0;
   6567     _flag_k = FK_TEST;
   6568     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x360024D8: je 0x36002581 */
   6569 L_360024DE:
   6570     eax = MEM32(edi + 0x16C); /* 0x360024DE: mov eax, dword ptr [edi + 0x16c] */
   6571     PUSH32(esp, 0); /* 0x360024E4: push 0 */
   6572     PUSH32(esp, 0x361B2CD8u); /* 0x360024E6: push 0x361b2cd8 */
   6573     PUSH32(esp, 0x361B2CC0u); /* 0x360024EB: push 0x361b2cc0 */
   6574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x58u);
   6575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6576     eax = eax + 0x58u; /* 0x360024F0: add eax, 0x58 */
   6577     _flag_k = FK_ADD;
   6578     PUSH32(esp, 0); /* 0x360024F3: push 0 */
   6579     PUSH32(esp, eax); /* 0x360024F5: push eax */
   6580     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024F6: call dword ptr [0x3616ff70] */
   6581     RECOMP_FLAGS_IN();
   6582     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6584     esp = esp + 4; /* 0x360024FC: add esp, 4 */
   6585     _flag_k = FK_ADD;
   6586     PUSH32(esp, eax); /* 0x360024FF: push eax */
   6587     RECOMP_ICALL(0x3615FD86u); /* 0x36002500: call 0x3615fd86 */ /* not lifted */
   6588     RECOMP_FLAGS_IN();
   6589     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6590     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6591     esp = esp + 0x14u; /* 0x36002505: add esp, 0x14 */
   6592     _flag_k = FK_ADD;
   6593     /* test eax, eax */ /* 0x36002508: test eax, eax */
   6594     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6595     _cf = 0;
   6596     _flag_k = FK_TEST;
   6597     if (TEST_NZ(_flag_a, _flag_b)) goto L_36002539; /* 0x3600250A: jne 0x36002539 */
   6598 L_3600250C:
   6599     PUSH32(esp, eax); /* 0x3600250C: push eax */
   6600     PUSH32(esp, 0x361B2CD8u); /* 0x3600250D: push 0x361b2cd8 */
   6601     PUSH32(esp, 0x361B2CC0u); /* 0x36002512: push 0x361b2cc0 */
   6602     PUSH32(esp, eax); /* 0x36002517: push eax */
   6603     ecx = edi; /* 0x36002518: mov ecx, edi */
   6604     RECOMP_ICALL(0x36072000u); /* 0x3600251A: call 0x36072000 */ /* not lifted */
   6605     RECOMP_FLAGS_IN();
   6606     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u);
   6607     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6608     eax = eax + 0x70u; /* 0x3600251F: add eax, 0x70 */
   6609     _flag_k = FK_ADD;
   6610     PUSH32(esp, eax); /* 0x36002522: push eax */
   6611     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002523: call dword ptr [0x3616ff70] */
   6612     RECOMP_FLAGS_IN();
   6613     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6614     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6615     esp = esp + 4; /* 0x36002529: add esp, 4 */
   6616     _flag_k = FK_ADD;
   6617     PUSH32(esp, eax); /* 0x3600252C: push eax */
   6618     RECOMP_ICALL(0x3615FD86u); /* 0x3600252D: call 0x3615fd86 */ /* not lifted */
   6619     RECOMP_FLAGS_IN();
   6620     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6622     esp = esp + 0x14u; /* 0x36002532: add esp, 0x14 */
   6623     _flag_k = FK_ADD;
   6624     /* test eax, eax */ /* 0x36002535: test eax, eax */
   6625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6626     _cf = 0;
   6627     _flag_k = FK_TEST;
   6628     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x36002537: je 0x36002581 */
   6629 L_36002539:
   6630     /* test LO8(ebx), LO8(ebx) */ /* 0x36002539: test bl, bl */
   6631     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6632     _cf = 0;
   6633     _flag_k = FK_NARROW(FK_TEST, 24);
   6634     if (TEST_Z(_flag_a, _flag_b)) goto L_3600254D; /* 0x3600253B: je 0x3600254d */
   6635 L_3600253D:
   6636     PUSH32(esp, esi); /* 0x3600253D: push esi */
   6637     PUSH32(esp, 9); /* 0x3600253E: push 9 */
   6638     ecx = eax + 0xE4; /* 0x36002540: lea ecx, [eax + 0xe4] */
   6639     RECOMP_ICALL(0x360027E0u); /* 0x36002546: call 0x360027e0 */ /* not lifted */
   6640     RECOMP_FLAGS_IN();
   6641     goto L_36002581; /* 0x3600254B: jmp 0x36002581 */
   6642 L_3600254D:
   6643     /* test eax, eax */ /* 0x3600254D: test eax, eax */
   6644     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6645     _cf = 0;
   6646     _flag_k = FK_TEST;
   6647     if (TEST_Z(_flag_a, _flag_b)) goto L_36002559; /* 0x3600254F: je 0x36002559 */
   6648 L_36002551:
   6649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   6650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6651     eax = eax + 0xE4u; /* 0x36002551: add eax, 0xe4 */
   6652     _flag_k = FK_ADD;
   6653     PUSH32(esp, eax); /* 0x36002556: push eax */
   6654     goto L_36002573; /* 0x36002557: jmp 0x36002573 */
   6655 L_36002559:
   6656     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6657     eax = 0; /* 0x36002559: xor eax, eax */
   6658     _cf = 0;
   6659     _flag_k = FK_TEST;
   6660     PUSH32(esp, eax); /* 0x3600255B: push eax */
   6661     goto L_36002573; /* 0x3600255C: jmp 0x36002573 */
   6662 L_3600255E:
   6663     /* test LO8(ebx), LO8(ebx) */ /* 0x3600255E: test bl, bl */
   6664     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6665     _cf = 0;
   6666     _flag_k = FK_NARROW(FK_TEST, 24);
   6667     if (TEST_Z(_flag_a, _flag_b)) goto L_3600256F; /* 0x36002560: je 0x3600256f */
   6668 L_36002562:
   6669     ecx = MEM32(ebp + (-0x4)); /* 0x36002562: mov ecx, dword ptr [ebp - 4] */
   6670     PUSH32(esp, esi); /* 0x36002565: push esi */
   6671     PUSH32(esp, 9); /* 0x36002566: push 9 */
   6672     RECOMP_ICALL(0x360027E0u); /* 0x36002568: call 0x360027e0 */ /* not lifted */
   6673     RECOMP_FLAGS_IN();
   6674     goto L_36002581; /* 0x3600256D: jmp 0x36002581 */
   6675 L_3600256F:
   6676     edx = MEM32(ebp + (-0x4)); /* 0x3600256F: mov edx, dword ptr [ebp - 4] */
   6677     PUSH32(esp, edx); /* 0x36002572: push edx */
   6678 L_36002573:
   6679     ecx = esi; /* 0x36002573: mov ecx, esi */
   6680     RECOMP_ICALL(0x360BE8E0u); /* 0x36002575: call 0x360be8e0 */ /* not lifted */
   6681     RECOMP_FLAGS_IN();
   6682 L_3600257A:
   6683     ecx = esi; /* 0x3600257A: mov ecx, esi */
   6684     RECOMP_ICALL(0x360B7D60u); /* 0x3600257C: call 0x360b7d60 */ /* not lifted */
   6685     RECOMP_FLAGS_IN();
   6686 L_36002581:
   6687     eax = MEM32(ebp + (-0xC)); /* 0x36002581: mov eax, dword ptr [ebp - 0xc] */
   6688     ecx = MEM32(ebp + (-0x10)); /* 0x36002584: mov ecx, dword ptr [ebp - 0x10] */
   6689     /* cmp eax, ecx */ /* 0x36002587: cmp eax, ecx */
   6690     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6691     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6692     _flag_k = FK_CMP;
   6693     if (CMP_EQ(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002589: je 0x360025b3 */
   6694 L_3600258B:
   6695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6696     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6697     eax = eax + 4; /* 0x3600258B: add eax, 4 */
   6698     _flag_k = FK_ADD;
   6699     /* cmp eax, ecx */ /* 0x3600258E: cmp eax, ecx */
   6700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6702     _flag_k = FK_CMP;
   6703     MEM32(ebp + (-0xC)) = eax; /* 0x36002590: mov dword ptr [ebp - 0xc], eax */
   6704     if (CMP_NE(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002593: jne 0x360025b3 */
   6705 L_36002595:
   6706     eax = MEM32(ebp + (-0x8)); /* 0x36002595: mov eax, dword ptr [ebp - 8] */
   6707     ecx = MEM32(eax + 0x4); /* 0x36002598: mov ecx, dword ptr [eax + 4] */
   6708     /* test ecx, ecx */ /* 0x3600259B: test ecx, ecx */
   6709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6710     _cf = 0;
   6711     _flag_k = FK_TEST;
   6712     if (TEST_Z(_flag_a, _flag_b)) goto L_360025B3; /* 0x3600259D: je 0x360025b3 */
   6713 L_3600259F:
   6714     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6715     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6716     eax = eax + 4; /* 0x3600259F: add eax, 4 */
   6717     _flag_k = FK_ADD;
   6718     MEM32(ebp + (-0x8)) = eax; /* 0x360025A2: mov dword ptr [ebp - 8], eax */
   6719     eax = MEM32(eax); /* 0x360025A5: mov eax, dword ptr [eax] */
   6720     ecx = eax + 0x1000; /* 0x360025A7: lea ecx, [eax + 0x1000] */
   6721     MEM32(ebp + (-0x10)) = ecx; /* 0x360025AD: mov dword ptr [ebp - 0x10], ecx */
   6722     MEM32(ebp + (-0xC)) = eax; /* 0x360025B0: mov dword ptr [ebp - 0xc], eax */
   6723 L_360025B3:
   6724     ecx = MEM32(ebp + 0x8); /* 0x360025B3: mov ecx, dword ptr [ebp + 8] */
   6725     esi = MEM32(ebp + (-0xC)); /* 0x360025B6: mov esi, dword ptr [ebp - 0xc] */
   6726     edx = ebp + (-0x24); /* 0x360025B9: lea edx, [ebp - 0x24] */
   6727     PUSH32(esp, edx); /* 0x360025BC: push edx */
   6728     RECOMP_ICALL(0x360C0300u); /* 0x360025BD: call 0x360c0300 */ /* not lifted */
   6729     RECOMP_FLAGS_IN();
   6730     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360025C2: cmp esi, dword ptr [eax + 8] */
   6731     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   6732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6733     _flag_k = FK_CMP;
   6734     RECOMP_BACKEDGE();
   6735     if (CMP_NE(_flag_a, _flag_b)) goto L_360023BD; /* 0x360025C5: jne 0x360023bd */
   6736 L_360025CB:
   6737     edi = POP32_VAL(esp); /* 0x360025CB: pop edi */
   6738     esi = POP32_VAL(esp); /* 0x360025CC: pop esi */
   6739     ebx = POP32_VAL(esp); /* 0x360025CD: pop ebx */
   6740     esp = ebp; /* 0x360025CE: mov esp, ebp */
   6741     ebp = POP32_VAL(esp); /* 0x360025D0: pop ebp */
   6742     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360025D1: ret 0x10 */
   6743     RECOMP_REGS_OUT();
   6744 }
   6745 
   6746 void sub_360023BD(void) {
   6747     int _fpu_cmp = 0;
   6748     uint32_t _cf = 0;
   6749     int _df = 1;
   6750     uint32_t _flag_k = FK_NONE;
   6751     uint32_t _flag_a = 0, _flag_b = 0;
   6752     uint32_t _itail_tgt = 0;
   6753     RECOMP_REGS_LOCALS
   6754     RECOMP_ENTER(0x360023BDu);
   6755 
   6756 L_360023BD:
   6757     ecx = MEM32(esi); /* 0x360023BD: mov ecx, dword ptr [esi] */
   6758     RECOMP_ICALL(0x360BFC30u); /* 0x360023BF: call 0x360bfc30 */ /* not lifted */
   6759     RECOMP_FLAGS_IN();
   6760     esi = eax; /* 0x360023C4: mov esi, eax */
   6761     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360023C6: mov al, byte ptr [ebp + 0x10] */
   6762     /* test LO8(eax), LO8(eax) */ /* 0x360023C9: test al, al */
   6763     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6764     _cf = 0;
   6765     _flag_k = FK_NARROW(FK_TEST, 24);
   6766     eax = MEM32(esi + 0x1C); /* 0x360023CB: mov eax, dword ptr [esi + 0x1c] */
   6767     if (TEST_Z(_flag_a, _flag_b)) goto L_360023D5; /* 0x360023CE: je 0x360023d5 */
   6768 L_360023D0:
   6769     _flag_a = (uint32_t)((eax | 1)); _flag_b = (uint32_t)((eax | 1));
   6770     eax = eax | 1; /* 0x360023D0: or eax, 1 */
   6771     _cf = 0;
   6772     _flag_k = FK_TEST;
   6773     goto L_360023D8; /* 0x360023D3: jmp 0x360023d8 */
   6774 L_360023D5:
   6775     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   6776     eax = eax & 0xFFFFFFFEu; /* 0x360023D5: and eax, 0xfffffffe */
   6777     _cf = 0;
   6778     _flag_k = FK_TEST;
   6779 L_360023D8:
   6780     /* test LO8(eax), 8 */ /* 0x360023D8: test al, 8 */
   6781     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
   6782     _cf = 0;
   6783     _flag_k = FK_NARROW(FK_TEST, 24);
   6784     MEM32(esi + 0x1C) = eax; /* 0x360023DA: mov dword ptr [esi + 0x1c], eax */
   6785     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023DD: jne 0x3600257a */
   6786 L_360023E3:
   6787     eax = MEM32(ebp + 0x14); /* 0x360023E3: mov eax, dword ptr [ebp + 0x14] */
   6788     edx = MEM32(eax); /* 0x360023E6: mov edx, dword ptr [eax] */
   6789     MEM32(esi + 0x10) = edx; /* 0x360023E8: mov dword ptr [esi + 0x10], edx */
   6790     eax = MEM32(eax + 0x4); /* 0x360023EB: mov eax, dword ptr [eax + 4] */
   6791     ecx = esi; /* 0x360023EE: mov ecx, esi */
   6792     MEM32(esi + 0x14) = eax; /* 0x360023F0: mov dword ptr [esi + 0x14], eax */
   6793     RECOMP_ICALL(0x360BD340u); /* 0x360023F3: call 0x360bd340 */ /* not lifted */
   6794     RECOMP_FLAGS_IN();
   6795     /* cmp MEM32(esi + 0x8), 0xFFFFFFFFu */ /* 0x360023F8: cmp dword ptr [esi + 8], -1 */
   6796     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6798     _flag_k = FK_CMP;
   6799     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023FC: je 0x3600257a */
   6800 L_36002402:
   6801     PUSH32(esp, 0x20u); /* 0x36002402: push 0x20 */
   6802     ecx = esi; /* 0x36002404: mov ecx, esi */
   6803     RECOMP_ICALL(0x360BD190u); /* 0x36002406: call 0x360bd190 */ /* not lifted */
   6804     RECOMP_FLAGS_IN();
   6805     edi = eax; /* 0x3600240B: mov edi, eax */
   6806     eax = MEM32(esi); /* 0x3600240D: mov eax, dword ptr [esi] */
   6807     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6808     SET_LO8(ebx, 0); /* 0x3600240F: xor bl, bl */
   6809     _cf = 0;
   6810     _flag_k = FK_NARROW(FK_TEST, 24);
   6811     /* cmp eax, 0xCF16u */ /* 0x36002411: cmp eax, 0xcf16 */
   6812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCF16u);
   6813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6814     _flag_k = FK_CMP;
   6815     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600242B; /* 0x36002416: je 0x3600242b */
   6816 L_36002418:
   6817     /* cmp MEM32(esi + 0x8), 1 */ /* 0x36002418: cmp dword ptr [esi + 8], 1 */
   6818     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1);
   6819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6820     _flag_k = FK_CMP;
   6821     if (CMP_G(_flag_a, _flag_b)) goto L_3600242B; /* 0x3600241C: jg 0x3600242b */
   6822 L_3600241E:
   6823     PUSH32(esp, 4); /* 0x3600241E: push 4 */
   6824     ecx = esi; /* 0x36002420: mov ecx, esi */
   6825     RECOMP_ICALL(0x360BD190u); /* 0x36002422: call 0x360bd190 */ /* not lifted */
   6826     RECOMP_FLAGS_IN();
   6827     /* test eax, eax */ /* 0x36002427: test eax, eax */
   6828     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6829     _cf = 0;
   6830     _flag_k = FK_TEST;
   6831     if (TEST_LE(_flag_a, _flag_b)) goto L_3600242D; /* 0x36002429: jle 0x3600242d */
   6832 L_3600242B:
   6833     SET_LO8(ebx, 1); /* 0x3600242B: mov bl, 1 */
   6834 L_3600242D:
   6835     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x3600242D: mov al, byte ptr [ebp + 0x10] */
   6836     /* test LO8(eax), LO8(eax) */ /* 0x36002430: test al, al */
   6837     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6838     _cf = 0;
   6839     _flag_k = FK_NARROW(FK_TEST, 24);
   6840     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002432: je 0x3600243f */
   6841 L_36002434:
   6842     /* test LO8(ebx), LO8(ebx) */ /* 0x36002434: test bl, bl */
   6843     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6844     _cf = 0;
   6845     _flag_k = FK_NARROW(FK_TEST, 24);
   6846     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002436: je 0x3600243f */
   6847 L_36002438:
   6848     MEM32(esi + 0x8) = 1; /* 0x36002438: mov dword ptr [esi + 8], 1 */
   6849 L_3600243F:
   6850     /* cmp edi, 2 */ /* 0x3600243F: cmp edi, 2 */
   6851     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   6852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6853     _flag_k = FK_CMP;
   6854     if (CMP_NE(_flag_a, _flag_b)) goto L_3600247D; /* 0x36002442: jne 0x3600247d */
   6855 L_36002444:
   6856     edi = MEM32(ebp + (-0x4)); /* 0x36002444: mov edi, dword ptr [ebp - 4] */
   6857     ecx = edi; /* 0x36002447: mov ecx, edi */
   6858     RECOMP_ICALL(0x36002750u); /* 0x36002449: call 0x36002750 */ /* not lifted */
   6859     RECOMP_FLAGS_IN();
   6860     /* test eax, eax */ /* 0x3600244E: test eax, eax */
   6861     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6862     _cf = 0;
   6863     _flag_k = FK_TEST;
   6864     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002450: je 0x360025cb */
   6865 L_36002456:
   6866     /* test LO8(ebx), LO8(ebx) */ /* 0x36002456: test bl, bl */
   6867     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6868     _cf = 0;
   6869     _flag_k = FK_NARROW(FK_TEST, 24);
   6870     if (TEST_Z(_flag_a, _flag_b)) goto L_36002470; /* 0x36002458: je 0x36002470 */
   6871 L_3600245A:
   6872     PUSH32(esp, esi); /* 0x3600245A: push esi */
   6873     PUSH32(esp, 9); /* 0x3600245B: push 9 */
   6874     ecx = edi; /* 0x3600245D: mov ecx, edi */
   6875     RECOMP_ICALL(0x36002750u); /* 0x3600245F: call 0x36002750 */ /* not lifted */
   6876     RECOMP_FLAGS_IN();
   6877     ecx = eax; /* 0x36002464: mov ecx, eax */
   6878     RECOMP_ICALL(0x360027E0u); /* 0x36002466: call 0x360027e0 */ /* not lifted */
   6879     RECOMP_FLAGS_IN();
   6880     goto L_36002581; /* 0x3600246B: jmp 0x36002581 */
   6881 L_36002470:
   6882     ecx = edi; /* 0x36002470: mov ecx, edi */
   6883     RECOMP_ICALL(0x36002750u); /* 0x36002472: call 0x36002750 */ /* not lifted */
   6884     RECOMP_FLAGS_IN();
   6885     PUSH32(esp, eax); /* 0x36002477: push eax */
   6886     goto L_36002573; /* 0x36002478: jmp 0x36002573 */
   6887 L_3600247D:
   6888     /* cmp edi, 3 */ /* 0x3600247D: cmp edi, 3 */
   6889     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   6890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6891     _flag_k = FK_CMP;
   6892     if (CMP_NE(_flag_a, _flag_b)) goto L_360024A4; /* 0x36002480: jne 0x360024a4 */
   6893 L_36002482:
   6894     ecx = MEM32(ebp + 0xC); /* 0x36002482: mov ecx, dword ptr [ebp + 0xc] */
   6895     /* test ecx, ecx */ /* 0x36002485: test ecx, ecx */
   6896     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6897     _cf = 0;
   6898     _flag_k = FK_TEST;
   6899     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002487: je 0x360025cb */
   6900 L_3600248D:
   6901     /* test LO8(ebx), LO8(ebx) */ /* 0x3600248D: test bl, bl */
   6902     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   6903     _cf = 0;
   6904     _flag_k = FK_NARROW(FK_TEST, 24);
   6905     if (TEST_Z(_flag_a, _flag_b)) goto L_3600249E; /* 0x3600248F: je 0x3600249e */
   6906 L_36002491:
   6907     PUSH32(esp, esi); /* 0x36002491: push esi */
   6908     PUSH32(esp, 9); /* 0x36002492: push 9 */
   6909     RECOMP_ICALL(0x360027E0u); /* 0x36002494: call 0x360027e0 */ /* not lifted */
   6910     RECOMP_FLAGS_IN();
   6911     goto L_36002581; /* 0x36002499: jmp 0x36002581 */
   6912 L_3600249E:
   6913     PUSH32(esp, ecx); /* 0x3600249E: push ecx */
   6914     goto L_36002573; /* 0x3600249F: jmp 0x36002573 */
   6915 L_360024A4:
   6916     /* cmp edi, 0xEu */ /* 0x360024A4: cmp edi, 0xe */
   6917     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xEu);
   6918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6919     _flag_k = FK_CMP;
   6920     if (CMP_NE(_flag_a, _flag_b)) goto L_3600255E; /* 0x360024A7: jne 0x3600255e */
   6921 L_360024AD:
   6922     ecx = MEM32(ebp + (-0x4)); /* 0x360024AD: mov ecx, dword ptr [ebp - 4] */
   6923     PUSH32(esp, 0); /* 0x360024B0: push 0 */
   6924     PUSH32(esp, 0x361B2CD8u); /* 0x360024B2: push 0x361b2cd8 */
   6925     PUSH32(esp, 0x361B2CC0u); /* 0x360024B7: push 0x361b2cc0 */
   6926     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   6927     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6928     ecx = ecx + 0x24u; /* 0x360024BC: add ecx, 0x24 */
   6929     _flag_k = FK_ADD;
   6930     PUSH32(esp, 0); /* 0x360024BF: push 0 */
   6931     PUSH32(esp, ecx); /* 0x360024C1: push ecx */
   6932     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024C2: call dword ptr [0x3616ff70] */
   6933     RECOMP_FLAGS_IN();
   6934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6936     esp = esp + 4; /* 0x360024C8: add esp, 4 */
   6937     _flag_k = FK_ADD;
   6938     PUSH32(esp, eax); /* 0x360024CB: push eax */
   6939     RECOMP_ICALL(0x3615FD86u); /* 0x360024CC: call 0x3615fd86 */ /* not lifted */
   6940     RECOMP_FLAGS_IN();
   6941     edi = eax; /* 0x360024D1: mov edi, eax */
   6942     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6943     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6944     esp = esp + 0x14u; /* 0x360024D3: add esp, 0x14 */
   6945     _flag_k = FK_ADD;
   6946     /* test edi, edi */ /* 0x360024D6: test edi, edi */
   6947     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6948     _cf = 0;
   6949     _flag_k = FK_TEST;
   6950     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x360024D8: je 0x36002581 */
   6951 L_360024DE:
   6952     eax = MEM32(edi + 0x16C); /* 0x360024DE: mov eax, dword ptr [edi + 0x16c] */
   6953     PUSH32(esp, 0); /* 0x360024E4: push 0 */
   6954     PUSH32(esp, 0x361B2CD8u); /* 0x360024E6: push 0x361b2cd8 */
   6955     PUSH32(esp, 0x361B2CC0u); /* 0x360024EB: push 0x361b2cc0 */
   6956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x58u);
   6957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6958     eax = eax + 0x58u; /* 0x360024F0: add eax, 0x58 */
   6959     _flag_k = FK_ADD;
   6960     PUSH32(esp, 0); /* 0x360024F3: push 0 */
   6961     PUSH32(esp, eax); /* 0x360024F5: push eax */
   6962     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024F6: call dword ptr [0x3616ff70] */
   6963     RECOMP_FLAGS_IN();
   6964     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6965     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6966     esp = esp + 4; /* 0x360024FC: add esp, 4 */
   6967     _flag_k = FK_ADD;
   6968     PUSH32(esp, eax); /* 0x360024FF: push eax */
   6969     RECOMP_ICALL(0x3615FD86u); /* 0x36002500: call 0x3615fd86 */ /* not lifted */
   6970     RECOMP_FLAGS_IN();
   6971     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6972     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6973     esp = esp + 0x14u; /* 0x36002505: add esp, 0x14 */
   6974     _flag_k = FK_ADD;
   6975     /* test eax, eax */ /* 0x36002508: test eax, eax */
   6976     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6977     _cf = 0;
   6978     _flag_k = FK_TEST;
   6979     if (TEST_NZ(_flag_a, _flag_b)) goto L_36002539; /* 0x3600250A: jne 0x36002539 */
   6980 L_3600250C:
   6981     PUSH32(esp, eax); /* 0x3600250C: push eax */
   6982     PUSH32(esp, 0x361B2CD8u); /* 0x3600250D: push 0x361b2cd8 */
   6983     PUSH32(esp, 0x361B2CC0u); /* 0x36002512: push 0x361b2cc0 */
   6984     PUSH32(esp, eax); /* 0x36002517: push eax */
   6985     ecx = edi; /* 0x36002518: mov ecx, edi */
   6986     RECOMP_ICALL(0x36072000u); /* 0x3600251A: call 0x36072000 */ /* not lifted */
   6987     RECOMP_FLAGS_IN();
   6988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u);
   6989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6990     eax = eax + 0x70u; /* 0x3600251F: add eax, 0x70 */
   6991     _flag_k = FK_ADD;
   6992     PUSH32(esp, eax); /* 0x36002522: push eax */
   6993     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002523: call dword ptr [0x3616ff70] */
   6994     RECOMP_FLAGS_IN();
   6995     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6996     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6997     esp = esp + 4; /* 0x36002529: add esp, 4 */
   6998     _flag_k = FK_ADD;
   6999     PUSH32(esp, eax); /* 0x3600252C: push eax */
   7000     RECOMP_ICALL(0x3615FD86u); /* 0x3600252D: call 0x3615fd86 */ /* not lifted */
   7001     RECOMP_FLAGS_IN();
   7002     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7003     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7004     esp = esp + 0x14u; /* 0x36002532: add esp, 0x14 */
   7005     _flag_k = FK_ADD;
   7006     /* test eax, eax */ /* 0x36002535: test eax, eax */
   7007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7008     _cf = 0;
   7009     _flag_k = FK_TEST;
   7010     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x36002537: je 0x36002581 */
   7011 L_36002539:
   7012     /* test LO8(ebx), LO8(ebx) */ /* 0x36002539: test bl, bl */
   7013     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7014     _cf = 0;
   7015     _flag_k = FK_NARROW(FK_TEST, 24);
   7016     if (TEST_Z(_flag_a, _flag_b)) goto L_3600254D; /* 0x3600253B: je 0x3600254d */
   7017 L_3600253D:
   7018     PUSH32(esp, esi); /* 0x3600253D: push esi */
   7019     PUSH32(esp, 9); /* 0x3600253E: push 9 */
   7020     ecx = eax + 0xE4; /* 0x36002540: lea ecx, [eax + 0xe4] */
   7021     RECOMP_ICALL(0x360027E0u); /* 0x36002546: call 0x360027e0 */ /* not lifted */
   7022     RECOMP_FLAGS_IN();
   7023     goto L_36002581; /* 0x3600254B: jmp 0x36002581 */
   7024 L_3600254D:
   7025     /* test eax, eax */ /* 0x3600254D: test eax, eax */
   7026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7027     _cf = 0;
   7028     _flag_k = FK_TEST;
   7029     if (TEST_Z(_flag_a, _flag_b)) goto L_36002559; /* 0x3600254F: je 0x36002559 */
   7030 L_36002551:
   7031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   7032     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7033     eax = eax + 0xE4u; /* 0x36002551: add eax, 0xe4 */
   7034     _flag_k = FK_ADD;
   7035     PUSH32(esp, eax); /* 0x36002556: push eax */
   7036     goto L_36002573; /* 0x36002557: jmp 0x36002573 */
   7037 L_36002559:
   7038     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7039     eax = 0; /* 0x36002559: xor eax, eax */
   7040     _cf = 0;
   7041     _flag_k = FK_TEST;
   7042     PUSH32(esp, eax); /* 0x3600255B: push eax */
   7043     goto L_36002573; /* 0x3600255C: jmp 0x36002573 */
   7044 L_3600255E:
   7045     /* test LO8(ebx), LO8(ebx) */ /* 0x3600255E: test bl, bl */
   7046     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7047     _cf = 0;
   7048     _flag_k = FK_NARROW(FK_TEST, 24);
   7049     if (TEST_Z(_flag_a, _flag_b)) goto L_3600256F; /* 0x36002560: je 0x3600256f */
   7050 L_36002562:
   7051     ecx = MEM32(ebp + (-0x4)); /* 0x36002562: mov ecx, dword ptr [ebp - 4] */
   7052     PUSH32(esp, esi); /* 0x36002565: push esi */
   7053     PUSH32(esp, 9); /* 0x36002566: push 9 */
   7054     RECOMP_ICALL(0x360027E0u); /* 0x36002568: call 0x360027e0 */ /* not lifted */
   7055     RECOMP_FLAGS_IN();
   7056     goto L_36002581; /* 0x3600256D: jmp 0x36002581 */
   7057 L_3600256F:
   7058     edx = MEM32(ebp + (-0x4)); /* 0x3600256F: mov edx, dword ptr [ebp - 4] */
   7059     PUSH32(esp, edx); /* 0x36002572: push edx */
   7060 L_36002573:
   7061     ecx = esi; /* 0x36002573: mov ecx, esi */
   7062     RECOMP_ICALL(0x360BE8E0u); /* 0x36002575: call 0x360be8e0 */ /* not lifted */
   7063     RECOMP_FLAGS_IN();
   7064 L_3600257A:
   7065     ecx = esi; /* 0x3600257A: mov ecx, esi */
   7066     RECOMP_ICALL(0x360B7D60u); /* 0x3600257C: call 0x360b7d60 */ /* not lifted */
   7067     RECOMP_FLAGS_IN();
   7068 L_36002581:
   7069     eax = MEM32(ebp + (-0xC)); /* 0x36002581: mov eax, dword ptr [ebp - 0xc] */
   7070     ecx = MEM32(ebp + (-0x10)); /* 0x36002584: mov ecx, dword ptr [ebp - 0x10] */
   7071     /* cmp eax, ecx */ /* 0x36002587: cmp eax, ecx */
   7072     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7073     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7074     _flag_k = FK_CMP;
   7075     if (CMP_EQ(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002589: je 0x360025b3 */
   7076 L_3600258B:
   7077     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7078     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7079     eax = eax + 4; /* 0x3600258B: add eax, 4 */
   7080     _flag_k = FK_ADD;
   7081     /* cmp eax, ecx */ /* 0x3600258E: cmp eax, ecx */
   7082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7084     _flag_k = FK_CMP;
   7085     MEM32(ebp + (-0xC)) = eax; /* 0x36002590: mov dword ptr [ebp - 0xc], eax */
   7086     if (CMP_NE(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002593: jne 0x360025b3 */
   7087 L_36002595:
   7088     eax = MEM32(ebp + (-0x8)); /* 0x36002595: mov eax, dword ptr [ebp - 8] */
   7089     ecx = MEM32(eax + 0x4); /* 0x36002598: mov ecx, dword ptr [eax + 4] */
   7090     /* test ecx, ecx */ /* 0x3600259B: test ecx, ecx */
   7091     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7092     _cf = 0;
   7093     _flag_k = FK_TEST;
   7094     if (TEST_Z(_flag_a, _flag_b)) goto L_360025B3; /* 0x3600259D: je 0x360025b3 */
   7095 L_3600259F:
   7096     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7097     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7098     eax = eax + 4; /* 0x3600259F: add eax, 4 */
   7099     _flag_k = FK_ADD;
   7100     MEM32(ebp + (-0x8)) = eax; /* 0x360025A2: mov dword ptr [ebp - 8], eax */
   7101     eax = MEM32(eax); /* 0x360025A5: mov eax, dword ptr [eax] */
   7102     ecx = eax + 0x1000; /* 0x360025A7: lea ecx, [eax + 0x1000] */
   7103     MEM32(ebp + (-0x10)) = ecx; /* 0x360025AD: mov dword ptr [ebp - 0x10], ecx */
   7104     MEM32(ebp + (-0xC)) = eax; /* 0x360025B0: mov dword ptr [ebp - 0xc], eax */
   7105 L_360025B3:
   7106     ecx = MEM32(ebp + 0x8); /* 0x360025B3: mov ecx, dword ptr [ebp + 8] */
   7107     esi = MEM32(ebp + (-0xC)); /* 0x360025B6: mov esi, dword ptr [ebp - 0xc] */
   7108     edx = ebp + (-0x24); /* 0x360025B9: lea edx, [ebp - 0x24] */
   7109     PUSH32(esp, edx); /* 0x360025BC: push edx */
   7110     RECOMP_ICALL(0x360C0300u); /* 0x360025BD: call 0x360c0300 */ /* not lifted */
   7111     RECOMP_FLAGS_IN();
   7112     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360025C2: cmp esi, dword ptr [eax + 8] */
   7113     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7115     _flag_k = FK_CMP;
   7116     RECOMP_BACKEDGE();
   7117     if (CMP_NE(_flag_a, _flag_b)) goto L_360023BD; /* 0x360025C5: jne 0x360023bd */
   7118 L_360025CB:
   7119     edi = POP32_VAL(esp); /* 0x360025CB: pop edi */
   7120     esi = POP32_VAL(esp); /* 0x360025CC: pop esi */
   7121     ebx = POP32_VAL(esp); /* 0x360025CD: pop ebx */
   7122     esp = ebp; /* 0x360025CE: mov esp, ebp */
   7123     ebp = POP32_VAL(esp); /* 0x360025D0: pop ebp */
   7124     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360025D1: ret 0x10 */
   7125     RECOMP_REGS_OUT();
   7126 }
   7127 
   7128 void sub_360023D8(void) {
   7129     int _fpu_cmp = 0;
   7130     uint32_t _cf = 0;
   7131     int _df = 1;
   7132     uint32_t _flag_k = FK_NONE;
   7133     uint32_t _flag_a = 0, _flag_b = 0;
   7134     uint32_t _itail_tgt = 0;
   7135     RECOMP_REGS_LOCALS
   7136     RECOMP_ENTER(0x360023D8u);
   7137 
   7138     goto L_360023D8;
   7139 L_360023BD:
   7140     ecx = MEM32(esi); /* 0x360023BD: mov ecx, dword ptr [esi] */
   7141     RECOMP_ICALL(0x360BFC30u); /* 0x360023BF: call 0x360bfc30 */ /* not lifted */
   7142     RECOMP_FLAGS_IN();
   7143     esi = eax; /* 0x360023C4: mov esi, eax */
   7144     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360023C6: mov al, byte ptr [ebp + 0x10] */
   7145     /* test LO8(eax), LO8(eax) */ /* 0x360023C9: test al, al */
   7146     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7147     _cf = 0;
   7148     _flag_k = FK_NARROW(FK_TEST, 24);
   7149     eax = MEM32(esi + 0x1C); /* 0x360023CB: mov eax, dword ptr [esi + 0x1c] */
   7150     if (TEST_Z(_flag_a, _flag_b)) goto L_360023D5; /* 0x360023CE: je 0x360023d5 */
   7151 L_360023D0:
   7152     _flag_a = (uint32_t)((eax | 1)); _flag_b = (uint32_t)((eax | 1));
   7153     eax = eax | 1; /* 0x360023D0: or eax, 1 */
   7154     _cf = 0;
   7155     _flag_k = FK_TEST;
   7156     goto L_360023D8; /* 0x360023D3: jmp 0x360023d8 */
   7157 L_360023D5:
   7158     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   7159     eax = eax & 0xFFFFFFFEu; /* 0x360023D5: and eax, 0xfffffffe */
   7160     _cf = 0;
   7161     _flag_k = FK_TEST;
   7162 L_360023D8:
   7163     /* test LO8(eax), 8 */ /* 0x360023D8: test al, 8 */
   7164     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
   7165     _cf = 0;
   7166     _flag_k = FK_NARROW(FK_TEST, 24);
   7167     MEM32(esi + 0x1C) = eax; /* 0x360023DA: mov dword ptr [esi + 0x1c], eax */
   7168     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023DD: jne 0x3600257a */
   7169 L_360023E3:
   7170     eax = MEM32(ebp + 0x14); /* 0x360023E3: mov eax, dword ptr [ebp + 0x14] */
   7171     edx = MEM32(eax); /* 0x360023E6: mov edx, dword ptr [eax] */
   7172     MEM32(esi + 0x10) = edx; /* 0x360023E8: mov dword ptr [esi + 0x10], edx */
   7173     eax = MEM32(eax + 0x4); /* 0x360023EB: mov eax, dword ptr [eax + 4] */
   7174     ecx = esi; /* 0x360023EE: mov ecx, esi */
   7175     MEM32(esi + 0x14) = eax; /* 0x360023F0: mov dword ptr [esi + 0x14], eax */
   7176     RECOMP_ICALL(0x360BD340u); /* 0x360023F3: call 0x360bd340 */ /* not lifted */
   7177     RECOMP_FLAGS_IN();
   7178     /* cmp MEM32(esi + 0x8), 0xFFFFFFFFu */ /* 0x360023F8: cmp dword ptr [esi + 8], -1 */
   7179     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7180     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7181     _flag_k = FK_CMP;
   7182     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023FC: je 0x3600257a */
   7183 L_36002402:
   7184     PUSH32(esp, 0x20u); /* 0x36002402: push 0x20 */
   7185     ecx = esi; /* 0x36002404: mov ecx, esi */
   7186     RECOMP_ICALL(0x360BD190u); /* 0x36002406: call 0x360bd190 */ /* not lifted */
   7187     RECOMP_FLAGS_IN();
   7188     edi = eax; /* 0x3600240B: mov edi, eax */
   7189     eax = MEM32(esi); /* 0x3600240D: mov eax, dword ptr [esi] */
   7190     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7191     SET_LO8(ebx, 0); /* 0x3600240F: xor bl, bl */
   7192     _cf = 0;
   7193     _flag_k = FK_NARROW(FK_TEST, 24);
   7194     /* cmp eax, 0xCF16u */ /* 0x36002411: cmp eax, 0xcf16 */
   7195     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCF16u);
   7196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7197     _flag_k = FK_CMP;
   7198     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600242B; /* 0x36002416: je 0x3600242b */
   7199 L_36002418:
   7200     /* cmp MEM32(esi + 0x8), 1 */ /* 0x36002418: cmp dword ptr [esi + 8], 1 */
   7201     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1);
   7202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7203     _flag_k = FK_CMP;
   7204     if (CMP_G(_flag_a, _flag_b)) goto L_3600242B; /* 0x3600241C: jg 0x3600242b */
   7205 L_3600241E:
   7206     PUSH32(esp, 4); /* 0x3600241E: push 4 */
   7207     ecx = esi; /* 0x36002420: mov ecx, esi */
   7208     RECOMP_ICALL(0x360BD190u); /* 0x36002422: call 0x360bd190 */ /* not lifted */
   7209     RECOMP_FLAGS_IN();
   7210     /* test eax, eax */ /* 0x36002427: test eax, eax */
   7211     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7212     _cf = 0;
   7213     _flag_k = FK_TEST;
   7214     if (TEST_LE(_flag_a, _flag_b)) goto L_3600242D; /* 0x36002429: jle 0x3600242d */
   7215 L_3600242B:
   7216     SET_LO8(ebx, 1); /* 0x3600242B: mov bl, 1 */
   7217 L_3600242D:
   7218     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x3600242D: mov al, byte ptr [ebp + 0x10] */
   7219     /* test LO8(eax), LO8(eax) */ /* 0x36002430: test al, al */
   7220     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7221     _cf = 0;
   7222     _flag_k = FK_NARROW(FK_TEST, 24);
   7223     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002432: je 0x3600243f */
   7224 L_36002434:
   7225     /* test LO8(ebx), LO8(ebx) */ /* 0x36002434: test bl, bl */
   7226     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7227     _cf = 0;
   7228     _flag_k = FK_NARROW(FK_TEST, 24);
   7229     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002436: je 0x3600243f */
   7230 L_36002438:
   7231     MEM32(esi + 0x8) = 1; /* 0x36002438: mov dword ptr [esi + 8], 1 */
   7232 L_3600243F:
   7233     /* cmp edi, 2 */ /* 0x3600243F: cmp edi, 2 */
   7234     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   7235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7236     _flag_k = FK_CMP;
   7237     if (CMP_NE(_flag_a, _flag_b)) goto L_3600247D; /* 0x36002442: jne 0x3600247d */
   7238 L_36002444:
   7239     edi = MEM32(ebp + (-0x4)); /* 0x36002444: mov edi, dword ptr [ebp - 4] */
   7240     ecx = edi; /* 0x36002447: mov ecx, edi */
   7241     RECOMP_ICALL(0x36002750u); /* 0x36002449: call 0x36002750 */ /* not lifted */
   7242     RECOMP_FLAGS_IN();
   7243     /* test eax, eax */ /* 0x3600244E: test eax, eax */
   7244     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7245     _cf = 0;
   7246     _flag_k = FK_TEST;
   7247     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002450: je 0x360025cb */
   7248 L_36002456:
   7249     /* test LO8(ebx), LO8(ebx) */ /* 0x36002456: test bl, bl */
   7250     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7251     _cf = 0;
   7252     _flag_k = FK_NARROW(FK_TEST, 24);
   7253     if (TEST_Z(_flag_a, _flag_b)) goto L_36002470; /* 0x36002458: je 0x36002470 */
   7254 L_3600245A:
   7255     PUSH32(esp, esi); /* 0x3600245A: push esi */
   7256     PUSH32(esp, 9); /* 0x3600245B: push 9 */
   7257     ecx = edi; /* 0x3600245D: mov ecx, edi */
   7258     RECOMP_ICALL(0x36002750u); /* 0x3600245F: call 0x36002750 */ /* not lifted */
   7259     RECOMP_FLAGS_IN();
   7260     ecx = eax; /* 0x36002464: mov ecx, eax */
   7261     RECOMP_ICALL(0x360027E0u); /* 0x36002466: call 0x360027e0 */ /* not lifted */
   7262     RECOMP_FLAGS_IN();
   7263     goto L_36002581; /* 0x3600246B: jmp 0x36002581 */
   7264 L_36002470:
   7265     ecx = edi; /* 0x36002470: mov ecx, edi */
   7266     RECOMP_ICALL(0x36002750u); /* 0x36002472: call 0x36002750 */ /* not lifted */
   7267     RECOMP_FLAGS_IN();
   7268     PUSH32(esp, eax); /* 0x36002477: push eax */
   7269     goto L_36002573; /* 0x36002478: jmp 0x36002573 */
   7270 L_3600247D:
   7271     /* cmp edi, 3 */ /* 0x3600247D: cmp edi, 3 */
   7272     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   7273     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7274     _flag_k = FK_CMP;
   7275     if (CMP_NE(_flag_a, _flag_b)) goto L_360024A4; /* 0x36002480: jne 0x360024a4 */
   7276 L_36002482:
   7277     ecx = MEM32(ebp + 0xC); /* 0x36002482: mov ecx, dword ptr [ebp + 0xc] */
   7278     /* test ecx, ecx */ /* 0x36002485: test ecx, ecx */
   7279     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7280     _cf = 0;
   7281     _flag_k = FK_TEST;
   7282     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002487: je 0x360025cb */
   7283 L_3600248D:
   7284     /* test LO8(ebx), LO8(ebx) */ /* 0x3600248D: test bl, bl */
   7285     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7286     _cf = 0;
   7287     _flag_k = FK_NARROW(FK_TEST, 24);
   7288     if (TEST_Z(_flag_a, _flag_b)) goto L_3600249E; /* 0x3600248F: je 0x3600249e */
   7289 L_36002491:
   7290     PUSH32(esp, esi); /* 0x36002491: push esi */
   7291     PUSH32(esp, 9); /* 0x36002492: push 9 */
   7292     RECOMP_ICALL(0x360027E0u); /* 0x36002494: call 0x360027e0 */ /* not lifted */
   7293     RECOMP_FLAGS_IN();
   7294     goto L_36002581; /* 0x36002499: jmp 0x36002581 */
   7295 L_3600249E:
   7296     PUSH32(esp, ecx); /* 0x3600249E: push ecx */
   7297     goto L_36002573; /* 0x3600249F: jmp 0x36002573 */
   7298 L_360024A4:
   7299     /* cmp edi, 0xEu */ /* 0x360024A4: cmp edi, 0xe */
   7300     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xEu);
   7301     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7302     _flag_k = FK_CMP;
   7303     if (CMP_NE(_flag_a, _flag_b)) goto L_3600255E; /* 0x360024A7: jne 0x3600255e */
   7304 L_360024AD:
   7305     ecx = MEM32(ebp + (-0x4)); /* 0x360024AD: mov ecx, dword ptr [ebp - 4] */
   7306     PUSH32(esp, 0); /* 0x360024B0: push 0 */
   7307     PUSH32(esp, 0x361B2CD8u); /* 0x360024B2: push 0x361b2cd8 */
   7308     PUSH32(esp, 0x361B2CC0u); /* 0x360024B7: push 0x361b2cc0 */
   7309     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   7310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7311     ecx = ecx + 0x24u; /* 0x360024BC: add ecx, 0x24 */
   7312     _flag_k = FK_ADD;
   7313     PUSH32(esp, 0); /* 0x360024BF: push 0 */
   7314     PUSH32(esp, ecx); /* 0x360024C1: push ecx */
   7315     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024C2: call dword ptr [0x3616ff70] */
   7316     RECOMP_FLAGS_IN();
   7317     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7319     esp = esp + 4; /* 0x360024C8: add esp, 4 */
   7320     _flag_k = FK_ADD;
   7321     PUSH32(esp, eax); /* 0x360024CB: push eax */
   7322     RECOMP_ICALL(0x3615FD86u); /* 0x360024CC: call 0x3615fd86 */ /* not lifted */
   7323     RECOMP_FLAGS_IN();
   7324     edi = eax; /* 0x360024D1: mov edi, eax */
   7325     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7326     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7327     esp = esp + 0x14u; /* 0x360024D3: add esp, 0x14 */
   7328     _flag_k = FK_ADD;
   7329     /* test edi, edi */ /* 0x360024D6: test edi, edi */
   7330     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7331     _cf = 0;
   7332     _flag_k = FK_TEST;
   7333     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x360024D8: je 0x36002581 */
   7334 L_360024DE:
   7335     eax = MEM32(edi + 0x16C); /* 0x360024DE: mov eax, dword ptr [edi + 0x16c] */
   7336     PUSH32(esp, 0); /* 0x360024E4: push 0 */
   7337     PUSH32(esp, 0x361B2CD8u); /* 0x360024E6: push 0x361b2cd8 */
   7338     PUSH32(esp, 0x361B2CC0u); /* 0x360024EB: push 0x361b2cc0 */
   7339     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x58u);
   7340     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7341     eax = eax + 0x58u; /* 0x360024F0: add eax, 0x58 */
   7342     _flag_k = FK_ADD;
   7343     PUSH32(esp, 0); /* 0x360024F3: push 0 */
   7344     PUSH32(esp, eax); /* 0x360024F5: push eax */
   7345     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024F6: call dword ptr [0x3616ff70] */
   7346     RECOMP_FLAGS_IN();
   7347     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7348     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7349     esp = esp + 4; /* 0x360024FC: add esp, 4 */
   7350     _flag_k = FK_ADD;
   7351     PUSH32(esp, eax); /* 0x360024FF: push eax */
   7352     RECOMP_ICALL(0x3615FD86u); /* 0x36002500: call 0x3615fd86 */ /* not lifted */
   7353     RECOMP_FLAGS_IN();
   7354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7355     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7356     esp = esp + 0x14u; /* 0x36002505: add esp, 0x14 */
   7357     _flag_k = FK_ADD;
   7358     /* test eax, eax */ /* 0x36002508: test eax, eax */
   7359     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7360     _cf = 0;
   7361     _flag_k = FK_TEST;
   7362     if (TEST_NZ(_flag_a, _flag_b)) goto L_36002539; /* 0x3600250A: jne 0x36002539 */
   7363 L_3600250C:
   7364     PUSH32(esp, eax); /* 0x3600250C: push eax */
   7365     PUSH32(esp, 0x361B2CD8u); /* 0x3600250D: push 0x361b2cd8 */
   7366     PUSH32(esp, 0x361B2CC0u); /* 0x36002512: push 0x361b2cc0 */
   7367     PUSH32(esp, eax); /* 0x36002517: push eax */
   7368     ecx = edi; /* 0x36002518: mov ecx, edi */
   7369     RECOMP_ICALL(0x36072000u); /* 0x3600251A: call 0x36072000 */ /* not lifted */
   7370     RECOMP_FLAGS_IN();
   7371     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u);
   7372     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7373     eax = eax + 0x70u; /* 0x3600251F: add eax, 0x70 */
   7374     _flag_k = FK_ADD;
   7375     PUSH32(esp, eax); /* 0x36002522: push eax */
   7376     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002523: call dword ptr [0x3616ff70] */
   7377     RECOMP_FLAGS_IN();
   7378     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7379     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7380     esp = esp + 4; /* 0x36002529: add esp, 4 */
   7381     _flag_k = FK_ADD;
   7382     PUSH32(esp, eax); /* 0x3600252C: push eax */
   7383     RECOMP_ICALL(0x3615FD86u); /* 0x3600252D: call 0x3615fd86 */ /* not lifted */
   7384     RECOMP_FLAGS_IN();
   7385     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7386     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7387     esp = esp + 0x14u; /* 0x36002532: add esp, 0x14 */
   7388     _flag_k = FK_ADD;
   7389     /* test eax, eax */ /* 0x36002535: test eax, eax */
   7390     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7391     _cf = 0;
   7392     _flag_k = FK_TEST;
   7393     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x36002537: je 0x36002581 */
   7394 L_36002539:
   7395     /* test LO8(ebx), LO8(ebx) */ /* 0x36002539: test bl, bl */
   7396     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7397     _cf = 0;
   7398     _flag_k = FK_NARROW(FK_TEST, 24);
   7399     if (TEST_Z(_flag_a, _flag_b)) goto L_3600254D; /* 0x3600253B: je 0x3600254d */
   7400 L_3600253D:
   7401     PUSH32(esp, esi); /* 0x3600253D: push esi */
   7402     PUSH32(esp, 9); /* 0x3600253E: push 9 */
   7403     ecx = eax + 0xE4; /* 0x36002540: lea ecx, [eax + 0xe4] */
   7404     RECOMP_ICALL(0x360027E0u); /* 0x36002546: call 0x360027e0 */ /* not lifted */
   7405     RECOMP_FLAGS_IN();
   7406     goto L_36002581; /* 0x3600254B: jmp 0x36002581 */
   7407 L_3600254D:
   7408     /* test eax, eax */ /* 0x3600254D: test eax, eax */
   7409     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7410     _cf = 0;
   7411     _flag_k = FK_TEST;
   7412     if (TEST_Z(_flag_a, _flag_b)) goto L_36002559; /* 0x3600254F: je 0x36002559 */
   7413 L_36002551:
   7414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   7415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7416     eax = eax + 0xE4u; /* 0x36002551: add eax, 0xe4 */
   7417     _flag_k = FK_ADD;
   7418     PUSH32(esp, eax); /* 0x36002556: push eax */
   7419     goto L_36002573; /* 0x36002557: jmp 0x36002573 */
   7420 L_36002559:
   7421     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7422     eax = 0; /* 0x36002559: xor eax, eax */
   7423     _cf = 0;
   7424     _flag_k = FK_TEST;
   7425     PUSH32(esp, eax); /* 0x3600255B: push eax */
   7426     goto L_36002573; /* 0x3600255C: jmp 0x36002573 */
   7427 L_3600255E:
   7428     /* test LO8(ebx), LO8(ebx) */ /* 0x3600255E: test bl, bl */
   7429     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7430     _cf = 0;
   7431     _flag_k = FK_NARROW(FK_TEST, 24);
   7432     if (TEST_Z(_flag_a, _flag_b)) goto L_3600256F; /* 0x36002560: je 0x3600256f */
   7433 L_36002562:
   7434     ecx = MEM32(ebp + (-0x4)); /* 0x36002562: mov ecx, dword ptr [ebp - 4] */
   7435     PUSH32(esp, esi); /* 0x36002565: push esi */
   7436     PUSH32(esp, 9); /* 0x36002566: push 9 */
   7437     RECOMP_ICALL(0x360027E0u); /* 0x36002568: call 0x360027e0 */ /* not lifted */
   7438     RECOMP_FLAGS_IN();
   7439     goto L_36002581; /* 0x3600256D: jmp 0x36002581 */
   7440 L_3600256F:
   7441     edx = MEM32(ebp + (-0x4)); /* 0x3600256F: mov edx, dword ptr [ebp - 4] */
   7442     PUSH32(esp, edx); /* 0x36002572: push edx */
   7443 L_36002573:
   7444     ecx = esi; /* 0x36002573: mov ecx, esi */
   7445     RECOMP_ICALL(0x360BE8E0u); /* 0x36002575: call 0x360be8e0 */ /* not lifted */
   7446     RECOMP_FLAGS_IN();
   7447 L_3600257A:
   7448     ecx = esi; /* 0x3600257A: mov ecx, esi */
   7449     RECOMP_ICALL(0x360B7D60u); /* 0x3600257C: call 0x360b7d60 */ /* not lifted */
   7450     RECOMP_FLAGS_IN();
   7451 L_36002581:
   7452     eax = MEM32(ebp + (-0xC)); /* 0x36002581: mov eax, dword ptr [ebp - 0xc] */
   7453     ecx = MEM32(ebp + (-0x10)); /* 0x36002584: mov ecx, dword ptr [ebp - 0x10] */
   7454     /* cmp eax, ecx */ /* 0x36002587: cmp eax, ecx */
   7455     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7457     _flag_k = FK_CMP;
   7458     if (CMP_EQ(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002589: je 0x360025b3 */
   7459 L_3600258B:
   7460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7462     eax = eax + 4; /* 0x3600258B: add eax, 4 */
   7463     _flag_k = FK_ADD;
   7464     /* cmp eax, ecx */ /* 0x3600258E: cmp eax, ecx */
   7465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7467     _flag_k = FK_CMP;
   7468     MEM32(ebp + (-0xC)) = eax; /* 0x36002590: mov dword ptr [ebp - 0xc], eax */
   7469     if (CMP_NE(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002593: jne 0x360025b3 */
   7470 L_36002595:
   7471     eax = MEM32(ebp + (-0x8)); /* 0x36002595: mov eax, dword ptr [ebp - 8] */
   7472     ecx = MEM32(eax + 0x4); /* 0x36002598: mov ecx, dword ptr [eax + 4] */
   7473     /* test ecx, ecx */ /* 0x3600259B: test ecx, ecx */
   7474     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7475     _cf = 0;
   7476     _flag_k = FK_TEST;
   7477     if (TEST_Z(_flag_a, _flag_b)) goto L_360025B3; /* 0x3600259D: je 0x360025b3 */
   7478 L_3600259F:
   7479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7481     eax = eax + 4; /* 0x3600259F: add eax, 4 */
   7482     _flag_k = FK_ADD;
   7483     MEM32(ebp + (-0x8)) = eax; /* 0x360025A2: mov dword ptr [ebp - 8], eax */
   7484     eax = MEM32(eax); /* 0x360025A5: mov eax, dword ptr [eax] */
   7485     ecx = eax + 0x1000; /* 0x360025A7: lea ecx, [eax + 0x1000] */
   7486     MEM32(ebp + (-0x10)) = ecx; /* 0x360025AD: mov dword ptr [ebp - 0x10], ecx */
   7487     MEM32(ebp + (-0xC)) = eax; /* 0x360025B0: mov dword ptr [ebp - 0xc], eax */
   7488 L_360025B3:
   7489     ecx = MEM32(ebp + 0x8); /* 0x360025B3: mov ecx, dword ptr [ebp + 8] */
   7490     esi = MEM32(ebp + (-0xC)); /* 0x360025B6: mov esi, dword ptr [ebp - 0xc] */
   7491     edx = ebp + (-0x24); /* 0x360025B9: lea edx, [ebp - 0x24] */
   7492     PUSH32(esp, edx); /* 0x360025BC: push edx */
   7493     RECOMP_ICALL(0x360C0300u); /* 0x360025BD: call 0x360c0300 */ /* not lifted */
   7494     RECOMP_FLAGS_IN();
   7495     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360025C2: cmp esi, dword ptr [eax + 8] */
   7496     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7498     _flag_k = FK_CMP;
   7499     RECOMP_BACKEDGE();
   7500     if (CMP_NE(_flag_a, _flag_b)) goto L_360023BD; /* 0x360025C5: jne 0x360023bd */
   7501 L_360025CB:
   7502     edi = POP32_VAL(esp); /* 0x360025CB: pop edi */
   7503     esi = POP32_VAL(esp); /* 0x360025CC: pop esi */
   7504     ebx = POP32_VAL(esp); /* 0x360025CD: pop ebx */
   7505     esp = ebp; /* 0x360025CE: mov esp, ebp */
   7506     ebp = POP32_VAL(esp); /* 0x360025D0: pop ebp */
   7507     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360025D1: ret 0x10 */
   7508     RECOMP_REGS_OUT();
   7509 }
   7510 
   7511 void sub_36002573(void) {
   7512     int _fpu_cmp = 0;
   7513     uint32_t _cf = 0;
   7514     int _df = 1;
   7515     uint32_t _flag_k = FK_NONE;
   7516     uint32_t _flag_a = 0, _flag_b = 0;
   7517     uint32_t _itail_tgt = 0;
   7518     RECOMP_REGS_LOCALS
   7519     RECOMP_ENTER(0x36002573u);
   7520 
   7521     goto L_36002573;
   7522 L_360023BD:
   7523     ecx = MEM32(esi); /* 0x360023BD: mov ecx, dword ptr [esi] */
   7524     RECOMP_ICALL(0x360BFC30u); /* 0x360023BF: call 0x360bfc30 */ /* not lifted */
   7525     RECOMP_FLAGS_IN();
   7526     esi = eax; /* 0x360023C4: mov esi, eax */
   7527     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360023C6: mov al, byte ptr [ebp + 0x10] */
   7528     /* test LO8(eax), LO8(eax) */ /* 0x360023C9: test al, al */
   7529     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7530     _cf = 0;
   7531     _flag_k = FK_NARROW(FK_TEST, 24);
   7532     eax = MEM32(esi + 0x1C); /* 0x360023CB: mov eax, dword ptr [esi + 0x1c] */
   7533     if (TEST_Z(_flag_a, _flag_b)) goto L_360023D5; /* 0x360023CE: je 0x360023d5 */
   7534 L_360023D0:
   7535     _flag_a = (uint32_t)((eax | 1)); _flag_b = (uint32_t)((eax | 1));
   7536     eax = eax | 1; /* 0x360023D0: or eax, 1 */
   7537     _cf = 0;
   7538     _flag_k = FK_TEST;
   7539     goto L_360023D8; /* 0x360023D3: jmp 0x360023d8 */
   7540 L_360023D5:
   7541     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   7542     eax = eax & 0xFFFFFFFEu; /* 0x360023D5: and eax, 0xfffffffe */
   7543     _cf = 0;
   7544     _flag_k = FK_TEST;
   7545 L_360023D8:
   7546     /* test LO8(eax), 8 */ /* 0x360023D8: test al, 8 */
   7547     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
   7548     _cf = 0;
   7549     _flag_k = FK_NARROW(FK_TEST, 24);
   7550     MEM32(esi + 0x1C) = eax; /* 0x360023DA: mov dword ptr [esi + 0x1c], eax */
   7551     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023DD: jne 0x3600257a */
   7552 L_360023E3:
   7553     eax = MEM32(ebp + 0x14); /* 0x360023E3: mov eax, dword ptr [ebp + 0x14] */
   7554     edx = MEM32(eax); /* 0x360023E6: mov edx, dword ptr [eax] */
   7555     MEM32(esi + 0x10) = edx; /* 0x360023E8: mov dword ptr [esi + 0x10], edx */
   7556     eax = MEM32(eax + 0x4); /* 0x360023EB: mov eax, dword ptr [eax + 4] */
   7557     ecx = esi; /* 0x360023EE: mov ecx, esi */
   7558     MEM32(esi + 0x14) = eax; /* 0x360023F0: mov dword ptr [esi + 0x14], eax */
   7559     RECOMP_ICALL(0x360BD340u); /* 0x360023F3: call 0x360bd340 */ /* not lifted */
   7560     RECOMP_FLAGS_IN();
   7561     /* cmp MEM32(esi + 0x8), 0xFFFFFFFFu */ /* 0x360023F8: cmp dword ptr [esi + 8], -1 */
   7562     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7563     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7564     _flag_k = FK_CMP;
   7565     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023FC: je 0x3600257a */
   7566 L_36002402:
   7567     PUSH32(esp, 0x20u); /* 0x36002402: push 0x20 */
   7568     ecx = esi; /* 0x36002404: mov ecx, esi */
   7569     RECOMP_ICALL(0x360BD190u); /* 0x36002406: call 0x360bd190 */ /* not lifted */
   7570     RECOMP_FLAGS_IN();
   7571     edi = eax; /* 0x3600240B: mov edi, eax */
   7572     eax = MEM32(esi); /* 0x3600240D: mov eax, dword ptr [esi] */
   7573     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7574     SET_LO8(ebx, 0); /* 0x3600240F: xor bl, bl */
   7575     _cf = 0;
   7576     _flag_k = FK_NARROW(FK_TEST, 24);
   7577     /* cmp eax, 0xCF16u */ /* 0x36002411: cmp eax, 0xcf16 */
   7578     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCF16u);
   7579     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7580     _flag_k = FK_CMP;
   7581     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600242B; /* 0x36002416: je 0x3600242b */
   7582 L_36002418:
   7583     /* cmp MEM32(esi + 0x8), 1 */ /* 0x36002418: cmp dword ptr [esi + 8], 1 */
   7584     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1);
   7585     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7586     _flag_k = FK_CMP;
   7587     if (CMP_G(_flag_a, _flag_b)) goto L_3600242B; /* 0x3600241C: jg 0x3600242b */
   7588 L_3600241E:
   7589     PUSH32(esp, 4); /* 0x3600241E: push 4 */
   7590     ecx = esi; /* 0x36002420: mov ecx, esi */
   7591     RECOMP_ICALL(0x360BD190u); /* 0x36002422: call 0x360bd190 */ /* not lifted */
   7592     RECOMP_FLAGS_IN();
   7593     /* test eax, eax */ /* 0x36002427: test eax, eax */
   7594     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7595     _cf = 0;
   7596     _flag_k = FK_TEST;
   7597     if (TEST_LE(_flag_a, _flag_b)) goto L_3600242D; /* 0x36002429: jle 0x3600242d */
   7598 L_3600242B:
   7599     SET_LO8(ebx, 1); /* 0x3600242B: mov bl, 1 */
   7600 L_3600242D:
   7601     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x3600242D: mov al, byte ptr [ebp + 0x10] */
   7602     /* test LO8(eax), LO8(eax) */ /* 0x36002430: test al, al */
   7603     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7604     _cf = 0;
   7605     _flag_k = FK_NARROW(FK_TEST, 24);
   7606     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002432: je 0x3600243f */
   7607 L_36002434:
   7608     /* test LO8(ebx), LO8(ebx) */ /* 0x36002434: test bl, bl */
   7609     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7610     _cf = 0;
   7611     _flag_k = FK_NARROW(FK_TEST, 24);
   7612     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002436: je 0x3600243f */
   7613 L_36002438:
   7614     MEM32(esi + 0x8) = 1; /* 0x36002438: mov dword ptr [esi + 8], 1 */
   7615 L_3600243F:
   7616     /* cmp edi, 2 */ /* 0x3600243F: cmp edi, 2 */
   7617     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   7618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7619     _flag_k = FK_CMP;
   7620     if (CMP_NE(_flag_a, _flag_b)) goto L_3600247D; /* 0x36002442: jne 0x3600247d */
   7621 L_36002444:
   7622     edi = MEM32(ebp + (-0x4)); /* 0x36002444: mov edi, dword ptr [ebp - 4] */
   7623     ecx = edi; /* 0x36002447: mov ecx, edi */
   7624     RECOMP_ICALL(0x36002750u); /* 0x36002449: call 0x36002750 */ /* not lifted */
   7625     RECOMP_FLAGS_IN();
   7626     /* test eax, eax */ /* 0x3600244E: test eax, eax */
   7627     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7628     _cf = 0;
   7629     _flag_k = FK_TEST;
   7630     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002450: je 0x360025cb */
   7631 L_36002456:
   7632     /* test LO8(ebx), LO8(ebx) */ /* 0x36002456: test bl, bl */
   7633     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7634     _cf = 0;
   7635     _flag_k = FK_NARROW(FK_TEST, 24);
   7636     if (TEST_Z(_flag_a, _flag_b)) goto L_36002470; /* 0x36002458: je 0x36002470 */
   7637 L_3600245A:
   7638     PUSH32(esp, esi); /* 0x3600245A: push esi */
   7639     PUSH32(esp, 9); /* 0x3600245B: push 9 */
   7640     ecx = edi; /* 0x3600245D: mov ecx, edi */
   7641     RECOMP_ICALL(0x36002750u); /* 0x3600245F: call 0x36002750 */ /* not lifted */
   7642     RECOMP_FLAGS_IN();
   7643     ecx = eax; /* 0x36002464: mov ecx, eax */
   7644     RECOMP_ICALL(0x360027E0u); /* 0x36002466: call 0x360027e0 */ /* not lifted */
   7645     RECOMP_FLAGS_IN();
   7646     goto L_36002581; /* 0x3600246B: jmp 0x36002581 */
   7647 L_36002470:
   7648     ecx = edi; /* 0x36002470: mov ecx, edi */
   7649     RECOMP_ICALL(0x36002750u); /* 0x36002472: call 0x36002750 */ /* not lifted */
   7650     RECOMP_FLAGS_IN();
   7651     PUSH32(esp, eax); /* 0x36002477: push eax */
   7652     goto L_36002573; /* 0x36002478: jmp 0x36002573 */
   7653 L_3600247D:
   7654     /* cmp edi, 3 */ /* 0x3600247D: cmp edi, 3 */
   7655     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   7656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7657     _flag_k = FK_CMP;
   7658     if (CMP_NE(_flag_a, _flag_b)) goto L_360024A4; /* 0x36002480: jne 0x360024a4 */
   7659 L_36002482:
   7660     ecx = MEM32(ebp + 0xC); /* 0x36002482: mov ecx, dword ptr [ebp + 0xc] */
   7661     /* test ecx, ecx */ /* 0x36002485: test ecx, ecx */
   7662     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7663     _cf = 0;
   7664     _flag_k = FK_TEST;
   7665     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002487: je 0x360025cb */
   7666 L_3600248D:
   7667     /* test LO8(ebx), LO8(ebx) */ /* 0x3600248D: test bl, bl */
   7668     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7669     _cf = 0;
   7670     _flag_k = FK_NARROW(FK_TEST, 24);
   7671     if (TEST_Z(_flag_a, _flag_b)) goto L_3600249E; /* 0x3600248F: je 0x3600249e */
   7672 L_36002491:
   7673     PUSH32(esp, esi); /* 0x36002491: push esi */
   7674     PUSH32(esp, 9); /* 0x36002492: push 9 */
   7675     RECOMP_ICALL(0x360027E0u); /* 0x36002494: call 0x360027e0 */ /* not lifted */
   7676     RECOMP_FLAGS_IN();
   7677     goto L_36002581; /* 0x36002499: jmp 0x36002581 */
   7678 L_3600249E:
   7679     PUSH32(esp, ecx); /* 0x3600249E: push ecx */
   7680     goto L_36002573; /* 0x3600249F: jmp 0x36002573 */
   7681 L_360024A4:
   7682     /* cmp edi, 0xEu */ /* 0x360024A4: cmp edi, 0xe */
   7683     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xEu);
   7684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7685     _flag_k = FK_CMP;
   7686     if (CMP_NE(_flag_a, _flag_b)) goto L_3600255E; /* 0x360024A7: jne 0x3600255e */
   7687 L_360024AD:
   7688     ecx = MEM32(ebp + (-0x4)); /* 0x360024AD: mov ecx, dword ptr [ebp - 4] */
   7689     PUSH32(esp, 0); /* 0x360024B0: push 0 */
   7690     PUSH32(esp, 0x361B2CD8u); /* 0x360024B2: push 0x361b2cd8 */
   7691     PUSH32(esp, 0x361B2CC0u); /* 0x360024B7: push 0x361b2cc0 */
   7692     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   7693     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7694     ecx = ecx + 0x24u; /* 0x360024BC: add ecx, 0x24 */
   7695     _flag_k = FK_ADD;
   7696     PUSH32(esp, 0); /* 0x360024BF: push 0 */
   7697     PUSH32(esp, ecx); /* 0x360024C1: push ecx */
   7698     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024C2: call dword ptr [0x3616ff70] */
   7699     RECOMP_FLAGS_IN();
   7700     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7701     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7702     esp = esp + 4; /* 0x360024C8: add esp, 4 */
   7703     _flag_k = FK_ADD;
   7704     PUSH32(esp, eax); /* 0x360024CB: push eax */
   7705     RECOMP_ICALL(0x3615FD86u); /* 0x360024CC: call 0x3615fd86 */ /* not lifted */
   7706     RECOMP_FLAGS_IN();
   7707     edi = eax; /* 0x360024D1: mov edi, eax */
   7708     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7709     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7710     esp = esp + 0x14u; /* 0x360024D3: add esp, 0x14 */
   7711     _flag_k = FK_ADD;
   7712     /* test edi, edi */ /* 0x360024D6: test edi, edi */
   7713     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7714     _cf = 0;
   7715     _flag_k = FK_TEST;
   7716     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x360024D8: je 0x36002581 */
   7717 L_360024DE:
   7718     eax = MEM32(edi + 0x16C); /* 0x360024DE: mov eax, dword ptr [edi + 0x16c] */
   7719     PUSH32(esp, 0); /* 0x360024E4: push 0 */
   7720     PUSH32(esp, 0x361B2CD8u); /* 0x360024E6: push 0x361b2cd8 */
   7721     PUSH32(esp, 0x361B2CC0u); /* 0x360024EB: push 0x361b2cc0 */
   7722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x58u);
   7723     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7724     eax = eax + 0x58u; /* 0x360024F0: add eax, 0x58 */
   7725     _flag_k = FK_ADD;
   7726     PUSH32(esp, 0); /* 0x360024F3: push 0 */
   7727     PUSH32(esp, eax); /* 0x360024F5: push eax */
   7728     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024F6: call dword ptr [0x3616ff70] */
   7729     RECOMP_FLAGS_IN();
   7730     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7731     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7732     esp = esp + 4; /* 0x360024FC: add esp, 4 */
   7733     _flag_k = FK_ADD;
   7734     PUSH32(esp, eax); /* 0x360024FF: push eax */
   7735     RECOMP_ICALL(0x3615FD86u); /* 0x36002500: call 0x3615fd86 */ /* not lifted */
   7736     RECOMP_FLAGS_IN();
   7737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7739     esp = esp + 0x14u; /* 0x36002505: add esp, 0x14 */
   7740     _flag_k = FK_ADD;
   7741     /* test eax, eax */ /* 0x36002508: test eax, eax */
   7742     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7743     _cf = 0;
   7744     _flag_k = FK_TEST;
   7745     if (TEST_NZ(_flag_a, _flag_b)) goto L_36002539; /* 0x3600250A: jne 0x36002539 */
   7746 L_3600250C:
   7747     PUSH32(esp, eax); /* 0x3600250C: push eax */
   7748     PUSH32(esp, 0x361B2CD8u); /* 0x3600250D: push 0x361b2cd8 */
   7749     PUSH32(esp, 0x361B2CC0u); /* 0x36002512: push 0x361b2cc0 */
   7750     PUSH32(esp, eax); /* 0x36002517: push eax */
   7751     ecx = edi; /* 0x36002518: mov ecx, edi */
   7752     RECOMP_ICALL(0x36072000u); /* 0x3600251A: call 0x36072000 */ /* not lifted */
   7753     RECOMP_FLAGS_IN();
   7754     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u);
   7755     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7756     eax = eax + 0x70u; /* 0x3600251F: add eax, 0x70 */
   7757     _flag_k = FK_ADD;
   7758     PUSH32(esp, eax); /* 0x36002522: push eax */
   7759     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002523: call dword ptr [0x3616ff70] */
   7760     RECOMP_FLAGS_IN();
   7761     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7763     esp = esp + 4; /* 0x36002529: add esp, 4 */
   7764     _flag_k = FK_ADD;
   7765     PUSH32(esp, eax); /* 0x3600252C: push eax */
   7766     RECOMP_ICALL(0x3615FD86u); /* 0x3600252D: call 0x3615fd86 */ /* not lifted */
   7767     RECOMP_FLAGS_IN();
   7768     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7769     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7770     esp = esp + 0x14u; /* 0x36002532: add esp, 0x14 */
   7771     _flag_k = FK_ADD;
   7772     /* test eax, eax */ /* 0x36002535: test eax, eax */
   7773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7774     _cf = 0;
   7775     _flag_k = FK_TEST;
   7776     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x36002537: je 0x36002581 */
   7777 L_36002539:
   7778     /* test LO8(ebx), LO8(ebx) */ /* 0x36002539: test bl, bl */
   7779     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7780     _cf = 0;
   7781     _flag_k = FK_NARROW(FK_TEST, 24);
   7782     if (TEST_Z(_flag_a, _flag_b)) goto L_3600254D; /* 0x3600253B: je 0x3600254d */
   7783 L_3600253D:
   7784     PUSH32(esp, esi); /* 0x3600253D: push esi */
   7785     PUSH32(esp, 9); /* 0x3600253E: push 9 */
   7786     ecx = eax + 0xE4; /* 0x36002540: lea ecx, [eax + 0xe4] */
   7787     RECOMP_ICALL(0x360027E0u); /* 0x36002546: call 0x360027e0 */ /* not lifted */
   7788     RECOMP_FLAGS_IN();
   7789     goto L_36002581; /* 0x3600254B: jmp 0x36002581 */
   7790 L_3600254D:
   7791     /* test eax, eax */ /* 0x3600254D: test eax, eax */
   7792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7793     _cf = 0;
   7794     _flag_k = FK_TEST;
   7795     if (TEST_Z(_flag_a, _flag_b)) goto L_36002559; /* 0x3600254F: je 0x36002559 */
   7796 L_36002551:
   7797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   7798     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7799     eax = eax + 0xE4u; /* 0x36002551: add eax, 0xe4 */
   7800     _flag_k = FK_ADD;
   7801     PUSH32(esp, eax); /* 0x36002556: push eax */
   7802     goto L_36002573; /* 0x36002557: jmp 0x36002573 */
   7803 L_36002559:
   7804     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7805     eax = 0; /* 0x36002559: xor eax, eax */
   7806     _cf = 0;
   7807     _flag_k = FK_TEST;
   7808     PUSH32(esp, eax); /* 0x3600255B: push eax */
   7809     goto L_36002573; /* 0x3600255C: jmp 0x36002573 */
   7810 L_3600255E:
   7811     /* test LO8(ebx), LO8(ebx) */ /* 0x3600255E: test bl, bl */
   7812     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7813     _cf = 0;
   7814     _flag_k = FK_NARROW(FK_TEST, 24);
   7815     if (TEST_Z(_flag_a, _flag_b)) goto L_3600256F; /* 0x36002560: je 0x3600256f */
   7816 L_36002562:
   7817     ecx = MEM32(ebp + (-0x4)); /* 0x36002562: mov ecx, dword ptr [ebp - 4] */
   7818     PUSH32(esp, esi); /* 0x36002565: push esi */
   7819     PUSH32(esp, 9); /* 0x36002566: push 9 */
   7820     RECOMP_ICALL(0x360027E0u); /* 0x36002568: call 0x360027e0 */ /* not lifted */
   7821     RECOMP_FLAGS_IN();
   7822     goto L_36002581; /* 0x3600256D: jmp 0x36002581 */
   7823 L_3600256F:
   7824     edx = MEM32(ebp + (-0x4)); /* 0x3600256F: mov edx, dword ptr [ebp - 4] */
   7825     PUSH32(esp, edx); /* 0x36002572: push edx */
   7826 L_36002573:
   7827     ecx = esi; /* 0x36002573: mov ecx, esi */
   7828     RECOMP_ICALL(0x360BE8E0u); /* 0x36002575: call 0x360be8e0 */ /* not lifted */
   7829     RECOMP_FLAGS_IN();
   7830 L_3600257A:
   7831     ecx = esi; /* 0x3600257A: mov ecx, esi */
   7832     RECOMP_ICALL(0x360B7D60u); /* 0x3600257C: call 0x360b7d60 */ /* not lifted */
   7833     RECOMP_FLAGS_IN();
   7834 L_36002581:
   7835     eax = MEM32(ebp + (-0xC)); /* 0x36002581: mov eax, dword ptr [ebp - 0xc] */
   7836     ecx = MEM32(ebp + (-0x10)); /* 0x36002584: mov ecx, dword ptr [ebp - 0x10] */
   7837     /* cmp eax, ecx */ /* 0x36002587: cmp eax, ecx */
   7838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7840     _flag_k = FK_CMP;
   7841     if (CMP_EQ(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002589: je 0x360025b3 */
   7842 L_3600258B:
   7843     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7845     eax = eax + 4; /* 0x3600258B: add eax, 4 */
   7846     _flag_k = FK_ADD;
   7847     /* cmp eax, ecx */ /* 0x3600258E: cmp eax, ecx */
   7848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7850     _flag_k = FK_CMP;
   7851     MEM32(ebp + (-0xC)) = eax; /* 0x36002590: mov dword ptr [ebp - 0xc], eax */
   7852     if (CMP_NE(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002593: jne 0x360025b3 */
   7853 L_36002595:
   7854     eax = MEM32(ebp + (-0x8)); /* 0x36002595: mov eax, dword ptr [ebp - 8] */
   7855     ecx = MEM32(eax + 0x4); /* 0x36002598: mov ecx, dword ptr [eax + 4] */
   7856     /* test ecx, ecx */ /* 0x3600259B: test ecx, ecx */
   7857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7858     _cf = 0;
   7859     _flag_k = FK_TEST;
   7860     if (TEST_Z(_flag_a, _flag_b)) goto L_360025B3; /* 0x3600259D: je 0x360025b3 */
   7861 L_3600259F:
   7862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7864     eax = eax + 4; /* 0x3600259F: add eax, 4 */
   7865     _flag_k = FK_ADD;
   7866     MEM32(ebp + (-0x8)) = eax; /* 0x360025A2: mov dword ptr [ebp - 8], eax */
   7867     eax = MEM32(eax); /* 0x360025A5: mov eax, dword ptr [eax] */
   7868     ecx = eax + 0x1000; /* 0x360025A7: lea ecx, [eax + 0x1000] */
   7869     MEM32(ebp + (-0x10)) = ecx; /* 0x360025AD: mov dword ptr [ebp - 0x10], ecx */
   7870     MEM32(ebp + (-0xC)) = eax; /* 0x360025B0: mov dword ptr [ebp - 0xc], eax */
   7871 L_360025B3:
   7872     ecx = MEM32(ebp + 0x8); /* 0x360025B3: mov ecx, dword ptr [ebp + 8] */
   7873     esi = MEM32(ebp + (-0xC)); /* 0x360025B6: mov esi, dword ptr [ebp - 0xc] */
   7874     edx = ebp + (-0x24); /* 0x360025B9: lea edx, [ebp - 0x24] */
   7875     PUSH32(esp, edx); /* 0x360025BC: push edx */
   7876     RECOMP_ICALL(0x360C0300u); /* 0x360025BD: call 0x360c0300 */ /* not lifted */
   7877     RECOMP_FLAGS_IN();
   7878     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360025C2: cmp esi, dword ptr [eax + 8] */
   7879     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7881     _flag_k = FK_CMP;
   7882     RECOMP_BACKEDGE();
   7883     if (CMP_NE(_flag_a, _flag_b)) goto L_360023BD; /* 0x360025C5: jne 0x360023bd */
   7884 L_360025CB:
   7885     edi = POP32_VAL(esp); /* 0x360025CB: pop edi */
   7886     esi = POP32_VAL(esp); /* 0x360025CC: pop esi */
   7887     ebx = POP32_VAL(esp); /* 0x360025CD: pop ebx */
   7888     esp = ebp; /* 0x360025CE: mov esp, ebp */
   7889     ebp = POP32_VAL(esp); /* 0x360025D0: pop ebp */
   7890     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360025D1: ret 0x10 */
   7891     RECOMP_REGS_OUT();
   7892 }
   7893 
   7894 void sub_36002581(void) {
   7895     int _fpu_cmp = 0;
   7896     uint32_t _cf = 0;
   7897     int _df = 1;
   7898     uint32_t _flag_k = FK_NONE;
   7899     uint32_t _flag_a = 0, _flag_b = 0;
   7900     uint32_t _itail_tgt = 0;
   7901     RECOMP_REGS_LOCALS
   7902     RECOMP_ENTER(0x36002581u);
   7903 
   7904     goto L_36002581;
   7905 L_360023BD:
   7906     ecx = MEM32(esi); /* 0x360023BD: mov ecx, dword ptr [esi] */
   7907     RECOMP_ICALL(0x360BFC30u); /* 0x360023BF: call 0x360bfc30 */ /* not lifted */
   7908     RECOMP_FLAGS_IN();
   7909     esi = eax; /* 0x360023C4: mov esi, eax */
   7910     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360023C6: mov al, byte ptr [ebp + 0x10] */
   7911     /* test LO8(eax), LO8(eax) */ /* 0x360023C9: test al, al */
   7912     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7913     _cf = 0;
   7914     _flag_k = FK_NARROW(FK_TEST, 24);
   7915     eax = MEM32(esi + 0x1C); /* 0x360023CB: mov eax, dword ptr [esi + 0x1c] */
   7916     if (TEST_Z(_flag_a, _flag_b)) goto L_360023D5; /* 0x360023CE: je 0x360023d5 */
   7917 L_360023D0:
   7918     _flag_a = (uint32_t)((eax | 1)); _flag_b = (uint32_t)((eax | 1));
   7919     eax = eax | 1; /* 0x360023D0: or eax, 1 */
   7920     _cf = 0;
   7921     _flag_k = FK_TEST;
   7922     goto L_360023D8; /* 0x360023D3: jmp 0x360023d8 */
   7923 L_360023D5:
   7924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   7925     eax = eax & 0xFFFFFFFEu; /* 0x360023D5: and eax, 0xfffffffe */
   7926     _cf = 0;
   7927     _flag_k = FK_TEST;
   7928 L_360023D8:
   7929     /* test LO8(eax), 8 */ /* 0x360023D8: test al, 8 */
   7930     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24;
   7931     _cf = 0;
   7932     _flag_k = FK_NARROW(FK_TEST, 24);
   7933     MEM32(esi + 0x1C) = eax; /* 0x360023DA: mov dword ptr [esi + 0x1c], eax */
   7934     if (TEST_NZ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023DD: jne 0x3600257a */
   7935 L_360023E3:
   7936     eax = MEM32(ebp + 0x14); /* 0x360023E3: mov eax, dword ptr [ebp + 0x14] */
   7937     edx = MEM32(eax); /* 0x360023E6: mov edx, dword ptr [eax] */
   7938     MEM32(esi + 0x10) = edx; /* 0x360023E8: mov dword ptr [esi + 0x10], edx */
   7939     eax = MEM32(eax + 0x4); /* 0x360023EB: mov eax, dword ptr [eax + 4] */
   7940     ecx = esi; /* 0x360023EE: mov ecx, esi */
   7941     MEM32(esi + 0x14) = eax; /* 0x360023F0: mov dword ptr [esi + 0x14], eax */
   7942     RECOMP_ICALL(0x360BD340u); /* 0x360023F3: call 0x360bd340 */ /* not lifted */
   7943     RECOMP_FLAGS_IN();
   7944     /* cmp MEM32(esi + 0x8), 0xFFFFFFFFu */ /* 0x360023F8: cmp dword ptr [esi + 8], -1 */
   7945     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7947     _flag_k = FK_CMP;
   7948     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600257A; /* 0x360023FC: je 0x3600257a */
   7949 L_36002402:
   7950     PUSH32(esp, 0x20u); /* 0x36002402: push 0x20 */
   7951     ecx = esi; /* 0x36002404: mov ecx, esi */
   7952     RECOMP_ICALL(0x360BD190u); /* 0x36002406: call 0x360bd190 */ /* not lifted */
   7953     RECOMP_FLAGS_IN();
   7954     edi = eax; /* 0x3600240B: mov edi, eax */
   7955     eax = MEM32(esi); /* 0x3600240D: mov eax, dword ptr [esi] */
   7956     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7957     SET_LO8(ebx, 0); /* 0x3600240F: xor bl, bl */
   7958     _cf = 0;
   7959     _flag_k = FK_NARROW(FK_TEST, 24);
   7960     /* cmp eax, 0xCF16u */ /* 0x36002411: cmp eax, 0xcf16 */
   7961     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCF16u);
   7962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7963     _flag_k = FK_CMP;
   7964     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600242B; /* 0x36002416: je 0x3600242b */
   7965 L_36002418:
   7966     /* cmp MEM32(esi + 0x8), 1 */ /* 0x36002418: cmp dword ptr [esi + 8], 1 */
   7967     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(1);
   7968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7969     _flag_k = FK_CMP;
   7970     if (CMP_G(_flag_a, _flag_b)) goto L_3600242B; /* 0x3600241C: jg 0x3600242b */
   7971 L_3600241E:
   7972     PUSH32(esp, 4); /* 0x3600241E: push 4 */
   7973     ecx = esi; /* 0x36002420: mov ecx, esi */
   7974     RECOMP_ICALL(0x360BD190u); /* 0x36002422: call 0x360bd190 */ /* not lifted */
   7975     RECOMP_FLAGS_IN();
   7976     /* test eax, eax */ /* 0x36002427: test eax, eax */
   7977     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7978     _cf = 0;
   7979     _flag_k = FK_TEST;
   7980     if (TEST_LE(_flag_a, _flag_b)) goto L_3600242D; /* 0x36002429: jle 0x3600242d */
   7981 L_3600242B:
   7982     SET_LO8(ebx, 1); /* 0x3600242B: mov bl, 1 */
   7983 L_3600242D:
   7984     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x3600242D: mov al, byte ptr [ebp + 0x10] */
   7985     /* test LO8(eax), LO8(eax) */ /* 0x36002430: test al, al */
   7986     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7987     _cf = 0;
   7988     _flag_k = FK_NARROW(FK_TEST, 24);
   7989     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002432: je 0x3600243f */
   7990 L_36002434:
   7991     /* test LO8(ebx), LO8(ebx) */ /* 0x36002434: test bl, bl */
   7992     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7993     _cf = 0;
   7994     _flag_k = FK_NARROW(FK_TEST, 24);
   7995     if (TEST_Z(_flag_a, _flag_b)) goto L_3600243F; /* 0x36002436: je 0x3600243f */
   7996 L_36002438:
   7997     MEM32(esi + 0x8) = 1; /* 0x36002438: mov dword ptr [esi + 8], 1 */
   7998 L_3600243F:
   7999     /* cmp edi, 2 */ /* 0x3600243F: cmp edi, 2 */
   8000     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2);
   8001     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8002     _flag_k = FK_CMP;
   8003     if (CMP_NE(_flag_a, _flag_b)) goto L_3600247D; /* 0x36002442: jne 0x3600247d */
   8004 L_36002444:
   8005     edi = MEM32(ebp + (-0x4)); /* 0x36002444: mov edi, dword ptr [ebp - 4] */
   8006     ecx = edi; /* 0x36002447: mov ecx, edi */
   8007     RECOMP_ICALL(0x36002750u); /* 0x36002449: call 0x36002750 */ /* not lifted */
   8008     RECOMP_FLAGS_IN();
   8009     /* test eax, eax */ /* 0x3600244E: test eax, eax */
   8010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8011     _cf = 0;
   8012     _flag_k = FK_TEST;
   8013     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002450: je 0x360025cb */
   8014 L_36002456:
   8015     /* test LO8(ebx), LO8(ebx) */ /* 0x36002456: test bl, bl */
   8016     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8017     _cf = 0;
   8018     _flag_k = FK_NARROW(FK_TEST, 24);
   8019     if (TEST_Z(_flag_a, _flag_b)) goto L_36002470; /* 0x36002458: je 0x36002470 */
   8020 L_3600245A:
   8021     PUSH32(esp, esi); /* 0x3600245A: push esi */
   8022     PUSH32(esp, 9); /* 0x3600245B: push 9 */
   8023     ecx = edi; /* 0x3600245D: mov ecx, edi */
   8024     RECOMP_ICALL(0x36002750u); /* 0x3600245F: call 0x36002750 */ /* not lifted */
   8025     RECOMP_FLAGS_IN();
   8026     ecx = eax; /* 0x36002464: mov ecx, eax */
   8027     RECOMP_ICALL(0x360027E0u); /* 0x36002466: call 0x360027e0 */ /* not lifted */
   8028     RECOMP_FLAGS_IN();
   8029     goto L_36002581; /* 0x3600246B: jmp 0x36002581 */
   8030 L_36002470:
   8031     ecx = edi; /* 0x36002470: mov ecx, edi */
   8032     RECOMP_ICALL(0x36002750u); /* 0x36002472: call 0x36002750 */ /* not lifted */
   8033     RECOMP_FLAGS_IN();
   8034     PUSH32(esp, eax); /* 0x36002477: push eax */
   8035     goto L_36002573; /* 0x36002478: jmp 0x36002573 */
   8036 L_3600247D:
   8037     /* cmp edi, 3 */ /* 0x3600247D: cmp edi, 3 */
   8038     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3);
   8039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8040     _flag_k = FK_CMP;
   8041     if (CMP_NE(_flag_a, _flag_b)) goto L_360024A4; /* 0x36002480: jne 0x360024a4 */
   8042 L_36002482:
   8043     ecx = MEM32(ebp + 0xC); /* 0x36002482: mov ecx, dword ptr [ebp + 0xc] */
   8044     /* test ecx, ecx */ /* 0x36002485: test ecx, ecx */
   8045     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8046     _cf = 0;
   8047     _flag_k = FK_TEST;
   8048     if (TEST_Z(_flag_a, _flag_b)) goto L_360025CB; /* 0x36002487: je 0x360025cb */
   8049 L_3600248D:
   8050     /* test LO8(ebx), LO8(ebx) */ /* 0x3600248D: test bl, bl */
   8051     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8052     _cf = 0;
   8053     _flag_k = FK_NARROW(FK_TEST, 24);
   8054     if (TEST_Z(_flag_a, _flag_b)) goto L_3600249E; /* 0x3600248F: je 0x3600249e */
   8055 L_36002491:
   8056     PUSH32(esp, esi); /* 0x36002491: push esi */
   8057     PUSH32(esp, 9); /* 0x36002492: push 9 */
   8058     RECOMP_ICALL(0x360027E0u); /* 0x36002494: call 0x360027e0 */ /* not lifted */
   8059     RECOMP_FLAGS_IN();
   8060     goto L_36002581; /* 0x36002499: jmp 0x36002581 */
   8061 L_3600249E:
   8062     PUSH32(esp, ecx); /* 0x3600249E: push ecx */
   8063     goto L_36002573; /* 0x3600249F: jmp 0x36002573 */
   8064 L_360024A4:
   8065     /* cmp edi, 0xEu */ /* 0x360024A4: cmp edi, 0xe */
   8066     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xEu);
   8067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8068     _flag_k = FK_CMP;
   8069     if (CMP_NE(_flag_a, _flag_b)) goto L_3600255E; /* 0x360024A7: jne 0x3600255e */
   8070 L_360024AD:
   8071     ecx = MEM32(ebp + (-0x4)); /* 0x360024AD: mov ecx, dword ptr [ebp - 4] */
   8072     PUSH32(esp, 0); /* 0x360024B0: push 0 */
   8073     PUSH32(esp, 0x361B2CD8u); /* 0x360024B2: push 0x361b2cd8 */
   8074     PUSH32(esp, 0x361B2CC0u); /* 0x360024B7: push 0x361b2cc0 */
   8075     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   8076     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8077     ecx = ecx + 0x24u; /* 0x360024BC: add ecx, 0x24 */
   8078     _flag_k = FK_ADD;
   8079     PUSH32(esp, 0); /* 0x360024BF: push 0 */
   8080     PUSH32(esp, ecx); /* 0x360024C1: push ecx */
   8081     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024C2: call dword ptr [0x3616ff70] */
   8082     RECOMP_FLAGS_IN();
   8083     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8084     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8085     esp = esp + 4; /* 0x360024C8: add esp, 4 */
   8086     _flag_k = FK_ADD;
   8087     PUSH32(esp, eax); /* 0x360024CB: push eax */
   8088     RECOMP_ICALL(0x3615FD86u); /* 0x360024CC: call 0x3615fd86 */ /* not lifted */
   8089     RECOMP_FLAGS_IN();
   8090     edi = eax; /* 0x360024D1: mov edi, eax */
   8091     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8093     esp = esp + 0x14u; /* 0x360024D3: add esp, 0x14 */
   8094     _flag_k = FK_ADD;
   8095     /* test edi, edi */ /* 0x360024D6: test edi, edi */
   8096     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8097     _cf = 0;
   8098     _flag_k = FK_TEST;
   8099     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x360024D8: je 0x36002581 */
   8100 L_360024DE:
   8101     eax = MEM32(edi + 0x16C); /* 0x360024DE: mov eax, dword ptr [edi + 0x16c] */
   8102     PUSH32(esp, 0); /* 0x360024E4: push 0 */
   8103     PUSH32(esp, 0x361B2CD8u); /* 0x360024E6: push 0x361b2cd8 */
   8104     PUSH32(esp, 0x361B2CC0u); /* 0x360024EB: push 0x361b2cc0 */
   8105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x58u);
   8106     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8107     eax = eax + 0x58u; /* 0x360024F0: add eax, 0x58 */
   8108     _flag_k = FK_ADD;
   8109     PUSH32(esp, 0); /* 0x360024F3: push 0 */
   8110     PUSH32(esp, eax); /* 0x360024F5: push eax */
   8111     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360024F6: call dword ptr [0x3616ff70] */
   8112     RECOMP_FLAGS_IN();
   8113     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8115     esp = esp + 4; /* 0x360024FC: add esp, 4 */
   8116     _flag_k = FK_ADD;
   8117     PUSH32(esp, eax); /* 0x360024FF: push eax */
   8118     RECOMP_ICALL(0x3615FD86u); /* 0x36002500: call 0x3615fd86 */ /* not lifted */
   8119     RECOMP_FLAGS_IN();
   8120     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8122     esp = esp + 0x14u; /* 0x36002505: add esp, 0x14 */
   8123     _flag_k = FK_ADD;
   8124     /* test eax, eax */ /* 0x36002508: test eax, eax */
   8125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8126     _cf = 0;
   8127     _flag_k = FK_TEST;
   8128     if (TEST_NZ(_flag_a, _flag_b)) goto L_36002539; /* 0x3600250A: jne 0x36002539 */
   8129 L_3600250C:
   8130     PUSH32(esp, eax); /* 0x3600250C: push eax */
   8131     PUSH32(esp, 0x361B2CD8u); /* 0x3600250D: push 0x361b2cd8 */
   8132     PUSH32(esp, 0x361B2CC0u); /* 0x36002512: push 0x361b2cc0 */
   8133     PUSH32(esp, eax); /* 0x36002517: push eax */
   8134     ecx = edi; /* 0x36002518: mov ecx, edi */
   8135     RECOMP_ICALL(0x36072000u); /* 0x3600251A: call 0x36072000 */ /* not lifted */
   8136     RECOMP_FLAGS_IN();
   8137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u);
   8138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8139     eax = eax + 0x70u; /* 0x3600251F: add eax, 0x70 */
   8140     _flag_k = FK_ADD;
   8141     PUSH32(esp, eax); /* 0x36002522: push eax */
   8142     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002523: call dword ptr [0x3616ff70] */
   8143     RECOMP_FLAGS_IN();
   8144     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8145     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8146     esp = esp + 4; /* 0x36002529: add esp, 4 */
   8147     _flag_k = FK_ADD;
   8148     PUSH32(esp, eax); /* 0x3600252C: push eax */
   8149     RECOMP_ICALL(0x3615FD86u); /* 0x3600252D: call 0x3615fd86 */ /* not lifted */
   8150     RECOMP_FLAGS_IN();
   8151     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8152     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8153     esp = esp + 0x14u; /* 0x36002532: add esp, 0x14 */
   8154     _flag_k = FK_ADD;
   8155     /* test eax, eax */ /* 0x36002535: test eax, eax */
   8156     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8157     _cf = 0;
   8158     _flag_k = FK_TEST;
   8159     if (TEST_Z(_flag_a, _flag_b)) goto L_36002581; /* 0x36002537: je 0x36002581 */
   8160 L_36002539:
   8161     /* test LO8(ebx), LO8(ebx) */ /* 0x36002539: test bl, bl */
   8162     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8163     _cf = 0;
   8164     _flag_k = FK_NARROW(FK_TEST, 24);
   8165     if (TEST_Z(_flag_a, _flag_b)) goto L_3600254D; /* 0x3600253B: je 0x3600254d */
   8166 L_3600253D:
   8167     PUSH32(esp, esi); /* 0x3600253D: push esi */
   8168     PUSH32(esp, 9); /* 0x3600253E: push 9 */
   8169     ecx = eax + 0xE4; /* 0x36002540: lea ecx, [eax + 0xe4] */
   8170     RECOMP_ICALL(0x360027E0u); /* 0x36002546: call 0x360027e0 */ /* not lifted */
   8171     RECOMP_FLAGS_IN();
   8172     goto L_36002581; /* 0x3600254B: jmp 0x36002581 */
   8173 L_3600254D:
   8174     /* test eax, eax */ /* 0x3600254D: test eax, eax */
   8175     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8176     _cf = 0;
   8177     _flag_k = FK_TEST;
   8178     if (TEST_Z(_flag_a, _flag_b)) goto L_36002559; /* 0x3600254F: je 0x36002559 */
   8179 L_36002551:
   8180     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   8181     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8182     eax = eax + 0xE4u; /* 0x36002551: add eax, 0xe4 */
   8183     _flag_k = FK_ADD;
   8184     PUSH32(esp, eax); /* 0x36002556: push eax */
   8185     goto L_36002573; /* 0x36002557: jmp 0x36002573 */
   8186 L_36002559:
   8187     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8188     eax = 0; /* 0x36002559: xor eax, eax */
   8189     _cf = 0;
   8190     _flag_k = FK_TEST;
   8191     PUSH32(esp, eax); /* 0x3600255B: push eax */
   8192     goto L_36002573; /* 0x3600255C: jmp 0x36002573 */
   8193 L_3600255E:
   8194     /* test LO8(ebx), LO8(ebx) */ /* 0x3600255E: test bl, bl */
   8195     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   8196     _cf = 0;
   8197     _flag_k = FK_NARROW(FK_TEST, 24);
   8198     if (TEST_Z(_flag_a, _flag_b)) goto L_3600256F; /* 0x36002560: je 0x3600256f */
   8199 L_36002562:
   8200     ecx = MEM32(ebp + (-0x4)); /* 0x36002562: mov ecx, dword ptr [ebp - 4] */
   8201     PUSH32(esp, esi); /* 0x36002565: push esi */
   8202     PUSH32(esp, 9); /* 0x36002566: push 9 */
   8203     RECOMP_ICALL(0x360027E0u); /* 0x36002568: call 0x360027e0 */ /* not lifted */
   8204     RECOMP_FLAGS_IN();
   8205     goto L_36002581; /* 0x3600256D: jmp 0x36002581 */
   8206 L_3600256F:
   8207     edx = MEM32(ebp + (-0x4)); /* 0x3600256F: mov edx, dword ptr [ebp - 4] */
   8208     PUSH32(esp, edx); /* 0x36002572: push edx */
   8209 L_36002573:
   8210     ecx = esi; /* 0x36002573: mov ecx, esi */
   8211     RECOMP_ICALL(0x360BE8E0u); /* 0x36002575: call 0x360be8e0 */ /* not lifted */
   8212     RECOMP_FLAGS_IN();
   8213 L_3600257A:
   8214     ecx = esi; /* 0x3600257A: mov ecx, esi */
   8215     RECOMP_ICALL(0x360B7D60u); /* 0x3600257C: call 0x360b7d60 */ /* not lifted */
   8216     RECOMP_FLAGS_IN();
   8217 L_36002581:
   8218     eax = MEM32(ebp + (-0xC)); /* 0x36002581: mov eax, dword ptr [ebp - 0xc] */
   8219     ecx = MEM32(ebp + (-0x10)); /* 0x36002584: mov ecx, dword ptr [ebp - 0x10] */
   8220     /* cmp eax, ecx */ /* 0x36002587: cmp eax, ecx */
   8221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8223     _flag_k = FK_CMP;
   8224     if (CMP_EQ(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002589: je 0x360025b3 */
   8225 L_3600258B:
   8226     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   8227     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8228     eax = eax + 4; /* 0x3600258B: add eax, 4 */
   8229     _flag_k = FK_ADD;
   8230     /* cmp eax, ecx */ /* 0x3600258E: cmp eax, ecx */
   8231     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8233     _flag_k = FK_CMP;
   8234     MEM32(ebp + (-0xC)) = eax; /* 0x36002590: mov dword ptr [ebp - 0xc], eax */
   8235     if (CMP_NE(_flag_a, _flag_b)) goto L_360025B3; /* 0x36002593: jne 0x360025b3 */
   8236 L_36002595:
   8237     eax = MEM32(ebp + (-0x8)); /* 0x36002595: mov eax, dword ptr [ebp - 8] */
   8238     ecx = MEM32(eax + 0x4); /* 0x36002598: mov ecx, dword ptr [eax + 4] */
   8239     /* test ecx, ecx */ /* 0x3600259B: test ecx, ecx */
   8240     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8241     _cf = 0;
   8242     _flag_k = FK_TEST;
   8243     if (TEST_Z(_flag_a, _flag_b)) goto L_360025B3; /* 0x3600259D: je 0x360025b3 */
   8244 L_3600259F:
   8245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   8246     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8247     eax = eax + 4; /* 0x3600259F: add eax, 4 */
   8248     _flag_k = FK_ADD;
   8249     MEM32(ebp + (-0x8)) = eax; /* 0x360025A2: mov dword ptr [ebp - 8], eax */
   8250     eax = MEM32(eax); /* 0x360025A5: mov eax, dword ptr [eax] */
   8251     ecx = eax + 0x1000; /* 0x360025A7: lea ecx, [eax + 0x1000] */
   8252     MEM32(ebp + (-0x10)) = ecx; /* 0x360025AD: mov dword ptr [ebp - 0x10], ecx */
   8253     MEM32(ebp + (-0xC)) = eax; /* 0x360025B0: mov dword ptr [ebp - 0xc], eax */
   8254 L_360025B3:
   8255     ecx = MEM32(ebp + 0x8); /* 0x360025B3: mov ecx, dword ptr [ebp + 8] */
   8256     esi = MEM32(ebp + (-0xC)); /* 0x360025B6: mov esi, dword ptr [ebp - 0xc] */
   8257     edx = ebp + (-0x24); /* 0x360025B9: lea edx, [ebp - 0x24] */
   8258     PUSH32(esp, edx); /* 0x360025BC: push edx */
   8259     RECOMP_ICALL(0x360C0300u); /* 0x360025BD: call 0x360c0300 */ /* not lifted */
   8260     RECOMP_FLAGS_IN();
   8261     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360025C2: cmp esi, dword ptr [eax + 8] */
   8262     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8263     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8264     _flag_k = FK_CMP;
   8265     RECOMP_BACKEDGE();
   8266     if (CMP_NE(_flag_a, _flag_b)) goto L_360023BD; /* 0x360025C5: jne 0x360023bd */
   8267 L_360025CB:
   8268     edi = POP32_VAL(esp); /* 0x360025CB: pop edi */
   8269     esi = POP32_VAL(esp); /* 0x360025CC: pop esi */
   8270     ebx = POP32_VAL(esp); /* 0x360025CD: pop ebx */
   8271     esp = ebp; /* 0x360025CE: mov esp, ebp */
   8272     ebp = POP32_VAL(esp); /* 0x360025D0: pop ebp */
   8273     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360025D1: ret 0x10 */
   8274     RECOMP_REGS_OUT();
   8275 }
   8276 
   8277 void sub_360025E0(void) {
   8278     int _fpu_cmp = 0;
   8279     uint32_t _cf = 0;
   8280     int _df = 1;
   8281     uint32_t _flag_k = FK_NONE;
   8282     uint32_t _flag_a = 0, _flag_b = 0;
   8283     uint32_t _itail_tgt = 0;
   8284     RECOMP_REGS_LOCALS
   8285     RECOMP_ENTER(0x360025E0u);
   8286 
   8287 L_360025E0:
   8288     PUSH32(esp, ebp); /* 0x360025E0: push ebp */
   8289     ebp = esp; /* 0x360025E1: mov ebp, esp */
   8290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   8291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8292     esp = esp - 0x20u; /* 0x360025E3: sub esp, 0x20 */
   8293     _flag_k = FK_CMP;
   8294     PUSH32(esp, ebx); /* 0x360025E6: push ebx */
   8295     PUSH32(esp, esi); /* 0x360025E7: push esi */
   8296     PUSH32(esp, edi); /* 0x360025E8: push edi */
   8297     edi = MEM32(ebp + 0x8); /* 0x360025E9: mov edi, dword ptr [ebp + 8] */
   8298     eax = ebp + (-0x20); /* 0x360025EC: lea eax, [ebp - 0x20] */
   8299     PUSH32(esp, eax); /* 0x360025EF: push eax */
   8300     ecx = edi; /* 0x360025F0: mov ecx, edi */
   8301     RECOMP_ICALL(0x360C02D0u); /* 0x360025F2: call 0x360c02d0 */ /* not lifted */
   8302     RECOMP_FLAGS_IN();
   8303     ecx = MEM32(eax); /* 0x360025F7: mov ecx, dword ptr [eax] */
   8304     edx = MEM32(eax + 0x4); /* 0x360025F9: mov edx, dword ptr [eax + 4] */
   8305     esi = MEM32(eax + 0x8); /* 0x360025FC: mov esi, dword ptr [eax + 8] */
   8306     ebx = MEM32(eax + 0xC); /* 0x360025FF: mov ebx, dword ptr [eax + 0xc] */
   8307     eax = ebp + (-0x20); /* 0x36002602: lea eax, [ebp - 0x20] */
   8308     MEM32(ebp + (-0x10)) = ecx; /* 0x36002605: mov dword ptr [ebp - 0x10], ecx */
   8309     PUSH32(esp, eax); /* 0x36002608: push eax */
   8310     ecx = edi; /* 0x36002609: mov ecx, edi */
   8311     MEM32(ebp + (-0xC)) = edx; /* 0x3600260B: mov dword ptr [ebp - 0xc], edx */
   8312     RECOMP_ICALL(0x360C0300u); /* 0x3600260E: call 0x360c0300 */ /* not lifted */
   8313     RECOMP_FLAGS_IN();
   8314     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36002613: cmp esi, dword ptr [eax + 8] */
   8315     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8317     _flag_k = FK_CMP;
   8318     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002678; /* 0x36002616: je 0x36002678 */
   8319 L_36002618:
   8320     ecx = MEM32(esi); /* 0x36002618: mov ecx, dword ptr [esi] */
   8321     PUSH32(esp, 0x23u); /* 0x3600261A: push 0x23 */
   8322     RECOMP_ICALL(0x360BD190u); /* 0x3600261C: call 0x360bd190 */ /* not lifted */
   8323     RECOMP_FLAGS_IN();
   8324     edi = eax; /* 0x36002621: mov edi, eax */
   8325     /* cmp edi, 0xFFFFFFFFu */ /* 0x36002623: cmp edi, -1 */
   8326     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   8327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8328     _flag_k = FK_CMP;
   8329     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002641; /* 0x36002626: je 0x36002641 */
   8330 L_36002628:
   8331     ecx = MEM32(esi); /* 0x36002628: mov ecx, dword ptr [esi] */
   8332     RECOMP_ICALL(0x360BFC30u); /* 0x3600262A: call 0x360bfc30 */ /* not lifted */
   8333     RECOMP_FLAGS_IN();
   8334     _flag_a = (uint32_t)(MEM32(eax + 0x1C)); _flag_b = (uint32_t)(0xFFFFFFF7u);
   8335     MEM32(eax + 0x1C) = MEM32(eax + 0x1C) & 0xFFFFFFF7u; /* 0x3600262F: and dword ptr [eax + 0x1c], 0xfffffff7 */
   8336     _cf = 0;
   8337     _flag_k = FK_TEST;
   8338     ecx = MEM32(ebp + 0xC); /* 0x36002633: mov ecx, dword ptr [ebp + 0xc] */
   8339     /* test ecx, ecx */ /* 0x36002636: test ecx, ecx */
   8340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8341     _cf = 0;
   8342     _flag_k = FK_TEST;
   8343     if (TEST_Z(_flag_a, _flag_b)) goto L_36002678; /* 0x36002638: je 0x36002678 */
   8344 L_3600263A:
   8345     PUSH32(esp, eax); /* 0x3600263A: push eax */
   8346     PUSH32(esp, edi); /* 0x3600263B: push edi */
   8347     RECOMP_ICALL(0x360027E0u); /* 0x3600263C: call 0x360027e0 */ /* not lifted */
   8348     RECOMP_FLAGS_IN();
   8349 L_36002641:
   8350     eax = MEM32(ebp + (-0xC)); /* 0x36002641: mov eax, dword ptr [ebp - 0xc] */
   8351     /* cmp esi, eax */ /* 0x36002644: cmp esi, eax */
   8352     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8354     _flag_k = FK_CMP;
   8355     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002667; /* 0x36002646: je 0x36002667 */
   8356 L_36002648:
   8357     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   8358     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8359     esi = esi + 4; /* 0x36002648: add esi, 4 */
   8360     _flag_k = FK_ADD;
   8361     /* cmp esi, eax */ /* 0x3600264B: cmp esi, eax */
   8362     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8364     _flag_k = FK_CMP;
   8365     if (CMP_NE(_flag_a, _flag_b)) goto L_36002667; /* 0x3600264D: jne 0x36002667 */
   8366 L_3600264F:
   8367     eax = MEM32(ebx + 0x4); /* 0x3600264F: mov eax, dword ptr [ebx + 4] */
   8368     /* test eax, eax */ /* 0x36002652: test eax, eax */
   8369     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8370     _cf = 0;
   8371     _flag_k = FK_TEST;
   8372     if (TEST_Z(_flag_a, _flag_b)) goto L_36002667; /* 0x36002654: je 0x36002667 */
   8373 L_36002656:
   8374     eax = MEM32(ebx + 0x4); /* 0x36002656: mov eax, dword ptr [ebx + 4] */
   8375     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4);
   8376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8377     ebx = ebx + 4; /* 0x36002659: add ebx, 4 */
   8378     _flag_k = FK_ADD;
   8379     ecx = eax + 0x1000; /* 0x3600265C: lea ecx, [eax + 0x1000] */
   8380     MEM32(ebp + (-0xC)) = ecx; /* 0x36002662: mov dword ptr [ebp - 0xc], ecx */
   8381     esi = eax; /* 0x36002665: mov esi, eax */
   8382 L_36002667:
   8383     ecx = MEM32(ebp + 0x8); /* 0x36002667: mov ecx, dword ptr [ebp + 8] */
   8384     edx = ebp + (-0x20); /* 0x3600266A: lea edx, [ebp - 0x20] */
   8385     PUSH32(esp, edx); /* 0x3600266D: push edx */
   8386     RECOMP_ICALL(0x360C0300u); /* 0x3600266E: call 0x360c0300 */ /* not lifted */
   8387     RECOMP_FLAGS_IN();
   8388     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36002673: cmp esi, dword ptr [eax + 8] */
   8389     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8390     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8391     _flag_k = FK_CMP;
   8392     RECOMP_BACKEDGE();
   8393     if (CMP_NE(_flag_a, _flag_b)) goto L_36002618; /* 0x36002676: jne 0x36002618 */
   8394 L_36002678:
   8395     edi = POP32_VAL(esp); /* 0x36002678: pop edi */
   8396     esi = POP32_VAL(esp); /* 0x36002679: pop esi */
   8397     ebx = POP32_VAL(esp); /* 0x3600267A: pop ebx */
   8398     esp = ebp; /* 0x3600267B: mov esp, ebp */
   8399     ebp = POP32_VAL(esp); /* 0x3600267D: pop ebp */
   8400     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3600267E: ret 0xc */
   8401     RECOMP_REGS_OUT();
   8402 }
   8403 
   8404 void sub_36002690(void) {
   8405     int _fpu_cmp = 0;
   8406     uint32_t _cf = 0;
   8407     int _df = 1;
   8408     uint32_t _flag_k = FK_NONE;
   8409     uint32_t _flag_a = 0, _flag_b = 0;
   8410     uint32_t _itail_tgt = 0;
   8411     RECOMP_REGS_LOCALS
   8412     RECOMP_ENTER(0x36002690u);
   8413 
   8414 L_36002690:
   8415     PUSH32(esp, ebp); /* 0x36002690: push ebp */
   8416     ebp = esp; /* 0x36002691: mov ebp, esp */
   8417     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   8418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8419     esp = esp - 0x24u; /* 0x36002693: sub esp, 0x24 */
   8420     _flag_k = FK_CMP;
   8421     eax = MEM32(ecx + 0x1C); /* 0x36002696: mov eax, dword ptr [ecx + 0x1c] */
   8422     eax = MEM32(eax + 0x4); /* 0x36002699: mov eax, dword ptr [eax + 4] */
   8423     PUSH32(esp, ebx); /* 0x3600269C: push ebx */
   8424     PUSH32(esp, esi); /* 0x3600269D: push esi */
   8425     MEM32(ebp + (-0x4)) = ecx; /* 0x3600269E: mov dword ptr [ebp - 4], ecx */
   8426     PUSH32(esp, edi); /* 0x360026A1: push edi */
   8427     ecx = ebp + (-0x24); /* 0x360026A2: lea ecx, [ebp - 0x24] */
   8428     PUSH32(esp, ecx); /* 0x360026A5: push ecx */
   8429     ecx = MEM32(eax + 0x24); /* 0x360026A6: mov ecx, dword ptr [eax + 0x24] */
   8430     RECOMP_ICALL(0x360C02D0u); /* 0x360026A9: call 0x360c02d0 */ /* not lifted */
   8431     RECOMP_FLAGS_IN();
   8432     edx = MEM32(eax); /* 0x360026AE: mov edx, dword ptr [eax] */
   8433     ebx = MEM32(eax + 0x4); /* 0x360026B0: mov ebx, dword ptr [eax + 4] */
   8434     esi = MEM32(eax + 0x8); /* 0x360026B3: mov esi, dword ptr [eax + 8] */
   8435     edi = MEM32(eax + 0xC); /* 0x360026B6: mov edi, dword ptr [eax + 0xc] */
   8436     eax = MEM32(ebp + (-0x4)); /* 0x360026B9: mov eax, dword ptr [ebp - 4] */
   8437     ecx = MEM32(eax + 0x1C); /* 0x360026BC: mov ecx, dword ptr [eax + 0x1c] */
   8438     eax = MEM32(ecx + 0x4); /* 0x360026BF: mov eax, dword ptr [ecx + 4] */
   8439     ecx = MEM32(eax + 0x24); /* 0x360026C2: mov ecx, dword ptr [eax + 0x24] */
   8440     MEM32(ebp + (-0x14)) = edx; /* 0x360026C5: mov dword ptr [ebp - 0x14], edx */
   8441     edx = ebp + (-0x24); /* 0x360026C8: lea edx, [ebp - 0x24] */
   8442     PUSH32(esp, edx); /* 0x360026CB: push edx */
   8443     RECOMP_ICALL(0x360C0300u); /* 0x360026CC: call 0x360c0300 */ /* not lifted */
   8444     RECOMP_FLAGS_IN();
   8445     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360026D1: cmp esi, dword ptr [eax + 8] */
   8446     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8448     _flag_k = FK_CMP;
   8449     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600273F; /* 0x360026D4: je 0x3600273f */
   8450 L_360026D6:
   8451     eax = MEM32(esi); /* 0x360026D6: mov eax, dword ptr [esi] */
   8452     ecx = ebp + (-0xC); /* 0x360026D8: lea ecx, [ebp - 0xc] */
   8453     /* cmp ecx, eax */ /* 0x360026DB: cmp ecx, eax */
   8454     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8456     _flag_k = FK_CMP;
   8457     if (CMP_EQ(_flag_a, _flag_b)) goto L_360026EA; /* 0x360026DD: je 0x360026ea */
   8458 L_360026DF:
   8459     edx = MEM32(eax); /* 0x360026DF: mov edx, dword ptr [eax] */
   8460     eax = MEM32(eax + 0x4); /* 0x360026E1: mov eax, dword ptr [eax + 4] */
   8461     MEM32(ebp + (-0xC)) = edx; /* 0x360026E4: mov dword ptr [ebp - 0xc], edx */
   8462     MEM32(ebp + (-0x8)) = eax; /* 0x360026E7: mov dword ptr [ebp - 8], eax */
   8463 L_360026EA:
   8464     ecx = MEM32(ebp + (-0x8)); /* 0x360026EA: mov ecx, dword ptr [ebp - 8] */
   8465     /* cmp ecx, MEM32(ebp + 0xC) */ /* 0x360026ED: cmp ecx, dword ptr [ebp + 0xc] */
   8466     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
   8467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8468     _flag_k = FK_CMP;
   8469     if (CMP_NE(_flag_a, _flag_b)) goto L_360026FA; /* 0x360026F0: jne 0x360026fa */
   8470 L_360026F2:
   8471     edx = MEM32(ebp + (-0xC)); /* 0x360026F2: mov edx, dword ptr [ebp - 0xc] */
   8472     /* cmp edx, MEM32(ebp + 0x8) */ /* 0x360026F5: cmp edx, dword ptr [ebp + 8] */
   8473     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
   8474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8475     _flag_k = FK_CMP;
   8476     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002734; /* 0x360026F8: je 0x36002734 */
   8477 L_360026FA:
   8478     /* cmp esi, ebx */ /* 0x360026FA: cmp esi, ebx */
   8479     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8481     _flag_k = FK_CMP;
   8482     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002718; /* 0x360026FC: je 0x36002718 */
   8483 L_360026FE:
   8484     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   8485     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8486     esi = esi + 4; /* 0x360026FE: add esi, 4 */
   8487     _flag_k = FK_ADD;
   8488     /* cmp esi, ebx */ /* 0x36002701: cmp esi, ebx */
   8489     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   8490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8491     _flag_k = FK_CMP;
   8492     if (CMP_NE(_flag_a, _flag_b)) goto L_36002718; /* 0x36002703: jne 0x36002718 */
   8493 L_36002705:
   8494     eax = MEM32(edi + 0x4); /* 0x36002705: mov eax, dword ptr [edi + 4] */
   8495     /* test eax, eax */ /* 0x36002708: test eax, eax */
   8496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8497     _cf = 0;
   8498     _flag_k = FK_TEST;
   8499     if (TEST_Z(_flag_a, _flag_b)) goto L_36002718; /* 0x3600270A: je 0x36002718 */
   8500 L_3600270C:
   8501     esi = MEM32(edi + 0x4); /* 0x3600270C: mov esi, dword ptr [edi + 4] */
   8502     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   8503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8504     edi = edi + 4; /* 0x3600270F: add edi, 4 */
   8505     _flag_k = FK_ADD;
   8506     ebx = esi + 0x1000; /* 0x36002712: lea ebx, [esi + 0x1000] */
   8507 L_36002718:
   8508     eax = MEM32(ebp + (-0x4)); /* 0x36002718: mov eax, dword ptr [ebp - 4] */
   8509     ecx = MEM32(eax + 0x1C); /* 0x3600271B: mov ecx, dword ptr [eax + 0x1c] */
   8510     eax = MEM32(ecx + 0x4); /* 0x3600271E: mov eax, dword ptr [ecx + 4] */
   8511     ecx = MEM32(eax + 0x24); /* 0x36002721: mov ecx, dword ptr [eax + 0x24] */
   8512     edx = ebp + (-0x24); /* 0x36002724: lea edx, [ebp - 0x24] */
   8513     PUSH32(esp, edx); /* 0x36002727: push edx */
   8514     RECOMP_ICALL(0x360C0300u); /* 0x36002728: call 0x360c0300 */ /* not lifted */
   8515     RECOMP_FLAGS_IN();
   8516     /* cmp esi, MEM32(eax + 0x8) */ /* 0x3600272D: cmp esi, dword ptr [eax + 8] */
   8517     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8519     _flag_k = FK_CMP;
   8520     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600273F; /* 0x36002730: je 0x3600273f */
   8521 L_36002732:
   8522     RECOMP_BACKEDGE();
   8523     goto L_360026D6; /* 0x36002732: jmp 0x360026d6 */
   8524 L_36002734:
   8525     eax = MEM32(esi); /* 0x36002734: mov eax, dword ptr [esi] */
   8526     edi = POP32_VAL(esp); /* 0x36002736: pop edi */
   8527     esi = POP32_VAL(esp); /* 0x36002737: pop esi */
   8528     ebx = POP32_VAL(esp); /* 0x36002738: pop ebx */
   8529     esp = ebp; /* 0x36002739: mov esp, ebp */
   8530     ebp = POP32_VAL(esp); /* 0x3600273B: pop ebp */
   8531     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3600273C: ret 8 */
   8532 L_3600273F:
   8533     edi = POP32_VAL(esp); /* 0x3600273F: pop edi */
   8534     esi = POP32_VAL(esp); /* 0x36002740: pop esi */
   8535     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8536     eax = 0; /* 0x36002741: xor eax, eax */
   8537     _cf = 0;
   8538     _flag_k = FK_TEST;
   8539     ebx = POP32_VAL(esp); /* 0x36002743: pop ebx */
   8540     esp = ebp; /* 0x36002744: mov esp, ebp */
   8541     ebp = POP32_VAL(esp); /* 0x36002746: pop ebp */
   8542     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36002747: ret 8 */
   8543     RECOMP_REGS_OUT();
   8544 }
   8545 
   8546 void sub_36002750(void) {
   8547     int _fpu_cmp = 0;
   8548     uint32_t _cf = 0;
   8549     int _df = 1;
   8550     uint32_t _flag_k = FK_NONE;
   8551     uint32_t _flag_a = 0, _flag_b = 0;
   8552     uint32_t _itail_tgt = 0;
   8553     RECOMP_REGS_LOCALS
   8554     RECOMP_ENTER(0x36002750u);
   8555 
   8556 L_36002750:
   8557     PUSH32(esp, 0); /* 0x36002750: push 0 */
   8558     PUSH32(esp, 0x361B2CA0u); /* 0x36002752: push 0x361b2ca0 */
   8559     PUSH32(esp, 0x361B2CC0u); /* 0x36002757: push 0x361b2cc0 */
   8560     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   8561     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8562     ecx = ecx + 0x24u; /* 0x3600275C: add ecx, 0x24 */
   8563     _flag_k = FK_ADD;
   8564     PUSH32(esp, 0); /* 0x3600275F: push 0 */
   8565     PUSH32(esp, ecx); /* 0x36002761: push ecx */
   8566     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002762: call dword ptr [0x3616ff70] */
   8567     RECOMP_FLAGS_IN();
   8568     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8569     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8570     esp = esp + 4; /* 0x36002768: add esp, 4 */
   8571     _flag_k = FK_ADD;
   8572     PUSH32(esp, eax); /* 0x3600276B: push eax */
   8573     RECOMP_ICALL(0x3615FD86u); /* 0x3600276C: call 0x3615fd86 */ /* not lifted */
   8574     RECOMP_FLAGS_IN();
   8575     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8576     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8577     esp = esp + 0x14u; /* 0x36002771: add esp, 0x14 */
   8578     _flag_k = FK_ADD;
   8579     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36002774: ret  */
   8580     RECOMP_REGS_OUT();
   8581 }
   8582 
   8583 void sub_36002780(void) {
   8584     int _fpu_cmp = 0;
   8585     uint32_t _cf = 0;
   8586     int _df = 1;
   8587     uint32_t _flag_k = FK_NONE;
   8588     uint32_t _flag_a = 0, _flag_b = 0;
   8589     uint32_t _itail_tgt = 0;
   8590     RECOMP_REGS_LOCALS
   8591     RECOMP_ENTER(0x36002780u);
   8592 
   8593 L_36002780:
   8594     PUSH32(esp, 0); /* 0x36002780: push 0 */
   8595     PUSH32(esp, 0x361B2CD8u); /* 0x36002782: push 0x361b2cd8 */
   8596     PUSH32(esp, 0x361B2CC0u); /* 0x36002787: push 0x361b2cc0 */
   8597     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   8598     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8599     ecx = ecx + 0x24u; /* 0x3600278C: add ecx, 0x24 */
   8600     _flag_k = FK_ADD;
   8601     PUSH32(esp, 0); /* 0x3600278F: push 0 */
   8602     PUSH32(esp, ecx); /* 0x36002791: push ecx */
   8603     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002792: call dword ptr [0x3616ff70] */
   8604     RECOMP_FLAGS_IN();
   8605     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8607     esp = esp + 4; /* 0x36002798: add esp, 4 */
   8608     _flag_k = FK_ADD;
   8609     PUSH32(esp, eax); /* 0x3600279B: push eax */
   8610     RECOMP_ICALL(0x3615FD86u); /* 0x3600279C: call 0x3615fd86 */ /* not lifted */
   8611     RECOMP_FLAGS_IN();
   8612     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8613     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8614     esp = esp + 0x14u; /* 0x360027A1: add esp, 0x14 */
   8615     _flag_k = FK_ADD;
   8616     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   8617     _cf = (eax) != 0;
   8618     eax = (uint32_t)(-(int32_t)eax); /* 0x360027A4: neg eax */
   8619     _flag_k = FK_CMP;
   8620     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360027A6: sbb eax, eax */
   8621       eax = _sc ? 0xFFFFFFFFu : 0;
   8622       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   8623       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   8624     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   8625     _cf = (eax) != 0;
   8626     eax = (uint32_t)(-(int32_t)eax); /* 0x360027A8: neg eax */
   8627     _flag_k = FK_CMP;
   8628     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360027AA: ret  */
   8629     RECOMP_REGS_OUT();
   8630 }
   8631 
   8632 void sub_360027B0(void) {
   8633     int _fpu_cmp = 0;
   8634     uint32_t _cf = 0;
   8635     int _df = 1;
   8636     uint32_t _flag_k = FK_NONE;
   8637     uint32_t _flag_a = 0, _flag_b = 0;
   8638     uint32_t _itail_tgt = 0;
   8639     RECOMP_REGS_LOCALS
   8640     RECOMP_ENTER(0x360027B0u);
   8641 
   8642 L_360027B0:
   8643     PUSH32(esp, 0); /* 0x360027B0: push 0 */
   8644     PUSH32(esp, 0x361B2CA0u); /* 0x360027B2: push 0x361b2ca0 */
   8645     PUSH32(esp, 0x361B2CC0u); /* 0x360027B7: push 0x361b2cc0 */
   8646     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x2Cu);
   8647     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8648     ecx = ecx + 0x2Cu; /* 0x360027BC: add ecx, 0x2c */
   8649     _flag_k = FK_ADD;
   8650     PUSH32(esp, 0); /* 0x360027BF: push 0 */
   8651     PUSH32(esp, ecx); /* 0x360027C1: push ecx */
   8652     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360027C2: call dword ptr [0x3616ff70] */
   8653     RECOMP_FLAGS_IN();
   8654     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8655     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8656     esp = esp + 4; /* 0x360027C8: add esp, 4 */
   8657     _flag_k = FK_ADD;
   8658     PUSH32(esp, eax); /* 0x360027CB: push eax */
   8659     RECOMP_ICALL(0x3615FD86u); /* 0x360027CC: call 0x3615fd86 */ /* not lifted */
   8660     RECOMP_FLAGS_IN();
   8661     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8663     esp = esp + 0x14u; /* 0x360027D1: add esp, 0x14 */
   8664     _flag_k = FK_ADD;
   8665     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360027D4: ret  */
   8666     RECOMP_REGS_OUT();
   8667 }
   8668 
   8669 void sub_360027E0(void) {
   8670     int _fpu_cmp = 0;
   8671     uint32_t _cf = 0;
   8672     int _df = 1;
   8673     uint32_t _flag_k = FK_NONE;
   8674     uint32_t _flag_a = 0, _flag_b = 0;
   8675     uint32_t _itail_tgt = 0;
   8676     RECOMP_REGS_LOCALS
   8677     RECOMP_ENTER(0x360027E0u);
   8678 
   8679 L_360027E0:
   8680     PUSH32(esp, ebp); /* 0x360027E0: push ebp */
   8681     ebp = esp; /* 0x360027E1: mov ebp, esp */
   8682     eax = MEM32(ebp + 0xC); /* 0x360027E3: mov eax, dword ptr [ebp + 0xc] */
   8683     edx = MEM32(ebp + 0x8); /* 0x360027E6: mov edx, dword ptr [ebp + 8] */
   8684     PUSH32(esp, eax); /* 0x360027E9: push eax */
   8685     PUSH32(esp, edx); /* 0x360027EA: push edx */
   8686     RECOMP_ICALL(0x360020E0u); /* 0x360027EB: call 0x360020e0 */ /* not lifted */
   8687     RECOMP_FLAGS_IN();
   8688     ecx = eax; /* 0x360027F0: mov ecx, eax */
   8689     RECOMP_ICALL(0x360C0590u); /* 0x360027F2: call 0x360c0590 */ /* not lifted */
   8690     RECOMP_FLAGS_IN();
   8691     ebp = POP32_VAL(esp); /* 0x360027F7: pop ebp */
   8692     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360027F8: ret 8 */
   8693     RECOMP_REGS_OUT();
   8694 }
   8695 
   8696 void sub_36002800(void) {
   8697     int _fpu_cmp = 0;
   8698     uint32_t _cf = 0;
   8699     int _df = 1;
   8700     uint32_t _flag_k = FK_NONE;
   8701     uint32_t _flag_a = 0, _flag_b = 0;
   8702     uint32_t _itail_tgt = 0;
   8703     RECOMP_REGS_LOCALS
   8704     RECOMP_ENTER(0x36002800u);
   8705 
   8706 L_36002800:
   8707     PUSH32(esp, ebp); /* 0x36002800: push ebp */
   8708     ebp = esp; /* 0x36002801: mov ebp, esp */
   8709     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   8710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8711     esp = esp - 0x2Cu; /* 0x36002803: sub esp, 0x2c */
   8712     _flag_k = FK_CMP;
   8713     edx = MEM32(ebp + 0x8); /* 0x36002806: mov edx, dword ptr [ebp + 8] */
   8714     PUSH32(esp, ebx); /* 0x36002809: push ebx */
   8715     PUSH32(esp, esi); /* 0x3600280A: push esi */
   8716     PUSH32(esp, edi); /* 0x3600280B: push edi */
   8717     eax = ebp + (-0x2C); /* 0x3600280C: lea eax, [ebp - 0x2c] */
   8718     PUSH32(esp, eax); /* 0x3600280F: push eax */
   8719     PUSH32(esp, edx); /* 0x36002810: push edx */
   8720     MEM32(ebp + (-0x4)) = ecx; /* 0x36002811: mov dword ptr [ebp - 4], ecx */
   8721     RECOMP_ICALL(0x360020C0u); /* 0x36002814: call 0x360020c0 */ /* not lifted */
   8722     RECOMP_FLAGS_IN();
   8723     ecx = eax; /* 0x36002819: mov ecx, eax */
   8724     RECOMP_ICALL(0x360C02D0u); /* 0x3600281B: call 0x360c02d0 */ /* not lifted */
   8725     RECOMP_FLAGS_IN();
   8726     ebx = MEM32(eax); /* 0x36002820: mov ebx, dword ptr [eax] */
   8727     ecx = MEM32(eax + 0x4); /* 0x36002822: mov ecx, dword ptr [eax + 4] */
   8728     esi = MEM32(eax + 0x8); /* 0x36002825: mov esi, dword ptr [eax + 8] */
   8729     edi = MEM32(eax + 0xC); /* 0x36002828: mov edi, dword ptr [eax + 0xc] */
   8730     eax = MEM32(ebp + 0x8); /* 0x3600282B: mov eax, dword ptr [ebp + 8] */
   8731     edx = ebp + (-0x2C); /* 0x3600282E: lea edx, [ebp - 0x2c] */
   8732     PUSH32(esp, edx); /* 0x36002831: push edx */
   8733     MEM32(ebp + (-0x18)) = ecx; /* 0x36002832: mov dword ptr [ebp - 0x18], ecx */
   8734     ecx = MEM32(ebp + (-0x4)); /* 0x36002835: mov ecx, dword ptr [ebp - 4] */
   8735     PUSH32(esp, eax); /* 0x36002838: push eax */
   8736     RECOMP_ICALL(0x360020C0u); /* 0x36002839: call 0x360020c0 */ /* not lifted */
   8737     RECOMP_FLAGS_IN();
   8738     ecx = eax; /* 0x3600283E: mov ecx, eax */
   8739     RECOMP_ICALL(0x360C0300u); /* 0x36002840: call 0x360c0300 */ /* not lifted */
   8740     RECOMP_FLAGS_IN();
   8741     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36002845: cmp esi, dword ptr [eax + 8] */
   8742     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8744     _flag_k = FK_CMP;
   8745     if (CMP_EQ(_flag_a, _flag_b)) goto L_360028E2; /* 0x36002848: je 0x360028e2 */
   8746 L_3600284E:
   8747     eax = MEM32(esi); /* 0x3600284E: mov eax, dword ptr [esi] */
   8748     ecx = ebp + (-0xC); /* 0x36002850: lea ecx, [ebp - 0xc] */
   8749     /* cmp ecx, eax */ /* 0x36002853: cmp ecx, eax */
   8750     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   8751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8752     _flag_k = FK_CMP;
   8753     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002862; /* 0x36002855: je 0x36002862 */
   8754 L_36002857:
   8755     edx = MEM32(eax); /* 0x36002857: mov edx, dword ptr [eax] */
   8756     eax = MEM32(eax + 0x4); /* 0x36002859: mov eax, dword ptr [eax + 4] */
   8757     MEM32(ebp + (-0xC)) = edx; /* 0x3600285C: mov dword ptr [ebp - 0xc], edx */
   8758     MEM32(ebp + (-0x8)) = eax; /* 0x3600285F: mov dword ptr [ebp - 8], eax */
   8759 L_36002862:
   8760     eax = MEM32(ebp + 0xC); /* 0x36002862: mov eax, dword ptr [ebp + 0xc] */
   8761     ecx = MEM32(ebp + (-0x8)); /* 0x36002865: mov ecx, dword ptr [ebp - 8] */
   8762     /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36002868: cmp ecx, dword ptr [eax + 4] */
   8763     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   8764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8765     _flag_k = FK_CMP;
   8766     if (CMP_NE(_flag_a, _flag_b)) goto L_36002874; /* 0x3600286B: jne 0x36002874 */
   8767 L_3600286D:
   8768     edx = MEM32(ebp + (-0xC)); /* 0x3600286D: mov edx, dword ptr [ebp - 0xc] */
   8769     /* cmp edx, MEM32(eax) */ /* 0x36002870: cmp edx, dword ptr [eax] */
   8770     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   8771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8772     _flag_k = FK_CMP;
   8773     if (CMP_EQ(_flag_a, _flag_b)) goto L_360028B8; /* 0x36002872: je 0x360028b8 */
   8774 L_36002874:
   8775     eax = MEM32(ebp + (-0x18)); /* 0x36002874: mov eax, dword ptr [ebp - 0x18] */
   8776     /* cmp esi, eax */ /* 0x36002877: cmp esi, eax */
   8777     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8779     _flag_k = FK_CMP;
   8780     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600289A; /* 0x36002879: je 0x3600289a */
   8781 L_3600287B:
   8782     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   8783     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8784     esi = esi + 4; /* 0x3600287B: add esi, 4 */
   8785     _flag_k = FK_ADD;
   8786     /* cmp esi, eax */ /* 0x3600287E: cmp esi, eax */
   8787     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8789     _flag_k = FK_CMP;
   8790     if (CMP_NE(_flag_a, _flag_b)) goto L_3600289A; /* 0x36002880: jne 0x3600289a */
   8791 L_36002882:
   8792     eax = MEM32(edi + 0x4); /* 0x36002882: mov eax, dword ptr [edi + 4] */
   8793     /* test eax, eax */ /* 0x36002885: test eax, eax */
   8794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8795     _cf = 0;
   8796     _flag_k = FK_TEST;
   8797     if (TEST_Z(_flag_a, _flag_b)) goto L_3600289A; /* 0x36002887: je 0x3600289a */
   8798 L_36002889:
   8799     ebx = MEM32(edi + 0x4); /* 0x36002889: mov ebx, dword ptr [edi + 4] */
   8800     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   8801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8802     edi = edi + 4; /* 0x3600288C: add edi, 4 */
   8803     _flag_k = FK_ADD;
   8804     eax = ebx + 0x1000; /* 0x3600288F: lea eax, [ebx + 0x1000] */
   8805     MEM32(ebp + (-0x18)) = eax; /* 0x36002895: mov dword ptr [ebp - 0x18], eax */
   8806     esi = ebx; /* 0x36002898: mov esi, ebx */
   8807 L_3600289A:
   8808     edx = MEM32(ebp + 0x8); /* 0x3600289A: mov edx, dword ptr [ebp + 8] */
   8809     ecx = ebp + (-0x2C); /* 0x3600289D: lea ecx, [ebp - 0x2c] */
   8810     PUSH32(esp, ecx); /* 0x360028A0: push ecx */
   8811     ecx = MEM32(ebp + (-0x4)); /* 0x360028A1: mov ecx, dword ptr [ebp - 4] */
   8812     PUSH32(esp, edx); /* 0x360028A4: push edx */
   8813     RECOMP_ICALL(0x360020C0u); /* 0x360028A5: call 0x360020c0 */ /* not lifted */
   8814     RECOMP_FLAGS_IN();
   8815     ecx = eax; /* 0x360028AA: mov ecx, eax */
   8816     RECOMP_ICALL(0x360C0300u); /* 0x360028AC: call 0x360c0300 */ /* not lifted */
   8817     RECOMP_FLAGS_IN();
   8818     /* cmp esi, MEM32(eax + 0x8) */ /* 0x360028B1: cmp esi, dword ptr [eax + 8] */
   8819     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   8820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8821     _flag_k = FK_CMP;
   8822     if (CMP_EQ(_flag_a, _flag_b)) goto L_360028E2; /* 0x360028B4: je 0x360028e2 */
   8823 L_360028B6:
   8824     RECOMP_BACKEDGE();
   8825     goto L_3600284E; /* 0x360028B6: jmp 0x3600284e */
   8826 L_360028B8:
   8827     ecx = MEM32(ebp + (-0x18)); /* 0x360028B8: mov ecx, dword ptr [ebp - 0x18] */
   8828     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8829     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8830     esp = esp - 0x10u; /* 0x360028BB: sub esp, 0x10 */
   8831     _flag_k = FK_CMP;
   8832     eax = esp; /* 0x360028BE: mov eax, esp */
   8833     MEM32(eax) = ebx; /* 0x360028C0: mov dword ptr [eax], ebx */
   8834     MEM32(eax + 0x4) = ecx; /* 0x360028C2: mov dword ptr [eax + 4], ecx */
   8835     ecx = MEM32(ebp + (-0x4)); /* 0x360028C5: mov ecx, dword ptr [ebp - 4] */
   8836     MEM32(eax + 0x8) = esi; /* 0x360028C8: mov dword ptr [eax + 8], esi */
   8837     edx = ebp + (-0x2C); /* 0x360028CB: lea edx, [ebp - 0x2c] */
   8838     MEM32(eax + 0xC) = edi; /* 0x360028CE: mov dword ptr [eax + 0xc], edi */
   8839     eax = MEM32(ebp + 0x8); /* 0x360028D1: mov eax, dword ptr [ebp + 8] */
   8840     PUSH32(esp, edx); /* 0x360028D4: push edx */
   8841     PUSH32(esp, eax); /* 0x360028D5: push eax */
   8842     RECOMP_ICALL(0x360020C0u); /* 0x360028D6: call 0x360020c0 */ /* not lifted */
   8843     RECOMP_FLAGS_IN();
   8844     ecx = eax; /* 0x360028DB: mov ecx, eax */
   8845     RECOMP_ICALL(0x360C0910u); /* 0x360028DD: call 0x360c0910 */ /* not lifted */
   8846     RECOMP_FLAGS_IN();
   8847 L_360028E2:
   8848     edi = POP32_VAL(esp); /* 0x360028E2: pop edi */
   8849     esi = POP32_VAL(esp); /* 0x360028E3: pop esi */
   8850     ebx = POP32_VAL(esp); /* 0x360028E4: pop ebx */
   8851     esp = ebp; /* 0x360028E5: mov esp, ebp */
   8852     ebp = POP32_VAL(esp); /* 0x360028E7: pop ebp */
   8853     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360028E8: ret 8 */
   8854     RECOMP_REGS_OUT();
   8855 }
   8856 
   8857 void sub_360028F0(void) {
   8858     int _fpu_cmp = 0;
   8859     uint32_t _cf = 0;
   8860     int _df = 1;
   8861     uint32_t _flag_k = FK_NONE;
   8862     uint32_t _flag_a = 0, _flag_b = 0;
   8863     uint32_t _itail_tgt = 0;
   8864     RECOMP_REGS_LOCALS
   8865     RECOMP_ENTER(0x360028F0u);
   8866 
   8867 L_360028F0:
   8868     PUSH32(esp, ebp); /* 0x360028F0: push ebp */
   8869     ebp = esp; /* 0x360028F1: mov ebp, esp */
   8870     eax = MEM32(0x3616FF74); /* 0x360028F3: mov eax, dword ptr [0x3616ff74] */
   8871     eax = MEM32(eax); /* 0x360028F8: mov eax, dword ptr [eax] */
   8872     PUSH32(esp, 0); /* 0x360028FA: push 0 */
   8873     PUSH32(esp, 0x361B2D38u); /* 0x360028FC: push 0x361b2d38 */
   8874     PUSH32(esp, 0x361B2D18u); /* 0x36002901: push 0x361b2d18 */
   8875     PUSH32(esp, 0); /* 0x36002906: push 0 */
   8876     PUSH32(esp, eax); /* 0x36002908: push eax */
   8877     RECOMP_ICALL(0x3615FD86u); /* 0x36002909: call 0x3615fd86 */ /* not lifted */
   8878     RECOMP_FLAGS_IN();
   8879     edx = MEM32(eax); /* 0x3600290E: mov edx, dword ptr [eax] */
   8880     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8882     esp = esp + 0x14u; /* 0x36002910: add esp, 0x14 */
   8883     _flag_k = FK_ADD;
   8884     ecx = eax; /* 0x36002913: mov ecx, eax */
   8885     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36002915: call dword ptr [edx + 0x10] */
   8886     RECOMP_FLAGS_IN();
   8887     /* cmp eax, MEM32(ebp + 0x8) */ /* 0x36002918: cmp eax, dword ptr [ebp + 8] */
   8888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
   8889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8890     _flag_k = FK_CMP;
   8891     if (CMP_NE(_flag_a, _flag_b)) goto L_3600292F; /* 0x3600291B: jne 0x3600292f */
   8892 L_3600291D:
   8893     eax = MEM32(ebp + 0xC); /* 0x3600291D: mov eax, dword ptr [ebp + 0xc] */
   8894     PUSH32(esp, 0); /* 0x36002920: push 0 */
   8895     PUSH32(esp, eax); /* 0x36002922: push eax */
   8896     RECOMP_ICALL(0x3601C590u); /* 0x36002923: call 0x3601c590 */ /* not lifted */
   8897     RECOMP_FLAGS_IN();
   8898     ecx = eax; /* 0x36002928: mov ecx, eax */
   8899     RECOMP_ICALL(0x3601C8C0u); /* 0x3600292A: call 0x3601c8c0 */ /* not lifted */
   8900     RECOMP_FLAGS_IN();
   8901 L_3600292F:
   8902     ebp = POP32_VAL(esp); /* 0x3600292F: pop ebp */
   8903     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36002930: ret 8 */
   8904     RECOMP_REGS_OUT();
   8905 }
   8906 
   8907 void sub_36002940(void) {
   8908     int _fpu_cmp = 0;
   8909     uint32_t _cf = 0;
   8910     int _df = 1;
   8911     uint32_t _flag_k = FK_NONE;
   8912     uint32_t _flag_a = 0, _flag_b = 0;
   8913     uint32_t _itail_tgt = 0;
   8914     RECOMP_REGS_LOCALS
   8915     RECOMP_ENTER(0x36002940u);
   8916 
   8917 L_36002940:
   8918     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8919     SET_LO8(eax, 0); /* 0x36002940: xor al, al */
   8920     _cf = 0;
   8921     _flag_k = FK_NARROW(FK_TEST, 24);
   8922     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36002942: ret 8 */
   8923     RECOMP_REGS_OUT();
   8924 }
   8925 
   8926 void sub_36002950(void) {
   8927     int _fpu_cmp = 0;
   8928     uint32_t _cf = 0;
   8929     int _df = 1;
   8930     uint32_t _flag_k = FK_NONE;
   8931     uint32_t _flag_a = 0, _flag_b = 0;
   8932     uint32_t _itail_tgt = 0;
   8933     RECOMP_REGS_LOCALS
   8934     RECOMP_ENTER(0x36002950u);
   8935 
   8936 L_36002950:
   8937     eax = MEM32(0x36306D5C); /* 0x36002950: mov eax, dword ptr [0x36306d5c] */
   8938     ecx = MEM32(0x36306D60); /* 0x36002955: mov ecx, dword ptr [0x36306d60] */
   8939     /* cmp eax, ecx */ /* 0x3600295B: cmp eax, ecx */
   8940     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8942     _flag_k = FK_CMP;
   8943     PUSH32(esp, esi); /* 0x3600295D: push esi */
   8944     PUSH32(esp, 0x361B2F70u); /* 0x3600295E: push 0x361b2f70 */
   8945     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600298D; /* 0x36002963: je 0x3600298d */
   8946 L_36002965:
   8947     esi = MEM32(0x3616F118); /* 0x36002965: mov esi, dword ptr [0x3616f118] */
   8948     PUSH32(esp, ecx); /* 0x3600296B: push ecx */
   8949     PUSH32(esp, 0x361B2F6Cu); /* 0x3600296C: push 0x361b2f6c */
   8950     PUSH32(esp, eax); /* 0x36002971: push eax */
   8951     eax = MEM32(0x3616F114); /* 0x36002972: mov eax, dword ptr [0x3616f114] */
   8952     PUSH32(esp, 0x361B2F4Cu); /* 0x36002977: push 0x361b2f4c */
   8953     PUSH32(esp, eax); /* 0x3600297C: push eax */
   8954     RECOMP_ICALL(esi); /* 0x3600297D: call esi */
   8955     RECOMP_FLAGS_IN();
   8956     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8958     esp = esp + 8; /* 0x3600297F: add esp, 8 */
   8959     _flag_k = FK_ADD;
   8960     ecx = eax; /* 0x36002982: mov ecx, eax */
   8961     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002984: call dword ptr [0x3616f110] */
   8962     RECOMP_FLAGS_IN();
   8963     PUSH32(esp, eax); /* 0x3600298A: push eax */
   8964     goto L_360029A0; /* 0x3600298B: jmp 0x360029a0 */
   8965 L_3600298D:
   8966     ecx = MEM32(0x3616F114); /* 0x3600298D: mov ecx, dword ptr [0x3616f114] */
   8967     esi = MEM32(0x3616F118); /* 0x36002993: mov esi, dword ptr [0x3616f118] */
   8968     PUSH32(esp, eax); /* 0x36002999: push eax */
   8969     PUSH32(esp, 0x361B2F30u); /* 0x3600299A: push 0x361b2f30 */
   8970     PUSH32(esp, ecx); /* 0x3600299F: push ecx */
   8971 L_360029A0:
   8972     RECOMP_ICALL(esi); /* 0x360029A0: call esi */
   8973     RECOMP_FLAGS_IN();
   8974     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8975     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8976     esp = esp + 8; /* 0x360029A2: add esp, 8 */
   8977     _flag_k = FK_ADD;
   8978     ecx = eax; /* 0x360029A5: mov ecx, eax */
   8979     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x360029A7: call dword ptr [0x3616f110] */
   8980     RECOMP_FLAGS_IN();
   8981     PUSH32(esp, eax); /* 0x360029AD: push eax */
   8982     RECOMP_ICALL(esi); /* 0x360029AE: call esi */
   8983     RECOMP_FLAGS_IN();
   8984     eax = MEM32(0x363033CC); /* 0x360029B0: mov eax, dword ptr [0x363033cc] */
   8985     ecx = MEM32(0x363033D0); /* 0x360029B5: mov ecx, dword ptr [0x363033d0] */
   8986     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8987     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8988     esp = esp + 8; /* 0x360029BB: add esp, 8 */
   8989     _flag_k = FK_ADD;
   8990     /* cmp eax, ecx */ /* 0x360029BE: cmp eax, ecx */
   8991     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   8992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8993     _flag_k = FK_CMP;
   8994     PUSH32(esp, 0x361B2F70u); /* 0x360029C0: push 0x361b2f70 */
   8995     if (CMP_EQ(_flag_a, _flag_b)) goto L_360029E9; /* 0x360029C5: je 0x360029e9 */
   8996 L_360029C7:
   8997     edx = MEM32(0x3616F114); /* 0x360029C7: mov edx, dword ptr [0x3616f114] */
   8998     PUSH32(esp, ecx); /* 0x360029CD: push ecx */
   8999     PUSH32(esp, 0x361B2F6Cu); /* 0x360029CE: push 0x361b2f6c */
   9000     PUSH32(esp, eax); /* 0x360029D3: push eax */
   9001     PUSH32(esp, 0x361B2F08u); /* 0x360029D4: push 0x361b2f08 */
   9002     PUSH32(esp, edx); /* 0x360029D9: push edx */
   9003     RECOMP_ICALL(esi); /* 0x360029DA: call esi */
   9004     RECOMP_FLAGS_IN();
   9005     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9007     esp = esp + 8; /* 0x360029DC: add esp, 8 */
   9008     _flag_k = FK_ADD;
   9009     ecx = eax; /* 0x360029DF: mov ecx, eax */
   9010     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x360029E1: call dword ptr [0x3616f110] */
   9011     RECOMP_FLAGS_IN();
   9012     goto L_360029F4; /* 0x360029E7: jmp 0x360029f4 */
   9013 L_360029E9:
   9014     PUSH32(esp, eax); /* 0x360029E9: push eax */
   9015     eax = MEM32(0x3616F114); /* 0x360029EA: mov eax, dword ptr [0x3616f114] */
   9016     PUSH32(esp, 0x361B2EE8u); /* 0x360029EF: push 0x361b2ee8 */
   9017 L_360029F4:
   9018     PUSH32(esp, eax); /* 0x360029F4: push eax */
   9019     RECOMP_ICALL(esi); /* 0x360029F5: call esi */
   9020     RECOMP_FLAGS_IN();
   9021     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9022     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9023     esp = esp + 8; /* 0x360029F7: add esp, 8 */
   9024     _flag_k = FK_ADD;
   9025     ecx = eax; /* 0x360029FA: mov ecx, eax */
   9026     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x360029FC: call dword ptr [0x3616f110] */
   9027     RECOMP_FLAGS_IN();
   9028     PUSH32(esp, eax); /* 0x36002A02: push eax */
   9029     RECOMP_ICALL(esi); /* 0x36002A03: call esi */
   9030     RECOMP_FLAGS_IN();
   9031     eax = MEM32(0x363033D4); /* 0x36002A05: mov eax, dword ptr [0x363033d4] */
   9032     ecx = MEM32(0x363033D8); /* 0x36002A0A: mov ecx, dword ptr [0x363033d8] */
   9033     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9034     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9035     esp = esp + 8; /* 0x36002A10: add esp, 8 */
   9036     _flag_k = FK_ADD;
   9037     /* cmp eax, ecx */ /* 0x36002A13: cmp eax, ecx */
   9038     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9040     _flag_k = FK_CMP;
   9041     PUSH32(esp, 0x361B2F70u); /* 0x36002A15: push 0x361b2f70 */
   9042     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002A3F; /* 0x36002A1A: je 0x36002a3f */
   9043 L_36002A1C:
   9044     PUSH32(esp, ecx); /* 0x36002A1C: push ecx */
   9045     ecx = MEM32(0x3616F114); /* 0x36002A1D: mov ecx, dword ptr [0x3616f114] */
   9046     PUSH32(esp, 0x361B2F6Cu); /* 0x36002A23: push 0x361b2f6c */
   9047     PUSH32(esp, eax); /* 0x36002A28: push eax */
   9048     PUSH32(esp, 0x361B2EB8u); /* 0x36002A29: push 0x361b2eb8 */
   9049     PUSH32(esp, ecx); /* 0x36002A2E: push ecx */
   9050     RECOMP_ICALL(esi); /* 0x36002A2F: call esi */
   9051     RECOMP_FLAGS_IN();
   9052     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9053     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9054     esp = esp + 8; /* 0x36002A31: add esp, 8 */
   9055     _flag_k = FK_ADD;
   9056     ecx = eax; /* 0x36002A34: mov ecx, eax */
   9057     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002A36: call dword ptr [0x3616f110] */
   9058     RECOMP_FLAGS_IN();
   9059     PUSH32(esp, eax); /* 0x36002A3C: push eax */
   9060     goto L_36002A4C; /* 0x36002A3D: jmp 0x36002a4c */
   9061 L_36002A3F:
   9062     edx = MEM32(0x3616F114); /* 0x36002A3F: mov edx, dword ptr [0x3616f114] */
   9063     PUSH32(esp, eax); /* 0x36002A45: push eax */
   9064     PUSH32(esp, 0x361B2EE8u); /* 0x36002A46: push 0x361b2ee8 */
   9065     PUSH32(esp, edx); /* 0x36002A4B: push edx */
   9066 L_36002A4C:
   9067     RECOMP_ICALL(esi); /* 0x36002A4C: call esi */
   9068     RECOMP_FLAGS_IN();
   9069     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9070     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9071     esp = esp + 8; /* 0x36002A4E: add esp, 8 */
   9072     _flag_k = FK_ADD;
   9073     ecx = eax; /* 0x36002A51: mov ecx, eax */
   9074     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002A53: call dword ptr [0x3616f110] */
   9075     RECOMP_FLAGS_IN();
   9076     PUSH32(esp, eax); /* 0x36002A59: push eax */
   9077     RECOMP_ICALL(esi); /* 0x36002A5A: call esi */
   9078     RECOMP_FLAGS_IN();
   9079     eax = MEM32(0x363071F0); /* 0x36002A5C: mov eax, dword ptr [0x363071f0] */
   9080     ecx = MEM32(0x363071F4); /* 0x36002A61: mov ecx, dword ptr [0x363071f4] */
   9081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9082     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9083     esp = esp + 8; /* 0x36002A67: add esp, 8 */
   9084     _flag_k = FK_ADD;
   9085     /* cmp eax, ecx */ /* 0x36002A6A: cmp eax, ecx */
   9086     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9088     _flag_k = FK_CMP;
   9089     PUSH32(esp, 0x361B2F70u); /* 0x36002A6C: push 0x361b2f70 */
   9090     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002A95; /* 0x36002A71: je 0x36002a95 */
   9091 L_36002A73:
   9092     PUSH32(esp, ecx); /* 0x36002A73: push ecx */
   9093     PUSH32(esp, 0x361B2F6Cu); /* 0x36002A74: push 0x361b2f6c */
   9094     PUSH32(esp, eax); /* 0x36002A79: push eax */
   9095     eax = MEM32(0x3616F114); /* 0x36002A7A: mov eax, dword ptr [0x3616f114] */
   9096     PUSH32(esp, 0x361B2E94u); /* 0x36002A7F: push 0x361b2e94 */
   9097     PUSH32(esp, eax); /* 0x36002A84: push eax */
   9098     RECOMP_ICALL(esi); /* 0x36002A85: call esi */
   9099     RECOMP_FLAGS_IN();
   9100     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9101     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9102     esp = esp + 8; /* 0x36002A87: add esp, 8 */
   9103     _flag_k = FK_ADD;
   9104     ecx = eax; /* 0x36002A8A: mov ecx, eax */
   9105     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002A8C: call dword ptr [0x3616f110] */
   9106     RECOMP_FLAGS_IN();
   9107     PUSH32(esp, eax); /* 0x36002A92: push eax */
   9108     goto L_36002AA2; /* 0x36002A93: jmp 0x36002aa2 */
   9109 L_36002A95:
   9110     ecx = MEM32(0x3616F114); /* 0x36002A95: mov ecx, dword ptr [0x3616f114] */
   9111     PUSH32(esp, eax); /* 0x36002A9B: push eax */
   9112     PUSH32(esp, 0x361B2E74u); /* 0x36002A9C: push 0x361b2e74 */
   9113     PUSH32(esp, ecx); /* 0x36002AA1: push ecx */
   9114 L_36002AA2:
   9115     RECOMP_ICALL(esi); /* 0x36002AA2: call esi */
   9116     RECOMP_FLAGS_IN();
   9117     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9118     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9119     esp = esp + 8; /* 0x36002AA4: add esp, 8 */
   9120     _flag_k = FK_ADD;
   9121     ecx = eax; /* 0x36002AA7: mov ecx, eax */
   9122     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002AA9: call dword ptr [0x3616f110] */
   9123     RECOMP_FLAGS_IN();
   9124     PUSH32(esp, eax); /* 0x36002AAF: push eax */
   9125     RECOMP_ICALL(esi); /* 0x36002AB0: call esi */
   9126     RECOMP_FLAGS_IN();
   9127     eax = MEM32(0x36307128); /* 0x36002AB2: mov eax, dword ptr [0x36307128] */
   9128     ecx = MEM32(0x3630712C); /* 0x36002AB7: mov ecx, dword ptr [0x3630712c] */
   9129     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9130     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9131     esp = esp + 8; /* 0x36002ABD: add esp, 8 */
   9132     _flag_k = FK_ADD;
   9133     /* cmp eax, ecx */ /* 0x36002AC0: cmp eax, ecx */
   9134     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9136     _flag_k = FK_CMP;
   9137     PUSH32(esp, 0x361B2F70u); /* 0x36002AC2: push 0x361b2f70 */
   9138     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002AEB; /* 0x36002AC7: je 0x36002aeb */
   9139 L_36002AC9:
   9140     edx = MEM32(0x3616F114); /* 0x36002AC9: mov edx, dword ptr [0x3616f114] */
   9141     PUSH32(esp, ecx); /* 0x36002ACF: push ecx */
   9142     PUSH32(esp, 0x361B2F6Cu); /* 0x36002AD0: push 0x361b2f6c */
   9143     PUSH32(esp, eax); /* 0x36002AD5: push eax */
   9144     PUSH32(esp, 0x361B2E44u); /* 0x36002AD6: push 0x361b2e44 */
   9145     PUSH32(esp, edx); /* 0x36002ADB: push edx */
   9146     RECOMP_ICALL(esi); /* 0x36002ADC: call esi */
   9147     RECOMP_FLAGS_IN();
   9148     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9149     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9150     esp = esp + 8; /* 0x36002ADE: add esp, 8 */
   9151     _flag_k = FK_ADD;
   9152     ecx = eax; /* 0x36002AE1: mov ecx, eax */
   9153     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002AE3: call dword ptr [0x3616f110] */
   9154     RECOMP_FLAGS_IN();
   9155     goto L_36002AF6; /* 0x36002AE9: jmp 0x36002af6 */
   9156 L_36002AEB:
   9157     PUSH32(esp, eax); /* 0x36002AEB: push eax */
   9158     eax = MEM32(0x3616F114); /* 0x36002AEC: mov eax, dword ptr [0x3616f114] */
   9159     PUSH32(esp, 0x361B2E1Cu); /* 0x36002AF1: push 0x361b2e1c */
   9160 L_36002AF6:
   9161     PUSH32(esp, eax); /* 0x36002AF6: push eax */
   9162     RECOMP_ICALL(esi); /* 0x36002AF7: call esi */
   9163     RECOMP_FLAGS_IN();
   9164     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9165     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9166     esp = esp + 8; /* 0x36002AF9: add esp, 8 */
   9167     _flag_k = FK_ADD;
   9168     ecx = eax; /* 0x36002AFC: mov ecx, eax */
   9169     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002AFE: call dword ptr [0x3616f110] */
   9170     RECOMP_FLAGS_IN();
   9171     PUSH32(esp, eax); /* 0x36002B04: push eax */
   9172     RECOMP_ICALL(esi); /* 0x36002B05: call esi */
   9173     RECOMP_FLAGS_IN();
   9174     eax = MEM32(0x36306B14); /* 0x36002B07: mov eax, dword ptr [0x36306b14] */
   9175     ecx = MEM32(0x36306B18); /* 0x36002B0C: mov ecx, dword ptr [0x36306b18] */
   9176     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9177     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9178     esp = esp + 8; /* 0x36002B12: add esp, 8 */
   9179     _flag_k = FK_ADD;
   9180     /* cmp eax, ecx */ /* 0x36002B15: cmp eax, ecx */
   9181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9183     _flag_k = FK_CMP;
   9184     PUSH32(esp, 0x361B2F70u); /* 0x36002B17: push 0x361b2f70 */
   9185     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002B41; /* 0x36002B1C: je 0x36002b41 */
   9186 L_36002B1E:
   9187     PUSH32(esp, ecx); /* 0x36002B1E: push ecx */
   9188     ecx = MEM32(0x3616F114); /* 0x36002B1F: mov ecx, dword ptr [0x3616f114] */
   9189     PUSH32(esp, 0x361B2F6Cu); /* 0x36002B25: push 0x361b2f6c */
   9190     PUSH32(esp, eax); /* 0x36002B2A: push eax */
   9191     PUSH32(esp, 0x361B2DFCu); /* 0x36002B2B: push 0x361b2dfc */
   9192     PUSH32(esp, ecx); /* 0x36002B30: push ecx */
   9193     RECOMP_ICALL(esi); /* 0x36002B31: call esi */
   9194     RECOMP_FLAGS_IN();
   9195     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9196     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9197     esp = esp + 8; /* 0x36002B33: add esp, 8 */
   9198     _flag_k = FK_ADD;
   9199     ecx = eax; /* 0x36002B36: mov ecx, eax */
   9200     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002B38: call dword ptr [0x3616f110] */
   9201     RECOMP_FLAGS_IN();
   9202     PUSH32(esp, eax); /* 0x36002B3E: push eax */
   9203     goto L_36002B4E; /* 0x36002B3F: jmp 0x36002b4e */
   9204 L_36002B41:
   9205     edx = MEM32(0x3616F114); /* 0x36002B41: mov edx, dword ptr [0x3616f114] */
   9206     PUSH32(esp, eax); /* 0x36002B47: push eax */
   9207     PUSH32(esp, 0x361B2DE0u); /* 0x36002B48: push 0x361b2de0 */
   9208     PUSH32(esp, edx); /* 0x36002B4D: push edx */
   9209 L_36002B4E:
   9210     RECOMP_ICALL(esi); /* 0x36002B4E: call esi */
   9211     RECOMP_FLAGS_IN();
   9212     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9213     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9214     esp = esp + 8; /* 0x36002B50: add esp, 8 */
   9215     _flag_k = FK_ADD;
   9216     ecx = eax; /* 0x36002B53: mov ecx, eax */
   9217     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002B55: call dword ptr [0x3616f110] */
   9218     RECOMP_FLAGS_IN();
   9219     PUSH32(esp, eax); /* 0x36002B5B: push eax */
   9220     RECOMP_ICALL(esi); /* 0x36002B5C: call esi */
   9221     RECOMP_FLAGS_IN();
   9222     eax = MEM32(0x36306D54); /* 0x36002B5E: mov eax, dword ptr [0x36306d54] */
   9223     ecx = MEM32(0x36306D58); /* 0x36002B63: mov ecx, dword ptr [0x36306d58] */
   9224     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9225     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9226     esp = esp + 8; /* 0x36002B69: add esp, 8 */
   9227     _flag_k = FK_ADD;
   9228     /* cmp eax, ecx */ /* 0x36002B6C: cmp eax, ecx */
   9229     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9231     _flag_k = FK_CMP;
   9232     PUSH32(esp, 0x361B2F70u); /* 0x36002B6E: push 0x361b2f70 */
   9233     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002B97; /* 0x36002B73: je 0x36002b97 */
   9234 L_36002B75:
   9235     PUSH32(esp, ecx); /* 0x36002B75: push ecx */
   9236     PUSH32(esp, 0x361B2F6Cu); /* 0x36002B76: push 0x361b2f6c */
   9237     PUSH32(esp, eax); /* 0x36002B7B: push eax */
   9238     eax = MEM32(0x3616F114); /* 0x36002B7C: mov eax, dword ptr [0x3616f114] */
   9239     PUSH32(esp, 0x361B2DBCu); /* 0x36002B81: push 0x361b2dbc */
   9240     PUSH32(esp, eax); /* 0x36002B86: push eax */
   9241     RECOMP_ICALL(esi); /* 0x36002B87: call esi */
   9242     RECOMP_FLAGS_IN();
   9243     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9244     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9245     esp = esp + 8; /* 0x36002B89: add esp, 8 */
   9246     _flag_k = FK_ADD;
   9247     ecx = eax; /* 0x36002B8C: mov ecx, eax */
   9248     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002B8E: call dword ptr [0x3616f110] */
   9249     RECOMP_FLAGS_IN();
   9250     PUSH32(esp, eax); /* 0x36002B94: push eax */
   9251     goto L_36002BA4; /* 0x36002B95: jmp 0x36002ba4 */
   9252 L_36002B97:
   9253     ecx = MEM32(0x3616F114); /* 0x36002B97: mov ecx, dword ptr [0x3616f114] */
   9254     PUSH32(esp, eax); /* 0x36002B9D: push eax */
   9255     PUSH32(esp, 0x361B2D9Cu); /* 0x36002B9E: push 0x361b2d9c */
   9256     PUSH32(esp, ecx); /* 0x36002BA3: push ecx */
   9257 L_36002BA4:
   9258     RECOMP_ICALL(esi); /* 0x36002BA4: call esi */
   9259     RECOMP_FLAGS_IN();
   9260     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9261     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9262     esp = esp + 8; /* 0x36002BA6: add esp, 8 */
   9263     _flag_k = FK_ADD;
   9264     ecx = eax; /* 0x36002BA9: mov ecx, eax */
   9265     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002BAB: call dword ptr [0x3616f110] */
   9266     RECOMP_FLAGS_IN();
   9267     PUSH32(esp, eax); /* 0x36002BB1: push eax */
   9268     RECOMP_ICALL(esi); /* 0x36002BB2: call esi */
   9269     RECOMP_FLAGS_IN();
   9270     eax = MEM32(0x363033C0); /* 0x36002BB4: mov eax, dword ptr [0x363033c0] */
   9271     ecx = MEM32(0x363033C4); /* 0x36002BB9: mov ecx, dword ptr [0x363033c4] */
   9272     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9274     esp = esp + 8; /* 0x36002BBF: add esp, 8 */
   9275     _flag_k = FK_ADD;
   9276     /* cmp eax, ecx */ /* 0x36002BC2: cmp eax, ecx */
   9277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9279     _flag_k = FK_CMP;
   9280     PUSH32(esp, 0x361B2F70u); /* 0x36002BC4: push 0x361b2f70 */
   9281     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002BED; /* 0x36002BC9: je 0x36002bed */
   9282 L_36002BCB:
   9283     edx = MEM32(0x3616F114); /* 0x36002BCB: mov edx, dword ptr [0x3616f114] */
   9284     PUSH32(esp, ecx); /* 0x36002BD1: push ecx */
   9285     PUSH32(esp, 0x361B2F6Cu); /* 0x36002BD2: push 0x361b2f6c */
   9286     PUSH32(esp, eax); /* 0x36002BD7: push eax */
   9287     PUSH32(esp, 0x361B2D78u); /* 0x36002BD8: push 0x361b2d78 */
   9288     PUSH32(esp, edx); /* 0x36002BDD: push edx */
   9289     RECOMP_ICALL(esi); /* 0x36002BDE: call esi */
   9290     RECOMP_FLAGS_IN();
   9291     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9292     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9293     esp = esp + 8; /* 0x36002BE0: add esp, 8 */
   9294     _flag_k = FK_ADD;
   9295     ecx = eax; /* 0x36002BE3: mov ecx, eax */
   9296     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002BE5: call dword ptr [0x3616f110] */
   9297     RECOMP_FLAGS_IN();
   9298     goto L_36002BF8; /* 0x36002BEB: jmp 0x36002bf8 */
   9299 L_36002BED:
   9300     PUSH32(esp, eax); /* 0x36002BED: push eax */
   9301     eax = MEM32(0x3616F114); /* 0x36002BEE: mov eax, dword ptr [0x3616f114] */
   9302     PUSH32(esp, 0x361B2D58u); /* 0x36002BF3: push 0x361b2d58 */
   9303 L_36002BF8:
   9304     PUSH32(esp, eax); /* 0x36002BF8: push eax */
   9305     RECOMP_ICALL(esi); /* 0x36002BF9: call esi */
   9306     RECOMP_FLAGS_IN();
   9307     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9309     esp = esp + 8; /* 0x36002BFB: add esp, 8 */
   9310     _flag_k = FK_ADD;
   9311     ecx = eax; /* 0x36002BFE: mov ecx, eax */
   9312     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36002C00: call dword ptr [0x3616f110] */
   9313     RECOMP_FLAGS_IN();
   9314     PUSH32(esp, eax); /* 0x36002C06: push eax */
   9315     RECOMP_ICALL(esi); /* 0x36002C07: call esi */
   9316     RECOMP_FLAGS_IN();
   9317     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9319     esp = esp + 8; /* 0x36002C09: add esp, 8 */
   9320     _flag_k = FK_ADD;
   9321     esi = POP32_VAL(esp); /* 0x36002C0C: pop esi */
   9322     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36002C0D: ret  */
   9323     RECOMP_REGS_OUT();
   9324 }
   9325 
   9326 void sub_36002C10(void) {
   9327     int _fpu_cmp = 0;
   9328     uint32_t _cf = 0;
   9329     int _df = 1;
   9330     uint32_t _flag_k = FK_NONE;
   9331     uint32_t _flag_a = 0, _flag_b = 0;
   9332     uint32_t _itail_tgt = 0;
   9333     RECOMP_REGS_LOCALS
   9334     RECOMP_ENTER(0x36002C10u);
   9335 
   9336 L_36002C10:
   9337     PUSH32(esp, ebp); /* 0x36002C10: push ebp */
   9338     ebp = esp; /* 0x36002C11: mov ebp, esp */
   9339     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   9340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9341     esp = esp - 0x20u; /* 0x36002C13: sub esp, 0x20 */
   9342     _flag_k = FK_CMP;
   9343     eax = MEM32(ebp + 0x8); /* 0x36002C16: mov eax, dword ptr [ebp + 8] */
   9344     PUSH32(esp, eax); /* 0x36002C19: push eax */
   9345     RECOMP_ICALL(0x360020C0u); /* 0x36002C1A: call 0x360020c0 */ /* not lifted */
   9346     RECOMP_FLAGS_IN();
   9347     /* test eax, eax */ /* 0x36002C1F: test eax, eax */
   9348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9349     _cf = 0;
   9350     _flag_k = FK_TEST;
   9351     MEM32(ebp + 0x8) = eax; /* 0x36002C21: mov dword ptr [ebp + 8], eax */
   9352     if (TEST_Z(_flag_a, _flag_b)) goto L_36002C94; /* 0x36002C24: je 0x36002c94 */
   9353 L_36002C26:
   9354     PUSH32(esp, ebx); /* 0x36002C26: push ebx */
   9355     PUSH32(esp, esi); /* 0x36002C27: push esi */
   9356     PUSH32(esp, edi); /* 0x36002C28: push edi */
   9357     ecx = ebp + (-0x10); /* 0x36002C29: lea ecx, [ebp - 0x10] */
   9358     PUSH32(esp, ecx); /* 0x36002C2C: push ecx */
   9359     ecx = eax; /* 0x36002C2D: mov ecx, eax */
   9360     RECOMP_ICALL(0x360C02D0u); /* 0x36002C2F: call 0x360c02d0 */ /* not lifted */
   9361     RECOMP_FLAGS_IN();
   9362     edx = MEM32(eax); /* 0x36002C34: mov edx, dword ptr [eax] */
   9363     ebx = MEM32(eax + 0x4); /* 0x36002C36: mov ebx, dword ptr [eax + 4] */
   9364     esi = MEM32(eax + 0x8); /* 0x36002C39: mov esi, dword ptr [eax + 8] */
   9365     edi = MEM32(eax + 0xC); /* 0x36002C3C: mov edi, dword ptr [eax + 0xc] */
   9366     ecx = MEM32(ebp + 0x8); /* 0x36002C3F: mov ecx, dword ptr [ebp + 8] */
   9367     eax = ebp + (-0x10); /* 0x36002C42: lea eax, [ebp - 0x10] */
   9368     PUSH32(esp, eax); /* 0x36002C45: push eax */
   9369     MEM32(ebp + (-0x20)) = edx; /* 0x36002C46: mov dword ptr [ebp - 0x20], edx */
   9370     RECOMP_ICALL(0x360C0300u); /* 0x36002C49: call 0x360c0300 */ /* not lifted */
   9371     RECOMP_FLAGS_IN();
   9372     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36002C4E: cmp esi, dword ptr [eax + 8] */
   9373     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   9374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9375     _flag_k = FK_CMP;
   9376     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002C89; /* 0x36002C51: je 0x36002c89 */
   9377 L_36002C53:
   9378     ecx = MEM32(esi); /* 0x36002C53: mov ecx, dword ptr [esi] */
   9379     RECOMP_ICALL(0x360B7D60u); /* 0x36002C55: call 0x360b7d60 */ /* not lifted */
   9380     RECOMP_FLAGS_IN();
   9381     /* cmp esi, ebx */ /* 0x36002C5A: cmp esi, ebx */
   9382     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   9383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9384     _flag_k = FK_CMP;
   9385     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002C78; /* 0x36002C5C: je 0x36002c78 */
   9386 L_36002C5E:
   9387     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   9388     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9389     esi = esi + 4; /* 0x36002C5E: add esi, 4 */
   9390     _flag_k = FK_ADD;
   9391     /* cmp esi, ebx */ /* 0x36002C61: cmp esi, ebx */
   9392     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   9393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9394     _flag_k = FK_CMP;
   9395     if (CMP_NE(_flag_a, _flag_b)) goto L_36002C78; /* 0x36002C63: jne 0x36002c78 */
   9396 L_36002C65:
   9397     eax = MEM32(edi + 0x4); /* 0x36002C65: mov eax, dword ptr [edi + 4] */
   9398     /* test eax, eax */ /* 0x36002C68: test eax, eax */
   9399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9400     _cf = 0;
   9401     _flag_k = FK_TEST;
   9402     if (TEST_Z(_flag_a, _flag_b)) goto L_36002C78; /* 0x36002C6A: je 0x36002c78 */
   9403 L_36002C6C:
   9404     esi = MEM32(edi + 0x4); /* 0x36002C6C: mov esi, dword ptr [edi + 4] */
   9405     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   9406     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9407     edi = edi + 4; /* 0x36002C6F: add edi, 4 */
   9408     _flag_k = FK_ADD;
   9409     ebx = esi + 0x1000; /* 0x36002C72: lea ebx, [esi + 0x1000] */
   9410 L_36002C78:
   9411     ecx = ebp + (-0x10); /* 0x36002C78: lea ecx, [ebp - 0x10] */
   9412     PUSH32(esp, ecx); /* 0x36002C7B: push ecx */
   9413     ecx = MEM32(ebp + 0x8); /* 0x36002C7C: mov ecx, dword ptr [ebp + 8] */
   9414     RECOMP_ICALL(0x360C0300u); /* 0x36002C7F: call 0x360c0300 */ /* not lifted */
   9415     RECOMP_FLAGS_IN();
   9416     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36002C84: cmp esi, dword ptr [eax + 8] */
   9417     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   9418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9419     _flag_k = FK_CMP;
   9420     RECOMP_BACKEDGE();
   9421     if (CMP_NE(_flag_a, _flag_b)) goto L_36002C53; /* 0x36002C87: jne 0x36002c53 */
   9422 L_36002C89:
   9423     ecx = MEM32(ebp + 0x8); /* 0x36002C89: mov ecx, dword ptr [ebp + 8] */
   9424     RECOMP_ICALL(0x360C0330u); /* 0x36002C8C: call 0x360c0330 */ /* not lifted */
   9425     RECOMP_FLAGS_IN();
   9426     edi = POP32_VAL(esp); /* 0x36002C91: pop edi */
   9427     esi = POP32_VAL(esp); /* 0x36002C92: pop esi */
   9428     ebx = POP32_VAL(esp); /* 0x36002C93: pop ebx */
   9429 L_36002C94:
   9430     esp = ebp; /* 0x36002C94: mov esp, ebp */
   9431     ebp = POP32_VAL(esp); /* 0x36002C96: pop ebp */
   9432     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002C97: ret 4 */
   9433     RECOMP_REGS_OUT();
   9434 }
   9435 
   9436 void sub_36002CA0(void) {
   9437     int _fpu_cmp = 0;
   9438     uint32_t _cf = 0;
   9439     int _df = 1;
   9440     uint32_t _flag_k = FK_NONE;
   9441     uint32_t _flag_a = 0, _flag_b = 0;
   9442     uint32_t _itail_tgt = 0;
   9443     RECOMP_REGS_LOCALS
   9444     RECOMP_ENTER(0x36002CA0u);
   9445 
   9446 L_36002CA0:
   9447     PUSH32(esp, ebp); /* 0x36002CA0: push ebp */
   9448     ebp = esp; /* 0x36002CA1: mov ebp, esp */
   9449     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u);
   9450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9451     esp = esp - 0x68u; /* 0x36002CA3: sub esp, 0x68 */
   9452     _flag_k = FK_CMP;
   9453     PUSH32(esp, ebx); /* 0x36002CA6: push ebx */
   9454     PUSH32(esp, esi); /* 0x36002CA7: push esi */
   9455     PUSH32(esp, edi); /* 0x36002CA8: push edi */
   9456     edi = MEM32(ebp + 0x8); /* 0x36002CA9: mov edi, dword ptr [ebp + 8] */
   9457     /* test edi, edi */ /* 0x36002CAC: test edi, edi */
   9458     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9459     _cf = 0;
   9460     _flag_k = FK_TEST;
   9461     if (TEST_Z(_flag_a, _flag_b)) goto L_36002DF7; /* 0x36002CAE: je 0x36002df7 */
   9462 L_36002CB4:
   9463     PUSH32(esp, 9); /* 0x36002CB4: push 9 */
   9464     RECOMP_ICALL(0x360020C0u); /* 0x36002CB6: call 0x360020c0 */ /* not lifted */
   9465     RECOMP_FLAGS_IN();
   9466     MEM32(ebp + (-0x4)) = eax; /* 0x36002CBB: mov dword ptr [ebp - 4], eax */
   9467     eax = ebp + (-0x48); /* 0x36002CBE: lea eax, [ebp - 0x48] */
   9468     PUSH32(esp, eax); /* 0x36002CC1: push eax */
   9469     ecx = edi; /* 0x36002CC2: mov ecx, edi */
   9470     RECOMP_ICALL(0x360C02D0u); /* 0x36002CC4: call 0x360c02d0 */ /* not lifted */
   9471     RECOMP_FLAGS_IN();
   9472     ecx = MEM32(eax); /* 0x36002CC9: mov ecx, dword ptr [eax] */
   9473     edx = MEM32(eax + 0x4); /* 0x36002CCB: mov edx, dword ptr [eax + 4] */
   9474     esi = MEM32(eax + 0x8); /* 0x36002CCE: mov esi, dword ptr [eax + 8] */
   9475     eax = MEM32(eax + 0xC); /* 0x36002CD1: mov eax, dword ptr [eax + 0xc] */
   9476     MEM32(ebp + (-0x18)) = ecx; /* 0x36002CD4: mov dword ptr [ebp - 0x18], ecx */
   9477     ecx = ebp + (-0x48); /* 0x36002CD7: lea ecx, [ebp - 0x48] */
   9478     PUSH32(esp, ecx); /* 0x36002CDA: push ecx */
   9479     ecx = edi; /* 0x36002CDB: mov ecx, edi */
   9480     MEM32(ebp + (-0x14)) = edx; /* 0x36002CDD: mov dword ptr [ebp - 0x14], edx */
   9481     MEM32(ebp + (-0x10)) = esi; /* 0x36002CE0: mov dword ptr [ebp - 0x10], esi */
   9482     MEM32(ebp + (-0xC)) = eax; /* 0x36002CE3: mov dword ptr [ebp - 0xc], eax */
   9483     RECOMP_ICALL(0x360C0300u); /* 0x36002CE6: call 0x360c0300 */ /* not lifted */
   9484     RECOMP_FLAGS_IN();
   9485     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36002CEB: cmp esi, dword ptr [eax + 8] */
   9486     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   9487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9488     _flag_k = FK_CMP;
   9489     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002DF7; /* 0x36002CEE: je 0x36002df7 */
   9490 L_36002CF4:
   9491     edx = MEM32(esi); /* 0x36002CF4: mov edx, dword ptr [esi] */
   9492     ecx = MEM32(ebp + (-0x4)); /* 0x36002CF6: mov ecx, dword ptr [ebp - 4] */
   9493     eax = ebp + (-0x58); /* 0x36002CF9: lea eax, [ebp - 0x58] */
   9494     PUSH32(esp, eax); /* 0x36002CFC: push eax */
   9495     MEM32(ebp + (-0x8)) = edx; /* 0x36002CFD: mov dword ptr [ebp - 8], edx */
   9496     RECOMP_ICALL(0x360C02D0u); /* 0x36002D00: call 0x360c02d0 */ /* not lifted */
   9497     RECOMP_FLAGS_IN();
   9498     ebx = MEM32(eax); /* 0x36002D05: mov ebx, dword ptr [eax] */
   9499     ecx = MEM32(eax + 0x4); /* 0x36002D07: mov ecx, dword ptr [eax + 4] */
   9500     esi = MEM32(eax + 0x8); /* 0x36002D0A: mov esi, dword ptr [eax + 8] */
   9501     edi = MEM32(eax + 0xC); /* 0x36002D0D: mov edi, dword ptr [eax + 0xc] */
   9502     edx = ebp + (-0x38); /* 0x36002D10: lea edx, [ebp - 0x38] */
   9503     MEM32(ebp + (-0x24)) = ecx; /* 0x36002D13: mov dword ptr [ebp - 0x24], ecx */
   9504     ecx = MEM32(ebp + (-0x4)); /* 0x36002D16: mov ecx, dword ptr [ebp - 4] */
   9505     PUSH32(esp, edx); /* 0x36002D19: push edx */
   9506     RECOMP_ICALL(0x360C0300u); /* 0x36002D1A: call 0x360c0300 */ /* not lifted */
   9507     RECOMP_FLAGS_IN();
   9508     ecx = eax; /* 0x36002D1F: mov ecx, eax */
   9509     edx = MEM32(ecx + 0x8); /* 0x36002D21: mov edx, dword ptr [ecx + 8] */
   9510     eax = esi; /* 0x36002D24: mov eax, esi */
   9511     /* cmp eax, edx */ /* 0x36002D26: cmp eax, edx */
   9512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   9513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9514     _flag_k = FK_CMP;
   9515     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002DAE; /* 0x36002D28: je 0x36002dae */
   9516 L_36002D2E:
   9517     eax = MEM32(eax); /* 0x36002D2E: mov eax, dword ptr [eax] */
   9518     edx = MEM32(eax + 0x4); /* 0x36002D30: mov edx, dword ptr [eax + 4] */
   9519     ecx = MEM32(ebp + (-0x8)); /* 0x36002D33: mov ecx, dword ptr [ebp - 8] */
   9520     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x36002D36: cmp edx, dword ptr [ecx + 4] */
   9521     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   9522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9523     _flag_k = FK_CMP;
   9524     if (CMP_NE(_flag_a, _flag_b)) goto L_36002D71; /* 0x36002D39: jne 0x36002d71 */
   9525 L_36002D3B:
   9526     ecx = eax; /* 0x36002D3B: mov ecx, eax */
   9527     RECOMP_ICALL(0x360B7D60u); /* 0x36002D3D: call 0x360b7d60 */ /* not lifted */
   9528     RECOMP_FLAGS_IN();
   9529     eax = MEM32(ebp + (-0x24)); /* 0x36002D42: mov eax, dword ptr [ebp - 0x24] */
   9530     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9531     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9532     esp = esp - 0x10u; /* 0x36002D45: sub esp, 0x10 */
   9533     _flag_k = FK_CMP;
   9534     edx = esp; /* 0x36002D48: mov edx, esp */
   9535     MEM32(edx) = ebx; /* 0x36002D4A: mov dword ptr [edx], ebx */
   9536     MEM32(edx + 0x4) = eax; /* 0x36002D4C: mov dword ptr [edx + 4], eax */
   9537     ecx = ebp + (-0x68); /* 0x36002D4F: lea ecx, [ebp - 0x68] */
   9538     MEM32(edx + 0x8) = esi; /* 0x36002D52: mov dword ptr [edx + 8], esi */
   9539     PUSH32(esp, ecx); /* 0x36002D55: push ecx */
   9540     ecx = MEM32(ebp + (-0x4)); /* 0x36002D56: mov ecx, dword ptr [ebp - 4] */
   9541     MEM32(edx + 0xC) = edi; /* 0x36002D59: mov dword ptr [edx + 0xc], edi */
   9542     RECOMP_ICALL(0x360C0910u); /* 0x36002D5C: call 0x360c0910 */ /* not lifted */
   9543     RECOMP_FLAGS_IN();
   9544     ebx = MEM32(eax); /* 0x36002D61: mov ebx, dword ptr [eax] */
   9545     edx = MEM32(eax + 0x4); /* 0x36002D63: mov edx, dword ptr [eax + 4] */
   9546     esi = MEM32(eax + 0x8); /* 0x36002D66: mov esi, dword ptr [eax + 8] */
   9547     edi = MEM32(eax + 0xC); /* 0x36002D69: mov edi, dword ptr [eax + 0xc] */
   9548     MEM32(ebp + (-0x24)) = edx; /* 0x36002D6C: mov dword ptr [ebp - 0x24], edx */
   9549     goto L_36002D97; /* 0x36002D6F: jmp 0x36002d97 */
   9550 L_36002D71:
   9551     eax = MEM32(ebp + (-0x24)); /* 0x36002D71: mov eax, dword ptr [ebp - 0x24] */
   9552     /* cmp esi, eax */ /* 0x36002D74: cmp esi, eax */
   9553     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9554     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9555     _flag_k = FK_CMP;
   9556     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002D97; /* 0x36002D76: je 0x36002d97 */
   9557 L_36002D78:
   9558     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   9559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9560     esi = esi + 4; /* 0x36002D78: add esi, 4 */
   9561     _flag_k = FK_ADD;
   9562     /* cmp esi, eax */ /* 0x36002D7B: cmp esi, eax */
   9563     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9565     _flag_k = FK_CMP;
   9566     if (CMP_NE(_flag_a, _flag_b)) goto L_36002D97; /* 0x36002D7D: jne 0x36002d97 */
   9567 L_36002D7F:
   9568     eax = MEM32(edi + 0x4); /* 0x36002D7F: mov eax, dword ptr [edi + 4] */
   9569     /* test eax, eax */ /* 0x36002D82: test eax, eax */
   9570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9571     _cf = 0;
   9572     _flag_k = FK_TEST;
   9573     if (TEST_Z(_flag_a, _flag_b)) goto L_36002D97; /* 0x36002D84: je 0x36002d97 */
   9574 L_36002D86:
   9575     ebx = MEM32(edi + 0x4); /* 0x36002D86: mov ebx, dword ptr [edi + 4] */
   9576     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   9577     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9578     edi = edi + 4; /* 0x36002D89: add edi, 4 */
   9579     _flag_k = FK_ADD;
   9580     eax = ebx + 0x1000; /* 0x36002D8C: lea eax, [ebx + 0x1000] */
   9581     MEM32(ebp + (-0x24)) = eax; /* 0x36002D92: mov dword ptr [ebp - 0x24], eax */
   9582     esi = ebx; /* 0x36002D95: mov esi, ebx */
   9583 L_36002D97:
   9584     ecx = ebp + (-0x38); /* 0x36002D97: lea ecx, [ebp - 0x38] */
   9585     PUSH32(esp, ecx); /* 0x36002D9A: push ecx */
   9586     ecx = MEM32(ebp + (-0x4)); /* 0x36002D9B: mov ecx, dword ptr [ebp - 4] */
   9587     RECOMP_ICALL(0x360C0300u); /* 0x36002D9E: call 0x360c0300 */ /* not lifted */
   9588     RECOMP_FLAGS_IN();
   9589     edx = eax; /* 0x36002DA3: mov edx, eax */
   9590     ecx = MEM32(edx + 0x8); /* 0x36002DA5: mov ecx, dword ptr [edx + 8] */
   9591     eax = esi; /* 0x36002DA8: mov eax, esi */
   9592     /* cmp eax, ecx */ /* 0x36002DAA: cmp eax, ecx */
   9593     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9595     _flag_k = FK_CMP;
   9596     RECOMP_BACKEDGE();
   9597     if (CMP_NE(_flag_a, _flag_b)) goto L_36002D2E; /* 0x36002DAC: jne 0x36002d2e */
   9598 L_36002DAE:
   9599     esi = MEM32(ebp + (-0x10)); /* 0x36002DAE: mov esi, dword ptr [ebp - 0x10] */
   9600     eax = MEM32(ebp + (-0x14)); /* 0x36002DB1: mov eax, dword ptr [ebp - 0x14] */
   9601     /* cmp esi, eax */ /* 0x36002DB4: cmp esi, eax */
   9602     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9603     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9604     _flag_k = FK_CMP;
   9605     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002DE2; /* 0x36002DB6: je 0x36002de2 */
   9606 L_36002DB8:
   9607     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   9608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9609     esi = esi + 4; /* 0x36002DB8: add esi, 4 */
   9610     _flag_k = FK_ADD;
   9611     /* cmp esi, eax */ /* 0x36002DBB: cmp esi, eax */
   9612     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   9613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9614     _flag_k = FK_CMP;
   9615     MEM32(ebp + (-0x10)) = esi; /* 0x36002DBD: mov dword ptr [ebp - 0x10], esi */
   9616     if (CMP_NE(_flag_a, _flag_b)) goto L_36002DE2; /* 0x36002DC0: jne 0x36002de2 */
   9617 L_36002DC2:
   9618     eax = MEM32(ebp + (-0xC)); /* 0x36002DC2: mov eax, dword ptr [ebp - 0xc] */
   9619     ecx = MEM32(eax + 0x4); /* 0x36002DC5: mov ecx, dword ptr [eax + 4] */
   9620     /* test ecx, ecx */ /* 0x36002DC8: test ecx, ecx */
   9621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9622     _cf = 0;
   9623     _flag_k = FK_TEST;
   9624     if (TEST_Z(_flag_a, _flag_b)) goto L_36002DE2; /* 0x36002DCA: je 0x36002de2 */
   9625 L_36002DCC:
   9626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   9627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9628     eax = eax + 4; /* 0x36002DCC: add eax, 4 */
   9629     _flag_k = FK_ADD;
   9630     MEM32(ebp + (-0xC)) = eax; /* 0x36002DCF: mov dword ptr [ebp - 0xc], eax */
   9631     eax = MEM32(eax); /* 0x36002DD2: mov eax, dword ptr [eax] */
   9632     ecx = eax + 0x1000; /* 0x36002DD4: lea ecx, [eax + 0x1000] */
   9633     MEM32(ebp + (-0x14)) = ecx; /* 0x36002DDA: mov dword ptr [ebp - 0x14], ecx */
   9634     MEM32(ebp + (-0x10)) = eax; /* 0x36002DDD: mov dword ptr [ebp - 0x10], eax */
   9635     esi = eax; /* 0x36002DE0: mov esi, eax */
   9636 L_36002DE2:
   9637     ecx = MEM32(ebp + 0x8); /* 0x36002DE2: mov ecx, dword ptr [ebp + 8] */
   9638     edx = ebp + (-0x48); /* 0x36002DE5: lea edx, [ebp - 0x48] */
   9639     PUSH32(esp, edx); /* 0x36002DE8: push edx */
   9640     RECOMP_ICALL(0x360C0300u); /* 0x36002DE9: call 0x360c0300 */ /* not lifted */
   9641     RECOMP_FLAGS_IN();
   9642     /* cmp esi, MEM32(eax + 0x8) */ /* 0x36002DEE: cmp esi, dword ptr [eax + 8] */
   9643     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   9644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9645     _flag_k = FK_CMP;
   9646     RECOMP_BACKEDGE();
   9647     if (CMP_NE(_flag_a, _flag_b)) goto L_36002CF4; /* 0x36002DF1: jne 0x36002cf4 */
   9648 L_36002DF7:
   9649     edi = POP32_VAL(esp); /* 0x36002DF7: pop edi */
   9650     esi = POP32_VAL(esp); /* 0x36002DF8: pop esi */
   9651     ebx = POP32_VAL(esp); /* 0x36002DF9: pop ebx */
   9652     esp = ebp; /* 0x36002DFA: mov esp, ebp */
   9653     ebp = POP32_VAL(esp); /* 0x36002DFC: pop ebp */
   9654     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36002DFD: ret 8 */
   9655     RECOMP_REGS_OUT();
   9656 }
   9657 
   9658 void sub_36002E00(void) {
   9659     int _fpu_cmp = 0;
   9660     uint32_t _cf = 0;
   9661     int _df = 1;
   9662     uint32_t _flag_k = FK_NONE;
   9663     uint32_t _flag_a = 0, _flag_b = 0;
   9664     uint32_t _itail_tgt = 0;
   9665     RECOMP_REGS_LOCALS
   9666     RECOMP_ENTER(0x36002E00u);
   9667 
   9668 L_36002E00:
   9669     PUSH32(esp, ebp); /* 0x36002E00: push ebp */
   9670     ebp = esp; /* 0x36002E01: mov ebp, esp */
   9671     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9673     esp = esp - 8; /* 0x36002E03: sub esp, 8 */
   9674     _flag_k = FK_CMP;
   9675     eax = MEM32(ebp + 0x8); /* 0x36002E06: mov eax, dword ptr [ebp + 8] */
   9676     edx = ebp + (-0x8); /* 0x36002E09: lea edx, [ebp - 8] */
   9677     /* cmp edx, eax */ /* 0x36002E0C: cmp edx, eax */
   9678     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   9679     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9680     _flag_k = FK_CMP;
   9681     if (CMP_EQ(_flag_a, _flag_b)) goto L_36002E1B; /* 0x36002E0E: je 0x36002e1b */
   9682 L_36002E10:
   9683     edx = MEM32(eax); /* 0x36002E10: mov edx, dword ptr [eax] */
   9684     eax = MEM32(eax + 0x4); /* 0x36002E12: mov eax, dword ptr [eax + 4] */
   9685     MEM32(ebp + (-0x8)) = edx; /* 0x36002E15: mov dword ptr [ebp - 8], edx */
   9686     MEM32(ebp + (-0x4)) = eax; /* 0x36002E18: mov dword ptr [ebp - 4], eax */
   9687 L_36002E1B:
   9688     edx = MEM32(ebp + 0x10); /* 0x36002E1B: mov edx, dword ptr [ebp + 0x10] */
   9689     eax = MEM32(ebp + 0xC); /* 0x36002E1E: mov eax, dword ptr [ebp + 0xc] */
   9690     PUSH32(esp, edx); /* 0x36002E21: push edx */
   9691     PUSH32(esp, eax); /* 0x36002E22: push eax */
   9692     edx = ebp + (-0x8); /* 0x36002E23: lea edx, [ebp - 8] */
   9693     PUSH32(esp, edx); /* 0x36002E26: push edx */
   9694     RECOMP_ICALL(0x3602ED90u); /* 0x36002E27: call 0x3602ed90 */ /* not lifted */
   9695     RECOMP_FLAGS_IN();
   9696     esp = ebp; /* 0x36002E2C: mov esp, ebp */
   9697     ebp = POP32_VAL(esp); /* 0x36002E2E: pop ebp */
   9698     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36002E2F: ret 0xc */
   9699     RECOMP_REGS_OUT();
   9700 }
   9701 
   9702 void sub_36002E40(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(0x36002E40u);
   9711 
   9712 L_36002E40:
   9713     PUSH32(esp, ebp); /* 0x36002E40: push ebp */
   9714     ebp = esp; /* 0x36002E41: mov ebp, esp */
   9715     eax = MEM32(ebp + 0x8); /* 0x36002E43: mov eax, dword ptr [ebp + 8] */
   9716     edx = MEM32(ecx + 0x4); /* 0x36002E46: mov edx, dword ptr [ecx + 4] */
   9717     eax = ~eax; /* 0x36002E49: not eax */
   9718     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   9719     edx = edx & eax; /* 0x36002E4B: and edx, eax */
   9720     _cf = 0;
   9721     _flag_k = FK_TEST;
   9722     MEM32(ecx + 0x4) = edx; /* 0x36002E4D: mov dword ptr [ecx + 4], edx */
   9723     ebp = POP32_VAL(esp); /* 0x36002E50: pop ebp */
   9724     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002E51: ret 4 */
   9725     RECOMP_REGS_OUT();
   9726 }
   9727 
   9728 void sub_36002E60(void) {
   9729     int _fpu_cmp = 0;
   9730     uint32_t _cf = 0;
   9731     int _df = 1;
   9732     uint32_t _flag_k = FK_NONE;
   9733     uint32_t _flag_a = 0, _flag_b = 0;
   9734     uint32_t _itail_tgt = 0;
   9735     RECOMP_REGS_LOCALS
   9736     RECOMP_ENTER(0x36002E60u);
   9737 
   9738 L_36002E60:
   9739     PUSH32(esp, ebp); /* 0x36002E60: push ebp */
   9740 L_36002E61:
   9741     ebp = esp; /* 0x36002E61: mov ebp, esp */
   9742 L_36002E63:
   9743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   9744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9745     esp = esp - 0xCu; /* 0x36002E63: sub esp, 0xc */
   9746     _flag_k = FK_CMP;
   9747 L_36002E66:
   9748     eax = MEM32(ebp + 0x8); /* 0x36002E66: mov eax, dword ptr [ebp + 8] */
   9749 L_36002E69:
   9750     PUSH32(esp, ebx); /* 0x36002E69: push ebx */
   9751 L_36002E6A:
   9752     ebx = eax + (-0x1); /* 0x36002E6A: lea ebx, [eax - 1] */
   9753 L_36002E6D:
   9754     /* test ebx, ebx */ /* 0x36002E6D: test ebx, ebx */
   9755     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   9756     _cf = 0;
   9757     _flag_k = FK_TEST;
   9758 L_36002E6F:
   9759     PUSH32(esp, esi); /* 0x36002E6F: push esi */
   9760 L_36002E70:
   9761     esi = ecx; /* 0x36002E70: mov esi, ecx */
   9762 L_36002E72:
   9763     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36002FAA; /* 0x36002E72: jl 0x36002faa */
   9764 L_36002E78:
   9765     /* cmp ebx, 0x15u */ /* 0x36002E78: cmp ebx, 0x15 */
   9766     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x15u);
   9767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9768     _flag_k = FK_CMP;
   9769 L_36002E7B:
   9770     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_G, _cf)) goto L_36002FAA; /* 0x36002E7B: jg 0x36002faa */
   9771 L_36002E81:
   9772     PUSH32(esp, edi); /* 0x36002E81: push edi */
   9773 L_36002E82:
   9774     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9775     edi = 0; /* 0x36002E82: xor edi, edi */
   9776     _cf = 0;
   9777     _flag_k = FK_TEST;
   9778 L_36002E84:
   9779     PUSH32(esp, edi); /* 0x36002E84: push edi */
   9780 L_36002E85:
   9781     PUSH32(esp, 0x361B2CF8u); /* 0x36002E85: push 0x361b2cf8 */
   9782 L_36002E8A:
   9783     PUSH32(esp, 0x361B2CA0u); /* 0x36002E8A: push 0x361b2ca0 */
   9784 L_36002E8F:
   9785     PUSH32(esp, edi); /* 0x36002E8F: push edi */
   9786 L_36002E90:
   9787     PUSH32(esp, esi); /* 0x36002E90: push esi */
   9788 L_36002E91:
   9789     RECOMP_ICALL(0x3615FD86u); /* 0x36002E91: call 0x3615fd86 */ /* not lifted */
   9790     RECOMP_FLAGS_IN();
   9791 L_36002E96:
   9792     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9793     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9794     esp = esp + 0x14u; /* 0x36002E96: add esp, 0x14 */
   9795     _flag_k = FK_ADD;
   9796 L_36002E99:
   9797     /* test eax, eax */ /* 0x36002E99: test eax, eax */
   9798     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9799     _cf = 0;
   9800     _flag_k = FK_TEST;
   9801 L_36002E9B:
   9802     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36002EBF; /* 0x36002E9B: je 0x36002ebf */
   9803 L_36002E9D:
   9804     ecx = MEM32(eax + 0x104); /* 0x36002E9D: mov ecx, dword ptr [eax + 0x104] */
   9805 L_36002EA3:
   9806     eax = MEM32(ebp + 0x8); /* 0x36002EA3: mov eax, dword ptr [ebp + 8] */
   9807 L_36002EA6:
   9808     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9809     eax = eax - 1; /* 0x36002EA6: dec eax */
   9810     _flag_k = FK_DEC;
   9811 L_36002EA7:
   9812     MEM32(ebp + (-0x4)) = ecx; /* 0x36002EA7: mov dword ptr [ebp - 4], ecx */
   9813 L_36002EAA:
   9814     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36002EF4; /* 0x36002EAA: je 0x36002ef4 */
   9815 L_36002EAC:
   9816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9817     eax = eax - 1; /* 0x36002EAC: dec eax */
   9818     _flag_k = FK_DEC;
   9819 L_36002EAD:
   9820     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36002F9F; /* 0x36002EAD: jne 0x36002f9f */
   9821 L_36002EB3:
   9822     ecx = esi; /* 0x36002EB3: mov ecx, esi */
   9823 L_36002EB5:
   9824     RECOMP_ICALL(0x36002750u); /* 0x36002EB5: call 0x36002750 */ /* not lifted */
   9825     RECOMP_FLAGS_IN();
   9826 L_36002EBA:
   9827     goto L_36002F6B; /* 0x36002EBA: jmp 0x36002f6b */
   9828 L_36002EBF:
   9829     PUSH32(esp, 0); /* 0x36002EBF: push 0 */
   9830 L_36002EC1:
   9831     PUSH32(esp, 0x361B2CD8u); /* 0x36002EC1: push 0x361b2cd8 */
   9832 L_36002EC6:
   9833     PUSH32(esp, 0x361B2CA0u); /* 0x36002EC6: push 0x361b2ca0 */
   9834 L_36002ECB:
   9835     PUSH32(esp, 0); /* 0x36002ECB: push 0 */
   9836 L_36002ECD:
   9837     PUSH32(esp, esi); /* 0x36002ECD: push esi */
   9838 L_36002ECE:
   9839     RECOMP_ICALL(0x3615FD86u); /* 0x36002ECE: call 0x3615fd86 */ /* not lifted */
   9840     RECOMP_FLAGS_IN();
   9841 L_36002ED3:
   9842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9844     esp = esp + 0x14u; /* 0x36002ED3: add esp, 0x14 */
   9845     _flag_k = FK_ADD;
   9846 L_36002ED6:
   9847     /* test eax, eax */ /* 0x36002ED6: test eax, eax */
   9848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9849     _cf = 0;
   9850     _flag_k = FK_TEST;
   9851 L_36002ED8:
   9852     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36002F9F; /* 0x36002ED8: je 0x36002f9f */
   9853 L_36002EDE:
   9854     /* cmp ebx, 3 */ /* 0x36002EDE: cmp ebx, 3 */
   9855     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(3);
   9856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9857     _flag_k = FK_CMP;
   9858 L_36002EE1:
   9859     edx = MEM32(eax + 0x78); /* 0x36002EE1: mov edx, dword ptr [eax + 0x78] */
   9860 L_36002EE4:
   9861     MEM32(ebp + (-0x4)) = edx; /* 0x36002EE4: mov dword ptr [ebp - 4], edx */
   9862 L_36002EE7:
   9863     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36002F9F; /* 0x36002EE7: ja 0x36002f9f */
   9864 L_36002EED:
   9865     { _itail_tgt = (uint32_t)(MEM32(ebx * 4 + 0x36002FB4)); goto _ljump; }
   9866 L_36002EF4:
   9867     edi = esi; /* 0x36002EF4: mov edi, esi */
   9868 L_36002EF6:
   9869     goto L_36002F6D; /* 0x36002EF6: jmp 0x36002f6d */
   9870 L_36002EF8:
   9871     SET_LO8(ecx, MEM8(eax + 0x1B4)); /* 0x36002EF8: mov cl, byte ptr [eax + 0x1b4] */
   9872 L_36002EFE:
   9873     /* test LO8(ecx), LO8(ecx) */ /* 0x36002EFE: test cl, cl */
   9874     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   9875     _cf = 0;
   9876     _flag_k = FK_NARROW(FK_TEST, 24);
   9877 L_36002F00:
   9878     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36002F0F; /* 0x36002F00: je 0x36002f0f */
   9879 L_36002F02:
   9880     ecx = eax + 0xE4; /* 0x36002F02: lea ecx, [eax + 0xe4] */
   9881 L_36002F08:
   9882     RECOMP_ICALL(0x360027B0u); /* 0x36002F08: call 0x360027b0 */ /* not lifted */
   9883     RECOMP_FLAGS_IN();
   9884 L_36002F0D:
   9885     goto L_36002F6B; /* 0x36002F0D: jmp 0x36002f6b */
   9886 L_36002F0F:
   9887     PUSH32(esp, 0); /* 0x36002F0F: push 0 */
   9888 L_36002F11:
   9889     PUSH32(esp, 0x361B2CA0u); /* 0x36002F11: push 0x361b2ca0 */
   9890 L_36002F16:
   9891     PUSH32(esp, 0x361B2CC0u); /* 0x36002F16: push 0x361b2cc0 */
   9892 L_36002F1B:
   9893     PUSH32(esp, 0); /* 0x36002F1B: push 0 */
   9894 L_36002F1D:
   9895     ecx = eax; /* 0x36002F1D: mov ecx, eax */
   9896 L_36002F1F:
   9897     RECOMP_ICALL(0x36072000u); /* 0x36002F1F: call 0x36072000 */ /* not lifted */
   9898     RECOMP_FLAGS_IN();
   9899 L_36002F24:
   9900     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u);
   9901     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9902     eax = eax + 0x70u; /* 0x36002F24: add eax, 0x70 */
   9903     _flag_k = FK_ADD;
   9904 L_36002F27:
   9905     goto L_36002F58; /* 0x36002F27: jmp 0x36002f58 */
   9906 L_36002F29:
   9907     eax = MEM32(esi); /* 0x36002F29: mov eax, dword ptr [esi] */
   9908 L_36002F2B:
   9909     PUSH32(esp, 2); /* 0x36002F2B: push 2 */
   9910 L_36002F2D:
   9911     PUSH32(esp, 0x52u); /* 0x36002F2D: push 0x52 */
   9912 L_36002F2F:
   9913     ecx = esi; /* 0x36002F2F: mov ecx, esi */
   9914 L_36002F31:
   9915     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36002F31: call dword ptr [eax + 4] */
   9916     RECOMP_FLAGS_IN();
   9917 L_36002F34:
   9918     edx = MEM32(esi); /* 0x36002F34: mov edx, dword ptr [esi] */
   9919 L_36002F36:
   9920     PUSH32(esp, 2); /* 0x36002F36: push 2 */
   9921 L_36002F38:
   9922     PUSH32(esp, 0x53u); /* 0x36002F38: push 0x53 */
   9923 L_36002F3A:
   9924     ecx = esi; /* 0x36002F3A: mov ecx, esi */
   9925 L_36002F3C:
   9926     edi = eax; /* 0x36002F3C: mov edi, eax */
   9927 L_36002F3E:
   9928     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36002F3E: call dword ptr [edx + 4] */
   9929     RECOMP_FLAGS_IN();
   9930 L_36002F41:
   9931     PUSH32(esp, 0); /* 0x36002F41: push 0 */
   9932 L_36002F43:
   9933     PUSH32(esp, 0x361B2CF8u); /* 0x36002F43: push 0x361b2cf8 */
   9934 L_36002F48:
   9935     PUSH32(esp, 0x361B2CC0u); /* 0x36002F48: push 0x361b2cc0 */
   9936 L_36002F4D:
   9937     MEM32(ebp + (-0x8)) = eax; /* 0x36002F4D: mov dword ptr [ebp - 8], eax */
   9938 L_36002F50:
   9939     MEM32(ebp + (-0xC)) = edi; /* 0x36002F50: mov dword ptr [ebp - 0xc], edi */
   9940 L_36002F53:
   9941     PUSH32(esp, 0); /* 0x36002F53: push 0 */
   9942 L_36002F55:
   9943     eax = ebp + (-0xC); /* 0x36002F55: lea eax, [ebp - 0xc] */
   9944 L_36002F58:
   9945     PUSH32(esp, eax); /* 0x36002F58: push eax */
   9946 L_36002F59:
   9947     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36002F59: call dword ptr [0x3616ff70] */
   9948     RECOMP_FLAGS_IN();
   9949 L_36002F5F:
   9950     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9952     esp = esp + 4; /* 0x36002F5F: add esp, 4 */
   9953     _flag_k = FK_ADD;
   9954 L_36002F62:
   9955     PUSH32(esp, eax); /* 0x36002F62: push eax */
   9956 L_36002F63:
   9957     RECOMP_ICALL(0x3615FD86u); /* 0x36002F63: call 0x3615fd86 */ /* not lifted */
   9958     RECOMP_FLAGS_IN();
   9959 L_36002F68:
   9960     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9961     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9962     esp = esp + 0x14u; /* 0x36002F68: add esp, 0x14 */
   9963     _flag_k = FK_ADD;
   9964 L_36002F6B:
   9965     edi = eax; /* 0x36002F6B: mov edi, eax */
   9966 L_36002F6D:
   9967     /* test edi, edi */ /* 0x36002F6D: test edi, edi */
   9968     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9969     _cf = 0;
   9970     _flag_k = FK_TEST;
   9971 L_36002F6F:
   9972     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36002F9F; /* 0x36002F6F: je 0x36002f9f */
   9973 L_36002F71:
   9974     PUSH32(esp, 0); /* 0x36002F71: push 0 */
   9975 L_36002F73:
   9976     PUSH32(esp, 0x361B2CC0u); /* 0x36002F73: push 0x361b2cc0 */
   9977 L_36002F78:
   9978     PUSH32(esp, 0x361B2CA0u); /* 0x36002F78: push 0x361b2ca0 */
   9979 L_36002F7D:
   9980     PUSH32(esp, 0); /* 0x36002F7D: push 0 */
   9981 L_36002F7F:
   9982     PUSH32(esp, edi); /* 0x36002F7F: push edi */
   9983 L_36002F80:
   9984     RECOMP_ICALL(0x3615FD86u); /* 0x36002F80: call 0x3615fd86 */ /* not lifted */
   9985     RECOMP_FLAGS_IN();
   9986 L_36002F85:
   9987     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9988     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9989     esp = esp + 0x14u; /* 0x36002F85: add esp, 0x14 */
   9990     _flag_k = FK_ADD;
   9991 L_36002F88:
   9992     /* test eax, eax */ /* 0x36002F88: test eax, eax */
   9993     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9994     _cf = 0;
   9995     _flag_k = FK_TEST;
   9996 L_36002F8A:
   9997     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36002F9D; /* 0x36002F8A: je 0x36002f9d */
   9998 L_36002F8C:
   9999     ecx = MEM32(ebp + (-0x4)); /* 0x36002F8C: mov ecx, dword ptr [ebp - 4] */
  10000 L_36002F8F:
  10001     /* cmp ecx, MEM32(eax + 0x78) */ /* 0x36002F8F: cmp ecx, dword ptr [eax + 0x78] */
  10002     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x78));
  10003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10004     _flag_k = FK_CMP;
  10005 L_36002F92:
  10006     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36002F9D; /* 0x36002F92: jne 0x36002f9d */
  10007 L_36002F94:
  10008     /* cmp MEM8(eax + 0x94), 1 */ /* 0x36002F94: cmp byte ptr [eax + 0x94], 1 */
  10009     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
  10010     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10011     _flag_k = FK_NARROW(FK_CMP, 24);
  10012 L_36002F9B:
  10013     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36002F9F; /* 0x36002F9B: jne 0x36002f9f */
  10014 L_36002F9D:
  10015     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10016     edi = 0; /* 0x36002F9D: xor edi, edi */
  10017     _cf = 0;
  10018     _flag_k = FK_TEST;
  10019 L_36002F9F:
  10020     eax = edi; /* 0x36002F9F: mov eax, edi */
  10021 L_36002FA1:
  10022     edi = POP32_VAL(esp); /* 0x36002FA1: pop edi */
  10023 L_36002FA2:
  10024     esi = POP32_VAL(esp); /* 0x36002FA2: pop esi */
  10025 L_36002FA3:
  10026     ebx = POP32_VAL(esp); /* 0x36002FA3: pop ebx */
  10027 L_36002FA4:
  10028     esp = ebp; /* 0x36002FA4: mov esp, ebp */
  10029 L_36002FA6:
  10030     ebp = POP32_VAL(esp); /* 0x36002FA6: pop ebp */
  10031 L_36002FA7:
  10032     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002FA7: ret 4 */
  10033 L_36002FAA:
  10034     esi = POP32_VAL(esp); /* 0x36002FAA: pop esi */
  10035 L_36002FAB:
  10036     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10037     eax = 0; /* 0x36002FAB: xor eax, eax */
  10038     _cf = 0;
  10039     _flag_k = FK_TEST;
  10040 L_36002FAD:
  10041     ebx = POP32_VAL(esp); /* 0x36002FAD: pop ebx */
  10042 L_36002FAE:
  10043     esp = ebp; /* 0x36002FAE: mov esp, ebp */
  10044 L_36002FB0:
  10045     ebp = POP32_VAL(esp); /* 0x36002FB0: pop ebp */
  10046 L_36002FB1:
  10047     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002FB1: ret 4 */
  10048   _ljump:
  10049     switch (_itail_tgt) {
  10050       case 0x36002E60u: goto L_36002E60;
  10051       case 0x36002E61u: goto L_36002E61;
  10052       case 0x36002E63u: goto L_36002E63;
  10053       case 0x36002E66u: goto L_36002E66;
  10054       case 0x36002E69u: goto L_36002E69;
  10055       case 0x36002E6Au: goto L_36002E6A;
  10056       case 0x36002E6Du: goto L_36002E6D;
  10057       case 0x36002E6Fu: goto L_36002E6F;
  10058       case 0x36002E70u: goto L_36002E70;
  10059       case 0x36002E72u: goto L_36002E72;
  10060       case 0x36002E78u: goto L_36002E78;
  10061       case 0x36002E7Bu: goto L_36002E7B;
  10062       case 0x36002E81u: goto L_36002E81;
  10063       case 0x36002E82u: goto L_36002E82;
  10064       case 0x36002E84u: goto L_36002E84;
  10065       case 0x36002E85u: goto L_36002E85;
  10066       case 0x36002E8Au: goto L_36002E8A;
  10067       case 0x36002E8Fu: goto L_36002E8F;
  10068       case 0x36002E90u: goto L_36002E90;
  10069       case 0x36002E91u: goto L_36002E91;
  10070       case 0x36002E96u: goto L_36002E96;
  10071       case 0x36002E99u: goto L_36002E99;
  10072       case 0x36002E9Bu: goto L_36002E9B;
  10073       case 0x36002E9Du: goto L_36002E9D;
  10074       case 0x36002EA3u: goto L_36002EA3;
  10075       case 0x36002EA6u: goto L_36002EA6;
  10076       case 0x36002EA7u: goto L_36002EA7;
  10077       case 0x36002EAAu: goto L_36002EAA;
  10078       case 0x36002EACu: goto L_36002EAC;
  10079       case 0x36002EADu: goto L_36002EAD;
  10080       case 0x36002EB3u: goto L_36002EB3;
  10081       case 0x36002EB5u: goto L_36002EB5;
  10082       case 0x36002EBAu: goto L_36002EBA;
  10083       case 0x36002EBFu: goto L_36002EBF;
  10084       case 0x36002EC1u: goto L_36002EC1;
  10085       case 0x36002EC6u: goto L_36002EC6;
  10086       case 0x36002ECBu: goto L_36002ECB;
  10087       case 0x36002ECDu: goto L_36002ECD;
  10088       case 0x36002ECEu: goto L_36002ECE;
  10089       case 0x36002ED3u: goto L_36002ED3;
  10090       case 0x36002ED6u: goto L_36002ED6;
  10091       case 0x36002ED8u: goto L_36002ED8;
  10092       case 0x36002EDEu: goto L_36002EDE;
  10093       case 0x36002EE1u: goto L_36002EE1;
  10094       case 0x36002EE4u: goto L_36002EE4;
  10095       case 0x36002EE7u: goto L_36002EE7;
  10096       case 0x36002EEDu: goto L_36002EED;
  10097       case 0x36002EF4u: goto L_36002EF4;
  10098       case 0x36002EF6u: goto L_36002EF6;
  10099       case 0x36002EF8u: goto L_36002EF8;
  10100       case 0x36002EFEu: goto L_36002EFE;
  10101       case 0x36002F00u: goto L_36002F00;
  10102       case 0x36002F02u: goto L_36002F02;
  10103       case 0x36002F08u: goto L_36002F08;
  10104       case 0x36002F0Du: goto L_36002F0D;
  10105       case 0x36002F0Fu: goto L_36002F0F;
  10106       case 0x36002F11u: goto L_36002F11;
  10107       case 0x36002F16u: goto L_36002F16;
  10108       case 0x36002F1Bu: goto L_36002F1B;
  10109       case 0x36002F1Du: goto L_36002F1D;
  10110       case 0x36002F1Fu: goto L_36002F1F;
  10111       case 0x36002F24u: goto L_36002F24;
  10112       case 0x36002F27u: goto L_36002F27;
  10113       case 0x36002F29u: goto L_36002F29;
  10114       case 0x36002F2Bu: goto L_36002F2B;
  10115       case 0x36002F2Du: goto L_36002F2D;
  10116       case 0x36002F2Fu: goto L_36002F2F;
  10117       case 0x36002F31u: goto L_36002F31;
  10118       case 0x36002F34u: goto L_36002F34;
  10119       case 0x36002F36u: goto L_36002F36;
  10120       case 0x36002F38u: goto L_36002F38;
  10121       case 0x36002F3Au: goto L_36002F3A;
  10122       case 0x36002F3Cu: goto L_36002F3C;
  10123       case 0x36002F3Eu: goto L_36002F3E;
  10124       case 0x36002F41u: goto L_36002F41;
  10125       case 0x36002F43u: goto L_36002F43;
  10126       case 0x36002F48u: goto L_36002F48;
  10127       case 0x36002F4Du: goto L_36002F4D;
  10128       case 0x36002F50u: goto L_36002F50;
  10129       case 0x36002F53u: goto L_36002F53;
  10130       case 0x36002F55u: goto L_36002F55;
  10131       case 0x36002F58u: goto L_36002F58;
  10132       case 0x36002F59u: goto L_36002F59;
  10133       case 0x36002F5Fu: goto L_36002F5F;
  10134       case 0x36002F62u: goto L_36002F62;
  10135       case 0x36002F63u: goto L_36002F63;
  10136       case 0x36002F68u: goto L_36002F68;
  10137       case 0x36002F6Bu: goto L_36002F6B;
  10138       case 0x36002F6Du: goto L_36002F6D;
  10139       case 0x36002F6Fu: goto L_36002F6F;
  10140       case 0x36002F71u: goto L_36002F71;
  10141       case 0x36002F73u: goto L_36002F73;
  10142       case 0x36002F78u: goto L_36002F78;
  10143       case 0x36002F7Du: goto L_36002F7D;
  10144       case 0x36002F7Fu: goto L_36002F7F;
  10145       case 0x36002F80u: goto L_36002F80;
  10146       case 0x36002F85u: goto L_36002F85;
  10147       case 0x36002F88u: goto L_36002F88;
  10148       case 0x36002F8Au: goto L_36002F8A;
  10149       case 0x36002F8Cu: goto L_36002F8C;
  10150       case 0x36002F8Fu: goto L_36002F8F;
  10151       case 0x36002F92u: goto L_36002F92;
  10152       case 0x36002F94u: goto L_36002F94;
  10153       case 0x36002F9Bu: goto L_36002F9B;
  10154       case 0x36002F9Du: goto L_36002F9D;
  10155       case 0x36002F9Fu: goto L_36002F9F;
  10156       case 0x36002FA1u: goto L_36002FA1;
  10157       case 0x36002FA2u: goto L_36002FA2;
  10158       case 0x36002FA3u: goto L_36002FA3;
  10159       case 0x36002FA4u: goto L_36002FA4;
  10160       case 0x36002FA6u: goto L_36002FA6;
  10161       case 0x36002FA7u: goto L_36002FA7;
  10162       case 0x36002FAAu: goto L_36002FAA;
  10163       case 0x36002FABu: goto L_36002FAB;
  10164       case 0x36002FADu: goto L_36002FAD;
  10165       case 0x36002FAEu: goto L_36002FAE;
  10166       case 0x36002FB0u: goto L_36002FB0;
  10167       case 0x36002FB1u: goto L_36002FB1;
  10168       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  10169     }
  10170     RECOMP_REGS_OUT();
  10171 }
  10172 
  10173 void sub_36002F6B(void) {
  10174     int _fpu_cmp = 0;
  10175     uint32_t _cf = 0;
  10176     int _df = 1;
  10177     uint32_t _flag_k = FK_NONE;
  10178     uint32_t _flag_a = 0, _flag_b = 0;
  10179     uint32_t _itail_tgt = 0;
  10180     RECOMP_REGS_LOCALS
  10181     RECOMP_ENTER(0x36002F6Bu);
  10182 
  10183 L_36002F6B:
  10184     edi = eax; /* 0x36002F6B: mov edi, eax */
  10185     /* test edi, edi */ /* 0x36002F6D: test edi, edi */
  10186     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10187     _cf = 0;
  10188     _flag_k = FK_TEST;
  10189     if (TEST_Z(_flag_a, _flag_b)) goto L_36002F9F; /* 0x36002F6F: je 0x36002f9f */
  10190 L_36002F71:
  10191     PUSH32(esp, 0); /* 0x36002F71: push 0 */
  10192     PUSH32(esp, 0x361B2CC0u); /* 0x36002F73: push 0x361b2cc0 */
  10193     PUSH32(esp, 0x361B2CA0u); /* 0x36002F78: push 0x361b2ca0 */
  10194     PUSH32(esp, 0); /* 0x36002F7D: push 0 */
  10195     PUSH32(esp, edi); /* 0x36002F7F: push edi */
  10196     RECOMP_ICALL(0x3615FD86u); /* 0x36002F80: call 0x3615fd86 */ /* not lifted */
  10197     RECOMP_FLAGS_IN();
  10198     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10200     esp = esp + 0x14u; /* 0x36002F85: add esp, 0x14 */
  10201     _flag_k = FK_ADD;
  10202     /* test eax, eax */ /* 0x36002F88: test eax, eax */
  10203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10204     _cf = 0;
  10205     _flag_k = FK_TEST;
  10206     if (TEST_Z(_flag_a, _flag_b)) goto L_36002F9D; /* 0x36002F8A: je 0x36002f9d */
  10207 L_36002F8C:
  10208     ecx = MEM32(ebp + (-0x4)); /* 0x36002F8C: mov ecx, dword ptr [ebp - 4] */
  10209     /* cmp ecx, MEM32(eax + 0x78) */ /* 0x36002F8F: cmp ecx, dword ptr [eax + 0x78] */
  10210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x78));
  10211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10212     _flag_k = FK_CMP;
  10213     if (CMP_NE(_flag_a, _flag_b)) goto L_36002F9D; /* 0x36002F92: jne 0x36002f9d */
  10214 L_36002F94:
  10215     /* cmp MEM8(eax + 0x94), 1 */ /* 0x36002F94: cmp byte ptr [eax + 0x94], 1 */
  10216     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
  10217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10218     _flag_k = FK_NARROW(FK_CMP, 24);
  10219     if (CMP_NE(_flag_a, _flag_b)) goto L_36002F9F; /* 0x36002F9B: jne 0x36002f9f */
  10220 L_36002F9D:
  10221     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10222     edi = 0; /* 0x36002F9D: xor edi, edi */
  10223     _cf = 0;
  10224     _flag_k = FK_TEST;
  10225 L_36002F9F:
  10226     eax = edi; /* 0x36002F9F: mov eax, edi */
  10227     edi = POP32_VAL(esp); /* 0x36002FA1: pop edi */
  10228     esi = POP32_VAL(esp); /* 0x36002FA2: pop esi */
  10229     ebx = POP32_VAL(esp); /* 0x36002FA3: pop ebx */
  10230     esp = ebp; /* 0x36002FA4: mov esp, ebp */
  10231     ebp = POP32_VAL(esp); /* 0x36002FA6: pop ebp */
  10232     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002FA7: ret 4 */
  10233     RECOMP_REGS_OUT();
  10234 }
  10235 
  10236 void sub_36002FD0(void) {
  10237     int _fpu_cmp = 0;
  10238     uint32_t _cf = 0;
  10239     int _df = 1;
  10240     uint32_t _flag_k = FK_NONE;
  10241     uint32_t _flag_a = 0, _flag_b = 0;
  10242     uint32_t _itail_tgt = 0;
  10243     RECOMP_REGS_LOCALS
  10244     RECOMP_ENTER(0x36002FD0u);
  10245 
  10246 L_36002FD0:
  10247     PUSH32(esp, ebp); /* 0x36002FD0: push ebp */
  10248     ebp = esp; /* 0x36002FD1: mov ebp, esp */
  10249     eax = MEM32(ebp + 0x8); /* 0x36002FD3: mov eax, dword ptr [ebp + 8] */
  10250     PUSH32(esp, esi); /* 0x36002FD6: push esi */
  10251     esi = ecx; /* 0x36002FD7: mov esi, ecx */
  10252     PUSH32(esp, eax); /* 0x36002FD9: push eax */
  10253     RECOMP_ICALL(0x3602FE50u); /* 0x36002FDA: call 0x3602fe50 */ /* not lifted */
  10254     RECOMP_FLAGS_IN();
  10255     ecx = esi; /* 0x36002FDF: mov ecx, esi */
  10256     RECOMP_ICALL(0x36008320u); /* 0x36002FE1: call 0x36008320 */ /* not lifted */
  10257     RECOMP_FLAGS_IN();
  10258     eax = MEM32(eax + 0x4); /* 0x36002FE6: mov eax, dword ptr [eax + 4] */
  10259     ecx = MEM32(eax); /* 0x36002FE9: mov ecx, dword ptr [eax] */
  10260     MEM32(esi + 0x34) = ecx; /* 0x36002FEB: mov dword ptr [esi + 0x34], ecx */
  10261     esi = POP32_VAL(esp); /* 0x36002FEE: pop esi */
  10262     ebp = POP32_VAL(esp); /* 0x36002FEF: pop ebp */
  10263     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36002FF0: ret 4 */
  10264     RECOMP_REGS_OUT();
  10265 }
  10266 
  10267 void sub_36003000(void) {
  10268     int _fpu_cmp = 0;
  10269     uint32_t _cf = 0;
  10270     int _df = 1;
  10271     uint32_t _flag_k = FK_NONE;
  10272     uint32_t _flag_a = 0, _flag_b = 0;
  10273     uint32_t _itail_tgt = 0;
  10274     RECOMP_REGS_LOCALS
  10275     RECOMP_ENTER(0x36003000u);
  10276 
  10277 L_36003000:
  10278     PUSH32(esp, ebp); /* 0x36003000: push ebp */
  10279     ebp = esp; /* 0x36003001: mov ebp, esp */
  10280     eax = MEM32(ebp + 0x8); /* 0x36003003: mov eax, dword ptr [ebp + 8] */
  10281     /* cmp eax, 0x4B0u */ /* 0x36003006: cmp eax, 0x4b0 */
  10282     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4B0u);
  10283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10284     _flag_k = FK_CMP;
  10285     if (CMP_B(_flag_a, _flag_b)) goto L_36003016; /* 0x3600300B: jb 0x36003016 */
  10286 L_3600300D:
  10287     eax = 0x499602D2u; /* 0x3600300D: mov eax, 0x499602d2 */
  10288     ebp = POP32_VAL(esp); /* 0x36003012: pop ebp */
  10289     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36003013: ret 8 */
  10290 L_36003016:
  10291     ecx = MEM32(ecx + 0x4); /* 0x36003016: mov ecx, dword ptr [ecx + 4] */
  10292     edx = MEM32(ecx + 0x4); /* 0x36003019: mov edx, dword ptr [ecx + 4] */
  10293     eax = MEM32(edx + eax * 4); /* 0x3600301C: mov eax, dword ptr [edx + eax*4] */
  10294     ebp = POP32_VAL(esp); /* 0x3600301F: pop ebp */
  10295     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36003020: ret 8 */
  10296     RECOMP_REGS_OUT();
  10297 }
  10298 
  10299 void sub_36003030(void) {
  10300     int _fpu_cmp = 0;
  10301     uint32_t _cf = 0;
  10302     int _df = 1;
  10303     uint32_t _flag_k = FK_NONE;
  10304     uint32_t _flag_a = 0, _flag_b = 0;
  10305     uint32_t _itail_tgt = 0;
  10306     RECOMP_REGS_LOCALS
  10307     RECOMP_ENTER(0x36003030u);
  10308 
  10309 L_36003030:
  10310     PUSH32(esp, ebp); /* 0x36003030: push ebp */
  10311     ebp = esp; /* 0x36003031: mov ebp, esp */
  10312     edx = MEM32(ebp + 0x8); /* 0x36003033: mov edx, dword ptr [ebp + 8] */
  10313     /* cmp edx, 0x2BDu */ /* 0x36003036: cmp edx, 0x2bd */
  10314     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x2BDu);
  10315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10316     _flag_k = FK_CMP;
  10317     if (CMP_NE(_flag_a, _flag_b)) goto L_3600304F; /* 0x3600303C: jne 0x3600304f */
  10318 L_3600303E:
  10319     eax = MEM32(ebp + 0xC); /* 0x3600303E: mov eax, dword ptr [ebp + 0xc] */
  10320     /* cmp eax, 0x200u */ /* 0x36003041: cmp eax, 0x200 */
  10321     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x200u);
  10322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10323     _flag_k = FK_CMP;
  10324     if (CMP_LE(_flag_a, _flag_b)) goto L_3600305A; /* 0x36003046: jle 0x3600305a */
  10325 L_36003048:
  10326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1FFu);
  10327     eax = eax & 0x1FFu; /* 0x36003048: and eax, 0x1ff */
  10328     _cf = 0;
  10329     _flag_k = FK_TEST;
  10330     goto L_3600305A; /* 0x3600304D: jmp 0x3600305a */
  10331 L_3600304F:
  10332     /* cmp edx, 0x4B0u */ /* 0x3600304F: cmp edx, 0x4b0 */
  10333     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x4B0u);
  10334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10335     _flag_k = FK_CMP;
  10336     if (CMP_AE(_flag_a, _flag_b)) goto L_3600306A; /* 0x36003055: jae 0x3600306a */
  10337 L_36003057:
  10338     eax = MEM32(ebp + 0xC); /* 0x36003057: mov eax, dword ptr [ebp + 0xc] */
  10339 L_3600305A:
  10340     /* cmp eax, 0x499602D2u */ /* 0x3600305A: cmp eax, 0x499602d2 */
  10341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x499602D2u);
  10342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10343     _flag_k = FK_CMP;
  10344     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600306A; /* 0x3600305F: je 0x3600306a */
  10345 L_36003061:
  10346     ecx = MEM32(ecx + 0x4); /* 0x36003061: mov ecx, dword ptr [ecx + 4] */
  10347     ecx = MEM32(ecx + 0x4); /* 0x36003064: mov ecx, dword ptr [ecx + 4] */
  10348     MEM32(ecx + edx * 4) = eax; /* 0x36003067: mov dword ptr [ecx + edx*4], eax */
  10349 L_3600306A:
  10350     ebp = POP32_VAL(esp); /* 0x3600306A: pop ebp */
  10351     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3600306B: ret 8 */
  10352     RECOMP_REGS_OUT();
  10353 }
  10354 
  10355 void sub_36003070(void) {
  10356     int _fpu_cmp = 0;
  10357     uint32_t _cf = 0;
  10358     int _df = 1;
  10359     uint32_t _flag_k = FK_NONE;
  10360     uint32_t _flag_a = 0, _flag_b = 0;
  10361     uint32_t _itail_tgt = 0;
  10362     RECOMP_REGS_LOCALS
  10363     RECOMP_ENTER(0x36003070u);
  10364 
  10365 L_36003070:
  10366     PUSH32(esp, ebp); /* 0x36003070: push ebp */
  10367     ebp = esp; /* 0x36003071: mov ebp, esp */
  10368     edx = MEM32(ecx + 0x34); /* 0x36003073: mov edx, dword ptr [ecx + 0x34] */
  10369     eax = MEM32(ebp + 0x8); /* 0x36003076: mov eax, dword ptr [ebp + 8] */
  10370     _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax));
  10371     edx = edx | eax; /* 0x36003079: or edx, eax */
  10372     _cf = 0;
  10373     _flag_k = FK_TEST;
  10374     eax = edx; /* 0x3600307B: mov eax, edx */
  10375     PUSH32(esp, eax); /* 0x3600307D: push eax */
  10376     MEM32(ecx + 0x34) = edx; /* 0x3600307E: mov dword ptr [ecx + 0x34], edx */
  10377     edx = MEM32(ecx); /* 0x36003081: mov edx, dword ptr [ecx] */
  10378     PUSH32(esp, 0); /* 0x36003083: push 0 */
  10379     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36003085: call dword ptr [edx + 8] */
  10380     RECOMP_FLAGS_IN();
  10381     ebp = POP32_VAL(esp); /* 0x36003088: pop ebp */
  10382     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003089: ret 4 */
  10383     RECOMP_REGS_OUT();
  10384 }
  10385 
  10386 void sub_36003090(void) {
  10387     int _fpu_cmp = 0;
  10388     uint32_t _cf = 0;
  10389     int _df = 1;
  10390     uint32_t _flag_k = FK_NONE;
  10391     uint32_t _flag_a = 0, _flag_b = 0;
  10392     uint32_t _itail_tgt = 0;
  10393     RECOMP_REGS_LOCALS
  10394     RECOMP_ENTER(0x36003090u);
  10395 
  10396 L_36003090:
  10397     PUSH32(esp, ebp); /* 0x36003090: push ebp */
  10398     ebp = esp; /* 0x36003091: mov ebp, esp */
  10399     eax = MEM32(ecx + 0x34); /* 0x36003093: mov eax, dword ptr [ecx + 0x34] */
  10400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
  10401     eax = eax & MEM32(ebp + 0x8); /* 0x36003096: and eax, dword ptr [ebp + 8] */
  10402     _cf = 0;
  10403     _flag_k = FK_TEST;
  10404     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
  10405     _cf = (eax) != 0;
  10406     eax = (uint32_t)(-(int32_t)eax); /* 0x36003099: neg eax */
  10407     _flag_k = FK_CMP;
  10408     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3600309B: sbb eax, eax */
  10409       eax = _sc ? 0xFFFFFFFFu : 0;
  10410       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  10411       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  10412     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
  10413     _cf = (eax) != 0;
  10414     eax = (uint32_t)(-(int32_t)eax); /* 0x3600309D: neg eax */
  10415     _flag_k = FK_CMP;
  10416     ebp = POP32_VAL(esp); /* 0x3600309F: pop ebp */
  10417     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360030A0: ret 4 */
  10418     RECOMP_REGS_OUT();
  10419 }
  10420 
  10421 void sub_360030B0(void) {
  10422     int _fpu_cmp = 0;
  10423     uint32_t _cf = 0;
  10424     int _df = 1;
  10425     uint32_t _flag_k = FK_NONE;
  10426     uint32_t _flag_a = 0, _flag_b = 0;
  10427     uint32_t _itail_tgt = 0;
  10428     RECOMP_REGS_LOCALS
  10429     RECOMP_ENTER(0x360030B0u);
  10430 
  10431 L_360030B0:
  10432     PUSH32(esp, ebp); /* 0x360030B0: push ebp */
  10433     ebp = esp; /* 0x360030B1: mov ebp, esp */
  10434     edx = MEM32(ecx + 0x38); /* 0x360030B3: mov edx, dword ptr [ecx + 0x38] */
  10435     eax = MEM32(ebp + 0x8); /* 0x360030B6: mov eax, dword ptr [ebp + 8] */
  10436     _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax));
  10437     edx = edx | eax; /* 0x360030B9: or edx, eax */
  10438     _cf = 0;
  10439     _flag_k = FK_TEST;
  10440     MEM32(ecx + 0x38) = edx; /* 0x360030BB: mov dword ptr [ecx + 0x38], edx */
  10441     ebp = POP32_VAL(esp); /* 0x360030BE: pop ebp */
  10442     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360030BF: ret 4 */
  10443     RECOMP_REGS_OUT();
  10444 }
  10445 
  10446 void sub_360030D0(void) {
  10447     int _fpu_cmp = 0;
  10448     uint32_t _cf = 0;
  10449     int _df = 1;
  10450     uint32_t _flag_k = FK_NONE;
  10451     uint32_t _flag_a = 0, _flag_b = 0;
  10452     uint32_t _itail_tgt = 0;
  10453     RECOMP_REGS_LOCALS
  10454     RECOMP_ENTER(0x360030D0u);
  10455 
  10456 L_360030D0:
  10457     PUSH32(esp, ebp); /* 0x360030D0: push ebp */
  10458     ebp = esp; /* 0x360030D1: mov ebp, esp */
  10459     eax = MEM32(ebp + 0x8); /* 0x360030D3: mov eax, dword ptr [ebp + 8] */
  10460     edx = MEM32(eax); /* 0x360030D6: mov edx, dword ptr [eax] */
  10461     MEM32(ecx + 0x24) = edx; /* 0x360030D8: mov dword ptr [ecx + 0x24], edx */
  10462     eax = MEM32(eax + 0x4); /* 0x360030DB: mov eax, dword ptr [eax + 4] */
  10463     MEM32(ecx + 0x28) = eax; /* 0x360030DE: mov dword ptr [ecx + 0x28], eax */
  10464     ebp = POP32_VAL(esp); /* 0x360030E1: pop ebp */
  10465     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360030E2: ret 4 */
  10466     RECOMP_REGS_OUT();
  10467 }
  10468 
  10469 void sub_360030F0(void) {
  10470     int _fpu_cmp = 0;
  10471     uint32_t _cf = 0;
  10472     int _df = 1;
  10473     uint32_t _flag_k = FK_NONE;
  10474     uint32_t _flag_a = 0, _flag_b = 0;
  10475     uint32_t _itail_tgt = 0;
  10476     RECOMP_REGS_LOCALS
  10477     RECOMP_ENTER(0x360030F0u);
  10478 
  10479     goto L_360030F0;
  10480 L_36001FD0:
  10481     PUSH32(esp, ebp); /* 0x36001FD0: push ebp */
  10482     ebp = esp; /* 0x36001FD1: mov ebp, esp */
  10483     PUSH32(esp, esi); /* 0x36001FD3: push esi */
  10484     esi = ecx; /* 0x36001FD4: mov esi, ecx */
  10485     RECOMP_ICALL(0x36002000u); /* 0x36001FD6: call 0x36002000 */ /* not lifted */
  10486     RECOMP_FLAGS_IN();
  10487     /* test MEM8(ebp + 0x8), 1 */ /* 0x36001FDB: test byte ptr [ebp + 8], 1 */
  10488     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10489     _cf = 0;
  10490     _flag_k = FK_NARROW(FK_TEST, 24);
  10491     if (TEST_Z(_flag_a, _flag_b)) goto L_36001FEA; /* 0x36001FDF: je 0x36001fea */
  10492 L_36001FE1:
  10493     PUSH32(esp, esi); /* 0x36001FE1: push esi */
  10494     RECOMP_ICALL(0x3615FCC4u); /* 0x36001FE2: call 0x3615fcc4 */ /* not lifted */
  10495     RECOMP_FLAGS_IN();
  10496     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10497     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10498     esp = esp + 4; /* 0x36001FE7: add esp, 4 */
  10499     _flag_k = FK_ADD;
  10500 L_36001FEA:
  10501     eax = esi; /* 0x36001FEA: mov eax, esi */
  10502     esi = POP32_VAL(esp); /* 0x36001FEC: pop esi */
  10503     ebp = POP32_VAL(esp); /* 0x36001FED: pop ebp */
  10504     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36001FEE: ret 4 */
  10505 L_360030F0:
  10506     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
  10507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10508     ecx = ecx - 8; /* 0x360030F0: sub ecx, 8 */
  10509     _flag_k = FK_CMP;
  10510     RECOMP_BACKEDGE();
  10511     goto L_36001FD0; /* 0x360030F3: jmp 0x36001fd0 */
  10512     { RECOMP_REGS_OUT(); return; } /* end of function */
  10513     RECOMP_REGS_OUT();
  10514 }
  10515 
  10516 void sub_36003100(void) {
  10517     int _fpu_cmp = 0;
  10518     uint32_t _cf = 0;
  10519     int _df = 1;
  10520     uint32_t _flag_k = FK_NONE;
  10521     uint32_t _flag_a = 0, _flag_b = 0;
  10522     uint32_t _itail_tgt = 0;
  10523     RECOMP_REGS_LOCALS
  10524     RECOMP_ENTER(0x36003100u);
  10525 
  10526 L_36003100:
  10527     PUSH32(esp, ebp); /* 0x36003100: push ebp */
  10528     ebp = esp; /* 0x36003101: mov ebp, esp */
  10529     PUSH32(esp, ecx); /* 0x36003103: push ecx */
  10530     PUSH32(esp, ebx); /* 0x36003104: push ebx */
  10531     PUSH32(esp, esi); /* 0x36003105: push esi */
  10532     esi = MEM32(0x3616F118); /* 0x36003106: mov esi, dword ptr [0x3616f118] */
  10533     PUSH32(esp, edi); /* 0x3600310C: push edi */
  10534     ebx = 1; /* 0x3600310D: mov ebx, 1 */
  10535     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10536     edi = 0; /* 0x36003112: xor edi, edi */
  10537     _cf = 0;
  10538     _flag_k = FK_TEST;
  10539 L_36003114:
  10540     eax = MEM32(edi + 0x362EA51C); /* 0x36003114: mov eax, dword ptr [edi + 0x362ea51c] */
  10541     ecx = MEM32(edi + 0x362EA6AC); /* 0x3600311A: mov ecx, dword ptr [edi + 0x362ea6ac] */
  10542     /* cmp eax, ecx */ /* 0x36003120: cmp eax, ecx */
  10543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10545     _flag_k = FK_CMP;
  10546     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003168; /* 0x36003122: je 0x36003168 */
  10547 L_36003124:
  10548     edx = MEM32(edi + 0x362EA9CC); /* 0x36003124: mov edx, dword ptr [edi + 0x362ea9cc] */
  10549     PUSH32(esp, 0x361B2FECu); /* 0x3600312A: push 0x361b2fec */
  10550     PUSH32(esp, edx); /* 0x3600312F: push edx */
  10551     edx = MEM32(edi + 0x362EA83C); /* 0x36003130: mov edx, dword ptr [edi + 0x362ea83c] */
  10552     PUSH32(esp, 0x361B2FE4u); /* 0x36003136: push 0x361b2fe4 */
  10553     PUSH32(esp, edx); /* 0x3600313B: push edx */
  10554     PUSH32(esp, 0x361B2FD8u); /* 0x3600313C: push 0x361b2fd8 */
  10555     PUSH32(esp, ecx); /* 0x36003141: push ecx */
  10556     PUSH32(esp, 0x361B2FD0u); /* 0x36003142: push 0x361b2fd0 */
  10557     PUSH32(esp, eax); /* 0x36003147: push eax */
  10558     eax = MEM32(0x3616F114); /* 0x36003148: mov eax, dword ptr [0x3616f114] */
  10559     PUSH32(esp, 0x361B2FCCu); /* 0x3600314D: push 0x361b2fcc */
  10560     PUSH32(esp, ebx); /* 0x36003152: push ebx */
  10561     PUSH32(esp, 0x361B2FB0u); /* 0x36003153: push 0x361b2fb0 */
  10562     PUSH32(esp, eax); /* 0x36003158: push eax */
  10563     RECOMP_ICALL(esi); /* 0x36003159: call esi */
  10564     RECOMP_FLAGS_IN();
  10565     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10566     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10567     esp = esp + 8; /* 0x3600315B: add esp, 8 */
  10568     _flag_k = FK_ADD;
  10569     ecx = eax; /* 0x3600315E: mov ecx, eax */
  10570     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x36003160: call dword ptr [0x3616f110] */
  10571     RECOMP_FLAGS_IN();
  10572     goto L_3600319A; /* 0x36003166: jmp 0x3600319a */
  10573 L_36003168:
  10574     /* test eax, eax */ /* 0x36003168: test eax, eax */
  10575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10576     _cf = 0;
  10577     _flag_k = FK_TEST;
  10578     if (TEST_Z(_flag_a, _flag_b)) goto L_360031D8; /* 0x3600316A: je 0x360031d8 */
  10579 L_3600316C:
  10580     ecx = MEM32(edi + 0x362EA9CC); /* 0x3600316C: mov ecx, dword ptr [edi + 0x362ea9cc] */
  10581     edx = MEM32(edi + 0x362EA83C); /* 0x36003172: mov edx, dword ptr [edi + 0x362ea83c] */
  10582     PUSH32(esp, 0x361B2FECu); /* 0x36003178: push 0x361b2fec */
  10583     PUSH32(esp, ecx); /* 0x3600317D: push ecx */
  10584     PUSH32(esp, 0x361B2FE4u); /* 0x3600317E: push 0x361b2fe4 */
  10585     PUSH32(esp, edx); /* 0x36003183: push edx */
  10586     PUSH32(esp, 0x361B2FD8u); /* 0x36003184: push 0x361b2fd8 */
  10587     PUSH32(esp, eax); /* 0x36003189: push eax */
  10588     eax = MEM32(0x3616F114); /* 0x3600318A: mov eax, dword ptr [0x3616f114] */
  10589     PUSH32(esp, 0x361B2FCCu); /* 0x3600318F: push 0x361b2fcc */
  10590     PUSH32(esp, ebx); /* 0x36003194: push ebx */
  10591     PUSH32(esp, 0x361B2F9Cu); /* 0x36003195: push 0x361b2f9c */
  10592 L_3600319A:
  10593     PUSH32(esp, eax); /* 0x3600319A: push eax */
  10594     RECOMP_ICALL(esi); /* 0x3600319B: call esi */
  10595     RECOMP_FLAGS_IN();
  10596     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10598     esp = esp + 8; /* 0x3600319D: add esp, 8 */
  10599     _flag_k = FK_ADD;
  10600     ecx = eax; /* 0x360031A0: mov ecx, eax */
  10601     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x360031A2: call dword ptr [0x3616f110] */
  10602     RECOMP_FLAGS_IN();
  10603     PUSH32(esp, eax); /* 0x360031A8: push eax */
  10604     RECOMP_ICALL(esi); /* 0x360031A9: call esi */
  10605     RECOMP_FLAGS_IN();
  10606     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10607     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10608     esp = esp + 8; /* 0x360031AB: add esp, 8 */
  10609     _flag_k = FK_ADD;
  10610     ecx = eax; /* 0x360031AE: mov ecx, eax */
  10611     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x360031B0: call dword ptr [0x3616f110] */
  10612     RECOMP_FLAGS_IN();
  10613     PUSH32(esp, eax); /* 0x360031B6: push eax */
  10614     RECOMP_ICALL(esi); /* 0x360031B7: call esi */
  10615     RECOMP_FLAGS_IN();
  10616     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10617     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10618     esp = esp + 8; /* 0x360031B9: add esp, 8 */
  10619     _flag_k = FK_ADD;
  10620     ecx = eax; /* 0x360031BC: mov ecx, eax */
  10621     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x360031BE: call dword ptr [0x3616f110] */
  10622     RECOMP_FLAGS_IN();
  10623     PUSH32(esp, eax); /* 0x360031C4: push eax */
  10624     RECOMP_ICALL(esi); /* 0x360031C5: call esi */
  10625     RECOMP_FLAGS_IN();
  10626     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10628     esp = esp + 8; /* 0x360031C7: add esp, 8 */
  10629     _flag_k = FK_ADD;
  10630     ecx = eax; /* 0x360031CA: mov ecx, eax */
  10631     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x360031CC: call dword ptr [0x3616f110] */
  10632     RECOMP_FLAGS_IN();
  10633     PUSH32(esp, eax); /* 0x360031D2: push eax */
  10634     RECOMP_ICALL(esi); /* 0x360031D3: call esi */
  10635     RECOMP_FLAGS_IN();
  10636     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10638     esp = esp + 8; /* 0x360031D5: add esp, 8 */
  10639     _flag_k = FK_ADD;
  10640 L_360031D8:
  10641     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  10642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10643     edi = edi + 4; /* 0x360031D8: add edi, 4 */
  10644     _flag_k = FK_ADD;
  10645     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  10646     ebx = ebx + 1; /* 0x360031DB: inc ebx */
  10647     _flag_k = FK_INC;
  10648     /* cmp edi, 0x18Cu */ /* 0x360031DC: cmp edi, 0x18c */
  10649     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x18Cu);
  10650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10651     _flag_k = FK_CMP;
  10652     RECOMP_BACKEDGE();
  10653     if (CMP_L(_flag_a, _flag_b)) goto L_36003114; /* 0x360031E2: jl 0x36003114 */
  10654 L_360031E8:
  10655     eax = 0x362EB0D0u; /* 0x360031E8: mov eax, 0x362eb0d0 */
  10656     ebx = 1; /* 0x360031ED: mov ebx, 1 */
  10657     MEM32(ebp + (-0x4)) = eax; /* 0x360031F2: mov dword ptr [ebp - 4], eax */
  10658 L_360031F5:
  10659     edi = 1; /* 0x360031F5: mov edi, 1 */
  10660 L_360031FA:
  10661     /* cmp MEM8(eax + edi), 0 */ /* 0x360031FA: cmp byte ptr [eax + edi], 0 */
  10662     _flag_a = (uint32_t)(MEM8(eax + edi)) << 24; _flag_b = (uint32_t)(0) << 24;
  10663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10664     _flag_k = FK_NARROW(FK_CMP, 24);
  10665     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600323C; /* 0x360031FE: je 0x3600323c */
  10666 L_36003200:
  10667     ecx = MEM32(0x3616F114); /* 0x36003200: mov ecx, dword ptr [0x3616f114] */
  10668     PUSH32(esp, 0x361B2F8Cu); /* 0x36003206: push 0x361b2f8c */
  10669     PUSH32(esp, edi); /* 0x3600320B: push edi */
  10670     PUSH32(esp, 0x361B2F7Cu); /* 0x3600320C: push 0x361b2f7c */
  10671     PUSH32(esp, ebx); /* 0x36003211: push ebx */
  10672     PUSH32(esp, 0x361B2F74u); /* 0x36003212: push 0x361b2f74 */
  10673     PUSH32(esp, ecx); /* 0x36003217: push ecx */
  10674     RECOMP_ICALL(esi); /* 0x36003218: call esi */
  10675     RECOMP_FLAGS_IN();
  10676     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10677     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10678     esp = esp + 8; /* 0x3600321A: add esp, 8 */
  10679     _flag_k = FK_ADD;
  10680     ecx = eax; /* 0x3600321D: mov ecx, eax */
  10681     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x3600321F: call dword ptr [0x3616f110] */
  10682     RECOMP_FLAGS_IN();
  10683     PUSH32(esp, eax); /* 0x36003225: push eax */
  10684     RECOMP_ICALL(esi); /* 0x36003226: call esi */
  10685     RECOMP_FLAGS_IN();
  10686     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10688     esp = esp + 8; /* 0x36003228: add esp, 8 */
  10689     _flag_k = FK_ADD;
  10690     ecx = eax; /* 0x3600322B: mov ecx, eax */
  10691     RECOMP_ICALL(MEM32(0x3616F110)); /* 0x3600322D: call dword ptr [0x3616f110] */
  10692     RECOMP_FLAGS_IN();
  10693     PUSH32(esp, eax); /* 0x36003233: push eax */
  10694     RECOMP_ICALL(esi); /* 0x36003234: call esi */
  10695     RECOMP_FLAGS_IN();
  10696     eax = MEM32(ebp + (-0x4)); /* 0x36003236: mov eax, dword ptr [ebp - 4] */
  10697     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10698     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10699     esp = esp + 8; /* 0x36003239: add esp, 8 */
  10700     _flag_k = FK_ADD;
  10701 L_3600323C:
  10702     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
  10703     edi = edi + 1; /* 0x3600323C: inc edi */
  10704     _flag_k = FK_INC;
  10705     /* cmp edi, 0x3E8u */ /* 0x3600323D: cmp edi, 0x3e8 */
  10706     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3E8u);
  10707     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10708     _flag_k = FK_CMP;
  10709     RECOMP_BACKEDGE();
  10710     if (CMP_L(_flag_a, _flag_b)) goto L_360031FA; /* 0x36003243: jl 0x360031fa */
  10711 L_36003245:
  10712     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3E8u);
  10713     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10714     eax = eax + 0x3E8u; /* 0x36003245: add eax, 0x3e8 */
  10715     _flag_k = FK_ADD;
  10716     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
  10717     ebx = ebx + 1; /* 0x3600324A: inc ebx */
  10718     _flag_k = FK_INC;
  10719     /* cmp eax, 0x36303388u */ /* 0x3600324B: cmp eax, 0x36303388 */
  10720     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x36303388u);
  10721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10722     _flag_k = FK_CMP;
  10723     MEM32(ebp + (-0x4)) = eax; /* 0x36003250: mov dword ptr [ebp - 4], eax */
  10724     RECOMP_BACKEDGE();
  10725     if (CMP_L(_flag_a, _flag_b)) goto L_360031F5; /* 0x36003253: jl 0x360031f5 */
  10726 L_36003255:
  10727     edi = POP32_VAL(esp); /* 0x36003255: pop edi */
  10728     esi = POP32_VAL(esp); /* 0x36003256: pop esi */
  10729     ebx = POP32_VAL(esp); /* 0x36003257: pop ebx */
  10730     esp = ebp; /* 0x36003258: mov esp, ebp */
  10731     ebp = POP32_VAL(esp); /* 0x3600325A: pop ebp */
  10732     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600325B: ret  */
  10733     RECOMP_REGS_OUT();
  10734 }
  10735 
  10736 void sub_36003260(void) {
  10737     int _fpu_cmp = 0;
  10738     uint32_t _cf = 0;
  10739     int _df = 1;
  10740     uint32_t _flag_k = FK_NONE;
  10741     uint32_t _flag_a = 0, _flag_b = 0;
  10742     uint32_t _itail_tgt = 0;
  10743     RECOMP_REGS_LOCALS
  10744     RECOMP_ENTER(0x36003260u);
  10745 
  10746 L_36003260:
  10747     PUSH32(esp, ebp); /* 0x36003260: push ebp */
  10748     ebp = esp; /* 0x36003261: mov ebp, esp */
  10749     eax = ecx; /* 0x36003263: mov eax, ecx */
  10750     ecx = MEM32(ebp + 0x8); /* 0x36003265: mov ecx, dword ptr [ebp + 8] */
  10751     edx = MEM32(ecx); /* 0x36003268: mov edx, dword ptr [ecx] */
  10752     MEM32(eax) = edx; /* 0x3600326A: mov dword ptr [eax], edx */
  10753     ebp = POP32_VAL(esp); /* 0x3600326C: pop ebp */
  10754     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3600326D: ret 4 */
  10755     RECOMP_REGS_OUT();
  10756 }
  10757 
  10758 void sub_36003270(void) {
  10759     int _fpu_cmp = 0;
  10760     uint32_t _cf = 0;
  10761     int _df = 1;
  10762     uint32_t _flag_k = FK_NONE;
  10763     uint32_t _flag_a = 0, _flag_b = 0;
  10764     uint32_t _itail_tgt = 0;
  10765     RECOMP_REGS_LOCALS
  10766     RECOMP_ENTER(0x36003270u);
  10767 
  10768 L_36003270:
  10769     PUSH32(esp, ebp); /* 0x36003270: push ebp */
  10770     ebp = esp; /* 0x36003271: mov ebp, esp */
  10771     eax = MEM32(ebp + 0x8); /* 0x36003273: mov eax, dword ptr [ebp + 8] */
  10772     edx = MEM32(eax); /* 0x36003276: mov edx, dword ptr [eax] */
  10773     MEM32(ecx + 0x64) = edx; /* 0x36003278: mov dword ptr [ecx + 0x64], edx */
  10774     eax = MEM32(eax + 0x4); /* 0x3600327B: mov eax, dword ptr [eax + 4] */
  10775     MEM32(ecx + 0x68) = eax; /* 0x3600327E: mov dword ptr [ecx + 0x68], eax */
  10776     ebp = POP32_VAL(esp); /* 0x36003281: pop ebp */
  10777     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003282: ret 4 */
  10778     RECOMP_REGS_OUT();
  10779 }
  10780 
  10781 void sub_36003290(void) {
  10782     int _fpu_cmp = 0;
  10783     uint32_t _cf = 0;
  10784     int _df = 1;
  10785     uint32_t _flag_k = FK_NONE;
  10786     uint32_t _flag_a = 0, _flag_b = 0;
  10787     uint32_t _itail_tgt = 0;
  10788     RECOMP_REGS_LOCALS
  10789     RECOMP_ENTER(0x36003290u);
  10790 
  10791 L_36003290:
  10792     eax = ecx + 0x64; /* 0x36003290: lea eax, [ecx + 0x64] */
  10793     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003293: ret  */
  10794     RECOMP_REGS_OUT();
  10795 }
  10796 
  10797 void sub_360032A0(void) {
  10798     int _fpu_cmp = 0;
  10799     uint32_t _cf = 0;
  10800     int _df = 1;
  10801     uint32_t _flag_k = FK_NONE;
  10802     uint32_t _flag_a = 0, _flag_b = 0;
  10803     uint32_t _itail_tgt = 0;
  10804     RECOMP_REGS_LOCALS
  10805     RECOMP_ENTER(0x360032A0u);
  10806 
  10807 L_360032A0:
  10808     eax = MEM32(ecx + 0x60); /* 0x360032A0: mov eax, dword ptr [ecx + 0x60] */
  10809     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360032A3: ret  */
  10810     RECOMP_REGS_OUT();
  10811 }
  10812 
  10813 void sub_360032B0(void) {
  10814     int _fpu_cmp = 0;
  10815     uint32_t _cf = 0;
  10816     int _df = 1;
  10817     uint32_t _flag_k = FK_NONE;
  10818     uint32_t _flag_a = 0, _flag_b = 0;
  10819     uint32_t _itail_tgt = 0;
  10820     RECOMP_REGS_LOCALS
  10821     RECOMP_ENTER(0x360032B0u);
  10822 
  10823 L_360032B0:
  10824     PUSH32(esp, ebp); /* 0x360032B0: push ebp */
  10825     ebp = esp; /* 0x360032B1: mov ebp, esp */
  10826     eax = MEM32(ebp + 0x8); /* 0x360032B3: mov eax, dword ptr [ebp + 8] */
  10827     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
  10828     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10829     ecx = ecx + 0x24u; /* 0x360032B6: add ecx, 0x24 */
  10830     _flag_k = FK_ADD;
  10831     /* cmp eax, ecx */ /* 0x360032B9: cmp eax, ecx */
  10832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10834     _flag_k = FK_CMP;
  10835     if (CMP_EQ(_flag_a, _flag_b)) goto L_360032C7; /* 0x360032BB: je 0x360032c7 */
  10836 L_360032BD:
  10837     edx = MEM32(ecx); /* 0x360032BD: mov edx, dword ptr [ecx] */
  10838     MEM32(eax) = edx; /* 0x360032BF: mov dword ptr [eax], edx */
  10839     edx = MEM32(ecx + 0x4); /* 0x360032C1: mov edx, dword ptr [ecx + 4] */
  10840     MEM32(eax + 0x4) = edx; /* 0x360032C4: mov dword ptr [eax + 4], edx */
  10841 L_360032C7:
  10842     PUSH32(esp, esi); /* 0x360032C7: push esi */
  10843     PUSH32(esp, edi); /* 0x360032C8: push edi */
  10844     edx = ecx + 0x8; /* 0x360032C9: lea edx, [ecx + 8] */
  10845     edi = MEM32(edx); /* 0x360032CC: mov edi, dword ptr [edx] */
  10846     esi = eax + 0x8; /* 0x360032CE: lea esi, [eax + 8] */
  10847     MEM32(esi) = edi; /* 0x360032D1: mov dword ptr [esi], edi */
  10848     edi = MEM32(edx + 0x4); /* 0x360032D3: mov edi, dword ptr [edx + 4] */
  10849     MEM32(esi + 0x4) = edi; /* 0x360032D6: mov dword ptr [esi + 4], edi */
  10850     edx = MEM32(edx + 0x8); /* 0x360032D9: mov edx, dword ptr [edx + 8] */
  10851     MEM32(esi + 0x8) = edx; /* 0x360032DC: mov dword ptr [esi + 8], edx */
  10852     ecx = MEM32(ecx + 0x14); /* 0x360032DF: mov ecx, dword ptr [ecx + 0x14] */
  10853     edi = POP32_VAL(esp); /* 0x360032E2: pop edi */
  10854     MEM32(eax + 0x14) = ecx; /* 0x360032E3: mov dword ptr [eax + 0x14], ecx */
  10855     esi = POP32_VAL(esp); /* 0x360032E6: pop esi */
  10856     ebp = POP32_VAL(esp); /* 0x360032E7: pop ebp */
  10857     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360032E8: ret 4 */
  10858     RECOMP_REGS_OUT();
  10859 }
  10860 
  10861 void sub_360032F0(void) {
  10862     int _fpu_cmp = 0;
  10863     uint32_t _cf = 0;
  10864     int _df = 1;
  10865     uint32_t _flag_k = FK_NONE;
  10866     uint32_t _flag_a = 0, _flag_b = 0;
  10867     uint32_t _itail_tgt = 0;
  10868     RECOMP_REGS_LOCALS
  10869     RECOMP_ENTER(0x360032F0u);
  10870 
  10871 L_360032F0:
  10872     PUSH32(esp, ebp); /* 0x360032F0: push ebp */
  10873     ebp = esp; /* 0x360032F1: mov ebp, esp */
  10874     eax = MEM32(ebp + 0x8); /* 0x360032F3: mov eax, dword ptr [ebp + 8] */
  10875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
  10876     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10877     ecx = ecx + 0x54u; /* 0x360032F6: add ecx, 0x54 */
  10878     _flag_k = FK_ADD;
  10879     /* cmp eax, ecx */ /* 0x360032F9: cmp eax, ecx */
  10880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10882     _flag_k = FK_CMP;
  10883     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003307; /* 0x360032FB: je 0x36003307 */
  10884 L_360032FD:
  10885     edx = MEM32(ecx); /* 0x360032FD: mov edx, dword ptr [ecx] */
  10886     MEM32(eax) = edx; /* 0x360032FF: mov dword ptr [eax], edx */
  10887     ecx = MEM32(ecx + 0x4); /* 0x36003301: mov ecx, dword ptr [ecx + 4] */
  10888     MEM32(eax + 0x4) = ecx; /* 0x36003304: mov dword ptr [eax + 4], ecx */
  10889 L_36003307:
  10890     ebp = POP32_VAL(esp); /* 0x36003307: pop ebp */
  10891     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003308: ret 4 */
  10892     RECOMP_REGS_OUT();
  10893 }
  10894 
  10895 void sub_36003310(void) {
  10896     int _fpu_cmp = 0;
  10897     uint32_t _cf = 0;
  10898     int _df = 1;
  10899     uint32_t _flag_k = FK_NONE;
  10900     uint32_t _flag_a = 0, _flag_b = 0;
  10901     uint32_t _itail_tgt = 0;
  10902     RECOMP_REGS_LOCALS
  10903     RECOMP_ENTER(0x36003310u);
  10904 
  10905 L_36003310:
  10906     PUSH32(esp, ebp); /* 0x36003310: push ebp */
  10907     ebp = esp; /* 0x36003311: mov ebp, esp */
  10908     eax = ecx; /* 0x36003313: mov eax, ecx */
  10909     ecx = MEM32(ebp + 0x8); /* 0x36003315: mov ecx, dword ptr [ebp + 8] */
  10910     edx = MEM32(ecx); /* 0x36003318: mov edx, dword ptr [ecx] */
  10911     PUSH32(esp, ebx); /* 0x3600331A: push ebx */
  10912     PUSH32(esp, esi); /* 0x3600331B: push esi */
  10913     MEM32(eax) = edx; /* 0x3600331C: mov dword ptr [eax], edx */
  10914     edx = ecx + 0x4; /* 0x3600331E: lea edx, [ecx + 4] */
  10915     esi = eax + 0x4; /* 0x36003321: lea esi, [eax + 4] */
  10916     /* cmp esi, edx */ /* 0x36003324: cmp esi, edx */
  10917     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  10918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10919     _flag_k = FK_CMP;
  10920     PUSH32(esp, edi); /* 0x36003326: push edi */
  10921     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003333; /* 0x36003327: je 0x36003333 */
  10922 L_36003329:
  10923     edi = MEM32(edx); /* 0x36003329: mov edi, dword ptr [edx] */
  10924     MEM32(esi) = edi; /* 0x3600332B: mov dword ptr [esi], edi */
  10925     edx = MEM32(edx + 0x4); /* 0x3600332D: mov edx, dword ptr [edx + 4] */
  10926     MEM32(esi + 0x4) = edx; /* 0x36003330: mov dword ptr [esi + 4], edx */
  10927 L_36003333:
  10928     edx = ecx + 0xC; /* 0x36003333: lea edx, [ecx + 0xc] */
  10929     esi = eax + 0xC; /* 0x36003336: lea esi, [eax + 0xc] */
  10930     /* cmp esi, edx */ /* 0x36003339: cmp esi, edx */
  10931     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  10932     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10933     _flag_k = FK_CMP;
  10934     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003347; /* 0x3600333B: je 0x36003347 */
  10935 L_3600333D:
  10936     edi = MEM32(edx); /* 0x3600333D: mov edi, dword ptr [edx] */
  10937     MEM32(esi) = edi; /* 0x3600333F: mov dword ptr [esi], edi */
  10938     edx = MEM32(edx + 0x4); /* 0x36003341: mov edx, dword ptr [edx + 4] */
  10939     MEM32(esi + 0x4) = edx; /* 0x36003344: mov dword ptr [esi + 4], edx */
  10940 L_36003347:
  10941     edx = ecx + 0x14; /* 0x36003347: lea edx, [ecx + 0x14] */
  10942     esi = eax + 0x14; /* 0x3600334A: lea esi, [eax + 0x14] */
  10943     /* cmp esi, edx */ /* 0x3600334D: cmp esi, edx */
  10944     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  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_3600335B; /* 0x3600334F: je 0x3600335b */
  10948 L_36003351:
  10949     edi = MEM32(edx); /* 0x36003351: mov edi, dword ptr [edx] */
  10950     MEM32(esi) = edi; /* 0x36003353: mov dword ptr [esi], edi */
  10951     edx = MEM32(edx + 0x4); /* 0x36003355: mov edx, dword ptr [edx + 4] */
  10952     MEM32(esi + 0x4) = edx; /* 0x36003358: mov dword ptr [esi + 4], edx */
  10953 L_3600335B:
  10954     edx = ecx + 0x1C; /* 0x3600335B: lea edx, [ecx + 0x1c] */
  10955     esi = eax + 0x1C; /* 0x3600335E: lea esi, [eax + 0x1c] */
  10956     /* cmp esi, edx */ /* 0x36003361: cmp esi, edx */
  10957     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  10958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10959     _flag_k = FK_CMP;
  10960     if (CMP_EQ(_flag_a, _flag_b)) goto L_3600336F; /* 0x36003363: je 0x3600336f */
  10961 L_36003365:
  10962     edi = MEM32(edx); /* 0x36003365: mov edi, dword ptr [edx] */
  10963     MEM32(esi) = edi; /* 0x36003367: mov dword ptr [esi], edi */
  10964     edx = MEM32(edx + 0x4); /* 0x36003369: mov edx, dword ptr [edx + 4] */
  10965     MEM32(esi + 0x4) = edx; /* 0x3600336C: mov dword ptr [esi + 4], edx */
  10966 L_3600336F:
  10967     edx = ecx + 0x24; /* 0x3600336F: lea edx, [ecx + 0x24] */
  10968     esi = eax + 0x24; /* 0x36003372: lea esi, [eax + 0x24] */
  10969     /* cmp esi, edx */ /* 0x36003375: cmp esi, edx */
  10970     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  10971     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10972     _flag_k = FK_CMP;
  10973     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003383; /* 0x36003377: je 0x36003383 */
  10974 L_36003379:
  10975     edi = MEM32(edx); /* 0x36003379: mov edi, dword ptr [edx] */
  10976     MEM32(esi) = edi; /* 0x3600337B: mov dword ptr [esi], edi */
  10977     edi = MEM32(edx + 0x4); /* 0x3600337D: mov edi, dword ptr [edx + 4] */
  10978     MEM32(esi + 0x4) = edi; /* 0x36003380: mov dword ptr [esi + 4], edi */
  10979 L_36003383:
  10980     edi = edx + 0x8; /* 0x36003383: lea edi, [edx + 8] */
  10981     ebx = MEM32(edi); /* 0x36003386: mov ebx, dword ptr [edi] */
  10982     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
  10983     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10984     esi = esi + 8; /* 0x36003388: add esi, 8 */
  10985     _flag_k = FK_ADD;
  10986     MEM32(esi) = ebx; /* 0x3600338B: mov dword ptr [esi], ebx */
  10987     ebx = MEM32(edi + 0x4); /* 0x3600338D: mov ebx, dword ptr [edi + 4] */
  10988     MEM32(esi + 0x4) = ebx; /* 0x36003390: mov dword ptr [esi + 4], ebx */
  10989     edi = MEM32(edi + 0x8); /* 0x36003393: mov edi, dword ptr [edi + 8] */
  10990     MEM32(esi + 0x8) = edi; /* 0x36003396: mov dword ptr [esi + 8], edi */
  10991     edx = MEM32(edx + 0x14); /* 0x36003399: mov edx, dword ptr [edx + 0x14] */
  10992     MEM32(eax + 0x38) = edx; /* 0x3600339C: mov dword ptr [eax + 0x38], edx */
  10993     edx = ecx + 0x3C; /* 0x3600339F: lea edx, [ecx + 0x3c] */
  10994     esi = eax + 0x3C; /* 0x360033A2: lea esi, [eax + 0x3c] */
  10995     /* cmp esi, edx */ /* 0x360033A5: cmp esi, edx */
  10996     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  10997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10998     _flag_k = FK_CMP;
  10999     if (CMP_EQ(_flag_a, _flag_b)) goto L_360033B3; /* 0x360033A7: je 0x360033b3 */
  11000 L_360033A9:
  11001     edi = MEM32(edx); /* 0x360033A9: mov edi, dword ptr [edx] */
  11002     MEM32(esi) = edi; /* 0x360033AB: mov dword ptr [esi], edi */
  11003     edi = MEM32(edx + 0x4); /* 0x360033AD: mov edi, dword ptr [edx + 4] */
  11004     MEM32(esi + 0x4) = edi; /* 0x360033B0: mov dword ptr [esi + 4], edi */
  11005 L_360033B3:
  11006     edi = edx + 0x8; /* 0x360033B3: lea edi, [edx + 8] */
  11007     ebx = MEM32(edi); /* 0x360033B6: mov ebx, dword ptr [edi] */
  11008     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
  11009     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11010     esi = esi + 8; /* 0x360033B8: add esi, 8 */
  11011     _flag_k = FK_ADD;
  11012     MEM32(esi) = ebx; /* 0x360033BB: mov dword ptr [esi], ebx */
  11013     ebx = MEM32(edi + 0x4); /* 0x360033BD: mov ebx, dword ptr [edi + 4] */
  11014     MEM32(esi + 0x4) = ebx; /* 0x360033C0: mov dword ptr [esi + 4], ebx */
  11015     edi = MEM32(edi + 0x8); /* 0x360033C3: mov edi, dword ptr [edi + 8] */
  11016     MEM32(esi + 0x8) = edi; /* 0x360033C6: mov dword ptr [esi + 8], edi */
  11017     edx = MEM32(edx + 0x14); /* 0x360033C9: mov edx, dword ptr [edx + 0x14] */
  11018     MEM32(eax + 0x50) = edx; /* 0x360033CC: mov dword ptr [eax + 0x50], edx */
  11019     edx = ecx + 0x54; /* 0x360033CF: lea edx, [ecx + 0x54] */
  11020     esi = eax + 0x54; /* 0x360033D2: lea esi, [eax + 0x54] */
  11021     /* cmp esi, edx */ /* 0x360033D5: cmp esi, edx */
  11022     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  11023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11024     _flag_k = FK_CMP;
  11025     if (CMP_EQ(_flag_a, _flag_b)) goto L_360033E3; /* 0x360033D7: je 0x360033e3 */
  11026 L_360033D9:
  11027     edi = MEM32(edx); /* 0x360033D9: mov edi, dword ptr [edx] */
  11028     MEM32(esi) = edi; /* 0x360033DB: mov dword ptr [esi], edi */
  11029     edx = MEM32(edx + 0x4); /* 0x360033DD: mov edx, dword ptr [edx + 4] */
  11030     MEM32(esi + 0x4) = edx; /* 0x360033E0: mov dword ptr [esi + 4], edx */
  11031 L_360033E3:
  11032     edx = MEM32(ecx + 0x5C); /* 0x360033E3: mov edx, dword ptr [ecx + 0x5c] */
  11033     MEM32(eax + 0x5C) = edx; /* 0x360033E6: mov dword ptr [eax + 0x5c], edx */
  11034     edx = MEM32(ecx + 0x60); /* 0x360033E9: mov edx, dword ptr [ecx + 0x60] */
  11035     MEM32(eax + 0x60) = edx; /* 0x360033EC: mov dword ptr [eax + 0x60], edx */
  11036     edx = ecx + 0x64; /* 0x360033EF: lea edx, [ecx + 0x64] */
  11037     esi = eax + 0x64; /* 0x360033F2: lea esi, [eax + 0x64] */
  11038     /* cmp esi, edx */ /* 0x360033F5: cmp esi, edx */
  11039     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
  11040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11041     _flag_k = FK_CMP;
  11042     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003403; /* 0x360033F7: je 0x36003403 */
  11043 L_360033F9:
  11044     edi = MEM32(edx); /* 0x360033F9: mov edi, dword ptr [edx] */
  11045     MEM32(esi) = edi; /* 0x360033FB: mov dword ptr [esi], edi */
  11046     edx = MEM32(edx + 0x4); /* 0x360033FD: mov edx, dword ptr [edx + 4] */
  11047     MEM32(esi + 0x4) = edx; /* 0x36003400: mov dword ptr [esi + 4], edx */
  11048 L_36003403:
  11049     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x6Cu);
  11050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11051     ecx = ecx + 0x6Cu; /* 0x36003403: add ecx, 0x6c */
  11052     _flag_k = FK_ADD;
  11053     edx = eax + 0x6C; /* 0x36003406: lea edx, [eax + 0x6c] */
  11054     /* cmp edx, ecx */ /* 0x36003409: cmp edx, ecx */
  11055     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
  11056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11057     _flag_k = FK_CMP;
  11058     if (CMP_EQ(_flag_a, _flag_b)) goto L_36003417; /* 0x3600340B: je 0x36003417 */
  11059 L_3600340D:
  11060     esi = MEM32(ecx); /* 0x3600340D: mov esi, dword ptr [ecx] */
  11061     MEM32(edx) = esi; /* 0x3600340F: mov dword ptr [edx], esi */
  11062     esi = MEM32(ecx + 0x4); /* 0x36003411: mov esi, dword ptr [ecx + 4] */
  11063     MEM32(edx + 0x4) = esi; /* 0x36003414: mov dword ptr [edx + 4], esi */
  11064 L_36003417:
  11065     esi = ecx + 0x8; /* 0x36003417: lea esi, [ecx + 8] */
  11066     ebx = MEM32(esi); /* 0x3600341A: mov ebx, dword ptr [esi] */
  11067     edi = edx + 0x8; /* 0x3600341C: lea edi, [edx + 8] */
  11068     MEM32(edi) = ebx; /* 0x3600341F: mov dword ptr [edi], ebx */
  11069     ebx = MEM32(esi + 0x4); /* 0x36003421: mov ebx, dword ptr [esi + 4] */
  11070     MEM32(edi + 0x4) = ebx; /* 0x36003424: mov dword ptr [edi + 4], ebx */
  11071     esi = MEM32(esi + 0x8); /* 0x36003427: mov esi, dword ptr [esi + 8] */
  11072     MEM32(edi + 0x8) = esi; /* 0x3600342A: mov dword ptr [edi + 8], esi */
  11073     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
  11074     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11075     ecx = ecx + 0x14u; /* 0x3600342D: add ecx, 0x14 */
  11076     _flag_k = FK_ADD;
  11077     esi = MEM32(ecx); /* 0x36003430: mov esi, dword ptr [ecx] */
  11078     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x14u);
  11079     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11080     edx = edx + 0x14u; /* 0x36003432: add edx, 0x14 */
  11081     _flag_k = FK_ADD;
  11082     MEM32(edx) = esi; /* 0x36003435: mov dword ptr [edx], esi */
  11083     esi = MEM32(ecx + 0x4); /* 0x36003437: mov esi, dword ptr [ecx + 4] */
  11084     MEM32(edx + 0x4) = esi; /* 0x3600343A: mov dword ptr [edx + 4], esi */
  11085     ecx = MEM32(ecx + 0x8); /* 0x3600343D: mov ecx, dword ptr [ecx + 8] */
  11086     edi = POP32_VAL(esp); /* 0x36003440: pop edi */
  11087     esi = POP32_VAL(esp); /* 0x36003441: pop esi */
  11088     MEM32(edx + 0x8) = ecx; /* 0x36003442: mov dword ptr [edx + 8], ecx */
  11089     ebx = POP32_VAL(esp); /* 0x36003445: pop ebx */
  11090     ebp = POP32_VAL(esp); /* 0x36003446: pop ebp */
  11091     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36003447: ret 4 */
  11092     RECOMP_REGS_OUT();
  11093 }
  11094 
  11095 void sub_36003450(void) {
  11096     int _fpu_cmp = 0;
  11097     uint32_t _cf = 0;
  11098     int _df = 1;
  11099     uint32_t _flag_k = FK_NONE;
  11100     uint32_t _flag_a = 0, _flag_b = 0;
  11101     uint32_t _itail_tgt = 0;
  11102     RECOMP_REGS_LOCALS
  11103     RECOMP_ENTER(0x36003450u);
  11104 
  11105 L_36003450:
  11106     goto L_36003460; /* 0x36003450: jmp 0x36003460 */
  11107 L_36003460:
  11108     MEM32(0x363033B0) = 0x361B2FF4u; /* 0x36003460: mov dword ptr [0x363033b0], 0x361b2ff4 */
  11109     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600346A: ret  */
  11110     RECOMP_REGS_OUT();
  11111 }
  11112 
  11113 void sub_36003460(void) {
  11114     int _fpu_cmp = 0;
  11115     uint32_t _cf = 0;
  11116     int _df = 1;
  11117     uint32_t _flag_k = FK_NONE;
  11118     uint32_t _flag_a = 0, _flag_b = 0;
  11119     uint32_t _itail_tgt = 0;
  11120     RECOMP_REGS_LOCALS
  11121     RECOMP_ENTER(0x36003460u);
  11122 
  11123 L_36003460:
  11124     MEM32(0x363033B0) = 0x361B2FF4u; /* 0x36003460: mov dword ptr [0x363033b0], 0x361b2ff4 */
  11125     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600346A: ret  */
  11126     RECOMP_REGS_OUT();
  11127 }
  11128 
  11129 void sub_36003470(void) {
  11130     int _fpu_cmp = 0;
  11131     uint32_t _cf = 0;
  11132     int _df = 1;
  11133     uint32_t _flag_k = FK_NONE;
  11134     uint32_t _flag_a = 0, _flag_b = 0;
  11135     uint32_t _itail_tgt = 0;
  11136     RECOMP_REGS_LOCALS
  11137     RECOMP_ENTER(0x36003470u);
  11138 
  11139 L_36003470:
  11140     goto L_36003480; /* 0x36003470: jmp 0x36003480 */
  11141 L_36003480:
  11142     MEM32(0x363033AC) = 0x361B3028u; /* 0x36003480: mov dword ptr [0x363033ac], 0x361b3028 */
  11143     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600348A: ret  */
  11144     RECOMP_REGS_OUT();
  11145 }
  11146 
  11147 void sub_36003480(void) {
  11148     int _fpu_cmp = 0;
  11149     uint32_t _cf = 0;
  11150     int _df = 1;
  11151     uint32_t _flag_k = FK_NONE;
  11152     uint32_t _flag_a = 0, _flag_b = 0;
  11153     uint32_t _itail_tgt = 0;
  11154     RECOMP_REGS_LOCALS
  11155     RECOMP_ENTER(0x36003480u);
  11156 
  11157 L_36003480:
  11158     MEM32(0x363033AC) = 0x361B3028u; /* 0x36003480: mov dword ptr [0x363033ac], 0x361b3028 */
  11159     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600348A: ret  */
  11160     RECOMP_REGS_OUT();
  11161 }
  11162 
  11163 void sub_36003490(void) {
  11164     int _fpu_cmp = 0;
  11165     uint32_t _cf = 0;
  11166     int _df = 1;
  11167     uint32_t _flag_k = FK_NONE;
  11168     uint32_t _flag_a = 0, _flag_b = 0;
  11169     uint32_t _itail_tgt = 0;
  11170     RECOMP_REGS_LOCALS
  11171     RECOMP_ENTER(0x36003490u);
  11172 
  11173 L_36003490:
  11174     goto L_360034A0; /* 0x36003490: jmp 0x360034a0 */
  11175 L_360034A0:
  11176     MEM32(0x363033A8) = 0x361B3064u; /* 0x360034A0: mov dword ptr [0x363033a8], 0x361b3064 */
  11177     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360034AA: ret  */
  11178     RECOMP_REGS_OUT();
  11179 }
  11180 
  11181 void sub_360034A0(void) {
  11182     int _fpu_cmp = 0;
  11183     uint32_t _cf = 0;
  11184     int _df = 1;
  11185     uint32_t _flag_k = FK_NONE;
  11186     uint32_t _flag_a = 0, _flag_b = 0;
  11187     uint32_t _itail_tgt = 0;
  11188     RECOMP_REGS_LOCALS
  11189     RECOMP_ENTER(0x360034A0u);
  11190 
  11191 L_360034A0:
  11192     MEM32(0x363033A8) = 0x361B3064u; /* 0x360034A0: mov dword ptr [0x363033a8], 0x361b3064 */
  11193     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360034AA: ret  */
  11194     RECOMP_REGS_OUT();
  11195 }
  11196 
  11197 void sub_360034B0(void) {
  11198     int _fpu_cmp = 0;
  11199     uint32_t _cf = 0;
  11200     int _df = 1;
  11201     uint32_t _flag_k = FK_NONE;
  11202     uint32_t _flag_a = 0, _flag_b = 0;
  11203     uint32_t _itail_tgt = 0;
  11204     RECOMP_REGS_LOCALS
  11205     RECOMP_ENTER(0x360034B0u);
  11206 
  11207 L_360034B0:
  11208     goto L_360034C0; /* 0x360034B0: jmp 0x360034c0 */
  11209 L_360034C0:
  11210     MEM32(0x363033A4) = 0x361B3098u; /* 0x360034C0: mov dword ptr [0x363033a4], 0x361b3098 */
  11211     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360034CA: ret  */
  11212     RECOMP_REGS_OUT();
  11213 }
  11214 
  11215 void sub_360034C0(void) {
  11216     int _fpu_cmp = 0;
  11217     uint32_t _cf = 0;
  11218     int _df = 1;
  11219     uint32_t _flag_k = FK_NONE;
  11220     uint32_t _flag_a = 0, _flag_b = 0;
  11221     uint32_t _itail_tgt = 0;
  11222     RECOMP_REGS_LOCALS
  11223     RECOMP_ENTER(0x360034C0u);
  11224 
  11225 L_360034C0:
  11226     MEM32(0x363033A4) = 0x361B3098u; /* 0x360034C0: mov dword ptr [0x363033a4], 0x361b3098 */
  11227     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360034CA: ret  */
  11228     RECOMP_REGS_OUT();
  11229 }
  11230 
  11231 void sub_360034D0(void) {
  11232     int _fpu_cmp = 0;
  11233     uint32_t _cf = 0;
  11234     int _df = 1;
  11235     uint32_t _flag_k = FK_NONE;
  11236     uint32_t _flag_a = 0, _flag_b = 0;
  11237     uint32_t _itail_tgt = 0;
  11238     RECOMP_REGS_LOCALS
  11239     RECOMP_ENTER(0x360034D0u);
  11240 
  11241 L_360034D0:
  11242     goto L_360034E0; /* 0x360034D0: jmp 0x360034e0 */
  11243 L_360034E0:
  11244     MEM32(0x363033A0) = 0x361B30CCu; /* 0x360034E0: mov dword ptr [0x363033a0], 0x361b30cc */
  11245     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360034EA: ret  */
  11246     RECOMP_REGS_OUT();
  11247 }
  11248 
  11249 void sub_360034E0(void) {
  11250     int _fpu_cmp = 0;
  11251     uint32_t _cf = 0;
  11252     int _df = 1;
  11253     uint32_t _flag_k = FK_NONE;
  11254     uint32_t _flag_a = 0, _flag_b = 0;
  11255     uint32_t _itail_tgt = 0;
  11256     RECOMP_REGS_LOCALS
  11257     RECOMP_ENTER(0x360034E0u);
  11258 
  11259 L_360034E0:
  11260     MEM32(0x363033A0) = 0x361B30CCu; /* 0x360034E0: mov dword ptr [0x363033a0], 0x361b30cc */
  11261     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360034EA: ret  */
  11262     RECOMP_REGS_OUT();
  11263 }
  11264 
  11265 void sub_360034F0(void) {
  11266     int _fpu_cmp = 0;
  11267     uint32_t _cf = 0;
  11268     int _df = 1;
  11269     uint32_t _flag_k = FK_NONE;
  11270     uint32_t _flag_a = 0, _flag_b = 0;
  11271     uint32_t _itail_tgt = 0;
  11272     RECOMP_REGS_LOCALS
  11273     RECOMP_ENTER(0x360034F0u);
  11274 
  11275 L_360034F0:
  11276     goto L_36003500; /* 0x360034F0: jmp 0x36003500 */
  11277 L_36003500:
  11278     MEM32(0x3630339C) = 0x361B3100u; /* 0x36003500: mov dword ptr [0x3630339c], 0x361b3100 */
  11279     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600350A: ret  */
  11280     RECOMP_REGS_OUT();
  11281 }
  11282 
  11283 void sub_36003500(void) {
  11284     int _fpu_cmp = 0;
  11285     uint32_t _cf = 0;
  11286     int _df = 1;
  11287     uint32_t _flag_k = FK_NONE;
  11288     uint32_t _flag_a = 0, _flag_b = 0;
  11289     uint32_t _itail_tgt = 0;
  11290     RECOMP_REGS_LOCALS
  11291     RECOMP_ENTER(0x36003500u);
  11292 
  11293 L_36003500:
  11294     MEM32(0x3630339C) = 0x361B3100u; /* 0x36003500: mov dword ptr [0x3630339c], 0x361b3100 */
  11295     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600350A: ret  */
  11296     RECOMP_REGS_OUT();
  11297 }
  11298 
  11299 void sub_36003510(void) {
  11300     int _fpu_cmp = 0;
  11301     uint32_t _cf = 0;
  11302     int _df = 1;
  11303     uint32_t _flag_k = FK_NONE;
  11304     uint32_t _flag_a = 0, _flag_b = 0;
  11305     uint32_t _itail_tgt = 0;
  11306     RECOMP_REGS_LOCALS
  11307     RECOMP_ENTER(0x36003510u);
  11308 
  11309 L_36003510:
  11310     goto L_36003520; /* 0x36003510: jmp 0x36003520 */
  11311 L_36003520:
  11312     MEM32(0x36303398) = 0x361B3138u; /* 0x36003520: mov dword ptr [0x36303398], 0x361b3138 */
  11313     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600352A: ret  */
  11314     RECOMP_REGS_OUT();
  11315 }
  11316 
  11317 void sub_36003520(void) {
  11318     int _fpu_cmp = 0;
  11319     uint32_t _cf = 0;
  11320     int _df = 1;
  11321     uint32_t _flag_k = FK_NONE;
  11322     uint32_t _flag_a = 0, _flag_b = 0;
  11323     uint32_t _itail_tgt = 0;
  11324     RECOMP_REGS_LOCALS
  11325     RECOMP_ENTER(0x36003520u);
  11326 
  11327 L_36003520:
  11328     MEM32(0x36303398) = 0x361B3138u; /* 0x36003520: mov dword ptr [0x36303398], 0x361b3138 */
  11329     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600352A: ret  */
  11330     RECOMP_REGS_OUT();
  11331 }
  11332 
  11333 void sub_36003530(void) {
  11334     int _fpu_cmp = 0;
  11335     uint32_t _cf = 0;
  11336     int _df = 1;
  11337     uint32_t _flag_k = FK_NONE;
  11338     uint32_t _flag_a = 0, _flag_b = 0;
  11339     uint32_t _itail_tgt = 0;
  11340     RECOMP_REGS_LOCALS
  11341     RECOMP_ENTER(0x36003530u);
  11342 
  11343 L_36003530:
  11344     SET_LO8(eax, MEM8(ecx + 0x1C)); /* 0x36003530: mov al, byte ptr [ecx + 0x1c] */
  11345     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003533: ret  */
  11346     RECOMP_REGS_OUT();
  11347 }
  11348 
  11349 void sub_36003540(void) {
  11350     int _fpu_cmp = 0;
  11351     uint32_t _cf = 0;
  11352     int _df = 1;
  11353     uint32_t _flag_k = FK_NONE;
  11354     uint32_t _flag_a = 0, _flag_b = 0;
  11355     uint32_t _itail_tgt = 0;
  11356     RECOMP_REGS_LOCALS
  11357     RECOMP_ENTER(0x36003540u);
  11358 
  11359 L_36003540:
  11360     SET_LO8(eax, MEM8(ecx + 0x1D)); /* 0x36003540: mov al, byte ptr [ecx + 0x1d] */
  11361     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003543: ret  */
  11362     RECOMP_REGS_OUT();
  11363 }
  11364 
  11365 void sub_36003550(void) {
  11366     int _fpu_cmp = 0;
  11367     uint32_t _cf = 0;
  11368     int _df = 1;
  11369     uint32_t _flag_k = FK_NONE;
  11370     uint32_t _flag_a = 0, _flag_b = 0;
  11371     uint32_t _itail_tgt = 0;
  11372     RECOMP_REGS_LOCALS
  11373     RECOMP_ENTER(0x36003550u);
  11374 
  11375 L_36003550:
  11376     SET_LO8(eax, MEM8(ecx + 0x1E)); /* 0x36003550: mov al, byte ptr [ecx + 0x1e] */
  11377     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003553: ret  */
  11378     RECOMP_REGS_OUT();
  11379 }
  11380 
  11381 void sub_36003560(void) {
  11382     int _fpu_cmp = 0;
  11383     uint32_t _cf = 0;
  11384     int _df = 1;
  11385     uint32_t _flag_k = FK_NONE;
  11386     uint32_t _flag_a = 0, _flag_b = 0;
  11387     uint32_t _itail_tgt = 0;
  11388     RECOMP_REGS_LOCALS
  11389     RECOMP_ENTER(0x36003560u);
  11390 
  11391 L_36003560:
  11392     fp_push(*(double*)ADDR(ecx + 0x78)); /* 0x36003560: fld qword ptr [ecx + 0x78] */
  11393     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003563: ret  */
  11394     RECOMP_REGS_OUT();
  11395 }
  11396 
  11397 void sub_36003570(void) {
  11398     int _fpu_cmp = 0;
  11399     uint32_t _cf = 0;
  11400     int _df = 1;
  11401     uint32_t _flag_k = FK_NONE;
  11402     uint32_t _flag_a = 0, _flag_b = 0;
  11403     uint32_t _itail_tgt = 0;
  11404     RECOMP_REGS_LOCALS
  11405     RECOMP_ENTER(0x36003570u);
  11406 
  11407 L_36003570:
  11408     fp_push(*(double*)ADDR(ecx + 0x38)); /* 0x36003570: fld qword ptr [ecx + 0x38] */
  11409     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36003573: ret  */
  11410     RECOMP_REGS_OUT();
  11411 }