aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0014.c (596304B)


      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_36020AB0(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(0x36020AB0u);
     17 
     18 L_36020AB0:
     19     PUSH32(esp, ebp); /* 0x36020AB0: push ebp */
     20     ebp = esp; /* 0x36020AB1: mov ebp, esp */
     21     eax = MEM32(ebp + 0x8); /* 0x36020AB3: mov eax, dword ptr [ebp + 8] */
     22     PUSH32(esp, eax); /* 0x36020AB6: push eax */
     23     RECOMP_ICALL(0x3606DA90u); /* 0x36020AB7: call 0x3606da90 */ /* not lifted */
     24     RECOMP_FLAGS_IN();
     25     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     26     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     27     esp = esp + 4; /* 0x36020ABC: add esp, 4 */
     28     _flag_k = FK_ADD;
     29     /* test eax, eax */ /* 0x36020ABF: test eax, eax */
     30     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     31     _cf = 0;
     32     _flag_k = FK_TEST;
     33     if (TEST_Z(_flag_a, _flag_b)) goto L_36020ACE; /* 0x36020AC1: je 0x36020ace */
     34 L_36020AC3:
     35     ecx = eax; /* 0x36020AC3: mov ecx, eax */
     36     RECOMP_ICALL(0x36070EE0u); /* 0x36020AC5: call 0x36070ee0 */ /* not lifted */
     37     RECOMP_FLAGS_IN();
     38     ebp = POP32_VAL(esp); /* 0x36020ACA: pop ebp */
     39     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020ACB: ret 4 */
     40 L_36020ACE:
     41     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     42     eax = 0; /* 0x36020ACE: xor eax, eax */
     43     _cf = 0;
     44     _flag_k = FK_TEST;
     45     ebp = POP32_VAL(esp); /* 0x36020AD0: pop ebp */
     46     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020AD1: ret 4 */
     47     RECOMP_REGS_OUT();
     48 }
     49 
     50 void sub_36020AE0(void) {
     51     int _fpu_cmp = 0;
     52     uint32_t _cf = 0;
     53     int _df = 1;
     54     uint32_t _flag_k = FK_NONE;
     55     uint32_t _flag_a = 0, _flag_b = 0;
     56     uint32_t _itail_tgt = 0;
     57     RECOMP_REGS_LOCALS
     58     RECOMP_ENTER(0x36020AE0u);
     59 
     60 L_36020AE0:
     61     PUSH32(esp, ebp); /* 0x36020AE0: push ebp */
     62     ebp = esp; /* 0x36020AE1: mov ebp, esp */
     63     eax = MEM32(ebp + 0x8); /* 0x36020AE3: mov eax, dword ptr [ebp + 8] */
     64     PUSH32(esp, 0); /* 0x36020AE6: push 0 */
     65     PUSH32(esp, 0x361B2CD8u); /* 0x36020AE8: push 0x361b2cd8 */
     66     PUSH32(esp, 0x361B2CC0u); /* 0x36020AED: push 0x361b2cc0 */
     67     PUSH32(esp, 0); /* 0x36020AF2: push 0 */
     68     PUSH32(esp, eax); /* 0x36020AF4: push eax */
     69     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020AF5: call dword ptr [0x3616ff70] */
     70     RECOMP_FLAGS_IN();
     71     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     72     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     73     esp = esp + 4; /* 0x36020AFB: add esp, 4 */
     74     _flag_k = FK_ADD;
     75     PUSH32(esp, eax); /* 0x36020AFE: push eax */
     76     RECOMP_ICALL(0x3615FD86u); /* 0x36020AFF: call 0x3615fd86 */ /* not lifted */
     77     RECOMP_FLAGS_IN();
     78     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     79     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     80     esp = esp + 0x14u; /* 0x36020B04: add esp, 0x14 */
     81     _flag_k = FK_ADD;
     82     /* test eax, eax */ /* 0x36020B07: test eax, eax */
     83     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     84     _cf = 0;
     85     _flag_k = FK_TEST;
     86     if (TEST_Z(_flag_a, _flag_b)) goto L_36020B2B; /* 0x36020B09: je 0x36020b2b */
     87 L_36020B0B:
     88     edx = MEM32(eax + 0xE4); /* 0x36020B0B: mov edx, dword ptr [eax + 0xe4] */
     89     ecx = eax + 0xE4; /* 0x36020B11: lea ecx, [eax + 0xe4] */
     90     PUSH32(esp, 2); /* 0x36020B17: push 2 */
     91     PUSH32(esp, 4); /* 0x36020B19: push 4 */
     92     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36020B1B: call dword ptr [edx + 4] */
     93     RECOMP_FLAGS_IN();
     94     PUSH32(esp, eax); /* 0x36020B1E: push eax */
     95     RECOMP_ICALL(0x3603D910u); /* 0x36020B1F: call 0x3603d910 */ /* not lifted */
     96     RECOMP_FLAGS_IN();
     97     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     98     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     99     esp = esp + 4; /* 0x36020B24: add esp, 4 */
    100     _flag_k = FK_ADD;
    101     ebp = POP32_VAL(esp); /* 0x36020B27: pop ebp */
    102     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020B28: ret 4 */
    103 L_36020B2B:
    104     eax = MEM32(0x361706D4); /* 0x36020B2B: mov eax, dword ptr [0x361706d4] */
    105     ebp = POP32_VAL(esp); /* 0x36020B30: pop ebp */
    106     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020B31: ret 4 */
    107     RECOMP_REGS_OUT();
    108 }
    109 
    110 void sub_36020B40(void) {
    111     int _fpu_cmp = 0;
    112     uint32_t _cf = 0;
    113     int _df = 1;
    114     uint32_t _flag_k = FK_NONE;
    115     uint32_t _flag_a = 0, _flag_b = 0;
    116     uint32_t _itail_tgt = 0;
    117     RECOMP_REGS_LOCALS
    118     RECOMP_ENTER(0x36020B40u);
    119 
    120 L_36020B40:
    121     PUSH32(esp, ebp); /* 0x36020B40: push ebp */
    122     ebp = esp; /* 0x36020B41: mov ebp, esp */
    123     eax = MEM32(ebp + 0x8); /* 0x36020B43: mov eax, dword ptr [ebp + 8] */
    124     PUSH32(esp, 0); /* 0x36020B46: push 0 */
    125     PUSH32(esp, 0x361B2CD8u); /* 0x36020B48: push 0x361b2cd8 */
    126     PUSH32(esp, 0x361B2CC0u); /* 0x36020B4D: push 0x361b2cc0 */
    127     PUSH32(esp, 0); /* 0x36020B52: push 0 */
    128     PUSH32(esp, eax); /* 0x36020B54: push eax */
    129     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020B55: call dword ptr [0x3616ff70] */
    130     RECOMP_FLAGS_IN();
    131     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    133     esp = esp + 4; /* 0x36020B5B: add esp, 4 */
    134     _flag_k = FK_ADD;
    135     PUSH32(esp, eax); /* 0x36020B5E: push eax */
    136     RECOMP_ICALL(0x3615FD86u); /* 0x36020B5F: call 0x3615fd86 */ /* not lifted */
    137     RECOMP_FLAGS_IN();
    138     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    139     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    140     esp = esp + 0x14u; /* 0x36020B64: add esp, 0x14 */
    141     _flag_k = FK_ADD;
    142     /* test eax, eax */ /* 0x36020B67: test eax, eax */
    143     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    144     _cf = 0;
    145     _flag_k = FK_TEST;
    146     if (TEST_Z(_flag_a, _flag_b)) goto L_36020B8B; /* 0x36020B69: je 0x36020b8b */
    147 L_36020B6B:
    148     edx = MEM32(eax + 0xE4); /* 0x36020B6B: mov edx, dword ptr [eax + 0xe4] */
    149     ecx = eax + 0xE4; /* 0x36020B71: lea ecx, [eax + 0xe4] */
    150     PUSH32(esp, 2); /* 0x36020B77: push 2 */
    151     PUSH32(esp, 0x21u); /* 0x36020B79: push 0x21 */
    152     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36020B7B: call dword ptr [edx + 4] */
    153     RECOMP_FLAGS_IN();
    154     PUSH32(esp, eax); /* 0x36020B7E: push eax */
    155     RECOMP_ICALL(0x3603DF60u); /* 0x36020B7F: call 0x3603df60 */ /* not lifted */
    156     RECOMP_FLAGS_IN();
    157     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    159     esp = esp + 4; /* 0x36020B84: add esp, 4 */
    160     _flag_k = FK_ADD;
    161     ebp = POP32_VAL(esp); /* 0x36020B87: pop ebp */
    162     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020B88: ret 4 */
    163 L_36020B8B:
    164     eax = MEM32(0x361706D4); /* 0x36020B8B: mov eax, dword ptr [0x361706d4] */
    165     ebp = POP32_VAL(esp); /* 0x36020B90: pop ebp */
    166     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020B91: ret 4 */
    167     RECOMP_REGS_OUT();
    168 }
    169 
    170 void sub_36020BA0(void) {
    171     int _fpu_cmp = 0;
    172     uint32_t _cf = 0;
    173     int _df = 1;
    174     uint32_t _flag_k = FK_NONE;
    175     uint32_t _flag_a = 0, _flag_b = 0;
    176     uint32_t _itail_tgt = 0;
    177     RECOMP_REGS_LOCALS
    178     RECOMP_ENTER(0x36020BA0u);
    179 
    180 L_36020BA0:
    181     PUSH32(esp, ebp); /* 0x36020BA0: push ebp */
    182     ebp = esp; /* 0x36020BA1: mov ebp, esp */
    183     eax = MEM32(ebp + 0x8); /* 0x36020BA3: mov eax, dword ptr [ebp + 8] */
    184     PUSH32(esp, 0); /* 0x36020BA6: push 0 */
    185     PUSH32(esp, 0x361B2CD8u); /* 0x36020BA8: push 0x361b2cd8 */
    186     PUSH32(esp, 0x361B2CC0u); /* 0x36020BAD: push 0x361b2cc0 */
    187     PUSH32(esp, 0); /* 0x36020BB2: push 0 */
    188     PUSH32(esp, eax); /* 0x36020BB4: push eax */
    189     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020BB5: call dword ptr [0x3616ff70] */
    190     RECOMP_FLAGS_IN();
    191     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    192     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    193     esp = esp + 4; /* 0x36020BBB: add esp, 4 */
    194     _flag_k = FK_ADD;
    195     PUSH32(esp, eax); /* 0x36020BBE: push eax */
    196     RECOMP_ICALL(0x3615FD86u); /* 0x36020BBF: call 0x3615fd86 */ /* not lifted */
    197     RECOMP_FLAGS_IN();
    198     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    200     esp = esp + 0x14u; /* 0x36020BC4: add esp, 0x14 */
    201     _flag_k = FK_ADD;
    202     /* test eax, eax */ /* 0x36020BC7: test eax, eax */
    203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    204     _cf = 0;
    205     _flag_k = FK_TEST;
    206     if (TEST_Z(_flag_a, _flag_b)) goto L_36020BF5; /* 0x36020BC9: je 0x36020bf5 */
    207 L_36020BCB:
    208     edx = MEM32(eax + 0xE4); /* 0x36020BCB: mov edx, dword ptr [eax + 0xe4] */
    209     ecx = eax + 0xE4; /* 0x36020BD1: lea ecx, [eax + 0xe4] */
    210     PUSH32(esp, 2); /* 0x36020BD7: push 2 */
    211     PUSH32(esp, 0x171u); /* 0x36020BD9: push 0x171 */
    212     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36020BDE: call dword ptr [edx + 4] */
    213     RECOMP_FLAGS_IN();
    214     /* test eax, eax */ /* 0x36020BE1: test eax, eax */
    215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    216     _cf = 0;
    217     _flag_k = FK_TEST;
    218     if (TEST_S(_flag_a, _flag_b)) goto L_36020BF5; /* 0x36020BE3: jl 0x36020bf5 */
    219 L_36020BE5:
    220     /* cmp eax, 3 */ /* 0x36020BE5: cmp eax, 3 */
    221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
    222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    223     _flag_k = FK_CMP;
    224     if (CMP_G(_flag_a, _flag_b)) goto L_36020BF5; /* 0x36020BE8: jg 0x36020bf5 */
    225 L_36020BEA:
    226     eax = MEM32(eax * 4 + 0x361B4F70); /* 0x36020BEA: mov eax, dword ptr [eax*4 + 0x361b4f70] */
    227     ebp = POP32_VAL(esp); /* 0x36020BF1: pop ebp */
    228     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020BF2: ret 4 */
    229 L_36020BF5:
    230     eax = MEM32(0x361706D4); /* 0x36020BF5: mov eax, dword ptr [0x361706d4] */
    231     ebp = POP32_VAL(esp); /* 0x36020BFA: pop ebp */
    232     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020BFB: ret 4 */
    233     RECOMP_REGS_OUT();
    234 }
    235 
    236 void sub_36020C00(void) {
    237     int _fpu_cmp = 0;
    238     uint32_t _cf = 0;
    239     int _df = 1;
    240     uint32_t _flag_k = FK_NONE;
    241     uint32_t _flag_a = 0, _flag_b = 0;
    242     uint32_t _itail_tgt = 0;
    243     RECOMP_REGS_LOCALS
    244     RECOMP_ENTER(0x36020C00u);
    245 
    246 L_36020C00:
    247     PUSH32(esp, ebp); /* 0x36020C00: push ebp */
    248     ebp = esp; /* 0x36020C01: mov ebp, esp */
    249     eax = MEM32(ebp + 0x8); /* 0x36020C03: mov eax, dword ptr [ebp + 8] */
    250     PUSH32(esp, eax); /* 0x36020C06: push eax */
    251     RECOMP_ICALL(0x3603D710u); /* 0x36020C07: call 0x3603d710 */ /* not lifted */
    252     RECOMP_FLAGS_IN();
    253     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    254     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    255     esp = esp + 4; /* 0x36020C0C: add esp, 4 */
    256     _flag_k = FK_ADD;
    257     ebp = POP32_VAL(esp); /* 0x36020C0F: pop ebp */
    258     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020C10: ret  */
    259     RECOMP_REGS_OUT();
    260 }
    261 
    262 void sub_36020C20(void) {
    263     int _fpu_cmp = 0;
    264     uint32_t _cf = 0;
    265     int _df = 1;
    266     uint32_t _flag_k = FK_NONE;
    267     uint32_t _flag_a = 0, _flag_b = 0;
    268     uint32_t _itail_tgt = 0;
    269     RECOMP_REGS_LOCALS
    270     RECOMP_ENTER(0x36020C20u);
    271 
    272 L_36020C20:
    273     PUSH32(esp, ebp); /* 0x36020C20: push ebp */
    274     ebp = esp; /* 0x36020C21: mov ebp, esp */
    275     eax = MEM32(ebp + 0x8); /* 0x36020C23: mov eax, dword ptr [ebp + 8] */
    276     PUSH32(esp, eax); /* 0x36020C26: push eax */
    277     RECOMP_ICALL(0x3603DE40u); /* 0x36020C27: call 0x3603de40 */ /* not lifted */
    278     RECOMP_FLAGS_IN();
    279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    281     esp = esp + 4; /* 0x36020C2C: add esp, 4 */
    282     _flag_k = FK_ADD;
    283     ebp = POP32_VAL(esp); /* 0x36020C2F: pop ebp */
    284     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020C30: ret  */
    285     RECOMP_REGS_OUT();
    286 }
    287 
    288 void sub_36020C40(void) {
    289     int _fpu_cmp = 0;
    290     uint32_t _cf = 0;
    291     int _df = 1;
    292     uint32_t _flag_k = FK_NONE;
    293     uint32_t _flag_a = 0, _flag_b = 0;
    294     uint32_t _itail_tgt = 0;
    295     RECOMP_REGS_LOCALS
    296     RECOMP_ENTER(0x36020C40u);
    297 
    298 L_36020C40:
    299     PUSH32(esp, ebp); /* 0x36020C40: push ebp */
    300     ebp = esp; /* 0x36020C41: mov ebp, esp */
    301     eax = MEM32(ebp + 0x8); /* 0x36020C43: mov eax, dword ptr [ebp + 8] */
    302     PUSH32(esp, eax); /* 0x36020C46: push eax */
    303     RECOMP_ICALL(0x3603D910u); /* 0x36020C47: call 0x3603d910 */ /* not lifted */
    304     RECOMP_FLAGS_IN();
    305     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    306     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    307     esp = esp + 4; /* 0x36020C4C: add esp, 4 */
    308     _flag_k = FK_ADD;
    309     ebp = POP32_VAL(esp); /* 0x36020C4F: pop ebp */
    310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020C50: ret  */
    311     RECOMP_REGS_OUT();
    312 }
    313 
    314 void sub_36020C60(void) {
    315     int _fpu_cmp = 0;
    316     uint32_t _cf = 0;
    317     int _df = 1;
    318     uint32_t _flag_k = FK_NONE;
    319     uint32_t _flag_a = 0, _flag_b = 0;
    320     uint32_t _itail_tgt = 0;
    321     RECOMP_REGS_LOCALS
    322     RECOMP_ENTER(0x36020C60u);
    323 
    324 L_36020C60:
    325     PUSH32(esp, ebp); /* 0x36020C60: push ebp */
    326     ebp = esp; /* 0x36020C61: mov ebp, esp */
    327     eax = MEM32(ebp + 0x8); /* 0x36020C63: mov eax, dword ptr [ebp + 8] */
    328     /* cmp eax, 1 */ /* 0x36020C66: cmp eax, 1 */
    329     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    331     _flag_k = FK_CMP;
    332     if (CMP_L(_flag_a, _flag_b)) goto L_36020C8D; /* 0x36020C69: jl 0x36020c8d */
    333 L_36020C6B:
    334     /* cmp eax, 0xDu */ /* 0x36020C6B: cmp eax, 0xd */
    335     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDu);
    336     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    337     _flag_k = FK_CMP;
    338     if (CMP_G(_flag_a, _flag_b)) goto L_36020C8D; /* 0x36020C6E: jg 0x36020c8d */
    339 L_36020C70:
    340     ecx = MEM32(ebp + 0xC); /* 0x36020C70: mov ecx, dword ptr [ebp + 0xc] */
    341     /* test ecx, ecx */ /* 0x36020C73: test ecx, ecx */
    342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    343     _cf = 0;
    344     _flag_k = FK_TEST;
    345     if (TEST_LE(_flag_a, _flag_b)) goto L_36020C8D; /* 0x36020C75: jle 0x36020c8d */
    346 L_36020C77:
    347     /* cmp ecx, 7 */ /* 0x36020C77: cmp ecx, 7 */
    348     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(7);
    349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    350     _flag_k = FK_CMP;
    351     if (CMP_GE(_flag_a, _flag_b)) goto L_36020C8D; /* 0x36020C7A: jge 0x36020c8d */
    352 L_36020C7C:
    353     eax = eax + eax * 2; /* 0x36020C7C: lea eax, [eax + eax*2] */
    354     ecx = ecx + eax * 2; /* 0x36020C7F: lea ecx, [ecx + eax*2] */
    355     eax = MEM32(ecx * 4 + 0x361B4F7C); /* 0x36020C82: mov eax, dword ptr [ecx*4 + 0x361b4f7c] */
    356     ebp = POP32_VAL(esp); /* 0x36020C89: pop ebp */
    357     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36020C8A: ret 8 */
    358 L_36020C8D:
    359     eax = MEM32(0x361B4F80); /* 0x36020C8D: mov eax, dword ptr [0x361b4f80] */
    360     ebp = POP32_VAL(esp); /* 0x36020C92: pop ebp */
    361     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36020C93: ret 8 */
    362     RECOMP_REGS_OUT();
    363 }
    364 
    365 void sub_36020CA0(void) {
    366     int _fpu_cmp = 0;
    367     uint32_t _cf = 0;
    368     int _df = 1;
    369     uint32_t _flag_k = FK_NONE;
    370     uint32_t _flag_a = 0, _flag_b = 0;
    371     uint32_t _itail_tgt = 0;
    372     RECOMP_REGS_LOCALS
    373     RECOMP_ENTER(0x36020CA0u);
    374 
    375 L_36020CA0:
    376     PUSH32(esp, ebp); /* 0x36020CA0: push ebp */
    377     ebp = esp; /* 0x36020CA1: mov ebp, esp */
    378     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    380     esp = esp - 0xCu; /* 0x36020CA3: sub esp, 0xc */
    381     _flag_k = FK_CMP;
    382     PUSH32(esp, ebx); /* 0x36020CA6: push ebx */
    383     PUSH32(esp, esi); /* 0x36020CA7: push esi */
    384     esi = MEM32(ebp + 0x8); /* 0x36020CA8: mov esi, dword ptr [ebp + 8] */
    385     eax = MEM32(esi + 0x4); /* 0x36020CAB: mov eax, dword ptr [esi + 4] */
    386     ebx = ecx; /* 0x36020CAE: mov ebx, ecx */
    387     /* cmp eax, MEM32(0x36305AE4) */ /* 0x36020CB0: cmp eax, dword ptr [0x36305ae4] */
    388     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x36305AE4));
    389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    390     _flag_k = FK_CMP;
    391     PUSH32(esp, edi); /* 0x36020CB6: push edi */
    392     if (CMP_NE(_flag_a, _flag_b)) goto L_36020CD1; /* 0x36020CB7: jne 0x36020cd1 */
    393 L_36020CB9:
    394     ecx = MEM32(esi); /* 0x36020CB9: mov ecx, dword ptr [esi] */
    395     /* cmp ecx, MEM32(0x36305AE0) */ /* 0x36020CBB: cmp ecx, dword ptr [0x36305ae0] */
    396     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x36305AE0));
    397     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    398     _flag_k = FK_CMP;
    399     if (CMP_NE(_flag_a, _flag_b)) goto L_36020CD1; /* 0x36020CC1: jne 0x36020cd1 */
    400 L_36020CC3:
    401     eax = MEM32(0x361706C0); /* 0x36020CC3: mov eax, dword ptr [0x361706c0] */
    402     edi = POP32_VAL(esp); /* 0x36020CC8: pop edi */
    403     esi = POP32_VAL(esp); /* 0x36020CC9: pop esi */
    404     ebx = POP32_VAL(esp); /* 0x36020CCA: pop ebx */
    405     esp = ebp; /* 0x36020CCB: mov esp, ebp */
    406     ebp = POP32_VAL(esp); /* 0x36020CCD: pop ebp */
    407     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020CCE: ret 4 */
    408 L_36020CD1:
    409     eax = MEM32(esi); /* 0x36020CD1: mov eax, dword ptr [esi] */
    410     /* cmp eax, 0x6Fu */ /* 0x36020CD3: cmp eax, 0x6f */
    411     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Fu);
    412     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    413     _flag_k = FK_CMP;
    414     if (CMP_NE(_flag_a, _flag_b)) goto L_36020D2F; /* 0x36020CD6: jne 0x36020d2f */
    415 L_36020CD8:
    416     ecx = ebx; /* 0x36020CD8: mov ecx, ebx */
    417     RECOMP_ICALL(0x3601F240u); /* 0x36020CDA: call 0x3601f240 */ /* not lifted */
    418     RECOMP_FLAGS_IN();
    419     ecx = eax; /* 0x36020CDF: mov ecx, eax */
    420     RECOMP_ICALL(0x36071F90u); /* 0x36020CE1: call 0x36071f90 */ /* not lifted */
    421     RECOMP_FLAGS_IN();
    422     PUSH32(esp, 0); /* 0x36020CE6: push 0 */
    423     PUSH32(esp, 0x361B5C98u); /* 0x36020CE8: push 0x361b5c98 */
    424     PUSH32(esp, 0x361B2CC0u); /* 0x36020CED: push 0x361b2cc0 */
    425     PUSH32(esp, 0); /* 0x36020CF2: push 0 */
    426     PUSH32(esp, eax); /* 0x36020CF4: push eax */
    427     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020CF5: call dword ptr [0x3616ff70] */
    428     RECOMP_FLAGS_IN();
    429     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    430     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    431     esp = esp + 4; /* 0x36020CFB: add esp, 4 */
    432     _flag_k = FK_ADD;
    433     PUSH32(esp, eax); /* 0x36020CFE: push eax */
    434     RECOMP_ICALL(0x3615FD86u); /* 0x36020CFF: call 0x3615fd86 */ /* not lifted */
    435     RECOMP_FLAGS_IN();
    436     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    437     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    438     esp = esp + 0x14u; /* 0x36020D04: add esp, 0x14 */
    439     _flag_k = FK_ADD;
    440     /* test eax, eax */ /* 0x36020D07: test eax, eax */
    441     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    442     _cf = 0;
    443     _flag_k = FK_TEST;
    444     if (TEST_Z(_flag_a, _flag_b)) goto L_36020F07; /* 0x36020D09: je 0x36020f07 */
    445 L_36020D0F:
    446     PUSH32(esp, esi); /* 0x36020D0F: push esi */
    447     ecx = eax; /* 0x36020D10: mov ecx, eax */
    448     RECOMP_ICALL(0x360AA850u); /* 0x36020D12: call 0x360aa850 */ /* not lifted */
    449     RECOMP_FLAGS_IN();
    450     /* test eax, eax */ /* 0x36020D17: test eax, eax */
    451     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    452     _cf = 0;
    453     _flag_k = FK_TEST;
    454     if (TEST_Z(_flag_a, _flag_b)) goto L_36020F07; /* 0x36020D19: je 0x36020f07 */
    455 L_36020D1F:
    456     edx = MEM32(eax); /* 0x36020D1F: mov edx, dword ptr [eax] */
    457     ecx = eax; /* 0x36020D21: mov ecx, eax */
    458     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36020D23: call dword ptr [edx + 0x40] */
    459     RECOMP_FLAGS_IN();
    460     edi = POP32_VAL(esp); /* 0x36020D26: pop edi */
    461     esi = POP32_VAL(esp); /* 0x36020D27: pop esi */
    462     ebx = POP32_VAL(esp); /* 0x36020D28: pop ebx */
    463     esp = ebp; /* 0x36020D29: mov esp, ebp */
    464     ebp = POP32_VAL(esp); /* 0x36020D2B: pop ebp */
    465     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020D2C: ret 4 */
    466 L_36020D2F:
    467     /* cmp eax, 0x64u */ /* 0x36020D2F: cmp eax, 0x64 */
    468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u);
    469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    470     _flag_k = FK_CMP;
    471     if (CMP_LE(_flag_a, _flag_b)) goto L_36020D61; /* 0x36020D32: jle 0x36020d61 */
    472 L_36020D34:
    473     /* cmp eax, 0xFAu */ /* 0x36020D34: cmp eax, 0xfa */
    474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFAu);
    475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    476     _flag_k = FK_CMP;
    477     if (CMP_GE(_flag_a, _flag_b)) goto L_36020D61; /* 0x36020D39: jge 0x36020d61 */
    478 L_36020D3B:
    479     ecx = ebx; /* 0x36020D3B: mov ecx, ebx */
    480     RECOMP_ICALL(0x3601F240u); /* 0x36020D3D: call 0x3601f240 */ /* not lifted */
    481     RECOMP_FLAGS_IN();
    482     /* test eax, eax */ /* 0x36020D42: test eax, eax */
    483     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    484     _cf = 0;
    485     _flag_k = FK_TEST;
    486     if (TEST_Z(_flag_a, _flag_b)) goto L_36020DFA; /* 0x36020D44: je 0x36020dfa */
    487 L_36020D4A:
    488     eax = MEM32(eax + 0x150); /* 0x36020D4A: mov eax, dword ptr [eax + 0x150] */
    489     PUSH32(esp, esi); /* 0x36020D50: push esi */
    490     ecx = eax; /* 0x36020D51: mov ecx, eax */
    491     RECOMP_ICALL(0x3605E450u); /* 0x36020D53: call 0x3605e450 */ /* not lifted */
    492     RECOMP_FLAGS_IN();
    493     edi = POP32_VAL(esp); /* 0x36020D58: pop edi */
    494     esi = POP32_VAL(esp); /* 0x36020D59: pop esi */
    495     ebx = POP32_VAL(esp); /* 0x36020D5A: pop ebx */
    496     esp = ebp; /* 0x36020D5B: mov esp, ebp */
    497     ebp = POP32_VAL(esp); /* 0x36020D5D: pop ebp */
    498     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020D5E: ret 4 */
    499 L_36020D61:
    500     /* cmp eax, 0xC353u */ /* 0x36020D61: cmp eax, 0xc353 */
    501     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC353u);
    502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    503     _flag_k = FK_CMP;
    504     PUSH32(esp, 0); /* 0x36020D66: push 0 */
    505     PUSH32(esp, 0x361B2CF8u); /* 0x36020D68: push 0x361b2cf8 */
    506     PUSH32(esp, 0x361B2CC0u); /* 0x36020D6D: push 0x361b2cc0 */
    507     PUSH32(esp, 0); /* 0x36020D72: push 0 */
    508     PUSH32(esp, esi); /* 0x36020D74: push esi */
    509     if (CMP_NE(_flag_a, _flag_b)) goto L_36020E08; /* 0x36020D75: jne 0x36020e08 */
    510 L_36020D7B:
    511     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020D7B: call dword ptr [0x3616ff70] */
    512     RECOMP_FLAGS_IN();
    513     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    514     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    515     esp = esp + 4; /* 0x36020D81: add esp, 4 */
    516     _flag_k = FK_ADD;
    517     PUSH32(esp, eax); /* 0x36020D84: push eax */
    518     RECOMP_ICALL(0x3615FD86u); /* 0x36020D85: call 0x3615fd86 */ /* not lifted */
    519     RECOMP_FLAGS_IN();
    520     esi = eax; /* 0x36020D8A: mov esi, eax */
    521     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    523     esp = esp + 0x14u; /* 0x36020D8C: add esp, 0x14 */
    524     _flag_k = FK_ADD;
    525     /* test esi, esi */ /* 0x36020D8F: test esi, esi */
    526     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    527     _cf = 0;
    528     _flag_k = FK_TEST;
    529     if (TEST_Z(_flag_a, _flag_b)) goto L_36020DFA; /* 0x36020D91: je 0x36020dfa */
    530 L_36020D93:
    531     eax = MEM32(esi); /* 0x36020D93: mov eax, dword ptr [esi] */
    532     PUSH32(esp, 2); /* 0x36020D95: push 2 */
    533     PUSH32(esp, 0x2BDu); /* 0x36020D97: push 0x2bd */
    534     ecx = esi; /* 0x36020D9C: mov ecx, esi */
    535     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36020D9E: call dword ptr [eax + 4] */
    536     RECOMP_FLAGS_IN();
    537     edx = MEM32(esi); /* 0x36020DA1: mov edx, dword ptr [esi] */
    538     PUSH32(esp, 2); /* 0x36020DA3: push 2 */
    539     PUSH32(esp, 0x2BFu); /* 0x36020DA5: push 0x2bf */
    540     ecx = esi; /* 0x36020DAA: mov ecx, esi */
    541     edi = eax; /* 0x36020DAC: mov edi, eax */
    542     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36020DAE: call dword ptr [edx + 4] */
    543     RECOMP_FLAGS_IN();
    544     PUSH32(esp, 2); /* 0x36020DB1: push 2 */
    545     ebx = eax; /* 0x36020DB3: mov ebx, eax */
    546     eax = MEM32(esi); /* 0x36020DB5: mov eax, dword ptr [esi] */
    547     PUSH32(esp, 0x2BEu); /* 0x36020DB7: push 0x2be */
    548     ecx = esi; /* 0x36020DBC: mov ecx, esi */
    549     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36020DBE: call dword ptr [eax + 4] */
    550     RECOMP_FLAGS_IN();
    551     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu);
    552     edi = edi & 0xFFFFu; /* 0x36020DC1: and edi, 0xffff */
    553     _cf = 0;
    554     _flag_k = FK_TEST;
    555     /* test ebx, ebx */ /* 0x36020DC7: test ebx, ebx */
    556     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    557     _cf = 0;
    558     _flag_k = FK_TEST;
    559     MEM32(ebp + (-0xC)) = edi; /* 0x36020DC9: mov dword ptr [ebp - 0xc], edi */
    560     MEM32(ebp + (-0x8)) = eax; /* 0x36020DCC: mov dword ptr [ebp - 8], eax */
    561     MEM32(ebp + (-0x4)) = ebx; /* 0x36020DCF: mov dword ptr [ebp - 4], ebx */
    562     if (TEST_NZ(_flag_a, _flag_b)) goto L_36020DD7; /* 0x36020DD2: jne 0x36020dd7 */
    563 L_36020DD4:
    564     MEM32(ebp + (-0x4)) = eax; /* 0x36020DD4: mov dword ptr [ebp - 4], eax */
    565 L_36020DD7:
    566     ecx = ebp + (-0xC); /* 0x36020DD7: lea ecx, [ebp - 0xc] */
    567     PUSH32(esp, ecx); /* 0x36020DDA: push ecx */
    568     RECOMP_ICALL(0x36089810u); /* 0x36020DDB: call 0x36089810 */ /* not lifted */
    569     RECOMP_FLAGS_IN();
    570     ecx = eax; /* 0x36020DE0: mov ecx, eax */
    571     RECOMP_ICALL(0x360894C0u); /* 0x36020DE2: call 0x360894c0 */ /* not lifted */
    572     RECOMP_FLAGS_IN();
    573     /* test eax, eax */ /* 0x36020DE7: test eax, eax */
    574     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    575     _cf = 0;
    576     _flag_k = FK_TEST;
    577     if (TEST_Z(_flag_a, _flag_b)) goto L_36020DFA; /* 0x36020DE9: je 0x36020dfa */
    578 L_36020DEB:
    579     edx = MEM32(eax); /* 0x36020DEB: mov edx, dword ptr [eax] */
    580     ecx = eax; /* 0x36020DED: mov ecx, eax */
    581     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36020DEF: call dword ptr [edx + 0x40] */
    582     RECOMP_FLAGS_IN();
    583     /* test eax, eax */ /* 0x36020DF2: test eax, eax */
    584     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    585     _cf = 0;
    586     _flag_k = FK_TEST;
    587     if (TEST_NZ(_flag_a, _flag_b)) goto L_36020F0C; /* 0x36020DF4: jne 0x36020f0c */
    588 L_36020DFA:
    589     eax = MEM32(0x361706C0); /* 0x36020DFA: mov eax, dword ptr [0x361706c0] */
    590     edi = POP32_VAL(esp); /* 0x36020DFF: pop edi */
    591     esi = POP32_VAL(esp); /* 0x36020E00: pop esi */
    592     ebx = POP32_VAL(esp); /* 0x36020E01: pop ebx */
    593     esp = ebp; /* 0x36020E02: mov esp, ebp */
    594     ebp = POP32_VAL(esp); /* 0x36020E04: pop ebp */
    595     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020E05: ret 4 */
    596 L_36020E08:
    597     edi = MEM32(0x3616FF70); /* 0x36020E08: mov edi, dword ptr [0x3616ff70] */
    598     RECOMP_ICALL(edi); /* 0x36020E0E: call edi */
    599     RECOMP_FLAGS_IN();
    600     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    601     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    602     esp = esp + 4; /* 0x36020E10: add esp, 4 */
    603     _flag_k = FK_ADD;
    604     PUSH32(esp, eax); /* 0x36020E13: push eax */
    605     RECOMP_ICALL(0x3615FD86u); /* 0x36020E14: call 0x3615fd86 */ /* not lifted */
    606     RECOMP_FLAGS_IN();
    607     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    608     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    609     esp = esp + 0x14u; /* 0x36020E19: add esp, 0x14 */
    610     _flag_k = FK_ADD;
    611     /* test eax, eax */ /* 0x36020E1C: test eax, eax */
    612     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    613     _cf = 0;
    614     _flag_k = FK_TEST;
    615     if (TEST_Z(_flag_a, _flag_b)) goto L_36020E30; /* 0x36020E1E: je 0x36020e30 */
    616 L_36020E20:
    617     edx = MEM32(eax); /* 0x36020E20: mov edx, dword ptr [eax] */
    618     ecx = eax; /* 0x36020E22: mov ecx, eax */
    619     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36020E24: call dword ptr [edx + 0x40] */
    620     RECOMP_FLAGS_IN();
    621     edi = POP32_VAL(esp); /* 0x36020E27: pop edi */
    622     esi = POP32_VAL(esp); /* 0x36020E28: pop esi */
    623     ebx = POP32_VAL(esp); /* 0x36020E29: pop ebx */
    624     esp = ebp; /* 0x36020E2A: mov esp, ebp */
    625     ebp = POP32_VAL(esp); /* 0x36020E2C: pop ebp */
    626     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020E2D: ret 4 */
    627 L_36020E30:
    628     PUSH32(esp, 0); /* 0x36020E30: push 0 */
    629     PUSH32(esp, 0x361B2CD8u); /* 0x36020E32: push 0x361b2cd8 */
    630     PUSH32(esp, 0x361B2CC0u); /* 0x36020E37: push 0x361b2cc0 */
    631     PUSH32(esp, 0); /* 0x36020E3C: push 0 */
    632     PUSH32(esp, esi); /* 0x36020E3E: push esi */
    633     RECOMP_ICALL(edi); /* 0x36020E3F: call edi */
    634     RECOMP_FLAGS_IN();
    635     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    636     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    637     esp = esp + 4; /* 0x36020E41: add esp, 4 */
    638     _flag_k = FK_ADD;
    639     PUSH32(esp, eax); /* 0x36020E44: push eax */
    640     RECOMP_ICALL(0x3615FD86u); /* 0x36020E45: call 0x3615fd86 */ /* not lifted */
    641     RECOMP_FLAGS_IN();
    642     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    643     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    644     esp = esp + 0x14u; /* 0x36020E4A: add esp, 0x14 */
    645     _flag_k = FK_ADD;
    646     /* test eax, eax */ /* 0x36020E4D: test eax, eax */
    647     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    648     _cf = 0;
    649     _flag_k = FK_TEST;
    650     if (TEST_Z(_flag_a, _flag_b)) goto L_36020E62; /* 0x36020E4F: je 0x36020e62 */
    651 L_36020E51:
    652     PUSH32(esp, esi); /* 0x36020E51: push esi */
    653     ecx = ebx; /* 0x36020E52: mov ecx, ebx */
    654     RECOMP_ICALL(0x36023DC0u); /* 0x36020E54: call 0x36023dc0 */ /* not lifted */
    655     RECOMP_FLAGS_IN();
    656     edi = POP32_VAL(esp); /* 0x36020E59: pop edi */
    657     esi = POP32_VAL(esp); /* 0x36020E5A: pop esi */
    658     ebx = POP32_VAL(esp); /* 0x36020E5B: pop ebx */
    659     esp = ebp; /* 0x36020E5C: mov esp, ebp */
    660     ebp = POP32_VAL(esp); /* 0x36020E5E: pop ebp */
    661     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020E5F: ret 4 */
    662 L_36020E62:
    663     /* cmp MEM32(esi), 0xCF1Bu */ /* 0x36020E62: cmp dword ptr [esi], 0xcf1b */
    664     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0xCF1Bu);
    665     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    666     _flag_k = FK_CMP;
    667     if (CMP_NE(_flag_a, _flag_b)) goto L_36020E89; /* 0x36020E68: jne 0x36020e89 */
    668 L_36020E6A:
    669     eax = MEM32(esi + 0x4); /* 0x36020E6A: mov eax, dword ptr [esi + 4] */
    670     PUSH32(esp, eax); /* 0x36020E6D: push eax */
    671     RECOMP_ICALL(0x360B4000u); /* 0x36020E6E: call 0x360b4000 */ /* not lifted */
    672     RECOMP_FLAGS_IN();
    673     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    674     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    675     esp = esp + 4; /* 0x36020E73: add esp, 4 */
    676     _flag_k = FK_ADD;
    677     /* test eax, eax */ /* 0x36020E76: test eax, eax */
    678     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    679     _cf = 0;
    680     _flag_k = FK_TEST;
    681     if (TEST_Z(_flag_a, _flag_b)) goto L_36020E89; /* 0x36020E78: je 0x36020e89 */
    682 L_36020E7A:
    683     edx = MEM32(eax); /* 0x36020E7A: mov edx, dword ptr [eax] */
    684     ecx = eax; /* 0x36020E7C: mov ecx, eax */
    685     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36020E7E: call dword ptr [edx + 0x40] */
    686     RECOMP_FLAGS_IN();
    687     /* test eax, eax */ /* 0x36020E81: test eax, eax */
    688     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    689     _cf = 0;
    690     _flag_k = FK_TEST;
    691     if (TEST_NZ(_flag_a, _flag_b)) goto L_36020F0C; /* 0x36020E83: jne 0x36020f0c */
    692 L_36020E89:
    693     eax = MEM32(esi); /* 0x36020E89: mov eax, dword ptr [esi] */
    694     /* cmp eax, 0xDAC3u */ /* 0x36020E8B: cmp eax, 0xdac3 */
    695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDAC3u);
    696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    697     _flag_k = FK_CMP;
    698     if (CMP_NE(_flag_a, _flag_b)) goto L_36020ECC; /* 0x36020E90: jne 0x36020ecc */
    699 L_36020E92:
    700     ecx = ebx; /* 0x36020E92: mov ecx, ebx */
    701     RECOMP_ICALL(0x3601F240u); /* 0x36020E94: call 0x3601f240 */ /* not lifted */
    702     RECOMP_FLAGS_IN();
    703     /* test eax, eax */ /* 0x36020E99: test eax, eax */
    704     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    705     _cf = 0;
    706     _flag_k = FK_TEST;
    707     if (TEST_Z(_flag_a, _flag_b)) goto L_36020F07; /* 0x36020E9B: je 0x36020f07 */
    708 L_36020E9D:
    709     PUSH32(esp, esi); /* 0x36020E9D: push esi */
    710     ecx = eax; /* 0x36020E9E: mov ecx, eax */
    711     RECOMP_ICALL(0x36071F20u); /* 0x36020EA0: call 0x36071f20 */ /* not lifted */
    712     RECOMP_FLAGS_IN();
    713     ecx = eax; /* 0x36020EA5: mov ecx, eax */
    714     RECOMP_ICALL(0x3606C600u); /* 0x36020EA7: call 0x3606c600 */ /* not lifted */
    715     RECOMP_FLAGS_IN();
    716     /* test eax, eax */ /* 0x36020EAC: test eax, eax */
    717     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    718     _cf = 0;
    719     _flag_k = FK_TEST;
    720     if (TEST_Z(_flag_a, _flag_b)) goto L_36020F07; /* 0x36020EAE: je 0x36020f07 */
    721 L_36020EB0:
    722     ecx = eax; /* 0x36020EB0: mov ecx, eax */
    723     RECOMP_ICALL(0x360C5580u); /* 0x36020EB2: call 0x360c5580 */ /* not lifted */
    724     RECOMP_FLAGS_IN();
    725     eax = MEM32(eax + 0x4); /* 0x36020EB7: mov eax, dword ptr [eax + 4] */
    726     /* test eax, eax */ /* 0x36020EBA: test eax, eax */
    727     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    728     _cf = 0;
    729     _flag_k = FK_TEST;
    730     if (TEST_NZ(_flag_a, _flag_b)) goto L_36020F0C; /* 0x36020EBC: jne 0x36020f0c */
    731 L_36020EBE:
    732     eax = MEM32(0x3616F10C); /* 0x36020EBE: mov eax, dword ptr [0x3616f10c] */
    733     edi = POP32_VAL(esp); /* 0x36020EC3: pop edi */
    734     esi = POP32_VAL(esp); /* 0x36020EC4: pop esi */
    735     ebx = POP32_VAL(esp); /* 0x36020EC5: pop ebx */
    736     esp = ebp; /* 0x36020EC6: mov esp, ebp */
    737     ebp = POP32_VAL(esp); /* 0x36020EC8: pop ebp */
    738     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020EC9: ret 4 */
    739 L_36020ECC:
    740     ecx = ebp + (-0x8); /* 0x36020ECC: lea ecx, [ebp - 8] */
    741     /* cmp ecx, esi */ /* 0x36020ECF: cmp ecx, esi */
    742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
    743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    744     _flag_k = FK_CMP;
    745     if (CMP_EQ(_flag_a, _flag_b)) goto L_36020EDA; /* 0x36020ED1: je 0x36020eda */
    746 L_36020ED3:
    747     esi = MEM32(esi + 0x4); /* 0x36020ED3: mov esi, dword ptr [esi + 4] */
    748     ecx = eax; /* 0x36020ED6: mov ecx, eax */
    749     goto L_36020EE0; /* 0x36020ED8: jmp 0x36020ee0 */
    750 L_36020EDA:
    751     esi = MEM32(ebp + (-0x4)); /* 0x36020EDA: mov esi, dword ptr [ebp - 4] */
    752     ecx = MEM32(ebp + (-0x8)); /* 0x36020EDD: mov ecx, dword ptr [ebp - 8] */
    753 L_36020EE0:
    754     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    756     esp = esp - 8; /* 0x36020EE0: sub esp, 8 */
    757     _flag_k = FK_CMP;
    758     eax = esp; /* 0x36020EE3: mov eax, esp */
    759     edx = ebp + (-0x8); /* 0x36020EE5: lea edx, [ebp - 8] */
    760     /* cmp eax, edx */ /* 0x36020EE8: cmp eax, edx */
    761     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
    762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    763     _flag_k = FK_CMP;
    764     if (CMP_EQ(_flag_a, _flag_b)) goto L_36020EF1; /* 0x36020EEA: je 0x36020ef1 */
    765 L_36020EEC:
    766     MEM32(eax) = ecx; /* 0x36020EEC: mov dword ptr [eax], ecx */
    767     MEM32(eax + 0x4) = esi; /* 0x36020EEE: mov dword ptr [eax + 4], esi */
    768 L_36020EF1:
    769     ecx = ebx; /* 0x36020EF1: mov ecx, ebx */
    770     RECOMP_ICALL(0x360273F0u); /* 0x36020EF3: call 0x360273f0 */ /* not lifted */
    771     RECOMP_FLAGS_IN();
    772     /* test eax, eax */ /* 0x36020EF8: test eax, eax */
    773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    774     _cf = 0;
    775     _flag_k = FK_TEST;
    776     if (TEST_Z(_flag_a, _flag_b)) goto L_36020F07; /* 0x36020EFA: je 0x36020f07 */
    777 L_36020EFC:
    778     edx = MEM32(eax); /* 0x36020EFC: mov edx, dword ptr [eax] */
    779     ecx = eax; /* 0x36020EFE: mov ecx, eax */
    780     RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36020F00: call dword ptr [edx + 0x40] */
    781     RECOMP_FLAGS_IN();
    782     /* test eax, eax */ /* 0x36020F03: test eax, eax */
    783     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    784     _cf = 0;
    785     _flag_k = FK_TEST;
    786     if (TEST_NZ(_flag_a, _flag_b)) goto L_36020F0C; /* 0x36020F05: jne 0x36020f0c */
    787 L_36020F07:
    788     eax = MEM32(0x361706D8); /* 0x36020F07: mov eax, dword ptr [0x361706d8] */
    789 L_36020F0C:
    790     edi = POP32_VAL(esp); /* 0x36020F0C: pop edi */
    791     esi = POP32_VAL(esp); /* 0x36020F0D: pop esi */
    792     ebx = POP32_VAL(esp); /* 0x36020F0E: pop ebx */
    793     esp = ebp; /* 0x36020F0F: mov esp, ebp */
    794     ebp = POP32_VAL(esp); /* 0x36020F11: pop ebp */
    795     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020F12: ret 4 */
    796     RECOMP_REGS_OUT();
    797 }
    798 
    799 void sub_36020F20(void) {
    800     int _fpu_cmp = 0;
    801     uint32_t _cf = 0;
    802     int _df = 1;
    803     uint32_t _flag_k = FK_NONE;
    804     uint32_t _flag_a = 0, _flag_b = 0;
    805     uint32_t _itail_tgt = 0;
    806     RECOMP_REGS_LOCALS
    807     RECOMP_ENTER(0x36020F20u);
    808 
    809 L_36020F20:
    810     PUSH32(esp, ebp); /* 0x36020F20: push ebp */
    811     ebp = esp; /* 0x36020F21: mov ebp, esp */
    812     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    814     esp = esp - 0x14u; /* 0x36020F23: sub esp, 0x14 */
    815     _flag_k = FK_CMP;
    816     PUSH32(esp, esi); /* 0x36020F26: push esi */
    817     esi = ecx; /* 0x36020F27: mov esi, ecx */
    818     ecx = MEM32(esi + 0x80); /* 0x36020F29: mov ecx, dword ptr [esi + 0x80] */
    819     /* test ecx, ecx */ /* 0x36020F2F: test ecx, ecx */
    820     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    821     _cf = 0;
    822     _flag_k = FK_TEST;
    823     if (TEST_Z(_flag_a, _flag_b)) goto L_36020FAF; /* 0x36020F31: je 0x36020faf */
    824 L_36020F33:
    825     eax = MEM32(ebp + 0x8); /* 0x36020F33: mov eax, dword ptr [ebp + 8] */
    826     edx = MEM32(eax); /* 0x36020F36: mov edx, dword ptr [eax] */
    827     MEM32(esi + 0xD0) = edx; /* 0x36020F38: mov dword ptr [esi + 0xd0], edx */
    828     edx = MEM32(ebp + 0xC); /* 0x36020F3E: mov edx, dword ptr [ebp + 0xc] */
    829     PUSH32(esp, edi); /* 0x36020F41: push edi */
    830     edi = MEM32(edx); /* 0x36020F42: mov edi, dword ptr [edx] */
    831     MEM32(esi + 0xD4) = edi; /* 0x36020F44: mov dword ptr [esi + 0xd4], edi */
    832     edx = MEM32(edx); /* 0x36020F4A: mov edx, dword ptr [edx] */
    833     eax = MEM32(eax); /* 0x36020F4C: mov eax, dword ptr [eax] */
    834     PUSH32(esp, edx); /* 0x36020F4E: push edx */
    835     PUSH32(esp, eax); /* 0x36020F4F: push eax */
    836     RECOMP_ICALL(MEM32(0x3616FF64)); /* 0x36020F50: call dword ptr [0x3616ff64] */
    837     RECOMP_FLAGS_IN();
    838     ecx = MEM32(esi + 0x80); /* 0x36020F56: mov ecx, dword ptr [esi + 0x80] */
    839     edx = MEM32(ebp + 0x10); /* 0x36020F5C: mov edx, dword ptr [ebp + 0x10] */
    840     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x110u);
    841     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    842     ecx = ecx + 0x110u; /* 0x36020F5F: add ecx, 0x110 */
    843     _flag_k = FK_ADD;
    844     eax = MEM32(ecx); /* 0x36020F65: mov eax, dword ptr [ecx] */
    845     MEM32(edx) = eax; /* 0x36020F67: mov dword ptr [edx], eax */
    846     eax = MEM32(ecx + 0x4); /* 0x36020F69: mov eax, dword ptr [ecx + 4] */
    847     MEM32(edx + 0x4) = eax; /* 0x36020F6C: mov dword ptr [edx + 4], eax */
    848     ecx = MEM32(ecx + 0x8); /* 0x36020F6F: mov ecx, dword ptr [ecx + 8] */
    849     MEM32(edx + 0x8) = ecx; /* 0x36020F72: mov dword ptr [edx + 8], ecx */
    850     ecx = MEM32(esi + 0x80); /* 0x36020F75: mov ecx, dword ptr [esi + 0x80] */
    851     RECOMP_ICALL(MEM32(0x361700A0)); /* 0x36020F7B: call dword ptr [0x361700a0] */
    852     RECOMP_FLAGS_IN();
    853     edx = ebp + (-0x14); /* 0x36020F81: lea edx, [ebp - 0x14] */
    854     /* cmp edx, eax */ /* 0x36020F84: cmp edx, eax */
    855     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
    856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    857     _flag_k = FK_CMP;
    858     edi = POP32_VAL(esp); /* 0x36020F86: pop edi */
    859     if (CMP_EQ(_flag_a, _flag_b)) goto L_36020F90; /* 0x36020F87: je 0x36020f90 */
    860 L_36020F89:
    861     edx = MEM32(eax); /* 0x36020F89: mov edx, dword ptr [eax] */
    862     ecx = MEM32(eax + 0x4); /* 0x36020F8B: mov ecx, dword ptr [eax + 4] */
    863     goto L_36020F96; /* 0x36020F8E: jmp 0x36020f96 */
    864 L_36020F90:
    865     ecx = MEM32(ebp + (-0x10)); /* 0x36020F90: mov ecx, dword ptr [ebp - 0x10] */
    866     edx = MEM32(ebp + (-0x14)); /* 0x36020F93: mov edx, dword ptr [ebp - 0x14] */
    867 L_36020F96:
    868     eax = MEM32(ebp + 0x14); /* 0x36020F96: mov eax, dword ptr [ebp + 0x14] */
    869     MEM32(eax) = edx; /* 0x36020F99: mov dword ptr [eax], edx */
    870     MEM32(eax + 0x4) = ecx; /* 0x36020F9B: mov dword ptr [eax + 4], ecx */
    871     ecx = MEM32(eax); /* 0x36020F9E: mov ecx, dword ptr [eax] */
    872     MEM32(esi + 0xD8) = ecx; /* 0x36020FA0: mov dword ptr [esi + 0xd8], ecx */
    873     edx = MEM32(eax + 0x4); /* 0x36020FA6: mov edx, dword ptr [eax + 4] */
    874     MEM32(esi + 0xDC) = edx; /* 0x36020FA9: mov dword ptr [esi + 0xdc], edx */
    875 L_36020FAF:
    876     esi = POP32_VAL(esp); /* 0x36020FAF: pop esi */
    877     esp = ebp; /* 0x36020FB0: mov esp, ebp */
    878     ebp = POP32_VAL(esp); /* 0x36020FB2: pop ebp */
    879     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36020FB3: ret 0x10 */
    880     RECOMP_REGS_OUT();
    881 }
    882 
    883 void sub_36020FC0(void) {
    884     int _fpu_cmp = 0;
    885     uint32_t _cf = 0;
    886     int _df = 1;
    887     uint32_t _flag_k = FK_NONE;
    888     uint32_t _flag_a = 0, _flag_b = 0;
    889     uint32_t _itail_tgt = 0;
    890     RECOMP_REGS_LOCALS
    891     RECOMP_ENTER(0x36020FC0u);
    892 
    893 L_36020FC0:
    894     PUSH32(esp, ebp); /* 0x36020FC0: push ebp */
    895     ebp = esp; /* 0x36020FC1: mov ebp, esp */
    896     RECOMP_ICALL(0x3601F240u); /* 0x36020FC3: call 0x3601f240 */ /* not lifted */
    897     RECOMP_FLAGS_IN();
    898     /* test eax, eax */ /* 0x36020FC8: test eax, eax */
    899     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    900     _cf = 0;
    901     _flag_k = FK_TEST;
    902     if (TEST_Z(_flag_a, _flag_b)) goto L_36020FF8; /* 0x36020FCA: je 0x36020ff8 */
    903 L_36020FCC:
    904     ecx = MEM32(ebp + 0x8); /* 0x36020FCC: mov ecx, dword ptr [ebp + 8] */
    905     PUSH32(esp, ecx); /* 0x36020FCF: push ecx */
    906     ecx = eax; /* 0x36020FD0: mov ecx, eax */
    907     RECOMP_ICALL(0x36071F20u); /* 0x36020FD2: call 0x36071f20 */ /* not lifted */
    908     RECOMP_FLAGS_IN();
    909     ecx = eax; /* 0x36020FD7: mov ecx, eax */
    910     RECOMP_ICALL(0x3606C600u); /* 0x36020FD9: call 0x3606c600 */ /* not lifted */
    911     RECOMP_FLAGS_IN();
    912     /* test eax, eax */ /* 0x36020FDE: test eax, eax */
    913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    914     _cf = 0;
    915     _flag_k = FK_TEST;
    916     if (TEST_Z(_flag_a, _flag_b)) goto L_36020FF8; /* 0x36020FE0: je 0x36020ff8 */
    917 L_36020FE2:
    918     ecx = eax; /* 0x36020FE2: mov ecx, eax */
    919     RECOMP_ICALL(0x360C54E0u); /* 0x36020FE4: call 0x360c54e0 */ /* not lifted */
    920     RECOMP_FLAGS_IN();
    921     /* test eax, eax */ /* 0x36020FE9: test eax, eax */
    922     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    923     _cf = 0;
    924     _flag_k = FK_TEST;
    925     if (TEST_Z(_flag_a, _flag_b)) goto L_36020FF8; /* 0x36020FEB: je 0x36020ff8 */
    926 L_36020FED:
    927     ecx = eax; /* 0x36020FED: mov ecx, eax */
    928     RECOMP_ICALL(0x3609C020u); /* 0x36020FEF: call 0x3609c020 */ /* not lifted */
    929     RECOMP_FLAGS_IN();
    930     ebp = POP32_VAL(esp); /* 0x36020FF4: pop ebp */
    931     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020FF5: ret 4 */
    932 L_36020FF8:
    933     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    934     eax = 0; /* 0x36020FF8: xor eax, eax */
    935     _cf = 0;
    936     _flag_k = FK_TEST;
    937     ebp = POP32_VAL(esp); /* 0x36020FFA: pop ebp */
    938     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020FFB: ret 4 */
    939     RECOMP_REGS_OUT();
    940 }
    941 
    942 void sub_36021000(void) {
    943     int _fpu_cmp = 0;
    944     uint32_t _cf = 0;
    945     int _df = 1;
    946     uint32_t _flag_k = FK_NONE;
    947     uint32_t _flag_a = 0, _flag_b = 0;
    948     uint32_t _itail_tgt = 0;
    949     RECOMP_REGS_LOCALS
    950     RECOMP_ENTER(0x36021000u);
    951 
    952 L_36021000:
    953     PUSH32(esp, ebp); /* 0x36021000: push ebp */
    954     ebp = esp; /* 0x36021001: mov ebp, esp */
    955     RECOMP_ICALL(0x3601F240u); /* 0x36021003: call 0x3601f240 */ /* not lifted */
    956     RECOMP_FLAGS_IN();
    957     /* test eax, eax */ /* 0x36021008: test eax, eax */
    958     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    959     _cf = 0;
    960     _flag_k = FK_TEST;
    961     if (TEST_Z(_flag_a, _flag_b)) goto L_36021038; /* 0x3602100A: je 0x36021038 */
    962 L_3602100C:
    963     ecx = MEM32(ebp + 0x8); /* 0x3602100C: mov ecx, dword ptr [ebp + 8] */
    964     PUSH32(esp, ecx); /* 0x3602100F: push ecx */
    965     ecx = eax; /* 0x36021010: mov ecx, eax */
    966     RECOMP_ICALL(0x36071F20u); /* 0x36021012: call 0x36071f20 */ /* not lifted */
    967     RECOMP_FLAGS_IN();
    968     ecx = eax; /* 0x36021017: mov ecx, eax */
    969     RECOMP_ICALL(0x3606C600u); /* 0x36021019: call 0x3606c600 */ /* not lifted */
    970     RECOMP_FLAGS_IN();
    971     /* test eax, eax */ /* 0x3602101E: test eax, eax */
    972     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    973     _cf = 0;
    974     _flag_k = FK_TEST;
    975     if (TEST_Z(_flag_a, _flag_b)) goto L_36021038; /* 0x36021020: je 0x36021038 */
    976 L_36021022:
    977     ecx = eax; /* 0x36021022: mov ecx, eax */
    978     RECOMP_ICALL(0x360C54E0u); /* 0x36021024: call 0x360c54e0 */ /* not lifted */
    979     RECOMP_FLAGS_IN();
    980     /* test eax, eax */ /* 0x36021029: test eax, eax */
    981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    982     _cf = 0;
    983     _flag_k = FK_TEST;
    984     if (TEST_Z(_flag_a, _flag_b)) goto L_36021038; /* 0x3602102B: je 0x36021038 */
    985 L_3602102D:
    986     ecx = eax; /* 0x3602102D: mov ecx, eax */
    987     RECOMP_ICALL(0x360D9CB0u); /* 0x3602102F: call 0x360d9cb0 */ /* not lifted */
    988     RECOMP_FLAGS_IN();
    989     ebp = POP32_VAL(esp); /* 0x36021034: pop ebp */
    990     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021035: ret 4 */
    991 L_36021038:
    992     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    993     eax = 0; /* 0x36021038: xor eax, eax */
    994     _cf = 0;
    995     _flag_k = FK_TEST;
    996     ebp = POP32_VAL(esp); /* 0x3602103A: pop ebp */
    997     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602103B: ret 4 */
    998     RECOMP_REGS_OUT();
    999 }
   1000 
   1001 void sub_36021040(void) {
   1002     int _fpu_cmp = 0;
   1003     uint32_t _cf = 0;
   1004     int _df = 1;
   1005     uint32_t _flag_k = FK_NONE;
   1006     uint32_t _flag_a = 0, _flag_b = 0;
   1007     uint32_t _itail_tgt = 0;
   1008     RECOMP_REGS_LOCALS
   1009     RECOMP_ENTER(0x36021040u);
   1010 
   1011 L_36021040:
   1012     PUSH32(esp, ebp); /* 0x36021040: push ebp */
   1013     ebp = esp; /* 0x36021041: mov ebp, esp */
   1014     RECOMP_ICALL(0x3601F240u); /* 0x36021043: call 0x3601f240 */ /* not lifted */
   1015     RECOMP_FLAGS_IN();
   1016     /* test eax, eax */ /* 0x36021048: test eax, eax */
   1017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1018     _cf = 0;
   1019     _flag_k = FK_TEST;
   1020     if (TEST_Z(_flag_a, _flag_b)) goto L_36021074; /* 0x3602104A: je 0x36021074 */
   1021 L_3602104C:
   1022     ecx = MEM32(ebp + 0x8); /* 0x3602104C: mov ecx, dword ptr [ebp + 8] */
   1023     PUSH32(esp, ecx); /* 0x3602104F: push ecx */
   1024     ecx = eax; /* 0x36021050: mov ecx, eax */
   1025     RECOMP_ICALL(0x36071F20u); /* 0x36021052: call 0x36071f20 */ /* not lifted */
   1026     RECOMP_FLAGS_IN();
   1027     ecx = eax; /* 0x36021057: mov ecx, eax */
   1028     RECOMP_ICALL(0x3606C600u); /* 0x36021059: call 0x3606c600 */ /* not lifted */
   1029     RECOMP_FLAGS_IN();
   1030     /* test eax, eax */ /* 0x3602105E: test eax, eax */
   1031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1032     _cf = 0;
   1033     _flag_k = FK_TEST;
   1034     if (TEST_Z(_flag_a, _flag_b)) goto L_36021074; /* 0x36021060: je 0x36021074 */
   1035 L_36021062:
   1036     ecx = eax; /* 0x36021062: mov ecx, eax */
   1037     RECOMP_ICALL(0x360C54E0u); /* 0x36021064: call 0x360c54e0 */ /* not lifted */
   1038     RECOMP_FLAGS_IN();
   1039     /* test eax, eax */ /* 0x36021069: test eax, eax */
   1040     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1041     _cf = 0;
   1042     _flag_k = FK_TEST;
   1043     if (TEST_Z(_flag_a, _flag_b)) goto L_36021074; /* 0x3602106B: je 0x36021074 */
   1044 L_3602106D:
   1045     eax = MEM32(eax + 0x3C); /* 0x3602106D: mov eax, dword ptr [eax + 0x3c] */
   1046     ebp = POP32_VAL(esp); /* 0x36021070: pop ebp */
   1047     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021071: ret 4 */
   1048 L_36021074:
   1049     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1050     eax = 0; /* 0x36021074: xor eax, eax */
   1051     _cf = 0;
   1052     _flag_k = FK_TEST;
   1053     ebp = POP32_VAL(esp); /* 0x36021076: pop ebp */
   1054     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021077: ret 4 */
   1055     RECOMP_REGS_OUT();
   1056 }
   1057 
   1058 void sub_36021080(void) {
   1059     int _fpu_cmp = 0;
   1060     uint32_t _cf = 0;
   1061     int _df = 1;
   1062     uint32_t _flag_k = FK_NONE;
   1063     uint32_t _flag_a = 0, _flag_b = 0;
   1064     uint32_t _itail_tgt = 0;
   1065     RECOMP_REGS_LOCALS
   1066     RECOMP_ENTER(0x36021080u);
   1067 
   1068 L_36021080:
   1069     PUSH32(esp, ebp); /* 0x36021080: push ebp */
   1070     ebp = esp; /* 0x36021081: mov ebp, esp */
   1071     eax = MEM32(ebp + 0x8); /* 0x36021083: mov eax, dword ptr [ebp + 8] */
   1072     ecx = MEM32(ecx + 0xF4); /* 0x36021086: mov ecx, dword ptr [ecx + 0xf4] */
   1073     PUSH32(esp, eax); /* 0x3602108C: push eax */
   1074     RECOMP_ICALL(0x360F38B0u); /* 0x3602108D: call 0x360f38b0 */ /* not lifted */
   1075     RECOMP_FLAGS_IN();
   1076     ebp = POP32_VAL(esp); /* 0x36021092: pop ebp */
   1077     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021093: ret 4 */
   1078     RECOMP_REGS_OUT();
   1079 }
   1080 
   1081 void sub_360210A0(void) {
   1082     int _fpu_cmp = 0;
   1083     uint32_t _cf = 0;
   1084     int _df = 1;
   1085     uint32_t _flag_k = FK_NONE;
   1086     uint32_t _flag_a = 0, _flag_b = 0;
   1087     uint32_t _itail_tgt = 0;
   1088     RECOMP_REGS_LOCALS
   1089     RECOMP_ENTER(0x360210A0u);
   1090 
   1091 L_360210A0:
   1092     PUSH32(esp, ebp); /* 0x360210A0: push ebp */
   1093     ebp = esp; /* 0x360210A1: mov ebp, esp */
   1094     eax = MEM32(ebp + 0x8); /* 0x360210A3: mov eax, dword ptr [ebp + 8] */
   1095     ecx = MEM32(ecx + 0xF4); /* 0x360210A6: mov ecx, dword ptr [ecx + 0xf4] */
   1096     PUSH32(esp, eax); /* 0x360210AC: push eax */
   1097     RECOMP_ICALL(0x3609C030u); /* 0x360210AD: call 0x3609c030 */ /* not lifted */
   1098     RECOMP_FLAGS_IN();
   1099     ebp = POP32_VAL(esp); /* 0x360210B2: pop ebp */
   1100     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360210B3: ret 4 */
   1101     RECOMP_REGS_OUT();
   1102 }
   1103 
   1104 void sub_360210C0(void) {
   1105     int _fpu_cmp = 0;
   1106     uint32_t _cf = 0;
   1107     int _df = 1;
   1108     uint32_t _flag_k = FK_NONE;
   1109     uint32_t _flag_a = 0, _flag_b = 0;
   1110     uint32_t _itail_tgt = 0;
   1111     RECOMP_REGS_LOCALS
   1112     RECOMP_ENTER(0x360210C0u);
   1113 
   1114 L_360210C0:
   1115     PUSH32(esp, ebp); /* 0x360210C0: push ebp */
   1116     ebp = esp; /* 0x360210C1: mov ebp, esp */
   1117     PUSH32(esp, esi); /* 0x360210C3: push esi */
   1118     esi = ecx; /* 0x360210C4: mov esi, ecx */
   1119     RECOMP_ICALL(0x3601F240u); /* 0x360210C6: call 0x3601f240 */ /* not lifted */
   1120     RECOMP_FLAGS_IN();
   1121     /* test eax, eax */ /* 0x360210CB: test eax, eax */
   1122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1123     _cf = 0;
   1124     _flag_k = FK_TEST;
   1125     if (TEST_Z(_flag_a, _flag_b)) goto L_360210DE; /* 0x360210CD: je 0x360210de */
   1126 L_360210CF:
   1127     eax = MEM32(ebp + 0x8); /* 0x360210CF: mov eax, dword ptr [ebp + 8] */
   1128     ecx = MEM32(esi + 0xF4); /* 0x360210D2: mov ecx, dword ptr [esi + 0xf4] */
   1129     PUSH32(esp, eax); /* 0x360210D8: push eax */
   1130     RECOMP_ICALL(0x3609BF60u); /* 0x360210D9: call 0x3609bf60 */ /* not lifted */
   1131     RECOMP_FLAGS_IN();
   1132 L_360210DE:
   1133     esi = POP32_VAL(esp); /* 0x360210DE: pop esi */
   1134     ebp = POP32_VAL(esp); /* 0x360210DF: pop ebp */
   1135     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360210E0: ret 4 */
   1136     RECOMP_REGS_OUT();
   1137 }
   1138 
   1139 void sub_360210F0(void) {
   1140     int _fpu_cmp = 0;
   1141     uint32_t _cf = 0;
   1142     int _df = 1;
   1143     uint32_t _flag_k = FK_NONE;
   1144     uint32_t _flag_a = 0, _flag_b = 0;
   1145     uint32_t _itail_tgt = 0;
   1146     RECOMP_REGS_LOCALS
   1147     RECOMP_ENTER(0x360210F0u);
   1148 
   1149 L_360210F0:
   1150     PUSH32(esp, ebp); /* 0x360210F0: push ebp */
   1151     ebp = esp; /* 0x360210F1: mov ebp, esp */
   1152     PUSH32(esp, esi); /* 0x360210F3: push esi */
   1153     esi = ecx; /* 0x360210F4: mov esi, ecx */
   1154     RECOMP_ICALL(0x3601F240u); /* 0x360210F6: call 0x3601f240 */ /* not lifted */
   1155     RECOMP_FLAGS_IN();
   1156     /* test eax, eax */ /* 0x360210FB: test eax, eax */
   1157     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1158     _cf = 0;
   1159     _flag_k = FK_TEST;
   1160     if (TEST_Z(_flag_a, _flag_b)) goto L_3602110E; /* 0x360210FD: je 0x3602110e */
   1161 L_360210FF:
   1162     eax = MEM32(ebp + 0x8); /* 0x360210FF: mov eax, dword ptr [ebp + 8] */
   1163     ecx = MEM32(esi + 0xF4); /* 0x36021102: mov ecx, dword ptr [esi + 0xf4] */
   1164     PUSH32(esp, eax); /* 0x36021108: push eax */
   1165     RECOMP_ICALL(0x3609BFC0u); /* 0x36021109: call 0x3609bfc0 */ /* not lifted */
   1166     RECOMP_FLAGS_IN();
   1167 L_3602110E:
   1168     esi = POP32_VAL(esp); /* 0x3602110E: pop esi */
   1169     ebp = POP32_VAL(esp); /* 0x3602110F: pop ebp */
   1170     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021110: ret 4 */
   1171     RECOMP_REGS_OUT();
   1172 }
   1173 
   1174 void sub_36021120(void) {
   1175     int _fpu_cmp = 0;
   1176     uint32_t _cf = 0;
   1177     int _df = 1;
   1178     uint32_t _flag_k = FK_NONE;
   1179     uint32_t _flag_a = 0, _flag_b = 0;
   1180     uint32_t _itail_tgt = 0;
   1181     RECOMP_REGS_LOCALS
   1182     RECOMP_ENTER(0x36021120u);
   1183 
   1184 L_36021120:
   1185     PUSH32(esp, ebp); /* 0x36021120: push ebp */
   1186     ebp = esp; /* 0x36021121: mov ebp, esp */
   1187     PUSH32(esp, 0xFFFFFFFFu); /* 0x36021123: push -1 */
   1188     PUSH32(esp, 0x3616308Bu); /* 0x36021125: push 0x3616308b */
   1189     eax = MEM32(FS_BASE + (0)); /* 0x3602112A: mov eax, dword ptr fs:[0] */
   1190     PUSH32(esp, eax); /* 0x36021130: push eax */
   1191     MEM32(FS_BASE + (0)) = esp; /* 0x36021131: mov dword ptr fs:[0], esp */
   1192     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1194     esp = esp - 8; /* 0x36021138: sub esp, 8 */
   1195     _flag_k = FK_CMP;
   1196     PUSH32(esp, esi); /* 0x3602113B: push esi */
   1197     RECOMP_ICALL(0x3601F240u); /* 0x3602113C: call 0x3601f240 */ /* not lifted */
   1198     RECOMP_FLAGS_IN();
   1199     esi = eax; /* 0x36021141: mov esi, eax */
   1200     /* test esi, esi */ /* 0x36021143: test esi, esi */
   1201     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1202     _cf = 0;
   1203     _flag_k = FK_TEST;
   1204     if (TEST_Z(_flag_a, _flag_b)) goto L_360211A8; /* 0x36021145: je 0x360211a8 */
   1205 L_36021147:
   1206     eax = MEM32(esi + 0xE4); /* 0x36021147: mov eax, dword ptr [esi + 0xe4] */
   1207     ecx = esi + 0xE4; /* 0x3602114D: lea ecx, [esi + 0xe4] */
   1208     PUSH32(esp, 2); /* 0x36021153: push 2 */
   1209     PUSH32(esp, 0xD7u); /* 0x36021155: push 0xd7 */
   1210     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3602115A: call dword ptr [eax + 4] */
   1211     RECOMP_FLAGS_IN();
   1212     /* test eax, eax */ /* 0x3602115D: test eax, eax */
   1213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1214     _cf = 0;
   1215     _flag_k = FK_TEST;
   1216     if (TEST_Z(_flag_a, _flag_b)) goto L_360211A8; /* 0x3602115F: je 0x360211a8 */
   1217 L_36021161:
   1218     PUSH32(esp, 0x34u); /* 0x36021161: push 0x34 */
   1219     RECOMP_ICALL(0x3615FD6Au); /* 0x36021163: call 0x3615fd6a */ /* not lifted */
   1220     RECOMP_FLAGS_IN();
   1221     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1222     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1223     esp = esp + 4; /* 0x36021168: add esp, 4 */
   1224     _flag_k = FK_ADD;
   1225     MEM32(ebp + (-0x14)) = eax; /* 0x3602116B: mov dword ptr [ebp - 0x14], eax */
   1226     /* test eax, eax */ /* 0x3602116E: test eax, eax */
   1227     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1228     _cf = 0;
   1229     _flag_k = FK_TEST;
   1230     MEM32(ebp + (-0x4)) = 0; /* 0x36021170: mov dword ptr [ebp - 4], 0 */
   1231     if (TEST_Z(_flag_a, _flag_b)) goto L_36021190; /* 0x36021177: je 0x36021190 */
   1232 L_36021179:
   1233     ecx = MEM32(ebp + 0xC); /* 0x36021179: mov ecx, dword ptr [ebp + 0xc] */
   1234     edx = MEM32(ebp + 0x8); /* 0x3602117C: mov edx, dword ptr [ebp + 8] */
   1235     PUSH32(esp, ecx); /* 0x3602117F: push ecx */
   1236     PUSH32(esp, edx); /* 0x36021180: push edx */
   1237     PUSH32(esp, 2); /* 0x36021181: push 2 */
   1238     ecx = esi + 0x4; /* 0x36021183: lea ecx, [esi + 4] */
   1239     PUSH32(esp, ecx); /* 0x36021186: push ecx */
   1240     ecx = eax; /* 0x36021187: mov ecx, eax */
   1241     RECOMP_ICALL(0x36080960u); /* 0x36021189: call 0x36080960 */ /* not lifted */
   1242     RECOMP_FLAGS_IN();
   1243     goto L_36021192; /* 0x3602118E: jmp 0x36021192 */
   1244 L_36021190:
   1245     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1246     eax = 0; /* 0x36021190: xor eax, eax */
   1247     _cf = 0;
   1248     _flag_k = FK_TEST;
   1249 L_36021192:
   1250     edx = ebp + (-0x10); /* 0x36021192: lea edx, [ebp - 0x10] */
   1251     PUSH32(esp, edx); /* 0x36021195: push edx */
   1252     ecx = esi; /* 0x36021196: mov ecx, esi */
   1253     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36021198: mov dword ptr [ebp - 4], 0xffffffff */
   1254     MEM32(ebp + (-0x10)) = eax; /* 0x3602119F: mov dword ptr [ebp - 0x10], eax */
   1255     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360211A2: call dword ptr [0x3617004c] */
   1256     RECOMP_FLAGS_IN();
   1257 L_360211A8:
   1258     ecx = MEM32(ebp + (-0xC)); /* 0x360211A8: mov ecx, dword ptr [ebp - 0xc] */
   1259     esi = POP32_VAL(esp); /* 0x360211AB: pop esi */
   1260     MEM32(FS_BASE + (0)) = ecx; /* 0x360211AC: mov dword ptr fs:[0], ecx */
   1261     esp = ebp; /* 0x360211B3: mov esp, ebp */
   1262     ebp = POP32_VAL(esp); /* 0x360211B5: pop ebp */
   1263     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360211B6: ret 8 */
   1264     RECOMP_REGS_OUT();
   1265 }
   1266 
   1267 void sub_360211C0(void) {
   1268     int _fpu_cmp = 0;
   1269     uint32_t _cf = 0;
   1270     int _df = 1;
   1271     uint32_t _flag_k = FK_NONE;
   1272     uint32_t _flag_a = 0, _flag_b = 0;
   1273     uint32_t _itail_tgt = 0;
   1274     RECOMP_REGS_LOCALS
   1275     RECOMP_ENTER(0x360211C0u);
   1276 
   1277 L_360211C0:
   1278     PUSH32(esp, ebp); /* 0x360211C0: push ebp */
   1279     ebp = esp; /* 0x360211C1: mov ebp, esp */
   1280     PUSH32(esp, 0xFFFFFFFFu); /* 0x360211C3: push -1 */
   1281     PUSH32(esp, 0x361630ABu); /* 0x360211C5: push 0x361630ab */
   1282     eax = MEM32(FS_BASE + (0)); /* 0x360211CA: mov eax, dword ptr fs:[0] */
   1283     PUSH32(esp, eax); /* 0x360211D0: push eax */
   1284     MEM32(FS_BASE + (0)) = esp; /* 0x360211D1: mov dword ptr fs:[0], esp */
   1285     PUSH32(esp, ecx); /* 0x360211D8: push ecx */
   1286     PUSH32(esp, esi); /* 0x360211D9: push esi */
   1287     RECOMP_ICALL(0x3601F240u); /* 0x360211DA: call 0x3601f240 */ /* not lifted */
   1288     RECOMP_FLAGS_IN();
   1289     esi = eax; /* 0x360211DF: mov esi, eax */
   1290     /* test esi, esi */ /* 0x360211E1: test esi, esi */
   1291     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1292     _cf = 0;
   1293     _flag_k = FK_TEST;
   1294     if (TEST_Z(_flag_a, _flag_b)) goto L_3602124E; /* 0x360211E3: je 0x3602124e */
   1295 L_360211E5:
   1296     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360211E5: mov al, byte ptr [ebp + 0x10] */
   1297     /* test LO8(eax), LO8(eax) */ /* 0x360211E8: test al, al */
   1298     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1299     _cf = 0;
   1300     _flag_k = FK_NARROW(FK_TEST, 24);
   1301     PUSH32(esp, edi); /* 0x360211EA: push edi */
   1302     edi = 3; /* 0x360211EB: mov edi, 3 */
   1303     if (TEST_NZ(_flag_a, _flag_b)) goto L_360211F7; /* 0x360211F0: jne 0x360211f7 */
   1304 L_360211F2:
   1305     edi = 4; /* 0x360211F2: mov edi, 4 */
   1306 L_360211F7:
   1307     PUSH32(esp, 0x34u); /* 0x360211F7: push 0x34 */
   1308     RECOMP_ICALL(0x3615FD6Au); /* 0x360211F9: call 0x3615fd6a */ /* not lifted */
   1309     RECOMP_FLAGS_IN();
   1310     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1311     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1312     esp = esp + 4; /* 0x360211FE: add esp, 4 */
   1313     _flag_k = FK_ADD;
   1314     MEM32(ebp + (-0x10)) = eax; /* 0x36021201: mov dword ptr [ebp - 0x10], eax */
   1315     /* test eax, eax */ /* 0x36021204: test eax, eax */
   1316     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1317     _cf = 0;
   1318     _flag_k = FK_TEST;
   1319     MEM32(ebp + (-0x4)) = 0; /* 0x36021206: mov dword ptr [ebp - 4], 0 */
   1320     if (TEST_Z(_flag_a, _flag_b)) goto L_36021225; /* 0x3602120D: je 0x36021225 */
   1321 L_3602120F:
   1322     ecx = MEM32(ebp + 0xC); /* 0x3602120F: mov ecx, dword ptr [ebp + 0xc] */
   1323     edx = MEM32(ebp + 0x8); /* 0x36021212: mov edx, dword ptr [ebp + 8] */
   1324     PUSH32(esp, ecx); /* 0x36021215: push ecx */
   1325     PUSH32(esp, edx); /* 0x36021216: push edx */
   1326     PUSH32(esp, edi); /* 0x36021217: push edi */
   1327     ecx = esi + 0x4; /* 0x36021218: lea ecx, [esi + 4] */
   1328     PUSH32(esp, ecx); /* 0x3602121B: push ecx */
   1329     ecx = eax; /* 0x3602121C: mov ecx, eax */
   1330     RECOMP_ICALL(0x36080960u); /* 0x3602121E: call 0x36080960 */ /* not lifted */
   1331     RECOMP_FLAGS_IN();
   1332     goto L_36021227; /* 0x36021223: jmp 0x36021227 */
   1333 L_36021225:
   1334     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1335     eax = 0; /* 0x36021225: xor eax, eax */
   1336     _cf = 0;
   1337     _flag_k = FK_TEST;
   1338 L_36021227:
   1339     edx = ebp + 0x10; /* 0x36021227: lea edx, [ebp + 0x10] */
   1340     PUSH32(esp, edx); /* 0x3602122A: push edx */
   1341     ecx = esi; /* 0x3602122B: mov ecx, esi */
   1342     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602122D: mov dword ptr [ebp - 4], 0xffffffff */
   1343     MEM32(ebp + 0x10) = eax; /* 0x36021234: mov dword ptr [ebp + 0x10], eax */
   1344     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36021237: call dword ptr [0x3617004c] */
   1345     RECOMP_FLAGS_IN();
   1346     PUSH32(esp, 0); /* 0x3602123D: push 0 */
   1347     ecx = esi; /* 0x3602123F: mov ecx, esi */
   1348     RECOMP_ICALL(0x36071F20u); /* 0x36021241: call 0x36071f20 */ /* not lifted */
   1349     RECOMP_FLAGS_IN();
   1350     ecx = eax; /* 0x36021246: mov ecx, eax */
   1351     RECOMP_ICALL(0x3606C680u); /* 0x36021248: call 0x3606c680 */ /* not lifted */
   1352     RECOMP_FLAGS_IN();
   1353     edi = POP32_VAL(esp); /* 0x3602124D: pop edi */
   1354 L_3602124E:
   1355     ecx = MEM32(ebp + (-0xC)); /* 0x3602124E: mov ecx, dword ptr [ebp - 0xc] */
   1356     esi = POP32_VAL(esp); /* 0x36021251: pop esi */
   1357     MEM32(FS_BASE + (0)) = ecx; /* 0x36021252: mov dword ptr fs:[0], ecx */
   1358     esp = ebp; /* 0x36021259: mov esp, ebp */
   1359     ebp = POP32_VAL(esp); /* 0x3602125B: pop ebp */
   1360     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602125C: ret 0xc */
   1361     RECOMP_REGS_OUT();
   1362 }
   1363 
   1364 void sub_36021260(void) {
   1365     int _fpu_cmp = 0;
   1366     uint32_t _cf = 0;
   1367     int _df = 1;
   1368     uint32_t _flag_k = FK_NONE;
   1369     uint32_t _flag_a = 0, _flag_b = 0;
   1370     uint32_t _itail_tgt = 0;
   1371     RECOMP_REGS_LOCALS
   1372     RECOMP_ENTER(0x36021260u);
   1373 
   1374 L_36021260:
   1375     PUSH32(esp, ebp); /* 0x36021260: push ebp */
   1376     ebp = esp; /* 0x36021261: mov ebp, esp */
   1377     PUSH32(esp, 0xFFFFFFFFu); /* 0x36021263: push -1 */
   1378     PUSH32(esp, 0x361630CBu); /* 0x36021265: push 0x361630cb */
   1379     eax = MEM32(FS_BASE + (0)); /* 0x3602126A: mov eax, dword ptr fs:[0] */
   1380     PUSH32(esp, eax); /* 0x36021270: push eax */
   1381     MEM32(FS_BASE + (0)) = esp; /* 0x36021271: mov dword ptr fs:[0], esp */
   1382     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1384     esp = esp - 8; /* 0x36021278: sub esp, 8 */
   1385     _flag_k = FK_CMP;
   1386     PUSH32(esp, esi); /* 0x3602127B: push esi */
   1387     RECOMP_ICALL(0x3601F240u); /* 0x3602127C: call 0x3601f240 */ /* not lifted */
   1388     RECOMP_FLAGS_IN();
   1389     esi = eax; /* 0x36021281: mov esi, eax */
   1390     /* test esi, esi */ /* 0x36021283: test esi, esi */
   1391     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1392     _cf = 0;
   1393     _flag_k = FK_TEST;
   1394     if (TEST_Z(_flag_a, _flag_b)) goto L_360212DE; /* 0x36021285: je 0x360212de */
   1395 L_36021287:
   1396     PUSH32(esp, edi); /* 0x36021287: push edi */
   1397     PUSH32(esp, 0x34u); /* 0x36021288: push 0x34 */
   1398     RECOMP_ICALL(0x3615FD6Au); /* 0x3602128A: call 0x3615fd6a */ /* not lifted */
   1399     RECOMP_FLAGS_IN();
   1400     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1402     esp = esp + 4; /* 0x3602128F: add esp, 4 */
   1403     _flag_k = FK_ADD;
   1404     MEM32(ebp + (-0x14)) = eax; /* 0x36021292: mov dword ptr [ebp - 0x14], eax */
   1405     /* test eax, eax */ /* 0x36021295: test eax, eax */
   1406     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1407     _cf = 0;
   1408     _flag_k = FK_TEST;
   1409     edi = MEM32(ebp + 0x8); /* 0x36021297: mov edi, dword ptr [ebp + 8] */
   1410     MEM32(ebp + (-0x4)) = 0; /* 0x3602129A: mov dword ptr [ebp - 4], 0 */
   1411     if (TEST_Z(_flag_a, _flag_b)) goto L_360212B8; /* 0x360212A1: je 0x360212b8 */
   1412 L_360212A3:
   1413     PUSH32(esp, 0x362EA510u); /* 0x360212A3: push 0x362ea510 */
   1414     PUSH32(esp, edi); /* 0x360212A8: push edi */
   1415     PUSH32(esp, 5); /* 0x360212A9: push 5 */
   1416     ecx = esi + 0x4; /* 0x360212AB: lea ecx, [esi + 4] */
   1417     PUSH32(esp, ecx); /* 0x360212AE: push ecx */
   1418     ecx = eax; /* 0x360212AF: mov ecx, eax */
   1419     RECOMP_ICALL(0x36080960u); /* 0x360212B1: call 0x36080960 */ /* not lifted */
   1420     RECOMP_FLAGS_IN();
   1421     goto L_360212BA; /* 0x360212B6: jmp 0x360212ba */
   1422 L_360212B8:
   1423     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1424     eax = 0; /* 0x360212B8: xor eax, eax */
   1425     _cf = 0;
   1426     _flag_k = FK_TEST;
   1427 L_360212BA:
   1428     edx = ebp + (-0x10); /* 0x360212BA: lea edx, [ebp - 0x10] */
   1429     PUSH32(esp, edx); /* 0x360212BD: push edx */
   1430     ecx = esi; /* 0x360212BE: mov ecx, esi */
   1431     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360212C0: mov dword ptr [ebp - 4], 0xffffffff */
   1432     MEM32(ebp + (-0x10)) = eax; /* 0x360212C7: mov dword ptr [ebp - 0x10], eax */
   1433     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360212CA: call dword ptr [0x3617004c] */
   1434     RECOMP_FLAGS_IN();
   1435     PUSH32(esp, edi); /* 0x360212D0: push edi */
   1436     RECOMP_ICALL(0x3601C590u); /* 0x360212D1: call 0x3601c590 */ /* not lifted */
   1437     RECOMP_FLAGS_IN();
   1438     ecx = eax; /* 0x360212D6: mov ecx, eax */
   1439     RECOMP_ICALL(0x3601CB20u); /* 0x360212D8: call 0x3601cb20 */ /* not lifted */
   1440     RECOMP_FLAGS_IN();
   1441     edi = POP32_VAL(esp); /* 0x360212DD: pop edi */
   1442 L_360212DE:
   1443     ecx = MEM32(ebp + (-0xC)); /* 0x360212DE: mov ecx, dword ptr [ebp - 0xc] */
   1444     esi = POP32_VAL(esp); /* 0x360212E1: pop esi */
   1445     MEM32(FS_BASE + (0)) = ecx; /* 0x360212E2: mov dword ptr fs:[0], ecx */
   1446     esp = ebp; /* 0x360212E9: mov esp, ebp */
   1447     ebp = POP32_VAL(esp); /* 0x360212EB: pop ebp */
   1448     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360212EC: ret 4 */
   1449     RECOMP_REGS_OUT();
   1450 }
   1451 
   1452 void sub_360212F0(void) {
   1453     int _fpu_cmp = 0;
   1454     uint32_t _cf = 0;
   1455     int _df = 1;
   1456     uint32_t _flag_k = FK_NONE;
   1457     uint32_t _flag_a = 0, _flag_b = 0;
   1458     uint32_t _itail_tgt = 0;
   1459     RECOMP_REGS_LOCALS
   1460     RECOMP_ENTER(0x360212F0u);
   1461 
   1462 L_360212F0:
   1463     PUSH32(esp, ebp); /* 0x360212F0: push ebp */
   1464     ebp = esp; /* 0x360212F1: mov ebp, esp */
   1465     RECOMP_ICALL(0x3601F240u); /* 0x360212F3: call 0x3601f240 */ /* not lifted */
   1466     RECOMP_FLAGS_IN();
   1467     /* test eax, eax */ /* 0x360212F8: test eax, eax */
   1468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1469     _cf = 0;
   1470     _flag_k = FK_TEST;
   1471     if (TEST_Z(_flag_a, _flag_b)) goto L_36021312; /* 0x360212FA: je 0x36021312 */
   1472 L_360212FC:
   1473     ecx = MEM32(ebp + 0x8); /* 0x360212FC: mov ecx, dword ptr [ebp + 8] */
   1474     PUSH32(esp, ecx); /* 0x360212FF: push ecx */
   1475     ecx = eax; /* 0x36021300: mov ecx, eax */
   1476     RECOMP_ICALL(0x36071F20u); /* 0x36021302: call 0x36071f20 */ /* not lifted */
   1477     RECOMP_FLAGS_IN();
   1478     ecx = eax; /* 0x36021307: mov ecx, eax */
   1479     RECOMP_ICALL(0x3606C1B0u); /* 0x36021309: call 0x3606c1b0 */ /* not lifted */
   1480     RECOMP_FLAGS_IN();
   1481     ebp = POP32_VAL(esp); /* 0x3602130E: pop ebp */
   1482     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602130F: ret 4 */
   1483 L_36021312:
   1484     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1485     eax = 0; /* 0x36021312: xor eax, eax */
   1486     _cf = 0;
   1487     _flag_k = FK_TEST;
   1488     ebp = POP32_VAL(esp); /* 0x36021314: pop ebp */
   1489     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021315: ret 4 */
   1490     RECOMP_REGS_OUT();
   1491 }
   1492 
   1493 void sub_36021320(void) {
   1494     int _fpu_cmp = 0;
   1495     uint32_t _cf = 0;
   1496     int _df = 1;
   1497     uint32_t _flag_k = FK_NONE;
   1498     uint32_t _flag_a = 0, _flag_b = 0;
   1499     uint32_t _itail_tgt = 0;
   1500     RECOMP_REGS_LOCALS
   1501     RECOMP_ENTER(0x36021320u);
   1502 
   1503 L_36021320:
   1504     PUSH32(esp, ebp); /* 0x36021320: push ebp */
   1505     ebp = esp; /* 0x36021321: mov ebp, esp */
   1506     RECOMP_ICALL(0x3601F240u); /* 0x36021323: call 0x3601f240 */ /* not lifted */
   1507     RECOMP_FLAGS_IN();
   1508     /* test eax, eax */ /* 0x36021328: test eax, eax */
   1509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1510     _cf = 0;
   1511     _flag_k = FK_TEST;
   1512     if (TEST_Z(_flag_a, _flag_b)) goto L_36021349; /* 0x3602132A: je 0x36021349 */
   1513 L_3602132C:
   1514     ecx = MEM32(ebp + 0x8); /* 0x3602132C: mov ecx, dword ptr [ebp + 8] */
   1515     PUSH32(esp, ecx); /* 0x3602132F: push ecx */
   1516     ecx = eax; /* 0x36021330: mov ecx, eax */
   1517     RECOMP_ICALL(0x36071F20u); /* 0x36021332: call 0x36071f20 */ /* not lifted */
   1518     RECOMP_FLAGS_IN();
   1519     ecx = eax; /* 0x36021337: mov ecx, eax */
   1520     RECOMP_ICALL(0x3606C600u); /* 0x36021339: call 0x3606c600 */ /* not lifted */
   1521     RECOMP_FLAGS_IN();
   1522     /* test eax, eax */ /* 0x3602133E: test eax, eax */
   1523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1524     _cf = 0;
   1525     _flag_k = FK_TEST;
   1526     if (TEST_Z(_flag_a, _flag_b)) goto L_36021349; /* 0x36021340: je 0x36021349 */
   1527 L_36021342:
   1528     eax = MEM32(eax + 0x28); /* 0x36021342: mov eax, dword ptr [eax + 0x28] */
   1529     ebp = POP32_VAL(esp); /* 0x36021345: pop ebp */
   1530     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021346: ret 4 */
   1531 L_36021349:
   1532     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1533     eax = 0; /* 0x36021349: xor eax, eax */
   1534     _cf = 0;
   1535     _flag_k = FK_TEST;
   1536     ebp = POP32_VAL(esp); /* 0x3602134B: pop ebp */
   1537     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602134C: ret 4 */
   1538     RECOMP_REGS_OUT();
   1539 }
   1540 
   1541 void sub_36021350(void) {
   1542     int _fpu_cmp = 0;
   1543     uint32_t _cf = 0;
   1544     int _df = 1;
   1545     uint32_t _flag_k = FK_NONE;
   1546     uint32_t _flag_a = 0, _flag_b = 0;
   1547     uint32_t _itail_tgt = 0;
   1548     RECOMP_REGS_LOCALS
   1549     RECOMP_ENTER(0x36021350u);
   1550 
   1551 L_36021350:
   1552     PUSH32(esp, ebp); /* 0x36021350: push ebp */
   1553     ebp = esp; /* 0x36021351: mov ebp, esp */
   1554     RECOMP_ICALL(0x3601F240u); /* 0x36021353: call 0x3601f240 */ /* not lifted */
   1555     RECOMP_FLAGS_IN();
   1556     /* test eax, eax */ /* 0x36021358: test eax, eax */
   1557     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1558     _cf = 0;
   1559     _flag_k = FK_TEST;
   1560     if (TEST_Z(_flag_a, _flag_b)) goto L_3602137F; /* 0x3602135A: je 0x3602137f */
   1561 L_3602135C:
   1562     ecx = MEM32(ebp + 0x8); /* 0x3602135C: mov ecx, dword ptr [ebp + 8] */
   1563     PUSH32(esp, ecx); /* 0x3602135F: push ecx */
   1564     ecx = eax; /* 0x36021360: mov ecx, eax */
   1565     RECOMP_ICALL(0x36071F20u); /* 0x36021362: call 0x36071f20 */ /* not lifted */
   1566     RECOMP_FLAGS_IN();
   1567     ecx = eax; /* 0x36021367: mov ecx, eax */
   1568     RECOMP_ICALL(0x3606C600u); /* 0x36021369: call 0x3606c600 */ /* not lifted */
   1569     RECOMP_FLAGS_IN();
   1570     /* test eax, eax */ /* 0x3602136E: test eax, eax */
   1571     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1572     _cf = 0;
   1573     _flag_k = FK_TEST;
   1574     if (TEST_Z(_flag_a, _flag_b)) goto L_3602137F; /* 0x36021370: je 0x3602137f */
   1575 L_36021372:
   1576     eax = MEM32(eax + 0x78); /* 0x36021372: mov eax, dword ptr [eax + 0x78] */
   1577     if (5u) _cf = (((eax) >> 4) & 1u); /* 0x36021375: shr eax, 5 */
   1578     if (5u) { _flag_a = recomp_flags_pack((eax >> 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1579     eax = eax >> 5u; /* 0x36021375: shr eax, 5 */
   1580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1581     eax = eax & 1; /* 0x36021378: and eax, 1 */
   1582     _cf = 0;
   1583     _flag_k = FK_TEST;
   1584     ebp = POP32_VAL(esp); /* 0x3602137B: pop ebp */
   1585     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602137C: ret 4 */
   1586 L_3602137F:
   1587     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   1588     SET_LO8(eax, 0); /* 0x3602137F: xor al, al */
   1589     _cf = 0;
   1590     _flag_k = FK_NARROW(FK_TEST, 24);
   1591     ebp = POP32_VAL(esp); /* 0x36021381: pop ebp */
   1592     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021382: ret 4 */
   1593     RECOMP_REGS_OUT();
   1594 }
   1595 
   1596 void sub_36021390(void) {
   1597     int _fpu_cmp = 0;
   1598     uint32_t _cf = 0;
   1599     int _df = 1;
   1600     uint32_t _flag_k = FK_NONE;
   1601     uint32_t _flag_a = 0, _flag_b = 0;
   1602     uint32_t _itail_tgt = 0;
   1603     RECOMP_REGS_LOCALS
   1604     RECOMP_ENTER(0x36021390u);
   1605 
   1606 L_36021390:
   1607     PUSH32(esp, ebp); /* 0x36021390: push ebp */
   1608     ebp = esp; /* 0x36021391: mov ebp, esp */
   1609     RECOMP_ICALL(0x3601F240u); /* 0x36021393: call 0x3601f240 */ /* not lifted */
   1610     RECOMP_FLAGS_IN();
   1611     /* test eax, eax */ /* 0x36021398: test eax, eax */
   1612     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1613     _cf = 0;
   1614     _flag_k = FK_TEST;
   1615     if (TEST_Z(_flag_a, _flag_b)) goto L_360213B8; /* 0x3602139A: je 0x360213b8 */
   1616 L_3602139C:
   1617     ecx = MEM32(ebp + 0x8); /* 0x3602139C: mov ecx, dword ptr [ebp + 8] */
   1618     PUSH32(esp, ecx); /* 0x3602139F: push ecx */
   1619     ecx = eax; /* 0x360213A0: mov ecx, eax */
   1620     RECOMP_ICALL(0x36071F20u); /* 0x360213A2: call 0x36071f20 */ /* not lifted */
   1621     RECOMP_FLAGS_IN();
   1622     ecx = eax; /* 0x360213A7: mov ecx, eax */
   1623     RECOMP_ICALL(0x3606C1D0u); /* 0x360213A9: call 0x3606c1d0 */ /* not lifted */
   1624     RECOMP_FLAGS_IN();
   1625     /* test eax, eax */ /* 0x360213AE: test eax, eax */
   1626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1627     _cf = 0;
   1628     _flag_k = FK_TEST;
   1629     if (TEST_Z(_flag_a, _flag_b)) goto L_360213B8; /* 0x360213B0: je 0x360213b8 */
   1630 L_360213B2:
   1631     SET_LO8(eax, 1); /* 0x360213B2: mov al, 1 */
   1632     ebp = POP32_VAL(esp); /* 0x360213B4: pop ebp */
   1633     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360213B5: ret 4 */
   1634 L_360213B8:
   1635     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   1636     SET_LO8(eax, 0); /* 0x360213B8: xor al, al */
   1637     _cf = 0;
   1638     _flag_k = FK_NARROW(FK_TEST, 24);
   1639     ebp = POP32_VAL(esp); /* 0x360213BA: pop ebp */
   1640     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360213BB: ret 4 */
   1641     RECOMP_REGS_OUT();
   1642 }
   1643 
   1644 void sub_360213C0(void) {
   1645     int _fpu_cmp = 0;
   1646     uint32_t _cf = 0;
   1647     int _df = 1;
   1648     uint32_t _flag_k = FK_NONE;
   1649     uint32_t _flag_a = 0, _flag_b = 0;
   1650     uint32_t _itail_tgt = 0;
   1651     RECOMP_REGS_LOCALS
   1652     RECOMP_ENTER(0x360213C0u);
   1653 
   1654 L_360213C0:
   1655     PUSH32(esp, ebp); /* 0x360213C0: push ebp */
   1656     ebp = esp; /* 0x360213C1: mov ebp, esp */
   1657     RECOMP_ICALL(0x3601F240u); /* 0x360213C3: call 0x3601f240 */ /* not lifted */
   1658     RECOMP_FLAGS_IN();
   1659     /* test eax, eax */ /* 0x360213C8: test eax, eax */
   1660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1661     _cf = 0;
   1662     _flag_k = FK_TEST;
   1663     if (TEST_Z(_flag_a, _flag_b)) goto L_360213ED; /* 0x360213CA: je 0x360213ed */
   1664 L_360213CC:
   1665     ecx = MEM32(ebp + 0x8); /* 0x360213CC: mov ecx, dword ptr [ebp + 8] */
   1666     PUSH32(esp, ecx); /* 0x360213CF: push ecx */
   1667     ecx = eax; /* 0x360213D0: mov ecx, eax */
   1668     RECOMP_ICALL(0x36071F20u); /* 0x360213D2: call 0x36071f20 */ /* not lifted */
   1669     RECOMP_FLAGS_IN();
   1670     ecx = eax; /* 0x360213D7: mov ecx, eax */
   1671     RECOMP_ICALL(0x3606C600u); /* 0x360213D9: call 0x3606c600 */ /* not lifted */
   1672     RECOMP_FLAGS_IN();
   1673     /* test eax, eax */ /* 0x360213DE: test eax, eax */
   1674     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1675     _cf = 0;
   1676     _flag_k = FK_TEST;
   1677     if (TEST_Z(_flag_a, _flag_b)) goto L_360213ED; /* 0x360213E0: je 0x360213ed */
   1678 L_360213E2:
   1679     ecx = eax; /* 0x360213E2: mov ecx, eax */
   1680     RECOMP_ICALL(0x360C5400u); /* 0x360213E4: call 0x360c5400 */ /* not lifted */
   1681     RECOMP_FLAGS_IN();
   1682     ebp = POP32_VAL(esp); /* 0x360213E9: pop ebp */
   1683     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360213EA: ret 4 */
   1684 L_360213ED:
   1685     eax = 0x36305AE0u; /* 0x360213ED: mov eax, 0x36305ae0 */
   1686     ebp = POP32_VAL(esp); /* 0x360213F2: pop ebp */
   1687     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360213F3: ret 4 */
   1688     RECOMP_REGS_OUT();
   1689 }
   1690 
   1691 void sub_36021400(void) {
   1692     int _fpu_cmp = 0;
   1693     uint32_t _cf = 0;
   1694     int _df = 1;
   1695     uint32_t _flag_k = FK_NONE;
   1696     uint32_t _flag_a = 0, _flag_b = 0;
   1697     uint32_t _itail_tgt = 0;
   1698     RECOMP_REGS_LOCALS
   1699     RECOMP_ENTER(0x36021400u);
   1700 
   1701 L_36021400:
   1702     PUSH32(esp, ebp); /* 0x36021400: push ebp */
   1703     ebp = esp; /* 0x36021401: mov ebp, esp */
   1704     RECOMP_ICALL(0x3601F240u); /* 0x36021403: call 0x3601f240 */ /* not lifted */
   1705     RECOMP_FLAGS_IN();
   1706     /* test eax, eax */ /* 0x36021408: test eax, eax */
   1707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1708     _cf = 0;
   1709     _flag_k = FK_TEST;
   1710     if (TEST_Z(_flag_a, _flag_b)) goto L_3602142D; /* 0x3602140A: je 0x3602142d */
   1711 L_3602140C:
   1712     ecx = MEM32(ebp + 0x8); /* 0x3602140C: mov ecx, dword ptr [ebp + 8] */
   1713     PUSH32(esp, ecx); /* 0x3602140F: push ecx */
   1714     ecx = eax; /* 0x36021410: mov ecx, eax */
   1715     RECOMP_ICALL(0x36071F20u); /* 0x36021412: call 0x36071f20 */ /* not lifted */
   1716     RECOMP_FLAGS_IN();
   1717     ecx = eax; /* 0x36021417: mov ecx, eax */
   1718     RECOMP_ICALL(0x3606C600u); /* 0x36021419: call 0x3606c600 */ /* not lifted */
   1719     RECOMP_FLAGS_IN();
   1720     /* test eax, eax */ /* 0x3602141E: test eax, eax */
   1721     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1722     _cf = 0;
   1723     _flag_k = FK_TEST;
   1724     if (TEST_Z(_flag_a, _flag_b)) goto L_3602142D; /* 0x36021420: je 0x3602142d */
   1725 L_36021422:
   1726     ecx = eax; /* 0x36021422: mov ecx, eax */
   1727     RECOMP_ICALL(0x360C5490u); /* 0x36021424: call 0x360c5490 */ /* not lifted */
   1728     RECOMP_FLAGS_IN();
   1729     ebp = POP32_VAL(esp); /* 0x36021429: pop ebp */
   1730     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602142A: ret 4 */
   1731 L_3602142D:
   1732     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1733     eax = 0; /* 0x3602142D: xor eax, eax */
   1734     _cf = 0;
   1735     _flag_k = FK_TEST;
   1736     ebp = POP32_VAL(esp); /* 0x3602142F: pop ebp */
   1737     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021430: ret 4 */
   1738     RECOMP_REGS_OUT();
   1739 }
   1740 
   1741 void sub_36021440(void) {
   1742     int _fpu_cmp = 0;
   1743     uint32_t _cf = 0;
   1744     int _df = 1;
   1745     uint32_t _flag_k = FK_NONE;
   1746     uint32_t _flag_a = 0, _flag_b = 0;
   1747     uint32_t _itail_tgt = 0;
   1748     RECOMP_REGS_LOCALS
   1749     RECOMP_ENTER(0x36021440u);
   1750 
   1751 L_36021440:
   1752     PUSH32(esp, ebp); /* 0x36021440: push ebp */
   1753     ebp = esp; /* 0x36021441: mov ebp, esp */
   1754     RECOMP_ICALL(0x3601F240u); /* 0x36021443: call 0x3601f240 */ /* not lifted */
   1755     RECOMP_FLAGS_IN();
   1756     /* test eax, eax */ /* 0x36021448: test eax, eax */
   1757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1758     _cf = 0;
   1759     _flag_k = FK_TEST;
   1760     if (TEST_Z(_flag_a, _flag_b)) goto L_36021469; /* 0x3602144A: je 0x36021469 */
   1761 L_3602144C:
   1762     ecx = MEM32(ebp + 0x8); /* 0x3602144C: mov ecx, dword ptr [ebp + 8] */
   1763     PUSH32(esp, ecx); /* 0x3602144F: push ecx */
   1764     ecx = eax; /* 0x36021450: mov ecx, eax */
   1765     RECOMP_ICALL(0x36071F20u); /* 0x36021452: call 0x36071f20 */ /* not lifted */
   1766     RECOMP_FLAGS_IN();
   1767     ecx = eax; /* 0x36021457: mov ecx, eax */
   1768     RECOMP_ICALL(0x3606C600u); /* 0x36021459: call 0x3606c600 */ /* not lifted */
   1769     RECOMP_FLAGS_IN();
   1770     /* test eax, eax */ /* 0x3602145E: test eax, eax */
   1771     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1772     _cf = 0;
   1773     _flag_k = FK_TEST;
   1774     if (TEST_Z(_flag_a, _flag_b)) goto L_36021469; /* 0x36021460: je 0x36021469 */
   1775 L_36021462:
   1776     eax = MEM32(eax + 0x5C); /* 0x36021462: mov eax, dword ptr [eax + 0x5c] */
   1777     ebp = POP32_VAL(esp); /* 0x36021465: pop ebp */
   1778     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021466: ret 4 */
   1779 L_36021469:
   1780     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1781     eax = 0; /* 0x36021469: xor eax, eax */
   1782     _cf = 0;
   1783     _flag_k = FK_TEST;
   1784     ebp = POP32_VAL(esp); /* 0x3602146B: pop ebp */
   1785     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602146C: ret 4 */
   1786     RECOMP_REGS_OUT();
   1787 }
   1788 
   1789 void sub_36021470(void) {
   1790     int _fpu_cmp = 0;
   1791     uint32_t _cf = 0;
   1792     int _df = 1;
   1793     uint32_t _flag_k = FK_NONE;
   1794     uint32_t _flag_a = 0, _flag_b = 0;
   1795     uint32_t _itail_tgt = 0;
   1796     RECOMP_REGS_LOCALS
   1797     RECOMP_ENTER(0x36021470u);
   1798 
   1799 L_36021470:
   1800     PUSH32(esp, ebp); /* 0x36021470: push ebp */
   1801     ebp = esp; /* 0x36021471: mov ebp, esp */
   1802     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1803     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1804     esp = esp - 8; /* 0x36021473: sub esp, 8 */
   1805     _flag_k = FK_CMP;
   1806     RECOMP_ICALL(0x3601F240u); /* 0x36021476: call 0x3601f240 */ /* not lifted */
   1807     RECOMP_FLAGS_IN();
   1808     /* test eax, eax */ /* 0x3602147B: test eax, eax */
   1809     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1810     _cf = 0;
   1811     _flag_k = FK_TEST;
   1812     if (TEST_Z(_flag_a, _flag_b)) goto L_360214A2; /* 0x3602147D: je 0x360214a2 */
   1813 L_3602147F:
   1814     ecx = eax; /* 0x3602147F: mov ecx, eax */
   1815     RECOMP_ICALL(0x36072000u); /* 0x36021481: call 0x36072000 */ /* not lifted */
   1816     RECOMP_FLAGS_IN();
   1817     ecx = MEM32(ebp + 0x8); /* 0x36021486: mov ecx, dword ptr [ebp + 8] */
   1818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x68u);
   1819     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1820     eax = eax + 0x68u; /* 0x36021489: add eax, 0x68 */
   1821     _flag_k = FK_ADD;
   1822     /* cmp ecx, eax */ /* 0x3602148C: cmp ecx, eax */
   1823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1825     _flag_k = FK_CMP;
   1826     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602149A; /* 0x3602148E: je 0x3602149a */
   1827 L_36021490:
   1828     edx = MEM32(eax); /* 0x36021490: mov edx, dword ptr [eax] */
   1829     MEM32(ecx) = edx; /* 0x36021492: mov dword ptr [ecx], edx */
   1830     eax = MEM32(eax + 0x4); /* 0x36021494: mov eax, dword ptr [eax + 4] */
   1831     MEM32(ecx + 0x4) = eax; /* 0x36021497: mov dword ptr [ecx + 4], eax */
   1832 L_3602149A:
   1833     eax = ecx; /* 0x3602149A: mov eax, ecx */
   1834     esp = ebp; /* 0x3602149C: mov esp, ebp */
   1835     ebp = POP32_VAL(esp); /* 0x3602149E: pop ebp */
   1836     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602149F: ret 8 */
   1837 L_360214A2:
   1838     eax = MEM32(ebp + 0x8); /* 0x360214A2: mov eax, dword ptr [ebp + 8] */
   1839     ecx = ebp + (-0x8); /* 0x360214A5: lea ecx, [ebp - 8] */
   1840     /* cmp eax, ecx */ /* 0x360214A8: cmp eax, ecx */
   1841     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1843     _flag_k = FK_CMP;
   1844     if (CMP_EQ(_flag_a, _flag_b)) goto L_360214B9; /* 0x360214AA: je 0x360214b9 */
   1845 L_360214AC:
   1846     MEM32(eax) = 0; /* 0x360214AC: mov dword ptr [eax], 0 */
   1847     MEM32(eax + 0x4) = 0; /* 0x360214B2: mov dword ptr [eax + 4], 0 */
   1848 L_360214B9:
   1849     esp = ebp; /* 0x360214B9: mov esp, ebp */
   1850     ebp = POP32_VAL(esp); /* 0x360214BB: pop ebp */
   1851     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360214BC: ret 8 */
   1852     RECOMP_REGS_OUT();
   1853 }
   1854 
   1855 void sub_360214C0(void) {
   1856     int _fpu_cmp = 0;
   1857     uint32_t _cf = 0;
   1858     int _df = 1;
   1859     uint32_t _flag_k = FK_NONE;
   1860     uint32_t _flag_a = 0, _flag_b = 0;
   1861     uint32_t _itail_tgt = 0;
   1862     RECOMP_REGS_LOCALS
   1863     RECOMP_ENTER(0x360214C0u);
   1864 
   1865 L_360214C0:
   1866     PUSH32(esp, ebp); /* 0x360214C0: push ebp */
   1867     ebp = esp; /* 0x360214C1: mov ebp, esp */
   1868     eax = MEM32(ebp + 0xC); /* 0x360214C3: mov eax, dword ptr [ebp + 0xc] */
   1869     PUSH32(esp, 0); /* 0x360214C6: push 0 */
   1870     PUSH32(esp, 0x361B2CF8u); /* 0x360214C8: push 0x361b2cf8 */
   1871     PUSH32(esp, 0x361B2CC0u); /* 0x360214CD: push 0x361b2cc0 */
   1872     PUSH32(esp, 0); /* 0x360214D2: push 0 */
   1873     PUSH32(esp, eax); /* 0x360214D4: push eax */
   1874     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360214D5: call dword ptr [0x3616ff70] */
   1875     RECOMP_FLAGS_IN();
   1876     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1877     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1878     esp = esp + 4; /* 0x360214DB: add esp, 4 */
   1879     _flag_k = FK_ADD;
   1880     PUSH32(esp, eax); /* 0x360214DE: push eax */
   1881     RECOMP_ICALL(0x3615FD86u); /* 0x360214DF: call 0x3615fd86 */ /* not lifted */
   1882     RECOMP_FLAGS_IN();
   1883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1885     esp = esp + 0x14u; /* 0x360214E4: add esp, 0x14 */
   1886     _flag_k = FK_ADD;
   1887     /* test eax, eax */ /* 0x360214E7: test eax, eax */
   1888     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1889     _cf = 0;
   1890     _flag_k = FK_TEST;
   1891     if (TEST_Z(_flag_a, _flag_b)) goto L_36021509; /* 0x360214E9: je 0x36021509 */
   1892 L_360214EB:
   1893     ecx = eax; /* 0x360214EB: mov ecx, eax */
   1894     RECOMP_ICALL(0x3609F0B0u); /* 0x360214ED: call 0x3609f0b0 */ /* not lifted */
   1895     RECOMP_FLAGS_IN();
   1896     ecx = MEM32(ebp + 0x8); /* 0x360214F2: mov ecx, dword ptr [ebp + 8] */
   1897     /* cmp ecx, eax */ /* 0x360214F5: cmp ecx, eax */
   1898     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1900     _flag_k = FK_CMP;
   1901     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021503; /* 0x360214F7: je 0x36021503 */
   1902 L_360214F9:
   1903     edx = MEM32(eax); /* 0x360214F9: mov edx, dword ptr [eax] */
   1904     MEM32(ecx) = edx; /* 0x360214FB: mov dword ptr [ecx], edx */
   1905     eax = MEM32(eax + 0x4); /* 0x360214FD: mov eax, dword ptr [eax + 4] */
   1906     MEM32(ecx + 0x4) = eax; /* 0x36021500: mov dword ptr [ecx + 4], eax */
   1907 L_36021503:
   1908     eax = ecx; /* 0x36021503: mov eax, ecx */
   1909     ebp = POP32_VAL(esp); /* 0x36021505: pop ebp */
   1910     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36021506: ret 8 */
   1911 L_36021509:
   1912     eax = MEM32(ebp + 0x8); /* 0x36021509: mov eax, dword ptr [ebp + 8] */
   1913     /* cmp eax, 0x36305AE0u */ /* 0x3602150C: cmp eax, 0x36305ae0 */
   1914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x36305AE0u);
   1915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1916     _flag_k = FK_CMP;
   1917     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021524; /* 0x36021511: je 0x36021524 */
   1918 L_36021513:
   1919     ecx = MEM32(0x36305AE0); /* 0x36021513: mov ecx, dword ptr [0x36305ae0] */
   1920     MEM32(eax) = ecx; /* 0x36021519: mov dword ptr [eax], ecx */
   1921     edx = MEM32(0x36305AE4); /* 0x3602151B: mov edx, dword ptr [0x36305ae4] */
   1922     MEM32(eax + 0x4) = edx; /* 0x36021521: mov dword ptr [eax + 4], edx */
   1923 L_36021524:
   1924     ebp = POP32_VAL(esp); /* 0x36021524: pop ebp */
   1925     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36021525: ret 8 */
   1926     RECOMP_REGS_OUT();
   1927 }
   1928 
   1929 void sub_36021530(void) {
   1930     int _fpu_cmp = 0;
   1931     uint32_t _cf = 0;
   1932     int _df = 1;
   1933     uint32_t _flag_k = FK_NONE;
   1934     uint32_t _flag_a = 0, _flag_b = 0;
   1935     uint32_t _itail_tgt = 0;
   1936     RECOMP_REGS_LOCALS
   1937     RECOMP_ENTER(0x36021530u);
   1938 
   1939 L_36021530:
   1940     PUSH32(esp, ebp); /* 0x36021530: push ebp */
   1941     ebp = esp; /* 0x36021531: mov ebp, esp */
   1942     eax = MEM32(ebp + 0x8); /* 0x36021533: mov eax, dword ptr [ebp + 8] */
   1943     PUSH32(esp, ebx); /* 0x36021536: push ebx */
   1944     PUSH32(esp, esi); /* 0x36021537: push esi */
   1945     PUSH32(esp, edi); /* 0x36021538: push edi */
   1946     esi = ecx; /* 0x36021539: mov esi, ecx */
   1947     ecx = MEM32(esi + 0xF0); /* 0x3602153B: mov ecx, dword ptr [esi + 0xf0] */
   1948     PUSH32(esp, eax); /* 0x36021541: push eax */
   1949     RECOMP_ICALL(0x360C56F0u); /* 0x36021542: call 0x360c56f0 */ /* not lifted */
   1950     RECOMP_FLAGS_IN();
   1951     ecx = MEM32(esi + 0xF4); /* 0x36021547: mov ecx, dword ptr [esi + 0xf4] */
   1952     RECOMP_ICALL(0x3609BF50u); /* 0x3602154D: call 0x3609bf50 */ /* not lifted */
   1953     RECOMP_FLAGS_IN();
   1954     edi = eax; /* 0x36021552: mov edi, eax */
   1955     ebx = MEM32(edi + 0x4); /* 0x36021554: mov ebx, dword ptr [edi + 4] */
   1956     esi = MEM32(ebx); /* 0x36021557: mov esi, dword ptr [ebx] */
   1957     /* cmp esi, ebx */ /* 0x36021559: cmp esi, ebx */
   1958     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1960     _flag_k = FK_CMP;
   1961     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021584; /* 0x3602155B: je 0x36021584 */
   1962 L_3602155D:
   1963     eax = esi; /* 0x3602155D: mov eax, esi */
   1964     ecx = MEM32(eax + 0x4); /* 0x3602155F: mov ecx, dword ptr [eax + 4] */
   1965     edx = MEM32(eax); /* 0x36021562: mov edx, dword ptr [eax] */
   1966     esi = MEM32(esi); /* 0x36021564: mov esi, dword ptr [esi] */
   1967     MEM32(ecx) = edx; /* 0x36021566: mov dword ptr [ecx], edx */
   1968     ecx = MEM32(eax); /* 0x36021568: mov ecx, dword ptr [eax] */
   1969     edx = MEM32(eax + 0x4); /* 0x3602156A: mov edx, dword ptr [eax + 4] */
   1970     PUSH32(esp, eax); /* 0x3602156D: push eax */
   1971     MEM32(ecx + 0x4) = edx; /* 0x3602156E: mov dword ptr [ecx + 4], edx */
   1972     RECOMP_ICALL(0x3615FCC4u); /* 0x36021571: call 0x3615fcc4 */ /* not lifted */
   1973     RECOMP_FLAGS_IN();
   1974     ecx = MEM32(edi + 0x8); /* 0x36021576: mov ecx, dword ptr [edi + 8] */
   1975     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1976     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1977     esp = esp + 4; /* 0x36021579: add esp, 4 */
   1978     _flag_k = FK_ADD;
   1979     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1980     ecx = ecx - 1; /* 0x3602157C: dec ecx */
   1981     _flag_k = FK_DEC;
   1982     /* cmp esi, ebx */ /* 0x3602157D: cmp esi, ebx */
   1983     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1984     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1985     _flag_k = FK_CMP;
   1986     MEM32(edi + 0x8) = ecx; /* 0x3602157F: mov dword ptr [edi + 8], ecx */
   1987     RECOMP_BACKEDGE();
   1988     if (CMP_NE(_flag_a, _flag_b)) goto L_3602155D; /* 0x36021582: jne 0x3602155d */
   1989 L_36021584:
   1990     edi = POP32_VAL(esp); /* 0x36021584: pop edi */
   1991     esi = POP32_VAL(esp); /* 0x36021585: pop esi */
   1992     ebx = POP32_VAL(esp); /* 0x36021586: pop ebx */
   1993     ebp = POP32_VAL(esp); /* 0x36021587: pop ebp */
   1994     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021588: ret 4 */
   1995     RECOMP_REGS_OUT();
   1996 }
   1997 
   1998 void sub_36021590(void) {
   1999     int _fpu_cmp = 0;
   2000     uint32_t _cf = 0;
   2001     int _df = 1;
   2002     uint32_t _flag_k = FK_NONE;
   2003     uint32_t _flag_a = 0, _flag_b = 0;
   2004     uint32_t _itail_tgt = 0;
   2005     RECOMP_REGS_LOCALS
   2006     RECOMP_ENTER(0x36021590u);
   2007 
   2008 L_36021590:
   2009     PUSH32(esp, ebp); /* 0x36021590: push ebp */
   2010     ebp = esp; /* 0x36021591: mov ebp, esp */
   2011     PUSH32(esp, 0xFFFFFFFFu); /* 0x36021593: push -1 */
   2012     PUSH32(esp, 0x361630EBu); /* 0x36021595: push 0x361630eb */
   2013     eax = MEM32(FS_BASE + (0)); /* 0x3602159A: mov eax, dword ptr fs:[0] */
   2014     PUSH32(esp, eax); /* 0x360215A0: push eax */
   2015     MEM32(FS_BASE + (0)) = esp; /* 0x360215A1: mov dword ptr fs:[0], esp */
   2016     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2018     esp = esp - 8; /* 0x360215A8: sub esp, 8 */
   2019     _flag_k = FK_CMP;
   2020     PUSH32(esp, esi); /* 0x360215AB: push esi */
   2021     PUSH32(esp, edi); /* 0x360215AC: push edi */
   2022     esi = ecx; /* 0x360215AD: mov esi, ecx */
   2023     RECOMP_ICALL(0x3601F240u); /* 0x360215AF: call 0x3601f240 */ /* not lifted */
   2024     RECOMP_FLAGS_IN();
   2025     edi = eax; /* 0x360215B4: mov edi, eax */
   2026     /* test edi, edi */ /* 0x360215B6: test edi, edi */
   2027     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2028     _cf = 0;
   2029     _flag_k = FK_TEST;
   2030     if (TEST_Z(_flag_a, _flag_b)) goto L_36021610; /* 0x360215B8: je 0x36021610 */
   2031 L_360215BA:
   2032     PUSH32(esp, 0x24u); /* 0x360215BA: push 0x24 */
   2033     RECOMP_ICALL(0x3615FD6Au); /* 0x360215BC: call 0x3615fd6a */ /* not lifted */
   2034     RECOMP_FLAGS_IN();
   2035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2037     esp = esp + 4; /* 0x360215C1: add esp, 4 */
   2038     _flag_k = FK_ADD;
   2039     MEM32(ebp + (-0x14)) = eax; /* 0x360215C4: mov dword ptr [ebp - 0x14], eax */
   2040     /* test eax, eax */ /* 0x360215C7: test eax, eax */
   2041     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2042     _cf = 0;
   2043     _flag_k = FK_TEST;
   2044     MEM32(ebp + (-0x4)) = 0; /* 0x360215C9: mov dword ptr [ebp - 4], 0 */
   2045     if (TEST_Z(_flag_a, _flag_b)) goto L_360215ED; /* 0x360215D0: je 0x360215ed */
   2046 L_360215D2:
   2047     ecx = MEM32(esi + 0xF4); /* 0x360215D2: mov ecx, dword ptr [esi + 0xf4] */
   2048     edx = MEM32(esi + 0xF0); /* 0x360215D8: mov edx, dword ptr [esi + 0xf0] */
   2049     PUSH32(esp, ecx); /* 0x360215DE: push ecx */
   2050     PUSH32(esp, edx); /* 0x360215DF: push edx */
   2051     ecx = edi + 0x4; /* 0x360215E0: lea ecx, [edi + 4] */
   2052     PUSH32(esp, ecx); /* 0x360215E3: push ecx */
   2053     ecx = eax; /* 0x360215E4: mov ecx, eax */
   2054     RECOMP_ICALL(0x36042D00u); /* 0x360215E6: call 0x36042d00 */ /* not lifted */
   2055     RECOMP_FLAGS_IN();
   2056     goto L_360215EF; /* 0x360215EB: jmp 0x360215ef */
   2057 L_360215ED:
   2058     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2059     eax = 0; /* 0x360215ED: xor eax, eax */
   2060     _cf = 0;
   2061     _flag_k = FK_TEST;
   2062 L_360215EF:
   2063     edx = ebp + (-0x10); /* 0x360215EF: lea edx, [ebp - 0x10] */
   2064     PUSH32(esp, edx); /* 0x360215F2: push edx */
   2065     ecx = edi; /* 0x360215F3: mov ecx, edi */
   2066     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360215F5: mov dword ptr [ebp - 4], 0xffffffff */
   2067     MEM32(ebp + (-0x10)) = eax; /* 0x360215FC: mov dword ptr [ebp - 0x10], eax */
   2068     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360215FF: call dword ptr [0x3617004c] */
   2069     RECOMP_FLAGS_IN();
   2070     ecx = MEM32(esi + 0xF0); /* 0x36021605: mov ecx, dword ptr [esi + 0xf0] */
   2071     RECOMP_ICALL(0x360C54F0u); /* 0x3602160B: call 0x360c54f0 */ /* not lifted */
   2072     RECOMP_FLAGS_IN();
   2073 L_36021610:
   2074     ecx = MEM32(ebp + (-0xC)); /* 0x36021610: mov ecx, dword ptr [ebp - 0xc] */
   2075     edi = POP32_VAL(esp); /* 0x36021613: pop edi */
   2076     esi = POP32_VAL(esp); /* 0x36021614: pop esi */
   2077     MEM32(FS_BASE + (0)) = ecx; /* 0x36021615: mov dword ptr fs:[0], ecx */
   2078     esp = ebp; /* 0x3602161C: mov esp, ebp */
   2079     ebp = POP32_VAL(esp); /* 0x3602161E: pop ebp */
   2080     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602161F: ret  */
   2081     RECOMP_REGS_OUT();
   2082 }
   2083 
   2084 void sub_36021620(void) {
   2085     int _fpu_cmp = 0;
   2086     uint32_t _cf = 0;
   2087     int _df = 1;
   2088     uint32_t _flag_k = FK_NONE;
   2089     uint32_t _flag_a = 0, _flag_b = 0;
   2090     uint32_t _itail_tgt = 0;
   2091     RECOMP_REGS_LOCALS
   2092     RECOMP_ENTER(0x36021620u);
   2093 
   2094 L_36021620:
   2095     PUSH32(esp, ebx); /* 0x36021620: push ebx */
   2096     PUSH32(esp, esi); /* 0x36021621: push esi */
   2097     PUSH32(esp, edi); /* 0x36021622: push edi */
   2098     esi = ecx; /* 0x36021623: mov esi, ecx */
   2099     RECOMP_ICALL(0x3601F240u); /* 0x36021625: call 0x3601f240 */ /* not lifted */
   2100     RECOMP_FLAGS_IN();
   2101     /* test eax, eax */ /* 0x3602162A: test eax, eax */
   2102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2103     _cf = 0;
   2104     _flag_k = FK_TEST;
   2105     if (TEST_Z(_flag_a, _flag_b)) goto L_3602166B; /* 0x3602162C: je 0x3602166b */
   2106 L_3602162E:
   2107     ecx = MEM32(esi + 0xF4); /* 0x3602162E: mov ecx, dword ptr [esi + 0xf4] */
   2108     RECOMP_ICALL(0x3609BF50u); /* 0x36021634: call 0x3609bf50 */ /* not lifted */
   2109     RECOMP_FLAGS_IN();
   2110     edi = eax; /* 0x36021639: mov edi, eax */
   2111     ebx = MEM32(edi + 0x4); /* 0x3602163B: mov ebx, dword ptr [edi + 4] */
   2112     esi = MEM32(ebx); /* 0x3602163E: mov esi, dword ptr [ebx] */
   2113     /* cmp esi, ebx */ /* 0x36021640: cmp esi, ebx */
   2114     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2116     _flag_k = FK_CMP;
   2117     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602166B; /* 0x36021642: je 0x3602166b */
   2118 L_36021644:
   2119     eax = esi; /* 0x36021644: mov eax, esi */
   2120     ecx = MEM32(eax + 0x4); /* 0x36021646: mov ecx, dword ptr [eax + 4] */
   2121     edx = MEM32(eax); /* 0x36021649: mov edx, dword ptr [eax] */
   2122     esi = MEM32(esi); /* 0x3602164B: mov esi, dword ptr [esi] */
   2123     MEM32(ecx) = edx; /* 0x3602164D: mov dword ptr [ecx], edx */
   2124     ecx = MEM32(eax); /* 0x3602164F: mov ecx, dword ptr [eax] */
   2125     edx = MEM32(eax + 0x4); /* 0x36021651: mov edx, dword ptr [eax + 4] */
   2126     PUSH32(esp, eax); /* 0x36021654: push eax */
   2127     MEM32(ecx + 0x4) = edx; /* 0x36021655: mov dword ptr [ecx + 4], edx */
   2128     RECOMP_ICALL(0x3615FCC4u); /* 0x36021658: call 0x3615fcc4 */ /* not lifted */
   2129     RECOMP_FLAGS_IN();
   2130     ecx = MEM32(edi + 0x8); /* 0x3602165D: mov ecx, dword ptr [edi + 8] */
   2131     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2133     esp = esp + 4; /* 0x36021660: add esp, 4 */
   2134     _flag_k = FK_ADD;
   2135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2136     ecx = ecx - 1; /* 0x36021663: dec ecx */
   2137     _flag_k = FK_DEC;
   2138     /* cmp esi, ebx */ /* 0x36021664: cmp esi, ebx */
   2139     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2141     _flag_k = FK_CMP;
   2142     MEM32(edi + 0x8) = ecx; /* 0x36021666: mov dword ptr [edi + 8], ecx */
   2143     RECOMP_BACKEDGE();
   2144     if (CMP_NE(_flag_a, _flag_b)) goto L_36021644; /* 0x36021669: jne 0x36021644 */
   2145 L_3602166B:
   2146     edi = POP32_VAL(esp); /* 0x3602166B: pop edi */
   2147     esi = POP32_VAL(esp); /* 0x3602166C: pop esi */
   2148     ebx = POP32_VAL(esp); /* 0x3602166D: pop ebx */
   2149     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602166E: ret  */
   2150     RECOMP_REGS_OUT();
   2151 }
   2152 
   2153 void sub_36021670(void) {
   2154     int _fpu_cmp = 0;
   2155     uint32_t _cf = 0;
   2156     int _df = 1;
   2157     uint32_t _flag_k = FK_NONE;
   2158     uint32_t _flag_a = 0, _flag_b = 0;
   2159     uint32_t _itail_tgt = 0;
   2160     RECOMP_REGS_LOCALS
   2161     RECOMP_ENTER(0x36021670u);
   2162 
   2163 L_36021670:
   2164     ecx = MEM32(ecx + 0xF4); /* 0x36021670: mov ecx, dword ptr [ecx + 0xf4] */
   2165     goto L_3609BF50; /* 0x36021676: jmp 0x3609bf50 */
   2166 L_3609BF50:
   2167     eax = MEM32(ecx + 0x10); /* 0x3609BF50: mov eax, dword ptr [ecx + 0x10] */
   2168     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609BF53: ret  */
   2169     RECOMP_REGS_OUT();
   2170 }
   2171 
   2172 void sub_36021680(void) {
   2173     int _fpu_cmp = 0;
   2174     uint32_t _cf = 0;
   2175     int _df = 1;
   2176     uint32_t _flag_k = FK_NONE;
   2177     uint32_t _flag_a = 0, _flag_b = 0;
   2178     uint32_t _itail_tgt = 0;
   2179     RECOMP_REGS_LOCALS
   2180     RECOMP_ENTER(0x36021680u);
   2181 
   2182 L_36021680:
   2183     PUSH32(esp, ebp); /* 0x36021680: push ebp */
   2184     ebp = esp; /* 0x36021681: mov ebp, esp */
   2185     PUSH32(esp, 0xFFFFFFFFu); /* 0x36021683: push -1 */
   2186     PUSH32(esp, 0x3616310Bu); /* 0x36021685: push 0x3616310b */
   2187     eax = MEM32(FS_BASE + (0)); /* 0x3602168A: mov eax, dword ptr fs:[0] */
   2188     PUSH32(esp, eax); /* 0x36021690: push eax */
   2189     MEM32(FS_BASE + (0)) = esp; /* 0x36021691: mov dword ptr fs:[0], esp */
   2190     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   2191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2192     esp = esp - 0x28u; /* 0x36021698: sub esp, 0x28 */
   2193     _flag_k = FK_CMP;
   2194     PUSH32(esp, ebx); /* 0x3602169B: push ebx */
   2195     PUSH32(esp, esi); /* 0x3602169C: push esi */
   2196     esi = MEM32(ebp + 0x8); /* 0x3602169D: mov esi, dword ptr [ebp + 8] */
   2197     fp_push((double)(int32_t)MEM32(esi)); /* 0x360216A0: fild dword ptr [esi] */
   2198     PUSH32(esp, edi); /* 0x360216A2: push edi */
   2199     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2200     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2201     esp = esp - 8; /* 0x360216A3: sub esp, 8 */
   2202     _flag_k = FK_CMP;
   2203     edi = ecx; /* 0x360216A6: mov edi, ecx */
   2204     _st[0] *= (double)*(float*)ADDR(0x36170818); /* 0x360216A8: fmul dword ptr [0x36170818] */
   2205     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360216AE: fadd dword ptr [0x36170380] */
   2206     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x360216B4: fstp qword ptr [esp] */
   2207     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x360216B7: call dword ptr [0x3616f198] */
   2208     RECOMP_FLAGS_IN();
   2209     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2210     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2211     esp = esp + 8; /* 0x360216BD: add esp, 8 */
   2212     _flag_k = FK_ADD;
   2213     RECOMP_ICALL(0x3615FD8Cu); /* 0x360216C0: call 0x3615fd8c */ /* not lifted */
   2214     RECOMP_FLAGS_IN();
   2215     ebx = eax; /* 0x360216C5: mov ebx, eax */
   2216     /* test ebx, ebx */ /* 0x360216C7: test ebx, ebx */
   2217     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2218     _cf = 0;
   2219     _flag_k = FK_TEST;
   2220     if (TEST_LE(_flag_a, _flag_b)) goto L_360217A5; /* 0x360216C9: jle 0x360217a5 */
   2221 L_360216CF:
   2222     /* cmp ebx, 0xBu */ /* 0x360216CF: cmp ebx, 0xb */
   2223     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xBu);
   2224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2225     _flag_k = FK_CMP;
   2226     if (CMP_G(_flag_a, _flag_b)) goto L_360217A5; /* 0x360216D2: jg 0x360217a5 */
   2227 L_360216D8:
   2228     ecx = ebp + (-0x34); /* 0x360216D8: lea ecx, [ebp - 0x34] */
   2229     RECOMP_ICALL(0x360F6380u); /* 0x360216DB: call 0x360f6380 */ /* not lifted */
   2230     RECOMP_FLAGS_IN();
   2231     eax = MEM32(esi + 0x4); /* 0x360216E0: mov eax, dword ptr [esi + 4] */
   2232     PUSH32(esp, eax); /* 0x360216E3: push eax */
   2233     PUSH32(esp, 0); /* 0x360216E4: push 0 */
   2234     ecx = ebp + (-0x34); /* 0x360216E6: lea ecx, [ebp - 0x34] */
   2235     RECOMP_ICALL(0x360F63A0u); /* 0x360216E9: call 0x360f63a0 */ /* not lifted */
   2236     RECOMP_FLAGS_IN();
   2237     ecx = MEM32(esi + 0x8); /* 0x360216EE: mov ecx, dword ptr [esi + 8] */
   2238     PUSH32(esp, ecx); /* 0x360216F1: push ecx */
   2239     PUSH32(esp, 1); /* 0x360216F2: push 1 */
   2240     ecx = ebp + (-0x34); /* 0x360216F4: lea ecx, [ebp - 0x34] */
   2241     RECOMP_ICALL(0x360F63A0u); /* 0x360216F7: call 0x360f63a0 */ /* not lifted */
   2242     RECOMP_FLAGS_IN();
   2243     edx = MEM32(esi + 0xC); /* 0x360216FC: mov edx, dword ptr [esi + 0xc] */
   2244     PUSH32(esp, edx); /* 0x360216FF: push edx */
   2245     PUSH32(esp, 2); /* 0x36021700: push 2 */
   2246     ecx = ebp + (-0x34); /* 0x36021702: lea ecx, [ebp - 0x34] */
   2247     RECOMP_ICALL(0x360F63A0u); /* 0x36021705: call 0x360f63a0 */ /* not lifted */
   2248     RECOMP_FLAGS_IN();
   2249     eax = MEM32(esi + 0x10); /* 0x3602170A: mov eax, dword ptr [esi + 0x10] */
   2250     PUSH32(esp, eax); /* 0x3602170D: push eax */
   2251     PUSH32(esp, 3); /* 0x3602170E: push 3 */
   2252     ecx = ebp + (-0x34); /* 0x36021710: lea ecx, [ebp - 0x34] */
   2253     RECOMP_ICALL(0x360F63A0u); /* 0x36021713: call 0x360f63a0 */ /* not lifted */
   2254     RECOMP_FLAGS_IN();
   2255     ecx = MEM32(esi + 0x14); /* 0x36021718: mov ecx, dword ptr [esi + 0x14] */
   2256     PUSH32(esp, ecx); /* 0x3602171B: push ecx */
   2257     PUSH32(esp, 4); /* 0x3602171C: push 4 */
   2258     ecx = ebp + (-0x34); /* 0x3602171E: lea ecx, [ebp - 0x34] */
   2259     RECOMP_ICALL(0x360F63A0u); /* 0x36021721: call 0x360f63a0 */ /* not lifted */
   2260     RECOMP_FLAGS_IN();
   2261     edx = MEM32(esi + 0x18); /* 0x36021726: mov edx, dword ptr [esi + 0x18] */
   2262     PUSH32(esp, edx); /* 0x36021729: push edx */
   2263     PUSH32(esp, 5); /* 0x3602172A: push 5 */
   2264     ecx = ebp + (-0x34); /* 0x3602172C: lea ecx, [ebp - 0x34] */
   2265     RECOMP_ICALL(0x360F63A0u); /* 0x3602172F: call 0x360f63a0 */ /* not lifted */
   2266     RECOMP_FLAGS_IN();
   2267     eax = MEM32(esi + 0x1C); /* 0x36021734: mov eax, dword ptr [esi + 0x1c] */
   2268     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u);
   2269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2270     esi = esi + 0x20u; /* 0x36021737: add esi, 0x20 */
   2271     _flag_k = FK_ADD;
   2272     PUSH32(esp, 0x74u); /* 0x3602173A: push 0x74 */
   2273     MEM32(ebp + (-0x10)) = eax; /* 0x3602173C: mov dword ptr [ebp - 0x10], eax */
   2274     MEM32(ebp + 0x8) = esi; /* 0x3602173F: mov dword ptr [ebp + 8], esi */
   2275     RECOMP_ICALL(0x3615FD6Au); /* 0x36021742: call 0x3615fd6a */ /* not lifted */
   2276     RECOMP_FLAGS_IN();
   2277     esi = eax; /* 0x36021747: mov esi, eax */
   2278     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2280     esp = esp + 4; /* 0x36021749: add esp, 4 */
   2281     _flag_k = FK_ADD;
   2282     MEM32(ebp + (-0x14)) = esi; /* 0x3602174C: mov dword ptr [ebp - 0x14], esi */
   2283     /* test esi, esi */ /* 0x3602174F: test esi, esi */
   2284     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2285     _cf = 0;
   2286     _flag_k = FK_TEST;
   2287     MEM32(ebp + (-0x4)) = 0; /* 0x36021751: mov dword ptr [ebp - 4], 0 */
   2288     if (TEST_Z(_flag_a, _flag_b)) goto L_36021771; /* 0x36021758: je 0x36021771 */
   2289 L_3602175A:
   2290     edx = MEM32(edi); /* 0x3602175A: mov edx, dword ptr [edi] */
   2291     eax = ebp + (-0x1C); /* 0x3602175C: lea eax, [ebp - 0x1c] */
   2292     PUSH32(esp, eax); /* 0x3602175F: push eax */
   2293     ecx = edi; /* 0x36021760: mov ecx, edi */
   2294     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x36021762: call dword ptr [edx + 0x24] */
   2295     RECOMP_FLAGS_IN();
   2296     PUSH32(esp, eax); /* 0x36021765: push eax */
   2297     ecx = esi; /* 0x36021766: mov ecx, esi */
   2298     RECOMP_ICALL(0x360F6DC0u); /* 0x36021768: call 0x360f6dc0 */ /* not lifted */
   2299     RECOMP_FLAGS_IN();
   2300     esi = eax; /* 0x3602176D: mov esi, eax */
   2301     goto L_36021773; /* 0x3602176F: jmp 0x36021773 */
   2302 L_36021771:
   2303     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2304     esi = 0; /* 0x36021771: xor esi, esi */
   2305     _cf = 0;
   2306     _flag_k = FK_TEST;
   2307 L_36021773:
   2308     PUSH32(esp, ebx); /* 0x36021773: push ebx */
   2309     ecx = esi; /* 0x36021774: mov ecx, esi */
   2310     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36021776: mov dword ptr [ebp - 4], 0xffffffff */
   2311     RECOMP_ICALL(0x360F4AD0u); /* 0x3602177D: call 0x360f4ad0 */ /* not lifted */
   2312     RECOMP_FLAGS_IN();
   2313     ecx = ebp + (-0x34); /* 0x36021782: lea ecx, [ebp - 0x34] */
   2314     PUSH32(esp, ecx); /* 0x36021785: push ecx */
   2315     ecx = esi; /* 0x36021786: mov ecx, esi */
   2316     RECOMP_ICALL(0x360C6620u); /* 0x36021788: call 0x360c6620 */ /* not lifted */
   2317     RECOMP_FLAGS_IN();
   2318     edx = MEM32(ebp + 0x8); /* 0x3602178D: mov edx, dword ptr [ebp + 8] */
   2319     eax = MEM32(ebp + (-0x10)); /* 0x36021790: mov eax, dword ptr [ebp - 0x10] */
   2320     PUSH32(esp, edx); /* 0x36021793: push edx */
   2321     PUSH32(esp, eax); /* 0x36021794: push eax */
   2322     ecx = esi; /* 0x36021795: mov ecx, esi */
   2323     RECOMP_ICALL(0x360F4B00u); /* 0x36021797: call 0x360f4b00 */ /* not lifted */
   2324     RECOMP_FLAGS_IN();
   2325     PUSH32(esp, esi); /* 0x3602179C: push esi */
   2326     ecx = edi; /* 0x3602179D: mov ecx, edi */
   2327     RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x3602179F: call dword ptr [0x3616ff60] */
   2328     RECOMP_FLAGS_IN();
   2329 L_360217A5:
   2330     ecx = MEM32(ebp + (-0xC)); /* 0x360217A5: mov ecx, dword ptr [ebp - 0xc] */
   2331     edi = POP32_VAL(esp); /* 0x360217A8: pop edi */
   2332     esi = POP32_VAL(esp); /* 0x360217A9: pop esi */
   2333     ebx = POP32_VAL(esp); /* 0x360217AA: pop ebx */
   2334     MEM32(FS_BASE + (0)) = ecx; /* 0x360217AB: mov dword ptr fs:[0], ecx */
   2335     esp = ebp; /* 0x360217B2: mov esp, ebp */
   2336     ebp = POP32_VAL(esp); /* 0x360217B4: pop ebp */
   2337     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360217B5: ret 4 */
   2338     RECOMP_REGS_OUT();
   2339 }
   2340 
   2341 void sub_360217C0(void) {
   2342     int _fpu_cmp = 0;
   2343     uint32_t _cf = 0;
   2344     int _df = 1;
   2345     uint32_t _flag_k = FK_NONE;
   2346     uint32_t _flag_a = 0, _flag_b = 0;
   2347     uint32_t _itail_tgt = 0;
   2348     RECOMP_REGS_LOCALS
   2349     RECOMP_ENTER(0x360217C0u);
   2350 
   2351 L_360217C0:
   2352     PUSH32(esp, ebp); /* 0x360217C0: push ebp */
   2353     ebp = esp; /* 0x360217C1: mov ebp, esp */
   2354     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   2355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2356     esp = esp - 0x24u; /* 0x360217C3: sub esp, 0x24 */
   2357     _flag_k = FK_CMP;
   2358     SET_LO8(eax, MEM8(0x36303B98)); /* 0x360217C6: mov al, byte ptr [0x36303b98] */
   2359     /* test LO8(eax), 1 */ /* 0x360217CB: test al, 1 */
   2360     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2361     _cf = 0;
   2362     _flag_k = FK_NARROW(FK_TEST, 24);
   2363     PUSH32(esp, ebx); /* 0x360217CD: push ebx */
   2364     PUSH32(esp, esi); /* 0x360217CE: push esi */
   2365     esi = ecx; /* 0x360217CF: mov esi, ecx */
   2366     PUSH32(esp, edi); /* 0x360217D1: push edi */
   2367     MEM32(ebp + (-0x8)) = esi; /* 0x360217D2: mov dword ptr [ebp - 8], esi */
   2368     if (TEST_NZ(_flag_a, _flag_b)) goto L_36021808; /* 0x360217D5: jne 0x36021808 */
   2369 L_360217D7:
   2370     SET_LO8(edx, LO8(eax)); /* 0x360217D7: mov dl, al */
   2371     SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x360217D9: mov al, byte ptr [ebp - 1] */
   2372     MEM8(0x36303B88) = (uint8_t)(LO8(eax)); /* 0x360217DC: mov byte ptr [0x36303b88], al */
   2373     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2374     eax = 0; /* 0x360217E1: xor eax, eax */
   2375     _cf = 0;
   2376     _flag_k = FK_TEST;
   2377     _flag_a = (uint32_t)((LO8(edx) | 1)) << 24; _flag_b = (uint32_t)((LO8(edx) | 1)) << 24;
   2378     SET_LO8(edx, LO8(edx) | 1); /* 0x360217E3: or dl, 1 */
   2379     _cf = 0;
   2380     _flag_k = FK_NARROW(FK_TEST, 24);
   2381     PUSH32(esp, 0x36021AA0u); /* 0x360217E6: push 0x36021aa0 */
   2382     MEM8(0x36303B98) = (uint8_t)(LO8(edx)); /* 0x360217EB: mov byte ptr [0x36303b98], dl */
   2383     MEM32(0x36303B8C) = eax; /* 0x360217F1: mov dword ptr [0x36303b8c], eax */
   2384     MEM32(0x36303B90) = eax; /* 0x360217F6: mov dword ptr [0x36303b90], eax */
   2385     MEM32(0x36303B94) = eax; /* 0x360217FB: mov dword ptr [0x36303b94], eax */
   2386     RECOMP_ICALL(0x3615FEB2u); /* 0x36021800: call 0x3615feb2 */ /* not lifted */
   2387     RECOMP_FLAGS_IN();
   2388     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2390     esp = esp + 4; /* 0x36021805: add esp, 4 */
   2391     _flag_k = FK_ADD;
   2392 L_36021808:
   2393     eax = MEM32(0x36303B90); /* 0x36021808: mov eax, dword ptr [0x36303b90] */
   2394     /* cmp eax, eax */ /* 0x3602180D: cmp eax, eax */
   2395     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2397     _flag_k = FK_CMP;
   2398     ecx = MEM32(0x36303B8C); /* 0x3602180F: mov ecx, dword ptr [0x36303b8c] */
   2399     edx = eax; /* 0x36021815: mov edx, eax */
   2400     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021840; /* 0x36021817: je 0x36021840 */
   2401 L_36021819:
   2402     esi = eax; /* 0x36021819: mov esi, eax */
   2403     ebx = MEM32(esi); /* 0x3602181B: mov ebx, dword ptr [esi] */
   2404     edi = ecx; /* 0x3602181D: mov edi, ecx */
   2405     MEM32(edi) = ebx; /* 0x3602181F: mov dword ptr [edi], ebx */
   2406     ebx = MEM32(esi + 0x4); /* 0x36021821: mov ebx, dword ptr [esi + 4] */
   2407     MEM32(edi + 0x4) = ebx; /* 0x36021824: mov dword ptr [edi + 4], ebx */
   2408     ebx = MEM32(esi + 0x8); /* 0x36021827: mov ebx, dword ptr [esi + 8] */
   2409     MEM32(edi + 0x8) = ebx; /* 0x3602182A: mov dword ptr [edi + 8], ebx */
   2410     esi = MEM32(esi + 0xC); /* 0x3602182D: mov esi, dword ptr [esi + 0xc] */
   2411     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2412     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2413     eax = eax + 0x10u; /* 0x36021830: add eax, 0x10 */
   2414     _flag_k = FK_ADD;
   2415     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   2416     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2417     ecx = ecx + 0x10u; /* 0x36021833: add ecx, 0x10 */
   2418     _flag_k = FK_ADD;
   2419     /* cmp eax, edx */ /* 0x36021836: cmp eax, edx */
   2420     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2422     _flag_k = FK_CMP;
   2423     MEM32(edi + 0xC) = esi; /* 0x36021838: mov dword ptr [edi + 0xc], esi */
   2424     RECOMP_BACKEDGE();
   2425     if (CMP_NE(_flag_a, _flag_b)) goto L_36021819; /* 0x3602183B: jne 0x36021819 */
   2426 L_3602183D:
   2427     esi = MEM32(ebp + (-0x8)); /* 0x3602183D: mov esi, dword ptr [ebp - 8] */
   2428 L_36021840:
   2429     MEM32(0x36303B90) = ecx; /* 0x36021840: mov dword ptr [0x36303b90], ecx */
   2430     edx = MEM32(esi); /* 0x36021846: mov edx, dword ptr [esi] */
   2431     eax = ebp + (-0x14); /* 0x36021848: lea eax, [ebp - 0x14] */
   2432     PUSH32(esp, eax); /* 0x3602184B: push eax */
   2433     ecx = esi; /* 0x3602184C: mov ecx, esi */
   2434     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3602184E: call dword ptr [edx + 0x24] */
   2435     RECOMP_FLAGS_IN();
   2436     PUSH32(esp, eax); /* 0x36021851: push eax */
   2437     RECOMP_ICALL(0x3606DA90u); /* 0x36021852: call 0x3606da90 */ /* not lifted */
   2438     RECOMP_FLAGS_IN();
   2439     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2441     esp = esp + 4; /* 0x36021857: add esp, 4 */
   2442     _flag_k = FK_ADD;
   2443     ecx = eax; /* 0x3602185A: mov ecx, eax */
   2444     RECOMP_ICALL(0x36071F20u); /* 0x3602185C: call 0x36071f20 */ /* not lifted */
   2445     RECOMP_FLAGS_IN();
   2446     ecx = eax; /* 0x36021861: mov ecx, eax */
   2447     RECOMP_ICALL(0x3606C640u); /* 0x36021863: call 0x3606c640 */ /* not lifted */
   2448     RECOMP_FLAGS_IN();
   2449     edi = MEM32(eax + 0x4); /* 0x36021868: mov edi, dword ptr [eax + 4] */
   2450     eax = MEM32(eax + 0x8); /* 0x3602186B: mov eax, dword ptr [eax + 8] */
   2451     /* cmp eax, edi */ /* 0x3602186E: cmp eax, edi */
   2452     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2454     _flag_k = FK_CMP;
   2455     MEM32(ebp + (-0x8)) = edi; /* 0x36021870: mov dword ptr [ebp - 8], edi */
   2456     MEM32(ebp + (-0x10)) = eax; /* 0x36021873: mov dword ptr [ebp - 0x10], eax */
   2457     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A87; /* 0x36021876: je 0x36021a87 */
   2458 L_3602187C:
   2459     eax = MEM32(0x36303B90); /* 0x3602187C: mov eax, dword ptr [0x36303b90] */
   2460 L_36021881:
   2461     ecx = MEM32(edi); /* 0x36021881: mov ecx, dword ptr [edi] */
   2462     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2463     edx = 0; /* 0x36021883: xor edx, edx */
   2464     _cf = 0;
   2465     _flag_k = FK_TEST;
   2466     MEM32(ebp + (-0x24)) = edx; /* 0x36021885: mov dword ptr [ebp - 0x24], edx */
   2467     MEM32(ebp + (-0x20)) = edx; /* 0x36021888: mov dword ptr [ebp - 0x20], edx */
   2468     esi = MEM32(ecx); /* 0x3602188B: mov esi, dword ptr [ecx] */
   2469     MEM32(ebp + (-0x24)) = esi; /* 0x3602188D: mov dword ptr [ebp - 0x24], esi */
   2470     ecx = MEM32(ecx + 0x4); /* 0x36021890: mov ecx, dword ptr [ecx + 4] */
   2471     MEM32(ebp + (-0x20)) = ecx; /* 0x36021893: mov dword ptr [ebp - 0x20], ecx */
   2472     ecx = MEM32(edi + 0x4); /* 0x36021896: mov ecx, dword ptr [edi + 4] */
   2473     MEM32(ebp + (-0x1C)) = ecx; /* 0x36021899: mov dword ptr [ebp - 0x1c], ecx */
   2474     ecx = MEM32(edi + 0x8); /* 0x3602189C: mov ecx, dword ptr [edi + 8] */
   2475     MEM32(ebp + (-0x18)) = ecx; /* 0x3602189F: mov dword ptr [ebp - 0x18], ecx */
   2476     ecx = MEM32(0x36303B94); /* 0x360218A2: mov ecx, dword ptr [0x36303b94] */
   2477     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2478     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2479     ecx = ecx - eax; /* 0x360218A8: sub ecx, eax */
   2480     _flag_k = FK_CMP;
   2481     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360218AA: sar ecx, 4 */
   2482     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2483     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2484     /* cmp ecx, 1 */ /* 0x360218AD: cmp ecx, 1 */
   2485     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2487     _flag_k = FK_CMP;
   2488     esi = eax; /* 0x360218B0: mov esi, eax */
   2489     if (CMP_AE(_flag_a, _flag_b)) goto L_36021988; /* 0x360218B2: jae 0x36021988 */
   2490 L_360218B8:
   2491     ecx = MEM32(0x36303B8C); /* 0x360218B8: mov ecx, dword ptr [0x36303b8c] */
   2492     /* cmp ecx, edx */ /* 0x360218BE: cmp ecx, edx */
   2493     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2494     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2495     _flag_k = FK_CMP;
   2496     if (CMP_EQ(_flag_a, _flag_b)) goto L_360218CE; /* 0x360218C0: je 0x360218ce */
   2497 L_360218C2:
   2498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2500     eax = eax - ecx; /* 0x360218C2: sub eax, ecx */
   2501     _flag_k = FK_CMP;
   2502     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x360218C4: sar eax, 4 */
   2503     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2504     eax = (uint32_t)((int32_t)eax >> 4u);
   2505     /* cmp eax, 1 */ /* 0x360218C7: cmp eax, 1 */
   2506     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2508     _flag_k = FK_CMP;
   2509     ebx = eax; /* 0x360218CA: mov ebx, eax */
   2510     if (CMP_A(_flag_a, _flag_b)) goto L_360218D3; /* 0x360218CC: ja 0x360218d3 */
   2511 L_360218CE:
   2512     ebx = 1; /* 0x360218CE: mov ebx, 1 */
   2513 L_360218D3:
   2514     ecx = 0x36303B88u; /* 0x360218D3: mov ecx, 0x36303b88 */
   2515     RECOMP_ICALL(0x36029B00u); /* 0x360218D8: call 0x36029b00 */ /* not lifted */
   2516     RECOMP_FLAGS_IN();
   2517     edi = eax; /* 0x360218DD: mov edi, eax */
   2518     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2520     edi = edi + ebx; /* 0x360218DF: add edi, ebx */
   2521     _flag_k = FK_ADD;
   2522     eax = edi; /* 0x360218E1: mov eax, edi */
   2523     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_360218E7; /* 0x360218E3: jns 0x360218e7 */
   2524 L_360218E5:
   2525     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2526     eax = 0; /* 0x360218E5: xor eax, eax */
   2527     _cf = 0;
   2528     _flag_k = FK_TEST;
   2529 L_360218E7:
   2530     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x360218E7: shl eax, 4 */
   2531     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2532     eax = eax << 4u; /* 0x360218E7: shl eax, 4 */
   2533     PUSH32(esp, eax); /* 0x360218EA: push eax */
   2534     RECOMP_ICALL(0x3615FD6Au); /* 0x360218EB: call 0x3615fd6a */ /* not lifted */
   2535     RECOMP_FLAGS_IN();
   2536     edx = MEM32(0x36303B8C); /* 0x360218F0: mov edx, dword ptr [0x36303b8c] */
   2537     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2539     esp = esp + 4; /* 0x360218F6: add esp, 4 */
   2540     _flag_k = FK_ADD;
   2541     ebx = eax; /* 0x360218F9: mov ebx, eax */
   2542     PUSH32(esp, ebx); /* 0x360218FB: push ebx */
   2543     PUSH32(esp, esi); /* 0x360218FC: push esi */
   2544     PUSH32(esp, edx); /* 0x360218FD: push edx */
   2545     ecx = 0x36303B88u; /* 0x360218FE: mov ecx, 0x36303b88 */
   2546     RECOMP_ICALL(0x361562A0u); /* 0x36021903: call 0x361562a0 */ /* not lifted */
   2547     RECOMP_FLAGS_IN();
   2548     ecx = ebp + (-0x24); /* 0x36021908: lea ecx, [ebp - 0x24] */
   2549     PUSH32(esp, ecx); /* 0x3602190B: push ecx */
   2550     PUSH32(esp, 1); /* 0x3602190C: push 1 */
   2551     PUSH32(esp, eax); /* 0x3602190E: push eax */
   2552     ecx = 0x36303B88u; /* 0x3602190F: mov ecx, 0x36303b88 */
   2553     MEM32(ebp + (-0xC)) = eax; /* 0x36021914: mov dword ptr [ebp - 0xc], eax */
   2554     RECOMP_ICALL(0x36029B20u); /* 0x36021917: call 0x36029b20 */ /* not lifted */
   2555     RECOMP_FLAGS_IN();
   2556     edx = MEM32(ebp + (-0xC)); /* 0x3602191C: mov edx, dword ptr [ebp - 0xc] */
   2557     eax = MEM32(0x36303B90); /* 0x3602191F: mov eax, dword ptr [0x36303b90] */
   2558     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   2559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2560     edx = edx + 0x10u; /* 0x36021924: add edx, 0x10 */
   2561     _flag_k = FK_ADD;
   2562     PUSH32(esp, edx); /* 0x36021927: push edx */
   2563     PUSH32(esp, eax); /* 0x36021928: push eax */
   2564     PUSH32(esp, esi); /* 0x36021929: push esi */
   2565     ecx = 0x36303B88u; /* 0x3602192A: mov ecx, 0x36303b88 */
   2566     RECOMP_ICALL(0x361562A0u); /* 0x3602192F: call 0x361562a0 */ /* not lifted */
   2567     RECOMP_FLAGS_IN();
   2568     ecx = MEM32(0x36303B90); /* 0x36021934: mov ecx, dword ptr [0x36303b90] */
   2569     edx = MEM32(0x36303B8C); /* 0x3602193A: mov edx, dword ptr [0x36303b8c] */
   2570     PUSH32(esp, ecx); /* 0x36021940: push ecx */
   2571     PUSH32(esp, edx); /* 0x36021941: push edx */
   2572     ecx = 0x36303B88u; /* 0x36021942: mov ecx, 0x36303b88 */
   2573     RECOMP_ICALL(0x3610ED60u); /* 0x36021947: call 0x3610ed60 */ /* not lifted */
   2574     RECOMP_FLAGS_IN();
   2575     eax = MEM32(0x36303B8C); /* 0x3602194C: mov eax, dword ptr [0x36303b8c] */
   2576     PUSH32(esp, eax); /* 0x36021951: push eax */
   2577     RECOMP_ICALL(0x3615FCC4u); /* 0x36021952: call 0x3615fcc4 */ /* not lifted */
   2578     RECOMP_FLAGS_IN();
   2579     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x36021957: shl edi, 4 */
   2580     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2581     edi = edi << 4u; /* 0x36021957: shl edi, 4 */
   2582     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2584     edi = edi + ebx; /* 0x3602195A: add edi, ebx */
   2585     _flag_k = FK_ADD;
   2586     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2587     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2588     esp = esp + 4; /* 0x3602195C: add esp, 4 */
   2589     _flag_k = FK_ADD;
   2590     ecx = 0x36303B88u; /* 0x3602195F: mov ecx, 0x36303b88 */
   2591     MEM32(0x36303B94) = edi; /* 0x36021964: mov dword ptr [0x36303b94], edi */
   2592     RECOMP_ICALL(0x36029B00u); /* 0x3602196A: call 0x36029b00 */ /* not lifted */
   2593     RECOMP_FLAGS_IN();
   2594     edi = MEM32(ebp + (-0x8)); /* 0x3602196F: mov edi, dword ptr [ebp - 8] */
   2595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2596     eax = eax + 1; /* 0x36021972: inc eax */
   2597     _flag_k = FK_INC;
   2598     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36021973: shl eax, 4 */
   2599     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2600     eax = eax << 4u; /* 0x36021973: shl eax, 4 */
   2601     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2603     eax = eax + ebx; /* 0x36021976: add eax, ebx */
   2604     _flag_k = FK_ADD;
   2605     MEM32(0x36303B90) = eax; /* 0x36021978: mov dword ptr [0x36303b90], eax */
   2606     MEM32(0x36303B8C) = ebx; /* 0x3602197D: mov dword ptr [0x36303b8c], ebx */
   2607     goto L_36021A76; /* 0x36021983: jmp 0x36021a76 */
   2608 L_36021988:
   2609     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2610     ecx = 0; /* 0x36021988: xor ecx, ecx */
   2611     _cf = 0;
   2612     _flag_k = FK_TEST;
   2613     MEM32(ebp + (-0xC)) = ecx; /* 0x3602198A: mov dword ptr [ebp - 0xc], ecx */
   2614     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x3602198D: sar ecx, 4 */
   2615     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2616     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2617     /* cmp ecx, 1 */ /* 0x36021990: cmp ecx, 1 */
   2618     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2620     _flag_k = FK_CMP;
   2621     if (CMP_AE(_flag_a, _flag_b)) goto L_360219F7; /* 0x36021993: jae 0x360219f7 */
   2622 L_36021995:
   2623     ecx = eax + 0x10; /* 0x36021995: lea ecx, [eax + 0x10] */
   2624     PUSH32(esp, ecx); /* 0x36021998: push ecx */
   2625     PUSH32(esp, eax); /* 0x36021999: push eax */
   2626     PUSH32(esp, eax); /* 0x3602199A: push eax */
   2627     ecx = 0x36303B88u; /* 0x3602199B: mov ecx, 0x36303b88 */
   2628     RECOMP_ICALL(0x361562A0u); /* 0x360219A0: call 0x361562a0 */ /* not lifted */
   2629     RECOMP_FLAGS_IN();
   2630     eax = MEM32(0x36303B90); /* 0x360219A5: mov eax, dword ptr [0x36303b90] */
   2631     ecx = eax; /* 0x360219AA: mov ecx, eax */
   2632     edx = ebp + (-0x24); /* 0x360219AC: lea edx, [ebp - 0x24] */
   2633     PUSH32(esp, edx); /* 0x360219AF: push edx */
   2634     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2635     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2636     ecx = ecx - esi; /* 0x360219B0: sub ecx, esi */
   2637     _flag_k = FK_CMP;
   2638     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360219B2: sar ecx, 4 */
   2639     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2640     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2641     edx = 1; /* 0x360219B5: mov edx, 1 */
   2642     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2644     edx = edx - ecx; /* 0x360219BA: sub edx, ecx */
   2645     _flag_k = FK_CMP;
   2646     PUSH32(esp, edx); /* 0x360219BC: push edx */
   2647     PUSH32(esp, eax); /* 0x360219BD: push eax */
   2648     ecx = 0x36303B88u; /* 0x360219BE: mov ecx, 0x36303b88 */
   2649     RECOMP_ICALL(0x36029B20u); /* 0x360219C3: call 0x36029b20 */ /* not lifted */
   2650     RECOMP_FLAGS_IN();
   2651     eax = MEM32(0x36303B90); /* 0x360219C8: mov eax, dword ptr [0x36303b90] */
   2652     /* cmp esi, eax */ /* 0x360219CD: cmp esi, eax */
   2653     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2655     _flag_k = FK_CMP;
   2656     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x360219CF: je 0x36021a6e */
   2657 L_360219D5:
   2658     edx = MEM32(ebp + (-0x24)); /* 0x360219D5: mov edx, dword ptr [ebp - 0x24] */
   2659     ecx = esi; /* 0x360219D8: mov ecx, esi */
   2660     MEM32(ecx) = edx; /* 0x360219DA: mov dword ptr [ecx], edx */
   2661     edx = MEM32(ebp + (-0x20)); /* 0x360219DC: mov edx, dword ptr [ebp - 0x20] */
   2662     MEM32(ecx + 0x4) = edx; /* 0x360219DF: mov dword ptr [ecx + 4], edx */
   2663     edx = MEM32(ebp + (-0x1C)); /* 0x360219E2: mov edx, dword ptr [ebp - 0x1c] */
   2664     MEM32(ecx + 0x8) = edx; /* 0x360219E5: mov dword ptr [ecx + 8], edx */
   2665     edx = MEM32(ebp + (-0x18)); /* 0x360219E8: mov edx, dword ptr [ebp - 0x18] */
   2666     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2668     esi = esi + 0x10u; /* 0x360219EB: add esi, 0x10 */
   2669     _flag_k = FK_ADD;
   2670     /* cmp esi, eax */ /* 0x360219EE: cmp esi, eax */
   2671     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2673     _flag_k = FK_CMP;
   2674     MEM32(ecx + 0xC) = edx; /* 0x360219F0: mov dword ptr [ecx + 0xc], edx */
   2675     RECOMP_BACKEDGE();
   2676     if (CMP_NE(_flag_a, _flag_b)) goto L_360219D5; /* 0x360219F3: jne 0x360219d5 */
   2677 L_360219F5:
   2678     goto L_36021A69; /* 0x360219F5: jmp 0x36021a69 */
   2679 L_360219F7:
   2680     PUSH32(esp, eax); /* 0x360219F7: push eax */
   2681     ecx = eax + (-0x10); /* 0x360219F8: lea ecx, [eax - 0x10] */
   2682     PUSH32(esp, eax); /* 0x360219FB: push eax */
   2683     MEM32(ebp + (-0xC)) = ecx; /* 0x360219FC: mov dword ptr [ebp - 0xc], ecx */
   2684     PUSH32(esp, ecx); /* 0x360219FF: push ecx */
   2685     ecx = 0x36303B88u; /* 0x36021A00: mov ecx, 0x36303b88 */
   2686     RECOMP_ICALL(0x361562A0u); /* 0x36021A05: call 0x361562a0 */ /* not lifted */
   2687     RECOMP_FLAGS_IN();
   2688     eax = MEM32(0x36303B90); /* 0x36021A0A: mov eax, dword ptr [0x36303b90] */
   2689     ecx = eax + (-0x10); /* 0x36021A0F: lea ecx, [eax - 0x10] */
   2690     /* cmp esi, ecx */ /* 0x36021A12: cmp esi, ecx */
   2691     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   2692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2693     _flag_k = FK_CMP;
   2694     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A42; /* 0x36021A14: je 0x36021a42 */
   2695 L_36021A16:
   2696     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   2697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2698     ecx = ecx - 0x10u; /* 0x36021A16: sub ecx, 0x10 */
   2699     _flag_k = FK_CMP;
   2700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2702     eax = eax - 0x10u; /* 0x36021A19: sub eax, 0x10 */
   2703     _flag_k = FK_CMP;
   2704     /* cmp ecx, esi */ /* 0x36021A1C: cmp ecx, esi */
   2705     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2707     _flag_k = FK_CMP;
   2708     edx = ecx; /* 0x36021A1E: mov edx, ecx */
   2709     ebx = MEM32(edx); /* 0x36021A20: mov ebx, dword ptr [edx] */
   2710     edi = eax; /* 0x36021A22: mov edi, eax */
   2711     MEM32(edi) = ebx; /* 0x36021A24: mov dword ptr [edi], ebx */
   2712     ebx = MEM32(edx + 0x4); /* 0x36021A26: mov ebx, dword ptr [edx + 4] */
   2713     MEM32(edi + 0x4) = ebx; /* 0x36021A29: mov dword ptr [edi + 4], ebx */
   2714     ebx = MEM32(edx + 0x8); /* 0x36021A2C: mov ebx, dword ptr [edx + 8] */
   2715     MEM32(edi + 0x8) = ebx; /* 0x36021A2F: mov dword ptr [edi + 8], ebx */
   2716     edx = MEM32(edx + 0xC); /* 0x36021A32: mov edx, dword ptr [edx + 0xc] */
   2717     MEM32(edi + 0xC) = edx; /* 0x36021A35: mov dword ptr [edi + 0xc], edx */
   2718     RECOMP_BACKEDGE();
   2719     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A16; /* 0x36021A38: jne 0x36021a16 */
   2720 L_36021A3A:
   2721     eax = MEM32(0x36303B90); /* 0x36021A3A: mov eax, dword ptr [0x36303b90] */
   2722     edi = MEM32(ebp + (-0x8)); /* 0x36021A3F: mov edi, dword ptr [ebp - 8] */
   2723 L_36021A42:
   2724     ecx = esi + 0x10; /* 0x36021A42: lea ecx, [esi + 0x10] */
   2725     /* cmp esi, ecx */ /* 0x36021A45: cmp esi, ecx */
   2726     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   2727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2728     _flag_k = FK_CMP;
   2729     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x36021A47: je 0x36021a6e */
   2730 L_36021A49:
   2731     edx = MEM32(ebp + (-0x24)); /* 0x36021A49: mov edx, dword ptr [ebp - 0x24] */
   2732     eax = esi; /* 0x36021A4C: mov eax, esi */
   2733     MEM32(eax) = edx; /* 0x36021A4E: mov dword ptr [eax], edx */
   2734     edx = MEM32(ebp + (-0x20)); /* 0x36021A50: mov edx, dword ptr [ebp - 0x20] */
   2735     MEM32(eax + 0x4) = edx; /* 0x36021A53: mov dword ptr [eax + 4], edx */
   2736     edx = MEM32(ebp + (-0x1C)); /* 0x36021A56: mov edx, dword ptr [ebp - 0x1c] */
   2737     MEM32(eax + 0x8) = edx; /* 0x36021A59: mov dword ptr [eax + 8], edx */
   2738     edx = MEM32(ebp + (-0x18)); /* 0x36021A5C: mov edx, dword ptr [ebp - 0x18] */
   2739     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2740     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2741     esi = esi + 0x10u; /* 0x36021A5F: add esi, 0x10 */
   2742     _flag_k = FK_ADD;
   2743     /* cmp esi, ecx */ /* 0x36021A62: cmp esi, ecx */
   2744     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   2745     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2746     _flag_k = FK_CMP;
   2747     MEM32(eax + 0xC) = edx; /* 0x36021A64: mov dword ptr [eax + 0xc], edx */
   2748     RECOMP_BACKEDGE();
   2749     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A49; /* 0x36021A67: jne 0x36021a49 */
   2750 L_36021A69:
   2751     eax = MEM32(0x36303B90); /* 0x36021A69: mov eax, dword ptr [0x36303b90] */
   2752 L_36021A6E:
   2753     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   2754     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2755     eax = eax + 0x10u; /* 0x36021A6E: add eax, 0x10 */
   2756     _flag_k = FK_ADD;
   2757     MEM32(0x36303B90) = eax; /* 0x36021A71: mov dword ptr [0x36303b90], eax */
   2758 L_36021A76:
   2759     ecx = MEM32(ebp + (-0x10)); /* 0x36021A76: mov ecx, dword ptr [ebp - 0x10] */
   2760     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   2761     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2762     edi = edi + 0xCu; /* 0x36021A79: add edi, 0xc */
   2763     _flag_k = FK_ADD;
   2764     /* cmp edi, ecx */ /* 0x36021A7C: cmp edi, ecx */
   2765     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   2766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2767     _flag_k = FK_CMP;
   2768     MEM32(ebp + (-0x8)) = edi; /* 0x36021A7E: mov dword ptr [ebp - 8], edi */
   2769     RECOMP_BACKEDGE();
   2770     if (CMP_NE(_flag_a, _flag_b)) goto L_36021881; /* 0x36021A81: jne 0x36021881 */
   2771 L_36021A87:
   2772     edi = POP32_VAL(esp); /* 0x36021A87: pop edi */
   2773     esi = POP32_VAL(esp); /* 0x36021A88: pop esi */
   2774     eax = 0x36303B88u; /* 0x36021A89: mov eax, 0x36303b88 */
   2775     ebx = POP32_VAL(esp); /* 0x36021A8E: pop ebx */
   2776     esp = ebp; /* 0x36021A8F: mov esp, ebp */
   2777     ebp = POP32_VAL(esp); /* 0x36021A91: pop ebp */
   2778     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36021A92: ret  */
   2779     RECOMP_REGS_OUT();
   2780 }
   2781 
   2782 void sub_36021881(void) {
   2783     int _fpu_cmp = 0;
   2784     uint32_t _cf = 0;
   2785     int _df = 1;
   2786     uint32_t _flag_k = FK_NONE;
   2787     uint32_t _flag_a = 0, _flag_b = 0;
   2788     uint32_t _itail_tgt = 0;
   2789     RECOMP_REGS_LOCALS
   2790     RECOMP_ENTER(0x36021881u);
   2791 
   2792 L_36021881:
   2793     ecx = MEM32(edi); /* 0x36021881: mov ecx, dword ptr [edi] */
   2794     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2795     edx = 0; /* 0x36021883: xor edx, edx */
   2796     _cf = 0;
   2797     _flag_k = FK_TEST;
   2798     MEM32(ebp + (-0x24)) = edx; /* 0x36021885: mov dword ptr [ebp - 0x24], edx */
   2799     MEM32(ebp + (-0x20)) = edx; /* 0x36021888: mov dword ptr [ebp - 0x20], edx */
   2800     esi = MEM32(ecx); /* 0x3602188B: mov esi, dword ptr [ecx] */
   2801     MEM32(ebp + (-0x24)) = esi; /* 0x3602188D: mov dword ptr [ebp - 0x24], esi */
   2802     ecx = MEM32(ecx + 0x4); /* 0x36021890: mov ecx, dword ptr [ecx + 4] */
   2803     MEM32(ebp + (-0x20)) = ecx; /* 0x36021893: mov dword ptr [ebp - 0x20], ecx */
   2804     ecx = MEM32(edi + 0x4); /* 0x36021896: mov ecx, dword ptr [edi + 4] */
   2805     MEM32(ebp + (-0x1C)) = ecx; /* 0x36021899: mov dword ptr [ebp - 0x1c], ecx */
   2806     ecx = MEM32(edi + 0x8); /* 0x3602189C: mov ecx, dword ptr [edi + 8] */
   2807     MEM32(ebp + (-0x18)) = ecx; /* 0x3602189F: mov dword ptr [ebp - 0x18], ecx */
   2808     ecx = MEM32(0x36303B94); /* 0x360218A2: mov ecx, dword ptr [0x36303b94] */
   2809     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2811     ecx = ecx - eax; /* 0x360218A8: sub ecx, eax */
   2812     _flag_k = FK_CMP;
   2813     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360218AA: sar ecx, 4 */
   2814     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2815     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2816     /* cmp ecx, 1 */ /* 0x360218AD: cmp ecx, 1 */
   2817     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2818     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2819     _flag_k = FK_CMP;
   2820     esi = eax; /* 0x360218B0: mov esi, eax */
   2821     if (CMP_AE(_flag_a, _flag_b)) goto L_36021988; /* 0x360218B2: jae 0x36021988 */
   2822 L_360218B8:
   2823     ecx = MEM32(0x36303B8C); /* 0x360218B8: mov ecx, dword ptr [0x36303b8c] */
   2824     /* cmp ecx, edx */ /* 0x360218BE: cmp ecx, edx */
   2825     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2827     _flag_k = FK_CMP;
   2828     if (CMP_EQ(_flag_a, _flag_b)) goto L_360218CE; /* 0x360218C0: je 0x360218ce */
   2829 L_360218C2:
   2830     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2832     eax = eax - ecx; /* 0x360218C2: sub eax, ecx */
   2833     _flag_k = FK_CMP;
   2834     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x360218C4: sar eax, 4 */
   2835     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2836     eax = (uint32_t)((int32_t)eax >> 4u);
   2837     /* cmp eax, 1 */ /* 0x360218C7: cmp eax, 1 */
   2838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2840     _flag_k = FK_CMP;
   2841     ebx = eax; /* 0x360218CA: mov ebx, eax */
   2842     if (CMP_A(_flag_a, _flag_b)) goto L_360218D3; /* 0x360218CC: ja 0x360218d3 */
   2843 L_360218CE:
   2844     ebx = 1; /* 0x360218CE: mov ebx, 1 */
   2845 L_360218D3:
   2846     ecx = 0x36303B88u; /* 0x360218D3: mov ecx, 0x36303b88 */
   2847     RECOMP_ICALL(0x36029B00u); /* 0x360218D8: call 0x36029b00 */ /* not lifted */
   2848     RECOMP_FLAGS_IN();
   2849     edi = eax; /* 0x360218DD: mov edi, eax */
   2850     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2852     edi = edi + ebx; /* 0x360218DF: add edi, ebx */
   2853     _flag_k = FK_ADD;
   2854     eax = edi; /* 0x360218E1: mov eax, edi */
   2855     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_360218E7; /* 0x360218E3: jns 0x360218e7 */
   2856 L_360218E5:
   2857     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2858     eax = 0; /* 0x360218E5: xor eax, eax */
   2859     _cf = 0;
   2860     _flag_k = FK_TEST;
   2861 L_360218E7:
   2862     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x360218E7: shl eax, 4 */
   2863     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2864     eax = eax << 4u; /* 0x360218E7: shl eax, 4 */
   2865     PUSH32(esp, eax); /* 0x360218EA: push eax */
   2866     RECOMP_ICALL(0x3615FD6Au); /* 0x360218EB: call 0x3615fd6a */ /* not lifted */
   2867     RECOMP_FLAGS_IN();
   2868     edx = MEM32(0x36303B8C); /* 0x360218F0: mov edx, dword ptr [0x36303b8c] */
   2869     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2870     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2871     esp = esp + 4; /* 0x360218F6: add esp, 4 */
   2872     _flag_k = FK_ADD;
   2873     ebx = eax; /* 0x360218F9: mov ebx, eax */
   2874     PUSH32(esp, ebx); /* 0x360218FB: push ebx */
   2875     PUSH32(esp, esi); /* 0x360218FC: push esi */
   2876     PUSH32(esp, edx); /* 0x360218FD: push edx */
   2877     ecx = 0x36303B88u; /* 0x360218FE: mov ecx, 0x36303b88 */
   2878     RECOMP_ICALL(0x361562A0u); /* 0x36021903: call 0x361562a0 */ /* not lifted */
   2879     RECOMP_FLAGS_IN();
   2880     ecx = ebp + (-0x24); /* 0x36021908: lea ecx, [ebp - 0x24] */
   2881     PUSH32(esp, ecx); /* 0x3602190B: push ecx */
   2882     PUSH32(esp, 1); /* 0x3602190C: push 1 */
   2883     PUSH32(esp, eax); /* 0x3602190E: push eax */
   2884     ecx = 0x36303B88u; /* 0x3602190F: mov ecx, 0x36303b88 */
   2885     MEM32(ebp + (-0xC)) = eax; /* 0x36021914: mov dword ptr [ebp - 0xc], eax */
   2886     RECOMP_ICALL(0x36029B20u); /* 0x36021917: call 0x36029b20 */ /* not lifted */
   2887     RECOMP_FLAGS_IN();
   2888     edx = MEM32(ebp + (-0xC)); /* 0x3602191C: mov edx, dword ptr [ebp - 0xc] */
   2889     eax = MEM32(0x36303B90); /* 0x3602191F: mov eax, dword ptr [0x36303b90] */
   2890     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   2891     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2892     edx = edx + 0x10u; /* 0x36021924: add edx, 0x10 */
   2893     _flag_k = FK_ADD;
   2894     PUSH32(esp, edx); /* 0x36021927: push edx */
   2895     PUSH32(esp, eax); /* 0x36021928: push eax */
   2896     PUSH32(esp, esi); /* 0x36021929: push esi */
   2897     ecx = 0x36303B88u; /* 0x3602192A: mov ecx, 0x36303b88 */
   2898     RECOMP_ICALL(0x361562A0u); /* 0x3602192F: call 0x361562a0 */ /* not lifted */
   2899     RECOMP_FLAGS_IN();
   2900     ecx = MEM32(0x36303B90); /* 0x36021934: mov ecx, dword ptr [0x36303b90] */
   2901     edx = MEM32(0x36303B8C); /* 0x3602193A: mov edx, dword ptr [0x36303b8c] */
   2902     PUSH32(esp, ecx); /* 0x36021940: push ecx */
   2903     PUSH32(esp, edx); /* 0x36021941: push edx */
   2904     ecx = 0x36303B88u; /* 0x36021942: mov ecx, 0x36303b88 */
   2905     RECOMP_ICALL(0x3610ED60u); /* 0x36021947: call 0x3610ed60 */ /* not lifted */
   2906     RECOMP_FLAGS_IN();
   2907     eax = MEM32(0x36303B8C); /* 0x3602194C: mov eax, dword ptr [0x36303b8c] */
   2908     PUSH32(esp, eax); /* 0x36021951: push eax */
   2909     RECOMP_ICALL(0x3615FCC4u); /* 0x36021952: call 0x3615fcc4 */ /* not lifted */
   2910     RECOMP_FLAGS_IN();
   2911     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x36021957: shl edi, 4 */
   2912     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2913     edi = edi << 4u; /* 0x36021957: shl edi, 4 */
   2914     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   2915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2916     edi = edi + ebx; /* 0x3602195A: add edi, ebx */
   2917     _flag_k = FK_ADD;
   2918     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2919     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2920     esp = esp + 4; /* 0x3602195C: add esp, 4 */
   2921     _flag_k = FK_ADD;
   2922     ecx = 0x36303B88u; /* 0x3602195F: mov ecx, 0x36303b88 */
   2923     MEM32(0x36303B94) = edi; /* 0x36021964: mov dword ptr [0x36303b94], edi */
   2924     RECOMP_ICALL(0x36029B00u); /* 0x3602196A: call 0x36029b00 */ /* not lifted */
   2925     RECOMP_FLAGS_IN();
   2926     edi = MEM32(ebp + (-0x8)); /* 0x3602196F: mov edi, dword ptr [ebp - 8] */
   2927     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2928     eax = eax + 1; /* 0x36021972: inc eax */
   2929     _flag_k = FK_INC;
   2930     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36021973: shl eax, 4 */
   2931     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2932     eax = eax << 4u; /* 0x36021973: shl eax, 4 */
   2933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2934     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2935     eax = eax + ebx; /* 0x36021976: add eax, ebx */
   2936     _flag_k = FK_ADD;
   2937     MEM32(0x36303B90) = eax; /* 0x36021978: mov dword ptr [0x36303b90], eax */
   2938     MEM32(0x36303B8C) = ebx; /* 0x3602197D: mov dword ptr [0x36303b8c], ebx */
   2939     goto L_36021A76; /* 0x36021983: jmp 0x36021a76 */
   2940 L_36021988:
   2941     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2942     ecx = 0; /* 0x36021988: xor ecx, ecx */
   2943     _cf = 0;
   2944     _flag_k = FK_TEST;
   2945     MEM32(ebp + (-0xC)) = ecx; /* 0x3602198A: mov dword ptr [ebp - 0xc], ecx */
   2946     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x3602198D: sar ecx, 4 */
   2947     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2948     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2949     /* cmp ecx, 1 */ /* 0x36021990: cmp ecx, 1 */
   2950     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2952     _flag_k = FK_CMP;
   2953     if (CMP_AE(_flag_a, _flag_b)) goto L_360219F7; /* 0x36021993: jae 0x360219f7 */
   2954 L_36021995:
   2955     ecx = eax + 0x10; /* 0x36021995: lea ecx, [eax + 0x10] */
   2956     PUSH32(esp, ecx); /* 0x36021998: push ecx */
   2957     PUSH32(esp, eax); /* 0x36021999: push eax */
   2958     PUSH32(esp, eax); /* 0x3602199A: push eax */
   2959     ecx = 0x36303B88u; /* 0x3602199B: mov ecx, 0x36303b88 */
   2960     RECOMP_ICALL(0x361562A0u); /* 0x360219A0: call 0x361562a0 */ /* not lifted */
   2961     RECOMP_FLAGS_IN();
   2962     eax = MEM32(0x36303B90); /* 0x360219A5: mov eax, dword ptr [0x36303b90] */
   2963     ecx = eax; /* 0x360219AA: mov ecx, eax */
   2964     edx = ebp + (-0x24); /* 0x360219AC: lea edx, [ebp - 0x24] */
   2965     PUSH32(esp, edx); /* 0x360219AF: push edx */
   2966     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   2967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2968     ecx = ecx - esi; /* 0x360219B0: sub ecx, esi */
   2969     _flag_k = FK_CMP;
   2970     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360219B2: sar ecx, 4 */
   2971     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2972     ecx = (uint32_t)((int32_t)ecx >> 4u);
   2973     edx = 1; /* 0x360219B5: mov edx, 1 */
   2974     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   2975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2976     edx = edx - ecx; /* 0x360219BA: sub edx, ecx */
   2977     _flag_k = FK_CMP;
   2978     PUSH32(esp, edx); /* 0x360219BC: push edx */
   2979     PUSH32(esp, eax); /* 0x360219BD: push eax */
   2980     ecx = 0x36303B88u; /* 0x360219BE: mov ecx, 0x36303b88 */
   2981     RECOMP_ICALL(0x36029B20u); /* 0x360219C3: call 0x36029b20 */ /* not lifted */
   2982     RECOMP_FLAGS_IN();
   2983     eax = MEM32(0x36303B90); /* 0x360219C8: mov eax, dword ptr [0x36303b90] */
   2984     /* cmp esi, eax */ /* 0x360219CD: cmp esi, eax */
   2985     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2987     _flag_k = FK_CMP;
   2988     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x360219CF: je 0x36021a6e */
   2989 L_360219D5:
   2990     edx = MEM32(ebp + (-0x24)); /* 0x360219D5: mov edx, dword ptr [ebp - 0x24] */
   2991     ecx = esi; /* 0x360219D8: mov ecx, esi */
   2992     MEM32(ecx) = edx; /* 0x360219DA: mov dword ptr [ecx], edx */
   2993     edx = MEM32(ebp + (-0x20)); /* 0x360219DC: mov edx, dword ptr [ebp - 0x20] */
   2994     MEM32(ecx + 0x4) = edx; /* 0x360219DF: mov dword ptr [ecx + 4], edx */
   2995     edx = MEM32(ebp + (-0x1C)); /* 0x360219E2: mov edx, dword ptr [ebp - 0x1c] */
   2996     MEM32(ecx + 0x8) = edx; /* 0x360219E5: mov dword ptr [ecx + 8], edx */
   2997     edx = MEM32(ebp + (-0x18)); /* 0x360219E8: mov edx, dword ptr [ebp - 0x18] */
   2998     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   2999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3000     esi = esi + 0x10u; /* 0x360219EB: add esi, 0x10 */
   3001     _flag_k = FK_ADD;
   3002     /* cmp esi, eax */ /* 0x360219EE: cmp esi, eax */
   3003     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3005     _flag_k = FK_CMP;
   3006     MEM32(ecx + 0xC) = edx; /* 0x360219F0: mov dword ptr [ecx + 0xc], edx */
   3007     RECOMP_BACKEDGE();
   3008     if (CMP_NE(_flag_a, _flag_b)) goto L_360219D5; /* 0x360219F3: jne 0x360219d5 */
   3009 L_360219F5:
   3010     goto L_36021A69; /* 0x360219F5: jmp 0x36021a69 */
   3011 L_360219F7:
   3012     PUSH32(esp, eax); /* 0x360219F7: push eax */
   3013     ecx = eax + (-0x10); /* 0x360219F8: lea ecx, [eax - 0x10] */
   3014     PUSH32(esp, eax); /* 0x360219FB: push eax */
   3015     MEM32(ebp + (-0xC)) = ecx; /* 0x360219FC: mov dword ptr [ebp - 0xc], ecx */
   3016     PUSH32(esp, ecx); /* 0x360219FF: push ecx */
   3017     ecx = 0x36303B88u; /* 0x36021A00: mov ecx, 0x36303b88 */
   3018     RECOMP_ICALL(0x361562A0u); /* 0x36021A05: call 0x361562a0 */ /* not lifted */
   3019     RECOMP_FLAGS_IN();
   3020     eax = MEM32(0x36303B90); /* 0x36021A0A: mov eax, dword ptr [0x36303b90] */
   3021     ecx = eax + (-0x10); /* 0x36021A0F: lea ecx, [eax - 0x10] */
   3022     /* cmp esi, ecx */ /* 0x36021A12: cmp esi, ecx */
   3023     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3025     _flag_k = FK_CMP;
   3026     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A42; /* 0x36021A14: je 0x36021a42 */
   3027 L_36021A16:
   3028     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3029     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3030     ecx = ecx - 0x10u; /* 0x36021A16: sub ecx, 0x10 */
   3031     _flag_k = FK_CMP;
   3032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3033     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3034     eax = eax - 0x10u; /* 0x36021A19: sub eax, 0x10 */
   3035     _flag_k = FK_CMP;
   3036     /* cmp ecx, esi */ /* 0x36021A1C: cmp ecx, esi */
   3037     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3038     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3039     _flag_k = FK_CMP;
   3040     edx = ecx; /* 0x36021A1E: mov edx, ecx */
   3041     ebx = MEM32(edx); /* 0x36021A20: mov ebx, dword ptr [edx] */
   3042     edi = eax; /* 0x36021A22: mov edi, eax */
   3043     MEM32(edi) = ebx; /* 0x36021A24: mov dword ptr [edi], ebx */
   3044     ebx = MEM32(edx + 0x4); /* 0x36021A26: mov ebx, dword ptr [edx + 4] */
   3045     MEM32(edi + 0x4) = ebx; /* 0x36021A29: mov dword ptr [edi + 4], ebx */
   3046     ebx = MEM32(edx + 0x8); /* 0x36021A2C: mov ebx, dword ptr [edx + 8] */
   3047     MEM32(edi + 0x8) = ebx; /* 0x36021A2F: mov dword ptr [edi + 8], ebx */
   3048     edx = MEM32(edx + 0xC); /* 0x36021A32: mov edx, dword ptr [edx + 0xc] */
   3049     MEM32(edi + 0xC) = edx; /* 0x36021A35: mov dword ptr [edi + 0xc], edx */
   3050     RECOMP_BACKEDGE();
   3051     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A16; /* 0x36021A38: jne 0x36021a16 */
   3052 L_36021A3A:
   3053     eax = MEM32(0x36303B90); /* 0x36021A3A: mov eax, dword ptr [0x36303b90] */
   3054     edi = MEM32(ebp + (-0x8)); /* 0x36021A3F: mov edi, dword ptr [ebp - 8] */
   3055 L_36021A42:
   3056     ecx = esi + 0x10; /* 0x36021A42: lea ecx, [esi + 0x10] */
   3057     /* cmp esi, ecx */ /* 0x36021A45: cmp esi, ecx */
   3058     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3060     _flag_k = FK_CMP;
   3061     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x36021A47: je 0x36021a6e */
   3062 L_36021A49:
   3063     edx = MEM32(ebp + (-0x24)); /* 0x36021A49: mov edx, dword ptr [ebp - 0x24] */
   3064     eax = esi; /* 0x36021A4C: mov eax, esi */
   3065     MEM32(eax) = edx; /* 0x36021A4E: mov dword ptr [eax], edx */
   3066     edx = MEM32(ebp + (-0x20)); /* 0x36021A50: mov edx, dword ptr [ebp - 0x20] */
   3067     MEM32(eax + 0x4) = edx; /* 0x36021A53: mov dword ptr [eax + 4], edx */
   3068     edx = MEM32(ebp + (-0x1C)); /* 0x36021A56: mov edx, dword ptr [ebp - 0x1c] */
   3069     MEM32(eax + 0x8) = edx; /* 0x36021A59: mov dword ptr [eax + 8], edx */
   3070     edx = MEM32(ebp + (-0x18)); /* 0x36021A5C: mov edx, dword ptr [ebp - 0x18] */
   3071     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3072     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3073     esi = esi + 0x10u; /* 0x36021A5F: add esi, 0x10 */
   3074     _flag_k = FK_ADD;
   3075     /* cmp esi, ecx */ /* 0x36021A62: cmp esi, ecx */
   3076     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3077     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3078     _flag_k = FK_CMP;
   3079     MEM32(eax + 0xC) = edx; /* 0x36021A64: mov dword ptr [eax + 0xc], edx */
   3080     RECOMP_BACKEDGE();
   3081     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A49; /* 0x36021A67: jne 0x36021a49 */
   3082 L_36021A69:
   3083     eax = MEM32(0x36303B90); /* 0x36021A69: mov eax, dword ptr [0x36303b90] */
   3084 L_36021A6E:
   3085     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3086     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3087     eax = eax + 0x10u; /* 0x36021A6E: add eax, 0x10 */
   3088     _flag_k = FK_ADD;
   3089     MEM32(0x36303B90) = eax; /* 0x36021A71: mov dword ptr [0x36303b90], eax */
   3090 L_36021A76:
   3091     ecx = MEM32(ebp + (-0x10)); /* 0x36021A76: mov ecx, dword ptr [ebp - 0x10] */
   3092     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   3093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3094     edi = edi + 0xCu; /* 0x36021A79: add edi, 0xc */
   3095     _flag_k = FK_ADD;
   3096     /* cmp edi, ecx */ /* 0x36021A7C: cmp edi, ecx */
   3097     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3098     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3099     _flag_k = FK_CMP;
   3100     MEM32(ebp + (-0x8)) = edi; /* 0x36021A7E: mov dword ptr [ebp - 8], edi */
   3101     RECOMP_BACKEDGE();
   3102     if (CMP_NE(_flag_a, _flag_b)) goto L_36021881; /* 0x36021A81: jne 0x36021881 */
   3103 L_36021A87:
   3104     edi = POP32_VAL(esp); /* 0x36021A87: pop edi */
   3105     esi = POP32_VAL(esp); /* 0x36021A88: pop esi */
   3106     eax = 0x36303B88u; /* 0x36021A89: mov eax, 0x36303b88 */
   3107     ebx = POP32_VAL(esp); /* 0x36021A8E: pop ebx */
   3108     esp = ebp; /* 0x36021A8F: mov esp, ebp */
   3109     ebp = POP32_VAL(esp); /* 0x36021A91: pop ebp */
   3110     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36021A92: ret  */
   3111     RECOMP_REGS_OUT();
   3112 }
   3113 
   3114 void sub_36021A69(void) {
   3115     int _fpu_cmp = 0;
   3116     uint32_t _cf = 0;
   3117     int _df = 1;
   3118     uint32_t _flag_k = FK_NONE;
   3119     uint32_t _flag_a = 0, _flag_b = 0;
   3120     uint32_t _itail_tgt = 0;
   3121     RECOMP_REGS_LOCALS
   3122     RECOMP_ENTER(0x36021A69u);
   3123 
   3124     goto L_36021A69;
   3125 L_36021881:
   3126     ecx = MEM32(edi); /* 0x36021881: mov ecx, dword ptr [edi] */
   3127     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3128     edx = 0; /* 0x36021883: xor edx, edx */
   3129     _cf = 0;
   3130     _flag_k = FK_TEST;
   3131     MEM32(ebp + (-0x24)) = edx; /* 0x36021885: mov dword ptr [ebp - 0x24], edx */
   3132     MEM32(ebp + (-0x20)) = edx; /* 0x36021888: mov dword ptr [ebp - 0x20], edx */
   3133     esi = MEM32(ecx); /* 0x3602188B: mov esi, dword ptr [ecx] */
   3134     MEM32(ebp + (-0x24)) = esi; /* 0x3602188D: mov dword ptr [ebp - 0x24], esi */
   3135     ecx = MEM32(ecx + 0x4); /* 0x36021890: mov ecx, dword ptr [ecx + 4] */
   3136     MEM32(ebp + (-0x20)) = ecx; /* 0x36021893: mov dword ptr [ebp - 0x20], ecx */
   3137     ecx = MEM32(edi + 0x4); /* 0x36021896: mov ecx, dword ptr [edi + 4] */
   3138     MEM32(ebp + (-0x1C)) = ecx; /* 0x36021899: mov dword ptr [ebp - 0x1c], ecx */
   3139     ecx = MEM32(edi + 0x8); /* 0x3602189C: mov ecx, dword ptr [edi + 8] */
   3140     MEM32(ebp + (-0x18)) = ecx; /* 0x3602189F: mov dword ptr [ebp - 0x18], ecx */
   3141     ecx = MEM32(0x36303B94); /* 0x360218A2: mov ecx, dword ptr [0x36303b94] */
   3142     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3143     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3144     ecx = ecx - eax; /* 0x360218A8: sub ecx, eax */
   3145     _flag_k = FK_CMP;
   3146     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360218AA: sar ecx, 4 */
   3147     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3148     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3149     /* cmp ecx, 1 */ /* 0x360218AD: cmp ecx, 1 */
   3150     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3152     _flag_k = FK_CMP;
   3153     esi = eax; /* 0x360218B0: mov esi, eax */
   3154     if (CMP_AE(_flag_a, _flag_b)) goto L_36021988; /* 0x360218B2: jae 0x36021988 */
   3155 L_360218B8:
   3156     ecx = MEM32(0x36303B8C); /* 0x360218B8: mov ecx, dword ptr [0x36303b8c] */
   3157     /* cmp ecx, edx */ /* 0x360218BE: cmp ecx, edx */
   3158     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3159     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3160     _flag_k = FK_CMP;
   3161     if (CMP_EQ(_flag_a, _flag_b)) goto L_360218CE; /* 0x360218C0: je 0x360218ce */
   3162 L_360218C2:
   3163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3165     eax = eax - ecx; /* 0x360218C2: sub eax, ecx */
   3166     _flag_k = FK_CMP;
   3167     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x360218C4: sar eax, 4 */
   3168     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3169     eax = (uint32_t)((int32_t)eax >> 4u);
   3170     /* cmp eax, 1 */ /* 0x360218C7: cmp eax, 1 */
   3171     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3173     _flag_k = FK_CMP;
   3174     ebx = eax; /* 0x360218CA: mov ebx, eax */
   3175     if (CMP_A(_flag_a, _flag_b)) goto L_360218D3; /* 0x360218CC: ja 0x360218d3 */
   3176 L_360218CE:
   3177     ebx = 1; /* 0x360218CE: mov ebx, 1 */
   3178 L_360218D3:
   3179     ecx = 0x36303B88u; /* 0x360218D3: mov ecx, 0x36303b88 */
   3180     RECOMP_ICALL(0x36029B00u); /* 0x360218D8: call 0x36029b00 */ /* not lifted */
   3181     RECOMP_FLAGS_IN();
   3182     edi = eax; /* 0x360218DD: mov edi, eax */
   3183     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3184     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3185     edi = edi + ebx; /* 0x360218DF: add edi, ebx */
   3186     _flag_k = FK_ADD;
   3187     eax = edi; /* 0x360218E1: mov eax, edi */
   3188     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_360218E7; /* 0x360218E3: jns 0x360218e7 */
   3189 L_360218E5:
   3190     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3191     eax = 0; /* 0x360218E5: xor eax, eax */
   3192     _cf = 0;
   3193     _flag_k = FK_TEST;
   3194 L_360218E7:
   3195     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x360218E7: shl eax, 4 */
   3196     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3197     eax = eax << 4u; /* 0x360218E7: shl eax, 4 */
   3198     PUSH32(esp, eax); /* 0x360218EA: push eax */
   3199     RECOMP_ICALL(0x3615FD6Au); /* 0x360218EB: call 0x3615fd6a */ /* not lifted */
   3200     RECOMP_FLAGS_IN();
   3201     edx = MEM32(0x36303B8C); /* 0x360218F0: mov edx, dword ptr [0x36303b8c] */
   3202     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3204     esp = esp + 4; /* 0x360218F6: add esp, 4 */
   3205     _flag_k = FK_ADD;
   3206     ebx = eax; /* 0x360218F9: mov ebx, eax */
   3207     PUSH32(esp, ebx); /* 0x360218FB: push ebx */
   3208     PUSH32(esp, esi); /* 0x360218FC: push esi */
   3209     PUSH32(esp, edx); /* 0x360218FD: push edx */
   3210     ecx = 0x36303B88u; /* 0x360218FE: mov ecx, 0x36303b88 */
   3211     RECOMP_ICALL(0x361562A0u); /* 0x36021903: call 0x361562a0 */ /* not lifted */
   3212     RECOMP_FLAGS_IN();
   3213     ecx = ebp + (-0x24); /* 0x36021908: lea ecx, [ebp - 0x24] */
   3214     PUSH32(esp, ecx); /* 0x3602190B: push ecx */
   3215     PUSH32(esp, 1); /* 0x3602190C: push 1 */
   3216     PUSH32(esp, eax); /* 0x3602190E: push eax */
   3217     ecx = 0x36303B88u; /* 0x3602190F: mov ecx, 0x36303b88 */
   3218     MEM32(ebp + (-0xC)) = eax; /* 0x36021914: mov dword ptr [ebp - 0xc], eax */
   3219     RECOMP_ICALL(0x36029B20u); /* 0x36021917: call 0x36029b20 */ /* not lifted */
   3220     RECOMP_FLAGS_IN();
   3221     edx = MEM32(ebp + (-0xC)); /* 0x3602191C: mov edx, dword ptr [ebp - 0xc] */
   3222     eax = MEM32(0x36303B90); /* 0x3602191F: mov eax, dword ptr [0x36303b90] */
   3223     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   3224     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3225     edx = edx + 0x10u; /* 0x36021924: add edx, 0x10 */
   3226     _flag_k = FK_ADD;
   3227     PUSH32(esp, edx); /* 0x36021927: push edx */
   3228     PUSH32(esp, eax); /* 0x36021928: push eax */
   3229     PUSH32(esp, esi); /* 0x36021929: push esi */
   3230     ecx = 0x36303B88u; /* 0x3602192A: mov ecx, 0x36303b88 */
   3231     RECOMP_ICALL(0x361562A0u); /* 0x3602192F: call 0x361562a0 */ /* not lifted */
   3232     RECOMP_FLAGS_IN();
   3233     ecx = MEM32(0x36303B90); /* 0x36021934: mov ecx, dword ptr [0x36303b90] */
   3234     edx = MEM32(0x36303B8C); /* 0x3602193A: mov edx, dword ptr [0x36303b8c] */
   3235     PUSH32(esp, ecx); /* 0x36021940: push ecx */
   3236     PUSH32(esp, edx); /* 0x36021941: push edx */
   3237     ecx = 0x36303B88u; /* 0x36021942: mov ecx, 0x36303b88 */
   3238     RECOMP_ICALL(0x3610ED60u); /* 0x36021947: call 0x3610ed60 */ /* not lifted */
   3239     RECOMP_FLAGS_IN();
   3240     eax = MEM32(0x36303B8C); /* 0x3602194C: mov eax, dword ptr [0x36303b8c] */
   3241     PUSH32(esp, eax); /* 0x36021951: push eax */
   3242     RECOMP_ICALL(0x3615FCC4u); /* 0x36021952: call 0x3615fcc4 */ /* not lifted */
   3243     RECOMP_FLAGS_IN();
   3244     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x36021957: shl edi, 4 */
   3245     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3246     edi = edi << 4u; /* 0x36021957: shl edi, 4 */
   3247     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3248     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3249     edi = edi + ebx; /* 0x3602195A: add edi, ebx */
   3250     _flag_k = FK_ADD;
   3251     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3253     esp = esp + 4; /* 0x3602195C: add esp, 4 */
   3254     _flag_k = FK_ADD;
   3255     ecx = 0x36303B88u; /* 0x3602195F: mov ecx, 0x36303b88 */
   3256     MEM32(0x36303B94) = edi; /* 0x36021964: mov dword ptr [0x36303b94], edi */
   3257     RECOMP_ICALL(0x36029B00u); /* 0x3602196A: call 0x36029b00 */ /* not lifted */
   3258     RECOMP_FLAGS_IN();
   3259     edi = MEM32(ebp + (-0x8)); /* 0x3602196F: mov edi, dword ptr [ebp - 8] */
   3260     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3261     eax = eax + 1; /* 0x36021972: inc eax */
   3262     _flag_k = FK_INC;
   3263     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36021973: shl eax, 4 */
   3264     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3265     eax = eax << 4u; /* 0x36021973: shl eax, 4 */
   3266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3267     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3268     eax = eax + ebx; /* 0x36021976: add eax, ebx */
   3269     _flag_k = FK_ADD;
   3270     MEM32(0x36303B90) = eax; /* 0x36021978: mov dword ptr [0x36303b90], eax */
   3271     MEM32(0x36303B8C) = ebx; /* 0x3602197D: mov dword ptr [0x36303b8c], ebx */
   3272     goto L_36021A76; /* 0x36021983: jmp 0x36021a76 */
   3273 L_36021988:
   3274     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3275     ecx = 0; /* 0x36021988: xor ecx, ecx */
   3276     _cf = 0;
   3277     _flag_k = FK_TEST;
   3278     MEM32(ebp + (-0xC)) = ecx; /* 0x3602198A: mov dword ptr [ebp - 0xc], ecx */
   3279     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x3602198D: sar ecx, 4 */
   3280     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3281     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3282     /* cmp ecx, 1 */ /* 0x36021990: cmp ecx, 1 */
   3283     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3284     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3285     _flag_k = FK_CMP;
   3286     if (CMP_AE(_flag_a, _flag_b)) goto L_360219F7; /* 0x36021993: jae 0x360219f7 */
   3287 L_36021995:
   3288     ecx = eax + 0x10; /* 0x36021995: lea ecx, [eax + 0x10] */
   3289     PUSH32(esp, ecx); /* 0x36021998: push ecx */
   3290     PUSH32(esp, eax); /* 0x36021999: push eax */
   3291     PUSH32(esp, eax); /* 0x3602199A: push eax */
   3292     ecx = 0x36303B88u; /* 0x3602199B: mov ecx, 0x36303b88 */
   3293     RECOMP_ICALL(0x361562A0u); /* 0x360219A0: call 0x361562a0 */ /* not lifted */
   3294     RECOMP_FLAGS_IN();
   3295     eax = MEM32(0x36303B90); /* 0x360219A5: mov eax, dword ptr [0x36303b90] */
   3296     ecx = eax; /* 0x360219AA: mov ecx, eax */
   3297     edx = ebp + (-0x24); /* 0x360219AC: lea edx, [ebp - 0x24] */
   3298     PUSH32(esp, edx); /* 0x360219AF: push edx */
   3299     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3301     ecx = ecx - esi; /* 0x360219B0: sub ecx, esi */
   3302     _flag_k = FK_CMP;
   3303     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360219B2: sar ecx, 4 */
   3304     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3305     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3306     edx = 1; /* 0x360219B5: mov edx, 1 */
   3307     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3308     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3309     edx = edx - ecx; /* 0x360219BA: sub edx, ecx */
   3310     _flag_k = FK_CMP;
   3311     PUSH32(esp, edx); /* 0x360219BC: push edx */
   3312     PUSH32(esp, eax); /* 0x360219BD: push eax */
   3313     ecx = 0x36303B88u; /* 0x360219BE: mov ecx, 0x36303b88 */
   3314     RECOMP_ICALL(0x36029B20u); /* 0x360219C3: call 0x36029b20 */ /* not lifted */
   3315     RECOMP_FLAGS_IN();
   3316     eax = MEM32(0x36303B90); /* 0x360219C8: mov eax, dword ptr [0x36303b90] */
   3317     /* cmp esi, eax */ /* 0x360219CD: cmp esi, eax */
   3318     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3320     _flag_k = FK_CMP;
   3321     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x360219CF: je 0x36021a6e */
   3322 L_360219D5:
   3323     edx = MEM32(ebp + (-0x24)); /* 0x360219D5: mov edx, dword ptr [ebp - 0x24] */
   3324     ecx = esi; /* 0x360219D8: mov ecx, esi */
   3325     MEM32(ecx) = edx; /* 0x360219DA: mov dword ptr [ecx], edx */
   3326     edx = MEM32(ebp + (-0x20)); /* 0x360219DC: mov edx, dword ptr [ebp - 0x20] */
   3327     MEM32(ecx + 0x4) = edx; /* 0x360219DF: mov dword ptr [ecx + 4], edx */
   3328     edx = MEM32(ebp + (-0x1C)); /* 0x360219E2: mov edx, dword ptr [ebp - 0x1c] */
   3329     MEM32(ecx + 0x8) = edx; /* 0x360219E5: mov dword ptr [ecx + 8], edx */
   3330     edx = MEM32(ebp + (-0x18)); /* 0x360219E8: mov edx, dword ptr [ebp - 0x18] */
   3331     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3333     esi = esi + 0x10u; /* 0x360219EB: add esi, 0x10 */
   3334     _flag_k = FK_ADD;
   3335     /* cmp esi, eax */ /* 0x360219EE: cmp esi, eax */
   3336     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3338     _flag_k = FK_CMP;
   3339     MEM32(ecx + 0xC) = edx; /* 0x360219F0: mov dword ptr [ecx + 0xc], edx */
   3340     RECOMP_BACKEDGE();
   3341     if (CMP_NE(_flag_a, _flag_b)) goto L_360219D5; /* 0x360219F3: jne 0x360219d5 */
   3342 L_360219F5:
   3343     goto L_36021A69; /* 0x360219F5: jmp 0x36021a69 */
   3344 L_360219F7:
   3345     PUSH32(esp, eax); /* 0x360219F7: push eax */
   3346     ecx = eax + (-0x10); /* 0x360219F8: lea ecx, [eax - 0x10] */
   3347     PUSH32(esp, eax); /* 0x360219FB: push eax */
   3348     MEM32(ebp + (-0xC)) = ecx; /* 0x360219FC: mov dword ptr [ebp - 0xc], ecx */
   3349     PUSH32(esp, ecx); /* 0x360219FF: push ecx */
   3350     ecx = 0x36303B88u; /* 0x36021A00: mov ecx, 0x36303b88 */
   3351     RECOMP_ICALL(0x361562A0u); /* 0x36021A05: call 0x361562a0 */ /* not lifted */
   3352     RECOMP_FLAGS_IN();
   3353     eax = MEM32(0x36303B90); /* 0x36021A0A: mov eax, dword ptr [0x36303b90] */
   3354     ecx = eax + (-0x10); /* 0x36021A0F: lea ecx, [eax - 0x10] */
   3355     /* cmp esi, ecx */ /* 0x36021A12: cmp esi, ecx */
   3356     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3358     _flag_k = FK_CMP;
   3359     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A42; /* 0x36021A14: je 0x36021a42 */
   3360 L_36021A16:
   3361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3363     ecx = ecx - 0x10u; /* 0x36021A16: sub ecx, 0x10 */
   3364     _flag_k = FK_CMP;
   3365     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3367     eax = eax - 0x10u; /* 0x36021A19: sub eax, 0x10 */
   3368     _flag_k = FK_CMP;
   3369     /* cmp ecx, esi */ /* 0x36021A1C: cmp ecx, esi */
   3370     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3372     _flag_k = FK_CMP;
   3373     edx = ecx; /* 0x36021A1E: mov edx, ecx */
   3374     ebx = MEM32(edx); /* 0x36021A20: mov ebx, dword ptr [edx] */
   3375     edi = eax; /* 0x36021A22: mov edi, eax */
   3376     MEM32(edi) = ebx; /* 0x36021A24: mov dword ptr [edi], ebx */
   3377     ebx = MEM32(edx + 0x4); /* 0x36021A26: mov ebx, dword ptr [edx + 4] */
   3378     MEM32(edi + 0x4) = ebx; /* 0x36021A29: mov dword ptr [edi + 4], ebx */
   3379     ebx = MEM32(edx + 0x8); /* 0x36021A2C: mov ebx, dword ptr [edx + 8] */
   3380     MEM32(edi + 0x8) = ebx; /* 0x36021A2F: mov dword ptr [edi + 8], ebx */
   3381     edx = MEM32(edx + 0xC); /* 0x36021A32: mov edx, dword ptr [edx + 0xc] */
   3382     MEM32(edi + 0xC) = edx; /* 0x36021A35: mov dword ptr [edi + 0xc], edx */
   3383     RECOMP_BACKEDGE();
   3384     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A16; /* 0x36021A38: jne 0x36021a16 */
   3385 L_36021A3A:
   3386     eax = MEM32(0x36303B90); /* 0x36021A3A: mov eax, dword ptr [0x36303b90] */
   3387     edi = MEM32(ebp + (-0x8)); /* 0x36021A3F: mov edi, dword ptr [ebp - 8] */
   3388 L_36021A42:
   3389     ecx = esi + 0x10; /* 0x36021A42: lea ecx, [esi + 0x10] */
   3390     /* cmp esi, ecx */ /* 0x36021A45: cmp esi, ecx */
   3391     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3393     _flag_k = FK_CMP;
   3394     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x36021A47: je 0x36021a6e */
   3395 L_36021A49:
   3396     edx = MEM32(ebp + (-0x24)); /* 0x36021A49: mov edx, dword ptr [ebp - 0x24] */
   3397     eax = esi; /* 0x36021A4C: mov eax, esi */
   3398     MEM32(eax) = edx; /* 0x36021A4E: mov dword ptr [eax], edx */
   3399     edx = MEM32(ebp + (-0x20)); /* 0x36021A50: mov edx, dword ptr [ebp - 0x20] */
   3400     MEM32(eax + 0x4) = edx; /* 0x36021A53: mov dword ptr [eax + 4], edx */
   3401     edx = MEM32(ebp + (-0x1C)); /* 0x36021A56: mov edx, dword ptr [ebp - 0x1c] */
   3402     MEM32(eax + 0x8) = edx; /* 0x36021A59: mov dword ptr [eax + 8], edx */
   3403     edx = MEM32(ebp + (-0x18)); /* 0x36021A5C: mov edx, dword ptr [ebp - 0x18] */
   3404     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3405     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3406     esi = esi + 0x10u; /* 0x36021A5F: add esi, 0x10 */
   3407     _flag_k = FK_ADD;
   3408     /* cmp esi, ecx */ /* 0x36021A62: cmp esi, ecx */
   3409     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3411     _flag_k = FK_CMP;
   3412     MEM32(eax + 0xC) = edx; /* 0x36021A64: mov dword ptr [eax + 0xc], edx */
   3413     RECOMP_BACKEDGE();
   3414     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A49; /* 0x36021A67: jne 0x36021a49 */
   3415 L_36021A69:
   3416     eax = MEM32(0x36303B90); /* 0x36021A69: mov eax, dword ptr [0x36303b90] */
   3417 L_36021A6E:
   3418     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3420     eax = eax + 0x10u; /* 0x36021A6E: add eax, 0x10 */
   3421     _flag_k = FK_ADD;
   3422     MEM32(0x36303B90) = eax; /* 0x36021A71: mov dword ptr [0x36303b90], eax */
   3423 L_36021A76:
   3424     ecx = MEM32(ebp + (-0x10)); /* 0x36021A76: mov ecx, dword ptr [ebp - 0x10] */
   3425     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   3426     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3427     edi = edi + 0xCu; /* 0x36021A79: add edi, 0xc */
   3428     _flag_k = FK_ADD;
   3429     /* cmp edi, ecx */ /* 0x36021A7C: cmp edi, ecx */
   3430     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3432     _flag_k = FK_CMP;
   3433     MEM32(ebp + (-0x8)) = edi; /* 0x36021A7E: mov dword ptr [ebp - 8], edi */
   3434     RECOMP_BACKEDGE();
   3435     if (CMP_NE(_flag_a, _flag_b)) goto L_36021881; /* 0x36021A81: jne 0x36021881 */
   3436 L_36021A87:
   3437     edi = POP32_VAL(esp); /* 0x36021A87: pop edi */
   3438     esi = POP32_VAL(esp); /* 0x36021A88: pop esi */
   3439     eax = 0x36303B88u; /* 0x36021A89: mov eax, 0x36303b88 */
   3440     ebx = POP32_VAL(esp); /* 0x36021A8E: pop ebx */
   3441     esp = ebp; /* 0x36021A8F: mov esp, ebp */
   3442     ebp = POP32_VAL(esp); /* 0x36021A91: pop ebp */
   3443     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36021A92: ret  */
   3444     RECOMP_REGS_OUT();
   3445 }
   3446 
   3447 void sub_36021A6E(void) {
   3448     int _fpu_cmp = 0;
   3449     uint32_t _cf = 0;
   3450     int _df = 1;
   3451     uint32_t _flag_k = FK_NONE;
   3452     uint32_t _flag_a = 0, _flag_b = 0;
   3453     uint32_t _itail_tgt = 0;
   3454     RECOMP_REGS_LOCALS
   3455     RECOMP_ENTER(0x36021A6Eu);
   3456 
   3457     goto L_36021A6E;
   3458 L_36021881:
   3459     ecx = MEM32(edi); /* 0x36021881: mov ecx, dword ptr [edi] */
   3460     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3461     edx = 0; /* 0x36021883: xor edx, edx */
   3462     _cf = 0;
   3463     _flag_k = FK_TEST;
   3464     MEM32(ebp + (-0x24)) = edx; /* 0x36021885: mov dword ptr [ebp - 0x24], edx */
   3465     MEM32(ebp + (-0x20)) = edx; /* 0x36021888: mov dword ptr [ebp - 0x20], edx */
   3466     esi = MEM32(ecx); /* 0x3602188B: mov esi, dword ptr [ecx] */
   3467     MEM32(ebp + (-0x24)) = esi; /* 0x3602188D: mov dword ptr [ebp - 0x24], esi */
   3468     ecx = MEM32(ecx + 0x4); /* 0x36021890: mov ecx, dword ptr [ecx + 4] */
   3469     MEM32(ebp + (-0x20)) = ecx; /* 0x36021893: mov dword ptr [ebp - 0x20], ecx */
   3470     ecx = MEM32(edi + 0x4); /* 0x36021896: mov ecx, dword ptr [edi + 4] */
   3471     MEM32(ebp + (-0x1C)) = ecx; /* 0x36021899: mov dword ptr [ebp - 0x1c], ecx */
   3472     ecx = MEM32(edi + 0x8); /* 0x3602189C: mov ecx, dword ptr [edi + 8] */
   3473     MEM32(ebp + (-0x18)) = ecx; /* 0x3602189F: mov dword ptr [ebp - 0x18], ecx */
   3474     ecx = MEM32(0x36303B94); /* 0x360218A2: mov ecx, dword ptr [0x36303b94] */
   3475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3477     ecx = ecx - eax; /* 0x360218A8: sub ecx, eax */
   3478     _flag_k = FK_CMP;
   3479     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360218AA: sar ecx, 4 */
   3480     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3481     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3482     /* cmp ecx, 1 */ /* 0x360218AD: cmp ecx, 1 */
   3483     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3485     _flag_k = FK_CMP;
   3486     esi = eax; /* 0x360218B0: mov esi, eax */
   3487     if (CMP_AE(_flag_a, _flag_b)) goto L_36021988; /* 0x360218B2: jae 0x36021988 */
   3488 L_360218B8:
   3489     ecx = MEM32(0x36303B8C); /* 0x360218B8: mov ecx, dword ptr [0x36303b8c] */
   3490     /* cmp ecx, edx */ /* 0x360218BE: cmp ecx, edx */
   3491     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3492     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3493     _flag_k = FK_CMP;
   3494     if (CMP_EQ(_flag_a, _flag_b)) goto L_360218CE; /* 0x360218C0: je 0x360218ce */
   3495 L_360218C2:
   3496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3498     eax = eax - ecx; /* 0x360218C2: sub eax, ecx */
   3499     _flag_k = FK_CMP;
   3500     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x360218C4: sar eax, 4 */
   3501     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3502     eax = (uint32_t)((int32_t)eax >> 4u);
   3503     /* cmp eax, 1 */ /* 0x360218C7: cmp eax, 1 */
   3504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3506     _flag_k = FK_CMP;
   3507     ebx = eax; /* 0x360218CA: mov ebx, eax */
   3508     if (CMP_A(_flag_a, _flag_b)) goto L_360218D3; /* 0x360218CC: ja 0x360218d3 */
   3509 L_360218CE:
   3510     ebx = 1; /* 0x360218CE: mov ebx, 1 */
   3511 L_360218D3:
   3512     ecx = 0x36303B88u; /* 0x360218D3: mov ecx, 0x36303b88 */
   3513     RECOMP_ICALL(0x36029B00u); /* 0x360218D8: call 0x36029b00 */ /* not lifted */
   3514     RECOMP_FLAGS_IN();
   3515     edi = eax; /* 0x360218DD: mov edi, eax */
   3516     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3517     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3518     edi = edi + ebx; /* 0x360218DF: add edi, ebx */
   3519     _flag_k = FK_ADD;
   3520     eax = edi; /* 0x360218E1: mov eax, edi */
   3521     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_360218E7; /* 0x360218E3: jns 0x360218e7 */
   3522 L_360218E5:
   3523     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3524     eax = 0; /* 0x360218E5: xor eax, eax */
   3525     _cf = 0;
   3526     _flag_k = FK_TEST;
   3527 L_360218E7:
   3528     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x360218E7: shl eax, 4 */
   3529     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3530     eax = eax << 4u; /* 0x360218E7: shl eax, 4 */
   3531     PUSH32(esp, eax); /* 0x360218EA: push eax */
   3532     RECOMP_ICALL(0x3615FD6Au); /* 0x360218EB: call 0x3615fd6a */ /* not lifted */
   3533     RECOMP_FLAGS_IN();
   3534     edx = MEM32(0x36303B8C); /* 0x360218F0: mov edx, dword ptr [0x36303b8c] */
   3535     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3537     esp = esp + 4; /* 0x360218F6: add esp, 4 */
   3538     _flag_k = FK_ADD;
   3539     ebx = eax; /* 0x360218F9: mov ebx, eax */
   3540     PUSH32(esp, ebx); /* 0x360218FB: push ebx */
   3541     PUSH32(esp, esi); /* 0x360218FC: push esi */
   3542     PUSH32(esp, edx); /* 0x360218FD: push edx */
   3543     ecx = 0x36303B88u; /* 0x360218FE: mov ecx, 0x36303b88 */
   3544     RECOMP_ICALL(0x361562A0u); /* 0x36021903: call 0x361562a0 */ /* not lifted */
   3545     RECOMP_FLAGS_IN();
   3546     ecx = ebp + (-0x24); /* 0x36021908: lea ecx, [ebp - 0x24] */
   3547     PUSH32(esp, ecx); /* 0x3602190B: push ecx */
   3548     PUSH32(esp, 1); /* 0x3602190C: push 1 */
   3549     PUSH32(esp, eax); /* 0x3602190E: push eax */
   3550     ecx = 0x36303B88u; /* 0x3602190F: mov ecx, 0x36303b88 */
   3551     MEM32(ebp + (-0xC)) = eax; /* 0x36021914: mov dword ptr [ebp - 0xc], eax */
   3552     RECOMP_ICALL(0x36029B20u); /* 0x36021917: call 0x36029b20 */ /* not lifted */
   3553     RECOMP_FLAGS_IN();
   3554     edx = MEM32(ebp + (-0xC)); /* 0x3602191C: mov edx, dword ptr [ebp - 0xc] */
   3555     eax = MEM32(0x36303B90); /* 0x3602191F: mov eax, dword ptr [0x36303b90] */
   3556     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   3557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3558     edx = edx + 0x10u; /* 0x36021924: add edx, 0x10 */
   3559     _flag_k = FK_ADD;
   3560     PUSH32(esp, edx); /* 0x36021927: push edx */
   3561     PUSH32(esp, eax); /* 0x36021928: push eax */
   3562     PUSH32(esp, esi); /* 0x36021929: push esi */
   3563     ecx = 0x36303B88u; /* 0x3602192A: mov ecx, 0x36303b88 */
   3564     RECOMP_ICALL(0x361562A0u); /* 0x3602192F: call 0x361562a0 */ /* not lifted */
   3565     RECOMP_FLAGS_IN();
   3566     ecx = MEM32(0x36303B90); /* 0x36021934: mov ecx, dword ptr [0x36303b90] */
   3567     edx = MEM32(0x36303B8C); /* 0x3602193A: mov edx, dword ptr [0x36303b8c] */
   3568     PUSH32(esp, ecx); /* 0x36021940: push ecx */
   3569     PUSH32(esp, edx); /* 0x36021941: push edx */
   3570     ecx = 0x36303B88u; /* 0x36021942: mov ecx, 0x36303b88 */
   3571     RECOMP_ICALL(0x3610ED60u); /* 0x36021947: call 0x3610ed60 */ /* not lifted */
   3572     RECOMP_FLAGS_IN();
   3573     eax = MEM32(0x36303B8C); /* 0x3602194C: mov eax, dword ptr [0x36303b8c] */
   3574     PUSH32(esp, eax); /* 0x36021951: push eax */
   3575     RECOMP_ICALL(0x3615FCC4u); /* 0x36021952: call 0x3615fcc4 */ /* not lifted */
   3576     RECOMP_FLAGS_IN();
   3577     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x36021957: shl edi, 4 */
   3578     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3579     edi = edi << 4u; /* 0x36021957: shl edi, 4 */
   3580     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3582     edi = edi + ebx; /* 0x3602195A: add edi, ebx */
   3583     _flag_k = FK_ADD;
   3584     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3586     esp = esp + 4; /* 0x3602195C: add esp, 4 */
   3587     _flag_k = FK_ADD;
   3588     ecx = 0x36303B88u; /* 0x3602195F: mov ecx, 0x36303b88 */
   3589     MEM32(0x36303B94) = edi; /* 0x36021964: mov dword ptr [0x36303b94], edi */
   3590     RECOMP_ICALL(0x36029B00u); /* 0x3602196A: call 0x36029b00 */ /* not lifted */
   3591     RECOMP_FLAGS_IN();
   3592     edi = MEM32(ebp + (-0x8)); /* 0x3602196F: mov edi, dword ptr [ebp - 8] */
   3593     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3594     eax = eax + 1; /* 0x36021972: inc eax */
   3595     _flag_k = FK_INC;
   3596     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36021973: shl eax, 4 */
   3597     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3598     eax = eax << 4u; /* 0x36021973: shl eax, 4 */
   3599     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3601     eax = eax + ebx; /* 0x36021976: add eax, ebx */
   3602     _flag_k = FK_ADD;
   3603     MEM32(0x36303B90) = eax; /* 0x36021978: mov dword ptr [0x36303b90], eax */
   3604     MEM32(0x36303B8C) = ebx; /* 0x3602197D: mov dword ptr [0x36303b8c], ebx */
   3605     goto L_36021A76; /* 0x36021983: jmp 0x36021a76 */
   3606 L_36021988:
   3607     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3608     ecx = 0; /* 0x36021988: xor ecx, ecx */
   3609     _cf = 0;
   3610     _flag_k = FK_TEST;
   3611     MEM32(ebp + (-0xC)) = ecx; /* 0x3602198A: mov dword ptr [ebp - 0xc], ecx */
   3612     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x3602198D: sar ecx, 4 */
   3613     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3614     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3615     /* cmp ecx, 1 */ /* 0x36021990: cmp ecx, 1 */
   3616     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3618     _flag_k = FK_CMP;
   3619     if (CMP_AE(_flag_a, _flag_b)) goto L_360219F7; /* 0x36021993: jae 0x360219f7 */
   3620 L_36021995:
   3621     ecx = eax + 0x10; /* 0x36021995: lea ecx, [eax + 0x10] */
   3622     PUSH32(esp, ecx); /* 0x36021998: push ecx */
   3623     PUSH32(esp, eax); /* 0x36021999: push eax */
   3624     PUSH32(esp, eax); /* 0x3602199A: push eax */
   3625     ecx = 0x36303B88u; /* 0x3602199B: mov ecx, 0x36303b88 */
   3626     RECOMP_ICALL(0x361562A0u); /* 0x360219A0: call 0x361562a0 */ /* not lifted */
   3627     RECOMP_FLAGS_IN();
   3628     eax = MEM32(0x36303B90); /* 0x360219A5: mov eax, dword ptr [0x36303b90] */
   3629     ecx = eax; /* 0x360219AA: mov ecx, eax */
   3630     edx = ebp + (-0x24); /* 0x360219AC: lea edx, [ebp - 0x24] */
   3631     PUSH32(esp, edx); /* 0x360219AF: push edx */
   3632     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3633     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3634     ecx = ecx - esi; /* 0x360219B0: sub ecx, esi */
   3635     _flag_k = FK_CMP;
   3636     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360219B2: sar ecx, 4 */
   3637     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3638     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3639     edx = 1; /* 0x360219B5: mov edx, 1 */
   3640     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3642     edx = edx - ecx; /* 0x360219BA: sub edx, ecx */
   3643     _flag_k = FK_CMP;
   3644     PUSH32(esp, edx); /* 0x360219BC: push edx */
   3645     PUSH32(esp, eax); /* 0x360219BD: push eax */
   3646     ecx = 0x36303B88u; /* 0x360219BE: mov ecx, 0x36303b88 */
   3647     RECOMP_ICALL(0x36029B20u); /* 0x360219C3: call 0x36029b20 */ /* not lifted */
   3648     RECOMP_FLAGS_IN();
   3649     eax = MEM32(0x36303B90); /* 0x360219C8: mov eax, dword ptr [0x36303b90] */
   3650     /* cmp esi, eax */ /* 0x360219CD: cmp esi, eax */
   3651     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3653     _flag_k = FK_CMP;
   3654     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x360219CF: je 0x36021a6e */
   3655 L_360219D5:
   3656     edx = MEM32(ebp + (-0x24)); /* 0x360219D5: mov edx, dword ptr [ebp - 0x24] */
   3657     ecx = esi; /* 0x360219D8: mov ecx, esi */
   3658     MEM32(ecx) = edx; /* 0x360219DA: mov dword ptr [ecx], edx */
   3659     edx = MEM32(ebp + (-0x20)); /* 0x360219DC: mov edx, dword ptr [ebp - 0x20] */
   3660     MEM32(ecx + 0x4) = edx; /* 0x360219DF: mov dword ptr [ecx + 4], edx */
   3661     edx = MEM32(ebp + (-0x1C)); /* 0x360219E2: mov edx, dword ptr [ebp - 0x1c] */
   3662     MEM32(ecx + 0x8) = edx; /* 0x360219E5: mov dword ptr [ecx + 8], edx */
   3663     edx = MEM32(ebp + (-0x18)); /* 0x360219E8: mov edx, dword ptr [ebp - 0x18] */
   3664     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3665     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3666     esi = esi + 0x10u; /* 0x360219EB: add esi, 0x10 */
   3667     _flag_k = FK_ADD;
   3668     /* cmp esi, eax */ /* 0x360219EE: cmp esi, eax */
   3669     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3671     _flag_k = FK_CMP;
   3672     MEM32(ecx + 0xC) = edx; /* 0x360219F0: mov dword ptr [ecx + 0xc], edx */
   3673     RECOMP_BACKEDGE();
   3674     if (CMP_NE(_flag_a, _flag_b)) goto L_360219D5; /* 0x360219F3: jne 0x360219d5 */
   3675 L_360219F5:
   3676     goto L_36021A69; /* 0x360219F5: jmp 0x36021a69 */
   3677 L_360219F7:
   3678     PUSH32(esp, eax); /* 0x360219F7: push eax */
   3679     ecx = eax + (-0x10); /* 0x360219F8: lea ecx, [eax - 0x10] */
   3680     PUSH32(esp, eax); /* 0x360219FB: push eax */
   3681     MEM32(ebp + (-0xC)) = ecx; /* 0x360219FC: mov dword ptr [ebp - 0xc], ecx */
   3682     PUSH32(esp, ecx); /* 0x360219FF: push ecx */
   3683     ecx = 0x36303B88u; /* 0x36021A00: mov ecx, 0x36303b88 */
   3684     RECOMP_ICALL(0x361562A0u); /* 0x36021A05: call 0x361562a0 */ /* not lifted */
   3685     RECOMP_FLAGS_IN();
   3686     eax = MEM32(0x36303B90); /* 0x36021A0A: mov eax, dword ptr [0x36303b90] */
   3687     ecx = eax + (-0x10); /* 0x36021A0F: lea ecx, [eax - 0x10] */
   3688     /* cmp esi, ecx */ /* 0x36021A12: cmp esi, ecx */
   3689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3691     _flag_k = FK_CMP;
   3692     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A42; /* 0x36021A14: je 0x36021a42 */
   3693 L_36021A16:
   3694     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   3695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3696     ecx = ecx - 0x10u; /* 0x36021A16: sub ecx, 0x10 */
   3697     _flag_k = FK_CMP;
   3698     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3700     eax = eax - 0x10u; /* 0x36021A19: sub eax, 0x10 */
   3701     _flag_k = FK_CMP;
   3702     /* cmp ecx, esi */ /* 0x36021A1C: cmp ecx, esi */
   3703     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3705     _flag_k = FK_CMP;
   3706     edx = ecx; /* 0x36021A1E: mov edx, ecx */
   3707     ebx = MEM32(edx); /* 0x36021A20: mov ebx, dword ptr [edx] */
   3708     edi = eax; /* 0x36021A22: mov edi, eax */
   3709     MEM32(edi) = ebx; /* 0x36021A24: mov dword ptr [edi], ebx */
   3710     ebx = MEM32(edx + 0x4); /* 0x36021A26: mov ebx, dword ptr [edx + 4] */
   3711     MEM32(edi + 0x4) = ebx; /* 0x36021A29: mov dword ptr [edi + 4], ebx */
   3712     ebx = MEM32(edx + 0x8); /* 0x36021A2C: mov ebx, dword ptr [edx + 8] */
   3713     MEM32(edi + 0x8) = ebx; /* 0x36021A2F: mov dword ptr [edi + 8], ebx */
   3714     edx = MEM32(edx + 0xC); /* 0x36021A32: mov edx, dword ptr [edx + 0xc] */
   3715     MEM32(edi + 0xC) = edx; /* 0x36021A35: mov dword ptr [edi + 0xc], edx */
   3716     RECOMP_BACKEDGE();
   3717     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A16; /* 0x36021A38: jne 0x36021a16 */
   3718 L_36021A3A:
   3719     eax = MEM32(0x36303B90); /* 0x36021A3A: mov eax, dword ptr [0x36303b90] */
   3720     edi = MEM32(ebp + (-0x8)); /* 0x36021A3F: mov edi, dword ptr [ebp - 8] */
   3721 L_36021A42:
   3722     ecx = esi + 0x10; /* 0x36021A42: lea ecx, [esi + 0x10] */
   3723     /* cmp esi, ecx */ /* 0x36021A45: cmp esi, ecx */
   3724     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3725     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3726     _flag_k = FK_CMP;
   3727     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x36021A47: je 0x36021a6e */
   3728 L_36021A49:
   3729     edx = MEM32(ebp + (-0x24)); /* 0x36021A49: mov edx, dword ptr [ebp - 0x24] */
   3730     eax = esi; /* 0x36021A4C: mov eax, esi */
   3731     MEM32(eax) = edx; /* 0x36021A4E: mov dword ptr [eax], edx */
   3732     edx = MEM32(ebp + (-0x20)); /* 0x36021A50: mov edx, dword ptr [ebp - 0x20] */
   3733     MEM32(eax + 0x4) = edx; /* 0x36021A53: mov dword ptr [eax + 4], edx */
   3734     edx = MEM32(ebp + (-0x1C)); /* 0x36021A56: mov edx, dword ptr [ebp - 0x1c] */
   3735     MEM32(eax + 0x8) = edx; /* 0x36021A59: mov dword ptr [eax + 8], edx */
   3736     edx = MEM32(ebp + (-0x18)); /* 0x36021A5C: mov edx, dword ptr [ebp - 0x18] */
   3737     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3739     esi = esi + 0x10u; /* 0x36021A5F: add esi, 0x10 */
   3740     _flag_k = FK_ADD;
   3741     /* cmp esi, ecx */ /* 0x36021A62: cmp esi, ecx */
   3742     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   3743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3744     _flag_k = FK_CMP;
   3745     MEM32(eax + 0xC) = edx; /* 0x36021A64: mov dword ptr [eax + 0xc], edx */
   3746     RECOMP_BACKEDGE();
   3747     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A49; /* 0x36021A67: jne 0x36021a49 */
   3748 L_36021A69:
   3749     eax = MEM32(0x36303B90); /* 0x36021A69: mov eax, dword ptr [0x36303b90] */
   3750 L_36021A6E:
   3751     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   3752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3753     eax = eax + 0x10u; /* 0x36021A6E: add eax, 0x10 */
   3754     _flag_k = FK_ADD;
   3755     MEM32(0x36303B90) = eax; /* 0x36021A71: mov dword ptr [0x36303b90], eax */
   3756 L_36021A76:
   3757     ecx = MEM32(ebp + (-0x10)); /* 0x36021A76: mov ecx, dword ptr [ebp - 0x10] */
   3758     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   3759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3760     edi = edi + 0xCu; /* 0x36021A79: add edi, 0xc */
   3761     _flag_k = FK_ADD;
   3762     /* cmp edi, ecx */ /* 0x36021A7C: cmp edi, ecx */
   3763     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3765     _flag_k = FK_CMP;
   3766     MEM32(ebp + (-0x8)) = edi; /* 0x36021A7E: mov dword ptr [ebp - 8], edi */
   3767     RECOMP_BACKEDGE();
   3768     if (CMP_NE(_flag_a, _flag_b)) goto L_36021881; /* 0x36021A81: jne 0x36021881 */
   3769 L_36021A87:
   3770     edi = POP32_VAL(esp); /* 0x36021A87: pop edi */
   3771     esi = POP32_VAL(esp); /* 0x36021A88: pop esi */
   3772     eax = 0x36303B88u; /* 0x36021A89: mov eax, 0x36303b88 */
   3773     ebx = POP32_VAL(esp); /* 0x36021A8E: pop ebx */
   3774     esp = ebp; /* 0x36021A8F: mov esp, ebp */
   3775     ebp = POP32_VAL(esp); /* 0x36021A91: pop ebp */
   3776     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36021A92: ret  */
   3777     RECOMP_REGS_OUT();
   3778 }
   3779 
   3780 void sub_36021A76(void) {
   3781     int _fpu_cmp = 0;
   3782     uint32_t _cf = 0;
   3783     int _df = 1;
   3784     uint32_t _flag_k = FK_NONE;
   3785     uint32_t _flag_a = 0, _flag_b = 0;
   3786     uint32_t _itail_tgt = 0;
   3787     RECOMP_REGS_LOCALS
   3788     RECOMP_ENTER(0x36021A76u);
   3789 
   3790     goto L_36021A76;
   3791 L_36021881:
   3792     ecx = MEM32(edi); /* 0x36021881: mov ecx, dword ptr [edi] */
   3793     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3794     edx = 0; /* 0x36021883: xor edx, edx */
   3795     _cf = 0;
   3796     _flag_k = FK_TEST;
   3797     MEM32(ebp + (-0x24)) = edx; /* 0x36021885: mov dword ptr [ebp - 0x24], edx */
   3798     MEM32(ebp + (-0x20)) = edx; /* 0x36021888: mov dword ptr [ebp - 0x20], edx */
   3799     esi = MEM32(ecx); /* 0x3602188B: mov esi, dword ptr [ecx] */
   3800     MEM32(ebp + (-0x24)) = esi; /* 0x3602188D: mov dword ptr [ebp - 0x24], esi */
   3801     ecx = MEM32(ecx + 0x4); /* 0x36021890: mov ecx, dword ptr [ecx + 4] */
   3802     MEM32(ebp + (-0x20)) = ecx; /* 0x36021893: mov dword ptr [ebp - 0x20], ecx */
   3803     ecx = MEM32(edi + 0x4); /* 0x36021896: mov ecx, dword ptr [edi + 4] */
   3804     MEM32(ebp + (-0x1C)) = ecx; /* 0x36021899: mov dword ptr [ebp - 0x1c], ecx */
   3805     ecx = MEM32(edi + 0x8); /* 0x3602189C: mov ecx, dword ptr [edi + 8] */
   3806     MEM32(ebp + (-0x18)) = ecx; /* 0x3602189F: mov dword ptr [ebp - 0x18], ecx */
   3807     ecx = MEM32(0x36303B94); /* 0x360218A2: mov ecx, dword ptr [0x36303b94] */
   3808     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3810     ecx = ecx - eax; /* 0x360218A8: sub ecx, eax */
   3811     _flag_k = FK_CMP;
   3812     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360218AA: sar ecx, 4 */
   3813     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3814     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3815     /* cmp ecx, 1 */ /* 0x360218AD: cmp ecx, 1 */
   3816     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3818     _flag_k = FK_CMP;
   3819     esi = eax; /* 0x360218B0: mov esi, eax */
   3820     if (CMP_AE(_flag_a, _flag_b)) goto L_36021988; /* 0x360218B2: jae 0x36021988 */
   3821 L_360218B8:
   3822     ecx = MEM32(0x36303B8C); /* 0x360218B8: mov ecx, dword ptr [0x36303b8c] */
   3823     /* cmp ecx, edx */ /* 0x360218BE: cmp ecx, edx */
   3824     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3825     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3826     _flag_k = FK_CMP;
   3827     if (CMP_EQ(_flag_a, _flag_b)) goto L_360218CE; /* 0x360218C0: je 0x360218ce */
   3828 L_360218C2:
   3829     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3831     eax = eax - ecx; /* 0x360218C2: sub eax, ecx */
   3832     _flag_k = FK_CMP;
   3833     if (4u) _cf = (((eax) >> 3) & 1u); /* 0x360218C4: sar eax, 4 */
   3834     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3835     eax = (uint32_t)((int32_t)eax >> 4u);
   3836     /* cmp eax, 1 */ /* 0x360218C7: cmp eax, 1 */
   3837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3839     _flag_k = FK_CMP;
   3840     ebx = eax; /* 0x360218CA: mov ebx, eax */
   3841     if (CMP_A(_flag_a, _flag_b)) goto L_360218D3; /* 0x360218CC: ja 0x360218d3 */
   3842 L_360218CE:
   3843     ebx = 1; /* 0x360218CE: mov ebx, 1 */
   3844 L_360218D3:
   3845     ecx = 0x36303B88u; /* 0x360218D3: mov ecx, 0x36303b88 */
   3846     RECOMP_ICALL(0x36029B00u); /* 0x360218D8: call 0x36029b00 */ /* not lifted */
   3847     RECOMP_FLAGS_IN();
   3848     edi = eax; /* 0x360218DD: mov edi, eax */
   3849     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3850     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3851     edi = edi + ebx; /* 0x360218DF: add edi, ebx */
   3852     _flag_k = FK_ADD;
   3853     eax = edi; /* 0x360218E1: mov eax, edi */
   3854     if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_360218E7; /* 0x360218E3: jns 0x360218e7 */
   3855 L_360218E5:
   3856     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3857     eax = 0; /* 0x360218E5: xor eax, eax */
   3858     _cf = 0;
   3859     _flag_k = FK_TEST;
   3860 L_360218E7:
   3861     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x360218E7: shl eax, 4 */
   3862     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3863     eax = eax << 4u; /* 0x360218E7: shl eax, 4 */
   3864     PUSH32(esp, eax); /* 0x360218EA: push eax */
   3865     RECOMP_ICALL(0x3615FD6Au); /* 0x360218EB: call 0x3615fd6a */ /* not lifted */
   3866     RECOMP_FLAGS_IN();
   3867     edx = MEM32(0x36303B8C); /* 0x360218F0: mov edx, dword ptr [0x36303b8c] */
   3868     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3869     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3870     esp = esp + 4; /* 0x360218F6: add esp, 4 */
   3871     _flag_k = FK_ADD;
   3872     ebx = eax; /* 0x360218F9: mov ebx, eax */
   3873     PUSH32(esp, ebx); /* 0x360218FB: push ebx */
   3874     PUSH32(esp, esi); /* 0x360218FC: push esi */
   3875     PUSH32(esp, edx); /* 0x360218FD: push edx */
   3876     ecx = 0x36303B88u; /* 0x360218FE: mov ecx, 0x36303b88 */
   3877     RECOMP_ICALL(0x361562A0u); /* 0x36021903: call 0x361562a0 */ /* not lifted */
   3878     RECOMP_FLAGS_IN();
   3879     ecx = ebp + (-0x24); /* 0x36021908: lea ecx, [ebp - 0x24] */
   3880     PUSH32(esp, ecx); /* 0x3602190B: push ecx */
   3881     PUSH32(esp, 1); /* 0x3602190C: push 1 */
   3882     PUSH32(esp, eax); /* 0x3602190E: push eax */
   3883     ecx = 0x36303B88u; /* 0x3602190F: mov ecx, 0x36303b88 */
   3884     MEM32(ebp + (-0xC)) = eax; /* 0x36021914: mov dword ptr [ebp - 0xc], eax */
   3885     RECOMP_ICALL(0x36029B20u); /* 0x36021917: call 0x36029b20 */ /* not lifted */
   3886     RECOMP_FLAGS_IN();
   3887     edx = MEM32(ebp + (-0xC)); /* 0x3602191C: mov edx, dword ptr [ebp - 0xc] */
   3888     eax = MEM32(0x36303B90); /* 0x3602191F: mov eax, dword ptr [0x36303b90] */
   3889     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u);
   3890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3891     edx = edx + 0x10u; /* 0x36021924: add edx, 0x10 */
   3892     _flag_k = FK_ADD;
   3893     PUSH32(esp, edx); /* 0x36021927: push edx */
   3894     PUSH32(esp, eax); /* 0x36021928: push eax */
   3895     PUSH32(esp, esi); /* 0x36021929: push esi */
   3896     ecx = 0x36303B88u; /* 0x3602192A: mov ecx, 0x36303b88 */
   3897     RECOMP_ICALL(0x361562A0u); /* 0x3602192F: call 0x361562a0 */ /* not lifted */
   3898     RECOMP_FLAGS_IN();
   3899     ecx = MEM32(0x36303B90); /* 0x36021934: mov ecx, dword ptr [0x36303b90] */
   3900     edx = MEM32(0x36303B8C); /* 0x3602193A: mov edx, dword ptr [0x36303b8c] */
   3901     PUSH32(esp, ecx); /* 0x36021940: push ecx */
   3902     PUSH32(esp, edx); /* 0x36021941: push edx */
   3903     ecx = 0x36303B88u; /* 0x36021942: mov ecx, 0x36303b88 */
   3904     RECOMP_ICALL(0x3610ED60u); /* 0x36021947: call 0x3610ed60 */ /* not lifted */
   3905     RECOMP_FLAGS_IN();
   3906     eax = MEM32(0x36303B8C); /* 0x3602194C: mov eax, dword ptr [0x36303b8c] */
   3907     PUSH32(esp, eax); /* 0x36021951: push eax */
   3908     RECOMP_ICALL(0x3615FCC4u); /* 0x36021952: call 0x3615fcc4 */ /* not lifted */
   3909     RECOMP_FLAGS_IN();
   3910     if (4u) _cf = (((edi) >> 28) & 1u); /* 0x36021957: shl edi, 4 */
   3911     if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3912     edi = edi << 4u; /* 0x36021957: shl edi, 4 */
   3913     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3914     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3915     edi = edi + ebx; /* 0x3602195A: add edi, ebx */
   3916     _flag_k = FK_ADD;
   3917     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3918     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3919     esp = esp + 4; /* 0x3602195C: add esp, 4 */
   3920     _flag_k = FK_ADD;
   3921     ecx = 0x36303B88u; /* 0x3602195F: mov ecx, 0x36303b88 */
   3922     MEM32(0x36303B94) = edi; /* 0x36021964: mov dword ptr [0x36303b94], edi */
   3923     RECOMP_ICALL(0x36029B00u); /* 0x3602196A: call 0x36029b00 */ /* not lifted */
   3924     RECOMP_FLAGS_IN();
   3925     edi = MEM32(ebp + (-0x8)); /* 0x3602196F: mov edi, dword ptr [ebp - 8] */
   3926     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3927     eax = eax + 1; /* 0x36021972: inc eax */
   3928     _flag_k = FK_INC;
   3929     if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36021973: shl eax, 4 */
   3930     if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3931     eax = eax << 4u; /* 0x36021973: shl eax, 4 */
   3932     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3933     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3934     eax = eax + ebx; /* 0x36021976: add eax, ebx */
   3935     _flag_k = FK_ADD;
   3936     MEM32(0x36303B90) = eax; /* 0x36021978: mov dword ptr [0x36303b90], eax */
   3937     MEM32(0x36303B8C) = ebx; /* 0x3602197D: mov dword ptr [0x36303b8c], ebx */
   3938     goto L_36021A76; /* 0x36021983: jmp 0x36021a76 */
   3939 L_36021988:
   3940     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3941     ecx = 0; /* 0x36021988: xor ecx, ecx */
   3942     _cf = 0;
   3943     _flag_k = FK_TEST;
   3944     MEM32(ebp + (-0xC)) = ecx; /* 0x3602198A: mov dword ptr [ebp - 0xc], ecx */
   3945     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x3602198D: sar ecx, 4 */
   3946     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3947     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3948     /* cmp ecx, 1 */ /* 0x36021990: cmp ecx, 1 */
   3949     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3951     _flag_k = FK_CMP;
   3952     if (CMP_AE(_flag_a, _flag_b)) goto L_360219F7; /* 0x36021993: jae 0x360219f7 */
   3953 L_36021995:
   3954     ecx = eax + 0x10; /* 0x36021995: lea ecx, [eax + 0x10] */
   3955     PUSH32(esp, ecx); /* 0x36021998: push ecx */
   3956     PUSH32(esp, eax); /* 0x36021999: push eax */
   3957     PUSH32(esp, eax); /* 0x3602199A: push eax */
   3958     ecx = 0x36303B88u; /* 0x3602199B: mov ecx, 0x36303b88 */
   3959     RECOMP_ICALL(0x361562A0u); /* 0x360219A0: call 0x361562a0 */ /* not lifted */
   3960     RECOMP_FLAGS_IN();
   3961     eax = MEM32(0x36303B90); /* 0x360219A5: mov eax, dword ptr [0x36303b90] */
   3962     ecx = eax; /* 0x360219AA: mov ecx, eax */
   3963     edx = ebp + (-0x24); /* 0x360219AC: lea edx, [ebp - 0x24] */
   3964     PUSH32(esp, edx); /* 0x360219AF: push edx */
   3965     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   3966     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3967     ecx = ecx - esi; /* 0x360219B0: sub ecx, esi */
   3968     _flag_k = FK_CMP;
   3969     if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x360219B2: sar ecx, 4 */
   3970     if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3971     ecx = (uint32_t)((int32_t)ecx >> 4u);
   3972     edx = 1; /* 0x360219B5: mov edx, 1 */
   3973     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3975     edx = edx - ecx; /* 0x360219BA: sub edx, ecx */
   3976     _flag_k = FK_CMP;
   3977     PUSH32(esp, edx); /* 0x360219BC: push edx */
   3978     PUSH32(esp, eax); /* 0x360219BD: push eax */
   3979     ecx = 0x36303B88u; /* 0x360219BE: mov ecx, 0x36303b88 */
   3980     RECOMP_ICALL(0x36029B20u); /* 0x360219C3: call 0x36029b20 */ /* not lifted */
   3981     RECOMP_FLAGS_IN();
   3982     eax = MEM32(0x36303B90); /* 0x360219C8: mov eax, dword ptr [0x36303b90] */
   3983     /* cmp esi, eax */ /* 0x360219CD: cmp esi, eax */
   3984     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3986     _flag_k = FK_CMP;
   3987     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x360219CF: je 0x36021a6e */
   3988 L_360219D5:
   3989     edx = MEM32(ebp + (-0x24)); /* 0x360219D5: mov edx, dword ptr [ebp - 0x24] */
   3990     ecx = esi; /* 0x360219D8: mov ecx, esi */
   3991     MEM32(ecx) = edx; /* 0x360219DA: mov dword ptr [ecx], edx */
   3992     edx = MEM32(ebp + (-0x20)); /* 0x360219DC: mov edx, dword ptr [ebp - 0x20] */
   3993     MEM32(ecx + 0x4) = edx; /* 0x360219DF: mov dword ptr [ecx + 4], edx */
   3994     edx = MEM32(ebp + (-0x1C)); /* 0x360219E2: mov edx, dword ptr [ebp - 0x1c] */
   3995     MEM32(ecx + 0x8) = edx; /* 0x360219E5: mov dword ptr [ecx + 8], edx */
   3996     edx = MEM32(ebp + (-0x18)); /* 0x360219E8: mov edx, dword ptr [ebp - 0x18] */
   3997     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   3998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3999     esi = esi + 0x10u; /* 0x360219EB: add esi, 0x10 */
   4000     _flag_k = FK_ADD;
   4001     /* cmp esi, eax */ /* 0x360219EE: cmp esi, eax */
   4002     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   4003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4004     _flag_k = FK_CMP;
   4005     MEM32(ecx + 0xC) = edx; /* 0x360219F0: mov dword ptr [ecx + 0xc], edx */
   4006     RECOMP_BACKEDGE();
   4007     if (CMP_NE(_flag_a, _flag_b)) goto L_360219D5; /* 0x360219F3: jne 0x360219d5 */
   4008 L_360219F5:
   4009     goto L_36021A69; /* 0x360219F5: jmp 0x36021a69 */
   4010 L_360219F7:
   4011     PUSH32(esp, eax); /* 0x360219F7: push eax */
   4012     ecx = eax + (-0x10); /* 0x360219F8: lea ecx, [eax - 0x10] */
   4013     PUSH32(esp, eax); /* 0x360219FB: push eax */
   4014     MEM32(ebp + (-0xC)) = ecx; /* 0x360219FC: mov dword ptr [ebp - 0xc], ecx */
   4015     PUSH32(esp, ecx); /* 0x360219FF: push ecx */
   4016     ecx = 0x36303B88u; /* 0x36021A00: mov ecx, 0x36303b88 */
   4017     RECOMP_ICALL(0x361562A0u); /* 0x36021A05: call 0x361562a0 */ /* not lifted */
   4018     RECOMP_FLAGS_IN();
   4019     eax = MEM32(0x36303B90); /* 0x36021A0A: mov eax, dword ptr [0x36303b90] */
   4020     ecx = eax + (-0x10); /* 0x36021A0F: lea ecx, [eax - 0x10] */
   4021     /* cmp esi, ecx */ /* 0x36021A12: cmp esi, ecx */
   4022     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4024     _flag_k = FK_CMP;
   4025     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A42; /* 0x36021A14: je 0x36021a42 */
   4026 L_36021A16:
   4027     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u);
   4028     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4029     ecx = ecx - 0x10u; /* 0x36021A16: sub ecx, 0x10 */
   4030     _flag_k = FK_CMP;
   4031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4033     eax = eax - 0x10u; /* 0x36021A19: sub eax, 0x10 */
   4034     _flag_k = FK_CMP;
   4035     /* cmp ecx, esi */ /* 0x36021A1C: cmp ecx, esi */
   4036     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   4037     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4038     _flag_k = FK_CMP;
   4039     edx = ecx; /* 0x36021A1E: mov edx, ecx */
   4040     ebx = MEM32(edx); /* 0x36021A20: mov ebx, dword ptr [edx] */
   4041     edi = eax; /* 0x36021A22: mov edi, eax */
   4042     MEM32(edi) = ebx; /* 0x36021A24: mov dword ptr [edi], ebx */
   4043     ebx = MEM32(edx + 0x4); /* 0x36021A26: mov ebx, dword ptr [edx + 4] */
   4044     MEM32(edi + 0x4) = ebx; /* 0x36021A29: mov dword ptr [edi + 4], ebx */
   4045     ebx = MEM32(edx + 0x8); /* 0x36021A2C: mov ebx, dword ptr [edx + 8] */
   4046     MEM32(edi + 0x8) = ebx; /* 0x36021A2F: mov dword ptr [edi + 8], ebx */
   4047     edx = MEM32(edx + 0xC); /* 0x36021A32: mov edx, dword ptr [edx + 0xc] */
   4048     MEM32(edi + 0xC) = edx; /* 0x36021A35: mov dword ptr [edi + 0xc], edx */
   4049     RECOMP_BACKEDGE();
   4050     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A16; /* 0x36021A38: jne 0x36021a16 */
   4051 L_36021A3A:
   4052     eax = MEM32(0x36303B90); /* 0x36021A3A: mov eax, dword ptr [0x36303b90] */
   4053     edi = MEM32(ebp + (-0x8)); /* 0x36021A3F: mov edi, dword ptr [ebp - 8] */
   4054 L_36021A42:
   4055     ecx = esi + 0x10; /* 0x36021A42: lea ecx, [esi + 0x10] */
   4056     /* cmp esi, ecx */ /* 0x36021A45: cmp esi, ecx */
   4057     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4059     _flag_k = FK_CMP;
   4060     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021A6E; /* 0x36021A47: je 0x36021a6e */
   4061 L_36021A49:
   4062     edx = MEM32(ebp + (-0x24)); /* 0x36021A49: mov edx, dword ptr [ebp - 0x24] */
   4063     eax = esi; /* 0x36021A4C: mov eax, esi */
   4064     MEM32(eax) = edx; /* 0x36021A4E: mov dword ptr [eax], edx */
   4065     edx = MEM32(ebp + (-0x20)); /* 0x36021A50: mov edx, dword ptr [ebp - 0x20] */
   4066     MEM32(eax + 0x4) = edx; /* 0x36021A53: mov dword ptr [eax + 4], edx */
   4067     edx = MEM32(ebp + (-0x1C)); /* 0x36021A56: mov edx, dword ptr [ebp - 0x1c] */
   4068     MEM32(eax + 0x8) = edx; /* 0x36021A59: mov dword ptr [eax + 8], edx */
   4069     edx = MEM32(ebp + (-0x18)); /* 0x36021A5C: mov edx, dword ptr [ebp - 0x18] */
   4070     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u);
   4071     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4072     esi = esi + 0x10u; /* 0x36021A5F: add esi, 0x10 */
   4073     _flag_k = FK_ADD;
   4074     /* cmp esi, ecx */ /* 0x36021A62: cmp esi, ecx */
   4075     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4077     _flag_k = FK_CMP;
   4078     MEM32(eax + 0xC) = edx; /* 0x36021A64: mov dword ptr [eax + 0xc], edx */
   4079     RECOMP_BACKEDGE();
   4080     if (CMP_NE(_flag_a, _flag_b)) goto L_36021A49; /* 0x36021A67: jne 0x36021a49 */
   4081 L_36021A69:
   4082     eax = MEM32(0x36303B90); /* 0x36021A69: mov eax, dword ptr [0x36303b90] */
   4083 L_36021A6E:
   4084     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u);
   4085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4086     eax = eax + 0x10u; /* 0x36021A6E: add eax, 0x10 */
   4087     _flag_k = FK_ADD;
   4088     MEM32(0x36303B90) = eax; /* 0x36021A71: mov dword ptr [0x36303b90], eax */
   4089 L_36021A76:
   4090     ecx = MEM32(ebp + (-0x10)); /* 0x36021A76: mov ecx, dword ptr [ebp - 0x10] */
   4091     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   4092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4093     edi = edi + 0xCu; /* 0x36021A79: add edi, 0xc */
   4094     _flag_k = FK_ADD;
   4095     /* cmp edi, ecx */ /* 0x36021A7C: cmp edi, ecx */
   4096     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   4097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4098     _flag_k = FK_CMP;
   4099     MEM32(ebp + (-0x8)) = edi; /* 0x36021A7E: mov dword ptr [ebp - 8], edi */
   4100     RECOMP_BACKEDGE();
   4101     if (CMP_NE(_flag_a, _flag_b)) goto L_36021881; /* 0x36021A81: jne 0x36021881 */
   4102 L_36021A87:
   4103     edi = POP32_VAL(esp); /* 0x36021A87: pop edi */
   4104     esi = POP32_VAL(esp); /* 0x36021A88: pop esi */
   4105     eax = 0x36303B88u; /* 0x36021A89: mov eax, 0x36303b88 */
   4106     ebx = POP32_VAL(esp); /* 0x36021A8E: pop ebx */
   4107     esp = ebp; /* 0x36021A8F: mov esp, ebp */
   4108     ebp = POP32_VAL(esp); /* 0x36021A91: pop ebp */
   4109     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36021A92: ret  */
   4110     RECOMP_REGS_OUT();
   4111 }
   4112 
   4113 void sub_36021AA0(void) {
   4114     int _fpu_cmp = 0;
   4115     uint32_t _cf = 0;
   4116     int _df = 1;
   4117     uint32_t _flag_k = FK_NONE;
   4118     uint32_t _flag_a = 0, _flag_b = 0;
   4119     uint32_t _itail_tgt = 0;
   4120     RECOMP_REGS_LOCALS
   4121     RECOMP_ENTER(0x36021AA0u);
   4122 
   4123 L_36021AA0:
   4124     eax = MEM32(0x36303B8C); /* 0x36021AA0: mov eax, dword ptr [0x36303b8c] */
   4125     PUSH32(esp, eax); /* 0x36021AA5: push eax */
   4126     RECOMP_ICALL(0x3615FCC4u); /* 0x36021AA6: call 0x3615fcc4 */ /* not lifted */
   4127     RECOMP_FLAGS_IN();
   4128     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4129     eax = 0; /* 0x36021AAB: xor eax, eax */
   4130     _cf = 0;
   4131     _flag_k = FK_TEST;
   4132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4134     esp = esp + 4; /* 0x36021AAD: add esp, 4 */
   4135     _flag_k = FK_ADD;
   4136     MEM32(0x36303B8C) = eax; /* 0x36021AB0: mov dword ptr [0x36303b8c], eax */
   4137     MEM32(0x36303B90) = eax; /* 0x36021AB5: mov dword ptr [0x36303b90], eax */
   4138     MEM32(0x36303B94) = eax; /* 0x36021ABA: mov dword ptr [0x36303b94], eax */
   4139     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36021ABF: ret  */
   4140     RECOMP_REGS_OUT();
   4141 }
   4142 
   4143 void sub_36021AC0(void) {
   4144     int _fpu_cmp = 0;
   4145     uint32_t _cf = 0;
   4146     int _df = 1;
   4147     uint32_t _flag_k = FK_NONE;
   4148     uint32_t _flag_a = 0, _flag_b = 0;
   4149     uint32_t _itail_tgt = 0;
   4150     RECOMP_REGS_LOCALS
   4151     RECOMP_ENTER(0x36021AC0u);
   4152 
   4153 L_36021AC0:
   4154     PUSH32(esp, ebp); /* 0x36021AC0: push ebp */
   4155     ebp = esp; /* 0x36021AC1: mov ebp, esp */
   4156     PUSH32(esp, 0xFFFFFFFFu); /* 0x36021AC3: push -1 */
   4157     PUSH32(esp, 0x3616312Bu); /* 0x36021AC5: push 0x3616312b */
   4158     eax = MEM32(FS_BASE + (0)); /* 0x36021ACA: mov eax, dword ptr fs:[0] */
   4159     PUSH32(esp, eax); /* 0x36021AD0: push eax */
   4160     MEM32(FS_BASE + (0)) = esp; /* 0x36021AD1: mov dword ptr fs:[0], esp */
   4161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
   4162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4163     esp = esp - 0x24u; /* 0x36021AD8: sub esp, 0x24 */
   4164     _flag_k = FK_CMP;
   4165     PUSH32(esp, ebx); /* 0x36021ADB: push ebx */
   4166     PUSH32(esp, edi); /* 0x36021ADC: push edi */
   4167     edi = MEM32(ebp + 0xC); /* 0x36021ADD: mov edi, dword ptr [ebp + 0xc] */
   4168     fp_push((double)(int32_t)MEM32(edi)); /* 0x36021AE0: fild dword ptr [edi] */
   4169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4170     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4171     esp = esp - 8; /* 0x36021AE2: sub esp, 8 */
   4172     _flag_k = FK_CMP;
   4173     ebx = ecx; /* 0x36021AE5: mov ebx, ecx */
   4174     _st[0] *= (double)*(float*)ADDR(0x36170818); /* 0x36021AE7: fmul dword ptr [0x36170818] */
   4175     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x36021AED: fadd dword ptr [0x36170380] */
   4176     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36021AF3: fstp qword ptr [esp] */
   4177     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x36021AF6: call dword ptr [0x3616f198] */
   4178     RECOMP_FLAGS_IN();
   4179     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4180     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4181     esp = esp + 8; /* 0x36021AFC: add esp, 8 */
   4182     _flag_k = FK_ADD;
   4183     RECOMP_ICALL(0x3615FD8Cu); /* 0x36021AFF: call 0x3615fd8c */ /* not lifted */
   4184     RECOMP_FLAGS_IN();
   4185     /* test eax, eax */ /* 0x36021B04: test eax, eax */
   4186     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4187     _cf = 0;
   4188     _flag_k = FK_TEST;
   4189     MEM32(ebp + 0xC) = eax; /* 0x36021B06: mov dword ptr [ebp + 0xc], eax */
   4190     if (TEST_LE(_flag_a, _flag_b)) goto L_36021BFA; /* 0x36021B09: jle 0x36021bfa */
   4191 L_36021B0F:
   4192     /* cmp eax, 0xBu */ /* 0x36021B0F: cmp eax, 0xb */
   4193     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu);
   4194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4195     _flag_k = FK_CMP;
   4196     if (CMP_G(_flag_a, _flag_b)) goto L_36021BFA; /* 0x36021B12: jg 0x36021bfa */
   4197 L_36021B18:
   4198     PUSH32(esp, esi); /* 0x36021B18: push esi */
   4199     ecx = ebp + (-0x30); /* 0x36021B19: lea ecx, [ebp - 0x30] */
   4200     RECOMP_ICALL(0x360F6380u); /* 0x36021B1C: call 0x360f6380 */ /* not lifted */
   4201     RECOMP_FLAGS_IN();
   4202     eax = MEM32(edi + 0x4); /* 0x36021B21: mov eax, dword ptr [edi + 4] */
   4203     PUSH32(esp, eax); /* 0x36021B24: push eax */
   4204     PUSH32(esp, 0); /* 0x36021B25: push 0 */
   4205     ecx = ebp + (-0x30); /* 0x36021B27: lea ecx, [ebp - 0x30] */
   4206     RECOMP_ICALL(0x360F63A0u); /* 0x36021B2A: call 0x360f63a0 */ /* not lifted */
   4207     RECOMP_FLAGS_IN();
   4208     ecx = MEM32(edi + 0x8); /* 0x36021B2F: mov ecx, dword ptr [edi + 8] */
   4209     PUSH32(esp, ecx); /* 0x36021B32: push ecx */
   4210     PUSH32(esp, 1); /* 0x36021B33: push 1 */
   4211     ecx = ebp + (-0x30); /* 0x36021B35: lea ecx, [ebp - 0x30] */
   4212     RECOMP_ICALL(0x360F63A0u); /* 0x36021B38: call 0x360f63a0 */ /* not lifted */
   4213     RECOMP_FLAGS_IN();
   4214     edx = MEM32(edi + 0xC); /* 0x36021B3D: mov edx, dword ptr [edi + 0xc] */
   4215     PUSH32(esp, edx); /* 0x36021B40: push edx */
   4216     PUSH32(esp, 2); /* 0x36021B41: push 2 */
   4217     ecx = ebp + (-0x30); /* 0x36021B43: lea ecx, [ebp - 0x30] */
   4218     RECOMP_ICALL(0x360F63A0u); /* 0x36021B46: call 0x360f63a0 */ /* not lifted */
   4219     RECOMP_FLAGS_IN();
   4220     eax = MEM32(edi + 0x10); /* 0x36021B4B: mov eax, dword ptr [edi + 0x10] */
   4221     PUSH32(esp, eax); /* 0x36021B4E: push eax */
   4222     PUSH32(esp, 3); /* 0x36021B4F: push 3 */
   4223     ecx = ebp + (-0x30); /* 0x36021B51: lea ecx, [ebp - 0x30] */
   4224     RECOMP_ICALL(0x360F63A0u); /* 0x36021B54: call 0x360f63a0 */ /* not lifted */
   4225     RECOMP_FLAGS_IN();
   4226     ecx = MEM32(edi + 0x14); /* 0x36021B59: mov ecx, dword ptr [edi + 0x14] */
   4227     PUSH32(esp, ecx); /* 0x36021B5C: push ecx */
   4228     PUSH32(esp, 4); /* 0x36021B5D: push 4 */
   4229     ecx = ebp + (-0x30); /* 0x36021B5F: lea ecx, [ebp - 0x30] */
   4230     RECOMP_ICALL(0x360F63A0u); /* 0x36021B62: call 0x360f63a0 */ /* not lifted */
   4231     RECOMP_FLAGS_IN();
   4232     edx = MEM32(edi + 0x18); /* 0x36021B67: mov edx, dword ptr [edi + 0x18] */
   4233     PUSH32(esp, edx); /* 0x36021B6A: push edx */
   4234     PUSH32(esp, 5); /* 0x36021B6B: push 5 */
   4235     ecx = ebp + (-0x30); /* 0x36021B6D: lea ecx, [ebp - 0x30] */
   4236     RECOMP_ICALL(0x360F63A0u); /* 0x36021B70: call 0x360f63a0 */ /* not lifted */
   4237     RECOMP_FLAGS_IN();
   4238     PUSH32(esp, 0x60u); /* 0x36021B75: push 0x60 */
   4239     RECOMP_ICALL(0x3615FD6Au); /* 0x36021B77: call 0x3615fd6a */ /* not lifted */
   4240     RECOMP_FLAGS_IN();
   4241     esi = eax; /* 0x36021B7C: mov esi, eax */
   4242     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4243     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4244     esp = esp + 4; /* 0x36021B7E: add esp, 4 */
   4245     _flag_k = FK_ADD;
   4246     MEM32(ebp + (-0x10)) = esi; /* 0x36021B81: mov dword ptr [ebp - 0x10], esi */
   4247     /* test esi, esi */ /* 0x36021B84: test esi, esi */
   4248     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4249     _cf = 0;
   4250     _flag_k = FK_TEST;
   4251     MEM32(ebp + (-0x4)) = 0; /* 0x36021B86: mov dword ptr [ebp - 4], 0 */
   4252     if (TEST_Z(_flag_a, _flag_b)) goto L_36021BA6; /* 0x36021B8D: je 0x36021ba6 */
   4253 L_36021B8F:
   4254     eax = MEM32(ebx); /* 0x36021B8F: mov eax, dword ptr [ebx] */
   4255     ecx = ebp + (-0x18); /* 0x36021B91: lea ecx, [ebp - 0x18] */
   4256     PUSH32(esp, ecx); /* 0x36021B94: push ecx */
   4257     ecx = ebx; /* 0x36021B95: mov ecx, ebx */
   4258     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36021B97: call dword ptr [eax + 0x24] */
   4259     RECOMP_FLAGS_IN();
   4260     PUSH32(esp, eax); /* 0x36021B9A: push eax */
   4261     ecx = esi; /* 0x36021B9B: mov ecx, esi */
   4262     RECOMP_ICALL(0x360F61B0u); /* 0x36021B9D: call 0x360f61b0 */ /* not lifted */
   4263     RECOMP_FLAGS_IN();
   4264     esi = eax; /* 0x36021BA2: mov esi, eax */
   4265     goto L_36021BA8; /* 0x36021BA4: jmp 0x36021ba8 */
   4266 L_36021BA6:
   4267     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4268     esi = 0; /* 0x36021BA6: xor esi, esi */
   4269     _cf = 0;
   4270     _flag_k = FK_TEST;
   4271 L_36021BA8:
   4272     edx = MEM32(ebp + 0xC); /* 0x36021BA8: mov edx, dword ptr [ebp + 0xc] */
   4273     PUSH32(esp, edx); /* 0x36021BAB: push edx */
   4274     ecx = esi; /* 0x36021BAC: mov ecx, esi */
   4275     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36021BAE: mov dword ptr [ebp - 4], 0xffffffff */
   4276     RECOMP_ICALL(0x360F4AD0u); /* 0x36021BB5: call 0x360f4ad0 */ /* not lifted */
   4277     RECOMP_FLAGS_IN();
   4278     eax = ebp + (-0x30); /* 0x36021BBA: lea eax, [ebp - 0x30] */
   4279     PUSH32(esp, eax); /* 0x36021BBD: push eax */
   4280     ecx = esi; /* 0x36021BBE: mov ecx, esi */
   4281     RECOMP_ICALL(0x360C6620u); /* 0x36021BC0: call 0x360c6620 */ /* not lifted */
   4282     RECOMP_FLAGS_IN();
   4283     ecx = MEM32(ebp + 0x8); /* 0x36021BC5: mov ecx, dword ptr [ebp + 8] */
   4284     edx = MEM32(ecx + 0xC); /* 0x36021BC8: mov edx, dword ptr [ecx + 0xc] */
   4285     PUSH32(esp, edx); /* 0x36021BCB: push edx */
   4286     ecx = esi; /* 0x36021BCC: mov ecx, esi */
   4287     RECOMP_ICALL(0x360F4AF0u); /* 0x36021BCE: call 0x360f4af0 */ /* not lifted */
   4288     RECOMP_FLAGS_IN();
   4289     eax = MEM32(ebp + 0x8); /* 0x36021BD3: mov eax, dword ptr [ebp + 8] */
   4290     ecx = MEM32(eax + 0x8); /* 0x36021BD6: mov ecx, dword ptr [eax + 8] */
   4291     PUSH32(esp, ecx); /* 0x36021BD9: push ecx */
   4292     ecx = esi; /* 0x36021BDA: mov ecx, esi */
   4293     RECOMP_ICALL(0x360F62B0u); /* 0x36021BDC: call 0x360f62b0 */ /* not lifted */
   4294     RECOMP_FLAGS_IN();
   4295     eax = MEM32(edi + 0x1C); /* 0x36021BE1: mov eax, dword ptr [edi + 0x1c] */
   4296     edx = edi + 0x20; /* 0x36021BE4: lea edx, [edi + 0x20] */
   4297     PUSH32(esp, edx); /* 0x36021BE7: push edx */
   4298     PUSH32(esp, eax); /* 0x36021BE8: push eax */
   4299     ecx = esi; /* 0x36021BE9: mov ecx, esi */
   4300     RECOMP_ICALL(0x360F4B00u); /* 0x36021BEB: call 0x360f4b00 */ /* not lifted */
   4301     RECOMP_FLAGS_IN();
   4302     PUSH32(esp, esi); /* 0x36021BF0: push esi */
   4303     ecx = ebx; /* 0x36021BF1: mov ecx, ebx */
   4304     RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36021BF3: call dword ptr [0x3616ff60] */
   4305     RECOMP_FLAGS_IN();
   4306     esi = POP32_VAL(esp); /* 0x36021BF9: pop esi */
   4307 L_36021BFA:
   4308     ecx = MEM32(ebp + (-0xC)); /* 0x36021BFA: mov ecx, dword ptr [ebp - 0xc] */
   4309     edi = POP32_VAL(esp); /* 0x36021BFD: pop edi */
   4310     ebx = POP32_VAL(esp); /* 0x36021BFE: pop ebx */
   4311     MEM32(FS_BASE + (0)) = ecx; /* 0x36021BFF: mov dword ptr fs:[0], ecx */
   4312     esp = ebp; /* 0x36021C06: mov esp, ebp */
   4313     ebp = POP32_VAL(esp); /* 0x36021C08: pop ebp */
   4314     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36021C09: ret 8 */
   4315     RECOMP_REGS_OUT();
   4316 }
   4317 
   4318 void sub_36021C10(void) {
   4319     int _fpu_cmp = 0;
   4320     uint32_t _cf = 0;
   4321     int _df = 1;
   4322     uint32_t _flag_k = FK_NONE;
   4323     uint32_t _flag_a = 0, _flag_b = 0;
   4324     uint32_t _itail_tgt = 0;
   4325     RECOMP_REGS_LOCALS
   4326     RECOMP_ENTER(0x36021C10u);
   4327 
   4328 L_36021C10:
   4329     PUSH32(esp, ebp); /* 0x36021C10: push ebp */
   4330     ebp = esp; /* 0x36021C11: mov ebp, esp */
   4331     PUSH32(esp, 0xFFFFFFFFu); /* 0x36021C13: push -1 */
   4332     PUSH32(esp, 0x3616314Bu); /* 0x36021C15: push 0x3616314b */
   4333     eax = MEM32(FS_BASE + (0)); /* 0x36021C1A: mov eax, dword ptr fs:[0] */
   4334     PUSH32(esp, eax); /* 0x36021C20: push eax */
   4335     MEM32(FS_BASE + (0)) = esp; /* 0x36021C21: mov dword ptr fs:[0], esp */
   4336     PUSH32(esp, ecx); /* 0x36021C28: push ecx */
   4337     PUSH32(esp, esi); /* 0x36021C29: push esi */
   4338     PUSH32(esp, edi); /* 0x36021C2A: push edi */
   4339     PUSH32(esp, 0x8Cu); /* 0x36021C2B: push 0x8c */
   4340     edi = ecx; /* 0x36021C30: mov edi, ecx */
   4341     RECOMP_ICALL(0x3615FD6Au); /* 0x36021C32: call 0x3615fd6a */ /* not lifted */
   4342     RECOMP_FLAGS_IN();
   4343     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4345     esp = esp + 4; /* 0x36021C37: add esp, 4 */
   4346     _flag_k = FK_ADD;
   4347     MEM32(ebp + (-0x10)) = eax; /* 0x36021C3A: mov dword ptr [ebp - 0x10], eax */
   4348     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4349     esi = 0; /* 0x36021C3D: xor esi, esi */
   4350     _cf = 0;
   4351     _flag_k = FK_TEST;
   4352     /* cmp eax, esi */ /* 0x36021C3F: cmp eax, esi */
   4353     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4354     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4355     _flag_k = FK_CMP;
   4356     MEM32(ebp + (-0x4)) = esi; /* 0x36021C41: mov dword ptr [ebp - 4], esi */
   4357     if (CMP_EQ(_flag_a, _flag_b)) goto L_36021C4F; /* 0x36021C44: je 0x36021c4f */
   4358 L_36021C46:
   4359     ecx = eax; /* 0x36021C46: mov ecx, eax */
   4360     RECOMP_ICALL(0x360C6070u); /* 0x36021C48: call 0x360c6070 */ /* not lifted */
   4361     RECOMP_FLAGS_IN();
   4362     esi = eax; /* 0x36021C4D: mov esi, eax */
   4363 L_36021C4F:
   4364     eax = MEM32(ebp + 0x8); /* 0x36021C4F: mov eax, dword ptr [ebp + 8] */
   4365     PUSH32(esp, eax); /* 0x36021C52: push eax */
   4366     ecx = esi; /* 0x36021C53: mov ecx, esi */
   4367     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36021C55: mov dword ptr [ebp - 4], 0xffffffff */
   4368     RECOMP_ICALL(0x360C6540u); /* 0x36021C5C: call 0x360c6540 */ /* not lifted */
   4369     RECOMP_FLAGS_IN();
   4370     ecx = MEM32(ebp + 0xC); /* 0x36021C61: mov ecx, dword ptr [ebp + 0xc] */
   4371     PUSH32(esp, ecx); /* 0x36021C64: push ecx */
   4372     ecx = esi; /* 0x36021C65: mov ecx, esi */
   4373     RECOMP_ICALL(0x360C6560u); /* 0x36021C67: call 0x360c6560 */ /* not lifted */
   4374     RECOMP_FLAGS_IN();
   4375     edx = MEM32(ebp + 0x10); /* 0x36021C6C: mov edx, dword ptr [ebp + 0x10] */
   4376     PUSH32(esp, edx); /* 0x36021C6F: push edx */
   4377     ecx = esi; /* 0x36021C70: mov ecx, esi */
   4378     RECOMP_ICALL(0x360C6590u); /* 0x36021C72: call 0x360c6590 */ /* not lifted */
   4379     RECOMP_FLAGS_IN();
   4380     eax = MEM32(ebp + 0x14); /* 0x36021C77: mov eax, dword ptr [ebp + 0x14] */
   4381     PUSH32(esp, eax); /* 0x36021C7A: push eax */
   4382     ecx = esi; /* 0x36021C7B: mov ecx, esi */
   4383     RECOMP_ICALL(0x360C65C0u); /* 0x36021C7D: call 0x360c65c0 */ /* not lifted */
   4384     RECOMP_FLAGS_IN();
   4385     ecx = MEM32(ebp + 0x18); /* 0x36021C82: mov ecx, dword ptr [ebp + 0x18] */
   4386     PUSH32(esp, ecx); /* 0x36021C85: push ecx */
   4387     ecx = esi; /* 0x36021C86: mov ecx, esi */
   4388     RECOMP_ICALL(0x360C6620u); /* 0x36021C88: call 0x360c6620 */ /* not lifted */
   4389     RECOMP_FLAGS_IN();
   4390     edx = MEM32(ebp + 0x1C); /* 0x36021C8D: mov edx, dword ptr [ebp + 0x1c] */
   4391     PUSH32(esp, edx); /* 0x36021C90: push edx */
   4392     ecx = esi; /* 0x36021C91: mov ecx, esi */
   4393     RECOMP_ICALL(0x360C64E0u); /* 0x36021C93: call 0x360c64e0 */ /* not lifted */
   4394     RECOMP_FLAGS_IN();
   4395     eax = MEM32(ebp + 0x20); /* 0x36021C98: mov eax, dword ptr [ebp + 0x20] */
   4396     PUSH32(esp, eax); /* 0x36021C9B: push eax */
   4397     ecx = esi; /* 0x36021C9C: mov ecx, esi */
   4398     RECOMP_ICALL(0x360C6500u); /* 0x36021C9E: call 0x360c6500 */ /* not lifted */
   4399     RECOMP_FLAGS_IN();
   4400     ecx = MEM32(ebp + 0x24); /* 0x36021CA3: mov ecx, dword ptr [ebp + 0x24] */
   4401     PUSH32(esp, ecx); /* 0x36021CA6: push ecx */
   4402     ecx = esi; /* 0x36021CA7: mov ecx, esi */
   4403     RECOMP_ICALL(0x360C6520u); /* 0x36021CA9: call 0x360c6520 */ /* not lifted */
   4404     RECOMP_FLAGS_IN();
   4405     edx = MEM32(ebp + 0x28); /* 0x36021CAE: mov edx, dword ptr [ebp + 0x28] */
   4406     PUSH32(esp, edx); /* 0x36021CB1: push edx */
   4407     ecx = esi; /* 0x36021CB2: mov ecx, esi */
   4408     RECOMP_ICALL(0x360C6530u); /* 0x36021CB4: call 0x360c6530 */ /* not lifted */
   4409     RECOMP_FLAGS_IN();
   4410     ecx = MEM32(edi + 0xF0); /* 0x36021CB9: mov ecx, dword ptr [edi + 0xf0] */
   4411     PUSH32(esp, esi); /* 0x36021CBF: push esi */
   4412     RECOMP_ICALL(0x360C53B0u); /* 0x36021CC0: call 0x360c53b0 */ /* not lifted */
   4413     RECOMP_FLAGS_IN();
   4414     ecx = MEM32(ebp + (-0xC)); /* 0x36021CC5: mov ecx, dword ptr [ebp - 0xc] */
   4415     edi = POP32_VAL(esp); /* 0x36021CC8: pop edi */
   4416     esi = POP32_VAL(esp); /* 0x36021CC9: pop esi */
   4417     MEM32(FS_BASE + (0)) = ecx; /* 0x36021CCA: mov dword ptr fs:[0], ecx */
   4418     esp = ebp; /* 0x36021CD1: mov esp, ebp */
   4419     ebp = POP32_VAL(esp); /* 0x36021CD3: pop ebp */
   4420     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021CD4: ret 0x24 */
   4421     RECOMP_REGS_OUT();
   4422 }
   4423 
   4424 void sub_36021CE0(void) {
   4425     int _fpu_cmp = 0;
   4426     uint32_t _cf = 0;
   4427     int _df = 1;
   4428     uint32_t _flag_k = FK_NONE;
   4429     uint32_t _flag_a = 0, _flag_b = 0;
   4430     uint32_t _itail_tgt = 0;
   4431     RECOMP_REGS_LOCALS
   4432     RECOMP_ENTER(0x36021CE0u);
   4433 
   4434 L_36021CE0:
   4435     PUSH32(esp, ebp); /* 0x36021CE0: push ebp */
   4436 L_36021CE1:
   4437     ebp = esp; /* 0x36021CE1: mov ebp, esp */
   4438 L_36021CE3:
   4439     eax = MEM32(ebp + 0x8); /* 0x36021CE3: mov eax, dword ptr [ebp + 8] */
   4440 L_36021CE6:
   4441     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4442     eax = eax - 1; /* 0x36021CE6: dec eax */
   4443     _flag_k = FK_DEC;
   4444 L_36021CE7:
   4445     /* cmp eax, 0xFu */ /* 0x36021CE7: cmp eax, 0xf */
   4446     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFu);
   4447     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4448     _flag_k = FK_CMP;
   4449 L_36021CEA:
   4450     PUSH32(esp, esi); /* 0x36021CEA: push esi */
   4451 L_36021CEB:
   4452     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36021F15; /* 0x36021CEB: ja 0x36021f15 */
   4453 L_36021CF1:
   4454     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36021F1C)); goto _ljump; }
   4455 L_36021CF8:
   4456     ecx = MEM32(ebp + 0x14); /* 0x36021CF8: mov ecx, dword ptr [ebp + 0x14] */
   4457 L_36021CFB:
   4458     /* cmp MEM32(ecx), 0xC350u */ /* 0x36021CFB: cmp dword ptr [ecx], 0xc350 */
   4459     _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0xC350u);
   4460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4461     _flag_k = FK_CMP;
   4462 L_36021D01:
   4463     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36021F15; /* 0x36021D01: je 0x36021f15 */
   4464 L_36021D07:
   4465     eax = 1; /* 0x36021D07: mov eax, 1 */
   4466 L_36021D0C:
   4467     esi = POP32_VAL(esp); /* 0x36021D0C: pop esi */
   4468 L_36021D0D:
   4469     ebp = POP32_VAL(esp); /* 0x36021D0D: pop ebp */
   4470 L_36021D0E:
   4471     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021D0E: ret 0x24 */
   4472 L_36021D11:
   4473     edx = MEM32(ebp + 0xC); /* 0x36021D11: mov edx, dword ptr [ebp + 0xc] */
   4474 L_36021D14:
   4475     PUSH32(esp, 0); /* 0x36021D14: push 0 */
   4476 L_36021D16:
   4477     PUSH32(esp, 0x361B2CF8u); /* 0x36021D16: push 0x361b2cf8 */
   4478 L_36021D1B:
   4479     PUSH32(esp, 0x361B2CC0u); /* 0x36021D1B: push 0x361b2cc0 */
   4480 L_36021D20:
   4481     PUSH32(esp, 0); /* 0x36021D20: push 0 */
   4482 L_36021D22:
   4483     PUSH32(esp, edx); /* 0x36021D22: push edx */
   4484 L_36021D23:
   4485     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36021D23: call dword ptr [0x3616ff70] */
   4486     RECOMP_FLAGS_IN();
   4487 L_36021D29:
   4488     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4489     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4490     esp = esp + 4; /* 0x36021D29: add esp, 4 */
   4491     _flag_k = FK_ADD;
   4492 L_36021D2C:
   4493     PUSH32(esp, eax); /* 0x36021D2C: push eax */
   4494 L_36021D2D:
   4495     RECOMP_ICALL(0x3615FD86u); /* 0x36021D2D: call 0x3615fd86 */ /* not lifted */
   4496     RECOMP_FLAGS_IN();
   4497 L_36021D32:
   4498     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4499     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4500     esp = esp + 0x14u; /* 0x36021D32: add esp, 0x14 */
   4501     _flag_k = FK_ADD;
   4502 L_36021D35:
   4503     /* test eax, eax */ /* 0x36021D35: test eax, eax */
   4504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4505     _cf = 0;
   4506     _flag_k = FK_TEST;
   4507 L_36021D37:
   4508     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021D37: jne 0x36021f15 */
   4509 L_36021D3D:
   4510     eax = 2; /* 0x36021D3D: mov eax, 2 */
   4511 L_36021D42:
   4512     esi = POP32_VAL(esp); /* 0x36021D42: pop esi */
   4513 L_36021D43:
   4514     ebp = POP32_VAL(esp); /* 0x36021D43: pop ebp */
   4515 L_36021D44:
   4516     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021D44: ret 0x24 */
   4517 L_36021D47:
   4518     edx = MEM32(ebp + 0xC); /* 0x36021D47: mov edx, dword ptr [ebp + 0xc] */
   4519 L_36021D4A:
   4520     esi = MEM32(0x3616FF70); /* 0x36021D4A: mov esi, dword ptr [0x3616ff70] */
   4521 L_36021D50:
   4522     PUSH32(esp, 0); /* 0x36021D50: push 0 */
   4523 L_36021D52:
   4524     PUSH32(esp, 0x361B2CF8u); /* 0x36021D52: push 0x361b2cf8 */
   4525 L_36021D57:
   4526     PUSH32(esp, 0x361B2CC0u); /* 0x36021D57: push 0x361b2cc0 */
   4527 L_36021D5C:
   4528     PUSH32(esp, 0); /* 0x36021D5C: push 0 */
   4529 L_36021D5E:
   4530     PUSH32(esp, edx); /* 0x36021D5E: push edx */
   4531 L_36021D5F:
   4532     RECOMP_ICALL(esi); /* 0x36021D5F: call esi */
   4533     RECOMP_FLAGS_IN();
   4534 L_36021D61:
   4535     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4536     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4537     esp = esp + 4; /* 0x36021D61: add esp, 4 */
   4538     _flag_k = FK_ADD;
   4539 L_36021D64:
   4540     PUSH32(esp, eax); /* 0x36021D64: push eax */
   4541 L_36021D65:
   4542     RECOMP_ICALL(0x3615FD86u); /* 0x36021D65: call 0x3615fd86 */ /* not lifted */
   4543     RECOMP_FLAGS_IN();
   4544 L_36021D6A:
   4545     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4546     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4547     esp = esp + 0x14u; /* 0x36021D6A: add esp, 0x14 */
   4548     _flag_k = FK_ADD;
   4549 L_36021D6D:
   4550     /* test eax, eax */ /* 0x36021D6D: test eax, eax */
   4551     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4552     _cf = 0;
   4553     _flag_k = FK_TEST;
   4554 L_36021D6F:
   4555     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021D7B; /* 0x36021D6F: jne 0x36021d7b */
   4556 L_36021D71:
   4557     eax = 2; /* 0x36021D71: mov eax, 2 */
   4558 L_36021D76:
   4559     esi = POP32_VAL(esp); /* 0x36021D76: pop esi */
   4560 L_36021D77:
   4561     ebp = POP32_VAL(esp); /* 0x36021D77: pop ebp */
   4562 L_36021D78:
   4563     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021D78: ret 0x24 */
   4564 L_36021D7B:
   4565     eax = MEM32(ebp + 0x10); /* 0x36021D7B: mov eax, dword ptr [ebp + 0x10] */
   4566 L_36021D7E:
   4567     PUSH32(esp, 0); /* 0x36021D7E: push 0 */
   4568 L_36021D80:
   4569     PUSH32(esp, 0x361B2CF8u); /* 0x36021D80: push 0x361b2cf8 */
   4570 L_36021D85:
   4571     PUSH32(esp, 0x361B2CC0u); /* 0x36021D85: push 0x361b2cc0 */
   4572 L_36021D8A:
   4573     PUSH32(esp, 0); /* 0x36021D8A: push 0 */
   4574 L_36021D8C:
   4575     PUSH32(esp, eax); /* 0x36021D8C: push eax */
   4576 L_36021D8D:
   4577     RECOMP_ICALL(esi); /* 0x36021D8D: call esi */
   4578     RECOMP_FLAGS_IN();
   4579 L_36021D8F:
   4580     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4582     esp = esp + 4; /* 0x36021D8F: add esp, 4 */
   4583     _flag_k = FK_ADD;
   4584 L_36021D92:
   4585     PUSH32(esp, eax); /* 0x36021D92: push eax */
   4586 L_36021D93:
   4587     RECOMP_ICALL(0x3615FD86u); /* 0x36021D93: call 0x3615fd86 */ /* not lifted */
   4588     RECOMP_FLAGS_IN();
   4589 L_36021D98:
   4590     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4591     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4592     esp = esp + 0x14u; /* 0x36021D98: add esp, 0x14 */
   4593     _flag_k = FK_ADD;
   4594 L_36021D9B:
   4595     /* test eax, eax */ /* 0x36021D9B: test eax, eax */
   4596     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4597     _cf = 0;
   4598     _flag_k = FK_TEST;
   4599 L_36021D9D:
   4600     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021D9D: jne 0x36021f15 */
   4601 L_36021DA3:
   4602     eax = 3; /* 0x36021DA3: mov eax, 3 */
   4603 L_36021DA8:
   4604     esi = POP32_VAL(esp); /* 0x36021DA8: pop esi */
   4605 L_36021DA9:
   4606     ebp = POP32_VAL(esp); /* 0x36021DA9: pop ebp */
   4607 L_36021DAA:
   4608     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021DAA: ret 0x24 */
   4609 L_36021DAD:
   4610     ecx = MEM32(ebp + 0xC); /* 0x36021DAD: mov ecx, dword ptr [ebp + 0xc] */
   4611 L_36021DB0:
   4612     esi = MEM32(0x3616FF70); /* 0x36021DB0: mov esi, dword ptr [0x3616ff70] */
   4613 L_36021DB6:
   4614     PUSH32(esp, 0); /* 0x36021DB6: push 0 */
   4615 L_36021DB8:
   4616     PUSH32(esp, 0x361B2CF8u); /* 0x36021DB8: push 0x361b2cf8 */
   4617 L_36021DBD:
   4618     PUSH32(esp, 0x361B2CC0u); /* 0x36021DBD: push 0x361b2cc0 */
   4619 L_36021DC2:
   4620     PUSH32(esp, 0); /* 0x36021DC2: push 0 */
   4621 L_36021DC4:
   4622     PUSH32(esp, ecx); /* 0x36021DC4: push ecx */
   4623 L_36021DC5:
   4624     RECOMP_ICALL(esi); /* 0x36021DC5: call esi */
   4625     RECOMP_FLAGS_IN();
   4626 L_36021DC7:
   4627     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4628     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4629     esp = esp + 4; /* 0x36021DC7: add esp, 4 */
   4630     _flag_k = FK_ADD;
   4631 L_36021DCA:
   4632     PUSH32(esp, eax); /* 0x36021DCA: push eax */
   4633 L_36021DCB:
   4634     RECOMP_ICALL(0x3615FD86u); /* 0x36021DCB: call 0x3615fd86 */ /* not lifted */
   4635     RECOMP_FLAGS_IN();
   4636 L_36021DD0:
   4637     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4638     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4639     esp = esp + 0x14u; /* 0x36021DD0: add esp, 0x14 */
   4640     _flag_k = FK_ADD;
   4641 L_36021DD3:
   4642     /* test eax, eax */ /* 0x36021DD3: test eax, eax */
   4643     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4644     _cf = 0;
   4645     _flag_k = FK_TEST;
   4646 L_36021DD5:
   4647     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021DE1; /* 0x36021DD5: jne 0x36021de1 */
   4648 L_36021DD7:
   4649     eax = 2; /* 0x36021DD7: mov eax, 2 */
   4650 L_36021DDC:
   4651     esi = POP32_VAL(esp); /* 0x36021DDC: pop esi */
   4652 L_36021DDD:
   4653     ebp = POP32_VAL(esp); /* 0x36021DDD: pop ebp */
   4654 L_36021DDE:
   4655     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021DDE: ret 0x24 */
   4656 L_36021DE1:
   4657     edx = MEM32(ebp + 0x14); /* 0x36021DE1: mov edx, dword ptr [ebp + 0x14] */
   4658 L_36021DE4:
   4659     PUSH32(esp, 0); /* 0x36021DE4: push 0 */
   4660 L_36021DE6:
   4661     PUSH32(esp, 0x361B2CD8u); /* 0x36021DE6: push 0x361b2cd8 */
   4662 L_36021DEB:
   4663     PUSH32(esp, 0x361B2CC0u); /* 0x36021DEB: push 0x361b2cc0 */
   4664 L_36021DF0:
   4665     PUSH32(esp, 0); /* 0x36021DF0: push 0 */
   4666 L_36021DF2:
   4667     PUSH32(esp, edx); /* 0x36021DF2: push edx */
   4668 L_36021DF3:
   4669     RECOMP_ICALL(esi); /* 0x36021DF3: call esi */
   4670     RECOMP_FLAGS_IN();
   4671 L_36021DF5:
   4672     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4674     esp = esp + 4; /* 0x36021DF5: add esp, 4 */
   4675     _flag_k = FK_ADD;
   4676 L_36021DF8:
   4677     PUSH32(esp, eax); /* 0x36021DF8: push eax */
   4678 L_36021DF9:
   4679     RECOMP_ICALL(0x3615FD86u); /* 0x36021DF9: call 0x3615fd86 */ /* not lifted */
   4680     RECOMP_FLAGS_IN();
   4681 L_36021DFE:
   4682     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4683     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4684     esp = esp + 0x14u; /* 0x36021DFE: add esp, 0x14 */
   4685     _flag_k = FK_ADD;
   4686 L_36021E01:
   4687     /* test eax, eax */ /* 0x36021E01: test eax, eax */
   4688     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4689     _cf = 0;
   4690     _flag_k = FK_TEST;
   4691 L_36021E03:
   4692     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021E03: jne 0x36021f15 */
   4693 L_36021E09:
   4694     eax = 1; /* 0x36021E09: mov eax, 1 */
   4695 L_36021E0E:
   4696     esi = POP32_VAL(esp); /* 0x36021E0E: pop esi */
   4697 L_36021E0F:
   4698     ebp = POP32_VAL(esp); /* 0x36021E0F: pop ebp */
   4699 L_36021E10:
   4700     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021E10: ret 0x24 */
   4701 L_36021E13:
   4702     eax = MEM32(ebp + 0x14); /* 0x36021E13: mov eax, dword ptr [ebp + 0x14] */
   4703 L_36021E16:
   4704     PUSH32(esp, 0); /* 0x36021E16: push 0 */
   4705 L_36021E18:
   4706     PUSH32(esp, 0x361B2CD8u); /* 0x36021E18: push 0x361b2cd8 */
   4707 L_36021E1D:
   4708     PUSH32(esp, 0x361B2CC0u); /* 0x36021E1D: push 0x361b2cc0 */
   4709 L_36021E22:
   4710     PUSH32(esp, 0); /* 0x36021E22: push 0 */
   4711 L_36021E24:
   4712     PUSH32(esp, eax); /* 0x36021E24: push eax */
   4713 L_36021E25:
   4714     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36021E25: call dword ptr [0x3616ff70] */
   4715     RECOMP_FLAGS_IN();
   4716 L_36021E2B:
   4717     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4718     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4719     esp = esp + 4; /* 0x36021E2B: add esp, 4 */
   4720     _flag_k = FK_ADD;
   4721 L_36021E2E:
   4722     PUSH32(esp, eax); /* 0x36021E2E: push eax */
   4723 L_36021E2F:
   4724     RECOMP_ICALL(0x3615FD86u); /* 0x36021E2F: call 0x3615fd86 */ /* not lifted */
   4725     RECOMP_FLAGS_IN();
   4726 L_36021E34:
   4727     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4729     esp = esp + 0x14u; /* 0x36021E34: add esp, 0x14 */
   4730     _flag_k = FK_ADD;
   4731 L_36021E37:
   4732     /* test eax, eax */ /* 0x36021E37: test eax, eax */
   4733     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4734     _cf = 0;
   4735     _flag_k = FK_TEST;
   4736 L_36021E39:
   4737     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021E39: jne 0x36021f15 */
   4738 L_36021E3F:
   4739     eax = 1; /* 0x36021E3F: mov eax, 1 */
   4740 L_36021E44:
   4741     esi = POP32_VAL(esp); /* 0x36021E44: pop esi */
   4742 L_36021E45:
   4743     ebp = POP32_VAL(esp); /* 0x36021E45: pop ebp */
   4744 L_36021E46:
   4745     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021E46: ret 0x24 */
   4746 L_36021E49:
   4747     ecx = MEM32(ebp + 0xC); /* 0x36021E49: mov ecx, dword ptr [ebp + 0xc] */
   4748 L_36021E4C:
   4749     PUSH32(esp, 0); /* 0x36021E4C: push 0 */
   4750 L_36021E4E:
   4751     PUSH32(esp, 0x361B2CF8u); /* 0x36021E4E: push 0x361b2cf8 */
   4752 L_36021E53:
   4753     PUSH32(esp, 0x361B2CC0u); /* 0x36021E53: push 0x361b2cc0 */
   4754 L_36021E58:
   4755     PUSH32(esp, 0); /* 0x36021E58: push 0 */
   4756 L_36021E5A:
   4757     PUSH32(esp, ecx); /* 0x36021E5A: push ecx */
   4758 L_36021E5B:
   4759     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36021E5B: call dword ptr [0x3616ff70] */
   4760     RECOMP_FLAGS_IN();
   4761 L_36021E61:
   4762     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4763     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4764     esp = esp + 4; /* 0x36021E61: add esp, 4 */
   4765     _flag_k = FK_ADD;
   4766 L_36021E64:
   4767     PUSH32(esp, eax); /* 0x36021E64: push eax */
   4768 L_36021E65:
   4769     RECOMP_ICALL(0x3615FD86u); /* 0x36021E65: call 0x3615fd86 */ /* not lifted */
   4770     RECOMP_FLAGS_IN();
   4771 L_36021E6A:
   4772     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4773     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4774     esp = esp + 0x14u; /* 0x36021E6A: add esp, 0x14 */
   4775     _flag_k = FK_ADD;
   4776 L_36021E6D:
   4777     /* test eax, eax */ /* 0x36021E6D: test eax, eax */
   4778     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4779     _cf = 0;
   4780     _flag_k = FK_TEST;
   4781 L_36021E6F:
   4782     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021E6F: jne 0x36021f15 */
   4783 L_36021E75:
   4784     eax = 2; /* 0x36021E75: mov eax, 2 */
   4785 L_36021E7A:
   4786     esi = POP32_VAL(esp); /* 0x36021E7A: pop esi */
   4787 L_36021E7B:
   4788     ebp = POP32_VAL(esp); /* 0x36021E7B: pop ebp */
   4789 L_36021E7C:
   4790     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021E7C: ret 0x24 */
   4791 L_36021E7F:
   4792     edx = MEM32(ebp + 0x14); /* 0x36021E7F: mov edx, dword ptr [ebp + 0x14] */
   4793 L_36021E82:
   4794     PUSH32(esp, 0); /* 0x36021E82: push 0 */
   4795 L_36021E84:
   4796     PUSH32(esp, 0x361B2CD8u); /* 0x36021E84: push 0x361b2cd8 */
   4797 L_36021E89:
   4798     PUSH32(esp, 0x361B2CC0u); /* 0x36021E89: push 0x361b2cc0 */
   4799 L_36021E8E:
   4800     PUSH32(esp, 0); /* 0x36021E8E: push 0 */
   4801 L_36021E90:
   4802     PUSH32(esp, edx); /* 0x36021E90: push edx */
   4803 L_36021E91:
   4804     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36021E91: call dword ptr [0x3616ff70] */
   4805     RECOMP_FLAGS_IN();
   4806 L_36021E97:
   4807     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4808     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4809     esp = esp + 4; /* 0x36021E97: add esp, 4 */
   4810     _flag_k = FK_ADD;
   4811 L_36021E9A:
   4812     PUSH32(esp, eax); /* 0x36021E9A: push eax */
   4813 L_36021E9B:
   4814     RECOMP_ICALL(0x3615FD86u); /* 0x36021E9B: call 0x3615fd86 */ /* not lifted */
   4815     RECOMP_FLAGS_IN();
   4816 L_36021EA0:
   4817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4819     esp = esp + 0x14u; /* 0x36021EA0: add esp, 0x14 */
   4820     _flag_k = FK_ADD;
   4821 L_36021EA3:
   4822     /* test eax, eax */ /* 0x36021EA3: test eax, eax */
   4823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4824     _cf = 0;
   4825     _flag_k = FK_TEST;
   4826 L_36021EA5:
   4827     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021EA5: jne 0x36021f15 */
   4828 L_36021EA7:
   4829     eax = 1; /* 0x36021EA7: mov eax, 1 */
   4830 L_36021EAC:
   4831     esi = POP32_VAL(esp); /* 0x36021EAC: pop esi */
   4832 L_36021EAD:
   4833     ebp = POP32_VAL(esp); /* 0x36021EAD: pop ebp */
   4834 L_36021EAE:
   4835     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021EAE: ret 0x24 */
   4836 L_36021EB1:
   4837     eax = MEM32(ebp + 0xC); /* 0x36021EB1: mov eax, dword ptr [ebp + 0xc] */
   4838 L_36021EB4:
   4839     PUSH32(esp, 0); /* 0x36021EB4: push 0 */
   4840 L_36021EB6:
   4841     PUSH32(esp, 0x361B2CF8u); /* 0x36021EB6: push 0x361b2cf8 */
   4842 L_36021EBB:
   4843     PUSH32(esp, 0x361B2CC0u); /* 0x36021EBB: push 0x361b2cc0 */
   4844 L_36021EC0:
   4845     PUSH32(esp, 0); /* 0x36021EC0: push 0 */
   4846 L_36021EC2:
   4847     PUSH32(esp, eax); /* 0x36021EC2: push eax */
   4848 L_36021EC3:
   4849     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36021EC3: call dword ptr [0x3616ff70] */
   4850     RECOMP_FLAGS_IN();
   4851 L_36021EC9:
   4852     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4853     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4854     esp = esp + 4; /* 0x36021EC9: add esp, 4 */
   4855     _flag_k = FK_ADD;
   4856 L_36021ECC:
   4857     PUSH32(esp, eax); /* 0x36021ECC: push eax */
   4858 L_36021ECD:
   4859     RECOMP_ICALL(0x3615FD86u); /* 0x36021ECD: call 0x3615fd86 */ /* not lifted */
   4860     RECOMP_FLAGS_IN();
   4861 L_36021ED2:
   4862     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4864     esp = esp + 0x14u; /* 0x36021ED2: add esp, 0x14 */
   4865     _flag_k = FK_ADD;
   4866 L_36021ED5:
   4867     /* test eax, eax */ /* 0x36021ED5: test eax, eax */
   4868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4869     _cf = 0;
   4870     _flag_k = FK_TEST;
   4871 L_36021ED7:
   4872     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021ED7: jne 0x36021f15 */
   4873 L_36021ED9:
   4874     eax = 2; /* 0x36021ED9: mov eax, 2 */
   4875 L_36021EDE:
   4876     esi = POP32_VAL(esp); /* 0x36021EDE: pop esi */
   4877 L_36021EDF:
   4878     ebp = POP32_VAL(esp); /* 0x36021EDF: pop ebp */
   4879 L_36021EE0:
   4880     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021EE0: ret 0x24 */
   4881 L_36021EE3:
   4882     ecx = MEM32(ebp + 0x14); /* 0x36021EE3: mov ecx, dword ptr [ebp + 0x14] */
   4883 L_36021EE6:
   4884     PUSH32(esp, 0); /* 0x36021EE6: push 0 */
   4885 L_36021EE8:
   4886     PUSH32(esp, 0x361B2CD8u); /* 0x36021EE8: push 0x361b2cd8 */
   4887 L_36021EED:
   4888     PUSH32(esp, 0x361B2CC0u); /* 0x36021EED: push 0x361b2cc0 */
   4889 L_36021EF2:
   4890     PUSH32(esp, 0); /* 0x36021EF2: push 0 */
   4891 L_36021EF4:
   4892     PUSH32(esp, ecx); /* 0x36021EF4: push ecx */
   4893 L_36021EF5:
   4894     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36021EF5: call dword ptr [0x3616ff70] */
   4895     RECOMP_FLAGS_IN();
   4896 L_36021EFB:
   4897     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4898     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4899     esp = esp + 4; /* 0x36021EFB: add esp, 4 */
   4900     _flag_k = FK_ADD;
   4901 L_36021EFE:
   4902     PUSH32(esp, eax); /* 0x36021EFE: push eax */
   4903 L_36021EFF:
   4904     RECOMP_ICALL(0x3615FD86u); /* 0x36021EFF: call 0x3615fd86 */ /* not lifted */
   4905     RECOMP_FLAGS_IN();
   4906 L_36021F04:
   4907     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4908     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4909     esp = esp + 0x14u; /* 0x36021F04: add esp, 0x14 */
   4910     _flag_k = FK_ADD;
   4911 L_36021F07:
   4912     /* test eax, eax */ /* 0x36021F07: test eax, eax */
   4913     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4914     _cf = 0;
   4915     _flag_k = FK_TEST;
   4916 L_36021F09:
   4917     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36021F15; /* 0x36021F09: jne 0x36021f15 */
   4918 L_36021F0B:
   4919     eax = 1; /* 0x36021F0B: mov eax, 1 */
   4920 L_36021F10:
   4921     esi = POP32_VAL(esp); /* 0x36021F10: pop esi */
   4922 L_36021F11:
   4923     ebp = POP32_VAL(esp); /* 0x36021F11: pop ebp */
   4924 L_36021F12:
   4925     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021F12: ret 0x24 */
   4926 L_36021F15:
   4927     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4928     eax = 0; /* 0x36021F15: xor eax, eax */
   4929     _cf = 0;
   4930     _flag_k = FK_TEST;
   4931 L_36021F17:
   4932     esi = POP32_VAL(esp); /* 0x36021F17: pop esi */
   4933 L_36021F18:
   4934     ebp = POP32_VAL(esp); /* 0x36021F18: pop ebp */
   4935 L_36021F19:
   4936     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x36021F19: ret 0x24 */
   4937   _ljump:
   4938     switch (_itail_tgt) {
   4939       case 0x36021CE0u: goto L_36021CE0;
   4940       case 0x36021CE1u: goto L_36021CE1;
   4941       case 0x36021CE3u: goto L_36021CE3;
   4942       case 0x36021CE6u: goto L_36021CE6;
   4943       case 0x36021CE7u: goto L_36021CE7;
   4944       case 0x36021CEAu: goto L_36021CEA;
   4945       case 0x36021CEBu: goto L_36021CEB;
   4946       case 0x36021CF1u: goto L_36021CF1;
   4947       case 0x36021CF8u: goto L_36021CF8;
   4948       case 0x36021CFBu: goto L_36021CFB;
   4949       case 0x36021D01u: goto L_36021D01;
   4950       case 0x36021D07u: goto L_36021D07;
   4951       case 0x36021D0Cu: goto L_36021D0C;
   4952       case 0x36021D0Du: goto L_36021D0D;
   4953       case 0x36021D0Eu: goto L_36021D0E;
   4954       case 0x36021D11u: goto L_36021D11;
   4955       case 0x36021D14u: goto L_36021D14;
   4956       case 0x36021D16u: goto L_36021D16;
   4957       case 0x36021D1Bu: goto L_36021D1B;
   4958       case 0x36021D20u: goto L_36021D20;
   4959       case 0x36021D22u: goto L_36021D22;
   4960       case 0x36021D23u: goto L_36021D23;
   4961       case 0x36021D29u: goto L_36021D29;
   4962       case 0x36021D2Cu: goto L_36021D2C;
   4963       case 0x36021D2Du: goto L_36021D2D;
   4964       case 0x36021D32u: goto L_36021D32;
   4965       case 0x36021D35u: goto L_36021D35;
   4966       case 0x36021D37u: goto L_36021D37;
   4967       case 0x36021D3Du: goto L_36021D3D;
   4968       case 0x36021D42u: goto L_36021D42;
   4969       case 0x36021D43u: goto L_36021D43;
   4970       case 0x36021D44u: goto L_36021D44;
   4971       case 0x36021D47u: goto L_36021D47;
   4972       case 0x36021D4Au: goto L_36021D4A;
   4973       case 0x36021D50u: goto L_36021D50;
   4974       case 0x36021D52u: goto L_36021D52;
   4975       case 0x36021D57u: goto L_36021D57;
   4976       case 0x36021D5Cu: goto L_36021D5C;
   4977       case 0x36021D5Eu: goto L_36021D5E;
   4978       case 0x36021D5Fu: goto L_36021D5F;
   4979       case 0x36021D61u: goto L_36021D61;
   4980       case 0x36021D64u: goto L_36021D64;
   4981       case 0x36021D65u: goto L_36021D65;
   4982       case 0x36021D6Au: goto L_36021D6A;
   4983       case 0x36021D6Du: goto L_36021D6D;
   4984       case 0x36021D6Fu: goto L_36021D6F;
   4985       case 0x36021D71u: goto L_36021D71;
   4986       case 0x36021D76u: goto L_36021D76;
   4987       case 0x36021D77u: goto L_36021D77;
   4988       case 0x36021D78u: goto L_36021D78;
   4989       case 0x36021D7Bu: goto L_36021D7B;
   4990       case 0x36021D7Eu: goto L_36021D7E;
   4991       case 0x36021D80u: goto L_36021D80;
   4992       case 0x36021D85u: goto L_36021D85;
   4993       case 0x36021D8Au: goto L_36021D8A;
   4994       case 0x36021D8Cu: goto L_36021D8C;
   4995       case 0x36021D8Du: goto L_36021D8D;
   4996       case 0x36021D8Fu: goto L_36021D8F;
   4997       case 0x36021D92u: goto L_36021D92;
   4998       case 0x36021D93u: goto L_36021D93;
   4999       case 0x36021D98u: goto L_36021D98;
   5000       case 0x36021D9Bu: goto L_36021D9B;
   5001       case 0x36021D9Du: goto L_36021D9D;
   5002       case 0x36021DA3u: goto L_36021DA3;
   5003       case 0x36021DA8u: goto L_36021DA8;
   5004       case 0x36021DA9u: goto L_36021DA9;
   5005       case 0x36021DAAu: goto L_36021DAA;
   5006       case 0x36021DADu: goto L_36021DAD;
   5007       case 0x36021DB0u: goto L_36021DB0;
   5008       case 0x36021DB6u: goto L_36021DB6;
   5009       case 0x36021DB8u: goto L_36021DB8;
   5010       case 0x36021DBDu: goto L_36021DBD;
   5011       case 0x36021DC2u: goto L_36021DC2;
   5012       case 0x36021DC4u: goto L_36021DC4;
   5013       case 0x36021DC5u: goto L_36021DC5;
   5014       case 0x36021DC7u: goto L_36021DC7;
   5015       case 0x36021DCAu: goto L_36021DCA;
   5016       case 0x36021DCBu: goto L_36021DCB;
   5017       case 0x36021DD0u: goto L_36021DD0;
   5018       case 0x36021DD3u: goto L_36021DD3;
   5019       case 0x36021DD5u: goto L_36021DD5;
   5020       case 0x36021DD7u: goto L_36021DD7;
   5021       case 0x36021DDCu: goto L_36021DDC;
   5022       case 0x36021DDDu: goto L_36021DDD;
   5023       case 0x36021DDEu: goto L_36021DDE;
   5024       case 0x36021DE1u: goto L_36021DE1;
   5025       case 0x36021DE4u: goto L_36021DE4;
   5026       case 0x36021DE6u: goto L_36021DE6;
   5027       case 0x36021DEBu: goto L_36021DEB;
   5028       case 0x36021DF0u: goto L_36021DF0;
   5029       case 0x36021DF2u: goto L_36021DF2;
   5030       case 0x36021DF3u: goto L_36021DF3;
   5031       case 0x36021DF5u: goto L_36021DF5;
   5032       case 0x36021DF8u: goto L_36021DF8;
   5033       case 0x36021DF9u: goto L_36021DF9;
   5034       case 0x36021DFEu: goto L_36021DFE;
   5035       case 0x36021E01u: goto L_36021E01;
   5036       case 0x36021E03u: goto L_36021E03;
   5037       case 0x36021E09u: goto L_36021E09;
   5038       case 0x36021E0Eu: goto L_36021E0E;
   5039       case 0x36021E0Fu: goto L_36021E0F;
   5040       case 0x36021E10u: goto L_36021E10;
   5041       case 0x36021E13u: goto L_36021E13;
   5042       case 0x36021E16u: goto L_36021E16;
   5043       case 0x36021E18u: goto L_36021E18;
   5044       case 0x36021E1Du: goto L_36021E1D;
   5045       case 0x36021E22u: goto L_36021E22;
   5046       case 0x36021E24u: goto L_36021E24;
   5047       case 0x36021E25u: goto L_36021E25;
   5048       case 0x36021E2Bu: goto L_36021E2B;
   5049       case 0x36021E2Eu: goto L_36021E2E;
   5050       case 0x36021E2Fu: goto L_36021E2F;
   5051       case 0x36021E34u: goto L_36021E34;
   5052       case 0x36021E37u: goto L_36021E37;
   5053       case 0x36021E39u: goto L_36021E39;
   5054       case 0x36021E3Fu: goto L_36021E3F;
   5055       case 0x36021E44u: goto L_36021E44;
   5056       case 0x36021E45u: goto L_36021E45;
   5057       case 0x36021E46u: goto L_36021E46;
   5058       case 0x36021E49u: goto L_36021E49;
   5059       case 0x36021E4Cu: goto L_36021E4C;
   5060       case 0x36021E4Eu: goto L_36021E4E;
   5061       case 0x36021E53u: goto L_36021E53;
   5062       case 0x36021E58u: goto L_36021E58;
   5063       case 0x36021E5Au: goto L_36021E5A;
   5064       case 0x36021E5Bu: goto L_36021E5B;
   5065       case 0x36021E61u: goto L_36021E61;
   5066       case 0x36021E64u: goto L_36021E64;
   5067       case 0x36021E65u: goto L_36021E65;
   5068       case 0x36021E6Au: goto L_36021E6A;
   5069       case 0x36021E6Du: goto L_36021E6D;
   5070       case 0x36021E6Fu: goto L_36021E6F;
   5071       case 0x36021E75u: goto L_36021E75;
   5072       case 0x36021E7Au: goto L_36021E7A;
   5073       case 0x36021E7Bu: goto L_36021E7B;
   5074       case 0x36021E7Cu: goto L_36021E7C;
   5075       case 0x36021E7Fu: goto L_36021E7F;
   5076       case 0x36021E82u: goto L_36021E82;
   5077       case 0x36021E84u: goto L_36021E84;
   5078       case 0x36021E89u: goto L_36021E89;
   5079       case 0x36021E8Eu: goto L_36021E8E;
   5080       case 0x36021E90u: goto L_36021E90;
   5081       case 0x36021E91u: goto L_36021E91;
   5082       case 0x36021E97u: goto L_36021E97;
   5083       case 0x36021E9Au: goto L_36021E9A;
   5084       case 0x36021E9Bu: goto L_36021E9B;
   5085       case 0x36021EA0u: goto L_36021EA0;
   5086       case 0x36021EA3u: goto L_36021EA3;
   5087       case 0x36021EA5u: goto L_36021EA5;
   5088       case 0x36021EA7u: goto L_36021EA7;
   5089       case 0x36021EACu: goto L_36021EAC;
   5090       case 0x36021EADu: goto L_36021EAD;
   5091       case 0x36021EAEu: goto L_36021EAE;
   5092       case 0x36021EB1u: goto L_36021EB1;
   5093       case 0x36021EB4u: goto L_36021EB4;
   5094       case 0x36021EB6u: goto L_36021EB6;
   5095       case 0x36021EBBu: goto L_36021EBB;
   5096       case 0x36021EC0u: goto L_36021EC0;
   5097       case 0x36021EC2u: goto L_36021EC2;
   5098       case 0x36021EC3u: goto L_36021EC3;
   5099       case 0x36021EC9u: goto L_36021EC9;
   5100       case 0x36021ECCu: goto L_36021ECC;
   5101       case 0x36021ECDu: goto L_36021ECD;
   5102       case 0x36021ED2u: goto L_36021ED2;
   5103       case 0x36021ED5u: goto L_36021ED5;
   5104       case 0x36021ED7u: goto L_36021ED7;
   5105       case 0x36021ED9u: goto L_36021ED9;
   5106       case 0x36021EDEu: goto L_36021EDE;
   5107       case 0x36021EDFu: goto L_36021EDF;
   5108       case 0x36021EE0u: goto L_36021EE0;
   5109       case 0x36021EE3u: goto L_36021EE3;
   5110       case 0x36021EE6u: goto L_36021EE6;
   5111       case 0x36021EE8u: goto L_36021EE8;
   5112       case 0x36021EEDu: goto L_36021EED;
   5113       case 0x36021EF2u: goto L_36021EF2;
   5114       case 0x36021EF4u: goto L_36021EF4;
   5115       case 0x36021EF5u: goto L_36021EF5;
   5116       case 0x36021EFBu: goto L_36021EFB;
   5117       case 0x36021EFEu: goto L_36021EFE;
   5118       case 0x36021EFFu: goto L_36021EFF;
   5119       case 0x36021F04u: goto L_36021F04;
   5120       case 0x36021F07u: goto L_36021F07;
   5121       case 0x36021F09u: goto L_36021F09;
   5122       case 0x36021F0Bu: goto L_36021F0B;
   5123       case 0x36021F10u: goto L_36021F10;
   5124       case 0x36021F11u: goto L_36021F11;
   5125       case 0x36021F12u: goto L_36021F12;
   5126       case 0x36021F15u: goto L_36021F15;
   5127       case 0x36021F17u: goto L_36021F17;
   5128       case 0x36021F18u: goto L_36021F18;
   5129       case 0x36021F19u: goto L_36021F19;
   5130       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5131     }
   5132     RECOMP_REGS_OUT();
   5133 }
   5134 
   5135 void sub_36021F60(void) {
   5136     int _fpu_cmp = 0;
   5137     uint32_t _cf = 0;
   5138     int _df = 1;
   5139     uint32_t _flag_k = FK_NONE;
   5140     uint32_t _flag_a = 0, _flag_b = 0;
   5141     uint32_t _itail_tgt = 0;
   5142     RECOMP_REGS_LOCALS
   5143     RECOMP_ENTER(0x36021F60u);
   5144 
   5145 L_36021F60:
   5146     PUSH32(esp, ebp); /* 0x36021F60: push ebp */
   5147     ebp = esp; /* 0x36021F61: mov ebp, esp */
   5148     RECOMP_ICALL(0x3601F240u); /* 0x36021F63: call 0x3601f240 */ /* not lifted */
   5149     RECOMP_FLAGS_IN();
   5150     /* test eax, eax */ /* 0x36021F68: test eax, eax */
   5151     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5152     _cf = 0;
   5153     _flag_k = FK_TEST;
   5154     if (TEST_Z(_flag_a, _flag_b)) goto L_36021F89; /* 0x36021F6A: je 0x36021f89 */
   5155 L_36021F6C:
   5156     ecx = MEM32(ebp + 0x8); /* 0x36021F6C: mov ecx, dword ptr [ebp + 8] */
   5157     PUSH32(esp, ecx); /* 0x36021F6F: push ecx */
   5158     ecx = eax; /* 0x36021F70: mov ecx, eax */
   5159     RECOMP_ICALL(0x36071F20u); /* 0x36021F72: call 0x36071f20 */ /* not lifted */
   5160     RECOMP_FLAGS_IN();
   5161     ecx = eax; /* 0x36021F77: mov ecx, eax */
   5162     RECOMP_ICALL(0x3606C600u); /* 0x36021F79: call 0x3606c600 */ /* not lifted */
   5163     RECOMP_FLAGS_IN();
   5164     /* test eax, eax */ /* 0x36021F7E: test eax, eax */
   5165     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5166     _cf = 0;
   5167     _flag_k = FK_TEST;
   5168     if (TEST_Z(_flag_a, _flag_b)) goto L_36021F89; /* 0x36021F80: je 0x36021f89 */
   5169 L_36021F82:
   5170     eax = MEM32(eax + 0x48); /* 0x36021F82: mov eax, dword ptr [eax + 0x48] */
   5171     ebp = POP32_VAL(esp); /* 0x36021F85: pop ebp */
   5172     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021F86: ret 4 */
   5173 L_36021F89:
   5174     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5175     eax = 0; /* 0x36021F89: xor eax, eax */
   5176     _cf = 0;
   5177     _flag_k = FK_TEST;
   5178     ebp = POP32_VAL(esp); /* 0x36021F8B: pop ebp */
   5179     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021F8C: ret 4 */
   5180     RECOMP_REGS_OUT();
   5181 }
   5182 
   5183 void sub_36021F90(void) {
   5184     int _fpu_cmp = 0;
   5185     uint32_t _cf = 0;
   5186     int _df = 1;
   5187     uint32_t _flag_k = FK_NONE;
   5188     uint32_t _flag_a = 0, _flag_b = 0;
   5189     uint32_t _itail_tgt = 0;
   5190     RECOMP_REGS_LOCALS
   5191     RECOMP_ENTER(0x36021F90u);
   5192 
   5193 L_36021F90:
   5194     PUSH32(esp, ebp); /* 0x36021F90: push ebp */
   5195     ebp = esp; /* 0x36021F91: mov ebp, esp */
   5196     RECOMP_ICALL(0x3601F240u); /* 0x36021F93: call 0x3601f240 */ /* not lifted */
   5197     RECOMP_FLAGS_IN();
   5198     /* test eax, eax */ /* 0x36021F98: test eax, eax */
   5199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5200     _cf = 0;
   5201     _flag_k = FK_TEST;
   5202     if (TEST_Z(_flag_a, _flag_b)) goto L_36021FBD; /* 0x36021F9A: je 0x36021fbd */
   5203 L_36021F9C:
   5204     ecx = MEM32(ebp + 0x8); /* 0x36021F9C: mov ecx, dword ptr [ebp + 8] */
   5205     PUSH32(esp, ecx); /* 0x36021F9F: push ecx */
   5206     ecx = eax; /* 0x36021FA0: mov ecx, eax */
   5207     RECOMP_ICALL(0x36071F20u); /* 0x36021FA2: call 0x36071f20 */ /* not lifted */
   5208     RECOMP_FLAGS_IN();
   5209     ecx = eax; /* 0x36021FA7: mov ecx, eax */
   5210     RECOMP_ICALL(0x3606C600u); /* 0x36021FA9: call 0x3606c600 */ /* not lifted */
   5211     RECOMP_FLAGS_IN();
   5212     /* test eax, eax */ /* 0x36021FAE: test eax, eax */
   5213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5214     _cf = 0;
   5215     _flag_k = FK_TEST;
   5216     if (TEST_Z(_flag_a, _flag_b)) goto L_36021FBD; /* 0x36021FB0: je 0x36021fbd */
   5217 L_36021FB2:
   5218     ecx = eax; /* 0x36021FB2: mov ecx, eax */
   5219     RECOMP_ICALL(0x360C56E0u); /* 0x36021FB4: call 0x360c56e0 */ /* not lifted */
   5220     RECOMP_FLAGS_IN();
   5221     ebp = POP32_VAL(esp); /* 0x36021FB9: pop ebp */
   5222     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021FBA: ret 4 */
   5223 L_36021FBD:
   5224     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5225     eax = 0; /* 0x36021FBD: xor eax, eax */
   5226     _cf = 0;
   5227     _flag_k = FK_TEST;
   5228     ebp = POP32_VAL(esp); /* 0x36021FBF: pop ebp */
   5229     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021FC0: ret 4 */
   5230     RECOMP_REGS_OUT();
   5231 }
   5232 
   5233 void sub_36021FD0(void) {
   5234     int _fpu_cmp = 0;
   5235     uint32_t _cf = 0;
   5236     int _df = 1;
   5237     uint32_t _flag_k = FK_NONE;
   5238     uint32_t _flag_a = 0, _flag_b = 0;
   5239     uint32_t _itail_tgt = 0;
   5240     RECOMP_REGS_LOCALS
   5241     RECOMP_ENTER(0x36021FD0u);
   5242 
   5243 L_36021FD0:
   5244     PUSH32(esp, ebp); /* 0x36021FD0: push ebp */
   5245     ebp = esp; /* 0x36021FD1: mov ebp, esp */
   5246     RECOMP_ICALL(0x3601F240u); /* 0x36021FD3: call 0x3601f240 */ /* not lifted */
   5247     RECOMP_FLAGS_IN();
   5248     /* test eax, eax */ /* 0x36021FD8: test eax, eax */
   5249     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5250     _cf = 0;
   5251     _flag_k = FK_TEST;
   5252     if (TEST_Z(_flag_a, _flag_b)) goto L_36021FFF; /* 0x36021FDA: je 0x36021fff */
   5253 L_36021FDC:
   5254     ecx = MEM32(ebp + 0x8); /* 0x36021FDC: mov ecx, dword ptr [ebp + 8] */
   5255     PUSH32(esp, ecx); /* 0x36021FDF: push ecx */
   5256     ecx = eax; /* 0x36021FE0: mov ecx, eax */
   5257     RECOMP_ICALL(0x36071F20u); /* 0x36021FE2: call 0x36071f20 */ /* not lifted */
   5258     RECOMP_FLAGS_IN();
   5259     ecx = eax; /* 0x36021FE7: mov ecx, eax */
   5260     RECOMP_ICALL(0x3606C600u); /* 0x36021FE9: call 0x3606c600 */ /* not lifted */
   5261     RECOMP_FLAGS_IN();
   5262     /* test eax, eax */ /* 0x36021FEE: test eax, eax */
   5263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5264     _cf = 0;
   5265     _flag_k = FK_TEST;
   5266     if (TEST_Z(_flag_a, _flag_b)) goto L_36021FFF; /* 0x36021FF0: je 0x36021fff */
   5267 L_36021FF2:
   5268     eax = MEM32(eax + 0x78); /* 0x36021FF2: mov eax, dword ptr [eax + 0x78] */
   5269     if (8u) _cf = (((eax) >> 7) & 1u); /* 0x36021FF5: shr eax, 8 */
   5270     if (8u) { _flag_a = recomp_flags_pack((eax >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5271     eax = eax >> 8u; /* 0x36021FF5: shr eax, 8 */
   5272     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5273     eax = eax & 1; /* 0x36021FF8: and eax, 1 */
   5274     _cf = 0;
   5275     _flag_k = FK_TEST;
   5276     ebp = POP32_VAL(esp); /* 0x36021FFB: pop ebp */
   5277     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36021FFC: ret 4 */
   5278 L_36021FFF:
   5279     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   5280     SET_LO8(eax, 0); /* 0x36021FFF: xor al, al */
   5281     _cf = 0;
   5282     _flag_k = FK_NARROW(FK_TEST, 24);
   5283     ebp = POP32_VAL(esp); /* 0x36022001: pop ebp */
   5284     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022002: ret 4 */
   5285     RECOMP_REGS_OUT();
   5286 }
   5287 
   5288 void sub_36022010(void) {
   5289     int _fpu_cmp = 0;
   5290     uint32_t _cf = 0;
   5291     int _df = 1;
   5292     uint32_t _flag_k = FK_NONE;
   5293     uint32_t _flag_a = 0, _flag_b = 0;
   5294     uint32_t _itail_tgt = 0;
   5295     RECOMP_REGS_LOCALS
   5296     RECOMP_ENTER(0x36022010u);
   5297 
   5298 L_36022010:
   5299     PUSH32(esp, ebp); /* 0x36022010: push ebp */
   5300     ebp = esp; /* 0x36022011: mov ebp, esp */
   5301     PUSH32(esp, ebx); /* 0x36022013: push ebx */
   5302     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   5303     SET_LO8(ebx, 0); /* 0x36022014: xor bl, bl */
   5304     _cf = 0;
   5305     _flag_k = FK_NARROW(FK_TEST, 24);
   5306     RECOMP_ICALL(0x3601F240u); /* 0x36022016: call 0x3601f240 */ /* not lifted */
   5307     RECOMP_FLAGS_IN();
   5308     /* test eax, eax */ /* 0x3602201B: test eax, eax */
   5309     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5310     _cf = 0;
   5311     _flag_k = FK_TEST;
   5312     if (TEST_Z(_flag_a, _flag_b)) goto L_36022049; /* 0x3602201D: je 0x36022049 */
   5313 L_3602201F:
   5314     ecx = MEM32(ebp + 0x8); /* 0x3602201F: mov ecx, dword ptr [ebp + 8] */
   5315     PUSH32(esp, ecx); /* 0x36022022: push ecx */
   5316     ecx = eax; /* 0x36022023: mov ecx, eax */
   5317     RECOMP_ICALL(0x36071F20u); /* 0x36022025: call 0x36071f20 */ /* not lifted */
   5318     RECOMP_FLAGS_IN();
   5319     ecx = eax; /* 0x3602202A: mov ecx, eax */
   5320     RECOMP_ICALL(0x3606C600u); /* 0x3602202C: call 0x3606c600 */ /* not lifted */
   5321     RECOMP_FLAGS_IN();
   5322     /* test eax, eax */ /* 0x36022031: test eax, eax */
   5323     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5324     _cf = 0;
   5325     _flag_k = FK_TEST;
   5326     if (TEST_Z(_flag_a, _flag_b)) goto L_36022042; /* 0x36022033: je 0x36022042 */
   5327 L_36022035:
   5328     eax = MEM32(eax + 0x78); /* 0x36022035: mov eax, dword ptr [eax + 0x78] */
   5329     if (9u) _cf = (((eax) >> 8) & 1u); /* 0x36022038: shr eax, 9 */
   5330     if (9u) { _flag_a = recomp_flags_pack((eax >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5331     eax = eax >> 9u; /* 0x36022038: shr eax, 9 */
   5332     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5333     SET_LO8(eax, LO8(eax) & 1); /* 0x3602203B: and al, 1 */
   5334     _cf = 0;
   5335     _flag_k = FK_NARROW(FK_TEST, 24);
   5336     ebx = POP32_VAL(esp); /* 0x3602203D: pop ebx */
   5337     ebp = POP32_VAL(esp); /* 0x3602203E: pop ebp */
   5338     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602203F: ret 4 */
   5339 L_36022042:
   5340     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   5341     SET_LO8(eax, 0); /* 0x36022042: xor al, al */
   5342     _cf = 0;
   5343     _flag_k = FK_NARROW(FK_TEST, 24);
   5344     ebx = POP32_VAL(esp); /* 0x36022044: pop ebx */
   5345     ebp = POP32_VAL(esp); /* 0x36022045: pop ebp */
   5346     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022046: ret 4 */
   5347 L_36022049:
   5348     SET_LO8(eax, LO8(ebx)); /* 0x36022049: mov al, bl */
   5349     ebx = POP32_VAL(esp); /* 0x3602204B: pop ebx */
   5350     ebp = POP32_VAL(esp); /* 0x3602204C: pop ebp */
   5351     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602204D: ret 4 */
   5352     RECOMP_REGS_OUT();
   5353 }
   5354 
   5355 void sub_36022050(void) {
   5356     int _fpu_cmp = 0;
   5357     uint32_t _cf = 0;
   5358     int _df = 1;
   5359     uint32_t _flag_k = FK_NONE;
   5360     uint32_t _flag_a = 0, _flag_b = 0;
   5361     uint32_t _itail_tgt = 0;
   5362     RECOMP_REGS_LOCALS
   5363     RECOMP_ENTER(0x36022050u);
   5364 
   5365 L_36022050:
   5366     PUSH32(esp, ebp); /* 0x36022050: push ebp */
   5367     ebp = esp; /* 0x36022051: mov ebp, esp */
   5368     eax = MEM32(ecx + 0xF0); /* 0x36022053: mov eax, dword ptr [ecx + 0xf0] */
   5369     ecx = MEM32(ebp + 0x8); /* 0x36022059: mov ecx, dword ptr [ebp + 8] */
   5370     MEM32(eax + 0x48) = ecx; /* 0x3602205C: mov dword ptr [eax + 0x48], ecx */
   5371     ebp = POP32_VAL(esp); /* 0x3602205F: pop ebp */
   5372     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022060: ret 4 */
   5373     RECOMP_REGS_OUT();
   5374 }
   5375 
   5376 void sub_36022070(void) {
   5377     int _fpu_cmp = 0;
   5378     uint32_t _cf = 0;
   5379     int _df = 1;
   5380     uint32_t _flag_k = FK_NONE;
   5381     uint32_t _flag_a = 0, _flag_b = 0;
   5382     uint32_t _itail_tgt = 0;
   5383     RECOMP_REGS_LOCALS
   5384     RECOMP_ENTER(0x36022070u);
   5385 
   5386 L_36022070:
   5387     PUSH32(esp, ebp); /* 0x36022070: push ebp */
   5388     ebp = esp; /* 0x36022071: mov ebp, esp */
   5389     eax = MEM32(ebp + 0x8); /* 0x36022073: mov eax, dword ptr [ebp + 8] */
   5390     ecx = MEM32(ecx + 0xF0); /* 0x36022076: mov ecx, dword ptr [ecx + 0xf0] */
   5391     PUSH32(esp, eax); /* 0x3602207C: push eax */
   5392     RECOMP_ICALL(0x3612BFE0u); /* 0x3602207D: call 0x3612bfe0 */ /* not lifted */
   5393     RECOMP_FLAGS_IN();
   5394     ebp = POP32_VAL(esp); /* 0x36022082: pop ebp */
   5395     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022083: ret 4 */
   5396     RECOMP_REGS_OUT();
   5397 }
   5398 
   5399 void sub_36022090(void) {
   5400     int _fpu_cmp = 0;
   5401     uint32_t _cf = 0;
   5402     int _df = 1;
   5403     uint32_t _flag_k = FK_NONE;
   5404     uint32_t _flag_a = 0, _flag_b = 0;
   5405     uint32_t _itail_tgt = 0;
   5406     RECOMP_REGS_LOCALS
   5407     RECOMP_ENTER(0x36022090u);
   5408 
   5409 L_36022090:
   5410     PUSH32(esp, ebp); /* 0x36022090: push ebp */
   5411     ebp = esp; /* 0x36022091: mov ebp, esp */
   5412     eax = MEM32(ecx + 0xF0); /* 0x36022093: mov eax, dword ptr [ecx + 0xf0] */
   5413     ecx = MEM32(ebp + 0x8); /* 0x36022099: mov ecx, dword ptr [ebp + 8] */
   5414     MEM32(eax + 0x5C) = ecx; /* 0x3602209C: mov dword ptr [eax + 0x5c], ecx */
   5415     ebp = POP32_VAL(esp); /* 0x3602209F: pop ebp */
   5416     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360220A0: ret 4 */
   5417     RECOMP_REGS_OUT();
   5418 }
   5419 
   5420 void sub_360220B0(void) {
   5421     int _fpu_cmp = 0;
   5422     uint32_t _cf = 0;
   5423     int _df = 1;
   5424     uint32_t _flag_k = FK_NONE;
   5425     uint32_t _flag_a = 0, _flag_b = 0;
   5426     uint32_t _itail_tgt = 0;
   5427     RECOMP_REGS_LOCALS
   5428     RECOMP_ENTER(0x360220B0u);
   5429 
   5430 L_360220B0:
   5431     PUSH32(esp, ebp); /* 0x360220B0: push ebp */
   5432     ebp = esp; /* 0x360220B1: mov ebp, esp */
   5433     PUSH32(esp, 0xFFFFFFFFu); /* 0x360220B3: push -1 */
   5434     PUSH32(esp, 0x36163169u); /* 0x360220B5: push 0x36163169 */
   5435     eax = MEM32(FS_BASE + (0)); /* 0x360220BA: mov eax, dword ptr fs:[0] */
   5436     PUSH32(esp, eax); /* 0x360220C0: push eax */
   5437     MEM32(FS_BASE + (0)) = esp; /* 0x360220C1: mov dword ptr fs:[0], esp */
   5438     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5440     esp = esp - 0x14u; /* 0x360220C8: sub esp, 0x14 */
   5441     _flag_k = FK_CMP;
   5442     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360220CB: mov al, byte ptr [ebp + 0xb] */
   5443     PUSH32(esp, ebx); /* 0x360220CE: push ebx */
   5444     PUSH32(esp, esi); /* 0x360220CF: push esi */
   5445     esi = MEM32(ebp + 0x8); /* 0x360220D0: mov esi, dword ptr [ebp + 8] */
   5446     MEM32(ebp + (-0x10)) = ecx; /* 0x360220D3: mov dword ptr [ebp - 0x10], ecx */
   5447     PUSH32(esp, edi); /* 0x360220D6: push edi */
   5448     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5449     ecx = ecx | 0xFFFFFFFFu; /* 0x360220D7: or ecx, 0xffffffff */
   5450     _cf = 0;
   5451     _flag_k = FK_TEST;
   5452     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x360220DA: mov byte ptr [ebp - 0x20], al */
   5453     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5454     eax = 0; /* 0x360220DD: xor eax, eax */
   5455     _cf = 0;
   5456     _flag_k = FK_TEST;
   5457     edi = esi; /* 0x360220DF: mov edi, esi */
   5458     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; } /* 0x360220E1: repne scasb al, byte ptr es:[edi] */
   5459     ecx = ~ecx; /* 0x360220E3: not ecx */
   5460     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5461     ecx = ecx - 1; /* 0x360220E5: dec ecx */
   5462     _flag_k = FK_DEC;
   5463     ebx = ecx; /* 0x360220E6: mov ebx, ecx */
   5464     PUSH32(esp, 1); /* 0x360220E8: push 1 */
   5465     PUSH32(esp, ebx); /* 0x360220EA: push ebx */
   5466     ecx = ebp + (-0x20); /* 0x360220EB: lea ecx, [ebp - 0x20] */
   5467     MEM32(ebp + (-0x1C)) = eax; /* 0x360220EE: mov dword ptr [ebp - 0x1c], eax */
   5468     MEM32(ebp + (-0x18)) = eax; /* 0x360220F1: mov dword ptr [ebp - 0x18], eax */
   5469     MEM32(ebp + (-0x14)) = eax; /* 0x360220F4: mov dword ptr [ebp - 0x14], eax */
   5470     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360220F7: call dword ptr [0x3616f00c] */
   5471     RECOMP_FLAGS_IN();
   5472     /* test LO8(eax), LO8(eax) */ /* 0x360220FD: test al, al */
   5473     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5474     _cf = 0;
   5475     _flag_k = FK_NARROW(FK_TEST, 24);
   5476     if (TEST_Z(_flag_a, _flag_b)) goto L_3602211E; /* 0x360220FF: je 0x3602211e */
   5477 L_36022101:
   5478     edi = MEM32(ebp + (-0x1C)); /* 0x36022101: mov edi, dword ptr [ebp - 0x1c] */
   5479     ecx = ebx; /* 0x36022104: mov ecx, ebx */
   5480     edx = ecx; /* 0x36022106: mov edx, ecx */
   5481     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36022108: shr ecx, 2 */
   5482     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5483     ecx = ecx >> 2u; /* 0x36022108: shr ecx, 2 */
   5484     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3602210B: 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; }
   5485     ecx = edx; /* 0x3602210D: mov ecx, edx */
   5486     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5487     ecx = ecx & 3; /* 0x3602210F: and ecx, 3 */
   5488     _cf = 0;
   5489     _flag_k = FK_TEST;
   5490     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36022112: 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; }
   5491     eax = MEM32(ebp + (-0x1C)); /* 0x36022114: mov eax, dword ptr [ebp - 0x1c] */
   5492     MEM32(ebp + (-0x18)) = ebx; /* 0x36022117: mov dword ptr [ebp - 0x18], ebx */
   5493     MEM8(eax + ebx) = (uint8_t)(0); /* 0x3602211A: mov byte ptr [eax + ebx], 0 */
   5494 L_3602211E:
   5495     edx = MEM32(ebp + (-0x10)); /* 0x3602211E: mov edx, dword ptr [ebp - 0x10] */
   5496     ecx = ebp + (-0x20); /* 0x36022121: lea ecx, [ebp - 0x20] */
   5497     PUSH32(esp, ecx); /* 0x36022124: push ecx */
   5498     ecx = MEM32(edx + 0xF0); /* 0x36022125: mov ecx, dword ptr [edx + 0xf0] */
   5499     MEM32(ebp + (-0x4)) = 0; /* 0x3602212B: mov dword ptr [ebp - 4], 0 */
   5500     RECOMP_ICALL(0x360C5590u); /* 0x36022132: call 0x360c5590 */ /* not lifted */
   5501     RECOMP_FLAGS_IN();
   5502     eax = MEM32(ebp + (-0x1C)); /* 0x36022137: mov eax, dword ptr [ebp - 0x1c] */
   5503     /* test eax, eax */ /* 0x3602213A: test eax, eax */
   5504     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5505     _cf = 0;
   5506     _flag_k = FK_TEST;
   5507     edi = POP32_VAL(esp); /* 0x3602213C: pop edi */
   5508     esi = POP32_VAL(esp); /* 0x3602213D: pop esi */
   5509     ebx = POP32_VAL(esp); /* 0x3602213E: pop ebx */
   5510     if (TEST_Z(_flag_a, _flag_b)) goto L_3602216B; /* 0x3602213F: je 0x3602216b */
   5511 L_36022141:
   5512     ecx = eax + (-0x1); /* 0x36022141: lea ecx, [eax - 1] */
   5513     SET_LO8(eax, MEM8(ecx)); /* 0x36022144: mov al, byte ptr [ecx] */
   5514     /* test LO8(eax), LO8(eax) */ /* 0x36022146: test al, al */
   5515     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5516     _cf = 0;
   5517     _flag_k = FK_NARROW(FK_TEST, 24);
   5518     if (TEST_Z(_flag_a, _flag_b)) goto L_36022162; /* 0x36022148: je 0x36022162 */
   5519 L_3602214A:
   5520     /* cmp LO8(eax), 0xFFu */ /* 0x3602214A: cmp al, 0xff */
   5521     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   5522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5523     _flag_k = FK_NARROW(FK_CMP, 24);
   5524     if (CMP_EQ(_flag_a, _flag_b)) goto L_36022162; /* 0x3602214C: je 0x36022162 */
   5525 L_3602214E:
   5526     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5527     SET_LO8(eax, LO8(eax) - 1); /* 0x3602214E: dec al */
   5528     _flag_k = FK_NARROW(FK_DEC, 24);
   5529     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36022150: mov byte ptr [ecx], al */
   5530     ecx = MEM32(ebp + (-0xC)); /* 0x36022152: mov ecx, dword ptr [ebp - 0xc] */
   5531     MEM32(FS_BASE + (0)) = ecx; /* 0x36022155: mov dword ptr fs:[0], ecx */
   5532     esp = ebp; /* 0x3602215C: mov esp, ebp */
   5533     ebp = POP32_VAL(esp); /* 0x3602215E: pop ebp */
   5534     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602215F: ret 4 */
   5535 L_36022162:
   5536     PUSH32(esp, ecx); /* 0x36022162: push ecx */
   5537     RECOMP_ICALL(0x3615FCC4u); /* 0x36022163: call 0x3615fcc4 */ /* not lifted */
   5538     RECOMP_FLAGS_IN();
   5539     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5540     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5541     esp = esp + 4; /* 0x36022168: add esp, 4 */
   5542     _flag_k = FK_ADD;
   5543 L_3602216B:
   5544     ecx = MEM32(ebp + (-0xC)); /* 0x3602216B: mov ecx, dword ptr [ebp - 0xc] */
   5545     MEM32(FS_BASE + (0)) = ecx; /* 0x3602216E: mov dword ptr fs:[0], ecx */
   5546     esp = ebp; /* 0x36022175: mov esp, ebp */
   5547     ebp = POP32_VAL(esp); /* 0x36022177: pop ebp */
   5548     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022178: ret 4 */
   5549     RECOMP_REGS_OUT();
   5550 }
   5551 
   5552 void sub_36022180(void) {
   5553     int _fpu_cmp = 0;
   5554     uint32_t _cf = 0;
   5555     int _df = 1;
   5556     uint32_t _flag_k = FK_NONE;
   5557     uint32_t _flag_a = 0, _flag_b = 0;
   5558     uint32_t _itail_tgt = 0;
   5559     RECOMP_REGS_LOCALS
   5560     RECOMP_ENTER(0x36022180u);
   5561 
   5562 L_36022180:
   5563     PUSH32(esp, ebp); /* 0x36022180: push ebp */
   5564     ebp = esp; /* 0x36022181: mov ebp, esp */
   5565     eax = MEM32(FS_BASE + (0)); /* 0x36022183: mov eax, dword ptr fs:[0] */
   5566     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022189: push -1 */
   5567     PUSH32(esp, 0x3616318Bu); /* 0x3602218B: push 0x3616318b */
   5568     PUSH32(esp, eax); /* 0x36022190: push eax */
   5569     MEM32(FS_BASE + (0)) = esp; /* 0x36022191: mov dword ptr fs:[0], esp */
   5570     PUSH32(esp, ebx); /* 0x36022198: push ebx */
   5571     PUSH32(esp, esi); /* 0x36022199: push esi */
   5572     PUSH32(esp, edi); /* 0x3602219A: push edi */
   5573     RECOMP_ICALL(0x3601F240u); /* 0x3602219B: call 0x3601f240 */ /* not lifted */
   5574     RECOMP_FLAGS_IN();
   5575     esi = eax; /* 0x360221A0: mov esi, eax */
   5576     /* test esi, esi */ /* 0x360221A2: test esi, esi */
   5577     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5578     _cf = 0;
   5579     _flag_k = FK_TEST;
   5580     if (TEST_Z(_flag_a, _flag_b)) goto L_36022207; /* 0x360221A4: je 0x36022207 */
   5581 L_360221A6:
   5582     edi = MEM32(ebp + 0x8); /* 0x360221A6: mov edi, dword ptr [ebp + 8] */
   5583     ebx = MEM32(ebp + 0xC); /* 0x360221A9: mov ebx, dword ptr [ebp + 0xc] */
   5584     eax = MEM32(edi + 0x4); /* 0x360221AC: mov eax, dword ptr [edi + 4] */
   5585     ecx = MEM32(esi + 0x158); /* 0x360221AF: mov ecx, dword ptr [esi + 0x158] */
   5586     PUSH32(esp, 0); /* 0x360221B5: push 0 */
   5587     PUSH32(esp, 0); /* 0x360221B7: push 0 */
   5588     PUSH32(esp, 1); /* 0x360221B9: push 1 */
   5589     PUSH32(esp, ebx); /* 0x360221BB: push ebx */
   5590     PUSH32(esp, eax); /* 0x360221BC: push eax */
   5591     RECOMP_ICALL(0x360646A0u); /* 0x360221BD: call 0x360646a0 */ /* not lifted */
   5592     RECOMP_FLAGS_IN();
   5593     /* test LO8(eax), LO8(eax) */ /* 0x360221C2: test al, al */
   5594     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5595     _cf = 0;
   5596     _flag_k = FK_NARROW(FK_TEST, 24);
   5597     if (TEST_Z(_flag_a, _flag_b)) goto L_36022207; /* 0x360221C4: je 0x36022207 */
   5598 L_360221C6:
   5599     PUSH32(esp, 0x34u); /* 0x360221C6: push 0x34 */
   5600     RECOMP_ICALL(0x3615FD6Au); /* 0x360221C8: call 0x3615fd6a */ /* not lifted */
   5601     RECOMP_FLAGS_IN();
   5602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5604     esp = esp + 4; /* 0x360221CD: add esp, 4 */
   5605     _flag_k = FK_ADD;
   5606     MEM32(ebp + 0xC) = eax; /* 0x360221D0: mov dword ptr [ebp + 0xc], eax */
   5607     /* test eax, eax */ /* 0x360221D3: test eax, eax */
   5608     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5609     _cf = 0;
   5610     _flag_k = FK_TEST;
   5611     MEM32(ebp + (-0x4)) = 0; /* 0x360221D5: mov dword ptr [ebp - 4], 0 */
   5612     if (TEST_Z(_flag_a, _flag_b)) goto L_360221EF; /* 0x360221DC: je 0x360221ef */
   5613 L_360221DE:
   5614     PUSH32(esp, edi); /* 0x360221DE: push edi */
   5615     PUSH32(esp, 0x13u); /* 0x360221DF: push 0x13 */
   5616     PUSH32(esp, ebx); /* 0x360221E1: push ebx */
   5617     ecx = esi + 0x4; /* 0x360221E2: lea ecx, [esi + 4] */
   5618     PUSH32(esp, ecx); /* 0x360221E5: push ecx */
   5619     ecx = eax; /* 0x360221E6: mov ecx, eax */
   5620     RECOMP_ICALL(0x3607D4B0u); /* 0x360221E8: call 0x3607d4b0 */ /* not lifted */
   5621     RECOMP_FLAGS_IN();
   5622     goto L_360221F1; /* 0x360221ED: jmp 0x360221f1 */
   5623 L_360221EF:
   5624     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5625     eax = 0; /* 0x360221EF: xor eax, eax */
   5626     _cf = 0;
   5627     _flag_k = FK_TEST;
   5628 L_360221F1:
   5629     edx = ebp + 0x8; /* 0x360221F1: lea edx, [ebp + 8] */
   5630     PUSH32(esp, edx); /* 0x360221F4: push edx */
   5631     ecx = esi; /* 0x360221F5: mov ecx, esi */
   5632     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360221F7: mov dword ptr [ebp - 4], 0xffffffff */
   5633     MEM32(ebp + 0x8) = eax; /* 0x360221FE: mov dword ptr [ebp + 8], eax */
   5634     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36022201: call dword ptr [0x3617004c] */
   5635     RECOMP_FLAGS_IN();
   5636 L_36022207:
   5637     ecx = MEM32(ebp + (-0xC)); /* 0x36022207: mov ecx, dword ptr [ebp - 0xc] */
   5638     edi = POP32_VAL(esp); /* 0x3602220A: pop edi */
   5639     esi = POP32_VAL(esp); /* 0x3602220B: pop esi */
   5640     MEM32(FS_BASE + (0)) = ecx; /* 0x3602220C: mov dword ptr fs:[0], ecx */
   5641     ebx = POP32_VAL(esp); /* 0x36022213: pop ebx */
   5642     esp = ebp; /* 0x36022214: mov esp, ebp */
   5643     ebp = POP32_VAL(esp); /* 0x36022216: pop ebp */
   5644     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022217: ret 8 */
   5645     RECOMP_REGS_OUT();
   5646 }
   5647 
   5648 void sub_36022220(void) {
   5649     int _fpu_cmp = 0;
   5650     uint32_t _cf = 0;
   5651     int _df = 1;
   5652     uint32_t _flag_k = FK_NONE;
   5653     uint32_t _flag_a = 0, _flag_b = 0;
   5654     uint32_t _itail_tgt = 0;
   5655     RECOMP_REGS_LOCALS
   5656     RECOMP_ENTER(0x36022220u);
   5657 
   5658 L_36022220:
   5659     RECOMP_ICALL(0x3601F240u); /* 0x36022220: call 0x3601f240 */ /* not lifted */
   5660     RECOMP_FLAGS_IN();
   5661     /* test eax, eax */ /* 0x36022225: test eax, eax */
   5662     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5663     _cf = 0;
   5664     _flag_k = FK_TEST;
   5665     if (TEST_Z(_flag_a, _flag_b)) goto L_36022233; /* 0x36022227: je 0x36022233 */
   5666 L_36022229:
   5667     eax = MEM32(eax + 0x158); /* 0x36022229: mov eax, dword ptr [eax + 0x158] */
   5668     eax = MEM32(eax + 0x10); /* 0x3602222F: mov eax, dword ptr [eax + 0x10] */
   5669     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36022232: ret  */
   5670 L_36022233:
   5671     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5672     eax = 0; /* 0x36022233: xor eax, eax */
   5673     _cf = 0;
   5674     _flag_k = FK_TEST;
   5675     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36022235: ret  */
   5676     RECOMP_REGS_OUT();
   5677 }
   5678 
   5679 void sub_36022240(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(0x36022240u);
   5688 
   5689 L_36022240:
   5690     PUSH32(esp, ebp); /* 0x36022240: push ebp */
   5691     ebp = esp; /* 0x36022241: mov ebp, esp */
   5692     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022243: push -1 */
   5693     PUSH32(esp, 0x361631ABu); /* 0x36022245: push 0x361631ab */
   5694     eax = MEM32(FS_BASE + (0)); /* 0x3602224A: mov eax, dword ptr fs:[0] */
   5695     PUSH32(esp, eax); /* 0x36022250: push eax */
   5696     MEM32(FS_BASE + (0)) = esp; /* 0x36022251: mov dword ptr fs:[0], esp */
   5697     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5698     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5699     esp = esp - 8; /* 0x36022258: sub esp, 8 */
   5700     _flag_k = FK_CMP;
   5701     PUSH32(esp, esi); /* 0x3602225B: push esi */
   5702     PUSH32(esp, 0x34u); /* 0x3602225C: push 0x34 */
   5703     esi = ecx; /* 0x3602225E: mov esi, ecx */
   5704     RECOMP_ICALL(0x3615FD6Au); /* 0x36022260: call 0x3615fd6a */ /* not lifted */
   5705     RECOMP_FLAGS_IN();
   5706     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5707     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5708     esp = esp + 4; /* 0x36022265: add esp, 4 */
   5709     _flag_k = FK_ADD;
   5710     MEM32(ebp + (-0x14)) = eax; /* 0x36022268: mov dword ptr [ebp - 0x14], eax */
   5711     /* test eax, eax */ /* 0x3602226B: test eax, eax */
   5712     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5713     _cf = 0;
   5714     _flag_k = FK_TEST;
   5715     MEM32(ebp + (-0x4)) = 0; /* 0x3602226D: mov dword ptr [ebp - 4], 0 */
   5716     if (TEST_Z(_flag_a, _flag_b)) goto L_36022294; /* 0x36022274: je 0x36022294 */
   5717 L_36022276:
   5718     ecx = MEM32(ebp + 0x8); /* 0x36022276: mov ecx, dword ptr [ebp + 8] */
   5719     edx = MEM32(esi + 0x88); /* 0x36022279: mov edx, dword ptr [esi + 0x88] */
   5720     PUSH32(esp, 0x36305AE0u); /* 0x3602227F: push 0x36305ae0 */
   5721     PUSH32(esp, 0x1Du); /* 0x36022284: push 0x1d */
   5722     PUSH32(esp, ecx); /* 0x36022286: push ecx */
   5723     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   5724     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5725     edx = edx + 4; /* 0x36022287: add edx, 4 */
   5726     _flag_k = FK_ADD;
   5727     PUSH32(esp, edx); /* 0x3602228A: push edx */
   5728     ecx = eax; /* 0x3602228B: mov ecx, eax */
   5729     RECOMP_ICALL(0x3607D4B0u); /* 0x3602228D: call 0x3607d4b0 */ /* not lifted */
   5730     RECOMP_FLAGS_IN();
   5731     goto L_36022296; /* 0x36022292: jmp 0x36022296 */
   5732 L_36022294:
   5733     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5734     eax = 0; /* 0x36022294: xor eax, eax */
   5735     _cf = 0;
   5736     _flag_k = FK_TEST;
   5737 L_36022296:
   5738     ecx = MEM32(esi + 0x88); /* 0x36022296: mov ecx, dword ptr [esi + 0x88] */
   5739     MEM32(ebp + (-0x10)) = eax; /* 0x3602229C: mov dword ptr [ebp - 0x10], eax */
   5740     eax = ebp + (-0x10); /* 0x3602229F: lea eax, [ebp - 0x10] */
   5741     PUSH32(esp, eax); /* 0x360222A2: push eax */
   5742     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360222A3: mov dword ptr [ebp - 4], 0xffffffff */
   5743     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360222AA: call dword ptr [0x3617004c] */
   5744     RECOMP_FLAGS_IN();
   5745     ecx = MEM32(ebp + (-0xC)); /* 0x360222B0: mov ecx, dword ptr [ebp - 0xc] */
   5746     esi = POP32_VAL(esp); /* 0x360222B3: pop esi */
   5747     MEM32(FS_BASE + (0)) = ecx; /* 0x360222B4: mov dword ptr fs:[0], ecx */
   5748     esp = ebp; /* 0x360222BB: mov esp, ebp */
   5749     ebp = POP32_VAL(esp); /* 0x360222BD: pop ebp */
   5750     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360222BE: ret 4 */
   5751     RECOMP_REGS_OUT();
   5752 }
   5753 
   5754 void sub_360222D0(void) {
   5755     int _fpu_cmp = 0;
   5756     uint32_t _cf = 0;
   5757     int _df = 1;
   5758     uint32_t _flag_k = FK_NONE;
   5759     uint32_t _flag_a = 0, _flag_b = 0;
   5760     uint32_t _itail_tgt = 0;
   5761     RECOMP_REGS_LOCALS
   5762     RECOMP_ENTER(0x360222D0u);
   5763 
   5764 L_360222D0:
   5765     PUSH32(esp, ebp); /* 0x360222D0: push ebp */
   5766     ebp = esp; /* 0x360222D1: mov ebp, esp */
   5767     PUSH32(esp, ecx); /* 0x360222D3: push ecx */
   5768     PUSH32(esp, ebx); /* 0x360222D4: push ebx */
   5769     PUSH32(esp, esi); /* 0x360222D5: push esi */
   5770     esi = MEM32(ebp + 0x8); /* 0x360222D6: mov esi, dword ptr [ebp + 8] */
   5771     PUSH32(esp, edi); /* 0x360222D9: push edi */
   5772     PUSH32(esp, 0); /* 0x360222DA: push 0 */
   5773     PUSH32(esp, 0x361B2CD8u); /* 0x360222DC: push 0x361b2cd8 */
   5774     PUSH32(esp, 0x361B2CC0u); /* 0x360222E1: push 0x361b2cc0 */
   5775     PUSH32(esp, 0); /* 0x360222E6: push 0 */
   5776     PUSH32(esp, esi); /* 0x360222E8: push esi */
   5777     edi = ecx; /* 0x360222E9: mov edi, ecx */
   5778     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360222EB: call dword ptr [0x3616ff70] */
   5779     RECOMP_FLAGS_IN();
   5780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5782     esp = esp + 4; /* 0x360222F1: add esp, 4 */
   5783     _flag_k = FK_ADD;
   5784     PUSH32(esp, eax); /* 0x360222F4: push eax */
   5785     RECOMP_ICALL(0x3615FD86u); /* 0x360222F5: call 0x3615fd86 */ /* not lifted */
   5786     RECOMP_FLAGS_IN();
   5787     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5789     esp = esp + 0x14u; /* 0x360222FA: add esp, 0x14 */
   5790     _flag_k = FK_ADD;
   5791     /* test eax, eax */ /* 0x360222FD: test eax, eax */
   5792     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5793     _cf = 0;
   5794     _flag_k = FK_TEST;
   5795     if (TEST_NZ(_flag_a, _flag_b)) goto L_3602230A; /* 0x360222FF: jne 0x3602230a */
   5796 L_36022301:
   5797     edi = POP32_VAL(esp); /* 0x36022301: pop edi */
   5798     esi = POP32_VAL(esp); /* 0x36022302: pop esi */
   5799     ebx = POP32_VAL(esp); /* 0x36022303: pop ebx */
   5800     esp = ebp; /* 0x36022304: mov esp, ebp */
   5801     ebp = POP32_VAL(esp); /* 0x36022306: pop ebp */
   5802     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022307: ret 8 */
   5803 L_3602230A:
   5804     PUSH32(esp, esi); /* 0x3602230A: push esi */
   5805     RECOMP_ICALL(0x3606DA90u); /* 0x3602230B: call 0x3606da90 */ /* not lifted */
   5806     RECOMP_FLAGS_IN();
   5807     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5808     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5809     esp = esp + 4; /* 0x36022310: add esp, 4 */
   5810     _flag_k = FK_ADD;
   5811     PUSH32(esp, 2); /* 0x36022313: push 2 */
   5812     PUSH32(esp, 0x36u); /* 0x36022315: push 0x36 */
   5813     PUSH32(esp, esi); /* 0x36022317: push esi */
   5814     ecx = edi; /* 0x36022318: mov ecx, edi */
   5815     RECOMP_ICALL(0x3602BD80u); /* 0x3602231A: call 0x3602bd80 */ /* not lifted */
   5816     RECOMP_FLAGS_IN();
   5817     PUSH32(esp, 2); /* 0x3602231F: push 2 */
   5818     PUSH32(esp, 0x113u); /* 0x36022321: push 0x113 */
   5819     ecx = edi; /* 0x36022326: mov ecx, edi */
   5820     ebx = eax; /* 0x36022328: mov ebx, eax */
   5821     RECOMP_ICALL(0x3602B630u); /* 0x3602232A: call 0x3602b630 */ /* not lifted */
   5822     RECOMP_FLAGS_IN();
   5823     esi = eax; /* 0x3602232F: mov esi, eax */
   5824     /* cmp esi, 0x499602D2u */ /* 0x36022331: cmp esi, 0x499602d2 */
   5825     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x499602D2u);
   5826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5827     _flag_k = FK_CMP;
   5828     MEM32(ebp + (-0x4)) = esi; /* 0x36022337: mov dword ptr [ebp - 4], esi */
   5829     if (CMP_NE(_flag_a, _flag_b)) goto L_36022353; /* 0x3602233A: jne 0x36022353 */
   5830 L_3602233C:
   5831     eax = MEM32(ebp + 0xC); /* 0x3602233C: mov eax, dword ptr [ebp + 0xc] */
   5832     edi = POP32_VAL(esp); /* 0x3602233F: pop edi */
   5833     esi = POP32_VAL(esp); /* 0x36022340: pop esi */
   5834     MEM32(eax) = 0xBF800000u; /* 0x36022341: mov dword ptr [eax], 0xbf800000 */
   5835     eax = 3; /* 0x36022347: mov eax, 3 */
   5836     ebx = POP32_VAL(esp); /* 0x3602234C: pop ebx */
   5837     esp = ebp; /* 0x3602234D: mov esp, ebp */
   5838     ebp = POP32_VAL(esp); /* 0x3602234F: pop ebp */
   5839     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022350: ret 8 */
   5840 L_36022353:
   5841     PUSH32(esp, 2); /* 0x36022353: push 2 */
   5842     PUSH32(esp, 0x36u); /* 0x36022355: push 0x36 */
   5843     ecx = edi; /* 0x36022357: mov ecx, edi */
   5844     RECOMP_ICALL(0x3602B630u); /* 0x36022359: call 0x3602b630 */ /* not lifted */
   5845     RECOMP_FLAGS_IN();
   5846     ecx = eax; /* 0x3602235E: mov ecx, eax */
   5847     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   5848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5849     ecx = ecx - esi; /* 0x36022360: sub ecx, esi */
   5850     _flag_k = FK_CMP;
   5851     /* cmp ebx, ecx */ /* 0x36022362: cmp ebx, ecx */
   5852     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   5853     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5854     _flag_k = FK_CMP;
   5855     if (CMP_GE(_flag_a, _flag_b)) goto L_3602237D; /* 0x36022364: jge 0x3602237d */
   5856 L_36022366:
   5857     edx = MEM32(ebp + 0xC); /* 0x36022366: mov edx, dword ptr [ebp + 0xc] */
   5858     edi = POP32_VAL(esp); /* 0x36022369: pop edi */
   5859     esi = POP32_VAL(esp); /* 0x3602236A: pop esi */
   5860     MEM32(edx) = 0xBF800000u; /* 0x3602236B: mov dword ptr [edx], 0xbf800000 */
   5861     eax = 3; /* 0x36022371: mov eax, 3 */
   5862     ebx = POP32_VAL(esp); /* 0x36022376: pop ebx */
   5863     esp = ebp; /* 0x36022377: mov esp, ebp */
   5864     ebp = POP32_VAL(esp); /* 0x36022379: pop ebp */
   5865     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602237A: ret 8 */
   5866 L_3602237D:
   5867     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5869     esi = esi - eax; /* 0x3602237D: sub esi, eax */
   5870     _flag_k = FK_CMP;
   5871     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5873     esi = esi + ebx; /* 0x3602237F: add esi, ebx */
   5874     _flag_k = FK_ADD;
   5875     MEM32(ebp + 0x8) = esi; /* 0x36022381: mov dword ptr [ebp + 8], esi */
   5876     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36022384: fild dword ptr [ebp + 8] */
   5877     eax = MEM32(ebp + 0xC); /* 0x36022387: mov eax, dword ptr [ebp + 0xc] */
   5878     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x3602238A: fild dword ptr [ebp - 4] */
   5879     edi = POP32_VAL(esp); /* 0x3602238D: pop edi */
   5880     esi = POP32_VAL(esp); /* 0x3602238E: pop esi */
   5881     _st[0] += _st[0]; /* 0x3602238F: fadd st(0), st(0) */
   5882     ebx = POP32_VAL(esp); /* 0x36022391: pop ebx */
   5883     { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x36022392: fdivp st(1) */
   5884     { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x36022394: fstp dword ptr [eax] */
   5885     eax = 3; /* 0x36022396: mov eax, 3 */
   5886     esp = ebp; /* 0x3602239B: mov esp, ebp */
   5887     ebp = POP32_VAL(esp); /* 0x3602239D: pop ebp */
   5888     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602239E: ret 8 */
   5889     RECOMP_REGS_OUT();
   5890 }
   5891 
   5892 void sub_360223B0(void) {
   5893     int _fpu_cmp = 0;
   5894     uint32_t _cf = 0;
   5895     int _df = 1;
   5896     uint32_t _flag_k = FK_NONE;
   5897     uint32_t _flag_a = 0, _flag_b = 0;
   5898     uint32_t _itail_tgt = 0;
   5899     RECOMP_REGS_LOCALS
   5900     RECOMP_ENTER(0x360223B0u);
   5901 
   5902 L_360223B0:
   5903     PUSH32(esp, ebp); /* 0x360223B0: push ebp */
   5904     ebp = esp; /* 0x360223B1: mov ebp, esp */
   5905     PUSH32(esp, ebx); /* 0x360223B3: push ebx */
   5906     ebx = MEM32(0x3616FF70); /* 0x360223B4: mov ebx, dword ptr [0x3616ff70] */
   5907     PUSH32(esp, esi); /* 0x360223BA: push esi */
   5908     esi = MEM32(ebp + 0x8); /* 0x360223BB: mov esi, dword ptr [ebp + 8] */
   5909     /* cmp MEM32(esi), 0xC350u */ /* 0x360223BE: cmp dword ptr [esi], 0xc350 */
   5910     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0xC350u);
   5911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5912     _flag_k = FK_CMP;
   5913     PUSH32(esp, edi); /* 0x360223C4: push edi */
   5914     edi = ecx; /* 0x360223C5: mov edi, ecx */
   5915     if (CMP_NE(_flag_a, _flag_b)) goto L_3602241A; /* 0x360223C7: jne 0x3602241a */
   5916 L_360223C9:
   5917     PUSH32(esp, 0); /* 0x360223C9: push 0 */
   5918     PUSH32(esp, 0x361B2CD8u); /* 0x360223CB: push 0x361b2cd8 */
   5919     PUSH32(esp, 0x361B2CC0u); /* 0x360223D0: push 0x361b2cc0 */
   5920     PUSH32(esp, 0); /* 0x360223D5: push 0 */
   5921     PUSH32(esp, esi); /* 0x360223D7: push esi */
   5922     RECOMP_ICALL(ebx); /* 0x360223D8: call ebx */
   5923     RECOMP_FLAGS_IN();
   5924     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5925     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5926     esp = esp + 4; /* 0x360223DA: add esp, 4 */
   5927     _flag_k = FK_ADD;
   5928     PUSH32(esp, eax); /* 0x360223DD: push eax */
   5929     RECOMP_ICALL(0x3615FD86u); /* 0x360223DE: call 0x3615fd86 */ /* not lifted */
   5930     RECOMP_FLAGS_IN();
   5931     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5933     esp = esp + 0x14u; /* 0x360223E3: add esp, 0x14 */
   5934     _flag_k = FK_ADD;
   5935     /* test eax, eax */ /* 0x360223E6: test eax, eax */
   5936     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5937     _cf = 0;
   5938     _flag_k = FK_TEST;
   5939     if (TEST_Z(_flag_a, _flag_b)) goto L_3602241A; /* 0x360223E8: je 0x3602241a */
   5940 L_360223EA:
   5941     ecx = MEM32(edi + 0x88); /* 0x360223EA: mov ecx, dword ptr [edi + 0x88] */
   5942     edx = MEM32(eax + 0x130); /* 0x360223F0: mov edx, dword ptr [eax + 0x130] */
   5943     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   5944     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5945     ecx = ecx + 4; /* 0x360223F6: add ecx, 4 */
   5946     _flag_k = FK_ADD;
   5947     /* cmp edx, MEM32(ecx + 0x4) */ /* 0x360223F9: cmp edx, dword ptr [ecx + 4] */
   5948     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5949     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5950     _flag_k = FK_CMP;
   5951     if (CMP_NE(_flag_a, _flag_b)) goto L_3602241A; /* 0x360223FC: jne 0x3602241a */
   5952 L_360223FE:
   5953     edx = MEM32(eax + 0x12C); /* 0x360223FE: mov edx, dword ptr [eax + 0x12c] */
   5954     /* cmp edx, MEM32(ecx) */ /* 0x36022404: cmp edx, dword ptr [ecx] */
   5955     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx));
   5956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5957     _flag_k = FK_CMP;
   5958     if (CMP_NE(_flag_a, _flag_b)) goto L_3602241A; /* 0x36022406: jne 0x3602241a */
   5959 L_36022408:
   5960     ecx = MEM32(eax + 0x150); /* 0x36022408: mov ecx, dword ptr [eax + 0x150] */
   5961     RECOMP_ICALL(0x3605C830u); /* 0x3602240E: call 0x3605c830 */ /* not lifted */
   5962     RECOMP_FLAGS_IN();
   5963     edi = POP32_VAL(esp); /* 0x36022413: pop edi */
   5964     esi = POP32_VAL(esp); /* 0x36022414: pop esi */
   5965     ebx = POP32_VAL(esp); /* 0x36022415: pop ebx */
   5966     ebp = POP32_VAL(esp); /* 0x36022416: pop ebp */
   5967     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022417: ret 4 */
   5968 L_3602241A:
   5969     ecx = edi; /* 0x3602241A: mov ecx, edi */
   5970     RECOMP_ICALL(0x3601F240u); /* 0x3602241C: call 0x3601f240 */ /* not lifted */
   5971     RECOMP_FLAGS_IN();
   5972     edi = eax; /* 0x36022421: mov edi, eax */
   5973     /* test edi, edi */ /* 0x36022423: test edi, edi */
   5974     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5975     _cf = 0;
   5976     _flag_k = FK_TEST;
   5977     if (TEST_Z(_flag_a, _flag_b)) goto L_360224C2; /* 0x36022425: je 0x360224c2 */
   5978 L_3602242B:
   5979     eax = MEM32(esi); /* 0x3602242B: mov eax, dword ptr [esi] */
   5980     /* cmp eax, 0xDEADu */ /* 0x3602242D: cmp eax, 0xdead */
   5981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEADu);
   5982     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5983     _flag_k = FK_CMP;
   5984     if (CMP_NE(_flag_a, _flag_b)) goto L_36022446; /* 0x36022432: jne 0x36022446 */
   5985 L_36022434:
   5986     ecx = MEM32(edi + 0x150); /* 0x36022434: mov ecx, dword ptr [edi + 0x150] */
   5987     RECOMP_ICALL(0x3605D9B0u); /* 0x3602243A: call 0x3605d9b0 */ /* not lifted */
   5988     RECOMP_FLAGS_IN();
   5989     edi = POP32_VAL(esp); /* 0x3602243F: pop edi */
   5990     esi = POP32_VAL(esp); /* 0x36022440: pop esi */
   5991     ebx = POP32_VAL(esp); /* 0x36022441: pop ebx */
   5992     ebp = POP32_VAL(esp); /* 0x36022442: pop ebp */
   5993     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022443: ret 4 */
   5994 L_36022446:
   5995     /* cmp eax, 0xDEAEu */ /* 0x36022446: cmp eax, 0xdeae */
   5996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEAEu);
   5997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5998     _flag_k = FK_CMP;
   5999     if (CMP_NE(_flag_a, _flag_b)) goto L_3602245F; /* 0x3602244B: jne 0x3602245f */
   6000 L_3602244D:
   6001     ecx = MEM32(edi + 0x150); /* 0x3602244D: mov ecx, dword ptr [edi + 0x150] */
   6002     RECOMP_ICALL(0x3605DBD0u); /* 0x36022453: call 0x3605dbd0 */ /* not lifted */
   6003     RECOMP_FLAGS_IN();
   6004     edi = POP32_VAL(esp); /* 0x36022458: pop edi */
   6005     esi = POP32_VAL(esp); /* 0x36022459: pop esi */
   6006     ebx = POP32_VAL(esp); /* 0x3602245A: pop ebx */
   6007     ebp = POP32_VAL(esp); /* 0x3602245B: pop ebp */
   6008     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602245C: ret 4 */
   6009 L_3602245F:
   6010     /* cmp eax, 0x6Eu */ /* 0x3602245F: cmp eax, 0x6e */
   6011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Eu);
   6012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6013     _flag_k = FK_CMP;
   6014     if (CMP_NE(_flag_a, _flag_b)) goto L_36022476; /* 0x36022462: jne 0x36022476 */
   6015 L_36022464:
   6016     ecx = MEM32(edi + 0x150); /* 0x36022464: mov ecx, dword ptr [edi + 0x150] */
   6017     RECOMP_ICALL(0x36062E30u); /* 0x3602246A: call 0x36062e30 */ /* not lifted */
   6018     RECOMP_FLAGS_IN();
   6019     edi = POP32_VAL(esp); /* 0x3602246F: pop edi */
   6020     esi = POP32_VAL(esp); /* 0x36022470: pop esi */
   6021     ebx = POP32_VAL(esp); /* 0x36022471: pop ebx */
   6022     ebp = POP32_VAL(esp); /* 0x36022472: pop ebp */
   6023     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022473: ret 4 */
   6024 L_36022476:
   6025     /* cmp eax, 0xDEAAu */ /* 0x36022476: cmp eax, 0xdeaa */
   6026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEAAu);
   6027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6028     _flag_k = FK_CMP;
   6029     if (CMP_NE(_flag_a, _flag_b)) goto L_3602248F; /* 0x3602247B: jne 0x3602248f */
   6030 L_3602247D:
   6031     ecx = MEM32(edi + 0x150); /* 0x3602247D: mov ecx, dword ptr [edi + 0x150] */
   6032     RECOMP_ICALL(0x3605D9D0u); /* 0x36022483: call 0x3605d9d0 */ /* not lifted */
   6033     RECOMP_FLAGS_IN();
   6034     edi = POP32_VAL(esp); /* 0x36022488: pop edi */
   6035     esi = POP32_VAL(esp); /* 0x36022489: pop esi */
   6036     ebx = POP32_VAL(esp); /* 0x3602248A: pop ebx */
   6037     ebp = POP32_VAL(esp); /* 0x3602248B: pop ebp */
   6038     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602248C: ret 4 */
   6039 L_3602248F:
   6040     PUSH32(esp, 0); /* 0x3602248F: push 0 */
   6041     PUSH32(esp, 0x361B5C10u); /* 0x36022491: push 0x361b5c10 */
   6042     PUSH32(esp, 0x361B2CC0u); /* 0x36022496: push 0x361b2cc0 */
   6043     PUSH32(esp, 0); /* 0x3602249B: push 0 */
   6044     PUSH32(esp, esi); /* 0x3602249D: push esi */
   6045     RECOMP_ICALL(ebx); /* 0x3602249E: call ebx */
   6046     RECOMP_FLAGS_IN();
   6047     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6048     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6049     esp = esp + 4; /* 0x360224A0: add esp, 4 */
   6050     _flag_k = FK_ADD;
   6051     PUSH32(esp, eax); /* 0x360224A3: push eax */
   6052     RECOMP_ICALL(0x3615FD86u); /* 0x360224A4: call 0x3615fd86 */ /* not lifted */
   6053     RECOMP_FLAGS_IN();
   6054     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6055     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6056     esp = esp + 0x14u; /* 0x360224A9: add esp, 0x14 */
   6057     _flag_k = FK_ADD;
   6058     /* test eax, eax */ /* 0x360224AC: test eax, eax */
   6059     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6060     _cf = 0;
   6061     _flag_k = FK_TEST;
   6062     if (TEST_Z(_flag_a, _flag_b)) goto L_360224C2; /* 0x360224AE: je 0x360224c2 */
   6063 L_360224B0:
   6064     edx = MEM32(eax); /* 0x360224B0: mov edx, dword ptr [eax] */
   6065     PUSH32(esp, edi); /* 0x360224B2: push edi */
   6066     ecx = eax; /* 0x360224B3: mov ecx, eax */
   6067     RECOMP_ICALL(MEM32(edx + 0x130)); /* 0x360224B5: call dword ptr [edx + 0x130] */
   6068     RECOMP_FLAGS_IN();
   6069     edi = POP32_VAL(esp); /* 0x360224BB: pop edi */
   6070     esi = POP32_VAL(esp); /* 0x360224BC: pop esi */
   6071     ebx = POP32_VAL(esp); /* 0x360224BD: pop ebx */
   6072     ebp = POP32_VAL(esp); /* 0x360224BE: pop ebp */
   6073     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360224BF: ret 4 */
   6074 L_360224C2:
   6075     edi = POP32_VAL(esp); /* 0x360224C2: pop edi */
   6076     esi = POP32_VAL(esp); /* 0x360224C3: pop esi */
   6077     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6078     eax = 0; /* 0x360224C4: xor eax, eax */
   6079     _cf = 0;
   6080     _flag_k = FK_TEST;
   6081     ebx = POP32_VAL(esp); /* 0x360224C6: pop ebx */
   6082     ebp = POP32_VAL(esp); /* 0x360224C7: pop ebp */
   6083     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360224C8: ret 4 */
   6084     RECOMP_REGS_OUT();
   6085 }
   6086 
   6087 void sub_360224D0(void) {
   6088     int _fpu_cmp = 0;
   6089     uint32_t _cf = 0;
   6090     int _df = 1;
   6091     uint32_t _flag_k = FK_NONE;
   6092     uint32_t _flag_a = 0, _flag_b = 0;
   6093     uint32_t _itail_tgt = 0;
   6094     RECOMP_REGS_LOCALS
   6095     RECOMP_ENTER(0x360224D0u);
   6096 
   6097 L_360224D0:
   6098     PUSH32(esp, ebp); /* 0x360224D0: push ebp */
   6099     ebp = esp; /* 0x360224D1: mov ebp, esp */
   6100     PUSH32(esp, 0xFFFFFFFFu); /* 0x360224D3: push -1 */
   6101     PUSH32(esp, 0x361631CBu); /* 0x360224D5: push 0x361631cb */
   6102     eax = MEM32(FS_BASE + (0)); /* 0x360224DA: mov eax, dword ptr fs:[0] */
   6103     PUSH32(esp, eax); /* 0x360224E0: push eax */
   6104     MEM32(FS_BASE + (0)) = esp; /* 0x360224E1: mov dword ptr fs:[0], esp */
   6105     PUSH32(esp, ecx); /* 0x360224E8: push ecx */
   6106     PUSH32(esp, esi); /* 0x360224E9: push esi */
   6107     esi = ecx; /* 0x360224EA: mov esi, ecx */
   6108     eax = MEM32(esi + 0x88); /* 0x360224EC: mov eax, dword ptr [esi + 0x88] */
   6109     ecx = MEM32(eax + 0x8); /* 0x360224F2: mov ecx, dword ptr [eax + 8] */
   6110     PUSH32(esp, edi); /* 0x360224F5: push edi */
   6111     edi = MEM32(ebp + 0x8); /* 0x360224F6: mov edi, dword ptr [ebp + 8] */
   6112     edx = MEM32(edi + 0x4); /* 0x360224F9: mov edx, dword ptr [edi + 4] */
   6113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6114     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6115     eax = eax + 4; /* 0x360224FC: add eax, 4 */
   6116     _flag_k = FK_ADD;
   6117     /* cmp ecx, edx */ /* 0x360224FF: cmp ecx, edx */
   6118     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6119     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6120     _flag_k = FK_CMP;
   6121     if (CMP_NE(_flag_a, _flag_b)) goto L_36022509; /* 0x36022501: jne 0x36022509 */
   6122 L_36022503:
   6123     edx = MEM32(eax); /* 0x36022503: mov edx, dword ptr [eax] */
   6124     /* cmp edx, MEM32(edi) */ /* 0x36022505: cmp edx, dword ptr [edi] */
   6125     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi));
   6126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6127     _flag_k = FK_CMP;
   6128     if (CMP_EQ(_flag_a, _flag_b)) goto L_36022558; /* 0x36022507: je 0x36022558 */
   6129 L_36022509:
   6130     PUSH32(esp, 0x34u); /* 0x36022509: push 0x34 */
   6131     RECOMP_ICALL(0x3615FD6Au); /* 0x3602250B: call 0x3615fd6a */ /* not lifted */
   6132     RECOMP_FLAGS_IN();
   6133     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6134     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6135     esp = esp + 4; /* 0x36022510: add esp, 4 */
   6136     _flag_k = FK_ADD;
   6137     MEM32(ebp + (-0x10)) = eax; /* 0x36022513: mov dword ptr [ebp - 0x10], eax */
   6138     /* test eax, eax */ /* 0x36022516: test eax, eax */
   6139     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6140     _cf = 0;
   6141     _flag_k = FK_TEST;
   6142     MEM32(ebp + (-0x4)) = 0; /* 0x36022518: mov dword ptr [ebp - 4], 0 */
   6143     if (TEST_Z(_flag_a, _flag_b)) goto L_3602253C; /* 0x3602251F: je 0x3602253c */
   6144 L_36022521:
   6145     ecx = MEM32(esi + 0x88); /* 0x36022521: mov ecx, dword ptr [esi + 0x88] */
   6146     PUSH32(esp, 0x36305AE0u); /* 0x36022527: push 0x36305ae0 */
   6147     PUSH32(esp, 0x16u); /* 0x3602252C: push 0x16 */
   6148     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   6149     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6150     ecx = ecx + 4; /* 0x3602252E: add ecx, 4 */
   6151     _flag_k = FK_ADD;
   6152     PUSH32(esp, edi); /* 0x36022531: push edi */
   6153     PUSH32(esp, ecx); /* 0x36022532: push ecx */
   6154     ecx = eax; /* 0x36022533: mov ecx, eax */
   6155     RECOMP_ICALL(0x3607D4B0u); /* 0x36022535: call 0x3607d4b0 */ /* not lifted */
   6156     RECOMP_FLAGS_IN();
   6157     goto L_3602253E; /* 0x3602253A: jmp 0x3602253e */
   6158 L_3602253C:
   6159     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6160     eax = 0; /* 0x3602253C: xor eax, eax */
   6161     _cf = 0;
   6162     _flag_k = FK_TEST;
   6163 L_3602253E:
   6164     ecx = MEM32(esi + 0x88); /* 0x3602253E: mov ecx, dword ptr [esi + 0x88] */
   6165     edx = ebp + 0x8; /* 0x36022544: lea edx, [ebp + 8] */
   6166     PUSH32(esp, edx); /* 0x36022547: push edx */
   6167     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36022548: mov dword ptr [ebp - 4], 0xffffffff */
   6168     MEM32(ebp + 0x8) = eax; /* 0x3602254F: mov dword ptr [ebp + 8], eax */
   6169     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36022552: call dword ptr [0x3617004c] */
   6170     RECOMP_FLAGS_IN();
   6171 L_36022558:
   6172     ecx = MEM32(ebp + (-0xC)); /* 0x36022558: mov ecx, dword ptr [ebp - 0xc] */
   6173     edi = POP32_VAL(esp); /* 0x3602255B: pop edi */
   6174     esi = POP32_VAL(esp); /* 0x3602255C: pop esi */
   6175     MEM32(FS_BASE + (0)) = ecx; /* 0x3602255D: mov dword ptr fs:[0], ecx */
   6176     esp = ebp; /* 0x36022564: mov esp, ebp */
   6177     ebp = POP32_VAL(esp); /* 0x36022566: pop ebp */
   6178     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022567: ret 4 */
   6179     RECOMP_REGS_OUT();
   6180 }
   6181 
   6182 void sub_36022570(void) {
   6183     int _fpu_cmp = 0;
   6184     uint32_t _cf = 0;
   6185     int _df = 1;
   6186     uint32_t _flag_k = FK_NONE;
   6187     uint32_t _flag_a = 0, _flag_b = 0;
   6188     uint32_t _itail_tgt = 0;
   6189     RECOMP_REGS_LOCALS
   6190     RECOMP_ENTER(0x36022570u);
   6191 
   6192 L_36022570:
   6193     ecx = MEM32(ecx + 0x88); /* 0x36022570: mov ecx, dword ptr [ecx + 0x88] */
   6194     RECOMP_ICALL(0x36071E40u); /* 0x36022576: call 0x36071e40 */ /* not lifted */
   6195     RECOMP_FLAGS_IN();
   6196     eax = MEM32(eax + 0xC); /* 0x3602257B: mov eax, dword ptr [eax + 0xc] */
   6197     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602257E: ret  */
   6198     RECOMP_REGS_OUT();
   6199 }
   6200 
   6201 void sub_36022580(void) {
   6202     int _fpu_cmp = 0;
   6203     uint32_t _cf = 0;
   6204     int _df = 1;
   6205     uint32_t _flag_k = FK_NONE;
   6206     uint32_t _flag_a = 0, _flag_b = 0;
   6207     uint32_t _itail_tgt = 0;
   6208     RECOMP_REGS_LOCALS
   6209     RECOMP_ENTER(0x36022580u);
   6210 
   6211 L_36022580:
   6212     PUSH32(esp, ebp); /* 0x36022580: push ebp */
   6213     ebp = esp; /* 0x36022581: mov ebp, esp */
   6214     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022583: push -1 */
   6215     PUSH32(esp, 0x361631EBu); /* 0x36022585: push 0x361631eb */
   6216     eax = MEM32(FS_BASE + (0)); /* 0x3602258A: mov eax, dword ptr fs:[0] */
   6217     PUSH32(esp, eax); /* 0x36022590: push eax */
   6218     MEM32(FS_BASE + (0)) = esp; /* 0x36022591: mov dword ptr fs:[0], esp */
   6219     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6221     esp = esp - 8; /* 0x36022598: sub esp, 8 */
   6222     _flag_k = FK_CMP;
   6223     PUSH32(esp, esi); /* 0x3602259B: push esi */
   6224     esi = ecx; /* 0x3602259C: mov esi, ecx */
   6225     ecx = MEM32(esi + 0x88); /* 0x3602259E: mov ecx, dword ptr [esi + 0x88] */
   6226     RECOMP_ICALL(0x36071E40u); /* 0x360225A4: call 0x36071e40 */ /* not lifted */
   6227     RECOMP_FLAGS_IN();
   6228     ecx = eax; /* 0x360225A9: mov ecx, eax */
   6229     RECOMP_ICALL(0x36076A80u); /* 0x360225AB: call 0x36076a80 */ /* not lifted */
   6230     RECOMP_FLAGS_IN();
   6231     PUSH32(esp, 0x34u); /* 0x360225B0: push 0x34 */
   6232     RECOMP_ICALL(0x3615FD6Au); /* 0x360225B2: call 0x3615fd6a */ /* not lifted */
   6233     RECOMP_FLAGS_IN();
   6234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6235     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6236     esp = esp + 4; /* 0x360225B7: add esp, 4 */
   6237     _flag_k = FK_ADD;
   6238     MEM32(ebp + (-0x14)) = eax; /* 0x360225BA: mov dword ptr [ebp - 0x14], eax */
   6239     /* test eax, eax */ /* 0x360225BD: test eax, eax */
   6240     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6241     _cf = 0;
   6242     _flag_k = FK_TEST;
   6243     MEM32(ebp + (-0x4)) = 0; /* 0x360225BF: mov dword ptr [ebp - 4], 0 */
   6244     if (TEST_Z(_flag_a, _flag_b)) goto L_360225E7; /* 0x360225C6: je 0x360225e7 */
   6245 L_360225C8:
   6246     ecx = MEM32(esi + 0x88); /* 0x360225C8: mov ecx, dword ptr [esi + 0x88] */
   6247     PUSH32(esp, 0x36305AE0u); /* 0x360225CE: push 0x36305ae0 */
   6248     PUSH32(esp, 0x18u); /* 0x360225D3: push 0x18 */
   6249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   6250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6251     ecx = ecx + 4; /* 0x360225D5: add ecx, 4 */
   6252     _flag_k = FK_ADD;
   6253     PUSH32(esp, 0x36305AE0u); /* 0x360225D8: push 0x36305ae0 */
   6254     PUSH32(esp, ecx); /* 0x360225DD: push ecx */
   6255     ecx = eax; /* 0x360225DE: mov ecx, eax */
   6256     RECOMP_ICALL(0x3607D4B0u); /* 0x360225E0: call 0x3607d4b0 */ /* not lifted */
   6257     RECOMP_FLAGS_IN();
   6258     goto L_360225E9; /* 0x360225E5: jmp 0x360225e9 */
   6259 L_360225E7:
   6260     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6261     eax = 0; /* 0x360225E7: xor eax, eax */
   6262     _cf = 0;
   6263     _flag_k = FK_TEST;
   6264 L_360225E9:
   6265     ecx = MEM32(esi + 0x88); /* 0x360225E9: mov ecx, dword ptr [esi + 0x88] */
   6266     edx = ebp + (-0x10); /* 0x360225EF: lea edx, [ebp - 0x10] */
   6267     PUSH32(esp, edx); /* 0x360225F2: push edx */
   6268     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360225F3: mov dword ptr [ebp - 4], 0xffffffff */
   6269     MEM32(ebp + (-0x10)) = eax; /* 0x360225FA: mov dword ptr [ebp - 0x10], eax */
   6270     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360225FD: call dword ptr [0x3617004c] */
   6271     RECOMP_FLAGS_IN();
   6272     ecx = MEM32(ebp + (-0xC)); /* 0x36022603: mov ecx, dword ptr [ebp - 0xc] */
   6273     esi = POP32_VAL(esp); /* 0x36022606: pop esi */
   6274     MEM32(FS_BASE + (0)) = ecx; /* 0x36022607: mov dword ptr fs:[0], ecx */
   6275     esp = ebp; /* 0x3602260E: mov esp, ebp */
   6276     ebp = POP32_VAL(esp); /* 0x36022610: pop ebp */
   6277     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36022611: ret  */
   6278     RECOMP_REGS_OUT();
   6279 }
   6280 
   6281 void sub_36022620(void) {
   6282     int _fpu_cmp = 0;
   6283     uint32_t _cf = 0;
   6284     int _df = 1;
   6285     uint32_t _flag_k = FK_NONE;
   6286     uint32_t _flag_a = 0, _flag_b = 0;
   6287     uint32_t _itail_tgt = 0;
   6288     RECOMP_REGS_LOCALS
   6289     RECOMP_ENTER(0x36022620u);
   6290 
   6291 L_36022620:
   6292     PUSH32(esp, ebp); /* 0x36022620: push ebp */
   6293     ebp = esp; /* 0x36022621: mov ebp, esp */
   6294     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022623: push -1 */
   6295     PUSH32(esp, 0x3616320Bu); /* 0x36022625: push 0x3616320b */
   6296     eax = MEM32(FS_BASE + (0)); /* 0x3602262A: mov eax, dword ptr fs:[0] */
   6297     PUSH32(esp, eax); /* 0x36022630: push eax */
   6298     MEM32(FS_BASE + (0)) = esp; /* 0x36022631: mov dword ptr fs:[0], esp */
   6299     PUSH32(esp, ecx); /* 0x36022638: push ecx */
   6300     PUSH32(esp, esi); /* 0x36022639: push esi */
   6301     esi = ecx; /* 0x3602263A: mov esi, ecx */
   6302     eax = MEM32(esi + 0x88); /* 0x3602263C: mov eax, dword ptr [esi + 0x88] */
   6303     ecx = MEM32(eax + 0x8); /* 0x36022642: mov ecx, dword ptr [eax + 8] */
   6304     PUSH32(esp, edi); /* 0x36022645: push edi */
   6305     edi = MEM32(ebp + 0x8); /* 0x36022646: mov edi, dword ptr [ebp + 8] */
   6306     edx = MEM32(edi + 0x4); /* 0x36022649: mov edx, dword ptr [edi + 4] */
   6307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6309     eax = eax + 4; /* 0x3602264C: add eax, 4 */
   6310     _flag_k = FK_ADD;
   6311     /* cmp ecx, edx */ /* 0x3602264F: cmp ecx, edx */
   6312     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   6313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6314     _flag_k = FK_CMP;
   6315     if (CMP_NE(_flag_a, _flag_b)) goto L_36022659; /* 0x36022651: jne 0x36022659 */
   6316 L_36022653:
   6317     edx = MEM32(eax); /* 0x36022653: mov edx, dword ptr [eax] */
   6318     /* cmp edx, MEM32(edi) */ /* 0x36022655: cmp edx, dword ptr [edi] */
   6319     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi));
   6320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6321     _flag_k = FK_CMP;
   6322     if (CMP_EQ(_flag_a, _flag_b)) goto L_360226A8; /* 0x36022657: je 0x360226a8 */
   6323 L_36022659:
   6324     PUSH32(esp, 0x34u); /* 0x36022659: push 0x34 */
   6325     RECOMP_ICALL(0x3615FD6Au); /* 0x3602265B: call 0x3615fd6a */ /* not lifted */
   6326     RECOMP_FLAGS_IN();
   6327     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6328     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6329     esp = esp + 4; /* 0x36022660: add esp, 4 */
   6330     _flag_k = FK_ADD;
   6331     MEM32(ebp + (-0x10)) = eax; /* 0x36022663: mov dword ptr [ebp - 0x10], eax */
   6332     /* test eax, eax */ /* 0x36022666: test eax, eax */
   6333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6334     _cf = 0;
   6335     _flag_k = FK_TEST;
   6336     MEM32(ebp + (-0x4)) = 0; /* 0x36022668: mov dword ptr [ebp - 4], 0 */
   6337     if (TEST_Z(_flag_a, _flag_b)) goto L_3602268C; /* 0x3602266F: je 0x3602268c */
   6338 L_36022671:
   6339     ecx = MEM32(esi + 0x88); /* 0x36022671: mov ecx, dword ptr [esi + 0x88] */
   6340     PUSH32(esp, 0x36305AE0u); /* 0x36022677: push 0x36305ae0 */
   6341     PUSH32(esp, 0x19u); /* 0x3602267C: push 0x19 */
   6342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   6343     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6344     ecx = ecx + 4; /* 0x3602267E: add ecx, 4 */
   6345     _flag_k = FK_ADD;
   6346     PUSH32(esp, edi); /* 0x36022681: push edi */
   6347     PUSH32(esp, ecx); /* 0x36022682: push ecx */
   6348     ecx = eax; /* 0x36022683: mov ecx, eax */
   6349     RECOMP_ICALL(0x3607D4B0u); /* 0x36022685: call 0x3607d4b0 */ /* not lifted */
   6350     RECOMP_FLAGS_IN();
   6351     goto L_3602268E; /* 0x3602268A: jmp 0x3602268e */
   6352 L_3602268C:
   6353     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6354     eax = 0; /* 0x3602268C: xor eax, eax */
   6355     _cf = 0;
   6356     _flag_k = FK_TEST;
   6357 L_3602268E:
   6358     ecx = MEM32(esi + 0x88); /* 0x3602268E: mov ecx, dword ptr [esi + 0x88] */
   6359     edx = ebp + 0x8; /* 0x36022694: lea edx, [ebp + 8] */
   6360     PUSH32(esp, edx); /* 0x36022697: push edx */
   6361     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36022698: mov dword ptr [ebp - 4], 0xffffffff */
   6362     MEM32(ebp + 0x8) = eax; /* 0x3602269F: mov dword ptr [ebp + 8], eax */
   6363     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360226A2: call dword ptr [0x3617004c] */
   6364     RECOMP_FLAGS_IN();
   6365 L_360226A8:
   6366     ecx = MEM32(ebp + (-0xC)); /* 0x360226A8: mov ecx, dword ptr [ebp - 0xc] */
   6367     edi = POP32_VAL(esp); /* 0x360226AB: pop edi */
   6368     esi = POP32_VAL(esp); /* 0x360226AC: pop esi */
   6369     MEM32(FS_BASE + (0)) = ecx; /* 0x360226AD: mov dword ptr fs:[0], ecx */
   6370     esp = ebp; /* 0x360226B4: mov esp, ebp */
   6371     ebp = POP32_VAL(esp); /* 0x360226B6: pop ebp */
   6372     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360226B7: ret 4 */
   6373     RECOMP_REGS_OUT();
   6374 }
   6375 
   6376 void sub_360226C0(void) {
   6377     int _fpu_cmp = 0;
   6378     uint32_t _cf = 0;
   6379     int _df = 1;
   6380     uint32_t _flag_k = FK_NONE;
   6381     uint32_t _flag_a = 0, _flag_b = 0;
   6382     uint32_t _itail_tgt = 0;
   6383     RECOMP_REGS_LOCALS
   6384     RECOMP_ENTER(0x360226C0u);
   6385 
   6386 L_360226C0:
   6387     PUSH32(esp, ebp); /* 0x360226C0: push ebp */
   6388     ebp = esp; /* 0x360226C1: mov ebp, esp */
   6389     PUSH32(esp, esi); /* 0x360226C3: push esi */
   6390     RECOMP_ICALL(0x3601F240u); /* 0x360226C4: call 0x3601f240 */ /* not lifted */
   6391     RECOMP_FLAGS_IN();
   6392     esi = eax; /* 0x360226C9: mov esi, eax */
   6393     /* test esi, esi */ /* 0x360226CB: test esi, esi */
   6394     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6395     _cf = 0;
   6396     _flag_k = FK_TEST;
   6397     if (TEST_Z(_flag_a, _flag_b)) goto L_360226FF; /* 0x360226CD: je 0x360226ff */
   6398 L_360226CF:
   6399     ecx = esi; /* 0x360226CF: mov ecx, esi */
   6400     RECOMP_ICALL(0x36071E40u); /* 0x360226D1: call 0x36071e40 */ /* not lifted */
   6401     RECOMP_FLAGS_IN();
   6402     /* cmp MEM32(eax), 0 */ /* 0x360226D6: cmp dword ptr [eax], 0 */
   6403     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
   6404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6405     _flag_k = FK_CMP;
   6406     if (CMP_EQ(_flag_a, _flag_b)) goto L_360226FF; /* 0x360226D9: je 0x360226ff */
   6407 L_360226DB:
   6408     ecx = esi; /* 0x360226DB: mov ecx, esi */
   6409     RECOMP_ICALL(0x36071E40u); /* 0x360226DD: call 0x36071e40 */ /* not lifted */
   6410     RECOMP_FLAGS_IN();
   6411     ecx = MEM32(ebp + 0x8); /* 0x360226E2: mov ecx, dword ptr [ebp + 8] */
   6412     edx = MEM32(eax + 0x1C); /* 0x360226E5: mov edx, dword ptr [eax + 0x1c] */
   6413     esi = MEM32(ecx + 0x4); /* 0x360226E8: mov esi, dword ptr [ecx + 4] */
   6414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   6415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6416     eax = eax + 0x18u; /* 0x360226EB: add eax, 0x18 */
   6417     _flag_k = FK_ADD;
   6418     /* cmp edx, esi */ /* 0x360226EE: cmp edx, esi */
   6419     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi);
   6420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6421     _flag_k = FK_CMP;
   6422     if (CMP_NE(_flag_a, _flag_b)) goto L_360226FF; /* 0x360226F0: jne 0x360226ff */
   6423 L_360226F2:
   6424     eax = MEM32(eax); /* 0x360226F2: mov eax, dword ptr [eax] */
   6425     /* cmp eax, MEM32(ecx) */ /* 0x360226F4: cmp eax, dword ptr [ecx] */
   6426     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   6427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6428     _flag_k = FK_CMP;
   6429     if (CMP_NE(_flag_a, _flag_b)) goto L_360226FF; /* 0x360226F6: jne 0x360226ff */
   6430 L_360226F8:
   6431     SET_LO8(eax, 1); /* 0x360226F8: mov al, 1 */
   6432     esi = POP32_VAL(esp); /* 0x360226FA: pop esi */
   6433     ebp = POP32_VAL(esp); /* 0x360226FB: pop ebp */
   6434     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360226FC: ret 4 */
   6435 L_360226FF:
   6436     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6437     SET_LO8(eax, 0); /* 0x360226FF: xor al, al */
   6438     _cf = 0;
   6439     _flag_k = FK_NARROW(FK_TEST, 24);
   6440     esi = POP32_VAL(esp); /* 0x36022701: pop esi */
   6441     ebp = POP32_VAL(esp); /* 0x36022702: pop ebp */
   6442     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022703: ret 4 */
   6443     RECOMP_REGS_OUT();
   6444 }
   6445 
   6446 void sub_36022710(void) {
   6447     int _fpu_cmp = 0;
   6448     uint32_t _cf = 0;
   6449     int _df = 1;
   6450     uint32_t _flag_k = FK_NONE;
   6451     uint32_t _flag_a = 0, _flag_b = 0;
   6452     uint32_t _itail_tgt = 0;
   6453     RECOMP_REGS_LOCALS
   6454     RECOMP_ENTER(0x36022710u);
   6455 
   6456 L_36022710:
   6457     PUSH32(esp, ebp); /* 0x36022710: push ebp */
   6458     ebp = esp; /* 0x36022711: mov ebp, esp */
   6459     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022713: push -1 */
   6460     PUSH32(esp, 0x3616322Bu); /* 0x36022715: push 0x3616322b */
   6461     eax = MEM32(FS_BASE + (0)); /* 0x3602271A: mov eax, dword ptr fs:[0] */
   6462     PUSH32(esp, eax); /* 0x36022720: push eax */
   6463     MEM32(FS_BASE + (0)) = esp; /* 0x36022721: mov dword ptr fs:[0], esp */
   6464     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6465     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6466     esp = esp - 0xCu; /* 0x36022728: sub esp, 0xc */
   6467     _flag_k = FK_CMP;
   6468     PUSH32(esp, esi); /* 0x3602272B: push esi */
   6469     PUSH32(esp, edi); /* 0x3602272C: push edi */
   6470     edi = MEM32(ebp + 0x8); /* 0x3602272D: mov edi, dword ptr [ebp + 8] */
   6471     PUSH32(esp, 0); /* 0x36022730: push 0 */
   6472     PUSH32(esp, 0x361B2CD8u); /* 0x36022732: push 0x361b2cd8 */
   6473     PUSH32(esp, 0x361B2CC0u); /* 0x36022737: push 0x361b2cc0 */
   6474     PUSH32(esp, 0); /* 0x3602273C: push 0 */
   6475     PUSH32(esp, edi); /* 0x3602273E: push edi */
   6476     esi = ecx; /* 0x3602273F: mov esi, ecx */
   6477     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36022741: call dword ptr [0x3616ff70] */
   6478     RECOMP_FLAGS_IN();
   6479     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6481     esp = esp + 4; /* 0x36022747: add esp, 4 */
   6482     _flag_k = FK_ADD;
   6483     PUSH32(esp, eax); /* 0x3602274A: push eax */
   6484     RECOMP_ICALL(0x3615FD86u); /* 0x3602274B: call 0x3615fd86 */ /* not lifted */
   6485     RECOMP_FLAGS_IN();
   6486     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6487     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6488     esp = esp + 0x14u; /* 0x36022750: add esp, 0x14 */
   6489     _flag_k = FK_ADD;
   6490     /* test eax, eax */ /* 0x36022753: test eax, eax */
   6491     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6492     _cf = 0;
   6493     _flag_k = FK_TEST;
   6494     if (TEST_Z(_flag_a, _flag_b)) goto L_360227D6; /* 0x36022755: je 0x360227d6 */
   6495 L_36022757:
   6496     SET_LO8(ecx, MEM8(eax + 0x1B4)); /* 0x36022757: mov cl, byte ptr [eax + 0x1b4] */
   6497     /* test LO8(ecx), LO8(ecx) */ /* 0x3602275D: test cl, cl */
   6498     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6499     _cf = 0;
   6500     _flag_k = FK_NARROW(FK_TEST, 24);
   6501     if (TEST_NZ(_flag_a, _flag_b)) goto L_360227D6; /* 0x3602275F: jne 0x360227d6 */
   6502 L_36022761:
   6503     PUSH32(esp, 0x34u); /* 0x36022761: push 0x34 */
   6504     RECOMP_ICALL(0x3615FD6Au); /* 0x36022763: call 0x3615fd6a */ /* not lifted */
   6505     RECOMP_FLAGS_IN();
   6506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6508     esp = esp + 4; /* 0x36022768: add esp, 4 */
   6509     _flag_k = FK_ADD;
   6510     MEM32(ebp + (-0x10)) = eax; /* 0x3602276B: mov dword ptr [ebp - 0x10], eax */
   6511     /* test eax, eax */ /* 0x3602276E: test eax, eax */
   6512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6513     _cf = 0;
   6514     _flag_k = FK_TEST;
   6515     MEM32(ebp + (-0x4)) = 0; /* 0x36022770: mov dword ptr [ebp - 4], 0 */
   6516     if (TEST_Z(_flag_a, _flag_b)) goto L_360227A6; /* 0x36022777: je 0x360227a6 */
   6517 L_36022779:
   6518     ecx = MEM32(ebp + 0xC); /* 0x36022779: mov ecx, dword ptr [ebp + 0xc] */
   6519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu);
   6520     ecx = ecx & 0xFFu; /* 0x3602277C: and ecx, 0xff */
   6521     _cf = 0;
   6522     _flag_k = FK_TEST;
   6523     edx = ebp + (-0x18); /* 0x36022782: lea edx, [ebp - 0x18] */
   6524     PUSH32(esp, edx); /* 0x36022785: push edx */
   6525     MEM32(ebp + (-0x14)) = ecx; /* 0x36022786: mov dword ptr [ebp - 0x14], ecx */
   6526     ecx = MEM32(esi + 0x88); /* 0x36022789: mov ecx, dword ptr [esi + 0x88] */
   6527     PUSH32(esp, 0x1Au); /* 0x3602278F: push 0x1a */
   6528     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   6529     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6530     ecx = ecx + 4; /* 0x36022791: add ecx, 4 */
   6531     _flag_k = FK_ADD;
   6532     PUSH32(esp, edi); /* 0x36022794: push edi */
   6533     PUSH32(esp, ecx); /* 0x36022795: push ecx */
   6534     ecx = eax; /* 0x36022796: mov ecx, eax */
   6535     MEM32(ebp + (-0x18)) = 0; /* 0x36022798: mov dword ptr [ebp - 0x18], 0 */
   6536     RECOMP_ICALL(0x3607D4B0u); /* 0x3602279F: call 0x3607d4b0 */ /* not lifted */
   6537     RECOMP_FLAGS_IN();
   6538     goto L_360227A8; /* 0x360227A4: jmp 0x360227a8 */
   6539 L_360227A6:
   6540     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6541     eax = 0; /* 0x360227A6: xor eax, eax */
   6542     _cf = 0;
   6543     _flag_k = FK_TEST;
   6544 L_360227A8:
   6545     ecx = MEM32(esi + 0x88); /* 0x360227A8: mov ecx, dword ptr [esi + 0x88] */
   6546     edx = ebp + 0x8; /* 0x360227AE: lea edx, [ebp + 8] */
   6547     PUSH32(esp, edx); /* 0x360227B1: push edx */
   6548     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360227B2: mov dword ptr [ebp - 4], 0xffffffff */
   6549     MEM32(ebp + 0x8) = eax; /* 0x360227B9: mov dword ptr [ebp + 8], eax */
   6550     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360227BC: call dword ptr [0x3617004c] */
   6551     RECOMP_FLAGS_IN();
   6552     edi = POP32_VAL(esp); /* 0x360227C2: pop edi */
   6553     SET_LO8(eax, 1); /* 0x360227C3: mov al, 1 */
   6554     esi = POP32_VAL(esp); /* 0x360227C5: pop esi */
   6555     ecx = MEM32(ebp + (-0xC)); /* 0x360227C6: mov ecx, dword ptr [ebp - 0xc] */
   6556     MEM32(FS_BASE + (0)) = ecx; /* 0x360227C9: mov dword ptr fs:[0], ecx */
   6557     esp = ebp; /* 0x360227D0: mov esp, ebp */
   6558     ebp = POP32_VAL(esp); /* 0x360227D2: pop ebp */
   6559     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360227D3: ret 8 */
   6560 L_360227D6:
   6561     ecx = MEM32(ebp + (-0xC)); /* 0x360227D6: mov ecx, dword ptr [ebp - 0xc] */
   6562     edi = POP32_VAL(esp); /* 0x360227D9: pop edi */
   6563     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6564     SET_LO8(eax, 0); /* 0x360227DA: xor al, al */
   6565     _cf = 0;
   6566     _flag_k = FK_NARROW(FK_TEST, 24);
   6567     esi = POP32_VAL(esp); /* 0x360227DC: pop esi */
   6568     MEM32(FS_BASE + (0)) = ecx; /* 0x360227DD: mov dword ptr fs:[0], ecx */
   6569     esp = ebp; /* 0x360227E4: mov esp, ebp */
   6570     ebp = POP32_VAL(esp); /* 0x360227E6: pop ebp */
   6571     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360227E7: ret 8 */
   6572     RECOMP_REGS_OUT();
   6573 }
   6574 
   6575 void sub_3602279F(void) {
   6576     int _fpu_cmp = 0;
   6577     uint32_t _cf = 0;
   6578     int _df = 1;
   6579     uint32_t _flag_k = FK_NONE;
   6580     uint32_t _flag_a = 0, _flag_b = 0;
   6581     uint32_t _itail_tgt = 0;
   6582     RECOMP_REGS_LOCALS
   6583     RECOMP_ENTER(0x3602279Fu);
   6584 
   6585 L_3602279F:
   6586     RECOMP_ICALL(0x3607D4B0u); /* 0x3602279F: call 0x3607d4b0 */ /* not lifted */
   6587     RECOMP_FLAGS_IN();
   6588     goto L_360227A8; /* 0x360227A4: jmp 0x360227a8 */
   6589 L_360227A8:
   6590     ecx = MEM32(esi + 0x88); /* 0x360227A8: mov ecx, dword ptr [esi + 0x88] */
   6591     edx = ebp + 0x8; /* 0x360227AE: lea edx, [ebp + 8] */
   6592     PUSH32(esp, edx); /* 0x360227B1: push edx */
   6593     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360227B2: mov dword ptr [ebp - 4], 0xffffffff */
   6594     MEM32(ebp + 0x8) = eax; /* 0x360227B9: mov dword ptr [ebp + 8], eax */
   6595     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360227BC: call dword ptr [0x3617004c] */
   6596     RECOMP_FLAGS_IN();
   6597     edi = POP32_VAL(esp); /* 0x360227C2: pop edi */
   6598     SET_LO8(eax, 1); /* 0x360227C3: mov al, 1 */
   6599     esi = POP32_VAL(esp); /* 0x360227C5: pop esi */
   6600     ecx = MEM32(ebp + (-0xC)); /* 0x360227C6: mov ecx, dword ptr [ebp - 0xc] */
   6601     MEM32(FS_BASE + (0)) = ecx; /* 0x360227C9: mov dword ptr fs:[0], ecx */
   6602     esp = ebp; /* 0x360227D0: mov esp, ebp */
   6603     ebp = POP32_VAL(esp); /* 0x360227D2: pop ebp */
   6604     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360227D3: ret 8 */
   6605     RECOMP_REGS_OUT();
   6606 }
   6607 
   6608 void sub_360227A8(void) {
   6609     int _fpu_cmp = 0;
   6610     uint32_t _cf = 0;
   6611     int _df = 1;
   6612     uint32_t _flag_k = FK_NONE;
   6613     uint32_t _flag_a = 0, _flag_b = 0;
   6614     uint32_t _itail_tgt = 0;
   6615     RECOMP_REGS_LOCALS
   6616     RECOMP_ENTER(0x360227A8u);
   6617 
   6618 L_360227A8:
   6619     ecx = MEM32(esi + 0x88); /* 0x360227A8: mov ecx, dword ptr [esi + 0x88] */
   6620     edx = ebp + 0x8; /* 0x360227AE: lea edx, [ebp + 8] */
   6621     PUSH32(esp, edx); /* 0x360227B1: push edx */
   6622     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360227B2: mov dword ptr [ebp - 4], 0xffffffff */
   6623     MEM32(ebp + 0x8) = eax; /* 0x360227B9: mov dword ptr [ebp + 8], eax */
   6624     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360227BC: call dword ptr [0x3617004c] */
   6625     RECOMP_FLAGS_IN();
   6626     edi = POP32_VAL(esp); /* 0x360227C2: pop edi */
   6627     SET_LO8(eax, 1); /* 0x360227C3: mov al, 1 */
   6628     esi = POP32_VAL(esp); /* 0x360227C5: pop esi */
   6629     ecx = MEM32(ebp + (-0xC)); /* 0x360227C6: mov ecx, dword ptr [ebp - 0xc] */
   6630     MEM32(FS_BASE + (0)) = ecx; /* 0x360227C9: mov dword ptr fs:[0], ecx */
   6631     esp = ebp; /* 0x360227D0: mov esp, ebp */
   6632     ebp = POP32_VAL(esp); /* 0x360227D2: pop ebp */
   6633     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360227D3: ret 8 */
   6634     RECOMP_REGS_OUT();
   6635 }
   6636 
   6637 void sub_360227F0(void) {
   6638     int _fpu_cmp = 0;
   6639     uint32_t _cf = 0;
   6640     int _df = 1;
   6641     uint32_t _flag_k = FK_NONE;
   6642     uint32_t _flag_a = 0, _flag_b = 0;
   6643     uint32_t _itail_tgt = 0;
   6644     RECOMP_REGS_LOCALS
   6645     RECOMP_ENTER(0x360227F0u);
   6646 
   6647 L_360227F0:
   6648     PUSH32(esp, ebp); /* 0x360227F0: push ebp */
   6649     ebp = esp; /* 0x360227F1: mov ebp, esp */
   6650     eax = MEM32(ebp + 0x8); /* 0x360227F3: mov eax, dword ptr [ebp + 8] */
   6651     PUSH32(esp, 0); /* 0x360227F6: push 0 */
   6652     PUSH32(esp, 0x361B2CD8u); /* 0x360227F8: push 0x361b2cd8 */
   6653     PUSH32(esp, 0x361B2CC0u); /* 0x360227FD: push 0x361b2cc0 */
   6654     PUSH32(esp, 0); /* 0x36022802: push 0 */
   6655     PUSH32(esp, eax); /* 0x36022804: push eax */
   6656     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36022805: call dword ptr [0x3616ff70] */
   6657     RECOMP_FLAGS_IN();
   6658     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6659     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6660     esp = esp + 4; /* 0x3602280B: add esp, 4 */
   6661     _flag_k = FK_ADD;
   6662     PUSH32(esp, eax); /* 0x3602280E: push eax */
   6663     RECOMP_ICALL(0x3615FD86u); /* 0x3602280F: call 0x3615fd86 */ /* not lifted */
   6664     RECOMP_FLAGS_IN();
   6665     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6666     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6667     esp = esp + 0x14u; /* 0x36022814: add esp, 0x14 */
   6668     _flag_k = FK_ADD;
   6669     /* test eax, eax */ /* 0x36022817: test eax, eax */
   6670     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6671     _cf = 0;
   6672     _flag_k = FK_TEST;
   6673     if (TEST_Z(_flag_a, _flag_b)) goto L_3602282D; /* 0x36022819: je 0x3602282d */
   6674 L_3602281B:
   6675     ecx = eax; /* 0x3602281B: mov ecx, eax */
   6676     RECOMP_ICALL(0x36071E40u); /* 0x3602281D: call 0x36071e40 */ /* not lifted */
   6677     RECOMP_FLAGS_IN();
   6678     /* cmp MEM32(eax), 0 */ /* 0x36022822: cmp dword ptr [eax], 0 */
   6679     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
   6680     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6681     _flag_k = FK_CMP;
   6682     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602282D; /* 0x36022825: je 0x3602282d */
   6683 L_36022827:
   6684     SET_LO8(eax, 1); /* 0x36022827: mov al, 1 */
   6685     ebp = POP32_VAL(esp); /* 0x36022829: pop ebp */
   6686     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602282A: ret 4 */
   6687 L_3602282D:
   6688     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6689     SET_LO8(eax, 0); /* 0x3602282D: xor al, al */
   6690     _cf = 0;
   6691     _flag_k = FK_NARROW(FK_TEST, 24);
   6692     ebp = POP32_VAL(esp); /* 0x3602282F: pop ebp */
   6693     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022830: ret 4 */
   6694     RECOMP_REGS_OUT();
   6695 }
   6696 
   6697 void sub_36022840(void) {
   6698     int _fpu_cmp = 0;
   6699     uint32_t _cf = 0;
   6700     int _df = 1;
   6701     uint32_t _flag_k = FK_NONE;
   6702     uint32_t _flag_a = 0, _flag_b = 0;
   6703     uint32_t _itail_tgt = 0;
   6704     RECOMP_REGS_LOCALS
   6705     RECOMP_ENTER(0x36022840u);
   6706 
   6707 L_36022840:
   6708     PUSH32(esp, ebp); /* 0x36022840: push ebp */
   6709     ebp = esp; /* 0x36022841: mov ebp, esp */
   6710     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022843: push -1 */
   6711     PUSH32(esp, 0x3616324Bu); /* 0x36022845: push 0x3616324b */
   6712     eax = MEM32(FS_BASE + (0)); /* 0x3602284A: mov eax, dword ptr fs:[0] */
   6713     PUSH32(esp, eax); /* 0x36022850: push eax */
   6714     MEM32(FS_BASE + (0)) = esp; /* 0x36022851: mov dword ptr fs:[0], esp */
   6715     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6716     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6717     esp = esp - 0x10u; /* 0x36022858: sub esp, 0x10 */
   6718     _flag_k = FK_CMP;
   6719     PUSH32(esp, esi); /* 0x3602285B: push esi */
   6720     PUSH32(esp, 0x34u); /* 0x3602285C: push 0x34 */
   6721     esi = ecx; /* 0x3602285E: mov esi, ecx */
   6722     RECOMP_ICALL(0x3615FD6Au); /* 0x36022860: call 0x3615fd6a */ /* not lifted */
   6723     RECOMP_FLAGS_IN();
   6724     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6725     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6726     esp = esp + 4; /* 0x36022865: add esp, 4 */
   6727     _flag_k = FK_ADD;
   6728     MEM32(ebp + (-0x14)) = eax; /* 0x36022868: mov dword ptr [ebp - 0x14], eax */
   6729     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6730     ecx = 0; /* 0x3602286B: xor ecx, ecx */
   6731     _cf = 0;
   6732     _flag_k = FK_TEST;
   6733     /* cmp eax, ecx */ /* 0x3602286D: cmp eax, ecx */
   6734     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6736     _flag_k = FK_CMP;
   6737     MEM32(ebp + (-0x4)) = ecx; /* 0x3602286F: mov dword ptr [ebp - 4], ecx */
   6738     if (CMP_EQ(_flag_a, _flag_b)) goto L_360228A0; /* 0x36022872: je 0x360228a0 */
   6739 L_36022874:
   6740     MEM32(ebp + (-0x1C)) = ecx; /* 0x36022874: mov dword ptr [ebp - 0x1c], ecx */
   6741     ecx = MEM32(ebp + 0xC); /* 0x36022877: mov ecx, dword ptr [ebp + 0xc] */
   6742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu);
   6743     ecx = ecx & 0xFFu; /* 0x3602287A: and ecx, 0xff */
   6744     _cf = 0;
   6745     _flag_k = FK_TEST;
   6746     edx = ebp + (-0x1C); /* 0x36022880: lea edx, [ebp - 0x1c] */
   6747     PUSH32(esp, edx); /* 0x36022883: push edx */
   6748     edx = MEM32(esi + 0x88); /* 0x36022884: mov edx, dword ptr [esi + 0x88] */
   6749     MEM32(ebp + (-0x18)) = ecx; /* 0x3602288A: mov dword ptr [ebp - 0x18], ecx */
   6750     ecx = MEM32(ebp + 0x8); /* 0x3602288D: mov ecx, dword ptr [ebp + 8] */
   6751     PUSH32(esp, 0x1Cu); /* 0x36022890: push 0x1c */
   6752     PUSH32(esp, ecx); /* 0x36022892: push ecx */
   6753     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   6754     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6755     edx = edx + 4; /* 0x36022893: add edx, 4 */
   6756     _flag_k = FK_ADD;
   6757     PUSH32(esp, edx); /* 0x36022896: push edx */
   6758     ecx = eax; /* 0x36022897: mov ecx, eax */
   6759     RECOMP_ICALL(0x3607D4B0u); /* 0x36022899: call 0x3607d4b0 */ /* not lifted */
   6760     RECOMP_FLAGS_IN();
   6761     goto L_360228A2; /* 0x3602289E: jmp 0x360228a2 */
   6762 L_360228A0:
   6763     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6764     eax = 0; /* 0x360228A0: xor eax, eax */
   6765     _cf = 0;
   6766     _flag_k = FK_TEST;
   6767 L_360228A2:
   6768     ecx = MEM32(esi + 0x88); /* 0x360228A2: mov ecx, dword ptr [esi + 0x88] */
   6769     MEM32(ebp + (-0x10)) = eax; /* 0x360228A8: mov dword ptr [ebp - 0x10], eax */
   6770     eax = ebp + (-0x10); /* 0x360228AB: lea eax, [ebp - 0x10] */
   6771     PUSH32(esp, eax); /* 0x360228AE: push eax */
   6772     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360228AF: mov dword ptr [ebp - 4], 0xffffffff */
   6773     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360228B6: call dword ptr [0x3617004c] */
   6774     RECOMP_FLAGS_IN();
   6775     ecx = MEM32(ebp + (-0xC)); /* 0x360228BC: mov ecx, dword ptr [ebp - 0xc] */
   6776     esi = POP32_VAL(esp); /* 0x360228BF: pop esi */
   6777     MEM32(FS_BASE + (0)) = ecx; /* 0x360228C0: mov dword ptr fs:[0], ecx */
   6778     esp = ebp; /* 0x360228C7: mov esp, ebp */
   6779     ebp = POP32_VAL(esp); /* 0x360228C9: pop ebp */
   6780     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360228CA: ret 8 */
   6781     RECOMP_REGS_OUT();
   6782 }
   6783 
   6784 void sub_360228D0(void) {
   6785     int _fpu_cmp = 0;
   6786     uint32_t _cf = 0;
   6787     int _df = 1;
   6788     uint32_t _flag_k = FK_NONE;
   6789     uint32_t _flag_a = 0, _flag_b = 0;
   6790     uint32_t _itail_tgt = 0;
   6791     RECOMP_REGS_LOCALS
   6792     RECOMP_ENTER(0x360228D0u);
   6793 
   6794     goto L_360228D0;
   6795 L_3600C2B0:
   6796     eax = MEM32(ecx + 0x8C); /* 0x3600C2B0: mov eax, dword ptr [ecx + 0x8c] */
   6797     edx = MEM32(ecx + 0x88); /* 0x3600C2B6: mov edx, dword ptr [ecx + 0x88] */
   6798     eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ecx + 0x48)); /* 0x3600C2BC: imul eax, dword ptr [ecx + 0x48] */
   6799     edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(ecx + 0x44)); /* 0x3600C2C0: imul edx, dword ptr [ecx + 0x44] */
   6800     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6802     eax = eax + edx; /* 0x3600C2C4: add eax, edx */
   6803     _flag_k = FK_ADD;
   6804     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x40));
   6805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6806     eax = eax + MEM32(ecx + 0x40); /* 0x3600C2C6: add eax, dword ptr [ecx + 0x40] */
   6807     _flag_k = FK_ADD;
   6808     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600C2C9: ret  */
   6809 L_360228D0:
   6810     RECOMP_ICALL(0x3600C230u); /* 0x360228D0: call 0x3600c230 */ /* not lifted */
   6811     RECOMP_FLAGS_IN();
   6812     ecx = eax; /* 0x360228D5: mov ecx, eax */
   6813     RECOMP_BACKEDGE();
   6814     goto L_3600C2B0; /* 0x360228D7: jmp 0x3600c2b0 */
   6815     { RECOMP_REGS_OUT(); return; } /* end of function */
   6816     RECOMP_REGS_OUT();
   6817 }
   6818 
   6819 void sub_360228E0(void) {
   6820     int _fpu_cmp = 0;
   6821     uint32_t _cf = 0;
   6822     int _df = 1;
   6823     uint32_t _flag_k = FK_NONE;
   6824     uint32_t _flag_a = 0, _flag_b = 0;
   6825     uint32_t _itail_tgt = 0;
   6826     RECOMP_REGS_LOCALS
   6827     RECOMP_ENTER(0x360228E0u);
   6828 
   6829     goto L_360228E0;
   6830 L_3600C300:
   6831     eax = MEM32(ecx + 0x48); /* 0x3600C300: mov eax, dword ptr [ecx + 0x48] */
   6832     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600C303: ret  */
   6833 L_360228E0:
   6834     RECOMP_ICALL(0x3600C230u); /* 0x360228E0: call 0x3600c230 */ /* not lifted */
   6835     RECOMP_FLAGS_IN();
   6836     ecx = eax; /* 0x360228E5: mov ecx, eax */
   6837     RECOMP_BACKEDGE();
   6838     goto L_3600C300; /* 0x360228E7: jmp 0x3600c300 */
   6839     { RECOMP_REGS_OUT(); return; } /* end of function */
   6840     RECOMP_REGS_OUT();
   6841 }
   6842 
   6843 void sub_360228F0(void) {
   6844     int _fpu_cmp = 0;
   6845     uint32_t _cf = 0;
   6846     int _df = 1;
   6847     uint32_t _flag_k = FK_NONE;
   6848     uint32_t _flag_a = 0, _flag_b = 0;
   6849     uint32_t _itail_tgt = 0;
   6850     RECOMP_REGS_LOCALS
   6851     RECOMP_ENTER(0x360228F0u);
   6852 
   6853     goto L_360228F0;
   6854 L_3600C2E0:
   6855     eax = MEM32(ecx + 0x44); /* 0x3600C2E0: mov eax, dword ptr [ecx + 0x44] */
   6856     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600C2E3: ret  */
   6857 L_360228F0:
   6858     RECOMP_ICALL(0x3600C230u); /* 0x360228F0: call 0x3600c230 */ /* not lifted */
   6859     RECOMP_FLAGS_IN();
   6860     ecx = eax; /* 0x360228F5: mov ecx, eax */
   6861     RECOMP_BACKEDGE();
   6862     goto L_3600C2E0; /* 0x360228F7: jmp 0x3600c2e0 */
   6863     { RECOMP_REGS_OUT(); return; } /* end of function */
   6864     RECOMP_REGS_OUT();
   6865 }
   6866 
   6867 void sub_36022900(void) {
   6868     int _fpu_cmp = 0;
   6869     uint32_t _cf = 0;
   6870     int _df = 1;
   6871     uint32_t _flag_k = FK_NONE;
   6872     uint32_t _flag_a = 0, _flag_b = 0;
   6873     uint32_t _itail_tgt = 0;
   6874     RECOMP_REGS_LOCALS
   6875     RECOMP_ENTER(0x36022900u);
   6876 
   6877     goto L_36022900;
   6878 L_3600C2F0:
   6879     eax = MEM32(ecx + 0x84); /* 0x3600C2F0: mov eax, dword ptr [ecx + 0x84] */
   6880     eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ecx + 0x48)); /* 0x3600C2F6: imul eax, dword ptr [ecx + 0x48] */
   6881     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x44));
   6882     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6883     eax = eax + MEM32(ecx + 0x44); /* 0x3600C2FA: add eax, dword ptr [ecx + 0x44] */
   6884     _flag_k = FK_ADD;
   6885     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3600C2FD: ret  */
   6886 L_36022900:
   6887     RECOMP_ICALL(0x3600C230u); /* 0x36022900: call 0x3600c230 */ /* not lifted */
   6888     RECOMP_FLAGS_IN();
   6889     ecx = eax; /* 0x36022905: mov ecx, eax */
   6890     RECOMP_BACKEDGE();
   6891     goto L_3600C2F0; /* 0x36022907: jmp 0x3600c2f0 */
   6892     { RECOMP_REGS_OUT(); return; } /* end of function */
   6893     RECOMP_REGS_OUT();
   6894 }
   6895 
   6896 void sub_36022910(void) {
   6897     int _fpu_cmp = 0;
   6898     uint32_t _cf = 0;
   6899     int _df = 1;
   6900     uint32_t _flag_k = FK_NONE;
   6901     uint32_t _flag_a = 0, _flag_b = 0;
   6902     uint32_t _itail_tgt = 0;
   6903     RECOMP_REGS_LOCALS
   6904     RECOMP_ENTER(0x36022910u);
   6905 
   6906 L_36022910:
   6907     PUSH32(esp, ebp); /* 0x36022910: push ebp */
   6908     ebp = esp; /* 0x36022911: mov ebp, esp */
   6909     ecx = MEM32(ecx + 0x88); /* 0x36022913: mov ecx, dword ptr [ecx + 0x88] */
   6910     eax = MEM32(ebp + 0x8); /* 0x36022919: mov eax, dword ptr [ebp + 8] */
   6911     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   6912     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6913     ecx = ecx + 4; /* 0x3602291C: add ecx, 4 */
   6914     _flag_k = FK_ADD;
   6915     /* cmp eax, ecx */ /* 0x3602291F: cmp eax, ecx */
   6916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6918     _flag_k = FK_CMP;
   6919     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602292D; /* 0x36022921: je 0x3602292d */
   6920 L_36022923:
   6921     edx = MEM32(ecx); /* 0x36022923: mov edx, dword ptr [ecx] */
   6922     MEM32(eax) = edx; /* 0x36022925: mov dword ptr [eax], edx */
   6923     ecx = MEM32(ecx + 0x4); /* 0x36022927: mov ecx, dword ptr [ecx + 4] */
   6924     MEM32(eax + 0x4) = ecx; /* 0x3602292A: mov dword ptr [eax + 4], ecx */
   6925 L_3602292D:
   6926     ebp = POP32_VAL(esp); /* 0x3602292D: pop ebp */
   6927     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602292E: ret 4 */
   6928     RECOMP_REGS_OUT();
   6929 }
   6930 
   6931 void sub_36022940(void) {
   6932     int _fpu_cmp = 0;
   6933     uint32_t _cf = 0;
   6934     int _df = 1;
   6935     uint32_t _flag_k = FK_NONE;
   6936     uint32_t _flag_a = 0, _flag_b = 0;
   6937     uint32_t _itail_tgt = 0;
   6938     RECOMP_REGS_LOCALS
   6939     RECOMP_ENTER(0x36022940u);
   6940 
   6941 L_36022940:
   6942     PUSH32(esp, ebp); /* 0x36022940: push ebp */
   6943     ebp = esp; /* 0x36022941: mov ebp, esp */
   6944     PUSH32(esp, esi); /* 0x36022943: push esi */
   6945     esi = MEM32(ebp + 0x8); /* 0x36022944: mov esi, dword ptr [ebp + 8] */
   6946     /* test esi, esi */ /* 0x36022947: test esi, esi */
   6947     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6948     _cf = 0;
   6949     _flag_k = FK_TEST;
   6950     PUSH32(esp, edi); /* 0x36022949: push edi */
   6951     edi = ecx; /* 0x3602294A: mov edi, ecx */
   6952     if (TEST_NZ(_flag_a, _flag_b)) goto L_36022956; /* 0x3602294C: jne 0x36022956 */
   6953 L_3602294E:
   6954     MEM32(edi + 0x88) = esi; /* 0x3602294E: mov dword ptr [edi + 0x88], esi */
   6955     goto L_3602295F; /* 0x36022954: jmp 0x3602295f */
   6956 L_36022956:
   6957     PUSH32(esp, esi); /* 0x36022956: push esi */
   6958     ecx = edi; /* 0x36022957: mov ecx, edi */
   6959     RECOMP_ICALL(MEM32(0x3616FF68)); /* 0x36022959: call dword ptr [0x3616ff68] */
   6960     RECOMP_FLAGS_IN();
   6961 L_3602295F:
   6962     PUSH32(esp, 0); /* 0x3602295F: push 0 */
   6963     PUSH32(esp, 0x361B2CD8u); /* 0x36022961: push 0x361b2cd8 */
   6964     PUSH32(esp, 0x361B2CC0u); /* 0x36022966: push 0x361b2cc0 */
   6965     PUSH32(esp, 0); /* 0x3602296B: push 0 */
   6966     PUSH32(esp, esi); /* 0x3602296D: push esi */
   6967     RECOMP_ICALL(0x3615FD86u); /* 0x3602296E: call 0x3615fd86 */ /* not lifted */
   6968     RECOMP_FLAGS_IN();
   6969     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6970     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6971     esp = esp + 0x14u; /* 0x36022973: add esp, 0x14 */
   6972     _flag_k = FK_ADD;
   6973     /* test eax, eax */ /* 0x36022976: test eax, eax */
   6974     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6975     _cf = 0;
   6976     _flag_k = FK_TEST;
   6977     if (TEST_Z(_flag_a, _flag_b)) goto L_36022993; /* 0x36022978: je 0x36022993 */
   6978 L_3602297A:
   6979     PUSH32(esp, 0); /* 0x3602297A: push 0 */
   6980     PUSH32(esp, 0); /* 0x3602297C: push 0 */
   6981     PUSH32(esp, 6); /* 0x3602297E: push 6 */
   6982     MEM8(eax + 0x128) = (uint8_t)(1); /* 0x36022980: mov byte ptr [eax + 0x128], 1 */
   6983     RECOMP_ICALL(0x3601C590u); /* 0x36022987: call 0x3601c590 */ /* not lifted */
   6984     RECOMP_FLAGS_IN();
   6985     ecx = eax; /* 0x3602298C: mov ecx, eax */
   6986     RECOMP_ICALL(0x3601D080u); /* 0x3602298E: call 0x3601d080 */ /* not lifted */
   6987     RECOMP_FLAGS_IN();
   6988 L_36022993:
   6989     ecx = edi; /* 0x36022993: mov ecx, edi */
   6990     RECOMP_ICALL(0x360229B0u); /* 0x36022995: call 0x360229b0 */ /* not lifted */
   6991     RECOMP_FLAGS_IN();
   6992     edi = POP32_VAL(esp); /* 0x3602299A: pop edi */
   6993     esi = POP32_VAL(esp); /* 0x3602299B: pop esi */
   6994     ebp = POP32_VAL(esp); /* 0x3602299C: pop ebp */
   6995     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602299D: ret 4 */
   6996     RECOMP_REGS_OUT();
   6997 }
   6998 
   6999 void sub_360229A0(void) {
   7000     int _fpu_cmp = 0;
   7001     uint32_t _cf = 0;
   7002     int _df = 1;
   7003     uint32_t _flag_k = FK_NONE;
   7004     uint32_t _flag_a = 0, _flag_b = 0;
   7005     uint32_t _itail_tgt = 0;
   7006     RECOMP_REGS_LOCALS
   7007     RECOMP_ENTER(0x360229A0u);
   7008 
   7009 L_360229A0:
   7010     SET_LO8(eax, MEM8(ecx + 0xEC)); /* 0x360229A0: mov al, byte ptr [ecx + 0xec] */
   7011     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360229A6: ret  */
   7012     RECOMP_REGS_OUT();
   7013 }
   7014 
   7015 void sub_360229B0(void) {
   7016     int _fpu_cmp = 0;
   7017     uint32_t _cf = 0;
   7018     int _df = 1;
   7019     uint32_t _flag_k = FK_NONE;
   7020     uint32_t _flag_a = 0, _flag_b = 0;
   7021     uint32_t _itail_tgt = 0;
   7022     RECOMP_REGS_LOCALS
   7023     RECOMP_ENTER(0x360229B0u);
   7024 
   7025 L_360229B0:
   7026     MEM8(ecx + 0xEC) = (uint8_t)(0); /* 0x360229B0: mov byte ptr [ecx + 0xec], 0 */
   7027     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360229B7: ret  */
   7028     RECOMP_REGS_OUT();
   7029 }
   7030 
   7031 void sub_360229C0(void) {
   7032     int _fpu_cmp = 0;
   7033     uint32_t _cf = 0;
   7034     int _df = 1;
   7035     uint32_t _flag_k = FK_NONE;
   7036     uint32_t _flag_a = 0, _flag_b = 0;
   7037     uint32_t _itail_tgt = 0;
   7038     RECOMP_REGS_LOCALS
   7039     RECOMP_ENTER(0x360229C0u);
   7040 
   7041 L_360229C0:
   7042     PUSH32(esp, ebp); /* 0x360229C0: push ebp */
   7043     ebp = esp; /* 0x360229C1: mov ebp, esp */
   7044     eax = MEM32(ebp + 0x8); /* 0x360229C3: mov eax, dword ptr [ebp + 8] */
   7045     PUSH32(esp, 0); /* 0x360229C6: push 0 */
   7046     PUSH32(esp, 0x361B2CF8u); /* 0x360229C8: push 0x361b2cf8 */
   7047     PUSH32(esp, 0x361B2CC0u); /* 0x360229CD: push 0x361b2cc0 */
   7048     PUSH32(esp, 0); /* 0x360229D2: push 0 */
   7049     PUSH32(esp, eax); /* 0x360229D4: push eax */
   7050     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360229D5: call dword ptr [0x3616ff70] */
   7051     RECOMP_FLAGS_IN();
   7052     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7053     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7054     esp = esp + 4; /* 0x360229DB: add esp, 4 */
   7055     _flag_k = FK_ADD;
   7056     PUSH32(esp, eax); /* 0x360229DE: push eax */
   7057     RECOMP_ICALL(0x3615FD86u); /* 0x360229DF: call 0x3615fd86 */ /* not lifted */
   7058     RECOMP_FLAGS_IN();
   7059     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7060     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7061     esp = esp + 0x14u; /* 0x360229E4: add esp, 0x14 */
   7062     _flag_k = FK_ADD;
   7063     /* test eax, eax */ /* 0x360229E7: test eax, eax */
   7064     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7065     _cf = 0;
   7066     _flag_k = FK_TEST;
   7067     if (TEST_Z(_flag_a, _flag_b)) goto L_360229F6; /* 0x360229E9: je 0x360229f6 */
   7068 L_360229EB:
   7069     ecx = eax; /* 0x360229EB: mov ecx, eax */
   7070     RECOMP_ICALL(0x3609EF80u); /* 0x360229ED: call 0x3609ef80 */ /* not lifted */
   7071     RECOMP_FLAGS_IN();
   7072     ebp = POP32_VAL(esp); /* 0x360229F2: pop ebp */
   7073     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360229F3: ret 4 */
   7074 L_360229F6:
   7075     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7076     SET_LO8(eax, 0); /* 0x360229F6: xor al, al */
   7077     _cf = 0;
   7078     _flag_k = FK_NARROW(FK_TEST, 24);
   7079     ebp = POP32_VAL(esp); /* 0x360229F8: pop ebp */
   7080     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360229F9: ret 4 */
   7081     RECOMP_REGS_OUT();
   7082 }
   7083 
   7084 void sub_36022A00(void) {
   7085     int _fpu_cmp = 0;
   7086     uint32_t _cf = 0;
   7087     int _df = 1;
   7088     uint32_t _flag_k = FK_NONE;
   7089     uint32_t _flag_a = 0, _flag_b = 0;
   7090     uint32_t _itail_tgt = 0;
   7091     RECOMP_REGS_LOCALS
   7092     RECOMP_ENTER(0x36022A00u);
   7093 
   7094 L_36022A00:
   7095     PUSH32(esp, ebp); /* 0x36022A00: push ebp */
   7096     ebp = esp; /* 0x36022A01: mov ebp, esp */
   7097     eax = MEM32(ebp + 0x8); /* 0x36022A03: mov eax, dword ptr [ebp + 8] */
   7098     PUSH32(esp, eax); /* 0x36022A06: push eax */
   7099     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36022A07: call dword ptr [0x3616ff70] */
   7100     RECOMP_FLAGS_IN();
   7101     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7102     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7103     esp = esp + 4; /* 0x36022A0D: add esp, 4 */
   7104     _flag_k = FK_ADD;
   7105     /* test eax, eax */ /* 0x36022A10: test eax, eax */
   7106     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7107     _cf = 0;
   7108     _flag_k = FK_TEST;
   7109     if (TEST_Z(_flag_a, _flag_b)) goto L_36022A35; /* 0x36022A12: je 0x36022a35 */
   7110 L_36022A14:
   7111     ecx = eax; /* 0x36022A14: mov ecx, eax */
   7112     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36022A16: call dword ptr [0x3616ffb0] */
   7113     RECOMP_FLAGS_IN();
   7114     edx = MEM32(eax); /* 0x36022A1C: mov edx, dword ptr [eax] */
   7115     ecx = MEM32(ebp + 0xC); /* 0x36022A1E: mov ecx, dword ptr [ebp + 0xc] */
   7116     MEM32(ecx) = edx; /* 0x36022A21: mov dword ptr [ecx], edx */
   7117     edx = MEM32(eax + 0x4); /* 0x36022A23: mov edx, dword ptr [eax + 4] */
   7118     MEM32(ecx + 0x4) = edx; /* 0x36022A26: mov dword ptr [ecx + 4], edx */
   7119     eax = MEM32(eax + 0x8); /* 0x36022A29: mov eax, dword ptr [eax + 8] */
   7120     MEM32(ecx + 0x8) = eax; /* 0x36022A2C: mov dword ptr [ecx + 8], eax */
   7121     SET_LO8(eax, 1); /* 0x36022A2F: mov al, 1 */
   7122     ebp = POP32_VAL(esp); /* 0x36022A31: pop ebp */
   7123     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022A32: ret 8 */
   7124 L_36022A35:
   7125     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7126     SET_LO8(eax, 0); /* 0x36022A35: xor al, al */
   7127     _cf = 0;
   7128     _flag_k = FK_NARROW(FK_TEST, 24);
   7129     ebp = POP32_VAL(esp); /* 0x36022A37: pop ebp */
   7130     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022A38: ret 8 */
   7131     RECOMP_REGS_OUT();
   7132 }
   7133 
   7134 void sub_36022A40(void) {
   7135     int _fpu_cmp = 0;
   7136     uint32_t _cf = 0;
   7137     int _df = 1;
   7138     uint32_t _flag_k = FK_NONE;
   7139     uint32_t _flag_a = 0, _flag_b = 0;
   7140     uint32_t _itail_tgt = 0;
   7141     RECOMP_REGS_LOCALS
   7142     RECOMP_ENTER(0x36022A40u);
   7143 
   7144 L_36022A40:
   7145     PUSH32(esp, ebp); /* 0x36022A40: push ebp */
   7146     ebp = esp; /* 0x36022A41: mov ebp, esp */
   7147     PUSH32(esp, ebx); /* 0x36022A43: push ebx */
   7148     PUSH32(esp, esi); /* 0x36022A44: push esi */
   7149     esi = MEM32(ebp + 0xC); /* 0x36022A45: mov esi, dword ptr [ebp + 0xc] */
   7150     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7151     eax = 0; /* 0x36022A48: xor eax, eax */
   7152     _cf = 0;
   7153     _flag_k = FK_TEST;
   7154     PUSH32(esp, edi); /* 0x36022A4A: push edi */
   7155     edi = ecx; /* 0x36022A4B: mov edi, ecx */
   7156     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7157     ecx = 0; /* 0x36022A4D: xor ecx, ecx */
   7158     _cf = 0;
   7159     _flag_k = FK_TEST;
   7160     MEM32(esi) = eax; /* 0x36022A4F: mov dword ptr [esi], eax */
   7161     MEM32(esi + 0x4) = ecx; /* 0x36022A51: mov dword ptr [esi + 4], ecx */
   7162     ecx = MEM32(ebp + 0x8); /* 0x36022A54: mov ecx, dword ptr [ebp + 8] */
   7163     eax = MEM32(ecx); /* 0x36022A57: mov eax, dword ptr [ecx] */
   7164     /* cmp eax, 0xDAC3u */ /* 0x36022A59: cmp eax, 0xdac3 */
   7165     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDAC3u);
   7166     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7167     _flag_k = FK_CMP;
   7168     if (CMP_NE(_flag_a, _flag_b)) goto L_36022A78; /* 0x36022A5E: jne 0x36022a78 */
   7169 L_36022A60:
   7170     eax = MEM32(ebp + 0x14); /* 0x36022A60: mov eax, dword ptr [ebp + 0x14] */
   7171     edx = MEM32(ebp + 0x10); /* 0x36022A63: mov edx, dword ptr [ebp + 0x10] */
   7172     PUSH32(esp, eax); /* 0x36022A66: push eax */
   7173     PUSH32(esp, edx); /* 0x36022A67: push edx */
   7174     PUSH32(esp, esi); /* 0x36022A68: push esi */
   7175     PUSH32(esp, ecx); /* 0x36022A69: push ecx */
   7176     ecx = edi; /* 0x36022A6A: mov ecx, edi */
   7177     RECOMP_ICALL(0x36027AB0u); /* 0x36022A6C: call 0x36027ab0 */ /* not lifted */
   7178     RECOMP_FLAGS_IN();
   7179     edi = POP32_VAL(esp); /* 0x36022A71: pop edi */
   7180     esi = POP32_VAL(esp); /* 0x36022A72: pop esi */
   7181     ebx = POP32_VAL(esp); /* 0x36022A73: pop ebx */
   7182     ebp = POP32_VAL(esp); /* 0x36022A74: pop ebp */
   7183     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36022A75: ret 0x10 */
   7184 L_36022A78:
   7185     edx = MEM32(edi + 0x88); /* 0x36022A78: mov edx, dword ptr [edi + 0x88] */
   7186     /* test edx, edx */ /* 0x36022A7E: test edx, edx */
   7187     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   7188     _cf = 0;
   7189     _flag_k = FK_TEST;
   7190     if (TEST_Z(_flag_a, _flag_b)) goto L_36022AF0; /* 0x36022A80: je 0x36022af0 */
   7191 L_36022A82:
   7192     ecx = MEM32(ecx + 0x4); /* 0x36022A82: mov ecx, dword ptr [ecx + 4] */
   7193     /* cmp ecx, MEM32(edx + 0x8) */ /* 0x36022A85: cmp ecx, dword ptr [edx + 8] */
   7194     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   7195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7196     _flag_k = FK_CMP;
   7197     if (CMP_NE(_flag_a, _flag_b)) goto L_36022AF0; /* 0x36022A88: jne 0x36022af0 */
   7198 L_36022A8A:
   7199     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36022A8A: cmp eax, dword ptr [edx + 4] */
   7200     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   7201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7202     _flag_k = FK_CMP;
   7203     if (CMP_NE(_flag_a, _flag_b)) goto L_36022AF0; /* 0x36022A8D: jne 0x36022af0 */
   7204 L_36022A8F:
   7205     edx = ebp + 0x8; /* 0x36022A8F: lea edx, [ebp + 8] */
   7206     PUSH32(esp, edx); /* 0x36022A92: push edx */
   7207     eax = ebp + 0xC; /* 0x36022A93: lea eax, [ebp + 0xc] */
   7208     PUSH32(esp, eax); /* 0x36022A96: push eax */
   7209     ecx = edi; /* 0x36022A97: mov ecx, edi */
   7210     RECOMP_ICALL(0x36027B50u); /* 0x36022A99: call 0x36027b50 */ /* not lifted */
   7211     RECOMP_FLAGS_IN();
   7212     /* test LO8(eax), LO8(eax) */ /* 0x36022A9E: test al, al */
   7213     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7214     _cf = 0;
   7215     _flag_k = FK_NARROW(FK_TEST, 24);
   7216     if (TEST_Z(_flag_a, _flag_b)) goto L_36022AF0; /* 0x36022AA0: je 0x36022af0 */
   7217 L_36022AA2:
   7218     edi = MEM32(edi + 0x88); /* 0x36022AA2: mov edi, dword ptr [edi + 0x88] */
   7219     ecx = edi; /* 0x36022AA8: mov ecx, edi */
   7220     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36022AAA: call dword ptr [0x3616ffb0] */
   7221     RECOMP_FLAGS_IN();
   7222     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x36022AB0: fild dword ptr [ebp + 0xc] */
   7223     ecx = eax; /* 0x36022AB3: mov ecx, eax */
   7224     ebx = MEM32(ecx); /* 0x36022AB5: mov ebx, dword ptr [ecx] */
   7225     eax = MEM32(ebp + 0x14); /* 0x36022AB7: mov eax, dword ptr [ebp + 0x14] */
   7226     edx = eax; /* 0x36022ABA: mov edx, eax */
   7227     MEM32(edx) = ebx; /* 0x36022ABC: mov dword ptr [edx], ebx */
   7228     ebx = MEM32(ecx + 0x4); /* 0x36022ABE: mov ebx, dword ptr [ecx + 4] */
   7229     MEM32(edx + 0x4) = ebx; /* 0x36022AC1: mov dword ptr [edx + 4], ebx */
   7230     ecx = MEM32(ecx + 0x8); /* 0x36022AC4: mov ecx, dword ptr [ecx + 8] */
   7231     MEM32(edx + 0x8) = ecx; /* 0x36022AC7: mov dword ptr [edx + 8], ecx */
   7232     _st[0] += (double)*(float*)ADDR(eax); /* 0x36022ACA: fadd dword ptr [eax] */
   7233     ecx = MEM32(ebp + 0x10); /* 0x36022ACC: mov ecx, dword ptr [ebp + 0x10] */
   7234     { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x36022ACF: fstp dword ptr [ecx] */
   7235     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36022AD1: fild dword ptr [ebp + 8] */
   7236     _st[0] += (double)*(float*)ADDR(eax + 0x8); /* 0x36022AD4: fadd dword ptr [eax + 8] */
   7237     eax = 0x9C50u; /* 0x36022AD7: mov eax, 0x9c50 */
   7238     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x8) = _v; } /* 0x36022ADC: fstp dword ptr [ecx + 8] */
   7239     edi = MEM32(edi + 0x78); /* 0x36022ADF: mov edi, dword ptr [edi + 0x78] */
   7240     MEM32(esi) = eax; /* 0x36022AE2: mov dword ptr [esi], eax */
   7241     MEM32(esi + 0x4) = edi; /* 0x36022AE4: mov dword ptr [esi + 4], edi */
   7242     edi = POP32_VAL(esp); /* 0x36022AE7: pop edi */
   7243     esi = POP32_VAL(esp); /* 0x36022AE8: pop esi */
   7244     SET_LO8(eax, 1); /* 0x36022AE9: mov al, 1 */
   7245     ebx = POP32_VAL(esp); /* 0x36022AEB: pop ebx */
   7246     ebp = POP32_VAL(esp); /* 0x36022AEC: pop ebp */
   7247     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36022AED: ret 0x10 */
   7248 L_36022AF0:
   7249     edi = POP32_VAL(esp); /* 0x36022AF0: pop edi */
   7250     esi = POP32_VAL(esp); /* 0x36022AF1: pop esi */
   7251     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7252     SET_LO8(eax, 0); /* 0x36022AF2: xor al, al */
   7253     _cf = 0;
   7254     _flag_k = FK_NARROW(FK_TEST, 24);
   7255     ebx = POP32_VAL(esp); /* 0x36022AF4: pop ebx */
   7256     ebp = POP32_VAL(esp); /* 0x36022AF5: pop ebp */
   7257     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36022AF6: ret 0x10 */
   7258     RECOMP_REGS_OUT();
   7259 }
   7260 
   7261 void sub_36022B00(void) {
   7262     int _fpu_cmp = 0;
   7263     uint32_t _cf = 0;
   7264     int _df = 1;
   7265     uint32_t _flag_k = FK_NONE;
   7266     uint32_t _flag_a = 0, _flag_b = 0;
   7267     uint32_t _itail_tgt = 0;
   7268     RECOMP_REGS_LOCALS
   7269     RECOMP_ENTER(0x36022B00u);
   7270 
   7271 L_36022B00:
   7272     PUSH32(esp, ebp); /* 0x36022B00: push ebp */
   7273     ebp = esp; /* 0x36022B01: mov ebp, esp */
   7274     eax = MEM32(ebp + 0x8); /* 0x36022B03: mov eax, dword ptr [ebp + 8] */
   7275     PUSH32(esp, 0); /* 0x36022B06: push 0 */
   7276     PUSH32(esp, 0x361B5CB8u); /* 0x36022B08: push 0x361b5cb8 */
   7277     PUSH32(esp, 0x361B2CC0u); /* 0x36022B0D: push 0x361b2cc0 */
   7278     PUSH32(esp, 0); /* 0x36022B12: push 0 */
   7279     PUSH32(esp, eax); /* 0x36022B14: push eax */
   7280     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36022B15: call dword ptr [0x3616ff70] */
   7281     RECOMP_FLAGS_IN();
   7282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7283     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7284     esp = esp + 4; /* 0x36022B1B: add esp, 4 */
   7285     _flag_k = FK_ADD;
   7286     PUSH32(esp, eax); /* 0x36022B1E: push eax */
   7287     RECOMP_ICALL(0x3615FD86u); /* 0x36022B1F: call 0x3615fd86 */ /* not lifted */
   7288     RECOMP_FLAGS_IN();
   7289     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7291     esp = esp + 0x14u; /* 0x36022B24: add esp, 0x14 */
   7292     _flag_k = FK_ADD;
   7293     /* test eax, eax */ /* 0x36022B27: test eax, eax */
   7294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7295     _cf = 0;
   7296     _flag_k = FK_TEST;
   7297     if (TEST_Z(_flag_a, _flag_b)) goto L_36022B4D; /* 0x36022B29: je 0x36022b4d */
   7298 L_36022B2B:
   7299     ecx = MEM32(eax + 0xC4); /* 0x36022B2B: mov ecx, dword ptr [eax + 0xc4] */
   7300     /* test ecx, ecx */ /* 0x36022B31: test ecx, ecx */
   7301     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7302     _cf = 0;
   7303     _flag_k = FK_TEST;
   7304     if (TEST_Z(_flag_a, _flag_b)) goto L_36022B4D; /* 0x36022B33: je 0x36022b4d */
   7305 L_36022B35:
   7306     ecx = eax; /* 0x36022B35: mov ecx, eax */
   7307     RECOMP_ICALL(MEM32(0x361700A4)); /* 0x36022B37: call dword ptr [0x361700a4] */
   7308     RECOMP_FLAGS_IN();
   7309     /* test eax, eax */ /* 0x36022B3D: test eax, eax */
   7310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7311     _cf = 0;
   7312     _flag_k = FK_TEST;
   7313     if (TEST_Z(_flag_a, _flag_b)) goto L_36022B4D; /* 0x36022B3F: je 0x36022b4d */
   7314 L_36022B41:
   7315     ecx = eax; /* 0x36022B41: mov ecx, eax */
   7316     RECOMP_ICALL(MEM32(0x3616F970)); /* 0x36022B43: call dword ptr [0x3616f970] */
   7317     RECOMP_FLAGS_IN();
   7318     ebp = POP32_VAL(esp); /* 0x36022B49: pop ebp */
   7319     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022B4A: ret 4 */
   7320 L_36022B4D:
   7321     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36022B4D: fld dword ptr [0x3617040c] */
   7322     ebp = POP32_VAL(esp); /* 0x36022B53: pop ebp */
   7323     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022B54: ret 4 */
   7324     RECOMP_REGS_OUT();
   7325 }
   7326 
   7327 void sub_36022B60(void) {
   7328     int _fpu_cmp = 0;
   7329     uint32_t _cf = 0;
   7330     int _df = 1;
   7331     uint32_t _flag_k = FK_NONE;
   7332     uint32_t _flag_a = 0, _flag_b = 0;
   7333     uint32_t _itail_tgt = 0;
   7334     RECOMP_REGS_LOCALS
   7335     RECOMP_ENTER(0x36022B60u);
   7336 
   7337 L_36022B60:
   7338     PUSH32(esp, ebp); /* 0x36022B60: push ebp */
   7339     ebp = esp; /* 0x36022B61: mov ebp, esp */
   7340     eax = MEM32(ebp + 0x8); /* 0x36022B63: mov eax, dword ptr [ebp + 8] */
   7341     PUSH32(esp, eax); /* 0x36022B66: push eax */
   7342     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36022B67: call dword ptr [0x3616ff70] */
   7343     RECOMP_FLAGS_IN();
   7344     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7345     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7346     esp = esp + 4; /* 0x36022B6D: add esp, 4 */
   7347     _flag_k = FK_ADD;
   7348     /* test eax, eax */ /* 0x36022B70: test eax, eax */
   7349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7350     _cf = 0;
   7351     _flag_k = FK_TEST;
   7352     if (TEST_Z(_flag_a, _flag_b)) goto L_36022B8E; /* 0x36022B72: je 0x36022b8e */
   7353 L_36022B74:
   7354     edx = MEM32(eax + 0x8C); /* 0x36022B74: mov edx, dword ptr [eax + 0x8c] */
   7355     ecx = MEM32(ebp + 0xC); /* 0x36022B7A: mov ecx, dword ptr [ebp + 0xc] */
   7356     MEM32(ecx) = edx; /* 0x36022B7D: mov dword ptr [ecx], edx */
   7357     eax = MEM32(eax + 0x90); /* 0x36022B7F: mov eax, dword ptr [eax + 0x90] */
   7358     MEM32(ecx + 0x4) = eax; /* 0x36022B85: mov dword ptr [ecx + 4], eax */
   7359     SET_LO8(eax, 1); /* 0x36022B88: mov al, 1 */
   7360     ebp = POP32_VAL(esp); /* 0x36022B8A: pop ebp */
   7361     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022B8B: ret 8 */
   7362 L_36022B8E:
   7363     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7364     SET_LO8(eax, 0); /* 0x36022B8E: xor al, al */
   7365     _cf = 0;
   7366     _flag_k = FK_NARROW(FK_TEST, 24);
   7367     ebp = POP32_VAL(esp); /* 0x36022B90: pop ebp */
   7368     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022B91: ret 8 */
   7369     RECOMP_REGS_OUT();
   7370 }
   7371 
   7372 void sub_36022BA0(void) {
   7373     int _fpu_cmp = 0;
   7374     uint32_t _cf = 0;
   7375     int _df = 1;
   7376     uint32_t _flag_k = FK_NONE;
   7377     uint32_t _flag_a = 0, _flag_b = 0;
   7378     uint32_t _itail_tgt = 0;
   7379     RECOMP_REGS_LOCALS
   7380     RECOMP_ENTER(0x36022BA0u);
   7381 
   7382 L_36022BA0:
   7383     PUSH32(esp, ebp); /* 0x36022BA0: push ebp */
   7384     ebp = esp; /* 0x36022BA1: mov ebp, esp */
   7385     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022BA3: push -1 */
   7386     PUSH32(esp, 0x3616326Bu); /* 0x36022BA5: push 0x3616326b */
   7387     eax = MEM32(FS_BASE + (0)); /* 0x36022BAA: mov eax, dword ptr fs:[0] */
   7388     PUSH32(esp, eax); /* 0x36022BB0: push eax */
   7389     MEM32(FS_BASE + (0)) = esp; /* 0x36022BB1: mov dword ptr fs:[0], esp */
   7390     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7391     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7392     esp = esp - 0xCu; /* 0x36022BB8: sub esp, 0xc */
   7393     _flag_k = FK_CMP;
   7394     eax = MEM32(ebp + 0xC); /* 0x36022BBB: mov eax, dword ptr [ebp + 0xc] */
   7395     PUSH32(esp, ebx); /* 0x36022BBE: push ebx */
   7396     ebx = MEM32(ebp + 0x8); /* 0x36022BBF: mov ebx, dword ptr [ebp + 8] */
   7397     edx = MEM32(ebx + 0x4); /* 0x36022BC2: mov edx, dword ptr [ebx + 4] */
   7398     PUSH32(esp, esi); /* 0x36022BC5: push esi */
   7399     /* cmp edx, MEM32(eax + 0x4) */ /* 0x36022BC6: cmp edx, dword ptr [eax + 4] */
   7400     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   7401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7402     _flag_k = FK_CMP;
   7403     PUSH32(esp, edi); /* 0x36022BC9: push edi */
   7404     MEM32(ebp + (-0x10)) = ecx; /* 0x36022BCA: mov dword ptr [ebp - 0x10], ecx */
   7405     if (CMP_NE(_flag_a, _flag_b)) goto L_36022BD5; /* 0x36022BCD: jne 0x36022bd5 */
   7406 L_36022BCF:
   7407     edx = MEM32(ebx); /* 0x36022BCF: mov edx, dword ptr [ebx] */
   7408     /* cmp edx, MEM32(eax) */ /* 0x36022BD1: cmp edx, dword ptr [eax] */
   7409     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   7410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7411     _flag_k = FK_CMP;
   7412     if (CMP_EQ(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022BD3: je 0x36022c31 */
   7413 L_36022BD5:
   7414     eax = MEM32(ebx); /* 0x36022BD5: mov eax, dword ptr [ebx] */
   7415     /* cmp eax, 0x64u */ /* 0x36022BD7: cmp eax, 0x64 */
   7416     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u);
   7417     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7418     _flag_k = FK_CMP;
   7419     if (CMP_LE(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022BDA: jle 0x36022c31 */
   7420 L_36022BDC:
   7421     /* cmp eax, 0xFAu */ /* 0x36022BDC: cmp eax, 0xfa */
   7422     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFAu);
   7423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7424     _flag_k = FK_CMP;
   7425     if (CMP_GE(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022BE1: jge 0x36022c31 */
   7426 L_36022BE3:
   7427     RECOMP_ICALL(0x3601F240u); /* 0x36022BE3: call 0x3601f240 */ /* not lifted */
   7428     RECOMP_FLAGS_IN();
   7429     edi = eax; /* 0x36022BE8: mov edi, eax */
   7430     /* test edi, edi */ /* 0x36022BEA: test edi, edi */
   7431     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7432     _cf = 0;
   7433     _flag_k = FK_TEST;
   7434     if (TEST_Z(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022BEC: je 0x36022c31 */
   7435 L_36022BEE:
   7436     ecx = MEM32(edi + 0x150); /* 0x36022BEE: mov ecx, dword ptr [edi + 0x150] */
   7437     PUSH32(esp, ebx); /* 0x36022BF4: push ebx */
   7438     RECOMP_ICALL(0x3605F970u); /* 0x36022BF5: call 0x3605f970 */ /* not lifted */
   7439     RECOMP_FLAGS_IN();
   7440     ecx = MEM32(edi + 0x150); /* 0x36022BFA: mov ecx, dword ptr [edi + 0x150] */
   7441     esi = eax; /* 0x36022C00: mov esi, eax */
   7442     eax = MEM32(ebp + 0xC); /* 0x36022C02: mov eax, dword ptr [ebp + 0xc] */
   7443     PUSH32(esp, eax); /* 0x36022C05: push eax */
   7444     RECOMP_ICALL(0x3605F970u); /* 0x36022C06: call 0x3605f970 */ /* not lifted */
   7445     RECOMP_FLAGS_IN();
   7446     /* test esi, esi */ /* 0x36022C0B: test esi, esi */
   7447     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7448     _cf = 0;
   7449     _flag_k = FK_TEST;
   7450     edi = eax; /* 0x36022C0D: mov edi, eax */
   7451     if (TEST_Z(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022C0F: je 0x36022c31 */
   7452 L_36022C11:
   7453     /* test edi, edi */ /* 0x36022C11: test edi, edi */
   7454     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7455     _cf = 0;
   7456     _flag_k = FK_TEST;
   7457     if (TEST_Z(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022C13: je 0x36022c31 */
   7458 L_36022C15:
   7459     ecx = MEM32(ebp + 0xC); /* 0x36022C15: mov ecx, dword ptr [ebp + 0xc] */
   7460     ebx = MEM32(ebx); /* 0x36022C18: mov ebx, dword ptr [ebx] */
   7461     /* cmp ebx, MEM32(ecx) */ /* 0x36022C1A: cmp ebx, dword ptr [ecx] */
   7462     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ecx));
   7463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7464     _flag_k = FK_CMP;
   7465     if (CMP_EQ(_flag_a, _flag_b)) goto L_36022C46; /* 0x36022C1C: je 0x36022c46 */
   7466 L_36022C1E:
   7467     PUSH32(esp, 0); /* 0x36022C1E: push 0 */
   7468     PUSH32(esp, 0x361B5D0Cu); /* 0x36022C20: push 0x361b5d0c */
   7469 L_36022C25:
   7470     RECOMP_ICALL(0x3601C590u); /* 0x36022C25: call 0x3601c590 */ /* not lifted */
   7471     RECOMP_FLAGS_IN();
   7472     ecx = eax; /* 0x36022C2A: mov ecx, eax */
   7473     RECOMP_ICALL(0x3601C8C0u); /* 0x36022C2C: call 0x3601c8c0 */ /* not lifted */
   7474     RECOMP_FLAGS_IN();
   7475 L_36022C31:
   7476     edi = POP32_VAL(esp); /* 0x36022C31: pop edi */
   7477     esi = POP32_VAL(esp); /* 0x36022C32: pop esi */
   7478     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7479     SET_LO8(eax, 0); /* 0x36022C33: xor al, al */
   7480     _cf = 0;
   7481     _flag_k = FK_NARROW(FK_TEST, 24);
   7482     ebx = POP32_VAL(esp); /* 0x36022C35: pop ebx */
   7483     ecx = MEM32(ebp + (-0xC)); /* 0x36022C36: mov ecx, dword ptr [ebp - 0xc] */
   7484     MEM32(FS_BASE + (0)) = ecx; /* 0x36022C39: mov dword ptr fs:[0], ecx */
   7485     esp = ebp; /* 0x36022C40: mov esp, ebp */
   7486     ebp = POP32_VAL(esp); /* 0x36022C42: pop ebp */
   7487     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022C43: ret 8 */
   7488 L_36022C46:
   7489     edx = MEM32(esi); /* 0x36022C46: mov edx, dword ptr [esi] */
   7490     PUSH32(esp, 2); /* 0x36022C48: push 2 */
   7491     PUSH32(esp, 0x1Eu); /* 0x36022C4A: push 0x1e */
   7492     ecx = esi; /* 0x36022C4C: mov ecx, esi */
   7493     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36022C4E: call dword ptr [edx + 4] */
   7494     RECOMP_FLAGS_IN();
   7495     /* test HI8(eax), 2 */ /* 0x36022C51: test ah, 2 */
   7496     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   7497     _cf = 0;
   7498     _flag_k = FK_NARROW(FK_TEST, 24);
   7499     RECOMP_BACKEDGE();
   7500     if (TEST_Z(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022C54: je 0x36022c31 */
   7501 L_36022C56:
   7502     eax = MEM32(edi); /* 0x36022C56: mov eax, dword ptr [edi] */
   7503     PUSH32(esp, 2); /* 0x36022C58: push 2 */
   7504     PUSH32(esp, 0x1Eu); /* 0x36022C5A: push 0x1e */
   7505     ecx = edi; /* 0x36022C5C: mov ecx, edi */
   7506     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36022C5E: call dword ptr [eax + 4] */
   7507     RECOMP_FLAGS_IN();
   7508     /* test HI8(eax), 2 */ /* 0x36022C61: test ah, 2 */
   7509     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   7510     _cf = 0;
   7511     _flag_k = FK_NARROW(FK_TEST, 24);
   7512     RECOMP_BACKEDGE();
   7513     if (TEST_Z(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022C64: je 0x36022c31 */
   7514 L_36022C66:
   7515     edx = MEM32(edi); /* 0x36022C66: mov edx, dword ptr [edi] */
   7516     PUSH32(esp, 2); /* 0x36022C68: push 2 */
   7517     PUSH32(esp, 0x2BEu); /* 0x36022C6A: push 0x2be */
   7518     ecx = edi; /* 0x36022C6F: mov ecx, edi */
   7519     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36022C71: call dword ptr [edx + 4] */
   7520     RECOMP_FLAGS_IN();
   7521     PUSH32(esp, 2); /* 0x36022C74: push 2 */
   7522     ebx = eax; /* 0x36022C76: mov ebx, eax */
   7523     eax = MEM32(esi); /* 0x36022C78: mov eax, dword ptr [esi] */
   7524     PUSH32(esp, 0x2BEu); /* 0x36022C7A: push 0x2be */
   7525     ecx = esi; /* 0x36022C7F: mov ecx, esi */
   7526     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36022C81: call dword ptr [eax + 4] */
   7527     RECOMP_FLAGS_IN();
   7528     /* cmp eax, ebx */ /* 0x36022C84: cmp eax, ebx */
   7529     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7531     _flag_k = FK_CMP;
   7532     RECOMP_BACKEDGE();
   7533     if (CMP_NE(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022C86: jne 0x36022c31 */
   7534 L_36022C88:
   7535     edx = MEM32(edi); /* 0x36022C88: mov edx, dword ptr [edi] */
   7536     PUSH32(esp, 2); /* 0x36022C8A: push 2 */
   7537     PUSH32(esp, 0x2BFu); /* 0x36022C8C: push 0x2bf */
   7538     ecx = edi; /* 0x36022C91: mov ecx, edi */
   7539     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36022C93: call dword ptr [edx + 4] */
   7540     RECOMP_FLAGS_IN();
   7541     PUSH32(esp, 2); /* 0x36022C96: push 2 */
   7542     ebx = eax; /* 0x36022C98: mov ebx, eax */
   7543     eax = MEM32(esi); /* 0x36022C9A: mov eax, dword ptr [esi] */
   7544     PUSH32(esp, 0x2BFu); /* 0x36022C9C: push 0x2bf */
   7545     ecx = esi; /* 0x36022CA1: mov ecx, esi */
   7546     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36022CA3: call dword ptr [eax + 4] */
   7547     RECOMP_FLAGS_IN();
   7548     /* cmp eax, ebx */ /* 0x36022CA6: cmp eax, ebx */
   7549     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   7550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7551     _flag_k = FK_CMP;
   7552     RECOMP_BACKEDGE();
   7553     if (CMP_NE(_flag_a, _flag_b)) goto L_36022C31; /* 0x36022CA8: jne 0x36022c31 */
   7554 L_36022CAA:
   7555     edx = MEM32(edi); /* 0x36022CAA: mov edx, dword ptr [edi] */
   7556     PUSH32(esp, 2); /* 0x36022CAC: push 2 */
   7557     PUSH32(esp, 0x2BDu); /* 0x36022CAE: push 0x2bd */
   7558     ecx = edi; /* 0x36022CB3: mov ecx, edi */
   7559     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36022CB5: call dword ptr [edx + 4] */
   7560     RECOMP_FLAGS_IN();
   7561     PUSH32(esp, 2); /* 0x36022CB8: push 2 */
   7562     edi = eax; /* 0x36022CBA: mov edi, eax */
   7563     eax = MEM32(esi); /* 0x36022CBC: mov eax, dword ptr [esi] */
   7564     PUSH32(esp, 0x2BDu); /* 0x36022CBE: push 0x2bd */
   7565     ecx = esi; /* 0x36022CC3: mov ecx, esi */
   7566     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36022CC5: call dword ptr [eax + 4] */
   7567     RECOMP_FLAGS_IN();
   7568     /* cmp eax, edi */ /* 0x36022CC8: cmp eax, edi */
   7569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   7570     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7571     _flag_k = FK_CMP;
   7572     if (CMP_EQ(_flag_a, _flag_b)) goto L_36022CD8; /* 0x36022CCA: je 0x36022cd8 */
   7573 L_36022CCC:
   7574     PUSH32(esp, 0); /* 0x36022CCC: push 0 */
   7575     PUSH32(esp, 0x361B5CD8u); /* 0x36022CCE: push 0x361b5cd8 */
   7576     RECOMP_BACKEDGE();
   7577     goto L_36022C25; /* 0x36022CD3: jmp 0x36022c25 */
   7578 L_36022CD8:
   7579     PUSH32(esp, 0x34u); /* 0x36022CD8: push 0x34 */
   7580     RECOMP_ICALL(0x3615FD6Au); /* 0x36022CDA: call 0x3615fd6a */ /* not lifted */
   7581     RECOMP_FLAGS_IN();
   7582     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7583     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7584     esp = esp + 4; /* 0x36022CDF: add esp, 4 */
   7585     _flag_k = FK_ADD;
   7586     MEM32(ebp + (-0x18)) = eax; /* 0x36022CE2: mov dword ptr [ebp - 0x18], eax */
   7587     /* test eax, eax */ /* 0x36022CE5: test eax, eax */
   7588     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7589     _cf = 0;
   7590     _flag_k = FK_TEST;
   7591     MEM32(ebp + (-0x4)) = 0; /* 0x36022CE7: mov dword ptr [ebp - 4], 0 */
   7592     if (TEST_Z(_flag_a, _flag_b)) goto L_36022D10; /* 0x36022CEE: je 0x36022d10 */
   7593 L_36022CF0:
   7594     ecx = MEM32(ebp + 0xC); /* 0x36022CF0: mov ecx, dword ptr [ebp + 0xc] */
   7595     edx = MEM32(ebp + 0x8); /* 0x36022CF3: mov edx, dword ptr [ebp + 8] */
   7596     PUSH32(esp, ecx); /* 0x36022CF6: push ecx */
   7597     ecx = MEM32(ebp + (-0x10)); /* 0x36022CF7: mov ecx, dword ptr [ebp - 0x10] */
   7598     PUSH32(esp, 0x35u); /* 0x36022CFA: push 0x35 */
   7599     PUSH32(esp, edx); /* 0x36022CFC: push edx */
   7600     edx = MEM32(ecx + 0x88); /* 0x36022CFD: mov edx, dword ptr [ecx + 0x88] */
   7601     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   7602     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7603     edx = edx + 4; /* 0x36022D03: add edx, 4 */
   7604     _flag_k = FK_ADD;
   7605     PUSH32(esp, edx); /* 0x36022D06: push edx */
   7606     ecx = eax; /* 0x36022D07: mov ecx, eax */
   7607     RECOMP_ICALL(0x3607D4B0u); /* 0x36022D09: call 0x3607d4b0 */ /* not lifted */
   7608     RECOMP_FLAGS_IN();
   7609     goto L_36022D12; /* 0x36022D0E: jmp 0x36022d12 */
   7610 L_36022D10:
   7611     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7612     eax = 0; /* 0x36022D10: xor eax, eax */
   7613     _cf = 0;
   7614     _flag_k = FK_TEST;
   7615 L_36022D12:
   7616     ecx = MEM32(ebp + (-0x10)); /* 0x36022D12: mov ecx, dword ptr [ebp - 0x10] */
   7617     ecx = MEM32(ecx + 0x88); /* 0x36022D15: mov ecx, dword ptr [ecx + 0x88] */
   7618     MEM32(ebp + (-0x14)) = eax; /* 0x36022D1B: mov dword ptr [ebp - 0x14], eax */
   7619     eax = ebp + (-0x14); /* 0x36022D1E: lea eax, [ebp - 0x14] */
   7620     PUSH32(esp, eax); /* 0x36022D21: push eax */
   7621     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36022D22: mov dword ptr [ebp - 4], 0xffffffff */
   7622     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36022D29: call dword ptr [0x3617004c] */
   7623     RECOMP_FLAGS_IN();
   7624     ecx = MEM32(ebp + (-0xC)); /* 0x36022D2F: mov ecx, dword ptr [ebp - 0xc] */
   7625     edi = POP32_VAL(esp); /* 0x36022D32: pop edi */
   7626     esi = POP32_VAL(esp); /* 0x36022D33: pop esi */
   7627     SET_LO8(eax, 1); /* 0x36022D34: mov al, 1 */
   7628     ebx = POP32_VAL(esp); /* 0x36022D36: pop ebx */
   7629     MEM32(FS_BASE + (0)) = ecx; /* 0x36022D37: mov dword ptr fs:[0], ecx */
   7630     esp = ebp; /* 0x36022D3E: mov esp, ebp */
   7631     ebp = POP32_VAL(esp); /* 0x36022D40: pop ebp */
   7632     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022D41: ret 8 */
   7633     RECOMP_REGS_OUT();
   7634 }
   7635 
   7636 void sub_36022C25(void) {
   7637     int _fpu_cmp = 0;
   7638     uint32_t _cf = 0;
   7639     int _df = 1;
   7640     uint32_t _flag_k = FK_NONE;
   7641     uint32_t _flag_a = 0, _flag_b = 0;
   7642     uint32_t _itail_tgt = 0;
   7643     RECOMP_REGS_LOCALS
   7644     RECOMP_ENTER(0x36022C25u);
   7645 
   7646 L_36022C25:
   7647     RECOMP_ICALL(0x3601C590u); /* 0x36022C25: call 0x3601c590 */ /* not lifted */
   7648     RECOMP_FLAGS_IN();
   7649     ecx = eax; /* 0x36022C2A: mov ecx, eax */
   7650     RECOMP_ICALL(0x3601C8C0u); /* 0x36022C2C: call 0x3601c8c0 */ /* not lifted */
   7651     RECOMP_FLAGS_IN();
   7652     edi = POP32_VAL(esp); /* 0x36022C31: pop edi */
   7653     esi = POP32_VAL(esp); /* 0x36022C32: pop esi */
   7654     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7655     SET_LO8(eax, 0); /* 0x36022C33: xor al, al */
   7656     _cf = 0;
   7657     _flag_k = FK_NARROW(FK_TEST, 24);
   7658     ebx = POP32_VAL(esp); /* 0x36022C35: pop ebx */
   7659     ecx = MEM32(ebp + (-0xC)); /* 0x36022C36: mov ecx, dword ptr [ebp - 0xc] */
   7660     MEM32(FS_BASE + (0)) = ecx; /* 0x36022C39: mov dword ptr fs:[0], ecx */
   7661     esp = ebp; /* 0x36022C40: mov esp, ebp */
   7662     ebp = POP32_VAL(esp); /* 0x36022C42: pop ebp */
   7663     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022C43: ret 8 */
   7664     RECOMP_REGS_OUT();
   7665 }
   7666 
   7667 void sub_36022D50(void) {
   7668     int _fpu_cmp = 0;
   7669     uint32_t _cf = 0;
   7670     int _df = 1;
   7671     uint32_t _flag_k = FK_NONE;
   7672     uint32_t _flag_a = 0, _flag_b = 0;
   7673     uint32_t _itail_tgt = 0;
   7674     RECOMP_REGS_LOCALS
   7675     RECOMP_ENTER(0x36022D50u);
   7676 
   7677 L_36022D50:
   7678     PUSH32(esp, ebp); /* 0x36022D50: push ebp */
   7679     ebp = esp; /* 0x36022D51: mov ebp, esp */
   7680     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022D53: push -1 */
   7681     PUSH32(esp, 0x3616328Bu); /* 0x36022D55: push 0x3616328b */
   7682     eax = MEM32(FS_BASE + (0)); /* 0x36022D5A: mov eax, dword ptr fs:[0] */
   7683     PUSH32(esp, eax); /* 0x36022D60: push eax */
   7684     MEM32(FS_BASE + (0)) = esp; /* 0x36022D61: mov dword ptr fs:[0], esp */
   7685     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7687     esp = esp - 0xCu; /* 0x36022D68: sub esp, 0xc */
   7688     _flag_k = FK_CMP;
   7689     PUSH32(esp, ebx); /* 0x36022D6B: push ebx */
   7690     PUSH32(esp, esi); /* 0x36022D6C: push esi */
   7691     esi = MEM32(ebp + 0x8); /* 0x36022D6D: mov esi, dword ptr [ebp + 8] */
   7692     eax = MEM32(esi); /* 0x36022D70: mov eax, dword ptr [esi] */
   7693     /* cmp eax, 0x64u */ /* 0x36022D72: cmp eax, 0x64 */
   7694     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u);
   7695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7696     _flag_k = FK_CMP;
   7697     PUSH32(esp, edi); /* 0x36022D75: push edi */
   7698     MEM32(ebp + (-0x10)) = ecx; /* 0x36022D76: mov dword ptr [ebp - 0x10], ecx */
   7699     if (CMP_LE(_flag_a, _flag_b)) goto L_36022DC2; /* 0x36022D79: jle 0x36022dc2 */
   7700 L_36022D7B:
   7701     /* cmp eax, 0xFAu */ /* 0x36022D7B: cmp eax, 0xfa */
   7702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFAu);
   7703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7704     _flag_k = FK_CMP;
   7705     if (CMP_GE(_flag_a, _flag_b)) goto L_36022DC2; /* 0x36022D80: jge 0x36022dc2 */
   7706 L_36022D82:
   7707     RECOMP_ICALL(0x3601F240u); /* 0x36022D82: call 0x3601f240 */ /* not lifted */
   7708     RECOMP_FLAGS_IN();
   7709     edi = eax; /* 0x36022D87: mov edi, eax */
   7710     /* test edi, edi */ /* 0x36022D89: test edi, edi */
   7711     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7712     _cf = 0;
   7713     _flag_k = FK_TEST;
   7714     if (TEST_Z(_flag_a, _flag_b)) goto L_36022DC2; /* 0x36022D8B: je 0x36022dc2 */
   7715 L_36022D8D:
   7716     ecx = MEM32(edi + 0x150); /* 0x36022D8D: mov ecx, dword ptr [edi + 0x150] */
   7717     PUSH32(esp, esi); /* 0x36022D93: push esi */
   7718     RECOMP_ICALL(0x3605F970u); /* 0x36022D94: call 0x3605f970 */ /* not lifted */
   7719     RECOMP_FLAGS_IN();
   7720     /* test eax, eax */ /* 0x36022D99: test eax, eax */
   7721     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7722     _cf = 0;
   7723     _flag_k = FK_TEST;
   7724     if (TEST_Z(_flag_a, _flag_b)) goto L_36022DD7; /* 0x36022D9B: je 0x36022dd7 */
   7725 L_36022D9D:
   7726     edx = MEM32(eax); /* 0x36022D9D: mov edx, dword ptr [eax] */
   7727     PUSH32(esp, 2); /* 0x36022D9F: push 2 */
   7728     PUSH32(esp, 0x1Eu); /* 0x36022DA1: push 0x1e */
   7729     ecx = eax; /* 0x36022DA3: mov ecx, eax */
   7730     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36022DA5: call dword ptr [edx + 4] */
   7731     RECOMP_FLAGS_IN();
   7732     /* test eax, 0x01000000u */ /* 0x36022DA8: test eax, 0x1000000 */
   7733     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x01000000u);
   7734     _cf = 0;
   7735     _flag_k = FK_TEST;
   7736     if (TEST_Z(_flag_a, _flag_b)) goto L_36022DD7; /* 0x36022DAD: je 0x36022dd7 */
   7737 L_36022DAF:
   7738     PUSH32(esp, 0); /* 0x36022DAF: push 0 */
   7739     PUSH32(esp, 0x361B5D64u); /* 0x36022DB1: push 0x361b5d64 */
   7740 L_36022DB6:
   7741     RECOMP_ICALL(0x3601C590u); /* 0x36022DB6: call 0x3601c590 */ /* not lifted */
   7742     RECOMP_FLAGS_IN();
   7743     ecx = eax; /* 0x36022DBB: mov ecx, eax */
   7744     RECOMP_ICALL(0x3601C8C0u); /* 0x36022DBD: call 0x3601c8c0 */ /* not lifted */
   7745     RECOMP_FLAGS_IN();
   7746 L_36022DC2:
   7747     edi = POP32_VAL(esp); /* 0x36022DC2: pop edi */
   7748     esi = POP32_VAL(esp); /* 0x36022DC3: pop esi */
   7749     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7750     SET_LO8(eax, 0); /* 0x36022DC4: xor al, al */
   7751     _cf = 0;
   7752     _flag_k = FK_NARROW(FK_TEST, 24);
   7753     ebx = POP32_VAL(esp); /* 0x36022DC6: pop ebx */
   7754     ecx = MEM32(ebp + (-0xC)); /* 0x36022DC7: mov ecx, dword ptr [ebp - 0xc] */
   7755     MEM32(FS_BASE + (0)) = ecx; /* 0x36022DCA: mov dword ptr fs:[0], ecx */
   7756     esp = ebp; /* 0x36022DD1: mov esp, ebp */
   7757     ebp = POP32_VAL(esp); /* 0x36022DD3: pop ebp */
   7758     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022DD4: ret 8 */
   7759 L_36022DD7:
   7760     ecx = MEM32(edi + 0x150); /* 0x36022DD7: mov ecx, dword ptr [edi + 0x150] */
   7761     PUSH32(esp, esi); /* 0x36022DDD: push esi */
   7762     RECOMP_ICALL(0x36062250u); /* 0x36022DDE: call 0x36062250 */ /* not lifted */
   7763     RECOMP_FLAGS_IN();
   7764     ebx = MEM32(ebp + 0xC); /* 0x36022DE3: mov ebx, dword ptr [ebp + 0xc] */
   7765     ecx = ebx + 0x1; /* 0x36022DE6: lea ecx, [ebx + 1] */
   7766     /* cmp eax, ecx */ /* 0x36022DE9: cmp eax, ecx */
   7767     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7769     _flag_k = FK_CMP;
   7770     RECOMP_BACKEDGE();
   7771     if (CMP_L(_flag_a, _flag_b)) goto L_36022DC2; /* 0x36022DEB: jl 0x36022dc2 */
   7772 L_36022DED:
   7773     ecx = MEM32(edi + 0x150); /* 0x36022DED: mov ecx, dword ptr [edi + 0x150] */
   7774     PUSH32(esp, esi); /* 0x36022DF3: push esi */
   7775     RECOMP_ICALL(0x36061920u); /* 0x36022DF4: call 0x36061920 */ /* not lifted */
   7776     RECOMP_FLAGS_IN();
   7777     /* test LO8(eax), LO8(eax) */ /* 0x36022DF9: test al, al */
   7778     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7779     _cf = 0;
   7780     _flag_k = FK_NARROW(FK_TEST, 24);
   7781     if (TEST_NZ(_flag_a, _flag_b)) goto L_36022E06; /* 0x36022DFB: jne 0x36022e06 */
   7782 L_36022DFD:
   7783     PUSH32(esp, 0); /* 0x36022DFD: push 0 */
   7784     PUSH32(esp, 0x361B5D38u); /* 0x36022DFF: push 0x361b5d38 */
   7785     RECOMP_BACKEDGE();
   7786     goto L_36022DB6; /* 0x36022E04: jmp 0x36022db6 */
   7787 L_36022E06:
   7788     edi = MEM32(edi + 0x150); /* 0x36022E06: mov edi, dword ptr [edi + 0x150] */
   7789     PUSH32(esp, ebx); /* 0x36022E0C: push ebx */
   7790     PUSH32(esp, esi); /* 0x36022E0D: push esi */
   7791     ecx = edi; /* 0x36022E0E: mov ecx, edi */
   7792     RECOMP_ICALL(0x3605EDB0u); /* 0x36022E10: call 0x3605edb0 */ /* not lifted */
   7793     RECOMP_FLAGS_IN();
   7794     PUSH32(esp, 0x34u); /* 0x36022E15: push 0x34 */
   7795     RECOMP_ICALL(0x3615FD6Au); /* 0x36022E17: call 0x3615fd6a */ /* not lifted */
   7796     RECOMP_FLAGS_IN();
   7797     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7798     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7799     esp = esp + 4; /* 0x36022E1C: add esp, 4 */
   7800     _flag_k = FK_ADD;
   7801     MEM32(ebp + 0xC) = eax; /* 0x36022E1F: mov dword ptr [ebp + 0xc], eax */
   7802     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7803     ecx = 0; /* 0x36022E22: xor ecx, ecx */
   7804     _cf = 0;
   7805     _flag_k = FK_TEST;
   7806     /* cmp eax, ecx */ /* 0x36022E24: cmp eax, ecx */
   7807     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7809     _flag_k = FK_CMP;
   7810     MEM32(ebp + (-0x4)) = ecx; /* 0x36022E26: mov dword ptr [ebp - 4], ecx */
   7811     if (CMP_EQ(_flag_a, _flag_b)) goto L_36022E4E; /* 0x36022E29: je 0x36022e4e */
   7812 L_36022E2B:
   7813     MEM32(ebp + (-0x18)) = ecx; /* 0x36022E2B: mov dword ptr [ebp - 0x18], ecx */
   7814     ecx = MEM32(ebp + (-0x10)); /* 0x36022E2E: mov ecx, dword ptr [ebp - 0x10] */
   7815     edx = ebp + (-0x18); /* 0x36022E31: lea edx, [ebp - 0x18] */
   7816     PUSH32(esp, edx); /* 0x36022E34: push edx */
   7817     edx = MEM32(ecx + 0x88); /* 0x36022E35: mov edx, dword ptr [ecx + 0x88] */
   7818     PUSH32(esp, 0x34u); /* 0x36022E3B: push 0x34 */
   7819     PUSH32(esp, esi); /* 0x36022E3D: push esi */
   7820     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   7821     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7822     edx = edx + 4; /* 0x36022E3E: add edx, 4 */
   7823     _flag_k = FK_ADD;
   7824     PUSH32(esp, edx); /* 0x36022E41: push edx */
   7825     ecx = eax; /* 0x36022E42: mov ecx, eax */
   7826     MEM32(ebp + (-0x14)) = ebx; /* 0x36022E44: mov dword ptr [ebp - 0x14], ebx */
   7827     RECOMP_ICALL(0x3607D4B0u); /* 0x36022E47: call 0x3607d4b0 */ /* not lifted */
   7828     RECOMP_FLAGS_IN();
   7829     goto L_36022E50; /* 0x36022E4C: jmp 0x36022e50 */
   7830 L_36022E4E:
   7831     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7832     eax = 0; /* 0x36022E4E: xor eax, eax */
   7833     _cf = 0;
   7834     _flag_k = FK_TEST;
   7835 L_36022E50:
   7836     ecx = MEM32(ebp + (-0x10)); /* 0x36022E50: mov ecx, dword ptr [ebp - 0x10] */
   7837     ecx = MEM32(ecx + 0x88); /* 0x36022E53: mov ecx, dword ptr [ecx + 0x88] */
   7838     MEM32(ebp + 0x8) = eax; /* 0x36022E59: mov dword ptr [ebp + 8], eax */
   7839     eax = ebp + 0x8; /* 0x36022E5C: lea eax, [ebp + 8] */
   7840     PUSH32(esp, eax); /* 0x36022E5F: push eax */
   7841     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36022E60: mov dword ptr [ebp - 4], 0xffffffff */
   7842     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36022E67: call dword ptr [0x3617004c] */
   7843     RECOMP_FLAGS_IN();
   7844     ecx = MEM32(ebp + (-0xC)); /* 0x36022E6D: mov ecx, dword ptr [ebp - 0xc] */
   7845     edi = POP32_VAL(esp); /* 0x36022E70: pop edi */
   7846     esi = POP32_VAL(esp); /* 0x36022E71: pop esi */
   7847     SET_LO8(eax, 1); /* 0x36022E72: mov al, 1 */
   7848     ebx = POP32_VAL(esp); /* 0x36022E74: pop ebx */
   7849     MEM32(FS_BASE + (0)) = ecx; /* 0x36022E75: mov dword ptr fs:[0], ecx */
   7850     esp = ebp; /* 0x36022E7C: mov esp, ebp */
   7851     ebp = POP32_VAL(esp); /* 0x36022E7E: pop ebp */
   7852     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022E7F: ret 8 */
   7853     RECOMP_REGS_OUT();
   7854 }
   7855 
   7856 void sub_36022E90(void) {
   7857     int _fpu_cmp = 0;
   7858     uint32_t _cf = 0;
   7859     int _df = 1;
   7860     uint32_t _flag_k = FK_NONE;
   7861     uint32_t _flag_a = 0, _flag_b = 0;
   7862     uint32_t _itail_tgt = 0;
   7863     RECOMP_REGS_LOCALS
   7864     RECOMP_ENTER(0x36022E90u);
   7865 
   7866 L_36022E90:
   7867     eax = MEM32(0x361706C0); /* 0x36022E90: mov eax, dword ptr [0x361706c0] */
   7868     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022E95: ret 8 */
   7869     RECOMP_REGS_OUT();
   7870 }
   7871 
   7872 void sub_36022EA0(void) {
   7873     int _fpu_cmp = 0;
   7874     uint32_t _cf = 0;
   7875     int _df = 1;
   7876     uint32_t _flag_k = FK_NONE;
   7877     uint32_t _flag_a = 0, _flag_b = 0;
   7878     uint32_t _itail_tgt = 0;
   7879     RECOMP_REGS_LOCALS
   7880     RECOMP_ENTER(0x36022EA0u);
   7881 
   7882 L_36022EA0:
   7883     eax = MEM32(0x361706D8); /* 0x36022EA0: mov eax, dword ptr [0x361706d8] */
   7884     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022EA5: ret 8 */
   7885     RECOMP_REGS_OUT();
   7886 }
   7887 
   7888 void sub_36022EB0(void) {
   7889     int _fpu_cmp = 0;
   7890     uint32_t _cf = 0;
   7891     int _df = 1;
   7892     uint32_t _flag_k = FK_NONE;
   7893     uint32_t _flag_a = 0, _flag_b = 0;
   7894     uint32_t _itail_tgt = 0;
   7895     RECOMP_REGS_LOCALS
   7896     RECOMP_ENTER(0x36022EB0u);
   7897 
   7898 L_36022EB0:
   7899     PUSH32(esp, ebp); /* 0x36022EB0: push ebp */
   7900     ebp = esp; /* 0x36022EB1: mov ebp, esp */
   7901     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022EB3: push -1 */
   7902     PUSH32(esp, 0x361632ABu); /* 0x36022EB5: push 0x361632ab */
   7903     eax = MEM32(FS_BASE + (0)); /* 0x36022EBA: mov eax, dword ptr fs:[0] */
   7904     PUSH32(esp, eax); /* 0x36022EC0: push eax */
   7905     MEM32(FS_BASE + (0)) = esp; /* 0x36022EC1: mov dword ptr fs:[0], esp */
   7906     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7907     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7908     esp = esp - 8; /* 0x36022EC8: sub esp, 8 */
   7909     _flag_k = FK_CMP;
   7910     PUSH32(esp, esi); /* 0x36022ECB: push esi */
   7911     PUSH32(esp, 0x34u); /* 0x36022ECC: push 0x34 */
   7912     esi = ecx; /* 0x36022ECE: mov esi, ecx */
   7913     RECOMP_ICALL(0x3615FD6Au); /* 0x36022ED0: call 0x3615fd6a */ /* not lifted */
   7914     RECOMP_FLAGS_IN();
   7915     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7916     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7917     esp = esp + 4; /* 0x36022ED5: add esp, 4 */
   7918     _flag_k = FK_ADD;
   7919     MEM32(ebp + (-0x14)) = eax; /* 0x36022ED8: mov dword ptr [ebp - 0x14], eax */
   7920     /* test eax, eax */ /* 0x36022EDB: test eax, eax */
   7921     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7922     _cf = 0;
   7923     _flag_k = FK_TEST;
   7924     MEM32(ebp + (-0x4)) = 0; /* 0x36022EDD: mov dword ptr [ebp - 4], 0 */
   7925     if (TEST_Z(_flag_a, _flag_b)) goto L_36022F04; /* 0x36022EE4: je 0x36022f04 */
   7926 L_36022EE6:
   7927     ecx = MEM32(ebp + 0x8); /* 0x36022EE6: mov ecx, dword ptr [ebp + 8] */
   7928     edx = MEM32(esi + 0x88); /* 0x36022EE9: mov edx, dword ptr [esi + 0x88] */
   7929     PUSH32(esp, 0x36305AE0u); /* 0x36022EEF: push 0x36305ae0 */
   7930     PUSH32(esp, 0x36u); /* 0x36022EF4: push 0x36 */
   7931     PUSH32(esp, ecx); /* 0x36022EF6: push ecx */
   7932     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   7933     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7934     edx = edx + 4; /* 0x36022EF7: add edx, 4 */
   7935     _flag_k = FK_ADD;
   7936     PUSH32(esp, edx); /* 0x36022EFA: push edx */
   7937     ecx = eax; /* 0x36022EFB: mov ecx, eax */
   7938     RECOMP_ICALL(0x3607D4B0u); /* 0x36022EFD: call 0x3607d4b0 */ /* not lifted */
   7939     RECOMP_FLAGS_IN();
   7940     goto L_36022F06; /* 0x36022F02: jmp 0x36022f06 */
   7941 L_36022F04:
   7942     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7943     eax = 0; /* 0x36022F04: xor eax, eax */
   7944     _cf = 0;
   7945     _flag_k = FK_TEST;
   7946 L_36022F06:
   7947     ecx = MEM32(esi + 0x88); /* 0x36022F06: mov ecx, dword ptr [esi + 0x88] */
   7948     MEM32(ebp + (-0x10)) = eax; /* 0x36022F0C: mov dword ptr [ebp - 0x10], eax */
   7949     eax = ebp + (-0x10); /* 0x36022F0F: lea eax, [ebp - 0x10] */
   7950     PUSH32(esp, eax); /* 0x36022F12: push eax */
   7951     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36022F13: mov dword ptr [ebp - 4], 0xffffffff */
   7952     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36022F1A: call dword ptr [0x3617004c] */
   7953     RECOMP_FLAGS_IN();
   7954     ecx = MEM32(ebp + (-0xC)); /* 0x36022F20: mov ecx, dword ptr [ebp - 0xc] */
   7955     esi = POP32_VAL(esp); /* 0x36022F23: pop esi */
   7956     MEM32(FS_BASE + (0)) = ecx; /* 0x36022F24: mov dword ptr fs:[0], ecx */
   7957     esp = ebp; /* 0x36022F2B: mov esp, ebp */
   7958     ebp = POP32_VAL(esp); /* 0x36022F2D: pop ebp */
   7959     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022F2E: ret 4 */
   7960     RECOMP_REGS_OUT();
   7961 }
   7962 
   7963 void sub_36022F40(void) {
   7964     int _fpu_cmp = 0;
   7965     uint32_t _cf = 0;
   7966     int _df = 1;
   7967     uint32_t _flag_k = FK_NONE;
   7968     uint32_t _flag_a = 0, _flag_b = 0;
   7969     uint32_t _itail_tgt = 0;
   7970     RECOMP_REGS_LOCALS
   7971     RECOMP_ENTER(0x36022F40u);
   7972 
   7973 L_36022F40:
   7974     PUSH32(esp, ebp); /* 0x36022F40: push ebp */
   7975     ebp = esp; /* 0x36022F41: mov ebp, esp */
   7976     RECOMP_ICALL(0x3601F240u); /* 0x36022F43: call 0x3601f240 */ /* not lifted */
   7977     RECOMP_FLAGS_IN();
   7978     /* test eax, eax */ /* 0x36022F48: test eax, eax */
   7979     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7980     _cf = 0;
   7981     _flag_k = FK_TEST;
   7982     if (TEST_Z(_flag_a, _flag_b)) goto L_36022F66; /* 0x36022F4A: je 0x36022f66 */
   7983 L_36022F4C:
   7984     ecx = MEM32(ebp + 0xC); /* 0x36022F4C: mov ecx, dword ptr [ebp + 0xc] */
   7985     edx = MEM32(ebp + 0x8); /* 0x36022F4F: mov edx, dword ptr [ebp + 8] */
   7986     PUSH32(esp, ecx); /* 0x36022F52: push ecx */
   7987     PUSH32(esp, edx); /* 0x36022F53: push edx */
   7988     ecx = eax; /* 0x36022F54: mov ecx, eax */
   7989     RECOMP_ICALL(0x36072000u); /* 0x36022F56: call 0x36072000 */ /* not lifted */
   7990     RECOMP_FLAGS_IN();
   7991     ecx = eax; /* 0x36022F5B: mov ecx, eax */
   7992     RECOMP_ICALL(0x36053BE0u); /* 0x36022F5D: call 0x36053be0 */ /* not lifted */
   7993     RECOMP_FLAGS_IN();
   7994     ebp = POP32_VAL(esp); /* 0x36022F62: pop ebp */
   7995     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022F63: ret 8 */
   7996 L_36022F66:
   7997     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7998     SET_LO8(eax, 0); /* 0x36022F66: xor al, al */
   7999     _cf = 0;
   8000     _flag_k = FK_NARROW(FK_TEST, 24);
   8001     ebp = POP32_VAL(esp); /* 0x36022F68: pop ebp */
   8002     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36022F69: ret 8 */
   8003     RECOMP_REGS_OUT();
   8004 }
   8005 
   8006 void sub_36022F70(void) {
   8007     int _fpu_cmp = 0;
   8008     uint32_t _cf = 0;
   8009     int _df = 1;
   8010     uint32_t _flag_k = FK_NONE;
   8011     uint32_t _flag_a = 0, _flag_b = 0;
   8012     uint32_t _itail_tgt = 0;
   8013     RECOMP_REGS_LOCALS
   8014     RECOMP_ENTER(0x36022F70u);
   8015 
   8016 L_36022F70:
   8017     PUSH32(esp, ebp); /* 0x36022F70: push ebp */
   8018     ebp = esp; /* 0x36022F71: mov ebp, esp */
   8019     RECOMP_ICALL(0x3601F240u); /* 0x36022F73: call 0x3601f240 */ /* not lifted */
   8020     RECOMP_FLAGS_IN();
   8021     /* test eax, eax */ /* 0x36022F78: test eax, eax */
   8022     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8023     _cf = 0;
   8024     _flag_k = FK_TEST;
   8025     if (TEST_Z(_flag_a, _flag_b)) goto L_36022F91; /* 0x36022F7A: je 0x36022f91 */
   8026 L_36022F7C:
   8027     ecx = MEM32(ebp + 0x8); /* 0x36022F7C: mov ecx, dword ptr [ebp + 8] */
   8028     eax = MEM32(eax + 0x150); /* 0x36022F7F: mov eax, dword ptr [eax + 0x150] */
   8029     PUSH32(esp, ecx); /* 0x36022F85: push ecx */
   8030     ecx = eax; /* 0x36022F86: mov ecx, eax */
   8031     RECOMP_ICALL(0x360619D0u); /* 0x36022F88: call 0x360619d0 */ /* not lifted */
   8032     RECOMP_FLAGS_IN();
   8033     ebp = POP32_VAL(esp); /* 0x36022F8D: pop ebp */
   8034     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022F8E: ret 4 */
   8035 L_36022F91:
   8036     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8037     SET_LO8(eax, 0); /* 0x36022F91: xor al, al */
   8038     _cf = 0;
   8039     _flag_k = FK_NARROW(FK_TEST, 24);
   8040     ebp = POP32_VAL(esp); /* 0x36022F93: pop ebp */
   8041     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022F94: ret 4 */
   8042     RECOMP_REGS_OUT();
   8043 }
   8044 
   8045 void sub_36022FA0(void) {
   8046     int _fpu_cmp = 0;
   8047     uint32_t _cf = 0;
   8048     int _df = 1;
   8049     uint32_t _flag_k = FK_NONE;
   8050     uint32_t _flag_a = 0, _flag_b = 0;
   8051     uint32_t _itail_tgt = 0;
   8052     RECOMP_REGS_LOCALS
   8053     RECOMP_ENTER(0x36022FA0u);
   8054 
   8055 L_36022FA0:
   8056     PUSH32(esp, ebp); /* 0x36022FA0: push ebp */
   8057     ebp = esp; /* 0x36022FA1: mov ebp, esp */
   8058     RECOMP_ICALL(0x3601F240u); /* 0x36022FA3: call 0x3601f240 */ /* not lifted */
   8059     RECOMP_FLAGS_IN();
   8060     /* test eax, eax */ /* 0x36022FA8: test eax, eax */
   8061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8062     _cf = 0;
   8063     _flag_k = FK_TEST;
   8064     if (TEST_Z(_flag_a, _flag_b)) goto L_36022FBB; /* 0x36022FAA: je 0x36022fbb */
   8065 L_36022FAC:
   8066     ecx = MEM32(ebp + 0x8); /* 0x36022FAC: mov ecx, dword ptr [ebp + 8] */
   8067     PUSH32(esp, ecx); /* 0x36022FAF: push ecx */
   8068     ecx = MEM32(eax + 0x150); /* 0x36022FB0: mov ecx, dword ptr [eax + 0x150] */
   8069     RECOMP_ICALL(0x360624B0u); /* 0x36022FB6: call 0x360624b0 */ /* not lifted */
   8070     RECOMP_FLAGS_IN();
   8071 L_36022FBB:
   8072     ebp = POP32_VAL(esp); /* 0x36022FBB: pop ebp */
   8073     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36022FBC: ret 4 */
   8074     RECOMP_REGS_OUT();
   8075 }
   8076 
   8077 void sub_36022FC0(void) {
   8078     int _fpu_cmp = 0;
   8079     uint32_t _cf = 0;
   8080     int _df = 1;
   8081     uint32_t _flag_k = FK_NONE;
   8082     uint32_t _flag_a = 0, _flag_b = 0;
   8083     uint32_t _itail_tgt = 0;
   8084     RECOMP_REGS_LOCALS
   8085     RECOMP_ENTER(0x36022FC0u);
   8086 
   8087 L_36022FC0:
   8088     PUSH32(esp, ebp); /* 0x36022FC0: push ebp */
   8089     ebp = esp; /* 0x36022FC1: mov ebp, esp */
   8090     PUSH32(esp, 0xFFFFFFFFu); /* 0x36022FC3: push -1 */
   8091     PUSH32(esp, 0x361632CBu); /* 0x36022FC5: push 0x361632cb */
   8092     eax = MEM32(FS_BASE + (0)); /* 0x36022FCA: mov eax, dword ptr fs:[0] */
   8093     PUSH32(esp, eax); /* 0x36022FD0: push eax */
   8094     MEM32(FS_BASE + (0)) = esp; /* 0x36022FD1: mov dword ptr fs:[0], esp */
   8095     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8097     esp = esp - 0x10u; /* 0x36022FD8: sub esp, 0x10 */
   8098     _flag_k = FK_CMP;
   8099     PUSH32(esp, ebx); /* 0x36022FDB: push ebx */
   8100     PUSH32(esp, esi); /* 0x36022FDC: push esi */
   8101     PUSH32(esp, edi); /* 0x36022FDD: push edi */
   8102     RECOMP_ICALL(0x3601F240u); /* 0x36022FDE: call 0x3601f240 */ /* not lifted */
   8103     RECOMP_FLAGS_IN();
   8104     esi = eax; /* 0x36022FE3: mov esi, eax */
   8105     /* test esi, esi */ /* 0x36022FE5: test esi, esi */
   8106     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8107     _cf = 0;
   8108     _flag_k = FK_TEST;
   8109     if (TEST_Z(_flag_a, _flag_b)) goto L_360230F1; /* 0x36022FE7: je 0x360230f1 */
   8110 L_36022FED:
   8111     ecx = esi; /* 0x36022FED: mov ecx, esi */
   8112     RECOMP_ICALL(0x3606D5A0u); /* 0x36022FEF: call 0x3606d5a0 */ /* not lifted */
   8113     RECOMP_FLAGS_IN();
   8114     ecx = eax; /* 0x36022FF4: mov ecx, eax */
   8115     RECOMP_ICALL(0x36047900u); /* 0x36022FF6: call 0x36047900 */ /* not lifted */
   8116     RECOMP_FLAGS_IN();
   8117     ecx = eax; /* 0x36022FFB: mov ecx, eax */
   8118     RECOMP_ICALL(0x36008320u); /* 0x36022FFD: call 0x36008320 */ /* not lifted */
   8119     RECOMP_FLAGS_IN();
   8120     /* cmp eax, 7 */ /* 0x36023002: cmp eax, 7 */
   8121     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   8122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8123     _flag_k = FK_CMP;
   8124     edi = MEM32(ebp + 0x8); /* 0x36023005: mov edi, dword ptr [ebp + 8] */
   8125     if (CMP_NE(_flag_a, _flag_b)) goto L_36023013; /* 0x36023008: jne 0x36023013 */
   8126 L_3602300A:
   8127     /* cmp edi, 0xDu */ /* 0x3602300A: cmp edi, 0xd */
   8128     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xDu);
   8129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8130     _flag_k = FK_CMP;
   8131     if (CMP_EQ(_flag_a, _flag_b)) goto L_360230F1; /* 0x3602300D: je 0x360230f1 */
   8132 L_36023013:
   8133     ecx = esi; /* 0x36023013: mov ecx, esi */
   8134     RECOMP_ICALL(0x3606D5A0u); /* 0x36023015: call 0x3606d5a0 */ /* not lifted */
   8135     RECOMP_FLAGS_IN();
   8136     ecx = eax; /* 0x3602301A: mov ecx, eax */
   8137     RECOMP_ICALL(0x36047900u); /* 0x3602301C: call 0x36047900 */ /* not lifted */
   8138     RECOMP_FLAGS_IN();
   8139     ecx = eax; /* 0x36023021: mov ecx, eax */
   8140     RECOMP_ICALL(0x36008320u); /* 0x36023023: call 0x36008320 */ /* not lifted */
   8141     RECOMP_FLAGS_IN();
   8142     /* cmp eax, 8 */ /* 0x36023028: cmp eax, 8 */
   8143     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   8144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8145     _flag_k = FK_CMP;
   8146     if (CMP_NE(_flag_a, _flag_b)) goto L_36023036; /* 0x3602302B: jne 0x36023036 */
   8147 L_3602302D:
   8148     /* cmp edi, 0x1Au */ /* 0x3602302D: cmp edi, 0x1a */
   8149     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x1Au);
   8150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8151     _flag_k = FK_CMP;
   8152     if (CMP_EQ(_flag_a, _flag_b)) goto L_360230F1; /* 0x36023030: je 0x360230f1 */
   8153 L_36023036:
   8154     SET_LO8(eax, MEM8(0x36305B2C)); /* 0x36023036: mov al, byte ptr [0x36305b2c] */
   8155     /* test LO8(eax), LO8(eax) */ /* 0x3602303B: test al, al */
   8156     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8157     _cf = 0;
   8158     _flag_k = FK_NARROW(FK_TEST, 24);
   8159     if (TEST_Z(_flag_a, _flag_b)) goto L_3602306D; /* 0x3602303D: je 0x3602306d */
   8160 L_3602303F:
   8161     /* cmp edi, 0xBu */ /* 0x3602303F: cmp edi, 0xb */
   8162     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xBu);
   8163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8164     _flag_k = FK_CMP;
   8165     if (CMP_NE(_flag_a, _flag_b)) goto L_3602304B; /* 0x36023042: jne 0x3602304b */
   8166 L_36023044:
   8167     edi = 7; /* 0x36023044: mov edi, 7 */
   8168     goto L_3602306D; /* 0x36023049: jmp 0x3602306d */
   8169 L_3602304B:
   8170     /* cmp edi, 9 */ /* 0x3602304B: cmp edi, 9 */
   8171     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(9);
   8172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8173     _flag_k = FK_CMP;
   8174     if (CMP_NE(_flag_a, _flag_b)) goto L_36023057; /* 0x3602304E: jne 0x36023057 */
   8175 L_36023050:
   8176     edi = 5; /* 0x36023050: mov edi, 5 */
   8177     goto L_3602306D; /* 0x36023055: jmp 0x3602306d */
   8178 L_36023057:
   8179     /* cmp edi, 0xCu */ /* 0x36023057: cmp edi, 0xc */
   8180     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu);
   8181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8182     _flag_k = FK_CMP;
   8183     if (CMP_NE(_flag_a, _flag_b)) goto L_36023063; /* 0x3602305A: jne 0x36023063 */
   8184 L_3602305C:
   8185     edi = 8; /* 0x3602305C: mov edi, 8 */
   8186     goto L_3602306D; /* 0x36023061: jmp 0x3602306d */
   8187 L_36023063:
   8188     /* cmp edi, 0xAu */ /* 0x36023063: cmp edi, 0xa */
   8189     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xAu);
   8190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8191     _flag_k = FK_CMP;
   8192     if (CMP_NE(_flag_a, _flag_b)) goto L_3602306D; /* 0x36023066: jne 0x3602306d */
   8193 L_36023068:
   8194     edi = 6; /* 0x36023068: mov edi, 6 */
   8195 L_3602306D:
   8196     PUSH32(esp, 0x50u); /* 0x3602306D: push 0x50 */
   8197     RECOMP_ICALL(0x3615FD6Au); /* 0x3602306F: call 0x3615fd6a */ /* not lifted */
   8198     RECOMP_FLAGS_IN();
   8199     ebx = eax; /* 0x36023074: mov ebx, eax */
   8200     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8201     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8202     esp = esp + 4; /* 0x36023076: add esp, 4 */
   8203     _flag_k = FK_ADD;
   8204     MEM32(ebp + 0x8) = ebx; /* 0x36023079: mov dword ptr [ebp + 8], ebx */
   8205     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8206     eax = 0; /* 0x3602307C: xor eax, eax */
   8207     _cf = 0;
   8208     _flag_k = FK_TEST;
   8209     /* cmp ebx, eax */ /* 0x3602307E: cmp ebx, eax */
   8210     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   8211     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8212     _flag_k = FK_CMP;
   8213     MEM32(ebp + (-0x4)) = eax; /* 0x36023080: mov dword ptr [ebp - 4], eax */
   8214     if (CMP_EQ(_flag_a, _flag_b)) goto L_360230DC; /* 0x36023083: je 0x360230dc */
   8215 L_36023085:
   8216     PUSH32(esp, eax); /* 0x36023085: push eax */
   8217     eax = MEM32(ebp + 0xC); /* 0x36023086: mov eax, dword ptr [ebp + 0xc] */
   8218     ecx = MEM32(eax); /* 0x36023089: mov ecx, dword ptr [eax] */
   8219     PUSH32(esp, ecx); /* 0x3602308B: push ecx */
   8220     edx = ebp + (-0x1C); /* 0x3602308C: lea edx, [ebp - 0x1c] */
   8221     PUSH32(esp, edx); /* 0x3602308F: push edx */
   8222     ecx = esi; /* 0x36023090: mov ecx, esi */
   8223     RECOMP_ICALL(MEM32(0x361700AC)); /* 0x36023092: call dword ptr [0x361700ac] */
   8224     RECOMP_FLAGS_IN();
   8225     edx = MEM32(eax); /* 0x36023098: mov edx, dword ptr [eax] */
   8226     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   8227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8228     esp = esp - 0x10u; /* 0x3602309A: sub esp, 0x10 */
   8229     _flag_k = FK_CMP;
   8230     ecx = esp; /* 0x3602309D: mov ecx, esp */
   8231     MEM32(ecx) = edx; /* 0x3602309F: mov dword ptr [ecx], edx */
   8232     edx = MEM32(eax + 0x4); /* 0x360230A1: mov edx, dword ptr [eax + 4] */
   8233     MEM32(ecx + 0x4) = edx; /* 0x360230A4: mov dword ptr [ecx + 4], edx */
   8234     edx = MEM32(eax + 0x8); /* 0x360230A7: mov edx, dword ptr [eax + 8] */
   8235     eax = MEM32(eax + 0xC); /* 0x360230AA: mov eax, dword ptr [eax + 0xc] */
   8236     MEM32(ecx + 0x8) = edx; /* 0x360230AD: mov dword ptr [ecx + 8], edx */
   8237     MEM32(ecx + 0xC) = eax; /* 0x360230B0: mov dword ptr [ecx + 0xc], eax */
   8238     ecx = esi; /* 0x360230B3: mov ecx, esi */
   8239     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x360230B5: call dword ptr [0x361700a8] */
   8240     RECOMP_FLAGS_IN();
   8241     edx = MEM32(eax); /* 0x360230BB: mov edx, dword ptr [eax] */
   8242     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8243     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8244     esp = esp - 0xCu; /* 0x360230BD: sub esp, 0xc */
   8245     _flag_k = FK_CMP;
   8246     ecx = esp; /* 0x360230C0: mov ecx, esp */
   8247     MEM32(ecx) = edx; /* 0x360230C2: mov dword ptr [ecx], edx */
   8248     edx = MEM32(eax + 0x4); /* 0x360230C4: mov edx, dword ptr [eax + 4] */
   8249     eax = MEM32(eax + 0x8); /* 0x360230C7: mov eax, dword ptr [eax + 8] */
   8250     MEM32(ecx + 0x4) = edx; /* 0x360230CA: mov dword ptr [ecx + 4], edx */
   8251     PUSH32(esp, edi); /* 0x360230CD: push edi */
   8252     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   8253     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8254     esi = esi + 4; /* 0x360230CE: add esi, 4 */
   8255     _flag_k = FK_ADD;
   8256     MEM32(ecx + 0x8) = eax; /* 0x360230D1: mov dword ptr [ecx + 8], eax */
   8257     PUSH32(esp, esi); /* 0x360230D4: push esi */
   8258     ecx = ebx; /* 0x360230D5: mov ecx, ebx */
   8259     RECOMP_ICALL(0x360438C0u); /* 0x360230D7: call 0x360438c0 */ /* not lifted */
   8260     RECOMP_FLAGS_IN();
   8261 L_360230DC:
   8262     ecx = MEM32(0x3616FF74); /* 0x360230DC: mov ecx, dword ptr [0x3616ff74] */
   8263     ecx = MEM32(ecx); /* 0x360230E2: mov ecx, dword ptr [ecx] */
   8264     edx = MEM32(ecx); /* 0x360230E4: mov edx, dword ptr [ecx] */
   8265     PUSH32(esp, eax); /* 0x360230E6: push eax */
   8266     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360230E7: mov dword ptr [ebp - 4], 0xffffffff */
   8267     RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x360230EE: call dword ptr [edx + 0x38] */
   8268     RECOMP_FLAGS_IN();
   8269 L_360230F1:
   8270     ecx = MEM32(ebp + (-0xC)); /* 0x360230F1: mov ecx, dword ptr [ebp - 0xc] */
   8271     edi = POP32_VAL(esp); /* 0x360230F4: pop edi */
   8272     esi = POP32_VAL(esp); /* 0x360230F5: pop esi */
   8273     MEM32(FS_BASE + (0)) = ecx; /* 0x360230F6: mov dword ptr fs:[0], ecx */
   8274     ebx = POP32_VAL(esp); /* 0x360230FD: pop ebx */
   8275     esp = ebp; /* 0x360230FE: mov esp, ebp */
   8276     ebp = POP32_VAL(esp); /* 0x36023100: pop ebp */
   8277     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36023101: ret 8 */
   8278     RECOMP_REGS_OUT();
   8279 }
   8280 
   8281 void sub_36023110(void) {
   8282     int _fpu_cmp = 0;
   8283     uint32_t _cf = 0;
   8284     int _df = 1;
   8285     uint32_t _flag_k = FK_NONE;
   8286     uint32_t _flag_a = 0, _flag_b = 0;
   8287     uint32_t _itail_tgt = 0;
   8288     RECOMP_REGS_LOCALS
   8289     RECOMP_ENTER(0x36023110u);
   8290 
   8291 L_36023110:
   8292     PUSH32(esp, ebp); /* 0x36023110: push ebp */
   8293     ebp = esp; /* 0x36023111: mov ebp, esp */
   8294     PUSH32(esp, esi); /* 0x36023113: push esi */
   8295     esi = MEM32(ebp + 0x8); /* 0x36023114: mov esi, dword ptr [ebp + 8] */
   8296     PUSH32(esp, edi); /* 0x36023117: push edi */
   8297     edi = ecx; /* 0x36023118: mov edi, ecx */
   8298     ecx = MEM32(edi + 0x80); /* 0x3602311A: mov ecx, dword ptr [edi + 0x80] */
   8299     /* test ecx, ecx */ /* 0x36023120: test ecx, ecx */
   8300     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8301     _cf = 0;
   8302     _flag_k = FK_TEST;
   8303     if (TEST_Z(_flag_a, _flag_b)) goto L_3602312B; /* 0x36023122: je 0x3602312b */
   8304 L_36023124:
   8305     PUSH32(esp, esi); /* 0x36023124: push esi */
   8306     RECOMP_ICALL(MEM32(0x361700B0)); /* 0x36023125: call dword ptr [0x361700b0] */
   8307     RECOMP_FLAGS_IN();
   8308 L_3602312B:
   8309     ecx = edi; /* 0x3602312B: mov ecx, edi */
   8310     RECOMP_ICALL(0x3601F240u); /* 0x3602312D: call 0x3601f240 */ /* not lifted */
   8311     RECOMP_FLAGS_IN();
   8312     edi = eax; /* 0x36023132: mov edi, eax */
   8313     /* test edi, edi */ /* 0x36023134: test edi, edi */
   8314     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8315     _cf = 0;
   8316     _flag_k = FK_TEST;
   8317     if (TEST_Z(_flag_a, _flag_b)) goto L_360231BD; /* 0x36023136: je 0x360231bd */
   8318 L_3602313C:
   8319     ecx = edi; /* 0x3602313C: mov ecx, edi */
   8320     RECOMP_ICALL(0x36072000u); /* 0x3602313E: call 0x36072000 */ /* not lifted */
   8321     RECOMP_FLAGS_IN();
   8322     ecx = MEM32(eax + 0x74); /* 0x36023143: mov ecx, dword ptr [eax + 0x74] */
   8323     edx = MEM32(esi + 0x4); /* 0x36023146: mov edx, dword ptr [esi + 4] */
   8324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u);
   8325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8326     eax = eax + 0x70u; /* 0x36023149: add eax, 0x70 */
   8327     _flag_k = FK_ADD;
   8328     /* cmp ecx, edx */ /* 0x3602314C: cmp ecx, edx */
   8329     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   8330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8331     _flag_k = FK_CMP;
   8332     if (CMP_NE(_flag_a, _flag_b)) goto L_3602315E; /* 0x3602314E: jne 0x3602315e */
   8333 L_36023150:
   8334     ecx = MEM32(esi); /* 0x36023150: mov ecx, dword ptr [esi] */
   8335     /* cmp MEM32(eax), ecx */ /* 0x36023152: cmp dword ptr [eax], ecx */
   8336     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx);
   8337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8338     _flag_k = FK_CMP;
   8339     if (CMP_NE(_flag_a, _flag_b)) goto L_3602315E; /* 0x36023154: jne 0x3602315e */
   8340 L_36023156:
   8341     /* cmp ecx, 0xC350u */ /* 0x36023156: cmp ecx, 0xc350 */
   8342     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC350u);
   8343     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8344     _flag_k = FK_CMP;
   8345     if (CMP_NE(_flag_a, _flag_b)) goto L_360231BD; /* 0x3602315C: jne 0x360231bd */
   8346 L_3602315E:
   8347     PUSH32(esp, esi); /* 0x3602315E: push esi */
   8348     ecx = edi; /* 0x3602315F: mov ecx, edi */
   8349     RECOMP_ICALL(0x36072000u); /* 0x36023161: call 0x36072000 */ /* not lifted */
   8350     RECOMP_FLAGS_IN();
   8351     ecx = eax; /* 0x36023166: mov ecx, eax */
   8352     RECOMP_ICALL(0x36053370u); /* 0x36023168: call 0x36053370 */ /* not lifted */
   8353     RECOMP_FLAGS_IN();
   8354     PUSH32(esp, 0); /* 0x3602316D: push 0 */
   8355     PUSH32(esp, 0x361B2CF8u); /* 0x3602316F: push 0x361b2cf8 */
   8356     PUSH32(esp, 0x361B2CC0u); /* 0x36023174: push 0x361b2cc0 */
   8357     PUSH32(esp, 0); /* 0x36023179: push 0 */
   8358     PUSH32(esp, esi); /* 0x3602317B: push esi */
   8359     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602317C: call dword ptr [0x3616ff70] */
   8360     RECOMP_FLAGS_IN();
   8361     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8362     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8363     esp = esp + 4; /* 0x36023182: add esp, 4 */
   8364     _flag_k = FK_ADD;
   8365     PUSH32(esp, eax); /* 0x36023185: push eax */
   8366     RECOMP_ICALL(0x3615FD86u); /* 0x36023186: call 0x3615fd86 */ /* not lifted */
   8367     RECOMP_FLAGS_IN();
   8368     esi = eax; /* 0x3602318B: mov esi, eax */
   8369     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8370     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8371     esp = esp + 0x14u; /* 0x3602318D: add esp, 0x14 */
   8372     _flag_k = FK_ADD;
   8373     /* test esi, esi */ /* 0x36023190: test esi, esi */
   8374     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8375     _cf = 0;
   8376     _flag_k = FK_TEST;
   8377     if (TEST_Z(_flag_a, _flag_b)) goto L_360231BD; /* 0x36023192: je 0x360231bd */
   8378 L_36023194:
   8379     edx = MEM32(esi); /* 0x36023194: mov edx, dword ptr [esi] */
   8380     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   8381     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8382     edi = edi + 4; /* 0x36023196: add edi, 4 */
   8383     _flag_k = FK_ADD;
   8384     PUSH32(esp, edi); /* 0x36023199: push edi */
   8385     ecx = esi; /* 0x3602319A: mov ecx, esi */
   8386     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3602319C: call dword ptr [edx + 0x24] */
   8387     RECOMP_FLAGS_IN();
   8388     PUSH32(esp, 0x11u); /* 0x3602319F: push 0x11 */
   8389     ecx = esi; /* 0x360231A1: mov ecx, esi */
   8390     RECOMP_ICALL(0x36002180u); /* 0x360231A3: call 0x36002180 */ /* not lifted */
   8391     RECOMP_FLAGS_IN();
   8392     /* test LO8(eax), LO8(eax) */ /* 0x360231A8: test al, al */
   8393     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8394     _cf = 0;
   8395     _flag_k = FK_NARROW(FK_TEST, 24);
   8396     if (TEST_Z(_flag_a, _flag_b)) goto L_360231BD; /* 0x360231AA: je 0x360231bd */
   8397 L_360231AC:
   8398     eax = MEM32(esi); /* 0x360231AC: mov eax, dword ptr [esi] */
   8399     PUSH32(esp, 0x362EA510u); /* 0x360231AE: push 0x362ea510 */
   8400     PUSH32(esp, 0); /* 0x360231B3: push 0 */
   8401     PUSH32(esp, esi); /* 0x360231B5: push esi */
   8402     PUSH32(esp, 0x11u); /* 0x360231B6: push 0x11 */
   8403     ecx = esi; /* 0x360231B8: mov ecx, esi */
   8404     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x360231BA: call dword ptr [eax + 0x30] */
   8405     RECOMP_FLAGS_IN();
   8406 L_360231BD:
   8407     edi = POP32_VAL(esp); /* 0x360231BD: pop edi */
   8408     esi = POP32_VAL(esp); /* 0x360231BE: pop esi */
   8409     ebp = POP32_VAL(esp); /* 0x360231BF: pop ebp */
   8410     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360231C0: ret 4 */
   8411     RECOMP_REGS_OUT();
   8412 }
   8413 
   8414 void sub_360231D0(void) {
   8415     int _fpu_cmp = 0;
   8416     uint32_t _cf = 0;
   8417     int _df = 1;
   8418     uint32_t _flag_k = FK_NONE;
   8419     uint32_t _flag_a = 0, _flag_b = 0;
   8420     uint32_t _itail_tgt = 0;
   8421     RECOMP_REGS_LOCALS
   8422     RECOMP_ENTER(0x360231D0u);
   8423 
   8424 L_360231D0:
   8425     PUSH32(esp, ebp); /* 0x360231D0: push ebp */
   8426     ebp = esp; /* 0x360231D1: mov ebp, esp */
   8427     RECOMP_ICALL(0x3601F240u); /* 0x360231D3: call 0x3601f240 */ /* not lifted */
   8428     RECOMP_FLAGS_IN();
   8429     /* test eax, eax */ /* 0x360231D8: test eax, eax */
   8430     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8431     _cf = 0;
   8432     _flag_k = FK_TEST;
   8433     if (TEST_Z(_flag_a, _flag_b)) goto L_360231EB; /* 0x360231DA: je 0x360231eb */
   8434 L_360231DC:
   8435     ecx = MEM32(ebp + 0x8); /* 0x360231DC: mov ecx, dword ptr [ebp + 8] */
   8436     PUSH32(esp, ecx); /* 0x360231DF: push ecx */
   8437     ecx = eax; /* 0x360231E0: mov ecx, eax */
   8438     RECOMP_ICALL(0x360715C0u); /* 0x360231E2: call 0x360715c0 */ /* not lifted */
   8439     RECOMP_FLAGS_IN();
   8440     ebp = POP32_VAL(esp); /* 0x360231E7: pop ebp */
   8441     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360231E8: ret 4 */
   8442 L_360231EB:
   8443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8444     eax = 0; /* 0x360231EB: xor eax, eax */
   8445     _cf = 0;
   8446     _flag_k = FK_TEST;
   8447     ebp = POP32_VAL(esp); /* 0x360231ED: pop ebp */
   8448     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360231EE: ret 4 */
   8449     RECOMP_REGS_OUT();
   8450 }
   8451 
   8452 void sub_36023200(void) {
   8453     int _fpu_cmp = 0;
   8454     uint32_t _cf = 0;
   8455     int _df = 1;
   8456     uint32_t _flag_k = FK_NONE;
   8457     uint32_t _flag_a = 0, _flag_b = 0;
   8458     uint32_t _itail_tgt = 0;
   8459     RECOMP_REGS_LOCALS
   8460     RECOMP_ENTER(0x36023200u);
   8461 
   8462 L_36023200:
   8463     PUSH32(esp, ebp); /* 0x36023200: push ebp */
   8464     ebp = esp; /* 0x36023201: mov ebp, esp */
   8465     PUSH32(esp, esi); /* 0x36023203: push esi */
   8466     esi = MEM32(ebp + 0x8); /* 0x36023204: mov esi, dword ptr [ebp + 8] */
   8467     /* cmp MEM32(esi), 0xCF1Bu */ /* 0x36023207: cmp dword ptr [esi], 0xcf1b */
   8468     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0xCF1Bu);
   8469     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8470     _flag_k = FK_CMP;
   8471     if (CMP_NE(_flag_a, _flag_b)) goto L_3602322B; /* 0x3602320D: jne 0x3602322b */
   8472 L_3602320F:
   8473     RECOMP_ICALL(0x3601F240u); /* 0x3602320F: call 0x3601f240 */ /* not lifted */
   8474     RECOMP_FLAGS_IN();
   8475     /* test eax, eax */ /* 0x36023214: test eax, eax */
   8476     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8477     _cf = 0;
   8478     _flag_k = FK_TEST;
   8479     if (TEST_Z(_flag_a, _flag_b)) goto L_3602322B; /* 0x36023216: je 0x3602322b */
   8480 L_36023218:
   8481     eax = MEM32(eax + 0x158); /* 0x36023218: mov eax, dword ptr [eax + 0x158] */
   8482     PUSH32(esp, esi); /* 0x3602321E: push esi */
   8483     ecx = eax; /* 0x3602321F: mov ecx, eax */
   8484     RECOMP_ICALL(0x36066290u); /* 0x36023221: call 0x36066290 */ /* not lifted */
   8485     RECOMP_FLAGS_IN();
   8486     esi = POP32_VAL(esp); /* 0x36023226: pop esi */
   8487     ebp = POP32_VAL(esp); /* 0x36023227: pop ebp */
   8488     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36023228: ret 4 */
   8489 L_3602322B:
   8490     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8491     eax = 0; /* 0x3602322B: xor eax, eax */
   8492     _cf = 0;
   8493     _flag_k = FK_TEST;
   8494     esi = POP32_VAL(esp); /* 0x3602322D: pop esi */
   8495     ebp = POP32_VAL(esp); /* 0x3602322E: pop ebp */
   8496     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602322F: ret 4 */
   8497     RECOMP_REGS_OUT();
   8498 }
   8499 
   8500 void sub_36023240(void) {
   8501     int _fpu_cmp = 0;
   8502     uint32_t _cf = 0;
   8503     int _df = 1;
   8504     uint32_t _flag_k = FK_NONE;
   8505     uint32_t _flag_a = 0, _flag_b = 0;
   8506     uint32_t _itail_tgt = 0;
   8507     RECOMP_REGS_LOCALS
   8508     RECOMP_ENTER(0x36023240u);
   8509 
   8510 L_36023240:
   8511     PUSH32(esp, ebp); /* 0x36023240: push ebp */
   8512     ebp = esp; /* 0x36023241: mov ebp, esp */
   8513     edx = MEM32(ebp + 0x8); /* 0x36023243: mov edx, dword ptr [ebp + 8] */
   8514     /* cmp MEM32(edx), 0xCF1Bu */ /* 0x36023246: cmp dword ptr [edx], 0xcf1b */
   8515     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(0xCF1Bu);
   8516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8517     _flag_k = FK_CMP;
   8518     if (CMP_NE(_flag_a, _flag_b)) goto L_3602326A; /* 0x3602324C: jne 0x3602326a */
   8519 L_3602324E:
   8520     eax = MEM32(ecx + 0x88); /* 0x3602324E: mov eax, dword ptr [ecx + 0x88] */
   8521     /* test eax, eax */ /* 0x36023254: test eax, eax */
   8522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8523     _cf = 0;
   8524     _flag_k = FK_TEST;
   8525     if (TEST_Z(_flag_a, _flag_b)) goto L_3602326A; /* 0x36023256: je 0x3602326a */
   8526 L_36023258:
   8527     eax = MEM32(eax + 0x158); /* 0x36023258: mov eax, dword ptr [eax + 0x158] */
   8528     PUSH32(esp, edx); /* 0x3602325E: push edx */
   8529     ecx = eax; /* 0x3602325F: mov ecx, eax */
   8530     RECOMP_ICALL(0x360662C0u); /* 0x36023261: call 0x360662c0 */ /* not lifted */
   8531     RECOMP_FLAGS_IN();
   8532     ebp = POP32_VAL(esp); /* 0x36023266: pop ebp */
   8533     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36023267: ret 4 */
   8534 L_3602326A:
   8535     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8536     eax = 0; /* 0x3602326A: xor eax, eax */
   8537     _cf = 0;
   8538     _flag_k = FK_TEST;
   8539     ebp = POP32_VAL(esp); /* 0x3602326C: pop ebp */
   8540     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602326D: ret 4 */
   8541     RECOMP_REGS_OUT();
   8542 }
   8543 
   8544 void sub_36023270(void) {
   8545     int _fpu_cmp = 0;
   8546     uint32_t _cf = 0;
   8547     int _df = 1;
   8548     uint32_t _flag_k = FK_NONE;
   8549     uint32_t _flag_a = 0, _flag_b = 0;
   8550     uint32_t _itail_tgt = 0;
   8551     RECOMP_REGS_LOCALS
   8552     RECOMP_ENTER(0x36023270u);
   8553 
   8554 L_36023270:
   8555     PUSH32(esp, ebp); /* 0x36023270: push ebp */
   8556     ebp = esp; /* 0x36023271: mov ebp, esp */
   8557     eax = MEM32(ebp + 0x8); /* 0x36023273: mov eax, dword ptr [ebp + 8] */
   8558     /* cmp MEM32(eax), 0xCF1Bu */ /* 0x36023276: cmp dword ptr [eax], 0xcf1b */
   8559     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xCF1Bu);
   8560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8561     _flag_k = FK_CMP;
   8562     if (CMP_NE(_flag_a, _flag_b)) goto L_36023298; /* 0x3602327C: jne 0x36023298 */
   8563 L_3602327E:
   8564     eax = MEM32(eax + 0x4); /* 0x3602327E: mov eax, dword ptr [eax + 4] */
   8565     PUSH32(esp, eax); /* 0x36023281: push eax */
   8566     RECOMP_ICALL(0x360B4000u); /* 0x36023282: call 0x360b4000 */ /* not lifted */
   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; /* 0x36023287: add esp, 4 */
   8571     _flag_k = FK_ADD;
   8572     /* test eax, eax */ /* 0x3602328A: test eax, eax */
   8573     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8574     _cf = 0;
   8575     _flag_k = FK_TEST;
   8576     if (TEST_Z(_flag_a, _flag_b)) goto L_36023298; /* 0x3602328C: je 0x36023298 */
   8577 L_3602328E:
   8578     eax = MEM32(eax + 0x94); /* 0x3602328E: mov eax, dword ptr [eax + 0x94] */
   8579     ebp = POP32_VAL(esp); /* 0x36023294: pop ebp */
   8580     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36023295: ret 4 */
   8581 L_36023298:
   8582     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8583     eax = 0; /* 0x36023298: xor eax, eax */
   8584     _cf = 0;
   8585     _flag_k = FK_TEST;
   8586     ebp = POP32_VAL(esp); /* 0x3602329A: pop ebp */
   8587     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602329B: ret 4 */
   8588     RECOMP_REGS_OUT();
   8589 }
   8590 
   8591 void sub_360232A0(void) {
   8592     int _fpu_cmp = 0;
   8593     uint32_t _cf = 0;
   8594     int _df = 1;
   8595     uint32_t _flag_k = FK_NONE;
   8596     uint32_t _flag_a = 0, _flag_b = 0;
   8597     uint32_t _itail_tgt = 0;
   8598     RECOMP_REGS_LOCALS
   8599     RECOMP_ENTER(0x360232A0u);
   8600 
   8601 L_360232A0:
   8602     PUSH32(esp, ebp); /* 0x360232A0: push ebp */
   8603     ebp = esp; /* 0x360232A1: mov ebp, esp */
   8604     PUSH32(esp, 0xFFFFFFFFu); /* 0x360232A3: push -1 */
   8605     PUSH32(esp, 0x361632EBu); /* 0x360232A5: push 0x361632eb */
   8606     eax = MEM32(FS_BASE + (0)); /* 0x360232AA: mov eax, dword ptr fs:[0] */
   8607     PUSH32(esp, eax); /* 0x360232B0: push eax */
   8608     MEM32(FS_BASE + (0)) = esp; /* 0x360232B1: mov dword ptr fs:[0], esp */
   8609     PUSH32(esp, ecx); /* 0x360232B8: push ecx */
   8610     PUSH32(esp, esi); /* 0x360232B9: push esi */
   8611     PUSH32(esp, edi); /* 0x360232BA: push edi */
   8612     edi = MEM32(ebp + 0x8); /* 0x360232BB: mov edi, dword ptr [ebp + 8] */
   8613     PUSH32(esp, 2); /* 0x360232BE: push 2 */
   8614     PUSH32(esp, 0); /* 0x360232C0: push 0 */
   8615     esi = ecx; /* 0x360232C2: mov esi, ecx */
   8616     PUSH32(esp, edi); /* 0x360232C4: push edi */
   8617     RECOMP_ICALL(0x3602BD80u); /* 0x360232C5: call 0x3602bd80 */ /* not lifted */
   8618     RECOMP_FLAGS_IN();
   8619     /* test HI8(eax), 0x80u */ /* 0x360232CA: test ah, 0x80 */
   8620     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x80u) << 24;
   8621     _cf = 0;
   8622     _flag_k = FK_NARROW(FK_TEST, 24);
   8623     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023335; /* 0x360232CD: jne 0x36023335 */
   8624 L_360232CF:
   8625     ecx = esi; /* 0x360232CF: mov ecx, esi */
   8626     RECOMP_ICALL(0x3601F240u); /* 0x360232D1: call 0x3601f240 */ /* not lifted */
   8627     RECOMP_FLAGS_IN();
   8628     esi = eax; /* 0x360232D6: mov esi, eax */
   8629     /* test esi, esi */ /* 0x360232D8: test esi, esi */
   8630     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8631     _cf = 0;
   8632     _flag_k = FK_TEST;
   8633     if (TEST_Z(_flag_a, _flag_b)) goto L_36023321; /* 0x360232DA: je 0x36023321 */
   8634 L_360232DC:
   8635     PUSH32(esp, 0x34u); /* 0x360232DC: push 0x34 */
   8636     RECOMP_ICALL(0x3615FD6Au); /* 0x360232DE: call 0x3615fd6a */ /* not lifted */
   8637     RECOMP_FLAGS_IN();
   8638     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8640     esp = esp + 4; /* 0x360232E3: add esp, 4 */
   8641     _flag_k = FK_ADD;
   8642     MEM32(ebp + (-0x10)) = eax; /* 0x360232E6: mov dword ptr [ebp - 0x10], eax */
   8643     /* test eax, eax */ /* 0x360232E9: test eax, eax */
   8644     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8645     _cf = 0;
   8646     _flag_k = FK_TEST;
   8647     MEM32(ebp + (-0x4)) = 0; /* 0x360232EB: mov dword ptr [ebp - 4], 0 */
   8648     if (TEST_Z(_flag_a, _flag_b)) goto L_36023309; /* 0x360232F2: je 0x36023309 */
   8649 L_360232F4:
   8650     PUSH32(esp, edi); /* 0x360232F4: push edi */
   8651     PUSH32(esp, 0x41u); /* 0x360232F5: push 0x41 */
   8652     PUSH32(esp, 0x36305AE0u); /* 0x360232F7: push 0x36305ae0 */
   8653     ecx = esi + 0x4; /* 0x360232FC: lea ecx, [esi + 4] */
   8654     PUSH32(esp, ecx); /* 0x360232FF: push ecx */
   8655     ecx = eax; /* 0x36023300: mov ecx, eax */
   8656     RECOMP_ICALL(0x3607D4B0u); /* 0x36023302: call 0x3607d4b0 */ /* not lifted */
   8657     RECOMP_FLAGS_IN();
   8658     goto L_3602330B; /* 0x36023307: jmp 0x3602330b */
   8659 L_36023309:
   8660     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8661     eax = 0; /* 0x36023309: xor eax, eax */
   8662     _cf = 0;
   8663     _flag_k = FK_TEST;
   8664 L_3602330B:
   8665     edx = ebp + 0x8; /* 0x3602330B: lea edx, [ebp + 8] */
   8666     PUSH32(esp, edx); /* 0x3602330E: push edx */
   8667     ecx = esi; /* 0x3602330F: mov ecx, esi */
   8668     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36023311: mov dword ptr [ebp - 4], 0xffffffff */
   8669     MEM32(ebp + 0x8) = eax; /* 0x36023318: mov dword ptr [ebp + 8], eax */
   8670     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602331B: call dword ptr [0x3617004c] */
   8671     RECOMP_FLAGS_IN();
   8672 L_36023321:
   8673     edi = POP32_VAL(esp); /* 0x36023321: pop edi */
   8674     SET_LO8(eax, 1); /* 0x36023322: mov al, 1 */
   8675     esi = POP32_VAL(esp); /* 0x36023324: pop esi */
   8676     ecx = MEM32(ebp + (-0xC)); /* 0x36023325: mov ecx, dword ptr [ebp - 0xc] */
   8677     MEM32(FS_BASE + (0)) = ecx; /* 0x36023328: mov dword ptr fs:[0], ecx */
   8678     esp = ebp; /* 0x3602332F: mov esp, ebp */
   8679     ebp = POP32_VAL(esp); /* 0x36023331: pop ebp */
   8680     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36023332: ret 4 */
   8681 L_36023335:
   8682     ecx = MEM32(ebp + (-0xC)); /* 0x36023335: mov ecx, dword ptr [ebp - 0xc] */
   8683     edi = POP32_VAL(esp); /* 0x36023338: pop edi */
   8684     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8685     SET_LO8(eax, 0); /* 0x36023339: xor al, al */
   8686     _cf = 0;
   8687     _flag_k = FK_NARROW(FK_TEST, 24);
   8688     esi = POP32_VAL(esp); /* 0x3602333B: pop esi */
   8689     MEM32(FS_BASE + (0)) = ecx; /* 0x3602333C: mov dword ptr fs:[0], ecx */
   8690     esp = ebp; /* 0x36023343: mov esp, ebp */
   8691     ebp = POP32_VAL(esp); /* 0x36023345: pop ebp */
   8692     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36023346: ret 4 */
   8693     RECOMP_REGS_OUT();
   8694 }
   8695 
   8696 void sub_36023350(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(0x36023350u);
   8705 
   8706 L_36023350:
   8707     RECOMP_ICALL(0x3601F240u); /* 0x36023350: call 0x3601f240 */ /* not lifted */
   8708     RECOMP_FLAGS_IN();
   8709     /* test eax, eax */ /* 0x36023355: test eax, eax */
   8710     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8711     _cf = 0;
   8712     _flag_k = FK_TEST;
   8713     if (TEST_Z(_flag_a, _flag_b)) goto L_36023363; /* 0x36023357: je 0x36023363 */
   8714 L_36023359:
   8715     ecx = eax; /* 0x36023359: mov ecx, eax */
   8716     RECOMP_ICALL(0x36071EB0u); /* 0x3602335B: call 0x36071eb0 */ /* not lifted */
   8717     RECOMP_FLAGS_IN();
   8718     eax = MEM32(eax); /* 0x36023360: mov eax, dword ptr [eax] */
   8719     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36023362: ret  */
   8720 L_36023363:
   8721     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8722     eax = 0; /* 0x36023363: xor eax, eax */
   8723     _cf = 0;
   8724     _flag_k = FK_TEST;
   8725     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36023365: ret  */
   8726     RECOMP_REGS_OUT();
   8727 }
   8728 
   8729 void sub_36023370(void) {
   8730     int _fpu_cmp = 0;
   8731     uint32_t _cf = 0;
   8732     int _df = 1;
   8733     uint32_t _flag_k = FK_NONE;
   8734     uint32_t _flag_a = 0, _flag_b = 0;
   8735     uint32_t _itail_tgt = 0;
   8736     RECOMP_REGS_LOCALS
   8737     RECOMP_ENTER(0x36023370u);
   8738 
   8739 L_36023370:
   8740     PUSH32(esp, ebp); /* 0x36023370: push ebp */
   8741     ebp = esp; /* 0x36023371: mov ebp, esp */
   8742     PUSH32(esp, 0xFFFFFFFFu); /* 0x36023373: push -1 */
   8743     PUSH32(esp, 0x36163308u); /* 0x36023375: push 0x36163308 */
   8744     eax = MEM32(FS_BASE + (0)); /* 0x3602337A: mov eax, dword ptr fs:[0] */
   8745     PUSH32(esp, eax); /* 0x36023380: push eax */
   8746     MEM32(FS_BASE + (0)) = esp; /* 0x36023381: mov dword ptr fs:[0], esp */
   8747     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2ECu);
   8748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8749     esp = esp - 0x2ECu; /* 0x36023388: sub esp, 0x2ec */
   8750     _flag_k = FK_CMP;
   8751     eax = MEM32(ecx); /* 0x3602338E: mov eax, dword ptr [ecx] */
   8752     PUSH32(esp, esi); /* 0x36023390: push esi */
   8753     PUSH32(esp, edi); /* 0x36023391: push edi */
   8754     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x36023392: call dword ptr [eax + 0x10] */
   8755     RECOMP_FLAGS_IN();
   8756     edi = eax; /* 0x36023395: mov edi, eax */
   8757     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8758     esi = 0; /* 0x36023397: xor esi, esi */
   8759     _cf = 0;
   8760     _flag_k = FK_TEST;
   8761     /* cmp edi, esi */ /* 0x36023399: cmp edi, esi */
   8762     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   8763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8764     _flag_k = FK_CMP;
   8765     MEM32(ebp + (-0x18)) = edi; /* 0x3602339B: mov dword ptr [ebp - 0x18], edi */
   8766     if (CMP_NE(_flag_a, _flag_b)) goto L_360233B4; /* 0x3602339E: jne 0x360233b4 */
   8767 L_360233A0:
   8768     edi = POP32_VAL(esp); /* 0x360233A0: pop edi */
   8769     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8770     SET_LO8(eax, 0); /* 0x360233A1: xor al, al */
   8771     _cf = 0;
   8772     _flag_k = FK_NARROW(FK_TEST, 24);
   8773     esi = POP32_VAL(esp); /* 0x360233A3: pop esi */
   8774     ecx = MEM32(ebp + (-0xC)); /* 0x360233A4: mov ecx, dword ptr [ebp - 0xc] */
   8775     MEM32(FS_BASE + (0)) = ecx; /* 0x360233A7: mov dword ptr fs:[0], ecx */
   8776     esp = ebp; /* 0x360233AE: mov esp, ebp */
   8777     ebp = POP32_VAL(esp); /* 0x360233B0: pop ebp */
   8778     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360233B1: ret 0xc */
   8779 L_360233B4:
   8780     ecx = edi; /* 0x360233B4: mov ecx, edi */
   8781     RECOMP_ICALL(0x36071140u); /* 0x360233B6: call 0x36071140 */ /* not lifted */
   8782     RECOMP_FLAGS_IN();
   8783     /* test LO8(eax), LO8(eax) */ /* 0x360233BB: test al, al */
   8784     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8785     _cf = 0;
   8786     _flag_k = FK_NARROW(FK_TEST, 24);
   8787     if (TEST_NZ(_flag_a, _flag_b)) goto L_360233D1; /* 0x360233BD: jne 0x360233d1 */
   8788 L_360233BF:
   8789     edi = POP32_VAL(esp); /* 0x360233BF: pop edi */
   8790     esi = POP32_VAL(esp); /* 0x360233C0: pop esi */
   8791     ecx = MEM32(ebp + (-0xC)); /* 0x360233C1: mov ecx, dword ptr [ebp - 0xc] */
   8792     MEM32(FS_BASE + (0)) = ecx; /* 0x360233C4: mov dword ptr fs:[0], ecx */
   8793     esp = ebp; /* 0x360233CB: mov esp, ebp */
   8794     ebp = POP32_VAL(esp); /* 0x360233CD: pop ebp */
   8795     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360233CE: ret 0xc */
   8796 L_360233D1:
   8797     ecx = MEM32(ebp + 0xC); /* 0x360233D1: mov ecx, dword ptr [ebp + 0xc] */
   8798     eax = MEM32(ecx + 0x4); /* 0x360233D4: mov eax, dword ptr [ecx + 4] */
   8799     edx = MEM32(eax); /* 0x360233D7: mov edx, dword ptr [eax] */
   8800     PUSH32(esp, ebx); /* 0x360233D9: push ebx */
   8801     PUSH32(esp, eax); /* 0x360233DA: push eax */
   8802     PUSH32(esp, edx); /* 0x360233DB: push edx */
   8803     edx = ebp + (-0x14); /* 0x360233DC: lea edx, [ebp - 0x14] */
   8804     PUSH32(esp, edx); /* 0x360233DF: push edx */
   8805     RECOMP_ICALL(0x360AA870u); /* 0x360233E0: call 0x360aa870 */ /* not lifted */
   8806     RECOMP_FLAGS_IN();
   8807     eax = MEM32(edi + 0xE4); /* 0x360233E5: mov eax, dword ptr [edi + 0xe4] */
   8808     ecx = edi + 0xE4; /* 0x360233EB: lea ecx, [edi + 0xe4] */
   8809     PUSH32(esp, 2); /* 0x360233F1: push 2 */
   8810     PUSH32(esp, 0x1D6u); /* 0x360233F3: push 0x1d6 */
   8811     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360233F8: call dword ptr [eax + 4] */
   8812     RECOMP_FLAGS_IN();
   8813     ecx = MEM32(ebp + 0x10); /* 0x360233FB: mov ecx, dword ptr [ebp + 0x10] */
   8814     SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x360233FE: mov dl, byte ptr [ebp + 0xf] */
   8815     MEM32(ecx) = eax; /* 0x36023401: mov dword ptr [ecx], eax */
   8816     MEM8(ebp + (-0x28)) = (uint8_t)(LO8(edx)); /* 0x36023403: mov byte ptr [ebp - 0x28], dl */
   8817     MEM32(ebp + (-0x24)) = esi; /* 0x36023406: mov dword ptr [ebp - 0x24], esi */
   8818     MEM32(ebp + (-0x20)) = esi; /* 0x36023409: mov dword ptr [ebp - 0x20], esi */
   8819     MEM32(ebp + (-0x1C)) = esi; /* 0x3602340C: mov dword ptr [ebp - 0x1c], esi */
   8820     eax = MEM32(edi + 0x78); /* 0x3602340F: mov eax, dword ptr [edi + 0x78] */
   8821     PUSH32(esp, eax); /* 0x36023412: push eax */
   8822     MEM32(ebp + (-0x4)) = esi; /* 0x36023413: mov dword ptr [ebp - 4], esi */
   8823     RECOMP_ICALL(MEM32(0x36170044)); /* 0x36023416: call dword ptr [0x36170044] */
   8824     RECOMP_FLAGS_IN();
   8825     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x3602341C: fild dword ptr [ebp + 8] */
   8826     ecx = edi; /* 0x3602341F: mov ecx, edi */
   8827     ebx = eax; /* 0x36023421: mov ebx, eax */
   8828     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36023423: fstp dword ptr [esp] */
   8829     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023426: call dword ptr [0x3616ffb0] */
   8830     RECOMP_FLAGS_IN();
   8831     PUSH32(esp, eax); /* 0x3602342C: push eax */
   8832     eax = ebp + (-0x28); /* 0x3602342D: lea eax, [ebp - 0x28] */
   8833     PUSH32(esp, eax); /* 0x36023430: push eax */
   8834     ecx = ebx; /* 0x36023431: mov ecx, ebx */
   8835     RECOMP_ICALL(MEM32(0x361700B8)); /* 0x36023433: call dword ptr [0x361700b8] */
   8836     RECOMP_FLAGS_IN();
   8837     ebx = MEM32(ebp + (-0x24)); /* 0x36023439: mov ebx, dword ptr [ebp - 0x24] */
   8838     /* cmp ebx, MEM32(ebp + (-0x20)) */ /* 0x3602343C: cmp ebx, dword ptr [ebp - 0x20] */
   8839     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20)));
   8840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8841     _flag_k = FK_CMP;
   8842     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023D6D; /* 0x3602343F: je 0x36023d6d */
   8843 L_36023445:
   8844     goto L_36023449; /* 0x36023445: jmp 0x36023449 */
   8845 L_36023447:
   8846     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8847     esi = 0; /* 0x36023447: xor esi, esi */
   8848     _cf = 0;
   8849     _flag_k = FK_TEST;
   8850 L_36023449:
   8851     PUSH32(esp, ebx); /* 0x36023449: push ebx */
   8852     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602344A: call dword ptr [0x3616ff70] */
   8853     RECOMP_FLAGS_IN();
   8854     PUSH32(esp, esi); /* 0x36023450: push esi */
   8855     PUSH32(esp, 0x361B2CD8u); /* 0x36023451: push 0x361b2cd8 */
   8856     PUSH32(esp, 0x361B2CC0u); /* 0x36023456: push 0x361b2cc0 */
   8857     edi = eax; /* 0x3602345B: mov edi, eax */
   8858     PUSH32(esp, esi); /* 0x3602345D: push esi */
   8859     PUSH32(esp, edi); /* 0x3602345E: push edi */
   8860     RECOMP_ICALL(0x3615FD86u); /* 0x3602345F: call 0x3615fd86 */ /* not lifted */
   8861     RECOMP_FLAGS_IN();
   8862     esi = eax; /* 0x36023464: mov esi, eax */
   8863     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8864     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8865     esp = esp + 0x18u; /* 0x36023466: add esp, 0x18 */
   8866     _flag_k = FK_ADD;
   8867     /* test esi, esi */ /* 0x36023469: test esi, esi */
   8868     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   8869     _cf = 0;
   8870     _flag_k = FK_TEST;
   8871     if (TEST_Z(_flag_a, _flag_b)) goto L_36023A91; /* 0x3602346B: je 0x36023a91 */
   8872 L_36023471:
   8873     /* cmp esi, MEM32(ebp + (-0x18)) */ /* 0x36023471: cmp esi, dword ptr [ebp - 0x18] */
   8874     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
   8875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8876     _flag_k = FK_CMP;
   8877     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A91; /* 0x36023474: je 0x36023a91 */
   8878 L_3602347A:
   8879     edx = MEM32(esi + 0xE4); /* 0x3602347A: mov edx, dword ptr [esi + 0xe4] */
   8880     ecx = esi + 0xE4; /* 0x36023480: lea ecx, [esi + 0xe4] */
   8881     PUSH32(esp, 2); /* 0x36023486: push 2 */
   8882     PUSH32(esp, 0xC2u); /* 0x36023488: push 0xc2 */
   8883     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602348D: call dword ptr [edx + 4] */
   8884     RECOMP_FLAGS_IN();
   8885     /* test eax, eax */ /* 0x36023490: test eax, eax */
   8886     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8887     _cf = 0;
   8888     _flag_k = FK_TEST;
   8889     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023492: je 0x36023d5c */
   8890 L_36023498:
   8891     eax = MEM32(esi + 0xE4); /* 0x36023498: mov eax, dword ptr [esi + 0xe4] */
   8892     ecx = esi + 0xE4; /* 0x3602349E: lea ecx, [esi + 0xe4] */
   8893     PUSH32(esp, 2); /* 0x360234A4: push 2 */
   8894     PUSH32(esp, 0x184u); /* 0x360234A6: push 0x184 */
   8895     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234AB: call dword ptr [eax + 4] */
   8896     RECOMP_FLAGS_IN();
   8897     /* test eax, eax */ /* 0x360234AE: test eax, eax */
   8898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8899     _cf = 0;
   8900     _flag_k = FK_TEST;
   8901     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234B0: jne 0x36023d5c */
   8902 L_360234B6:
   8903     ecx = MEM32(esi + 0x188); /* 0x360234B6: mov ecx, dword ptr [esi + 0x188] */
   8904     PUSH32(esp, 0x80u); /* 0x360234BC: push 0x80 */
   8905     RECOMP_ICALL(0x36059BA0u); /* 0x360234C1: call 0x36059ba0 */ /* not lifted */
   8906     RECOMP_FLAGS_IN();
   8907     /* test LO8(eax), LO8(eax) */ /* 0x360234C6: test al, al */
   8908     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8909     _cf = 0;
   8910     _flag_k = FK_NARROW(FK_TEST, 24);
   8911     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234C8: jne 0x36023d5c */
   8912 L_360234CE:
   8913     ecx = MEM32(esi + 0x170); /* 0x360234CE: mov ecx, dword ptr [esi + 0x170] */
   8914     edx = MEM32(ecx + 0x24); /* 0x360234D4: mov edx, dword ptr [ecx + 0x24] */
   8915     eax = MEM32(esi + 0xE4); /* 0x360234D7: mov eax, dword ptr [esi + 0xe4] */
   8916     ecx = esi + 0xE4; /* 0x360234DD: lea ecx, [esi + 0xe4] */
   8917     PUSH32(esp, 2); /* 0x360234E3: push 2 */
   8918     PUSH32(esp, 0x21u); /* 0x360234E5: push 0x21 */
   8919     MEM32(ebp + 0x8) = edx; /* 0x360234E7: mov dword ptr [ebp + 8], edx */
   8920     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234EA: call dword ptr [eax + 4] */
   8921     RECOMP_FLAGS_IN();
   8922     MEM32(ebp + (-0x10)) = eax; /* 0x360234ED: mov dword ptr [ebp - 0x10], eax */
   8923     eax = MEM32(ebp + 0x8); /* 0x360234F0: mov eax, dword ptr [ebp + 8] */
   8924     /* test eax, eax */ /* 0x360234F3: test eax, eax */
   8925     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8926     _cf = 0;
   8927     _flag_k = FK_TEST;
   8928     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x360234F5: je 0x360235ed */
   8929 L_360234FB:
   8930     ecx = MEM32(ebp + 0x10); /* 0x360234FB: mov ecx, dword ptr [ebp + 0x10] */
   8931     /* test MEM8(ecx), 8 */ /* 0x360234FE: test byte ptr [ecx], 8 */
   8932     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
   8933     _cf = 0;
   8934     _flag_k = FK_NARROW(FK_TEST, 24);
   8935     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x36023501: je 0x360235ed */
   8936 L_36023507:
   8937     edx = MEM32(esi + 0xE4); /* 0x36023507: mov edx, dword ptr [esi + 0xe4] */
   8938     ecx = esi + 0xE4; /* 0x3602350D: lea ecx, [esi + 0xe4] */
   8939     PUSH32(esp, 2); /* 0x36023513: push 2 */
   8940     PUSH32(esp, 0x217u); /* 0x36023515: push 0x217 */
   8941     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602351A: call dword ptr [edx + 4] */
   8942     RECOMP_FLAGS_IN();
   8943     /* test eax, eax */ /* 0x3602351D: test eax, eax */
   8944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8945     _cf = 0;
   8946     _flag_k = FK_TEST;
   8947     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x3602351F: je 0x360235ed */
   8948 L_36023525:
   8949     eax = MEM32(ebp + 0x8); /* 0x36023525: mov eax, dword ptr [ebp + 8] */
   8950     ecx = MEM32(eax); /* 0x36023528: mov ecx, dword ptr [eax] */
   8951     fp_push((double)(int32_t)MEM32(eax + 0x20)); /* 0x3602352A: fild dword ptr [eax + 0x20] */
   8952     edx = ebp + (-0x2B8); /* 0x3602352D: lea edx, [ebp - 0x2b8] */
   8953     MEM32(ebp + (-0x14)) = ecx; /* 0x36023533: mov dword ptr [ebp - 0x14], ecx */
   8954     PUSH32(esp, edx); /* 0x36023536: push edx */
   8955     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36023537: fstp dword ptr [ebp - 0x10] */
   8956     ecx = esi; /* 0x3602353A: mov ecx, esi */
   8957     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602353C: call dword ptr [0x36170048] */
   8958     RECOMP_FLAGS_IN();
   8959     ecx = esi; /* 0x36023542: mov ecx, esi */
   8960     MEM32(ebp + 0x8) = eax; /* 0x36023544: mov dword ptr [ebp + 8], eax */
   8961     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023547: call dword ptr [0x3616ffb0] */
   8962     RECOMP_FLAGS_IN();
   8963     ecx = edi; /* 0x3602354D: mov ecx, edi */
   8964     esi = eax; /* 0x3602354F: mov esi, eax */
   8965     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023551: call dword ptr [0x361700b4] */
   8966     RECOMP_FLAGS_IN();
   8967     ecx = ebp + (-0x1C4); /* 0x36023557: lea ecx, [ebp - 0x1c4] */
   8968     /* cmp ecx, ebx */ /* 0x3602355D: cmp ecx, ebx */
   8969     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   8970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8971     _flag_k = FK_CMP;
   8972     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023572; /* 0x3602355F: je 0x36023572 */
   8973 L_36023561:
   8974     edx = MEM32(ebx); /* 0x36023561: mov edx, dword ptr [ebx] */
   8975     ecx = MEM32(ebx + 0x4); /* 0x36023563: mov ecx, dword ptr [ebx + 4] */
   8976     MEM32(ebp + (-0x1C4)) = edx; /* 0x36023566: mov dword ptr [ebp - 0x1c4], edx */
   8977     MEM32(ebp + (-0x1C0)) = ecx; /* 0x3602356C: mov dword ptr [ebp - 0x1c0], ecx */
   8978 L_36023572:
   8979     edx = MEM32(esi); /* 0x36023572: mov edx, dword ptr [esi] */
   8980     MEM32(ebp + (-0x1BC)) = edx; /* 0x36023574: mov dword ptr [ebp - 0x1bc], edx */
   8981     ecx = MEM32(esi + 0x4); /* 0x3602357A: mov ecx, dword ptr [esi + 4] */
   8982     MEM32(ebp + (-0x1B8)) = ecx; /* 0x3602357D: mov dword ptr [ebp - 0x1b8], ecx */
   8983     edx = MEM32(esi + 0x8); /* 0x36023583: mov edx, dword ptr [esi + 8] */
   8984     ecx = MEM32(ebp + 0x8); /* 0x36023586: mov ecx, dword ptr [ebp + 8] */
   8985     MEM32(ebp + (-0x1B4)) = edx; /* 0x36023589: mov dword ptr [ebp - 0x1b4], edx */
   8986     edx = MEM32(ecx); /* 0x3602358F: mov edx, dword ptr [ecx] */
   8987     MEM32(ebp + (-0x1B0)) = edx; /* 0x36023591: mov dword ptr [ebp - 0x1b0], edx */
   8988     edx = MEM32(ecx + 0x4); /* 0x36023597: mov edx, dword ptr [ecx + 4] */
   8989     MEM32(ebp + (-0x1AC)) = edx; /* 0x3602359A: mov dword ptr [ebp - 0x1ac], edx */
   8990     edx = MEM32(ecx + 0x8); /* 0x360235A0: mov edx, dword ptr [ecx + 8] */
   8991     MEM32(ebp + (-0x1A8)) = edx; /* 0x360235A3: mov dword ptr [ebp - 0x1a8], edx */
   8992     ecx = MEM32(ecx + 0xC); /* 0x360235A9: mov ecx, dword ptr [ecx + 0xc] */
   8993     edx = MEM32(ebp + (-0x10)); /* 0x360235AC: mov edx, dword ptr [ebp - 0x10] */
   8994     MEM32(ebp + (-0x1A4)) = ecx; /* 0x360235AF: mov dword ptr [ebp - 0x1a4], ecx */
   8995     ecx = MEM32(ebp + (-0x14)); /* 0x360235B5: mov ecx, dword ptr [ebp - 0x14] */
   8996     MEM32(ebp + (-0x1A0)) = edx; /* 0x360235B8: mov dword ptr [ebp - 0x1a0], edx */
   8997     MEM32(ebp + (-0x19C)) = ecx; /* 0x360235BE: mov dword ptr [ebp - 0x19c], ecx */
   8998     ecx = MEM32(ebp + 0xC); /* 0x360235C4: mov ecx, dword ptr [ebp + 0xc] */
   8999     MEM32(ebp + (-0x194)) = eax; /* 0x360235C7: mov dword ptr [ebp - 0x194], eax */
   9000     eax = MEM32(ecx + 0x4); /* 0x360235CD: mov eax, dword ptr [ecx + 4] */
   9001     edx = ebp + (-0x1C4); /* 0x360235D0: lea edx, [ebp - 0x1c4] */
   9002     PUSH32(esp, edx); /* 0x360235D6: push edx */
   9003     PUSH32(esp, eax); /* 0x360235D7: push eax */
   9004     MEM32(ebp + (-0x198)) = 9; /* 0x360235D8: mov dword ptr [ebp - 0x198], 9 */
   9005     eax = ebp + (-0x268); /* 0x360235E2: lea eax, [ebp - 0x268] */
   9006     goto L_36023D56; /* 0x360235E8: jmp 0x36023d56 */
   9007 L_360235ED:
   9008     eax = MEM32(ebp + (-0x10)); /* 0x360235ED: mov eax, dword ptr [ebp - 0x10] */
   9009     ecx = MEM32(ebp + 0x10); /* 0x360235F0: mov ecx, dword ptr [ebp + 0x10] */
   9010     /* cmp eax, 3 */ /* 0x360235F3: cmp eax, 3 */
   9011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   9012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9013     _flag_k = FK_CMP;
   9014     SET_LO8(eax, MEM8(ecx)); /* 0x360235F6: mov al, byte ptr [ecx] */
   9015     if (CMP_NE(_flag_a, _flag_b)) goto L_360236C2; /* 0x360235F8: jne 0x360236c2 */
   9016 L_360235FE:
   9017     /* test LO8(eax), 2 */ /* 0x360235FE: test al, 2 */
   9018     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   9019     _cf = 0;
   9020     _flag_k = FK_NARROW(FK_TEST, 24);
   9021     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023600: je 0x36023d5c */
   9022 L_36023606:
   9023     edx = ebp + (-0x2A8); /* 0x36023606: lea edx, [ebp - 0x2a8] */
   9024     PUSH32(esp, edx); /* 0x3602360C: push edx */
   9025     ecx = esi; /* 0x3602360D: mov ecx, esi */
   9026     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602360F: call dword ptr [0x36170048] */
   9027     RECOMP_FLAGS_IN();
   9028     ecx = esi; /* 0x36023615: mov ecx, esi */
   9029     MEM32(ebp + 0x8) = eax; /* 0x36023617: mov dword ptr [ebp + 8], eax */
   9030     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602361A: call dword ptr [0x3616ffb0] */
   9031     RECOMP_FLAGS_IN();
   9032     ecx = edi; /* 0x36023620: mov ecx, edi */
   9033     esi = eax; /* 0x36023622: mov esi, eax */
   9034     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023624: call dword ptr [0x361700b4] */
   9035     RECOMP_FLAGS_IN();
   9036     ecx = ebp + (-0x15C); /* 0x3602362A: lea ecx, [ebp - 0x15c] */
   9037     /* cmp ecx, ebx */ /* 0x36023630: cmp ecx, ebx */
   9038     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9040     _flag_k = FK_CMP;
   9041     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023645; /* 0x36023632: je 0x36023645 */
   9042 L_36023634:
   9043     edx = MEM32(ebx); /* 0x36023634: mov edx, dword ptr [ebx] */
   9044     ecx = MEM32(ebx + 0x4); /* 0x36023636: mov ecx, dword ptr [ebx + 4] */
   9045     MEM32(ebp + (-0x15C)) = edx; /* 0x36023639: mov dword ptr [ebp - 0x15c], edx */
   9046     MEM32(ebp + (-0x158)) = ecx; /* 0x3602363F: mov dword ptr [ebp - 0x158], ecx */
   9047 L_36023645:
   9048     edx = MEM32(esi); /* 0x36023645: mov edx, dword ptr [esi] */
   9049     MEM32(ebp + (-0x154)) = edx; /* 0x36023647: mov dword ptr [ebp - 0x154], edx */
   9050     ecx = MEM32(esi + 0x4); /* 0x3602364D: mov ecx, dword ptr [esi + 4] */
   9051     MEM32(ebp + (-0x150)) = ecx; /* 0x36023650: mov dword ptr [ebp - 0x150], ecx */
   9052     edx = MEM32(esi + 0x8); /* 0x36023656: mov edx, dword ptr [esi + 8] */
   9053     ecx = MEM32(ebp + 0x8); /* 0x36023659: mov ecx, dword ptr [ebp + 8] */
   9054     MEM32(ebp + (-0x14C)) = edx; /* 0x3602365C: mov dword ptr [ebp - 0x14c], edx */
   9055     edx = MEM32(ecx); /* 0x36023662: mov edx, dword ptr [ecx] */
   9056     MEM32(ebp + (-0x148)) = edx; /* 0x36023664: mov dword ptr [ebp - 0x148], edx */
   9057     edx = MEM32(ecx + 0x4); /* 0x3602366A: mov edx, dword ptr [ecx + 4] */
   9058     MEM32(ebp + (-0x144)) = edx; /* 0x3602366D: mov dword ptr [ebp - 0x144], edx */
   9059     edx = MEM32(ecx + 0x8); /* 0x36023673: mov edx, dword ptr [ecx + 8] */
   9060     MEM32(ebp + (-0x140)) = edx; /* 0x36023676: mov dword ptr [ebp - 0x140], edx */
   9061     ecx = MEM32(ecx + 0xC); /* 0x3602367C: mov ecx, dword ptr [ecx + 0xc] */
   9062     MEM32(ebp + (-0x13C)) = ecx; /* 0x3602367F: mov dword ptr [ebp - 0x13c], ecx */
   9063     ecx = MEM32(ebp + 0xC); /* 0x36023685: mov ecx, dword ptr [ebp + 0xc] */
   9064     MEM32(ebp + (-0x12C)) = eax; /* 0x36023688: mov dword ptr [ebp - 0x12c], eax */
   9065     eax = MEM32(ecx + 0x4); /* 0x3602368E: mov eax, dword ptr [ecx + 4] */
   9066     edx = ebp + (-0x15C); /* 0x36023691: lea edx, [ebp - 0x15c] */
   9067     PUSH32(esp, edx); /* 0x36023697: push edx */
   9068     PUSH32(esp, eax); /* 0x36023698: push eax */
   9069     MEM32(ebp + (-0x138)) = 0; /* 0x36023699: mov dword ptr [ebp - 0x138], 0 */
   9070     MEM32(ebp + (-0x134)) = 0; /* 0x360236A3: mov dword ptr [ebp - 0x134], 0 */
   9071     MEM32(ebp + (-0x130)) = 3; /* 0x360236AD: mov dword ptr [ebp - 0x130], 3 */
   9072     eax = ebp + (-0x264); /* 0x360236B7: lea eax, [ebp - 0x264] */
   9073     goto L_36023D56; /* 0x360236BD: jmp 0x36023d56 */
   9074 L_360236C2:
   9075     /* test LO8(eax), 4 */ /* 0x360236C2: test al, 4 */
   9076     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
   9077     _cf = 0;
   9078     _flag_k = FK_NARROW(FK_TEST, 24);
   9079     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360236C4: je 0x36023d5c */
   9080 L_360236CA:
   9081     ecx = MEM32(ebp + (-0x18)); /* 0x360236CA: mov ecx, dword ptr [ebp - 0x18] */
   9082     PUSH32(esp, ebx); /* 0x360236CD: push ebx */
   9083     RECOMP_ICALL(0x36071E40u); /* 0x360236CE: call 0x36071e40 */ /* not lifted */
   9084     RECOMP_FLAGS_IN();
   9085     ecx = eax; /* 0x360236D3: mov ecx, eax */
   9086     RECOMP_ICALL(0x36076E20u); /* 0x360236D5: call 0x36076e20 */ /* not lifted */
   9087     RECOMP_FLAGS_IN();
   9088     /* test LO8(eax), LO8(eax) */ /* 0x360236DA: test al, al */
   9089     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9090     _cf = 0;
   9091     _flag_k = FK_NARROW(FK_TEST, 24);
   9092     if (TEST_Z(_flag_a, _flag_b)) goto L_36023780; /* 0x360236DC: je 0x36023780 */
   9093 L_360236E2:
   9094     edx = ebp + (-0x298); /* 0x360236E2: lea edx, [ebp - 0x298] */
   9095     PUSH32(esp, edx); /* 0x360236E8: push edx */
   9096     ecx = esi; /* 0x360236E9: mov ecx, esi */
   9097     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360236EB: call dword ptr [0x36170048] */
   9098     RECOMP_FLAGS_IN();
   9099     ecx = esi; /* 0x360236F1: mov ecx, esi */
   9100     MEM32(ebp + 0x8) = eax; /* 0x360236F3: mov dword ptr [ebp + 8], eax */
   9101     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360236F6: call dword ptr [0x3616ffb0] */
   9102     RECOMP_FLAGS_IN();
   9103     ecx = edi; /* 0x360236FC: mov ecx, edi */
   9104     esi = eax; /* 0x360236FE: mov esi, eax */
   9105     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023700: call dword ptr [0x361700b4] */
   9106     RECOMP_FLAGS_IN();
   9107     ecx = ebp + (-0x8C); /* 0x36023706: lea ecx, [ebp - 0x8c] */
   9108     /* cmp ecx, ebx */ /* 0x3602370C: cmp ecx, ebx */
   9109     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9110     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9111     _flag_k = FK_CMP;
   9112     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023721; /* 0x3602370E: je 0x36023721 */
   9113 L_36023710:
   9114     edx = MEM32(ebx); /* 0x36023710: mov edx, dword ptr [ebx] */
   9115     ecx = MEM32(ebx + 0x4); /* 0x36023712: mov ecx, dword ptr [ebx + 4] */
   9116     MEM32(ebp + (-0x8C)) = edx; /* 0x36023715: mov dword ptr [ebp - 0x8c], edx */
   9117     MEM32(ebp + (-0x88)) = ecx; /* 0x3602371B: mov dword ptr [ebp - 0x88], ecx */
   9118 L_36023721:
   9119     edx = MEM32(esi); /* 0x36023721: mov edx, dword ptr [esi] */
   9120     MEM32(ebp + (-0x84)) = edx; /* 0x36023723: mov dword ptr [ebp - 0x84], edx */
   9121     ecx = MEM32(esi + 0x4); /* 0x36023729: mov ecx, dword ptr [esi + 4] */
   9122     MEM32(ebp + (-0x80)) = ecx; /* 0x3602372C: mov dword ptr [ebp - 0x80], ecx */
   9123     edx = MEM32(esi + 0x8); /* 0x3602372F: mov edx, dword ptr [esi + 8] */
   9124     ecx = MEM32(ebp + 0x8); /* 0x36023732: mov ecx, dword ptr [ebp + 8] */
   9125     MEM32(ebp + (-0x7C)) = edx; /* 0x36023735: mov dword ptr [ebp - 0x7c], edx */
   9126     edx = MEM32(ecx); /* 0x36023738: mov edx, dword ptr [ecx] */
   9127     MEM32(ebp + (-0x78)) = edx; /* 0x3602373A: mov dword ptr [ebp - 0x78], edx */
   9128     edx = MEM32(ecx + 0x4); /* 0x3602373D: mov edx, dword ptr [ecx + 4] */
   9129     MEM32(ebp + (-0x74)) = edx; /* 0x36023740: mov dword ptr [ebp - 0x74], edx */
   9130     edx = MEM32(ecx + 0x8); /* 0x36023743: mov edx, dword ptr [ecx + 8] */
   9131     MEM32(ebp + (-0x70)) = edx; /* 0x36023746: mov dword ptr [ebp - 0x70], edx */
   9132     ecx = MEM32(ecx + 0xC); /* 0x36023749: mov ecx, dword ptr [ecx + 0xc] */
   9133     MEM32(ebp + (-0x6C)) = ecx; /* 0x3602374C: mov dword ptr [ebp - 0x6c], ecx */
   9134     ecx = MEM32(ebp + 0xC); /* 0x3602374F: mov ecx, dword ptr [ebp + 0xc] */
   9135     MEM32(ebp + (-0x5C)) = eax; /* 0x36023752: mov dword ptr [ebp - 0x5c], eax */
   9136     eax = MEM32(ecx + 0x4); /* 0x36023755: mov eax, dword ptr [ecx + 4] */
   9137     edx = ebp + (-0x8C); /* 0x36023758: lea edx, [ebp - 0x8c] */
   9138     PUSH32(esp, edx); /* 0x3602375E: push edx */
   9139     PUSH32(esp, eax); /* 0x3602375F: push eax */
   9140     MEM32(ebp + (-0x68)) = 0; /* 0x36023760: mov dword ptr [ebp - 0x68], 0 */
   9141     MEM32(ebp + (-0x64)) = 0; /* 0x36023767: mov dword ptr [ebp - 0x64], 0 */
   9142     MEM32(ebp + (-0x60)) = 4; /* 0x3602376E: mov dword ptr [ebp - 0x60], 4 */
   9143     eax = ebp + (-0x288); /* 0x36023775: lea eax, [ebp - 0x288] */
   9144     goto L_36023D56; /* 0x3602377B: jmp 0x36023d56 */
   9145 L_36023780:
   9146     ecx = MEM32(ebp + 0x10); /* 0x36023780: mov ecx, dword ptr [ebp + 0x10] */
   9147     /* test MEM8(ecx), 1 */ /* 0x36023783: test byte ptr [ecx], 1 */
   9148     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
   9149     _cf = 0;
   9150     _flag_k = FK_NARROW(FK_TEST, 24);
   9151     if (TEST_Z(_flag_a, _flag_b)) goto L_360239D5; /* 0x36023786: je 0x360239d5 */
   9152 L_3602378C:
   9153     eax = MEM32(ebp + (-0x10)); /* 0x3602378C: mov eax, dword ptr [ebp - 0x10] */
   9154     /* cmp eax, 1 */ /* 0x3602378F: cmp eax, 1 */
   9155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9157     _flag_k = FK_CMP;
   9158     if (CMP_NE(_flag_a, _flag_b)) goto L_36023854; /* 0x36023792: jne 0x36023854 */
   9159 L_36023798:
   9160     edx = ebp + (-0x2D8); /* 0x36023798: lea edx, [ebp - 0x2d8] */
   9161     PUSH32(esp, edx); /* 0x3602379E: push edx */
   9162     ecx = esi; /* 0x3602379F: mov ecx, esi */
   9163     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360237A1: call dword ptr [0x36170048] */
   9164     RECOMP_FLAGS_IN();
   9165     ecx = esi; /* 0x360237A7: mov ecx, esi */
   9166     MEM32(ebp + 0x8) = eax; /* 0x360237A9: mov dword ptr [ebp + 8], eax */
   9167     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360237AC: call dword ptr [0x3616ffb0] */
   9168     RECOMP_FLAGS_IN();
   9169     ecx = edi; /* 0x360237B2: mov ecx, edi */
   9170     esi = eax; /* 0x360237B4: mov esi, eax */
   9171     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360237B6: call dword ptr [0x361700b4] */
   9172     RECOMP_FLAGS_IN();
   9173     ecx = ebp + (-0xC0); /* 0x360237BC: lea ecx, [ebp - 0xc0] */
   9174     /* cmp ecx, ebx */ /* 0x360237C2: cmp ecx, ebx */
   9175     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9177     _flag_k = FK_CMP;
   9178     if (CMP_EQ(_flag_a, _flag_b)) goto L_360237D7; /* 0x360237C4: je 0x360237d7 */
   9179 L_360237C6:
   9180     edx = MEM32(ebx); /* 0x360237C6: mov edx, dword ptr [ebx] */
   9181     ecx = MEM32(ebx + 0x4); /* 0x360237C8: mov ecx, dword ptr [ebx + 4] */
   9182     MEM32(ebp + (-0xC0)) = edx; /* 0x360237CB: mov dword ptr [ebp - 0xc0], edx */
   9183     MEM32(ebp + (-0xBC)) = ecx; /* 0x360237D1: mov dword ptr [ebp - 0xbc], ecx */
   9184 L_360237D7:
   9185     edx = MEM32(esi); /* 0x360237D7: mov edx, dword ptr [esi] */
   9186     MEM32(ebp + (-0xB8)) = edx; /* 0x360237D9: mov dword ptr [ebp - 0xb8], edx */
   9187     ecx = MEM32(esi + 0x4); /* 0x360237DF: mov ecx, dword ptr [esi + 4] */
   9188     MEM32(ebp + (-0xB4)) = ecx; /* 0x360237E2: mov dword ptr [ebp - 0xb4], ecx */
   9189     edx = MEM32(esi + 0x8); /* 0x360237E8: mov edx, dword ptr [esi + 8] */
   9190     ecx = MEM32(ebp + 0x8); /* 0x360237EB: mov ecx, dword ptr [ebp + 8] */
   9191     MEM32(ebp + (-0xB0)) = edx; /* 0x360237EE: mov dword ptr [ebp - 0xb0], edx */
   9192     edx = MEM32(ecx); /* 0x360237F4: mov edx, dword ptr [ecx] */
   9193     MEM32(ebp + (-0xAC)) = edx; /* 0x360237F6: mov dword ptr [ebp - 0xac], edx */
   9194     edx = MEM32(ecx + 0x4); /* 0x360237FC: mov edx, dword ptr [ecx + 4] */
   9195     MEM32(ebp + (-0xA8)) = edx; /* 0x360237FF: mov dword ptr [ebp - 0xa8], edx */
   9196     edx = MEM32(ecx + 0x8); /* 0x36023805: mov edx, dword ptr [ecx + 8] */
   9197     MEM32(ebp + (-0xA4)) = edx; /* 0x36023808: mov dword ptr [ebp - 0xa4], edx */
   9198     ecx = MEM32(ecx + 0xC); /* 0x3602380E: mov ecx, dword ptr [ecx + 0xc] */
   9199     MEM32(ebp + (-0xA0)) = ecx; /* 0x36023811: mov dword ptr [ebp - 0xa0], ecx */
   9200     ecx = MEM32(ebp + 0xC); /* 0x36023817: mov ecx, dword ptr [ebp + 0xc] */
   9201     MEM32(ebp + (-0x90)) = eax; /* 0x3602381A: mov dword ptr [ebp - 0x90], eax */
   9202     eax = MEM32(ecx + 0x4); /* 0x36023820: mov eax, dword ptr [ecx + 4] */
   9203     edx = ebp + (-0xC0); /* 0x36023823: lea edx, [ebp - 0xc0] */
   9204     PUSH32(esp, edx); /* 0x36023829: push edx */
   9205     PUSH32(esp, eax); /* 0x3602382A: push eax */
   9206     MEM32(ebp + (-0x9C)) = 0; /* 0x3602382B: mov dword ptr [ebp - 0x9c], 0 */
   9207     MEM32(ebp + (-0x98)) = 0; /* 0x36023835: mov dword ptr [ebp - 0x98], 0 */
   9208     MEM32(ebp + (-0x94)) = 0; /* 0x3602383F: mov dword ptr [ebp - 0x94], 0 */
   9209     eax = ebp + (-0x280); /* 0x36023849: lea eax, [ebp - 0x280] */
   9210     goto L_36023D56; /* 0x3602384F: jmp 0x36023d56 */
   9211 L_36023854:
   9212     /* cmp eax, 2 */ /* 0x36023854: cmp eax, 2 */
   9213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   9214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9215     _flag_k = FK_CMP;
   9216     if (CMP_NE(_flag_a, _flag_b)) goto L_36023919; /* 0x36023857: jne 0x36023919 */
   9217 L_3602385D:
   9218     ecx = ebp + (-0x2F8); /* 0x3602385D: lea ecx, [ebp - 0x2f8] */
   9219     PUSH32(esp, ecx); /* 0x36023863: push ecx */
   9220     ecx = esi; /* 0x36023864: mov ecx, esi */
   9221     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023866: call dword ptr [0x36170048] */
   9222     RECOMP_FLAGS_IN();
   9223     ecx = esi; /* 0x3602386C: mov ecx, esi */
   9224     MEM32(ebp + 0x8) = eax; /* 0x3602386E: mov dword ptr [ebp + 8], eax */
   9225     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023871: call dword ptr [0x3616ffb0] */
   9226     RECOMP_FLAGS_IN();
   9227     ecx = edi; /* 0x36023877: mov ecx, edi */
   9228     esi = eax; /* 0x36023879: mov esi, eax */
   9229     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x3602387B: call dword ptr [0x361700b4] */
   9230     RECOMP_FLAGS_IN();
   9231     edx = ebp + (-0x128); /* 0x36023881: lea edx, [ebp - 0x128] */
   9232     /* cmp edx, ebx */ /* 0x36023887: cmp edx, ebx */
   9233     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9234     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9235     _flag_k = FK_CMP;
   9236     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602389C; /* 0x36023889: je 0x3602389c */
   9237 L_3602388B:
   9238     ecx = MEM32(ebx); /* 0x3602388B: mov ecx, dword ptr [ebx] */
   9239     edx = MEM32(ebx + 0x4); /* 0x3602388D: mov edx, dword ptr [ebx + 4] */
   9240     MEM32(ebp + (-0x128)) = ecx; /* 0x36023890: mov dword ptr [ebp - 0x128], ecx */
   9241     MEM32(ebp + (-0x124)) = edx; /* 0x36023896: mov dword ptr [ebp - 0x124], edx */
   9242 L_3602389C:
   9243     ecx = MEM32(esi); /* 0x3602389C: mov ecx, dword ptr [esi] */
   9244     MEM32(ebp + (-0x120)) = ecx; /* 0x3602389E: mov dword ptr [ebp - 0x120], ecx */
   9245     edx = MEM32(esi + 0x4); /* 0x360238A4: mov edx, dword ptr [esi + 4] */
   9246     MEM32(ebp + (-0x11C)) = edx; /* 0x360238A7: mov dword ptr [ebp - 0x11c], edx */
   9247     ecx = MEM32(esi + 0x8); /* 0x360238AD: mov ecx, dword ptr [esi + 8] */
   9248     MEM32(ebp + (-0x118)) = ecx; /* 0x360238B0: mov dword ptr [ebp - 0x118], ecx */
   9249     ecx = MEM32(ebp + 0x8); /* 0x360238B6: mov ecx, dword ptr [ebp + 8] */
   9250     edx = MEM32(ecx); /* 0x360238B9: mov edx, dword ptr [ecx] */
   9251     MEM32(ebp + (-0x114)) = edx; /* 0x360238BB: mov dword ptr [ebp - 0x114], edx */
   9252     edx = MEM32(ecx + 0x4); /* 0x360238C1: mov edx, dword ptr [ecx + 4] */
   9253     MEM32(ebp + (-0x110)) = edx; /* 0x360238C4: mov dword ptr [ebp - 0x110], edx */
   9254     edx = MEM32(ecx + 0x8); /* 0x360238CA: mov edx, dword ptr [ecx + 8] */
   9255     MEM32(ebp + (-0x10C)) = edx; /* 0x360238CD: mov dword ptr [ebp - 0x10c], edx */
   9256     ecx = MEM32(ecx + 0xC); /* 0x360238D3: mov ecx, dword ptr [ecx + 0xc] */
   9257     MEM32(ebp + (-0x108)) = ecx; /* 0x360238D6: mov dword ptr [ebp - 0x108], ecx */
   9258     ecx = MEM32(ebp + 0xC); /* 0x360238DC: mov ecx, dword ptr [ebp + 0xc] */
   9259     MEM32(ebp + (-0xF8)) = eax; /* 0x360238DF: mov dword ptr [ebp - 0xf8], eax */
   9260     eax = MEM32(ecx + 0x4); /* 0x360238E5: mov eax, dword ptr [ecx + 4] */
   9261     edx = ebp + (-0x128); /* 0x360238E8: lea edx, [ebp - 0x128] */
   9262     PUSH32(esp, edx); /* 0x360238EE: push edx */
   9263     PUSH32(esp, eax); /* 0x360238EF: push eax */
   9264     MEM32(ebp + (-0x104)) = 0; /* 0x360238F0: mov dword ptr [ebp - 0x104], 0 */
   9265     MEM32(ebp + (-0x100)) = 0; /* 0x360238FA: mov dword ptr [ebp - 0x100], 0 */
   9266     MEM32(ebp + (-0xFC)) = 1; /* 0x36023904: mov dword ptr [ebp - 0xfc], 1 */
   9267     eax = ebp + (-0x270); /* 0x3602390E: lea eax, [ebp - 0x270] */
   9268     goto L_36023D56; /* 0x36023914: jmp 0x36023d56 */
   9269 L_36023919:
   9270     ecx = ebp + (-0x2E8); /* 0x36023919: lea ecx, [ebp - 0x2e8] */
   9271     PUSH32(esp, ecx); /* 0x3602391F: push ecx */
   9272     ecx = esi; /* 0x36023920: mov ecx, esi */
   9273     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023922: call dword ptr [0x36170048] */
   9274     RECOMP_FLAGS_IN();
   9275     ecx = esi; /* 0x36023928: mov ecx, esi */
   9276     MEM32(ebp + 0x8) = eax; /* 0x3602392A: mov dword ptr [ebp + 8], eax */
   9277     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602392D: call dword ptr [0x3616ffb0] */
   9278     RECOMP_FLAGS_IN();
   9279     ecx = edi; /* 0x36023933: mov ecx, edi */
   9280     esi = eax; /* 0x36023935: mov esi, eax */
   9281     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023937: call dword ptr [0x361700b4] */
   9282     RECOMP_FLAGS_IN();
   9283     edx = ebp + (-0x190); /* 0x3602393D: lea edx, [ebp - 0x190] */
   9284     /* cmp edx, ebx */ /* 0x36023943: cmp edx, ebx */
   9285     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9287     _flag_k = FK_CMP;
   9288     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023958; /* 0x36023945: je 0x36023958 */
   9289 L_36023947:
   9290     ecx = MEM32(ebx); /* 0x36023947: mov ecx, dword ptr [ebx] */
   9291     edx = MEM32(ebx + 0x4); /* 0x36023949: mov edx, dword ptr [ebx + 4] */
   9292     MEM32(ebp + (-0x190)) = ecx; /* 0x3602394C: mov dword ptr [ebp - 0x190], ecx */
   9293     MEM32(ebp + (-0x18C)) = edx; /* 0x36023952: mov dword ptr [ebp - 0x18c], edx */
   9294 L_36023958:
   9295     ecx = MEM32(esi); /* 0x36023958: mov ecx, dword ptr [esi] */
   9296     MEM32(ebp + (-0x188)) = ecx; /* 0x3602395A: mov dword ptr [ebp - 0x188], ecx */
   9297     edx = MEM32(esi + 0x4); /* 0x36023960: mov edx, dword ptr [esi + 4] */
   9298     MEM32(ebp + (-0x184)) = edx; /* 0x36023963: mov dword ptr [ebp - 0x184], edx */
   9299     ecx = MEM32(esi + 0x8); /* 0x36023969: mov ecx, dword ptr [esi + 8] */
   9300     MEM32(ebp + (-0x180)) = ecx; /* 0x3602396C: mov dword ptr [ebp - 0x180], ecx */
   9301     ecx = MEM32(ebp + 0x8); /* 0x36023972: mov ecx, dword ptr [ebp + 8] */
   9302     edx = MEM32(ecx); /* 0x36023975: mov edx, dword ptr [ecx] */
   9303     MEM32(ebp + (-0x17C)) = edx; /* 0x36023977: mov dword ptr [ebp - 0x17c], edx */
   9304     edx = MEM32(ecx + 0x4); /* 0x3602397D: mov edx, dword ptr [ecx + 4] */
   9305     MEM32(ebp + (-0x178)) = edx; /* 0x36023980: mov dword ptr [ebp - 0x178], edx */
   9306     edx = MEM32(ecx + 0x8); /* 0x36023986: mov edx, dword ptr [ecx + 8] */
   9307     MEM32(ebp + (-0x174)) = edx; /* 0x36023989: mov dword ptr [ebp - 0x174], edx */
   9308     ecx = MEM32(ecx + 0xC); /* 0x3602398F: mov ecx, dword ptr [ecx + 0xc] */
   9309     MEM32(ebp + (-0x170)) = ecx; /* 0x36023992: mov dword ptr [ebp - 0x170], ecx */
   9310     ecx = MEM32(ebp + 0xC); /* 0x36023998: mov ecx, dword ptr [ebp + 0xc] */
   9311     MEM32(ebp + (-0x160)) = eax; /* 0x3602399B: mov dword ptr [ebp - 0x160], eax */
   9312     eax = MEM32(ecx + 0x4); /* 0x360239A1: mov eax, dword ptr [ecx + 4] */
   9313     edx = ebp + (-0x190); /* 0x360239A4: lea edx, [ebp - 0x190] */
   9314     PUSH32(esp, edx); /* 0x360239AA: push edx */
   9315     PUSH32(esp, eax); /* 0x360239AB: push eax */
   9316     MEM32(ebp + (-0x16C)) = 0; /* 0x360239AC: mov dword ptr [ebp - 0x16c], 0 */
   9317     MEM32(ebp + (-0x168)) = 0; /* 0x360239B6: mov dword ptr [ebp - 0x168], 0 */
   9318     MEM32(ebp + (-0x164)) = 2; /* 0x360239C0: mov dword ptr [ebp - 0x164], 2 */
   9319     eax = ebp + (-0x278); /* 0x360239CA: lea eax, [ebp - 0x278] */
   9320     goto L_36023D56; /* 0x360239D0: jmp 0x36023d56 */
   9321 L_360239D5:
   9322     ecx = ebp + (-0x2C8); /* 0x360239D5: lea ecx, [ebp - 0x2c8] */
   9323     PUSH32(esp, ecx); /* 0x360239DB: push ecx */
   9324     ecx = esi; /* 0x360239DC: mov ecx, esi */
   9325     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360239DE: call dword ptr [0x36170048] */
   9326     RECOMP_FLAGS_IN();
   9327     ecx = esi; /* 0x360239E4: mov ecx, esi */
   9328     MEM32(ebp + 0x8) = eax; /* 0x360239E6: mov dword ptr [ebp + 8], eax */
   9329     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360239E9: call dword ptr [0x3616ffb0] */
   9330     RECOMP_FLAGS_IN();
   9331     ecx = edi; /* 0x360239EF: mov ecx, edi */
   9332     esi = eax; /* 0x360239F1: mov esi, eax */
   9333     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360239F3: call dword ptr [0x361700b4] */
   9334     RECOMP_FLAGS_IN();
   9335     edx = ebp + (-0x1F8); /* 0x360239F9: lea edx, [ebp - 0x1f8] */
   9336     /* cmp edx, ebx */ /* 0x360239FF: cmp edx, ebx */
   9337     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9338     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9339     _flag_k = FK_CMP;
   9340     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A14; /* 0x36023A01: je 0x36023a14 */
   9341 L_36023A03:
   9342     ecx = MEM32(ebx); /* 0x36023A03: mov ecx, dword ptr [ebx] */
   9343     edx = MEM32(ebx + 0x4); /* 0x36023A05: mov edx, dword ptr [ebx + 4] */
   9344     MEM32(ebp + (-0x1F8)) = ecx; /* 0x36023A08: mov dword ptr [ebp - 0x1f8], ecx */
   9345     MEM32(ebp + (-0x1F4)) = edx; /* 0x36023A0E: mov dword ptr [ebp - 0x1f4], edx */
   9346 L_36023A14:
   9347     ecx = MEM32(esi); /* 0x36023A14: mov ecx, dword ptr [esi] */
   9348     MEM32(ebp + (-0x1F0)) = ecx; /* 0x36023A16: mov dword ptr [ebp - 0x1f0], ecx */
   9349     edx = MEM32(esi + 0x4); /* 0x36023A1C: mov edx, dword ptr [esi + 4] */
   9350     MEM32(ebp + (-0x1EC)) = edx; /* 0x36023A1F: mov dword ptr [ebp - 0x1ec], edx */
   9351     ecx = MEM32(esi + 0x8); /* 0x36023A25: mov ecx, dword ptr [esi + 8] */
   9352     MEM32(ebp + (-0x1E8)) = ecx; /* 0x36023A28: mov dword ptr [ebp - 0x1e8], ecx */
   9353     ecx = MEM32(ebp + 0x8); /* 0x36023A2E: mov ecx, dword ptr [ebp + 8] */
   9354     edx = MEM32(ecx); /* 0x36023A31: mov edx, dword ptr [ecx] */
   9355     MEM32(ebp + (-0x1E4)) = edx; /* 0x36023A33: mov dword ptr [ebp - 0x1e4], edx */
   9356     edx = MEM32(ecx + 0x4); /* 0x36023A39: mov edx, dword ptr [ecx + 4] */
   9357     MEM32(ebp + (-0x1E0)) = edx; /* 0x36023A3C: mov dword ptr [ebp - 0x1e0], edx */
   9358     edx = MEM32(ecx + 0x8); /* 0x36023A42: mov edx, dword ptr [ecx + 8] */
   9359     MEM32(ebp + (-0x1DC)) = edx; /* 0x36023A45: mov dword ptr [ebp - 0x1dc], edx */
   9360     ecx = MEM32(ecx + 0xC); /* 0x36023A4B: mov ecx, dword ptr [ecx + 0xc] */
   9361     MEM32(ebp + (-0x1D8)) = ecx; /* 0x36023A4E: mov dword ptr [ebp - 0x1d8], ecx */
   9362     ecx = MEM32(ebp + 0xC); /* 0x36023A54: mov ecx, dword ptr [ebp + 0xc] */
   9363     MEM32(ebp + (-0x1C8)) = eax; /* 0x36023A57: mov dword ptr [ebp - 0x1c8], eax */
   9364     eax = MEM32(ecx + 0x4); /* 0x36023A5D: mov eax, dword ptr [ecx + 4] */
   9365     edx = ebp + (-0x1F8); /* 0x36023A60: lea edx, [ebp - 0x1f8] */
   9366     PUSH32(esp, edx); /* 0x36023A66: push edx */
   9367     PUSH32(esp, eax); /* 0x36023A67: push eax */
   9368     MEM32(ebp + (-0x1D4)) = 0; /* 0x36023A68: mov dword ptr [ebp - 0x1d4], 0 */
   9369     MEM32(ebp + (-0x1D0)) = 0; /* 0x36023A72: mov dword ptr [ebp - 0x1d0], 0 */
   9370     MEM32(ebp + (-0x1CC)) = 2; /* 0x36023A7C: mov dword ptr [ebp - 0x1cc], 2 */
   9371     eax = ebp + (-0x26C); /* 0x36023A86: lea eax, [ebp - 0x26c] */
   9372     goto L_36023D56; /* 0x36023A8C: jmp 0x36023d56 */
   9373 L_36023A91:
   9374     /* cmp MEM32(ebx), 0xC748u */ /* 0x36023A91: cmp dword ptr [ebx], 0xc748 */
   9375     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0xC748u);
   9376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9377     _flag_k = FK_CMP;
   9378     if (CMP_NE(_flag_a, _flag_b)) goto L_36023B75; /* 0x36023A97: jne 0x36023b75 */
   9379 L_36023A9D:
   9380     ecx = MEM32(ebp + 0x10); /* 0x36023A9D: mov ecx, dword ptr [ebp + 0x10] */
   9381     /* test MEM8(ecx), 8 */ /* 0x36023AA0: test byte ptr [ecx], 8 */
   9382     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
   9383     _cf = 0;
   9384     _flag_k = FK_NARROW(FK_TEST, 24);
   9385     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AA3: je 0x36023d5c */
   9386 L_36023AA9:
   9387     /* test edi, edi */ /* 0x36023AA9: test edi, edi */
   9388     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9389     _cf = 0;
   9390     _flag_k = FK_TEST;
   9391     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AAB: je 0x36023d5c */
   9392 L_36023AB1:
   9393     ecx = edi; /* 0x36023AB1: mov ecx, edi */
   9394     MEM32(ebp + (-0x58)) = 0; /* 0x36023AB3: mov dword ptr [ebp - 0x58], 0 */
   9395     MEM32(ebp + (-0x54)) = 0; /* 0x36023ABA: mov dword ptr [ebp - 0x54], 0 */
   9396     MEM32(ebp + (-0x50)) = 0; /* 0x36023AC1: mov dword ptr [ebp - 0x50], 0 */
   9397     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x36023AC8: mov dword ptr [ebp - 0x4c], 0x3f800000 */
   9398     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023ACF: call dword ptr [0x3616ffb0] */
   9399     RECOMP_FLAGS_IN();
   9400     ecx = edi; /* 0x36023AD5: mov ecx, edi */
   9401     esi = eax; /* 0x36023AD7: mov esi, eax */
   9402     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023AD9: call dword ptr [0x361700b4] */
   9403     RECOMP_FLAGS_IN();
   9404     edx = ebp + (-0x260); /* 0x36023ADF: lea edx, [ebp - 0x260] */
   9405     /* cmp edx, ebx */ /* 0x36023AE5: cmp edx, ebx */
   9406     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9408     _flag_k = FK_CMP;
   9409     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023AFA; /* 0x36023AE7: je 0x36023afa */
   9410 L_36023AE9:
   9411     ecx = MEM32(ebx); /* 0x36023AE9: mov ecx, dword ptr [ebx] */
   9412     edx = MEM32(ebx + 0x4); /* 0x36023AEB: mov edx, dword ptr [ebx + 4] */
   9413     MEM32(ebp + (-0x260)) = ecx; /* 0x36023AEE: mov dword ptr [ebp - 0x260], ecx */
   9414     MEM32(ebp + (-0x25C)) = edx; /* 0x36023AF4: mov dword ptr [ebp - 0x25c], edx */
   9415 L_36023AFA:
   9416     ecx = MEM32(esi); /* 0x36023AFA: mov ecx, dword ptr [esi] */
   9417     MEM32(ebp + (-0x258)) = ecx; /* 0x36023AFC: mov dword ptr [ebp - 0x258], ecx */
   9418     edx = MEM32(esi + 0x4); /* 0x36023B02: mov edx, dword ptr [esi + 4] */
   9419     MEM32(ebp + (-0x254)) = edx; /* 0x36023B05: mov dword ptr [ebp - 0x254], edx */
   9420     ecx = MEM32(esi + 0x8); /* 0x36023B0B: mov ecx, dword ptr [esi + 8] */
   9421     edx = MEM32(ebp + (-0x58)); /* 0x36023B0E: mov edx, dword ptr [ebp - 0x58] */
   9422     MEM32(ebp + (-0x250)) = ecx; /* 0x36023B11: mov dword ptr [ebp - 0x250], ecx */
   9423     ecx = MEM32(ebp + (-0x54)); /* 0x36023B17: mov ecx, dword ptr [ebp - 0x54] */
   9424     MEM32(ebp + (-0x24C)) = edx; /* 0x36023B1A: mov dword ptr [ebp - 0x24c], edx */
   9425     edx = MEM32(ebp + (-0x50)); /* 0x36023B20: mov edx, dword ptr [ebp - 0x50] */
   9426     MEM32(ebp + (-0x248)) = ecx; /* 0x36023B23: mov dword ptr [ebp - 0x248], ecx */
   9427     ecx = MEM32(ebp + (-0x4C)); /* 0x36023B29: mov ecx, dword ptr [ebp - 0x4c] */
   9428     MEM32(ebp + (-0x244)) = edx; /* 0x36023B2C: mov dword ptr [ebp - 0x244], edx */
   9429     MEM32(ebp + (-0x240)) = ecx; /* 0x36023B32: mov dword ptr [ebp - 0x240], ecx */
   9430     ecx = MEM32(ebp + 0xC); /* 0x36023B38: mov ecx, dword ptr [ebp + 0xc] */
   9431     MEM32(ebp + (-0x230)) = eax; /* 0x36023B3B: mov dword ptr [ebp - 0x230], eax */
   9432     eax = MEM32(ecx + 0x4); /* 0x36023B41: mov eax, dword ptr [ecx + 4] */
   9433     edx = ebp + (-0x260); /* 0x36023B44: lea edx, [ebp - 0x260] */
   9434     PUSH32(esp, edx); /* 0x36023B4A: push edx */
   9435     PUSH32(esp, eax); /* 0x36023B4B: push eax */
   9436     MEM32(ebp + (-0x23C)) = 0; /* 0x36023B4C: mov dword ptr [ebp - 0x23c], 0 */
   9437     MEM32(ebp + (-0x238)) = 0; /* 0x36023B56: mov dword ptr [ebp - 0x238], 0 */
   9438     MEM32(ebp + (-0x234)) = 8; /* 0x36023B60: mov dword ptr [ebp - 0x234], 8 */
   9439     eax = ebp + (-0x27C); /* 0x36023B6A: lea eax, [ebp - 0x27c] */
   9440     goto L_36023D56; /* 0x36023B70: jmp 0x36023d56 */
   9441 L_36023B75:
   9442     PUSH32(esp, 0); /* 0x36023B75: push 0 */
   9443     PUSH32(esp, 0x361B5C98u); /* 0x36023B77: push 0x361b5c98 */
   9444     PUSH32(esp, 0x361B2CC0u); /* 0x36023B7C: push 0x361b2cc0 */
   9445     PUSH32(esp, 0); /* 0x36023B81: push 0 */
   9446     PUSH32(esp, edi); /* 0x36023B83: push edi */
   9447     RECOMP_ICALL(0x3615FD86u); /* 0x36023B84: call 0x3615fd86 */ /* not lifted */
   9448     RECOMP_FLAGS_IN();
   9449     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9450     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9451     esp = esp + 0x14u; /* 0x36023B89: add esp, 0x14 */
   9452     _flag_k = FK_ADD;
   9453     /* test eax, eax */ /* 0x36023B8C: test eax, eax */
   9454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9455     _cf = 0;
   9456     _flag_k = FK_TEST;
   9457     if (TEST_Z(_flag_a, _flag_b)) goto L_36023C68; /* 0x36023B8E: je 0x36023c68 */
   9458 L_36023B94:
   9459     ecx = MEM32(ebp + 0x10); /* 0x36023B94: mov ecx, dword ptr [ebp + 0x10] */
   9460     /* test MEM8(ecx), 8 */ /* 0x36023B97: test byte ptr [ecx], 8 */
   9461     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
   9462     _cf = 0;
   9463     _flag_k = FK_NARROW(FK_TEST, 24);
   9464     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023B9A: je 0x36023d5c */
   9465 L_36023BA0:
   9466     ecx = eax + 0x8C; /* 0x36023BA0: lea ecx, [eax + 0x8c] */
   9467     MEM32(ebp + (-0x48)) = 0; /* 0x36023BA6: mov dword ptr [ebp - 0x48], 0 */
   9468     MEM32(ebp + (-0x44)) = 0; /* 0x36023BAD: mov dword ptr [ebp - 0x44], 0 */
   9469     MEM32(ebp + (-0x40)) = 0; /* 0x36023BB4: mov dword ptr [ebp - 0x40], 0 */
   9470     MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x36023BBB: mov dword ptr [ebp - 0x3c], 0x3f800000 */
   9471     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023BC2: call dword ptr [0x3616ffb0] */
   9472     RECOMP_FLAGS_IN();
   9473     ecx = edi; /* 0x36023BC8: mov ecx, edi */
   9474     esi = eax; /* 0x36023BCA: mov esi, eax */
   9475     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023BCC: call dword ptr [0x361700b4] */
   9476     RECOMP_FLAGS_IN();
   9477     edx = ebp + (-0x22C); /* 0x36023BD2: lea edx, [ebp - 0x22c] */
   9478     /* cmp edx, ebx */ /* 0x36023BD8: cmp edx, ebx */
   9479     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9481     _flag_k = FK_CMP;
   9482     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023BED; /* 0x36023BDA: je 0x36023bed */
   9483 L_36023BDC:
   9484     ecx = MEM32(ebx); /* 0x36023BDC: mov ecx, dword ptr [ebx] */
   9485     edx = MEM32(ebx + 0x4); /* 0x36023BDE: mov edx, dword ptr [ebx + 4] */
   9486     MEM32(ebp + (-0x22C)) = ecx; /* 0x36023BE1: mov dword ptr [ebp - 0x22c], ecx */
   9487     MEM32(ebp + (-0x228)) = edx; /* 0x36023BE7: mov dword ptr [ebp - 0x228], edx */
   9488 L_36023BED:
   9489     ecx = MEM32(esi); /* 0x36023BED: mov ecx, dword ptr [esi] */
   9490     MEM32(ebp + (-0x224)) = ecx; /* 0x36023BEF: mov dword ptr [ebp - 0x224], ecx */
   9491     edx = MEM32(esi + 0x4); /* 0x36023BF5: mov edx, dword ptr [esi + 4] */
   9492     MEM32(ebp + (-0x220)) = edx; /* 0x36023BF8: mov dword ptr [ebp - 0x220], edx */
   9493     ecx = MEM32(esi + 0x8); /* 0x36023BFE: mov ecx, dword ptr [esi + 8] */
   9494     edx = MEM32(ebp + (-0x48)); /* 0x36023C01: mov edx, dword ptr [ebp - 0x48] */
   9495     MEM32(ebp + (-0x21C)) = ecx; /* 0x36023C04: mov dword ptr [ebp - 0x21c], ecx */
   9496     ecx = MEM32(ebp + (-0x44)); /* 0x36023C0A: mov ecx, dword ptr [ebp - 0x44] */
   9497     MEM32(ebp + (-0x218)) = edx; /* 0x36023C0D: mov dword ptr [ebp - 0x218], edx */
   9498     edx = MEM32(ebp + (-0x40)); /* 0x36023C13: mov edx, dword ptr [ebp - 0x40] */
   9499     MEM32(ebp + (-0x214)) = ecx; /* 0x36023C16: mov dword ptr [ebp - 0x214], ecx */
   9500     ecx = MEM32(ebp + (-0x3C)); /* 0x36023C1C: mov ecx, dword ptr [ebp - 0x3c] */
   9501     MEM32(ebp + (-0x210)) = edx; /* 0x36023C1F: mov dword ptr [ebp - 0x210], edx */
   9502     MEM32(ebp + (-0x20C)) = ecx; /* 0x36023C25: mov dword ptr [ebp - 0x20c], ecx */
   9503     ecx = MEM32(ebp + 0xC); /* 0x36023C2B: mov ecx, dword ptr [ebp + 0xc] */
   9504     MEM32(ebp + (-0x1FC)) = eax; /* 0x36023C2E: mov dword ptr [ebp - 0x1fc], eax */
   9505     eax = MEM32(ecx + 0x4); /* 0x36023C34: mov eax, dword ptr [ecx + 4] */
   9506     edx = ebp + (-0x22C); /* 0x36023C37: lea edx, [ebp - 0x22c] */
   9507     PUSH32(esp, edx); /* 0x36023C3D: push edx */
   9508     PUSH32(esp, eax); /* 0x36023C3E: push eax */
   9509     MEM32(ebp + (-0x208)) = 0; /* 0x36023C3F: mov dword ptr [ebp - 0x208], 0 */
   9510     MEM32(ebp + (-0x204)) = 0; /* 0x36023C49: mov dword ptr [ebp - 0x204], 0 */
   9511     MEM32(ebp + (-0x200)) = 5; /* 0x36023C53: mov dword ptr [ebp - 0x200], 5 */
   9512     eax = ebp + (-0x274); /* 0x36023C5D: lea eax, [ebp - 0x274] */
   9513     goto L_36023D56; /* 0x36023C63: jmp 0x36023d56 */
   9514 L_36023C68:
   9515     PUSH32(esp, 0); /* 0x36023C68: push 0 */
   9516     PUSH32(esp, 0x361B5D88u); /* 0x36023C6A: push 0x361b5d88 */
   9517     PUSH32(esp, 0x361B2CC0u); /* 0x36023C6F: push 0x361b2cc0 */
   9518     PUSH32(esp, 0); /* 0x36023C74: push 0 */
   9519     PUSH32(esp, edi); /* 0x36023C76: push edi */
   9520     RECOMP_ICALL(0x3615FD86u); /* 0x36023C77: call 0x3615fd86 */ /* not lifted */
   9521     RECOMP_FLAGS_IN();
   9522     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9524     esp = esp + 0x14u; /* 0x36023C7C: add esp, 0x14 */
   9525     _flag_k = FK_ADD;
   9526     /* test eax, eax */ /* 0x36023C7F: test eax, eax */
   9527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9528     _cf = 0;
   9529     _flag_k = FK_TEST;
   9530     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C81: je 0x36023d5c */
   9531 L_36023C87:
   9532     ecx = MEM32(ebp + 0x10); /* 0x36023C87: mov ecx, dword ptr [ebp + 0x10] */
   9533     /* test MEM8(ecx), 8 */ /* 0x36023C8A: test byte ptr [ecx], 8 */
   9534     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
   9535     _cf = 0;
   9536     _flag_k = FK_NARROW(FK_TEST, 24);
   9537     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C8D: je 0x36023d5c */
   9538 L_36023C93:
   9539     ecx = eax + 0x8C; /* 0x36023C93: lea ecx, [eax + 0x8c] */
   9540     MEM32(ebp + (-0x38)) = 0; /* 0x36023C99: mov dword ptr [ebp - 0x38], 0 */
   9541     MEM32(ebp + (-0x34)) = 0; /* 0x36023CA0: mov dword ptr [ebp - 0x34], 0 */
   9542     MEM32(ebp + (-0x30)) = 0; /* 0x36023CA7: mov dword ptr [ebp - 0x30], 0 */
   9543     MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x36023CAE: mov dword ptr [ebp - 0x2c], 0x3f800000 */
   9544     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023CB5: call dword ptr [0x3616ffb0] */
   9545     RECOMP_FLAGS_IN();
   9546     ecx = edi; /* 0x36023CBB: mov ecx, edi */
   9547     esi = eax; /* 0x36023CBD: mov esi, eax */
   9548     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023CBF: call dword ptr [0x361700b4] */
   9549     RECOMP_FLAGS_IN();
   9550     edx = ebp + (-0xF4); /* 0x36023CC5: lea edx, [ebp - 0xf4] */
   9551     /* cmp edx, ebx */ /* 0x36023CCB: cmp edx, ebx */
   9552     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
   9553     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9554     _flag_k = FK_CMP;
   9555     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023CE0; /* 0x36023CCD: je 0x36023ce0 */
   9556 L_36023CCF:
   9557     ecx = MEM32(ebx); /* 0x36023CCF: mov ecx, dword ptr [ebx] */
   9558     edx = MEM32(ebx + 0x4); /* 0x36023CD1: mov edx, dword ptr [ebx + 4] */
   9559     MEM32(ebp + (-0xF4)) = ecx; /* 0x36023CD4: mov dword ptr [ebp - 0xf4], ecx */
   9560     MEM32(ebp + (-0xF0)) = edx; /* 0x36023CDA: mov dword ptr [ebp - 0xf0], edx */
   9561 L_36023CE0:
   9562     ecx = MEM32(esi); /* 0x36023CE0: mov ecx, dword ptr [esi] */
   9563     MEM32(ebp + (-0xEC)) = ecx; /* 0x36023CE2: mov dword ptr [ebp - 0xec], ecx */
   9564     edx = MEM32(esi + 0x4); /* 0x36023CE8: mov edx, dword ptr [esi + 4] */
   9565     MEM32(ebp + (-0xE8)) = edx; /* 0x36023CEB: mov dword ptr [ebp - 0xe8], edx */
   9566     ecx = MEM32(esi + 0x8); /* 0x36023CF1: mov ecx, dword ptr [esi + 8] */
   9567     edx = MEM32(ebp + (-0x38)); /* 0x36023CF4: mov edx, dword ptr [ebp - 0x38] */
   9568     MEM32(ebp + (-0xE4)) = ecx; /* 0x36023CF7: mov dword ptr [ebp - 0xe4], ecx */
   9569     ecx = MEM32(ebp + (-0x34)); /* 0x36023CFD: mov ecx, dword ptr [ebp - 0x34] */
   9570     MEM32(ebp + (-0xE0)) = edx; /* 0x36023D00: mov dword ptr [ebp - 0xe0], edx */
   9571     edx = MEM32(ebp + (-0x30)); /* 0x36023D06: mov edx, dword ptr [ebp - 0x30] */
   9572     MEM32(ebp + (-0xDC)) = ecx; /* 0x36023D09: mov dword ptr [ebp - 0xdc], ecx */
   9573     ecx = MEM32(ebp + (-0x2C)); /* 0x36023D0F: mov ecx, dword ptr [ebp - 0x2c] */
   9574     MEM32(ebp + (-0xD8)) = edx; /* 0x36023D12: mov dword ptr [ebp - 0xd8], edx */
   9575     MEM32(ebp + (-0xD4)) = ecx; /* 0x36023D18: mov dword ptr [ebp - 0xd4], ecx */
   9576     ecx = MEM32(ebp + 0xC); /* 0x36023D1E: mov ecx, dword ptr [ebp + 0xc] */
   9577     MEM32(ebp + (-0xC4)) = eax; /* 0x36023D21: mov dword ptr [ebp - 0xc4], eax */
   9578     eax = MEM32(ecx + 0x4); /* 0x36023D27: mov eax, dword ptr [ecx + 4] */
   9579     edx = ebp + (-0xF4); /* 0x36023D2A: lea edx, [ebp - 0xf4] */
   9580     PUSH32(esp, edx); /* 0x36023D30: push edx */
   9581     PUSH32(esp, eax); /* 0x36023D31: push eax */
   9582     MEM32(ebp + (-0xD0)) = 0; /* 0x36023D32: mov dword ptr [ebp - 0xd0], 0 */
   9583     MEM32(ebp + (-0xCC)) = 0; /* 0x36023D3C: mov dword ptr [ebp - 0xcc], 0 */
   9584     MEM32(ebp + (-0xC8)) = 6; /* 0x36023D46: mov dword ptr [ebp - 0xc8], 6 */
   9585     eax = ebp + (-0x284); /* 0x36023D50: lea eax, [ebp - 0x284] */
   9586 L_36023D56:
   9587     PUSH32(esp, eax); /* 0x36023D56: push eax */
   9588     RECOMP_ICALL(0x36029730u); /* 0x36023D57: call 0x36029730 */ /* not lifted */
   9589     RECOMP_FLAGS_IN();
   9590 L_36023D5C:
   9591     eax = MEM32(ebp + (-0x20)); /* 0x36023D5C: mov eax, dword ptr [ebp - 0x20] */
   9592     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
   9593     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9594     ebx = ebx + 8; /* 0x36023D5F: add ebx, 8 */
   9595     _flag_k = FK_ADD;
   9596     /* cmp ebx, eax */ /* 0x36023D62: cmp ebx, eax */
   9597     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   9598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9599     _flag_k = FK_CMP;
   9600     RECOMP_BACKEDGE();
   9601     if (CMP_NE(_flag_a, _flag_b)) goto L_36023447; /* 0x36023D64: jne 0x36023447 */
   9602 L_36023D6A:
   9603     ebx = MEM32(ebp + (-0x24)); /* 0x36023D6A: mov ebx, dword ptr [ebp - 0x24] */
   9604 L_36023D6D:
   9605     PUSH32(esp, ebx); /* 0x36023D6D: push ebx */
   9606     RECOMP_ICALL(0x3615FCC4u); /* 0x36023D6E: call 0x3615fcc4 */ /* not lifted */
   9607     RECOMP_FLAGS_IN();
   9608     ecx = MEM32(ebp + (-0xC)); /* 0x36023D73: mov ecx, dword ptr [ebp - 0xc] */
   9609     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9610     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9611     esp = esp + 4; /* 0x36023D76: add esp, 4 */
   9612     _flag_k = FK_ADD;
   9613     ebx = POP32_VAL(esp); /* 0x36023D79: pop ebx */
   9614     edi = POP32_VAL(esp); /* 0x36023D7A: pop edi */
   9615     SET_LO8(eax, 1); /* 0x36023D7B: mov al, 1 */
   9616     esi = POP32_VAL(esp); /* 0x36023D7D: pop esi */
   9617     MEM32(FS_BASE + (0)) = ecx; /* 0x36023D7E: mov dword ptr fs:[0], ecx */
   9618     esp = ebp; /* 0x36023D85: mov esp, ebp */
   9619     ebp = POP32_VAL(esp); /* 0x36023D87: pop ebp */
   9620     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36023D88: ret 0xc */
   9621     RECOMP_REGS_OUT();
   9622 }
   9623 
   9624 void sub_36023447(void) {
   9625     int _fpu_cmp = 0;
   9626     uint32_t _cf = 0;
   9627     int _df = 1;
   9628     uint32_t _flag_k = FK_NONE;
   9629     uint32_t _flag_a = 0, _flag_b = 0;
   9630     uint32_t _itail_tgt = 0;
   9631     RECOMP_REGS_LOCALS
   9632     RECOMP_ENTER(0x36023447u);
   9633 
   9634 L_36023447:
   9635     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9636     esi = 0; /* 0x36023447: xor esi, esi */
   9637     _cf = 0;
   9638     _flag_k = FK_TEST;
   9639     PUSH32(esp, ebx); /* 0x36023449: push ebx */
   9640     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602344A: call dword ptr [0x3616ff70] */
   9641     RECOMP_FLAGS_IN();
   9642     PUSH32(esp, esi); /* 0x36023450: push esi */
   9643     PUSH32(esp, 0x361B2CD8u); /* 0x36023451: push 0x361b2cd8 */
   9644     PUSH32(esp, 0x361B2CC0u); /* 0x36023456: push 0x361b2cc0 */
   9645     edi = eax; /* 0x3602345B: mov edi, eax */
   9646     PUSH32(esp, esi); /* 0x3602345D: push esi */
   9647     PUSH32(esp, edi); /* 0x3602345E: push edi */
   9648     RECOMP_ICALL(0x3615FD86u); /* 0x3602345F: call 0x3615fd86 */ /* not lifted */
   9649     RECOMP_FLAGS_IN();
   9650     esi = eax; /* 0x36023464: mov esi, eax */
   9651     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   9652     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9653     esp = esp + 0x18u; /* 0x36023466: add esp, 0x18 */
   9654     _flag_k = FK_ADD;
   9655     /* test esi, esi */ /* 0x36023469: test esi, esi */
   9656     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9657     _cf = 0;
   9658     _flag_k = FK_TEST;
   9659     if (TEST_Z(_flag_a, _flag_b)) goto L_36023A91; /* 0x3602346B: je 0x36023a91 */
   9660 L_36023471:
   9661     /* cmp esi, MEM32(ebp + (-0x18)) */ /* 0x36023471: cmp esi, dword ptr [ebp - 0x18] */
   9662     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
   9663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9664     _flag_k = FK_CMP;
   9665     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A91; /* 0x36023474: je 0x36023a91 */
   9666 L_3602347A:
   9667     edx = MEM32(esi + 0xE4); /* 0x3602347A: mov edx, dword ptr [esi + 0xe4] */
   9668     ecx = esi + 0xE4; /* 0x36023480: lea ecx, [esi + 0xe4] */
   9669     PUSH32(esp, 2); /* 0x36023486: push 2 */
   9670     PUSH32(esp, 0xC2u); /* 0x36023488: push 0xc2 */
   9671     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602348D: call dword ptr [edx + 4] */
   9672     RECOMP_FLAGS_IN();
   9673     /* test eax, eax */ /* 0x36023490: test eax, eax */
   9674     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9675     _cf = 0;
   9676     _flag_k = FK_TEST;
   9677     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023492: je 0x36023d5c */
   9678 L_36023498:
   9679     eax = MEM32(esi + 0xE4); /* 0x36023498: mov eax, dword ptr [esi + 0xe4] */
   9680     ecx = esi + 0xE4; /* 0x3602349E: lea ecx, [esi + 0xe4] */
   9681     PUSH32(esp, 2); /* 0x360234A4: push 2 */
   9682     PUSH32(esp, 0x184u); /* 0x360234A6: push 0x184 */
   9683     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234AB: call dword ptr [eax + 4] */
   9684     RECOMP_FLAGS_IN();
   9685     /* test eax, eax */ /* 0x360234AE: test eax, eax */
   9686     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9687     _cf = 0;
   9688     _flag_k = FK_TEST;
   9689     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234B0: jne 0x36023d5c */
   9690 L_360234B6:
   9691     ecx = MEM32(esi + 0x188); /* 0x360234B6: mov ecx, dword ptr [esi + 0x188] */
   9692     PUSH32(esp, 0x80u); /* 0x360234BC: push 0x80 */
   9693     RECOMP_ICALL(0x36059BA0u); /* 0x360234C1: call 0x36059ba0 */ /* not lifted */
   9694     RECOMP_FLAGS_IN();
   9695     /* test LO8(eax), LO8(eax) */ /* 0x360234C6: test al, al */
   9696     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9697     _cf = 0;
   9698     _flag_k = FK_NARROW(FK_TEST, 24);
   9699     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234C8: jne 0x36023d5c */
   9700 L_360234CE:
   9701     ecx = MEM32(esi + 0x170); /* 0x360234CE: mov ecx, dword ptr [esi + 0x170] */
   9702     edx = MEM32(ecx + 0x24); /* 0x360234D4: mov edx, dword ptr [ecx + 0x24] */
   9703     eax = MEM32(esi + 0xE4); /* 0x360234D7: mov eax, dword ptr [esi + 0xe4] */
   9704     ecx = esi + 0xE4; /* 0x360234DD: lea ecx, [esi + 0xe4] */
   9705     PUSH32(esp, 2); /* 0x360234E3: push 2 */
   9706     PUSH32(esp, 0x21u); /* 0x360234E5: push 0x21 */
   9707     MEM32(ebp + 0x8) = edx; /* 0x360234E7: mov dword ptr [ebp + 8], edx */
   9708     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234EA: call dword ptr [eax + 4] */
   9709     RECOMP_FLAGS_IN();
   9710     MEM32(ebp + (-0x10)) = eax; /* 0x360234ED: mov dword ptr [ebp - 0x10], eax */
   9711     eax = MEM32(ebp + 0x8); /* 0x360234F0: mov eax, dword ptr [ebp + 8] */
   9712     /* test eax, eax */ /* 0x360234F3: test eax, eax */
   9713     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9714     _cf = 0;
   9715     _flag_k = FK_TEST;
   9716     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x360234F5: je 0x360235ed */
   9717 L_360234FB:
   9718     ecx = MEM32(ebp + 0x10); /* 0x360234FB: mov ecx, dword ptr [ebp + 0x10] */
   9719     /* test MEM8(ecx), 8 */ /* 0x360234FE: test byte ptr [ecx], 8 */
   9720     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
   9721     _cf = 0;
   9722     _flag_k = FK_NARROW(FK_TEST, 24);
   9723     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x36023501: je 0x360235ed */
   9724 L_36023507:
   9725     edx = MEM32(esi + 0xE4); /* 0x36023507: mov edx, dword ptr [esi + 0xe4] */
   9726     ecx = esi + 0xE4; /* 0x3602350D: lea ecx, [esi + 0xe4] */
   9727     PUSH32(esp, 2); /* 0x36023513: push 2 */
   9728     PUSH32(esp, 0x217u); /* 0x36023515: push 0x217 */
   9729     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602351A: call dword ptr [edx + 4] */
   9730     RECOMP_FLAGS_IN();
   9731     /* test eax, eax */ /* 0x3602351D: test eax, eax */
   9732     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9733     _cf = 0;
   9734     _flag_k = FK_TEST;
   9735     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x3602351F: je 0x360235ed */
   9736 L_36023525:
   9737     eax = MEM32(ebp + 0x8); /* 0x36023525: mov eax, dword ptr [ebp + 8] */
   9738     ecx = MEM32(eax); /* 0x36023528: mov ecx, dword ptr [eax] */
   9739     fp_push((double)(int32_t)MEM32(eax + 0x20)); /* 0x3602352A: fild dword ptr [eax + 0x20] */
   9740     edx = ebp + (-0x2B8); /* 0x3602352D: lea edx, [ebp - 0x2b8] */
   9741     MEM32(ebp + (-0x14)) = ecx; /* 0x36023533: mov dword ptr [ebp - 0x14], ecx */
   9742     PUSH32(esp, edx); /* 0x36023536: push edx */
   9743     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36023537: fstp dword ptr [ebp - 0x10] */
   9744     ecx = esi; /* 0x3602353A: mov ecx, esi */
   9745     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602353C: call dword ptr [0x36170048] */
   9746     RECOMP_FLAGS_IN();
   9747     ecx = esi; /* 0x36023542: mov ecx, esi */
   9748     MEM32(ebp + 0x8) = eax; /* 0x36023544: mov dword ptr [ebp + 8], eax */
   9749     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023547: call dword ptr [0x3616ffb0] */
   9750     RECOMP_FLAGS_IN();
   9751     ecx = edi; /* 0x3602354D: mov ecx, edi */
   9752     esi = eax; /* 0x3602354F: mov esi, eax */
   9753     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023551: call dword ptr [0x361700b4] */
   9754     RECOMP_FLAGS_IN();
   9755     ecx = ebp + (-0x1C4); /* 0x36023557: lea ecx, [ebp - 0x1c4] */
   9756     /* cmp ecx, ebx */ /* 0x3602355D: cmp ecx, ebx */
   9757     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9759     _flag_k = FK_CMP;
   9760     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023572; /* 0x3602355F: je 0x36023572 */
   9761 L_36023561:
   9762     edx = MEM32(ebx); /* 0x36023561: mov edx, dword ptr [ebx] */
   9763     ecx = MEM32(ebx + 0x4); /* 0x36023563: mov ecx, dword ptr [ebx + 4] */
   9764     MEM32(ebp + (-0x1C4)) = edx; /* 0x36023566: mov dword ptr [ebp - 0x1c4], edx */
   9765     MEM32(ebp + (-0x1C0)) = ecx; /* 0x3602356C: mov dword ptr [ebp - 0x1c0], ecx */
   9766 L_36023572:
   9767     edx = MEM32(esi); /* 0x36023572: mov edx, dword ptr [esi] */
   9768     MEM32(ebp + (-0x1BC)) = edx; /* 0x36023574: mov dword ptr [ebp - 0x1bc], edx */
   9769     ecx = MEM32(esi + 0x4); /* 0x3602357A: mov ecx, dword ptr [esi + 4] */
   9770     MEM32(ebp + (-0x1B8)) = ecx; /* 0x3602357D: mov dword ptr [ebp - 0x1b8], ecx */
   9771     edx = MEM32(esi + 0x8); /* 0x36023583: mov edx, dword ptr [esi + 8] */
   9772     ecx = MEM32(ebp + 0x8); /* 0x36023586: mov ecx, dword ptr [ebp + 8] */
   9773     MEM32(ebp + (-0x1B4)) = edx; /* 0x36023589: mov dword ptr [ebp - 0x1b4], edx */
   9774     edx = MEM32(ecx); /* 0x3602358F: mov edx, dword ptr [ecx] */
   9775     MEM32(ebp + (-0x1B0)) = edx; /* 0x36023591: mov dword ptr [ebp - 0x1b0], edx */
   9776     edx = MEM32(ecx + 0x4); /* 0x36023597: mov edx, dword ptr [ecx + 4] */
   9777     MEM32(ebp + (-0x1AC)) = edx; /* 0x3602359A: mov dword ptr [ebp - 0x1ac], edx */
   9778     edx = MEM32(ecx + 0x8); /* 0x360235A0: mov edx, dword ptr [ecx + 8] */
   9779     MEM32(ebp + (-0x1A8)) = edx; /* 0x360235A3: mov dword ptr [ebp - 0x1a8], edx */
   9780     ecx = MEM32(ecx + 0xC); /* 0x360235A9: mov ecx, dword ptr [ecx + 0xc] */
   9781     edx = MEM32(ebp + (-0x10)); /* 0x360235AC: mov edx, dword ptr [ebp - 0x10] */
   9782     MEM32(ebp + (-0x1A4)) = ecx; /* 0x360235AF: mov dword ptr [ebp - 0x1a4], ecx */
   9783     ecx = MEM32(ebp + (-0x14)); /* 0x360235B5: mov ecx, dword ptr [ebp - 0x14] */
   9784     MEM32(ebp + (-0x1A0)) = edx; /* 0x360235B8: mov dword ptr [ebp - 0x1a0], edx */
   9785     MEM32(ebp + (-0x19C)) = ecx; /* 0x360235BE: mov dword ptr [ebp - 0x19c], ecx */
   9786     ecx = MEM32(ebp + 0xC); /* 0x360235C4: mov ecx, dword ptr [ebp + 0xc] */
   9787     MEM32(ebp + (-0x194)) = eax; /* 0x360235C7: mov dword ptr [ebp - 0x194], eax */
   9788     eax = MEM32(ecx + 0x4); /* 0x360235CD: mov eax, dword ptr [ecx + 4] */
   9789     edx = ebp + (-0x1C4); /* 0x360235D0: lea edx, [ebp - 0x1c4] */
   9790     PUSH32(esp, edx); /* 0x360235D6: push edx */
   9791     PUSH32(esp, eax); /* 0x360235D7: push eax */
   9792     MEM32(ebp + (-0x198)) = 9; /* 0x360235D8: mov dword ptr [ebp - 0x198], 9 */
   9793     eax = ebp + (-0x268); /* 0x360235E2: lea eax, [ebp - 0x268] */
   9794     goto L_36023D56; /* 0x360235E8: jmp 0x36023d56 */
   9795 L_360235ED:
   9796     eax = MEM32(ebp + (-0x10)); /* 0x360235ED: mov eax, dword ptr [ebp - 0x10] */
   9797     ecx = MEM32(ebp + 0x10); /* 0x360235F0: mov ecx, dword ptr [ebp + 0x10] */
   9798     /* cmp eax, 3 */ /* 0x360235F3: cmp eax, 3 */
   9799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   9800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9801     _flag_k = FK_CMP;
   9802     SET_LO8(eax, MEM8(ecx)); /* 0x360235F6: mov al, byte ptr [ecx] */
   9803     if (CMP_NE(_flag_a, _flag_b)) goto L_360236C2; /* 0x360235F8: jne 0x360236c2 */
   9804 L_360235FE:
   9805     /* test LO8(eax), 2 */ /* 0x360235FE: test al, 2 */
   9806     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
   9807     _cf = 0;
   9808     _flag_k = FK_NARROW(FK_TEST, 24);
   9809     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023600: je 0x36023d5c */
   9810 L_36023606:
   9811     edx = ebp + (-0x2A8); /* 0x36023606: lea edx, [ebp - 0x2a8] */
   9812     PUSH32(esp, edx); /* 0x3602360C: push edx */
   9813     ecx = esi; /* 0x3602360D: mov ecx, esi */
   9814     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602360F: call dword ptr [0x36170048] */
   9815     RECOMP_FLAGS_IN();
   9816     ecx = esi; /* 0x36023615: mov ecx, esi */
   9817     MEM32(ebp + 0x8) = eax; /* 0x36023617: mov dword ptr [ebp + 8], eax */
   9818     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602361A: call dword ptr [0x3616ffb0] */
   9819     RECOMP_FLAGS_IN();
   9820     ecx = edi; /* 0x36023620: mov ecx, edi */
   9821     esi = eax; /* 0x36023622: mov esi, eax */
   9822     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023624: call dword ptr [0x361700b4] */
   9823     RECOMP_FLAGS_IN();
   9824     ecx = ebp + (-0x15C); /* 0x3602362A: lea ecx, [ebp - 0x15c] */
   9825     /* cmp ecx, ebx */ /* 0x36023630: cmp ecx, ebx */
   9826     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9827     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9828     _flag_k = FK_CMP;
   9829     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023645; /* 0x36023632: je 0x36023645 */
   9830 L_36023634:
   9831     edx = MEM32(ebx); /* 0x36023634: mov edx, dword ptr [ebx] */
   9832     ecx = MEM32(ebx + 0x4); /* 0x36023636: mov ecx, dword ptr [ebx + 4] */
   9833     MEM32(ebp + (-0x15C)) = edx; /* 0x36023639: mov dword ptr [ebp - 0x15c], edx */
   9834     MEM32(ebp + (-0x158)) = ecx; /* 0x3602363F: mov dword ptr [ebp - 0x158], ecx */
   9835 L_36023645:
   9836     edx = MEM32(esi); /* 0x36023645: mov edx, dword ptr [esi] */
   9837     MEM32(ebp + (-0x154)) = edx; /* 0x36023647: mov dword ptr [ebp - 0x154], edx */
   9838     ecx = MEM32(esi + 0x4); /* 0x3602364D: mov ecx, dword ptr [esi + 4] */
   9839     MEM32(ebp + (-0x150)) = ecx; /* 0x36023650: mov dword ptr [ebp - 0x150], ecx */
   9840     edx = MEM32(esi + 0x8); /* 0x36023656: mov edx, dword ptr [esi + 8] */
   9841     ecx = MEM32(ebp + 0x8); /* 0x36023659: mov ecx, dword ptr [ebp + 8] */
   9842     MEM32(ebp + (-0x14C)) = edx; /* 0x3602365C: mov dword ptr [ebp - 0x14c], edx */
   9843     edx = MEM32(ecx); /* 0x36023662: mov edx, dword ptr [ecx] */
   9844     MEM32(ebp + (-0x148)) = edx; /* 0x36023664: mov dword ptr [ebp - 0x148], edx */
   9845     edx = MEM32(ecx + 0x4); /* 0x3602366A: mov edx, dword ptr [ecx + 4] */
   9846     MEM32(ebp + (-0x144)) = edx; /* 0x3602366D: mov dword ptr [ebp - 0x144], edx */
   9847     edx = MEM32(ecx + 0x8); /* 0x36023673: mov edx, dword ptr [ecx + 8] */
   9848     MEM32(ebp + (-0x140)) = edx; /* 0x36023676: mov dword ptr [ebp - 0x140], edx */
   9849     ecx = MEM32(ecx + 0xC); /* 0x3602367C: mov ecx, dword ptr [ecx + 0xc] */
   9850     MEM32(ebp + (-0x13C)) = ecx; /* 0x3602367F: mov dword ptr [ebp - 0x13c], ecx */
   9851     ecx = MEM32(ebp + 0xC); /* 0x36023685: mov ecx, dword ptr [ebp + 0xc] */
   9852     MEM32(ebp + (-0x12C)) = eax; /* 0x36023688: mov dword ptr [ebp - 0x12c], eax */
   9853     eax = MEM32(ecx + 0x4); /* 0x3602368E: mov eax, dword ptr [ecx + 4] */
   9854     edx = ebp + (-0x15C); /* 0x36023691: lea edx, [ebp - 0x15c] */
   9855     PUSH32(esp, edx); /* 0x36023697: push edx */
   9856     PUSH32(esp, eax); /* 0x36023698: push eax */
   9857     MEM32(ebp + (-0x138)) = 0; /* 0x36023699: mov dword ptr [ebp - 0x138], 0 */
   9858     MEM32(ebp + (-0x134)) = 0; /* 0x360236A3: mov dword ptr [ebp - 0x134], 0 */
   9859     MEM32(ebp + (-0x130)) = 3; /* 0x360236AD: mov dword ptr [ebp - 0x130], 3 */
   9860     eax = ebp + (-0x264); /* 0x360236B7: lea eax, [ebp - 0x264] */
   9861     goto L_36023D56; /* 0x360236BD: jmp 0x36023d56 */
   9862 L_360236C2:
   9863     /* test LO8(eax), 4 */ /* 0x360236C2: test al, 4 */
   9864     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
   9865     _cf = 0;
   9866     _flag_k = FK_NARROW(FK_TEST, 24);
   9867     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360236C4: je 0x36023d5c */
   9868 L_360236CA:
   9869     ecx = MEM32(ebp + (-0x18)); /* 0x360236CA: mov ecx, dword ptr [ebp - 0x18] */
   9870     PUSH32(esp, ebx); /* 0x360236CD: push ebx */
   9871     RECOMP_ICALL(0x36071E40u); /* 0x360236CE: call 0x36071e40 */ /* not lifted */
   9872     RECOMP_FLAGS_IN();
   9873     ecx = eax; /* 0x360236D3: mov ecx, eax */
   9874     RECOMP_ICALL(0x36076E20u); /* 0x360236D5: call 0x36076e20 */ /* not lifted */
   9875     RECOMP_FLAGS_IN();
   9876     /* test LO8(eax), LO8(eax) */ /* 0x360236DA: test al, al */
   9877     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9878     _cf = 0;
   9879     _flag_k = FK_NARROW(FK_TEST, 24);
   9880     if (TEST_Z(_flag_a, _flag_b)) goto L_36023780; /* 0x360236DC: je 0x36023780 */
   9881 L_360236E2:
   9882     edx = ebp + (-0x298); /* 0x360236E2: lea edx, [ebp - 0x298] */
   9883     PUSH32(esp, edx); /* 0x360236E8: push edx */
   9884     ecx = esi; /* 0x360236E9: mov ecx, esi */
   9885     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360236EB: call dword ptr [0x36170048] */
   9886     RECOMP_FLAGS_IN();
   9887     ecx = esi; /* 0x360236F1: mov ecx, esi */
   9888     MEM32(ebp + 0x8) = eax; /* 0x360236F3: mov dword ptr [ebp + 8], eax */
   9889     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360236F6: call dword ptr [0x3616ffb0] */
   9890     RECOMP_FLAGS_IN();
   9891     ecx = edi; /* 0x360236FC: mov ecx, edi */
   9892     esi = eax; /* 0x360236FE: mov esi, eax */
   9893     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023700: call dword ptr [0x361700b4] */
   9894     RECOMP_FLAGS_IN();
   9895     ecx = ebp + (-0x8C); /* 0x36023706: lea ecx, [ebp - 0x8c] */
   9896     /* cmp ecx, ebx */ /* 0x3602370C: cmp ecx, ebx */
   9897     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9899     _flag_k = FK_CMP;
   9900     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023721; /* 0x3602370E: je 0x36023721 */
   9901 L_36023710:
   9902     edx = MEM32(ebx); /* 0x36023710: mov edx, dword ptr [ebx] */
   9903     ecx = MEM32(ebx + 0x4); /* 0x36023712: mov ecx, dword ptr [ebx + 4] */
   9904     MEM32(ebp + (-0x8C)) = edx; /* 0x36023715: mov dword ptr [ebp - 0x8c], edx */
   9905     MEM32(ebp + (-0x88)) = ecx; /* 0x3602371B: mov dword ptr [ebp - 0x88], ecx */
   9906 L_36023721:
   9907     edx = MEM32(esi); /* 0x36023721: mov edx, dword ptr [esi] */
   9908     MEM32(ebp + (-0x84)) = edx; /* 0x36023723: mov dword ptr [ebp - 0x84], edx */
   9909     ecx = MEM32(esi + 0x4); /* 0x36023729: mov ecx, dword ptr [esi + 4] */
   9910     MEM32(ebp + (-0x80)) = ecx; /* 0x3602372C: mov dword ptr [ebp - 0x80], ecx */
   9911     edx = MEM32(esi + 0x8); /* 0x3602372F: mov edx, dword ptr [esi + 8] */
   9912     ecx = MEM32(ebp + 0x8); /* 0x36023732: mov ecx, dword ptr [ebp + 8] */
   9913     MEM32(ebp + (-0x7C)) = edx; /* 0x36023735: mov dword ptr [ebp - 0x7c], edx */
   9914     edx = MEM32(ecx); /* 0x36023738: mov edx, dword ptr [ecx] */
   9915     MEM32(ebp + (-0x78)) = edx; /* 0x3602373A: mov dword ptr [ebp - 0x78], edx */
   9916     edx = MEM32(ecx + 0x4); /* 0x3602373D: mov edx, dword ptr [ecx + 4] */
   9917     MEM32(ebp + (-0x74)) = edx; /* 0x36023740: mov dword ptr [ebp - 0x74], edx */
   9918     edx = MEM32(ecx + 0x8); /* 0x36023743: mov edx, dword ptr [ecx + 8] */
   9919     MEM32(ebp + (-0x70)) = edx; /* 0x36023746: mov dword ptr [ebp - 0x70], edx */
   9920     ecx = MEM32(ecx + 0xC); /* 0x36023749: mov ecx, dword ptr [ecx + 0xc] */
   9921     MEM32(ebp + (-0x6C)) = ecx; /* 0x3602374C: mov dword ptr [ebp - 0x6c], ecx */
   9922     ecx = MEM32(ebp + 0xC); /* 0x3602374F: mov ecx, dword ptr [ebp + 0xc] */
   9923     MEM32(ebp + (-0x5C)) = eax; /* 0x36023752: mov dword ptr [ebp - 0x5c], eax */
   9924     eax = MEM32(ecx + 0x4); /* 0x36023755: mov eax, dword ptr [ecx + 4] */
   9925     edx = ebp + (-0x8C); /* 0x36023758: lea edx, [ebp - 0x8c] */
   9926     PUSH32(esp, edx); /* 0x3602375E: push edx */
   9927     PUSH32(esp, eax); /* 0x3602375F: push eax */
   9928     MEM32(ebp + (-0x68)) = 0; /* 0x36023760: mov dword ptr [ebp - 0x68], 0 */
   9929     MEM32(ebp + (-0x64)) = 0; /* 0x36023767: mov dword ptr [ebp - 0x64], 0 */
   9930     MEM32(ebp + (-0x60)) = 4; /* 0x3602376E: mov dword ptr [ebp - 0x60], 4 */
   9931     eax = ebp + (-0x288); /* 0x36023775: lea eax, [ebp - 0x288] */
   9932     goto L_36023D56; /* 0x3602377B: jmp 0x36023d56 */
   9933 L_36023780:
   9934     ecx = MEM32(ebp + 0x10); /* 0x36023780: mov ecx, dword ptr [ebp + 0x10] */
   9935     /* test MEM8(ecx), 1 */ /* 0x36023783: test byte ptr [ecx], 1 */
   9936     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
   9937     _cf = 0;
   9938     _flag_k = FK_NARROW(FK_TEST, 24);
   9939     if (TEST_Z(_flag_a, _flag_b)) goto L_360239D5; /* 0x36023786: je 0x360239d5 */
   9940 L_3602378C:
   9941     eax = MEM32(ebp + (-0x10)); /* 0x3602378C: mov eax, dword ptr [ebp - 0x10] */
   9942     /* cmp eax, 1 */ /* 0x3602378F: cmp eax, 1 */
   9943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9945     _flag_k = FK_CMP;
   9946     if (CMP_NE(_flag_a, _flag_b)) goto L_36023854; /* 0x36023792: jne 0x36023854 */
   9947 L_36023798:
   9948     edx = ebp + (-0x2D8); /* 0x36023798: lea edx, [ebp - 0x2d8] */
   9949     PUSH32(esp, edx); /* 0x3602379E: push edx */
   9950     ecx = esi; /* 0x3602379F: mov ecx, esi */
   9951     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360237A1: call dword ptr [0x36170048] */
   9952     RECOMP_FLAGS_IN();
   9953     ecx = esi; /* 0x360237A7: mov ecx, esi */
   9954     MEM32(ebp + 0x8) = eax; /* 0x360237A9: mov dword ptr [ebp + 8], eax */
   9955     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360237AC: call dword ptr [0x3616ffb0] */
   9956     RECOMP_FLAGS_IN();
   9957     ecx = edi; /* 0x360237B2: mov ecx, edi */
   9958     esi = eax; /* 0x360237B4: mov esi, eax */
   9959     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360237B6: call dword ptr [0x361700b4] */
   9960     RECOMP_FLAGS_IN();
   9961     ecx = ebp + (-0xC0); /* 0x360237BC: lea ecx, [ebp - 0xc0] */
   9962     /* cmp ecx, ebx */ /* 0x360237C2: cmp ecx, ebx */
   9963     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   9964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9965     _flag_k = FK_CMP;
   9966     if (CMP_EQ(_flag_a, _flag_b)) goto L_360237D7; /* 0x360237C4: je 0x360237d7 */
   9967 L_360237C6:
   9968     edx = MEM32(ebx); /* 0x360237C6: mov edx, dword ptr [ebx] */
   9969     ecx = MEM32(ebx + 0x4); /* 0x360237C8: mov ecx, dword ptr [ebx + 4] */
   9970     MEM32(ebp + (-0xC0)) = edx; /* 0x360237CB: mov dword ptr [ebp - 0xc0], edx */
   9971     MEM32(ebp + (-0xBC)) = ecx; /* 0x360237D1: mov dword ptr [ebp - 0xbc], ecx */
   9972 L_360237D7:
   9973     edx = MEM32(esi); /* 0x360237D7: mov edx, dword ptr [esi] */
   9974     MEM32(ebp + (-0xB8)) = edx; /* 0x360237D9: mov dword ptr [ebp - 0xb8], edx */
   9975     ecx = MEM32(esi + 0x4); /* 0x360237DF: mov ecx, dword ptr [esi + 4] */
   9976     MEM32(ebp + (-0xB4)) = ecx; /* 0x360237E2: mov dword ptr [ebp - 0xb4], ecx */
   9977     edx = MEM32(esi + 0x8); /* 0x360237E8: mov edx, dword ptr [esi + 8] */
   9978     ecx = MEM32(ebp + 0x8); /* 0x360237EB: mov ecx, dword ptr [ebp + 8] */
   9979     MEM32(ebp + (-0xB0)) = edx; /* 0x360237EE: mov dword ptr [ebp - 0xb0], edx */
   9980     edx = MEM32(ecx); /* 0x360237F4: mov edx, dword ptr [ecx] */
   9981     MEM32(ebp + (-0xAC)) = edx; /* 0x360237F6: mov dword ptr [ebp - 0xac], edx */
   9982     edx = MEM32(ecx + 0x4); /* 0x360237FC: mov edx, dword ptr [ecx + 4] */
   9983     MEM32(ebp + (-0xA8)) = edx; /* 0x360237FF: mov dword ptr [ebp - 0xa8], edx */
   9984     edx = MEM32(ecx + 0x8); /* 0x36023805: mov edx, dword ptr [ecx + 8] */
   9985     MEM32(ebp + (-0xA4)) = edx; /* 0x36023808: mov dword ptr [ebp - 0xa4], edx */
   9986     ecx = MEM32(ecx + 0xC); /* 0x3602380E: mov ecx, dword ptr [ecx + 0xc] */
   9987     MEM32(ebp + (-0xA0)) = ecx; /* 0x36023811: mov dword ptr [ebp - 0xa0], ecx */
   9988     ecx = MEM32(ebp + 0xC); /* 0x36023817: mov ecx, dword ptr [ebp + 0xc] */
   9989     MEM32(ebp + (-0x90)) = eax; /* 0x3602381A: mov dword ptr [ebp - 0x90], eax */
   9990     eax = MEM32(ecx + 0x4); /* 0x36023820: mov eax, dword ptr [ecx + 4] */
   9991     edx = ebp + (-0xC0); /* 0x36023823: lea edx, [ebp - 0xc0] */
   9992     PUSH32(esp, edx); /* 0x36023829: push edx */
   9993     PUSH32(esp, eax); /* 0x3602382A: push eax */
   9994     MEM32(ebp + (-0x9C)) = 0; /* 0x3602382B: mov dword ptr [ebp - 0x9c], 0 */
   9995     MEM32(ebp + (-0x98)) = 0; /* 0x36023835: mov dword ptr [ebp - 0x98], 0 */
   9996     MEM32(ebp + (-0x94)) = 0; /* 0x3602383F: mov dword ptr [ebp - 0x94], 0 */
   9997     eax = ebp + (-0x280); /* 0x36023849: lea eax, [ebp - 0x280] */
   9998     goto L_36023D56; /* 0x3602384F: jmp 0x36023d56 */
   9999 L_36023854:
  10000     /* cmp eax, 2 */ /* 0x36023854: cmp eax, 2 */
  10001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  10002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10003     _flag_k = FK_CMP;
  10004     if (CMP_NE(_flag_a, _flag_b)) goto L_36023919; /* 0x36023857: jne 0x36023919 */
  10005 L_3602385D:
  10006     ecx = ebp + (-0x2F8); /* 0x3602385D: lea ecx, [ebp - 0x2f8] */
  10007     PUSH32(esp, ecx); /* 0x36023863: push ecx */
  10008     ecx = esi; /* 0x36023864: mov ecx, esi */
  10009     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023866: call dword ptr [0x36170048] */
  10010     RECOMP_FLAGS_IN();
  10011     ecx = esi; /* 0x3602386C: mov ecx, esi */
  10012     MEM32(ebp + 0x8) = eax; /* 0x3602386E: mov dword ptr [ebp + 8], eax */
  10013     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023871: call dword ptr [0x3616ffb0] */
  10014     RECOMP_FLAGS_IN();
  10015     ecx = edi; /* 0x36023877: mov ecx, edi */
  10016     esi = eax; /* 0x36023879: mov esi, eax */
  10017     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x3602387B: call dword ptr [0x361700b4] */
  10018     RECOMP_FLAGS_IN();
  10019     edx = ebp + (-0x128); /* 0x36023881: lea edx, [ebp - 0x128] */
  10020     /* cmp edx, ebx */ /* 0x36023887: cmp edx, ebx */
  10021     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10023     _flag_k = FK_CMP;
  10024     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602389C; /* 0x36023889: je 0x3602389c */
  10025 L_3602388B:
  10026     ecx = MEM32(ebx); /* 0x3602388B: mov ecx, dword ptr [ebx] */
  10027     edx = MEM32(ebx + 0x4); /* 0x3602388D: mov edx, dword ptr [ebx + 4] */
  10028     MEM32(ebp + (-0x128)) = ecx; /* 0x36023890: mov dword ptr [ebp - 0x128], ecx */
  10029     MEM32(ebp + (-0x124)) = edx; /* 0x36023896: mov dword ptr [ebp - 0x124], edx */
  10030 L_3602389C:
  10031     ecx = MEM32(esi); /* 0x3602389C: mov ecx, dword ptr [esi] */
  10032     MEM32(ebp + (-0x120)) = ecx; /* 0x3602389E: mov dword ptr [ebp - 0x120], ecx */
  10033     edx = MEM32(esi + 0x4); /* 0x360238A4: mov edx, dword ptr [esi + 4] */
  10034     MEM32(ebp + (-0x11C)) = edx; /* 0x360238A7: mov dword ptr [ebp - 0x11c], edx */
  10035     ecx = MEM32(esi + 0x8); /* 0x360238AD: mov ecx, dword ptr [esi + 8] */
  10036     MEM32(ebp + (-0x118)) = ecx; /* 0x360238B0: mov dword ptr [ebp - 0x118], ecx */
  10037     ecx = MEM32(ebp + 0x8); /* 0x360238B6: mov ecx, dword ptr [ebp + 8] */
  10038     edx = MEM32(ecx); /* 0x360238B9: mov edx, dword ptr [ecx] */
  10039     MEM32(ebp + (-0x114)) = edx; /* 0x360238BB: mov dword ptr [ebp - 0x114], edx */
  10040     edx = MEM32(ecx + 0x4); /* 0x360238C1: mov edx, dword ptr [ecx + 4] */
  10041     MEM32(ebp + (-0x110)) = edx; /* 0x360238C4: mov dword ptr [ebp - 0x110], edx */
  10042     edx = MEM32(ecx + 0x8); /* 0x360238CA: mov edx, dword ptr [ecx + 8] */
  10043     MEM32(ebp + (-0x10C)) = edx; /* 0x360238CD: mov dword ptr [ebp - 0x10c], edx */
  10044     ecx = MEM32(ecx + 0xC); /* 0x360238D3: mov ecx, dword ptr [ecx + 0xc] */
  10045     MEM32(ebp + (-0x108)) = ecx; /* 0x360238D6: mov dword ptr [ebp - 0x108], ecx */
  10046     ecx = MEM32(ebp + 0xC); /* 0x360238DC: mov ecx, dword ptr [ebp + 0xc] */
  10047     MEM32(ebp + (-0xF8)) = eax; /* 0x360238DF: mov dword ptr [ebp - 0xf8], eax */
  10048     eax = MEM32(ecx + 0x4); /* 0x360238E5: mov eax, dword ptr [ecx + 4] */
  10049     edx = ebp + (-0x128); /* 0x360238E8: lea edx, [ebp - 0x128] */
  10050     PUSH32(esp, edx); /* 0x360238EE: push edx */
  10051     PUSH32(esp, eax); /* 0x360238EF: push eax */
  10052     MEM32(ebp + (-0x104)) = 0; /* 0x360238F0: mov dword ptr [ebp - 0x104], 0 */
  10053     MEM32(ebp + (-0x100)) = 0; /* 0x360238FA: mov dword ptr [ebp - 0x100], 0 */
  10054     MEM32(ebp + (-0xFC)) = 1; /* 0x36023904: mov dword ptr [ebp - 0xfc], 1 */
  10055     eax = ebp + (-0x270); /* 0x3602390E: lea eax, [ebp - 0x270] */
  10056     goto L_36023D56; /* 0x36023914: jmp 0x36023d56 */
  10057 L_36023919:
  10058     ecx = ebp + (-0x2E8); /* 0x36023919: lea ecx, [ebp - 0x2e8] */
  10059     PUSH32(esp, ecx); /* 0x3602391F: push ecx */
  10060     ecx = esi; /* 0x36023920: mov ecx, esi */
  10061     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023922: call dword ptr [0x36170048] */
  10062     RECOMP_FLAGS_IN();
  10063     ecx = esi; /* 0x36023928: mov ecx, esi */
  10064     MEM32(ebp + 0x8) = eax; /* 0x3602392A: mov dword ptr [ebp + 8], eax */
  10065     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602392D: call dword ptr [0x3616ffb0] */
  10066     RECOMP_FLAGS_IN();
  10067     ecx = edi; /* 0x36023933: mov ecx, edi */
  10068     esi = eax; /* 0x36023935: mov esi, eax */
  10069     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023937: call dword ptr [0x361700b4] */
  10070     RECOMP_FLAGS_IN();
  10071     edx = ebp + (-0x190); /* 0x3602393D: lea edx, [ebp - 0x190] */
  10072     /* cmp edx, ebx */ /* 0x36023943: cmp edx, ebx */
  10073     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10074     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10075     _flag_k = FK_CMP;
  10076     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023958; /* 0x36023945: je 0x36023958 */
  10077 L_36023947:
  10078     ecx = MEM32(ebx); /* 0x36023947: mov ecx, dword ptr [ebx] */
  10079     edx = MEM32(ebx + 0x4); /* 0x36023949: mov edx, dword ptr [ebx + 4] */
  10080     MEM32(ebp + (-0x190)) = ecx; /* 0x3602394C: mov dword ptr [ebp - 0x190], ecx */
  10081     MEM32(ebp + (-0x18C)) = edx; /* 0x36023952: mov dword ptr [ebp - 0x18c], edx */
  10082 L_36023958:
  10083     ecx = MEM32(esi); /* 0x36023958: mov ecx, dword ptr [esi] */
  10084     MEM32(ebp + (-0x188)) = ecx; /* 0x3602395A: mov dword ptr [ebp - 0x188], ecx */
  10085     edx = MEM32(esi + 0x4); /* 0x36023960: mov edx, dword ptr [esi + 4] */
  10086     MEM32(ebp + (-0x184)) = edx; /* 0x36023963: mov dword ptr [ebp - 0x184], edx */
  10087     ecx = MEM32(esi + 0x8); /* 0x36023969: mov ecx, dword ptr [esi + 8] */
  10088     MEM32(ebp + (-0x180)) = ecx; /* 0x3602396C: mov dword ptr [ebp - 0x180], ecx */
  10089     ecx = MEM32(ebp + 0x8); /* 0x36023972: mov ecx, dword ptr [ebp + 8] */
  10090     edx = MEM32(ecx); /* 0x36023975: mov edx, dword ptr [ecx] */
  10091     MEM32(ebp + (-0x17C)) = edx; /* 0x36023977: mov dword ptr [ebp - 0x17c], edx */
  10092     edx = MEM32(ecx + 0x4); /* 0x3602397D: mov edx, dword ptr [ecx + 4] */
  10093     MEM32(ebp + (-0x178)) = edx; /* 0x36023980: mov dword ptr [ebp - 0x178], edx */
  10094     edx = MEM32(ecx + 0x8); /* 0x36023986: mov edx, dword ptr [ecx + 8] */
  10095     MEM32(ebp + (-0x174)) = edx; /* 0x36023989: mov dword ptr [ebp - 0x174], edx */
  10096     ecx = MEM32(ecx + 0xC); /* 0x3602398F: mov ecx, dword ptr [ecx + 0xc] */
  10097     MEM32(ebp + (-0x170)) = ecx; /* 0x36023992: mov dword ptr [ebp - 0x170], ecx */
  10098     ecx = MEM32(ebp + 0xC); /* 0x36023998: mov ecx, dword ptr [ebp + 0xc] */
  10099     MEM32(ebp + (-0x160)) = eax; /* 0x3602399B: mov dword ptr [ebp - 0x160], eax */
  10100     eax = MEM32(ecx + 0x4); /* 0x360239A1: mov eax, dword ptr [ecx + 4] */
  10101     edx = ebp + (-0x190); /* 0x360239A4: lea edx, [ebp - 0x190] */
  10102     PUSH32(esp, edx); /* 0x360239AA: push edx */
  10103     PUSH32(esp, eax); /* 0x360239AB: push eax */
  10104     MEM32(ebp + (-0x16C)) = 0; /* 0x360239AC: mov dword ptr [ebp - 0x16c], 0 */
  10105     MEM32(ebp + (-0x168)) = 0; /* 0x360239B6: mov dword ptr [ebp - 0x168], 0 */
  10106     MEM32(ebp + (-0x164)) = 2; /* 0x360239C0: mov dword ptr [ebp - 0x164], 2 */
  10107     eax = ebp + (-0x278); /* 0x360239CA: lea eax, [ebp - 0x278] */
  10108     goto L_36023D56; /* 0x360239D0: jmp 0x36023d56 */
  10109 L_360239D5:
  10110     ecx = ebp + (-0x2C8); /* 0x360239D5: lea ecx, [ebp - 0x2c8] */
  10111     PUSH32(esp, ecx); /* 0x360239DB: push ecx */
  10112     ecx = esi; /* 0x360239DC: mov ecx, esi */
  10113     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360239DE: call dword ptr [0x36170048] */
  10114     RECOMP_FLAGS_IN();
  10115     ecx = esi; /* 0x360239E4: mov ecx, esi */
  10116     MEM32(ebp + 0x8) = eax; /* 0x360239E6: mov dword ptr [ebp + 8], eax */
  10117     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360239E9: call dword ptr [0x3616ffb0] */
  10118     RECOMP_FLAGS_IN();
  10119     ecx = edi; /* 0x360239EF: mov ecx, edi */
  10120     esi = eax; /* 0x360239F1: mov esi, eax */
  10121     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360239F3: call dword ptr [0x361700b4] */
  10122     RECOMP_FLAGS_IN();
  10123     edx = ebp + (-0x1F8); /* 0x360239F9: lea edx, [ebp - 0x1f8] */
  10124     /* cmp edx, ebx */ /* 0x360239FF: cmp edx, ebx */
  10125     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10127     _flag_k = FK_CMP;
  10128     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A14; /* 0x36023A01: je 0x36023a14 */
  10129 L_36023A03:
  10130     ecx = MEM32(ebx); /* 0x36023A03: mov ecx, dword ptr [ebx] */
  10131     edx = MEM32(ebx + 0x4); /* 0x36023A05: mov edx, dword ptr [ebx + 4] */
  10132     MEM32(ebp + (-0x1F8)) = ecx; /* 0x36023A08: mov dword ptr [ebp - 0x1f8], ecx */
  10133     MEM32(ebp + (-0x1F4)) = edx; /* 0x36023A0E: mov dword ptr [ebp - 0x1f4], edx */
  10134 L_36023A14:
  10135     ecx = MEM32(esi); /* 0x36023A14: mov ecx, dword ptr [esi] */
  10136     MEM32(ebp + (-0x1F0)) = ecx; /* 0x36023A16: mov dword ptr [ebp - 0x1f0], ecx */
  10137     edx = MEM32(esi + 0x4); /* 0x36023A1C: mov edx, dword ptr [esi + 4] */
  10138     MEM32(ebp + (-0x1EC)) = edx; /* 0x36023A1F: mov dword ptr [ebp - 0x1ec], edx */
  10139     ecx = MEM32(esi + 0x8); /* 0x36023A25: mov ecx, dword ptr [esi + 8] */
  10140     MEM32(ebp + (-0x1E8)) = ecx; /* 0x36023A28: mov dword ptr [ebp - 0x1e8], ecx */
  10141     ecx = MEM32(ebp + 0x8); /* 0x36023A2E: mov ecx, dword ptr [ebp + 8] */
  10142     edx = MEM32(ecx); /* 0x36023A31: mov edx, dword ptr [ecx] */
  10143     MEM32(ebp + (-0x1E4)) = edx; /* 0x36023A33: mov dword ptr [ebp - 0x1e4], edx */
  10144     edx = MEM32(ecx + 0x4); /* 0x36023A39: mov edx, dword ptr [ecx + 4] */
  10145     MEM32(ebp + (-0x1E0)) = edx; /* 0x36023A3C: mov dword ptr [ebp - 0x1e0], edx */
  10146     edx = MEM32(ecx + 0x8); /* 0x36023A42: mov edx, dword ptr [ecx + 8] */
  10147     MEM32(ebp + (-0x1DC)) = edx; /* 0x36023A45: mov dword ptr [ebp - 0x1dc], edx */
  10148     ecx = MEM32(ecx + 0xC); /* 0x36023A4B: mov ecx, dword ptr [ecx + 0xc] */
  10149     MEM32(ebp + (-0x1D8)) = ecx; /* 0x36023A4E: mov dword ptr [ebp - 0x1d8], ecx */
  10150     ecx = MEM32(ebp + 0xC); /* 0x36023A54: mov ecx, dword ptr [ebp + 0xc] */
  10151     MEM32(ebp + (-0x1C8)) = eax; /* 0x36023A57: mov dword ptr [ebp - 0x1c8], eax */
  10152     eax = MEM32(ecx + 0x4); /* 0x36023A5D: mov eax, dword ptr [ecx + 4] */
  10153     edx = ebp + (-0x1F8); /* 0x36023A60: lea edx, [ebp - 0x1f8] */
  10154     PUSH32(esp, edx); /* 0x36023A66: push edx */
  10155     PUSH32(esp, eax); /* 0x36023A67: push eax */
  10156     MEM32(ebp + (-0x1D4)) = 0; /* 0x36023A68: mov dword ptr [ebp - 0x1d4], 0 */
  10157     MEM32(ebp + (-0x1D0)) = 0; /* 0x36023A72: mov dword ptr [ebp - 0x1d0], 0 */
  10158     MEM32(ebp + (-0x1CC)) = 2; /* 0x36023A7C: mov dword ptr [ebp - 0x1cc], 2 */
  10159     eax = ebp + (-0x26C); /* 0x36023A86: lea eax, [ebp - 0x26c] */
  10160     goto L_36023D56; /* 0x36023A8C: jmp 0x36023d56 */
  10161 L_36023A91:
  10162     /* cmp MEM32(ebx), 0xC748u */ /* 0x36023A91: cmp dword ptr [ebx], 0xc748 */
  10163     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0xC748u);
  10164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10165     _flag_k = FK_CMP;
  10166     if (CMP_NE(_flag_a, _flag_b)) goto L_36023B75; /* 0x36023A97: jne 0x36023b75 */
  10167 L_36023A9D:
  10168     ecx = MEM32(ebp + 0x10); /* 0x36023A9D: mov ecx, dword ptr [ebp + 0x10] */
  10169     /* test MEM8(ecx), 8 */ /* 0x36023AA0: test byte ptr [ecx], 8 */
  10170     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  10171     _cf = 0;
  10172     _flag_k = FK_NARROW(FK_TEST, 24);
  10173     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AA3: je 0x36023d5c */
  10174 L_36023AA9:
  10175     /* test edi, edi */ /* 0x36023AA9: test edi, edi */
  10176     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10177     _cf = 0;
  10178     _flag_k = FK_TEST;
  10179     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AAB: je 0x36023d5c */
  10180 L_36023AB1:
  10181     ecx = edi; /* 0x36023AB1: mov ecx, edi */
  10182     MEM32(ebp + (-0x58)) = 0; /* 0x36023AB3: mov dword ptr [ebp - 0x58], 0 */
  10183     MEM32(ebp + (-0x54)) = 0; /* 0x36023ABA: mov dword ptr [ebp - 0x54], 0 */
  10184     MEM32(ebp + (-0x50)) = 0; /* 0x36023AC1: mov dword ptr [ebp - 0x50], 0 */
  10185     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x36023AC8: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  10186     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023ACF: call dword ptr [0x3616ffb0] */
  10187     RECOMP_FLAGS_IN();
  10188     ecx = edi; /* 0x36023AD5: mov ecx, edi */
  10189     esi = eax; /* 0x36023AD7: mov esi, eax */
  10190     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023AD9: call dword ptr [0x361700b4] */
  10191     RECOMP_FLAGS_IN();
  10192     edx = ebp + (-0x260); /* 0x36023ADF: lea edx, [ebp - 0x260] */
  10193     /* cmp edx, ebx */ /* 0x36023AE5: cmp edx, ebx */
  10194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10196     _flag_k = FK_CMP;
  10197     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023AFA; /* 0x36023AE7: je 0x36023afa */
  10198 L_36023AE9:
  10199     ecx = MEM32(ebx); /* 0x36023AE9: mov ecx, dword ptr [ebx] */
  10200     edx = MEM32(ebx + 0x4); /* 0x36023AEB: mov edx, dword ptr [ebx + 4] */
  10201     MEM32(ebp + (-0x260)) = ecx; /* 0x36023AEE: mov dword ptr [ebp - 0x260], ecx */
  10202     MEM32(ebp + (-0x25C)) = edx; /* 0x36023AF4: mov dword ptr [ebp - 0x25c], edx */
  10203 L_36023AFA:
  10204     ecx = MEM32(esi); /* 0x36023AFA: mov ecx, dword ptr [esi] */
  10205     MEM32(ebp + (-0x258)) = ecx; /* 0x36023AFC: mov dword ptr [ebp - 0x258], ecx */
  10206     edx = MEM32(esi + 0x4); /* 0x36023B02: mov edx, dword ptr [esi + 4] */
  10207     MEM32(ebp + (-0x254)) = edx; /* 0x36023B05: mov dword ptr [ebp - 0x254], edx */
  10208     ecx = MEM32(esi + 0x8); /* 0x36023B0B: mov ecx, dword ptr [esi + 8] */
  10209     edx = MEM32(ebp + (-0x58)); /* 0x36023B0E: mov edx, dword ptr [ebp - 0x58] */
  10210     MEM32(ebp + (-0x250)) = ecx; /* 0x36023B11: mov dword ptr [ebp - 0x250], ecx */
  10211     ecx = MEM32(ebp + (-0x54)); /* 0x36023B17: mov ecx, dword ptr [ebp - 0x54] */
  10212     MEM32(ebp + (-0x24C)) = edx; /* 0x36023B1A: mov dword ptr [ebp - 0x24c], edx */
  10213     edx = MEM32(ebp + (-0x50)); /* 0x36023B20: mov edx, dword ptr [ebp - 0x50] */
  10214     MEM32(ebp + (-0x248)) = ecx; /* 0x36023B23: mov dword ptr [ebp - 0x248], ecx */
  10215     ecx = MEM32(ebp + (-0x4C)); /* 0x36023B29: mov ecx, dword ptr [ebp - 0x4c] */
  10216     MEM32(ebp + (-0x244)) = edx; /* 0x36023B2C: mov dword ptr [ebp - 0x244], edx */
  10217     MEM32(ebp + (-0x240)) = ecx; /* 0x36023B32: mov dword ptr [ebp - 0x240], ecx */
  10218     ecx = MEM32(ebp + 0xC); /* 0x36023B38: mov ecx, dword ptr [ebp + 0xc] */
  10219     MEM32(ebp + (-0x230)) = eax; /* 0x36023B3B: mov dword ptr [ebp - 0x230], eax */
  10220     eax = MEM32(ecx + 0x4); /* 0x36023B41: mov eax, dword ptr [ecx + 4] */
  10221     edx = ebp + (-0x260); /* 0x36023B44: lea edx, [ebp - 0x260] */
  10222     PUSH32(esp, edx); /* 0x36023B4A: push edx */
  10223     PUSH32(esp, eax); /* 0x36023B4B: push eax */
  10224     MEM32(ebp + (-0x23C)) = 0; /* 0x36023B4C: mov dword ptr [ebp - 0x23c], 0 */
  10225     MEM32(ebp + (-0x238)) = 0; /* 0x36023B56: mov dword ptr [ebp - 0x238], 0 */
  10226     MEM32(ebp + (-0x234)) = 8; /* 0x36023B60: mov dword ptr [ebp - 0x234], 8 */
  10227     eax = ebp + (-0x27C); /* 0x36023B6A: lea eax, [ebp - 0x27c] */
  10228     goto L_36023D56; /* 0x36023B70: jmp 0x36023d56 */
  10229 L_36023B75:
  10230     PUSH32(esp, 0); /* 0x36023B75: push 0 */
  10231     PUSH32(esp, 0x361B5C98u); /* 0x36023B77: push 0x361b5c98 */
  10232     PUSH32(esp, 0x361B2CC0u); /* 0x36023B7C: push 0x361b2cc0 */
  10233     PUSH32(esp, 0); /* 0x36023B81: push 0 */
  10234     PUSH32(esp, edi); /* 0x36023B83: push edi */
  10235     RECOMP_ICALL(0x3615FD86u); /* 0x36023B84: call 0x3615fd86 */ /* not lifted */
  10236     RECOMP_FLAGS_IN();
  10237     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10239     esp = esp + 0x14u; /* 0x36023B89: add esp, 0x14 */
  10240     _flag_k = FK_ADD;
  10241     /* test eax, eax */ /* 0x36023B8C: test eax, eax */
  10242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10243     _cf = 0;
  10244     _flag_k = FK_TEST;
  10245     if (TEST_Z(_flag_a, _flag_b)) goto L_36023C68; /* 0x36023B8E: je 0x36023c68 */
  10246 L_36023B94:
  10247     ecx = MEM32(ebp + 0x10); /* 0x36023B94: mov ecx, dword ptr [ebp + 0x10] */
  10248     /* test MEM8(ecx), 8 */ /* 0x36023B97: test byte ptr [ecx], 8 */
  10249     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  10250     _cf = 0;
  10251     _flag_k = FK_NARROW(FK_TEST, 24);
  10252     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023B9A: je 0x36023d5c */
  10253 L_36023BA0:
  10254     ecx = eax + 0x8C; /* 0x36023BA0: lea ecx, [eax + 0x8c] */
  10255     MEM32(ebp + (-0x48)) = 0; /* 0x36023BA6: mov dword ptr [ebp - 0x48], 0 */
  10256     MEM32(ebp + (-0x44)) = 0; /* 0x36023BAD: mov dword ptr [ebp - 0x44], 0 */
  10257     MEM32(ebp + (-0x40)) = 0; /* 0x36023BB4: mov dword ptr [ebp - 0x40], 0 */
  10258     MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x36023BBB: mov dword ptr [ebp - 0x3c], 0x3f800000 */
  10259     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023BC2: call dword ptr [0x3616ffb0] */
  10260     RECOMP_FLAGS_IN();
  10261     ecx = edi; /* 0x36023BC8: mov ecx, edi */
  10262     esi = eax; /* 0x36023BCA: mov esi, eax */
  10263     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023BCC: call dword ptr [0x361700b4] */
  10264     RECOMP_FLAGS_IN();
  10265     edx = ebp + (-0x22C); /* 0x36023BD2: lea edx, [ebp - 0x22c] */
  10266     /* cmp edx, ebx */ /* 0x36023BD8: cmp edx, ebx */
  10267     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10269     _flag_k = FK_CMP;
  10270     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023BED; /* 0x36023BDA: je 0x36023bed */
  10271 L_36023BDC:
  10272     ecx = MEM32(ebx); /* 0x36023BDC: mov ecx, dword ptr [ebx] */
  10273     edx = MEM32(ebx + 0x4); /* 0x36023BDE: mov edx, dword ptr [ebx + 4] */
  10274     MEM32(ebp + (-0x22C)) = ecx; /* 0x36023BE1: mov dword ptr [ebp - 0x22c], ecx */
  10275     MEM32(ebp + (-0x228)) = edx; /* 0x36023BE7: mov dword ptr [ebp - 0x228], edx */
  10276 L_36023BED:
  10277     ecx = MEM32(esi); /* 0x36023BED: mov ecx, dword ptr [esi] */
  10278     MEM32(ebp + (-0x224)) = ecx; /* 0x36023BEF: mov dword ptr [ebp - 0x224], ecx */
  10279     edx = MEM32(esi + 0x4); /* 0x36023BF5: mov edx, dword ptr [esi + 4] */
  10280     MEM32(ebp + (-0x220)) = edx; /* 0x36023BF8: mov dword ptr [ebp - 0x220], edx */
  10281     ecx = MEM32(esi + 0x8); /* 0x36023BFE: mov ecx, dword ptr [esi + 8] */
  10282     edx = MEM32(ebp + (-0x48)); /* 0x36023C01: mov edx, dword ptr [ebp - 0x48] */
  10283     MEM32(ebp + (-0x21C)) = ecx; /* 0x36023C04: mov dword ptr [ebp - 0x21c], ecx */
  10284     ecx = MEM32(ebp + (-0x44)); /* 0x36023C0A: mov ecx, dword ptr [ebp - 0x44] */
  10285     MEM32(ebp + (-0x218)) = edx; /* 0x36023C0D: mov dword ptr [ebp - 0x218], edx */
  10286     edx = MEM32(ebp + (-0x40)); /* 0x36023C13: mov edx, dword ptr [ebp - 0x40] */
  10287     MEM32(ebp + (-0x214)) = ecx; /* 0x36023C16: mov dword ptr [ebp - 0x214], ecx */
  10288     ecx = MEM32(ebp + (-0x3C)); /* 0x36023C1C: mov ecx, dword ptr [ebp - 0x3c] */
  10289     MEM32(ebp + (-0x210)) = edx; /* 0x36023C1F: mov dword ptr [ebp - 0x210], edx */
  10290     MEM32(ebp + (-0x20C)) = ecx; /* 0x36023C25: mov dword ptr [ebp - 0x20c], ecx */
  10291     ecx = MEM32(ebp + 0xC); /* 0x36023C2B: mov ecx, dword ptr [ebp + 0xc] */
  10292     MEM32(ebp + (-0x1FC)) = eax; /* 0x36023C2E: mov dword ptr [ebp - 0x1fc], eax */
  10293     eax = MEM32(ecx + 0x4); /* 0x36023C34: mov eax, dword ptr [ecx + 4] */
  10294     edx = ebp + (-0x22C); /* 0x36023C37: lea edx, [ebp - 0x22c] */
  10295     PUSH32(esp, edx); /* 0x36023C3D: push edx */
  10296     PUSH32(esp, eax); /* 0x36023C3E: push eax */
  10297     MEM32(ebp + (-0x208)) = 0; /* 0x36023C3F: mov dword ptr [ebp - 0x208], 0 */
  10298     MEM32(ebp + (-0x204)) = 0; /* 0x36023C49: mov dword ptr [ebp - 0x204], 0 */
  10299     MEM32(ebp + (-0x200)) = 5; /* 0x36023C53: mov dword ptr [ebp - 0x200], 5 */
  10300     eax = ebp + (-0x274); /* 0x36023C5D: lea eax, [ebp - 0x274] */
  10301     goto L_36023D56; /* 0x36023C63: jmp 0x36023d56 */
  10302 L_36023C68:
  10303     PUSH32(esp, 0); /* 0x36023C68: push 0 */
  10304     PUSH32(esp, 0x361B5D88u); /* 0x36023C6A: push 0x361b5d88 */
  10305     PUSH32(esp, 0x361B2CC0u); /* 0x36023C6F: push 0x361b2cc0 */
  10306     PUSH32(esp, 0); /* 0x36023C74: push 0 */
  10307     PUSH32(esp, edi); /* 0x36023C76: push edi */
  10308     RECOMP_ICALL(0x3615FD86u); /* 0x36023C77: call 0x3615fd86 */ /* not lifted */
  10309     RECOMP_FLAGS_IN();
  10310     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10311     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10312     esp = esp + 0x14u; /* 0x36023C7C: add esp, 0x14 */
  10313     _flag_k = FK_ADD;
  10314     /* test eax, eax */ /* 0x36023C7F: test eax, eax */
  10315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10316     _cf = 0;
  10317     _flag_k = FK_TEST;
  10318     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C81: je 0x36023d5c */
  10319 L_36023C87:
  10320     ecx = MEM32(ebp + 0x10); /* 0x36023C87: mov ecx, dword ptr [ebp + 0x10] */
  10321     /* test MEM8(ecx), 8 */ /* 0x36023C8A: test byte ptr [ecx], 8 */
  10322     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  10323     _cf = 0;
  10324     _flag_k = FK_NARROW(FK_TEST, 24);
  10325     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C8D: je 0x36023d5c */
  10326 L_36023C93:
  10327     ecx = eax + 0x8C; /* 0x36023C93: lea ecx, [eax + 0x8c] */
  10328     MEM32(ebp + (-0x38)) = 0; /* 0x36023C99: mov dword ptr [ebp - 0x38], 0 */
  10329     MEM32(ebp + (-0x34)) = 0; /* 0x36023CA0: mov dword ptr [ebp - 0x34], 0 */
  10330     MEM32(ebp + (-0x30)) = 0; /* 0x36023CA7: mov dword ptr [ebp - 0x30], 0 */
  10331     MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x36023CAE: mov dword ptr [ebp - 0x2c], 0x3f800000 */
  10332     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023CB5: call dword ptr [0x3616ffb0] */
  10333     RECOMP_FLAGS_IN();
  10334     ecx = edi; /* 0x36023CBB: mov ecx, edi */
  10335     esi = eax; /* 0x36023CBD: mov esi, eax */
  10336     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023CBF: call dword ptr [0x361700b4] */
  10337     RECOMP_FLAGS_IN();
  10338     edx = ebp + (-0xF4); /* 0x36023CC5: lea edx, [ebp - 0xf4] */
  10339     /* cmp edx, ebx */ /* 0x36023CCB: cmp edx, ebx */
  10340     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10342     _flag_k = FK_CMP;
  10343     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023CE0; /* 0x36023CCD: je 0x36023ce0 */
  10344 L_36023CCF:
  10345     ecx = MEM32(ebx); /* 0x36023CCF: mov ecx, dword ptr [ebx] */
  10346     edx = MEM32(ebx + 0x4); /* 0x36023CD1: mov edx, dword ptr [ebx + 4] */
  10347     MEM32(ebp + (-0xF4)) = ecx; /* 0x36023CD4: mov dword ptr [ebp - 0xf4], ecx */
  10348     MEM32(ebp + (-0xF0)) = edx; /* 0x36023CDA: mov dword ptr [ebp - 0xf0], edx */
  10349 L_36023CE0:
  10350     ecx = MEM32(esi); /* 0x36023CE0: mov ecx, dword ptr [esi] */
  10351     MEM32(ebp + (-0xEC)) = ecx; /* 0x36023CE2: mov dword ptr [ebp - 0xec], ecx */
  10352     edx = MEM32(esi + 0x4); /* 0x36023CE8: mov edx, dword ptr [esi + 4] */
  10353     MEM32(ebp + (-0xE8)) = edx; /* 0x36023CEB: mov dword ptr [ebp - 0xe8], edx */
  10354     ecx = MEM32(esi + 0x8); /* 0x36023CF1: mov ecx, dword ptr [esi + 8] */
  10355     edx = MEM32(ebp + (-0x38)); /* 0x36023CF4: mov edx, dword ptr [ebp - 0x38] */
  10356     MEM32(ebp + (-0xE4)) = ecx; /* 0x36023CF7: mov dword ptr [ebp - 0xe4], ecx */
  10357     ecx = MEM32(ebp + (-0x34)); /* 0x36023CFD: mov ecx, dword ptr [ebp - 0x34] */
  10358     MEM32(ebp + (-0xE0)) = edx; /* 0x36023D00: mov dword ptr [ebp - 0xe0], edx */
  10359     edx = MEM32(ebp + (-0x30)); /* 0x36023D06: mov edx, dword ptr [ebp - 0x30] */
  10360     MEM32(ebp + (-0xDC)) = ecx; /* 0x36023D09: mov dword ptr [ebp - 0xdc], ecx */
  10361     ecx = MEM32(ebp + (-0x2C)); /* 0x36023D0F: mov ecx, dword ptr [ebp - 0x2c] */
  10362     MEM32(ebp + (-0xD8)) = edx; /* 0x36023D12: mov dword ptr [ebp - 0xd8], edx */
  10363     MEM32(ebp + (-0xD4)) = ecx; /* 0x36023D18: mov dword ptr [ebp - 0xd4], ecx */
  10364     ecx = MEM32(ebp + 0xC); /* 0x36023D1E: mov ecx, dword ptr [ebp + 0xc] */
  10365     MEM32(ebp + (-0xC4)) = eax; /* 0x36023D21: mov dword ptr [ebp - 0xc4], eax */
  10366     eax = MEM32(ecx + 0x4); /* 0x36023D27: mov eax, dword ptr [ecx + 4] */
  10367     edx = ebp + (-0xF4); /* 0x36023D2A: lea edx, [ebp - 0xf4] */
  10368     PUSH32(esp, edx); /* 0x36023D30: push edx */
  10369     PUSH32(esp, eax); /* 0x36023D31: push eax */
  10370     MEM32(ebp + (-0xD0)) = 0; /* 0x36023D32: mov dword ptr [ebp - 0xd0], 0 */
  10371     MEM32(ebp + (-0xCC)) = 0; /* 0x36023D3C: mov dword ptr [ebp - 0xcc], 0 */
  10372     MEM32(ebp + (-0xC8)) = 6; /* 0x36023D46: mov dword ptr [ebp - 0xc8], 6 */
  10373     eax = ebp + (-0x284); /* 0x36023D50: lea eax, [ebp - 0x284] */
  10374 L_36023D56:
  10375     PUSH32(esp, eax); /* 0x36023D56: push eax */
  10376     RECOMP_ICALL(0x36029730u); /* 0x36023D57: call 0x36029730 */ /* not lifted */
  10377     RECOMP_FLAGS_IN();
  10378 L_36023D5C:
  10379     eax = MEM32(ebp + (-0x20)); /* 0x36023D5C: mov eax, dword ptr [ebp - 0x20] */
  10380     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
  10381     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10382     ebx = ebx + 8; /* 0x36023D5F: add ebx, 8 */
  10383     _flag_k = FK_ADD;
  10384     /* cmp ebx, eax */ /* 0x36023D62: cmp ebx, eax */
  10385     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  10386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10387     _flag_k = FK_CMP;
  10388     RECOMP_BACKEDGE();
  10389     if (CMP_NE(_flag_a, _flag_b)) goto L_36023447; /* 0x36023D64: jne 0x36023447 */
  10390 L_36023D6A:
  10391     ebx = MEM32(ebp + (-0x24)); /* 0x36023D6A: mov ebx, dword ptr [ebp - 0x24] */
  10392     PUSH32(esp, ebx); /* 0x36023D6D: push ebx */
  10393     RECOMP_ICALL(0x3615FCC4u); /* 0x36023D6E: call 0x3615fcc4 */ /* not lifted */
  10394     RECOMP_FLAGS_IN();
  10395     ecx = MEM32(ebp + (-0xC)); /* 0x36023D73: mov ecx, dword ptr [ebp - 0xc] */
  10396     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10397     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10398     esp = esp + 4; /* 0x36023D76: add esp, 4 */
  10399     _flag_k = FK_ADD;
  10400     ebx = POP32_VAL(esp); /* 0x36023D79: pop ebx */
  10401     edi = POP32_VAL(esp); /* 0x36023D7A: pop edi */
  10402     SET_LO8(eax, 1); /* 0x36023D7B: mov al, 1 */
  10403     esi = POP32_VAL(esp); /* 0x36023D7D: pop esi */
  10404     MEM32(FS_BASE + (0)) = ecx; /* 0x36023D7E: mov dword ptr fs:[0], ecx */
  10405     esp = ebp; /* 0x36023D85: mov esp, ebp */
  10406     ebp = POP32_VAL(esp); /* 0x36023D87: pop ebp */
  10407     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36023D88: ret 0xc */
  10408     RECOMP_REGS_OUT();
  10409 }
  10410 
  10411 void sub_36023D56(void) {
  10412     int _fpu_cmp = 0;
  10413     uint32_t _cf = 0;
  10414     int _df = 1;
  10415     uint32_t _flag_k = FK_NONE;
  10416     uint32_t _flag_a = 0, _flag_b = 0;
  10417     uint32_t _itail_tgt = 0;
  10418     RECOMP_REGS_LOCALS
  10419     RECOMP_ENTER(0x36023D56u);
  10420 
  10421     goto L_36023D56;
  10422 L_36023447:
  10423     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10424     esi = 0; /* 0x36023447: xor esi, esi */
  10425     _cf = 0;
  10426     _flag_k = FK_TEST;
  10427     PUSH32(esp, ebx); /* 0x36023449: push ebx */
  10428     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602344A: call dword ptr [0x3616ff70] */
  10429     RECOMP_FLAGS_IN();
  10430     PUSH32(esp, esi); /* 0x36023450: push esi */
  10431     PUSH32(esp, 0x361B2CD8u); /* 0x36023451: push 0x361b2cd8 */
  10432     PUSH32(esp, 0x361B2CC0u); /* 0x36023456: push 0x361b2cc0 */
  10433     edi = eax; /* 0x3602345B: mov edi, eax */
  10434     PUSH32(esp, esi); /* 0x3602345D: push esi */
  10435     PUSH32(esp, edi); /* 0x3602345E: push edi */
  10436     RECOMP_ICALL(0x3615FD86u); /* 0x3602345F: call 0x3615fd86 */ /* not lifted */
  10437     RECOMP_FLAGS_IN();
  10438     esi = eax; /* 0x36023464: mov esi, eax */
  10439     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  10440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10441     esp = esp + 0x18u; /* 0x36023466: add esp, 0x18 */
  10442     _flag_k = FK_ADD;
  10443     /* test esi, esi */ /* 0x36023469: test esi, esi */
  10444     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  10445     _cf = 0;
  10446     _flag_k = FK_TEST;
  10447     if (TEST_Z(_flag_a, _flag_b)) goto L_36023A91; /* 0x3602346B: je 0x36023a91 */
  10448 L_36023471:
  10449     /* cmp esi, MEM32(ebp + (-0x18)) */ /* 0x36023471: cmp esi, dword ptr [ebp - 0x18] */
  10450     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
  10451     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10452     _flag_k = FK_CMP;
  10453     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A91; /* 0x36023474: je 0x36023a91 */
  10454 L_3602347A:
  10455     edx = MEM32(esi + 0xE4); /* 0x3602347A: mov edx, dword ptr [esi + 0xe4] */
  10456     ecx = esi + 0xE4; /* 0x36023480: lea ecx, [esi + 0xe4] */
  10457     PUSH32(esp, 2); /* 0x36023486: push 2 */
  10458     PUSH32(esp, 0xC2u); /* 0x36023488: push 0xc2 */
  10459     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602348D: call dword ptr [edx + 4] */
  10460     RECOMP_FLAGS_IN();
  10461     /* test eax, eax */ /* 0x36023490: test eax, eax */
  10462     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10463     _cf = 0;
  10464     _flag_k = FK_TEST;
  10465     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023492: je 0x36023d5c */
  10466 L_36023498:
  10467     eax = MEM32(esi + 0xE4); /* 0x36023498: mov eax, dword ptr [esi + 0xe4] */
  10468     ecx = esi + 0xE4; /* 0x3602349E: lea ecx, [esi + 0xe4] */
  10469     PUSH32(esp, 2); /* 0x360234A4: push 2 */
  10470     PUSH32(esp, 0x184u); /* 0x360234A6: push 0x184 */
  10471     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234AB: call dword ptr [eax + 4] */
  10472     RECOMP_FLAGS_IN();
  10473     /* test eax, eax */ /* 0x360234AE: test eax, eax */
  10474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10475     _cf = 0;
  10476     _flag_k = FK_TEST;
  10477     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234B0: jne 0x36023d5c */
  10478 L_360234B6:
  10479     ecx = MEM32(esi + 0x188); /* 0x360234B6: mov ecx, dword ptr [esi + 0x188] */
  10480     PUSH32(esp, 0x80u); /* 0x360234BC: push 0x80 */
  10481     RECOMP_ICALL(0x36059BA0u); /* 0x360234C1: call 0x36059ba0 */ /* not lifted */
  10482     RECOMP_FLAGS_IN();
  10483     /* test LO8(eax), LO8(eax) */ /* 0x360234C6: test al, al */
  10484     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10485     _cf = 0;
  10486     _flag_k = FK_NARROW(FK_TEST, 24);
  10487     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234C8: jne 0x36023d5c */
  10488 L_360234CE:
  10489     ecx = MEM32(esi + 0x170); /* 0x360234CE: mov ecx, dword ptr [esi + 0x170] */
  10490     edx = MEM32(ecx + 0x24); /* 0x360234D4: mov edx, dword ptr [ecx + 0x24] */
  10491     eax = MEM32(esi + 0xE4); /* 0x360234D7: mov eax, dword ptr [esi + 0xe4] */
  10492     ecx = esi + 0xE4; /* 0x360234DD: lea ecx, [esi + 0xe4] */
  10493     PUSH32(esp, 2); /* 0x360234E3: push 2 */
  10494     PUSH32(esp, 0x21u); /* 0x360234E5: push 0x21 */
  10495     MEM32(ebp + 0x8) = edx; /* 0x360234E7: mov dword ptr [ebp + 8], edx */
  10496     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234EA: call dword ptr [eax + 4] */
  10497     RECOMP_FLAGS_IN();
  10498     MEM32(ebp + (-0x10)) = eax; /* 0x360234ED: mov dword ptr [ebp - 0x10], eax */
  10499     eax = MEM32(ebp + 0x8); /* 0x360234F0: mov eax, dword ptr [ebp + 8] */
  10500     /* test eax, eax */ /* 0x360234F3: test eax, eax */
  10501     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10502     _cf = 0;
  10503     _flag_k = FK_TEST;
  10504     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x360234F5: je 0x360235ed */
  10505 L_360234FB:
  10506     ecx = MEM32(ebp + 0x10); /* 0x360234FB: mov ecx, dword ptr [ebp + 0x10] */
  10507     /* test MEM8(ecx), 8 */ /* 0x360234FE: test byte ptr [ecx], 8 */
  10508     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  10509     _cf = 0;
  10510     _flag_k = FK_NARROW(FK_TEST, 24);
  10511     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x36023501: je 0x360235ed */
  10512 L_36023507:
  10513     edx = MEM32(esi + 0xE4); /* 0x36023507: mov edx, dword ptr [esi + 0xe4] */
  10514     ecx = esi + 0xE4; /* 0x3602350D: lea ecx, [esi + 0xe4] */
  10515     PUSH32(esp, 2); /* 0x36023513: push 2 */
  10516     PUSH32(esp, 0x217u); /* 0x36023515: push 0x217 */
  10517     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602351A: call dword ptr [edx + 4] */
  10518     RECOMP_FLAGS_IN();
  10519     /* test eax, eax */ /* 0x3602351D: test eax, eax */
  10520     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10521     _cf = 0;
  10522     _flag_k = FK_TEST;
  10523     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x3602351F: je 0x360235ed */
  10524 L_36023525:
  10525     eax = MEM32(ebp + 0x8); /* 0x36023525: mov eax, dword ptr [ebp + 8] */
  10526     ecx = MEM32(eax); /* 0x36023528: mov ecx, dword ptr [eax] */
  10527     fp_push((double)(int32_t)MEM32(eax + 0x20)); /* 0x3602352A: fild dword ptr [eax + 0x20] */
  10528     edx = ebp + (-0x2B8); /* 0x3602352D: lea edx, [ebp - 0x2b8] */
  10529     MEM32(ebp + (-0x14)) = ecx; /* 0x36023533: mov dword ptr [ebp - 0x14], ecx */
  10530     PUSH32(esp, edx); /* 0x36023536: push edx */
  10531     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36023537: fstp dword ptr [ebp - 0x10] */
  10532     ecx = esi; /* 0x3602353A: mov ecx, esi */
  10533     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602353C: call dword ptr [0x36170048] */
  10534     RECOMP_FLAGS_IN();
  10535     ecx = esi; /* 0x36023542: mov ecx, esi */
  10536     MEM32(ebp + 0x8) = eax; /* 0x36023544: mov dword ptr [ebp + 8], eax */
  10537     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023547: call dword ptr [0x3616ffb0] */
  10538     RECOMP_FLAGS_IN();
  10539     ecx = edi; /* 0x3602354D: mov ecx, edi */
  10540     esi = eax; /* 0x3602354F: mov esi, eax */
  10541     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023551: call dword ptr [0x361700b4] */
  10542     RECOMP_FLAGS_IN();
  10543     ecx = ebp + (-0x1C4); /* 0x36023557: lea ecx, [ebp - 0x1c4] */
  10544     /* cmp ecx, ebx */ /* 0x3602355D: cmp ecx, ebx */
  10545     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  10546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10547     _flag_k = FK_CMP;
  10548     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023572; /* 0x3602355F: je 0x36023572 */
  10549 L_36023561:
  10550     edx = MEM32(ebx); /* 0x36023561: mov edx, dword ptr [ebx] */
  10551     ecx = MEM32(ebx + 0x4); /* 0x36023563: mov ecx, dword ptr [ebx + 4] */
  10552     MEM32(ebp + (-0x1C4)) = edx; /* 0x36023566: mov dword ptr [ebp - 0x1c4], edx */
  10553     MEM32(ebp + (-0x1C0)) = ecx; /* 0x3602356C: mov dword ptr [ebp - 0x1c0], ecx */
  10554 L_36023572:
  10555     edx = MEM32(esi); /* 0x36023572: mov edx, dword ptr [esi] */
  10556     MEM32(ebp + (-0x1BC)) = edx; /* 0x36023574: mov dword ptr [ebp - 0x1bc], edx */
  10557     ecx = MEM32(esi + 0x4); /* 0x3602357A: mov ecx, dword ptr [esi + 4] */
  10558     MEM32(ebp + (-0x1B8)) = ecx; /* 0x3602357D: mov dword ptr [ebp - 0x1b8], ecx */
  10559     edx = MEM32(esi + 0x8); /* 0x36023583: mov edx, dword ptr [esi + 8] */
  10560     ecx = MEM32(ebp + 0x8); /* 0x36023586: mov ecx, dword ptr [ebp + 8] */
  10561     MEM32(ebp + (-0x1B4)) = edx; /* 0x36023589: mov dword ptr [ebp - 0x1b4], edx */
  10562     edx = MEM32(ecx); /* 0x3602358F: mov edx, dword ptr [ecx] */
  10563     MEM32(ebp + (-0x1B0)) = edx; /* 0x36023591: mov dword ptr [ebp - 0x1b0], edx */
  10564     edx = MEM32(ecx + 0x4); /* 0x36023597: mov edx, dword ptr [ecx + 4] */
  10565     MEM32(ebp + (-0x1AC)) = edx; /* 0x3602359A: mov dword ptr [ebp - 0x1ac], edx */
  10566     edx = MEM32(ecx + 0x8); /* 0x360235A0: mov edx, dword ptr [ecx + 8] */
  10567     MEM32(ebp + (-0x1A8)) = edx; /* 0x360235A3: mov dword ptr [ebp - 0x1a8], edx */
  10568     ecx = MEM32(ecx + 0xC); /* 0x360235A9: mov ecx, dword ptr [ecx + 0xc] */
  10569     edx = MEM32(ebp + (-0x10)); /* 0x360235AC: mov edx, dword ptr [ebp - 0x10] */
  10570     MEM32(ebp + (-0x1A4)) = ecx; /* 0x360235AF: mov dword ptr [ebp - 0x1a4], ecx */
  10571     ecx = MEM32(ebp + (-0x14)); /* 0x360235B5: mov ecx, dword ptr [ebp - 0x14] */
  10572     MEM32(ebp + (-0x1A0)) = edx; /* 0x360235B8: mov dword ptr [ebp - 0x1a0], edx */
  10573     MEM32(ebp + (-0x19C)) = ecx; /* 0x360235BE: mov dword ptr [ebp - 0x19c], ecx */
  10574     ecx = MEM32(ebp + 0xC); /* 0x360235C4: mov ecx, dword ptr [ebp + 0xc] */
  10575     MEM32(ebp + (-0x194)) = eax; /* 0x360235C7: mov dword ptr [ebp - 0x194], eax */
  10576     eax = MEM32(ecx + 0x4); /* 0x360235CD: mov eax, dword ptr [ecx + 4] */
  10577     edx = ebp + (-0x1C4); /* 0x360235D0: lea edx, [ebp - 0x1c4] */
  10578     PUSH32(esp, edx); /* 0x360235D6: push edx */
  10579     PUSH32(esp, eax); /* 0x360235D7: push eax */
  10580     MEM32(ebp + (-0x198)) = 9; /* 0x360235D8: mov dword ptr [ebp - 0x198], 9 */
  10581     eax = ebp + (-0x268); /* 0x360235E2: lea eax, [ebp - 0x268] */
  10582     goto L_36023D56; /* 0x360235E8: jmp 0x36023d56 */
  10583 L_360235ED:
  10584     eax = MEM32(ebp + (-0x10)); /* 0x360235ED: mov eax, dword ptr [ebp - 0x10] */
  10585     ecx = MEM32(ebp + 0x10); /* 0x360235F0: mov ecx, dword ptr [ebp + 0x10] */
  10586     /* cmp eax, 3 */ /* 0x360235F3: cmp eax, 3 */
  10587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10589     _flag_k = FK_CMP;
  10590     SET_LO8(eax, MEM8(ecx)); /* 0x360235F6: mov al, byte ptr [ecx] */
  10591     if (CMP_NE(_flag_a, _flag_b)) goto L_360236C2; /* 0x360235F8: jne 0x360236c2 */
  10592 L_360235FE:
  10593     /* test LO8(eax), 2 */ /* 0x360235FE: test al, 2 */
  10594     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
  10595     _cf = 0;
  10596     _flag_k = FK_NARROW(FK_TEST, 24);
  10597     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023600: je 0x36023d5c */
  10598 L_36023606:
  10599     edx = ebp + (-0x2A8); /* 0x36023606: lea edx, [ebp - 0x2a8] */
  10600     PUSH32(esp, edx); /* 0x3602360C: push edx */
  10601     ecx = esi; /* 0x3602360D: mov ecx, esi */
  10602     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602360F: call dword ptr [0x36170048] */
  10603     RECOMP_FLAGS_IN();
  10604     ecx = esi; /* 0x36023615: mov ecx, esi */
  10605     MEM32(ebp + 0x8) = eax; /* 0x36023617: mov dword ptr [ebp + 8], eax */
  10606     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602361A: call dword ptr [0x3616ffb0] */
  10607     RECOMP_FLAGS_IN();
  10608     ecx = edi; /* 0x36023620: mov ecx, edi */
  10609     esi = eax; /* 0x36023622: mov esi, eax */
  10610     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023624: call dword ptr [0x361700b4] */
  10611     RECOMP_FLAGS_IN();
  10612     ecx = ebp + (-0x15C); /* 0x3602362A: lea ecx, [ebp - 0x15c] */
  10613     /* cmp ecx, ebx */ /* 0x36023630: cmp ecx, ebx */
  10614     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  10615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10616     _flag_k = FK_CMP;
  10617     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023645; /* 0x36023632: je 0x36023645 */
  10618 L_36023634:
  10619     edx = MEM32(ebx); /* 0x36023634: mov edx, dword ptr [ebx] */
  10620     ecx = MEM32(ebx + 0x4); /* 0x36023636: mov ecx, dword ptr [ebx + 4] */
  10621     MEM32(ebp + (-0x15C)) = edx; /* 0x36023639: mov dword ptr [ebp - 0x15c], edx */
  10622     MEM32(ebp + (-0x158)) = ecx; /* 0x3602363F: mov dword ptr [ebp - 0x158], ecx */
  10623 L_36023645:
  10624     edx = MEM32(esi); /* 0x36023645: mov edx, dword ptr [esi] */
  10625     MEM32(ebp + (-0x154)) = edx; /* 0x36023647: mov dword ptr [ebp - 0x154], edx */
  10626     ecx = MEM32(esi + 0x4); /* 0x3602364D: mov ecx, dword ptr [esi + 4] */
  10627     MEM32(ebp + (-0x150)) = ecx; /* 0x36023650: mov dword ptr [ebp - 0x150], ecx */
  10628     edx = MEM32(esi + 0x8); /* 0x36023656: mov edx, dword ptr [esi + 8] */
  10629     ecx = MEM32(ebp + 0x8); /* 0x36023659: mov ecx, dword ptr [ebp + 8] */
  10630     MEM32(ebp + (-0x14C)) = edx; /* 0x3602365C: mov dword ptr [ebp - 0x14c], edx */
  10631     edx = MEM32(ecx); /* 0x36023662: mov edx, dword ptr [ecx] */
  10632     MEM32(ebp + (-0x148)) = edx; /* 0x36023664: mov dword ptr [ebp - 0x148], edx */
  10633     edx = MEM32(ecx + 0x4); /* 0x3602366A: mov edx, dword ptr [ecx + 4] */
  10634     MEM32(ebp + (-0x144)) = edx; /* 0x3602366D: mov dword ptr [ebp - 0x144], edx */
  10635     edx = MEM32(ecx + 0x8); /* 0x36023673: mov edx, dword ptr [ecx + 8] */
  10636     MEM32(ebp + (-0x140)) = edx; /* 0x36023676: mov dword ptr [ebp - 0x140], edx */
  10637     ecx = MEM32(ecx + 0xC); /* 0x3602367C: mov ecx, dword ptr [ecx + 0xc] */
  10638     MEM32(ebp + (-0x13C)) = ecx; /* 0x3602367F: mov dword ptr [ebp - 0x13c], ecx */
  10639     ecx = MEM32(ebp + 0xC); /* 0x36023685: mov ecx, dword ptr [ebp + 0xc] */
  10640     MEM32(ebp + (-0x12C)) = eax; /* 0x36023688: mov dword ptr [ebp - 0x12c], eax */
  10641     eax = MEM32(ecx + 0x4); /* 0x3602368E: mov eax, dword ptr [ecx + 4] */
  10642     edx = ebp + (-0x15C); /* 0x36023691: lea edx, [ebp - 0x15c] */
  10643     PUSH32(esp, edx); /* 0x36023697: push edx */
  10644     PUSH32(esp, eax); /* 0x36023698: push eax */
  10645     MEM32(ebp + (-0x138)) = 0; /* 0x36023699: mov dword ptr [ebp - 0x138], 0 */
  10646     MEM32(ebp + (-0x134)) = 0; /* 0x360236A3: mov dword ptr [ebp - 0x134], 0 */
  10647     MEM32(ebp + (-0x130)) = 3; /* 0x360236AD: mov dword ptr [ebp - 0x130], 3 */
  10648     eax = ebp + (-0x264); /* 0x360236B7: lea eax, [ebp - 0x264] */
  10649     goto L_36023D56; /* 0x360236BD: jmp 0x36023d56 */
  10650 L_360236C2:
  10651     /* test LO8(eax), 4 */ /* 0x360236C2: test al, 4 */
  10652     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
  10653     _cf = 0;
  10654     _flag_k = FK_NARROW(FK_TEST, 24);
  10655     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360236C4: je 0x36023d5c */
  10656 L_360236CA:
  10657     ecx = MEM32(ebp + (-0x18)); /* 0x360236CA: mov ecx, dword ptr [ebp - 0x18] */
  10658     PUSH32(esp, ebx); /* 0x360236CD: push ebx */
  10659     RECOMP_ICALL(0x36071E40u); /* 0x360236CE: call 0x36071e40 */ /* not lifted */
  10660     RECOMP_FLAGS_IN();
  10661     ecx = eax; /* 0x360236D3: mov ecx, eax */
  10662     RECOMP_ICALL(0x36076E20u); /* 0x360236D5: call 0x36076e20 */ /* not lifted */
  10663     RECOMP_FLAGS_IN();
  10664     /* test LO8(eax), LO8(eax) */ /* 0x360236DA: test al, al */
  10665     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10666     _cf = 0;
  10667     _flag_k = FK_NARROW(FK_TEST, 24);
  10668     if (TEST_Z(_flag_a, _flag_b)) goto L_36023780; /* 0x360236DC: je 0x36023780 */
  10669 L_360236E2:
  10670     edx = ebp + (-0x298); /* 0x360236E2: lea edx, [ebp - 0x298] */
  10671     PUSH32(esp, edx); /* 0x360236E8: push edx */
  10672     ecx = esi; /* 0x360236E9: mov ecx, esi */
  10673     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360236EB: call dword ptr [0x36170048] */
  10674     RECOMP_FLAGS_IN();
  10675     ecx = esi; /* 0x360236F1: mov ecx, esi */
  10676     MEM32(ebp + 0x8) = eax; /* 0x360236F3: mov dword ptr [ebp + 8], eax */
  10677     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360236F6: call dword ptr [0x3616ffb0] */
  10678     RECOMP_FLAGS_IN();
  10679     ecx = edi; /* 0x360236FC: mov ecx, edi */
  10680     esi = eax; /* 0x360236FE: mov esi, eax */
  10681     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023700: call dword ptr [0x361700b4] */
  10682     RECOMP_FLAGS_IN();
  10683     ecx = ebp + (-0x8C); /* 0x36023706: lea ecx, [ebp - 0x8c] */
  10684     /* cmp ecx, ebx */ /* 0x3602370C: cmp ecx, ebx */
  10685     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  10686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10687     _flag_k = FK_CMP;
  10688     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023721; /* 0x3602370E: je 0x36023721 */
  10689 L_36023710:
  10690     edx = MEM32(ebx); /* 0x36023710: mov edx, dword ptr [ebx] */
  10691     ecx = MEM32(ebx + 0x4); /* 0x36023712: mov ecx, dword ptr [ebx + 4] */
  10692     MEM32(ebp + (-0x8C)) = edx; /* 0x36023715: mov dword ptr [ebp - 0x8c], edx */
  10693     MEM32(ebp + (-0x88)) = ecx; /* 0x3602371B: mov dword ptr [ebp - 0x88], ecx */
  10694 L_36023721:
  10695     edx = MEM32(esi); /* 0x36023721: mov edx, dword ptr [esi] */
  10696     MEM32(ebp + (-0x84)) = edx; /* 0x36023723: mov dword ptr [ebp - 0x84], edx */
  10697     ecx = MEM32(esi + 0x4); /* 0x36023729: mov ecx, dword ptr [esi + 4] */
  10698     MEM32(ebp + (-0x80)) = ecx; /* 0x3602372C: mov dword ptr [ebp - 0x80], ecx */
  10699     edx = MEM32(esi + 0x8); /* 0x3602372F: mov edx, dword ptr [esi + 8] */
  10700     ecx = MEM32(ebp + 0x8); /* 0x36023732: mov ecx, dword ptr [ebp + 8] */
  10701     MEM32(ebp + (-0x7C)) = edx; /* 0x36023735: mov dword ptr [ebp - 0x7c], edx */
  10702     edx = MEM32(ecx); /* 0x36023738: mov edx, dword ptr [ecx] */
  10703     MEM32(ebp + (-0x78)) = edx; /* 0x3602373A: mov dword ptr [ebp - 0x78], edx */
  10704     edx = MEM32(ecx + 0x4); /* 0x3602373D: mov edx, dword ptr [ecx + 4] */
  10705     MEM32(ebp + (-0x74)) = edx; /* 0x36023740: mov dword ptr [ebp - 0x74], edx */
  10706     edx = MEM32(ecx + 0x8); /* 0x36023743: mov edx, dword ptr [ecx + 8] */
  10707     MEM32(ebp + (-0x70)) = edx; /* 0x36023746: mov dword ptr [ebp - 0x70], edx */
  10708     ecx = MEM32(ecx + 0xC); /* 0x36023749: mov ecx, dword ptr [ecx + 0xc] */
  10709     MEM32(ebp + (-0x6C)) = ecx; /* 0x3602374C: mov dword ptr [ebp - 0x6c], ecx */
  10710     ecx = MEM32(ebp + 0xC); /* 0x3602374F: mov ecx, dword ptr [ebp + 0xc] */
  10711     MEM32(ebp + (-0x5C)) = eax; /* 0x36023752: mov dword ptr [ebp - 0x5c], eax */
  10712     eax = MEM32(ecx + 0x4); /* 0x36023755: mov eax, dword ptr [ecx + 4] */
  10713     edx = ebp + (-0x8C); /* 0x36023758: lea edx, [ebp - 0x8c] */
  10714     PUSH32(esp, edx); /* 0x3602375E: push edx */
  10715     PUSH32(esp, eax); /* 0x3602375F: push eax */
  10716     MEM32(ebp + (-0x68)) = 0; /* 0x36023760: mov dword ptr [ebp - 0x68], 0 */
  10717     MEM32(ebp + (-0x64)) = 0; /* 0x36023767: mov dword ptr [ebp - 0x64], 0 */
  10718     MEM32(ebp + (-0x60)) = 4; /* 0x3602376E: mov dword ptr [ebp - 0x60], 4 */
  10719     eax = ebp + (-0x288); /* 0x36023775: lea eax, [ebp - 0x288] */
  10720     goto L_36023D56; /* 0x3602377B: jmp 0x36023d56 */
  10721 L_36023780:
  10722     ecx = MEM32(ebp + 0x10); /* 0x36023780: mov ecx, dword ptr [ebp + 0x10] */
  10723     /* test MEM8(ecx), 1 */ /* 0x36023783: test byte ptr [ecx], 1 */
  10724     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  10725     _cf = 0;
  10726     _flag_k = FK_NARROW(FK_TEST, 24);
  10727     if (TEST_Z(_flag_a, _flag_b)) goto L_360239D5; /* 0x36023786: je 0x360239d5 */
  10728 L_3602378C:
  10729     eax = MEM32(ebp + (-0x10)); /* 0x3602378C: mov eax, dword ptr [ebp - 0x10] */
  10730     /* cmp eax, 1 */ /* 0x3602378F: cmp eax, 1 */
  10731     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10733     _flag_k = FK_CMP;
  10734     if (CMP_NE(_flag_a, _flag_b)) goto L_36023854; /* 0x36023792: jne 0x36023854 */
  10735 L_36023798:
  10736     edx = ebp + (-0x2D8); /* 0x36023798: lea edx, [ebp - 0x2d8] */
  10737     PUSH32(esp, edx); /* 0x3602379E: push edx */
  10738     ecx = esi; /* 0x3602379F: mov ecx, esi */
  10739     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360237A1: call dword ptr [0x36170048] */
  10740     RECOMP_FLAGS_IN();
  10741     ecx = esi; /* 0x360237A7: mov ecx, esi */
  10742     MEM32(ebp + 0x8) = eax; /* 0x360237A9: mov dword ptr [ebp + 8], eax */
  10743     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360237AC: call dword ptr [0x3616ffb0] */
  10744     RECOMP_FLAGS_IN();
  10745     ecx = edi; /* 0x360237B2: mov ecx, edi */
  10746     esi = eax; /* 0x360237B4: mov esi, eax */
  10747     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360237B6: call dword ptr [0x361700b4] */
  10748     RECOMP_FLAGS_IN();
  10749     ecx = ebp + (-0xC0); /* 0x360237BC: lea ecx, [ebp - 0xc0] */
  10750     /* cmp ecx, ebx */ /* 0x360237C2: cmp ecx, ebx */
  10751     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  10752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10753     _flag_k = FK_CMP;
  10754     if (CMP_EQ(_flag_a, _flag_b)) goto L_360237D7; /* 0x360237C4: je 0x360237d7 */
  10755 L_360237C6:
  10756     edx = MEM32(ebx); /* 0x360237C6: mov edx, dword ptr [ebx] */
  10757     ecx = MEM32(ebx + 0x4); /* 0x360237C8: mov ecx, dword ptr [ebx + 4] */
  10758     MEM32(ebp + (-0xC0)) = edx; /* 0x360237CB: mov dword ptr [ebp - 0xc0], edx */
  10759     MEM32(ebp + (-0xBC)) = ecx; /* 0x360237D1: mov dword ptr [ebp - 0xbc], ecx */
  10760 L_360237D7:
  10761     edx = MEM32(esi); /* 0x360237D7: mov edx, dword ptr [esi] */
  10762     MEM32(ebp + (-0xB8)) = edx; /* 0x360237D9: mov dword ptr [ebp - 0xb8], edx */
  10763     ecx = MEM32(esi + 0x4); /* 0x360237DF: mov ecx, dword ptr [esi + 4] */
  10764     MEM32(ebp + (-0xB4)) = ecx; /* 0x360237E2: mov dword ptr [ebp - 0xb4], ecx */
  10765     edx = MEM32(esi + 0x8); /* 0x360237E8: mov edx, dword ptr [esi + 8] */
  10766     ecx = MEM32(ebp + 0x8); /* 0x360237EB: mov ecx, dword ptr [ebp + 8] */
  10767     MEM32(ebp + (-0xB0)) = edx; /* 0x360237EE: mov dword ptr [ebp - 0xb0], edx */
  10768     edx = MEM32(ecx); /* 0x360237F4: mov edx, dword ptr [ecx] */
  10769     MEM32(ebp + (-0xAC)) = edx; /* 0x360237F6: mov dword ptr [ebp - 0xac], edx */
  10770     edx = MEM32(ecx + 0x4); /* 0x360237FC: mov edx, dword ptr [ecx + 4] */
  10771     MEM32(ebp + (-0xA8)) = edx; /* 0x360237FF: mov dword ptr [ebp - 0xa8], edx */
  10772     edx = MEM32(ecx + 0x8); /* 0x36023805: mov edx, dword ptr [ecx + 8] */
  10773     MEM32(ebp + (-0xA4)) = edx; /* 0x36023808: mov dword ptr [ebp - 0xa4], edx */
  10774     ecx = MEM32(ecx + 0xC); /* 0x3602380E: mov ecx, dword ptr [ecx + 0xc] */
  10775     MEM32(ebp + (-0xA0)) = ecx; /* 0x36023811: mov dword ptr [ebp - 0xa0], ecx */
  10776     ecx = MEM32(ebp + 0xC); /* 0x36023817: mov ecx, dword ptr [ebp + 0xc] */
  10777     MEM32(ebp + (-0x90)) = eax; /* 0x3602381A: mov dword ptr [ebp - 0x90], eax */
  10778     eax = MEM32(ecx + 0x4); /* 0x36023820: mov eax, dword ptr [ecx + 4] */
  10779     edx = ebp + (-0xC0); /* 0x36023823: lea edx, [ebp - 0xc0] */
  10780     PUSH32(esp, edx); /* 0x36023829: push edx */
  10781     PUSH32(esp, eax); /* 0x3602382A: push eax */
  10782     MEM32(ebp + (-0x9C)) = 0; /* 0x3602382B: mov dword ptr [ebp - 0x9c], 0 */
  10783     MEM32(ebp + (-0x98)) = 0; /* 0x36023835: mov dword ptr [ebp - 0x98], 0 */
  10784     MEM32(ebp + (-0x94)) = 0; /* 0x3602383F: mov dword ptr [ebp - 0x94], 0 */
  10785     eax = ebp + (-0x280); /* 0x36023849: lea eax, [ebp - 0x280] */
  10786     goto L_36023D56; /* 0x3602384F: jmp 0x36023d56 */
  10787 L_36023854:
  10788     /* cmp eax, 2 */ /* 0x36023854: cmp eax, 2 */
  10789     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  10790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10791     _flag_k = FK_CMP;
  10792     if (CMP_NE(_flag_a, _flag_b)) goto L_36023919; /* 0x36023857: jne 0x36023919 */
  10793 L_3602385D:
  10794     ecx = ebp + (-0x2F8); /* 0x3602385D: lea ecx, [ebp - 0x2f8] */
  10795     PUSH32(esp, ecx); /* 0x36023863: push ecx */
  10796     ecx = esi; /* 0x36023864: mov ecx, esi */
  10797     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023866: call dword ptr [0x36170048] */
  10798     RECOMP_FLAGS_IN();
  10799     ecx = esi; /* 0x3602386C: mov ecx, esi */
  10800     MEM32(ebp + 0x8) = eax; /* 0x3602386E: mov dword ptr [ebp + 8], eax */
  10801     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023871: call dword ptr [0x3616ffb0] */
  10802     RECOMP_FLAGS_IN();
  10803     ecx = edi; /* 0x36023877: mov ecx, edi */
  10804     esi = eax; /* 0x36023879: mov esi, eax */
  10805     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x3602387B: call dword ptr [0x361700b4] */
  10806     RECOMP_FLAGS_IN();
  10807     edx = ebp + (-0x128); /* 0x36023881: lea edx, [ebp - 0x128] */
  10808     /* cmp edx, ebx */ /* 0x36023887: cmp edx, ebx */
  10809     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10811     _flag_k = FK_CMP;
  10812     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602389C; /* 0x36023889: je 0x3602389c */
  10813 L_3602388B:
  10814     ecx = MEM32(ebx); /* 0x3602388B: mov ecx, dword ptr [ebx] */
  10815     edx = MEM32(ebx + 0x4); /* 0x3602388D: mov edx, dword ptr [ebx + 4] */
  10816     MEM32(ebp + (-0x128)) = ecx; /* 0x36023890: mov dword ptr [ebp - 0x128], ecx */
  10817     MEM32(ebp + (-0x124)) = edx; /* 0x36023896: mov dword ptr [ebp - 0x124], edx */
  10818 L_3602389C:
  10819     ecx = MEM32(esi); /* 0x3602389C: mov ecx, dword ptr [esi] */
  10820     MEM32(ebp + (-0x120)) = ecx; /* 0x3602389E: mov dword ptr [ebp - 0x120], ecx */
  10821     edx = MEM32(esi + 0x4); /* 0x360238A4: mov edx, dword ptr [esi + 4] */
  10822     MEM32(ebp + (-0x11C)) = edx; /* 0x360238A7: mov dword ptr [ebp - 0x11c], edx */
  10823     ecx = MEM32(esi + 0x8); /* 0x360238AD: mov ecx, dword ptr [esi + 8] */
  10824     MEM32(ebp + (-0x118)) = ecx; /* 0x360238B0: mov dword ptr [ebp - 0x118], ecx */
  10825     ecx = MEM32(ebp + 0x8); /* 0x360238B6: mov ecx, dword ptr [ebp + 8] */
  10826     edx = MEM32(ecx); /* 0x360238B9: mov edx, dword ptr [ecx] */
  10827     MEM32(ebp + (-0x114)) = edx; /* 0x360238BB: mov dword ptr [ebp - 0x114], edx */
  10828     edx = MEM32(ecx + 0x4); /* 0x360238C1: mov edx, dword ptr [ecx + 4] */
  10829     MEM32(ebp + (-0x110)) = edx; /* 0x360238C4: mov dword ptr [ebp - 0x110], edx */
  10830     edx = MEM32(ecx + 0x8); /* 0x360238CA: mov edx, dword ptr [ecx + 8] */
  10831     MEM32(ebp + (-0x10C)) = edx; /* 0x360238CD: mov dword ptr [ebp - 0x10c], edx */
  10832     ecx = MEM32(ecx + 0xC); /* 0x360238D3: mov ecx, dword ptr [ecx + 0xc] */
  10833     MEM32(ebp + (-0x108)) = ecx; /* 0x360238D6: mov dword ptr [ebp - 0x108], ecx */
  10834     ecx = MEM32(ebp + 0xC); /* 0x360238DC: mov ecx, dword ptr [ebp + 0xc] */
  10835     MEM32(ebp + (-0xF8)) = eax; /* 0x360238DF: mov dword ptr [ebp - 0xf8], eax */
  10836     eax = MEM32(ecx + 0x4); /* 0x360238E5: mov eax, dword ptr [ecx + 4] */
  10837     edx = ebp + (-0x128); /* 0x360238E8: lea edx, [ebp - 0x128] */
  10838     PUSH32(esp, edx); /* 0x360238EE: push edx */
  10839     PUSH32(esp, eax); /* 0x360238EF: push eax */
  10840     MEM32(ebp + (-0x104)) = 0; /* 0x360238F0: mov dword ptr [ebp - 0x104], 0 */
  10841     MEM32(ebp + (-0x100)) = 0; /* 0x360238FA: mov dword ptr [ebp - 0x100], 0 */
  10842     MEM32(ebp + (-0xFC)) = 1; /* 0x36023904: mov dword ptr [ebp - 0xfc], 1 */
  10843     eax = ebp + (-0x270); /* 0x3602390E: lea eax, [ebp - 0x270] */
  10844     goto L_36023D56; /* 0x36023914: jmp 0x36023d56 */
  10845 L_36023919:
  10846     ecx = ebp + (-0x2E8); /* 0x36023919: lea ecx, [ebp - 0x2e8] */
  10847     PUSH32(esp, ecx); /* 0x3602391F: push ecx */
  10848     ecx = esi; /* 0x36023920: mov ecx, esi */
  10849     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023922: call dword ptr [0x36170048] */
  10850     RECOMP_FLAGS_IN();
  10851     ecx = esi; /* 0x36023928: mov ecx, esi */
  10852     MEM32(ebp + 0x8) = eax; /* 0x3602392A: mov dword ptr [ebp + 8], eax */
  10853     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602392D: call dword ptr [0x3616ffb0] */
  10854     RECOMP_FLAGS_IN();
  10855     ecx = edi; /* 0x36023933: mov ecx, edi */
  10856     esi = eax; /* 0x36023935: mov esi, eax */
  10857     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023937: call dword ptr [0x361700b4] */
  10858     RECOMP_FLAGS_IN();
  10859     edx = ebp + (-0x190); /* 0x3602393D: lea edx, [ebp - 0x190] */
  10860     /* cmp edx, ebx */ /* 0x36023943: cmp edx, ebx */
  10861     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10863     _flag_k = FK_CMP;
  10864     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023958; /* 0x36023945: je 0x36023958 */
  10865 L_36023947:
  10866     ecx = MEM32(ebx); /* 0x36023947: mov ecx, dword ptr [ebx] */
  10867     edx = MEM32(ebx + 0x4); /* 0x36023949: mov edx, dword ptr [ebx + 4] */
  10868     MEM32(ebp + (-0x190)) = ecx; /* 0x3602394C: mov dword ptr [ebp - 0x190], ecx */
  10869     MEM32(ebp + (-0x18C)) = edx; /* 0x36023952: mov dword ptr [ebp - 0x18c], edx */
  10870 L_36023958:
  10871     ecx = MEM32(esi); /* 0x36023958: mov ecx, dword ptr [esi] */
  10872     MEM32(ebp + (-0x188)) = ecx; /* 0x3602395A: mov dword ptr [ebp - 0x188], ecx */
  10873     edx = MEM32(esi + 0x4); /* 0x36023960: mov edx, dword ptr [esi + 4] */
  10874     MEM32(ebp + (-0x184)) = edx; /* 0x36023963: mov dword ptr [ebp - 0x184], edx */
  10875     ecx = MEM32(esi + 0x8); /* 0x36023969: mov ecx, dword ptr [esi + 8] */
  10876     MEM32(ebp + (-0x180)) = ecx; /* 0x3602396C: mov dword ptr [ebp - 0x180], ecx */
  10877     ecx = MEM32(ebp + 0x8); /* 0x36023972: mov ecx, dword ptr [ebp + 8] */
  10878     edx = MEM32(ecx); /* 0x36023975: mov edx, dword ptr [ecx] */
  10879     MEM32(ebp + (-0x17C)) = edx; /* 0x36023977: mov dword ptr [ebp - 0x17c], edx */
  10880     edx = MEM32(ecx + 0x4); /* 0x3602397D: mov edx, dword ptr [ecx + 4] */
  10881     MEM32(ebp + (-0x178)) = edx; /* 0x36023980: mov dword ptr [ebp - 0x178], edx */
  10882     edx = MEM32(ecx + 0x8); /* 0x36023986: mov edx, dword ptr [ecx + 8] */
  10883     MEM32(ebp + (-0x174)) = edx; /* 0x36023989: mov dword ptr [ebp - 0x174], edx */
  10884     ecx = MEM32(ecx + 0xC); /* 0x3602398F: mov ecx, dword ptr [ecx + 0xc] */
  10885     MEM32(ebp + (-0x170)) = ecx; /* 0x36023992: mov dword ptr [ebp - 0x170], ecx */
  10886     ecx = MEM32(ebp + 0xC); /* 0x36023998: mov ecx, dword ptr [ebp + 0xc] */
  10887     MEM32(ebp + (-0x160)) = eax; /* 0x3602399B: mov dword ptr [ebp - 0x160], eax */
  10888     eax = MEM32(ecx + 0x4); /* 0x360239A1: mov eax, dword ptr [ecx + 4] */
  10889     edx = ebp + (-0x190); /* 0x360239A4: lea edx, [ebp - 0x190] */
  10890     PUSH32(esp, edx); /* 0x360239AA: push edx */
  10891     PUSH32(esp, eax); /* 0x360239AB: push eax */
  10892     MEM32(ebp + (-0x16C)) = 0; /* 0x360239AC: mov dword ptr [ebp - 0x16c], 0 */
  10893     MEM32(ebp + (-0x168)) = 0; /* 0x360239B6: mov dword ptr [ebp - 0x168], 0 */
  10894     MEM32(ebp + (-0x164)) = 2; /* 0x360239C0: mov dword ptr [ebp - 0x164], 2 */
  10895     eax = ebp + (-0x278); /* 0x360239CA: lea eax, [ebp - 0x278] */
  10896     goto L_36023D56; /* 0x360239D0: jmp 0x36023d56 */
  10897 L_360239D5:
  10898     ecx = ebp + (-0x2C8); /* 0x360239D5: lea ecx, [ebp - 0x2c8] */
  10899     PUSH32(esp, ecx); /* 0x360239DB: push ecx */
  10900     ecx = esi; /* 0x360239DC: mov ecx, esi */
  10901     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360239DE: call dword ptr [0x36170048] */
  10902     RECOMP_FLAGS_IN();
  10903     ecx = esi; /* 0x360239E4: mov ecx, esi */
  10904     MEM32(ebp + 0x8) = eax; /* 0x360239E6: mov dword ptr [ebp + 8], eax */
  10905     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360239E9: call dword ptr [0x3616ffb0] */
  10906     RECOMP_FLAGS_IN();
  10907     ecx = edi; /* 0x360239EF: mov ecx, edi */
  10908     esi = eax; /* 0x360239F1: mov esi, eax */
  10909     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360239F3: call dword ptr [0x361700b4] */
  10910     RECOMP_FLAGS_IN();
  10911     edx = ebp + (-0x1F8); /* 0x360239F9: lea edx, [ebp - 0x1f8] */
  10912     /* cmp edx, ebx */ /* 0x360239FF: cmp edx, ebx */
  10913     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10915     _flag_k = FK_CMP;
  10916     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A14; /* 0x36023A01: je 0x36023a14 */
  10917 L_36023A03:
  10918     ecx = MEM32(ebx); /* 0x36023A03: mov ecx, dword ptr [ebx] */
  10919     edx = MEM32(ebx + 0x4); /* 0x36023A05: mov edx, dword ptr [ebx + 4] */
  10920     MEM32(ebp + (-0x1F8)) = ecx; /* 0x36023A08: mov dword ptr [ebp - 0x1f8], ecx */
  10921     MEM32(ebp + (-0x1F4)) = edx; /* 0x36023A0E: mov dword ptr [ebp - 0x1f4], edx */
  10922 L_36023A14:
  10923     ecx = MEM32(esi); /* 0x36023A14: mov ecx, dword ptr [esi] */
  10924     MEM32(ebp + (-0x1F0)) = ecx; /* 0x36023A16: mov dword ptr [ebp - 0x1f0], ecx */
  10925     edx = MEM32(esi + 0x4); /* 0x36023A1C: mov edx, dword ptr [esi + 4] */
  10926     MEM32(ebp + (-0x1EC)) = edx; /* 0x36023A1F: mov dword ptr [ebp - 0x1ec], edx */
  10927     ecx = MEM32(esi + 0x8); /* 0x36023A25: mov ecx, dword ptr [esi + 8] */
  10928     MEM32(ebp + (-0x1E8)) = ecx; /* 0x36023A28: mov dword ptr [ebp - 0x1e8], ecx */
  10929     ecx = MEM32(ebp + 0x8); /* 0x36023A2E: mov ecx, dword ptr [ebp + 8] */
  10930     edx = MEM32(ecx); /* 0x36023A31: mov edx, dword ptr [ecx] */
  10931     MEM32(ebp + (-0x1E4)) = edx; /* 0x36023A33: mov dword ptr [ebp - 0x1e4], edx */
  10932     edx = MEM32(ecx + 0x4); /* 0x36023A39: mov edx, dword ptr [ecx + 4] */
  10933     MEM32(ebp + (-0x1E0)) = edx; /* 0x36023A3C: mov dword ptr [ebp - 0x1e0], edx */
  10934     edx = MEM32(ecx + 0x8); /* 0x36023A42: mov edx, dword ptr [ecx + 8] */
  10935     MEM32(ebp + (-0x1DC)) = edx; /* 0x36023A45: mov dword ptr [ebp - 0x1dc], edx */
  10936     ecx = MEM32(ecx + 0xC); /* 0x36023A4B: mov ecx, dword ptr [ecx + 0xc] */
  10937     MEM32(ebp + (-0x1D8)) = ecx; /* 0x36023A4E: mov dword ptr [ebp - 0x1d8], ecx */
  10938     ecx = MEM32(ebp + 0xC); /* 0x36023A54: mov ecx, dword ptr [ebp + 0xc] */
  10939     MEM32(ebp + (-0x1C8)) = eax; /* 0x36023A57: mov dword ptr [ebp - 0x1c8], eax */
  10940     eax = MEM32(ecx + 0x4); /* 0x36023A5D: mov eax, dword ptr [ecx + 4] */
  10941     edx = ebp + (-0x1F8); /* 0x36023A60: lea edx, [ebp - 0x1f8] */
  10942     PUSH32(esp, edx); /* 0x36023A66: push edx */
  10943     PUSH32(esp, eax); /* 0x36023A67: push eax */
  10944     MEM32(ebp + (-0x1D4)) = 0; /* 0x36023A68: mov dword ptr [ebp - 0x1d4], 0 */
  10945     MEM32(ebp + (-0x1D0)) = 0; /* 0x36023A72: mov dword ptr [ebp - 0x1d0], 0 */
  10946     MEM32(ebp + (-0x1CC)) = 2; /* 0x36023A7C: mov dword ptr [ebp - 0x1cc], 2 */
  10947     eax = ebp + (-0x26C); /* 0x36023A86: lea eax, [ebp - 0x26c] */
  10948     goto L_36023D56; /* 0x36023A8C: jmp 0x36023d56 */
  10949 L_36023A91:
  10950     /* cmp MEM32(ebx), 0xC748u */ /* 0x36023A91: cmp dword ptr [ebx], 0xc748 */
  10951     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0xC748u);
  10952     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10953     _flag_k = FK_CMP;
  10954     if (CMP_NE(_flag_a, _flag_b)) goto L_36023B75; /* 0x36023A97: jne 0x36023b75 */
  10955 L_36023A9D:
  10956     ecx = MEM32(ebp + 0x10); /* 0x36023A9D: mov ecx, dword ptr [ebp + 0x10] */
  10957     /* test MEM8(ecx), 8 */ /* 0x36023AA0: test byte ptr [ecx], 8 */
  10958     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  10959     _cf = 0;
  10960     _flag_k = FK_NARROW(FK_TEST, 24);
  10961     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AA3: je 0x36023d5c */
  10962 L_36023AA9:
  10963     /* test edi, edi */ /* 0x36023AA9: test edi, edi */
  10964     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10965     _cf = 0;
  10966     _flag_k = FK_TEST;
  10967     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AAB: je 0x36023d5c */
  10968 L_36023AB1:
  10969     ecx = edi; /* 0x36023AB1: mov ecx, edi */
  10970     MEM32(ebp + (-0x58)) = 0; /* 0x36023AB3: mov dword ptr [ebp - 0x58], 0 */
  10971     MEM32(ebp + (-0x54)) = 0; /* 0x36023ABA: mov dword ptr [ebp - 0x54], 0 */
  10972     MEM32(ebp + (-0x50)) = 0; /* 0x36023AC1: mov dword ptr [ebp - 0x50], 0 */
  10973     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x36023AC8: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  10974     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023ACF: call dword ptr [0x3616ffb0] */
  10975     RECOMP_FLAGS_IN();
  10976     ecx = edi; /* 0x36023AD5: mov ecx, edi */
  10977     esi = eax; /* 0x36023AD7: mov esi, eax */
  10978     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023AD9: call dword ptr [0x361700b4] */
  10979     RECOMP_FLAGS_IN();
  10980     edx = ebp + (-0x260); /* 0x36023ADF: lea edx, [ebp - 0x260] */
  10981     /* cmp edx, ebx */ /* 0x36023AE5: cmp edx, ebx */
  10982     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  10983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10984     _flag_k = FK_CMP;
  10985     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023AFA; /* 0x36023AE7: je 0x36023afa */
  10986 L_36023AE9:
  10987     ecx = MEM32(ebx); /* 0x36023AE9: mov ecx, dword ptr [ebx] */
  10988     edx = MEM32(ebx + 0x4); /* 0x36023AEB: mov edx, dword ptr [ebx + 4] */
  10989     MEM32(ebp + (-0x260)) = ecx; /* 0x36023AEE: mov dword ptr [ebp - 0x260], ecx */
  10990     MEM32(ebp + (-0x25C)) = edx; /* 0x36023AF4: mov dword ptr [ebp - 0x25c], edx */
  10991 L_36023AFA:
  10992     ecx = MEM32(esi); /* 0x36023AFA: mov ecx, dword ptr [esi] */
  10993     MEM32(ebp + (-0x258)) = ecx; /* 0x36023AFC: mov dword ptr [ebp - 0x258], ecx */
  10994     edx = MEM32(esi + 0x4); /* 0x36023B02: mov edx, dword ptr [esi + 4] */
  10995     MEM32(ebp + (-0x254)) = edx; /* 0x36023B05: mov dword ptr [ebp - 0x254], edx */
  10996     ecx = MEM32(esi + 0x8); /* 0x36023B0B: mov ecx, dword ptr [esi + 8] */
  10997     edx = MEM32(ebp + (-0x58)); /* 0x36023B0E: mov edx, dword ptr [ebp - 0x58] */
  10998     MEM32(ebp + (-0x250)) = ecx; /* 0x36023B11: mov dword ptr [ebp - 0x250], ecx */
  10999     ecx = MEM32(ebp + (-0x54)); /* 0x36023B17: mov ecx, dword ptr [ebp - 0x54] */
  11000     MEM32(ebp + (-0x24C)) = edx; /* 0x36023B1A: mov dword ptr [ebp - 0x24c], edx */
  11001     edx = MEM32(ebp + (-0x50)); /* 0x36023B20: mov edx, dword ptr [ebp - 0x50] */
  11002     MEM32(ebp + (-0x248)) = ecx; /* 0x36023B23: mov dword ptr [ebp - 0x248], ecx */
  11003     ecx = MEM32(ebp + (-0x4C)); /* 0x36023B29: mov ecx, dword ptr [ebp - 0x4c] */
  11004     MEM32(ebp + (-0x244)) = edx; /* 0x36023B2C: mov dword ptr [ebp - 0x244], edx */
  11005     MEM32(ebp + (-0x240)) = ecx; /* 0x36023B32: mov dword ptr [ebp - 0x240], ecx */
  11006     ecx = MEM32(ebp + 0xC); /* 0x36023B38: mov ecx, dword ptr [ebp + 0xc] */
  11007     MEM32(ebp + (-0x230)) = eax; /* 0x36023B3B: mov dword ptr [ebp - 0x230], eax */
  11008     eax = MEM32(ecx + 0x4); /* 0x36023B41: mov eax, dword ptr [ecx + 4] */
  11009     edx = ebp + (-0x260); /* 0x36023B44: lea edx, [ebp - 0x260] */
  11010     PUSH32(esp, edx); /* 0x36023B4A: push edx */
  11011     PUSH32(esp, eax); /* 0x36023B4B: push eax */
  11012     MEM32(ebp + (-0x23C)) = 0; /* 0x36023B4C: mov dword ptr [ebp - 0x23c], 0 */
  11013     MEM32(ebp + (-0x238)) = 0; /* 0x36023B56: mov dword ptr [ebp - 0x238], 0 */
  11014     MEM32(ebp + (-0x234)) = 8; /* 0x36023B60: mov dword ptr [ebp - 0x234], 8 */
  11015     eax = ebp + (-0x27C); /* 0x36023B6A: lea eax, [ebp - 0x27c] */
  11016     goto L_36023D56; /* 0x36023B70: jmp 0x36023d56 */
  11017 L_36023B75:
  11018     PUSH32(esp, 0); /* 0x36023B75: push 0 */
  11019     PUSH32(esp, 0x361B5C98u); /* 0x36023B77: push 0x361b5c98 */
  11020     PUSH32(esp, 0x361B2CC0u); /* 0x36023B7C: push 0x361b2cc0 */
  11021     PUSH32(esp, 0); /* 0x36023B81: push 0 */
  11022     PUSH32(esp, edi); /* 0x36023B83: push edi */
  11023     RECOMP_ICALL(0x3615FD86u); /* 0x36023B84: call 0x3615fd86 */ /* not lifted */
  11024     RECOMP_FLAGS_IN();
  11025     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11026     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11027     esp = esp + 0x14u; /* 0x36023B89: add esp, 0x14 */
  11028     _flag_k = FK_ADD;
  11029     /* test eax, eax */ /* 0x36023B8C: test eax, eax */
  11030     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11031     _cf = 0;
  11032     _flag_k = FK_TEST;
  11033     if (TEST_Z(_flag_a, _flag_b)) goto L_36023C68; /* 0x36023B8E: je 0x36023c68 */
  11034 L_36023B94:
  11035     ecx = MEM32(ebp + 0x10); /* 0x36023B94: mov ecx, dword ptr [ebp + 0x10] */
  11036     /* test MEM8(ecx), 8 */ /* 0x36023B97: test byte ptr [ecx], 8 */
  11037     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  11038     _cf = 0;
  11039     _flag_k = FK_NARROW(FK_TEST, 24);
  11040     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023B9A: je 0x36023d5c */
  11041 L_36023BA0:
  11042     ecx = eax + 0x8C; /* 0x36023BA0: lea ecx, [eax + 0x8c] */
  11043     MEM32(ebp + (-0x48)) = 0; /* 0x36023BA6: mov dword ptr [ebp - 0x48], 0 */
  11044     MEM32(ebp + (-0x44)) = 0; /* 0x36023BAD: mov dword ptr [ebp - 0x44], 0 */
  11045     MEM32(ebp + (-0x40)) = 0; /* 0x36023BB4: mov dword ptr [ebp - 0x40], 0 */
  11046     MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x36023BBB: mov dword ptr [ebp - 0x3c], 0x3f800000 */
  11047     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023BC2: call dword ptr [0x3616ffb0] */
  11048     RECOMP_FLAGS_IN();
  11049     ecx = edi; /* 0x36023BC8: mov ecx, edi */
  11050     esi = eax; /* 0x36023BCA: mov esi, eax */
  11051     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023BCC: call dword ptr [0x361700b4] */
  11052     RECOMP_FLAGS_IN();
  11053     edx = ebp + (-0x22C); /* 0x36023BD2: lea edx, [ebp - 0x22c] */
  11054     /* cmp edx, ebx */ /* 0x36023BD8: cmp edx, ebx */
  11055     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  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_36023BED; /* 0x36023BDA: je 0x36023bed */
  11059 L_36023BDC:
  11060     ecx = MEM32(ebx); /* 0x36023BDC: mov ecx, dword ptr [ebx] */
  11061     edx = MEM32(ebx + 0x4); /* 0x36023BDE: mov edx, dword ptr [ebx + 4] */
  11062     MEM32(ebp + (-0x22C)) = ecx; /* 0x36023BE1: mov dword ptr [ebp - 0x22c], ecx */
  11063     MEM32(ebp + (-0x228)) = edx; /* 0x36023BE7: mov dword ptr [ebp - 0x228], edx */
  11064 L_36023BED:
  11065     ecx = MEM32(esi); /* 0x36023BED: mov ecx, dword ptr [esi] */
  11066     MEM32(ebp + (-0x224)) = ecx; /* 0x36023BEF: mov dword ptr [ebp - 0x224], ecx */
  11067     edx = MEM32(esi + 0x4); /* 0x36023BF5: mov edx, dword ptr [esi + 4] */
  11068     MEM32(ebp + (-0x220)) = edx; /* 0x36023BF8: mov dword ptr [ebp - 0x220], edx */
  11069     ecx = MEM32(esi + 0x8); /* 0x36023BFE: mov ecx, dword ptr [esi + 8] */
  11070     edx = MEM32(ebp + (-0x48)); /* 0x36023C01: mov edx, dword ptr [ebp - 0x48] */
  11071     MEM32(ebp + (-0x21C)) = ecx; /* 0x36023C04: mov dword ptr [ebp - 0x21c], ecx */
  11072     ecx = MEM32(ebp + (-0x44)); /* 0x36023C0A: mov ecx, dword ptr [ebp - 0x44] */
  11073     MEM32(ebp + (-0x218)) = edx; /* 0x36023C0D: mov dword ptr [ebp - 0x218], edx */
  11074     edx = MEM32(ebp + (-0x40)); /* 0x36023C13: mov edx, dword ptr [ebp - 0x40] */
  11075     MEM32(ebp + (-0x214)) = ecx; /* 0x36023C16: mov dword ptr [ebp - 0x214], ecx */
  11076     ecx = MEM32(ebp + (-0x3C)); /* 0x36023C1C: mov ecx, dword ptr [ebp - 0x3c] */
  11077     MEM32(ebp + (-0x210)) = edx; /* 0x36023C1F: mov dword ptr [ebp - 0x210], edx */
  11078     MEM32(ebp + (-0x20C)) = ecx; /* 0x36023C25: mov dword ptr [ebp - 0x20c], ecx */
  11079     ecx = MEM32(ebp + 0xC); /* 0x36023C2B: mov ecx, dword ptr [ebp + 0xc] */
  11080     MEM32(ebp + (-0x1FC)) = eax; /* 0x36023C2E: mov dword ptr [ebp - 0x1fc], eax */
  11081     eax = MEM32(ecx + 0x4); /* 0x36023C34: mov eax, dword ptr [ecx + 4] */
  11082     edx = ebp + (-0x22C); /* 0x36023C37: lea edx, [ebp - 0x22c] */
  11083     PUSH32(esp, edx); /* 0x36023C3D: push edx */
  11084     PUSH32(esp, eax); /* 0x36023C3E: push eax */
  11085     MEM32(ebp + (-0x208)) = 0; /* 0x36023C3F: mov dword ptr [ebp - 0x208], 0 */
  11086     MEM32(ebp + (-0x204)) = 0; /* 0x36023C49: mov dword ptr [ebp - 0x204], 0 */
  11087     MEM32(ebp + (-0x200)) = 5; /* 0x36023C53: mov dword ptr [ebp - 0x200], 5 */
  11088     eax = ebp + (-0x274); /* 0x36023C5D: lea eax, [ebp - 0x274] */
  11089     goto L_36023D56; /* 0x36023C63: jmp 0x36023d56 */
  11090 L_36023C68:
  11091     PUSH32(esp, 0); /* 0x36023C68: push 0 */
  11092     PUSH32(esp, 0x361B5D88u); /* 0x36023C6A: push 0x361b5d88 */
  11093     PUSH32(esp, 0x361B2CC0u); /* 0x36023C6F: push 0x361b2cc0 */
  11094     PUSH32(esp, 0); /* 0x36023C74: push 0 */
  11095     PUSH32(esp, edi); /* 0x36023C76: push edi */
  11096     RECOMP_ICALL(0x3615FD86u); /* 0x36023C77: call 0x3615fd86 */ /* not lifted */
  11097     RECOMP_FLAGS_IN();
  11098     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11099     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11100     esp = esp + 0x14u; /* 0x36023C7C: add esp, 0x14 */
  11101     _flag_k = FK_ADD;
  11102     /* test eax, eax */ /* 0x36023C7F: test eax, eax */
  11103     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11104     _cf = 0;
  11105     _flag_k = FK_TEST;
  11106     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C81: je 0x36023d5c */
  11107 L_36023C87:
  11108     ecx = MEM32(ebp + 0x10); /* 0x36023C87: mov ecx, dword ptr [ebp + 0x10] */
  11109     /* test MEM8(ecx), 8 */ /* 0x36023C8A: test byte ptr [ecx], 8 */
  11110     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  11111     _cf = 0;
  11112     _flag_k = FK_NARROW(FK_TEST, 24);
  11113     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C8D: je 0x36023d5c */
  11114 L_36023C93:
  11115     ecx = eax + 0x8C; /* 0x36023C93: lea ecx, [eax + 0x8c] */
  11116     MEM32(ebp + (-0x38)) = 0; /* 0x36023C99: mov dword ptr [ebp - 0x38], 0 */
  11117     MEM32(ebp + (-0x34)) = 0; /* 0x36023CA0: mov dword ptr [ebp - 0x34], 0 */
  11118     MEM32(ebp + (-0x30)) = 0; /* 0x36023CA7: mov dword ptr [ebp - 0x30], 0 */
  11119     MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x36023CAE: mov dword ptr [ebp - 0x2c], 0x3f800000 */
  11120     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023CB5: call dword ptr [0x3616ffb0] */
  11121     RECOMP_FLAGS_IN();
  11122     ecx = edi; /* 0x36023CBB: mov ecx, edi */
  11123     esi = eax; /* 0x36023CBD: mov esi, eax */
  11124     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023CBF: call dword ptr [0x361700b4] */
  11125     RECOMP_FLAGS_IN();
  11126     edx = ebp + (-0xF4); /* 0x36023CC5: lea edx, [ebp - 0xf4] */
  11127     /* cmp edx, ebx */ /* 0x36023CCB: cmp edx, ebx */
  11128     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11130     _flag_k = FK_CMP;
  11131     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023CE0; /* 0x36023CCD: je 0x36023ce0 */
  11132 L_36023CCF:
  11133     ecx = MEM32(ebx); /* 0x36023CCF: mov ecx, dword ptr [ebx] */
  11134     edx = MEM32(ebx + 0x4); /* 0x36023CD1: mov edx, dword ptr [ebx + 4] */
  11135     MEM32(ebp + (-0xF4)) = ecx; /* 0x36023CD4: mov dword ptr [ebp - 0xf4], ecx */
  11136     MEM32(ebp + (-0xF0)) = edx; /* 0x36023CDA: mov dword ptr [ebp - 0xf0], edx */
  11137 L_36023CE0:
  11138     ecx = MEM32(esi); /* 0x36023CE0: mov ecx, dword ptr [esi] */
  11139     MEM32(ebp + (-0xEC)) = ecx; /* 0x36023CE2: mov dword ptr [ebp - 0xec], ecx */
  11140     edx = MEM32(esi + 0x4); /* 0x36023CE8: mov edx, dword ptr [esi + 4] */
  11141     MEM32(ebp + (-0xE8)) = edx; /* 0x36023CEB: mov dword ptr [ebp - 0xe8], edx */
  11142     ecx = MEM32(esi + 0x8); /* 0x36023CF1: mov ecx, dword ptr [esi + 8] */
  11143     edx = MEM32(ebp + (-0x38)); /* 0x36023CF4: mov edx, dword ptr [ebp - 0x38] */
  11144     MEM32(ebp + (-0xE4)) = ecx; /* 0x36023CF7: mov dword ptr [ebp - 0xe4], ecx */
  11145     ecx = MEM32(ebp + (-0x34)); /* 0x36023CFD: mov ecx, dword ptr [ebp - 0x34] */
  11146     MEM32(ebp + (-0xE0)) = edx; /* 0x36023D00: mov dword ptr [ebp - 0xe0], edx */
  11147     edx = MEM32(ebp + (-0x30)); /* 0x36023D06: mov edx, dword ptr [ebp - 0x30] */
  11148     MEM32(ebp + (-0xDC)) = ecx; /* 0x36023D09: mov dword ptr [ebp - 0xdc], ecx */
  11149     ecx = MEM32(ebp + (-0x2C)); /* 0x36023D0F: mov ecx, dword ptr [ebp - 0x2c] */
  11150     MEM32(ebp + (-0xD8)) = edx; /* 0x36023D12: mov dword ptr [ebp - 0xd8], edx */
  11151     MEM32(ebp + (-0xD4)) = ecx; /* 0x36023D18: mov dword ptr [ebp - 0xd4], ecx */
  11152     ecx = MEM32(ebp + 0xC); /* 0x36023D1E: mov ecx, dword ptr [ebp + 0xc] */
  11153     MEM32(ebp + (-0xC4)) = eax; /* 0x36023D21: mov dword ptr [ebp - 0xc4], eax */
  11154     eax = MEM32(ecx + 0x4); /* 0x36023D27: mov eax, dword ptr [ecx + 4] */
  11155     edx = ebp + (-0xF4); /* 0x36023D2A: lea edx, [ebp - 0xf4] */
  11156     PUSH32(esp, edx); /* 0x36023D30: push edx */
  11157     PUSH32(esp, eax); /* 0x36023D31: push eax */
  11158     MEM32(ebp + (-0xD0)) = 0; /* 0x36023D32: mov dword ptr [ebp - 0xd0], 0 */
  11159     MEM32(ebp + (-0xCC)) = 0; /* 0x36023D3C: mov dword ptr [ebp - 0xcc], 0 */
  11160     MEM32(ebp + (-0xC8)) = 6; /* 0x36023D46: mov dword ptr [ebp - 0xc8], 6 */
  11161     eax = ebp + (-0x284); /* 0x36023D50: lea eax, [ebp - 0x284] */
  11162 L_36023D56:
  11163     PUSH32(esp, eax); /* 0x36023D56: push eax */
  11164     RECOMP_ICALL(0x36029730u); /* 0x36023D57: call 0x36029730 */ /* not lifted */
  11165     RECOMP_FLAGS_IN();
  11166 L_36023D5C:
  11167     eax = MEM32(ebp + (-0x20)); /* 0x36023D5C: mov eax, dword ptr [ebp - 0x20] */
  11168     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
  11169     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11170     ebx = ebx + 8; /* 0x36023D5F: add ebx, 8 */
  11171     _flag_k = FK_ADD;
  11172     /* cmp ebx, eax */ /* 0x36023D62: cmp ebx, eax */
  11173     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  11174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11175     _flag_k = FK_CMP;
  11176     RECOMP_BACKEDGE();
  11177     if (CMP_NE(_flag_a, _flag_b)) goto L_36023447; /* 0x36023D64: jne 0x36023447 */
  11178 L_36023D6A:
  11179     ebx = MEM32(ebp + (-0x24)); /* 0x36023D6A: mov ebx, dword ptr [ebp - 0x24] */
  11180     PUSH32(esp, ebx); /* 0x36023D6D: push ebx */
  11181     RECOMP_ICALL(0x3615FCC4u); /* 0x36023D6E: call 0x3615fcc4 */ /* not lifted */
  11182     RECOMP_FLAGS_IN();
  11183     ecx = MEM32(ebp + (-0xC)); /* 0x36023D73: mov ecx, dword ptr [ebp - 0xc] */
  11184     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11185     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11186     esp = esp + 4; /* 0x36023D76: add esp, 4 */
  11187     _flag_k = FK_ADD;
  11188     ebx = POP32_VAL(esp); /* 0x36023D79: pop ebx */
  11189     edi = POP32_VAL(esp); /* 0x36023D7A: pop edi */
  11190     SET_LO8(eax, 1); /* 0x36023D7B: mov al, 1 */
  11191     esi = POP32_VAL(esp); /* 0x36023D7D: pop esi */
  11192     MEM32(FS_BASE + (0)) = ecx; /* 0x36023D7E: mov dword ptr fs:[0], ecx */
  11193     esp = ebp; /* 0x36023D85: mov esp, ebp */
  11194     ebp = POP32_VAL(esp); /* 0x36023D87: pop ebp */
  11195     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36023D88: ret 0xc */
  11196     RECOMP_REGS_OUT();
  11197 }
  11198 
  11199 void sub_36023D5C(void) {
  11200     int _fpu_cmp = 0;
  11201     uint32_t _cf = 0;
  11202     int _df = 1;
  11203     uint32_t _flag_k = FK_NONE;
  11204     uint32_t _flag_a = 0, _flag_b = 0;
  11205     uint32_t _itail_tgt = 0;
  11206     RECOMP_REGS_LOCALS
  11207     RECOMP_ENTER(0x36023D5Cu);
  11208 
  11209     goto L_36023D5C;
  11210 L_36023447:
  11211     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11212     esi = 0; /* 0x36023447: xor esi, esi */
  11213     _cf = 0;
  11214     _flag_k = FK_TEST;
  11215     PUSH32(esp, ebx); /* 0x36023449: push ebx */
  11216     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602344A: call dword ptr [0x3616ff70] */
  11217     RECOMP_FLAGS_IN();
  11218     PUSH32(esp, esi); /* 0x36023450: push esi */
  11219     PUSH32(esp, 0x361B2CD8u); /* 0x36023451: push 0x361b2cd8 */
  11220     PUSH32(esp, 0x361B2CC0u); /* 0x36023456: push 0x361b2cc0 */
  11221     edi = eax; /* 0x3602345B: mov edi, eax */
  11222     PUSH32(esp, esi); /* 0x3602345D: push esi */
  11223     PUSH32(esp, edi); /* 0x3602345E: push edi */
  11224     RECOMP_ICALL(0x3615FD86u); /* 0x3602345F: call 0x3615fd86 */ /* not lifted */
  11225     RECOMP_FLAGS_IN();
  11226     esi = eax; /* 0x36023464: mov esi, eax */
  11227     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
  11228     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11229     esp = esp + 0x18u; /* 0x36023466: add esp, 0x18 */
  11230     _flag_k = FK_ADD;
  11231     /* test esi, esi */ /* 0x36023469: test esi, esi */
  11232     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11233     _cf = 0;
  11234     _flag_k = FK_TEST;
  11235     if (TEST_Z(_flag_a, _flag_b)) goto L_36023A91; /* 0x3602346B: je 0x36023a91 */
  11236 L_36023471:
  11237     /* cmp esi, MEM32(ebp + (-0x18)) */ /* 0x36023471: cmp esi, dword ptr [ebp - 0x18] */
  11238     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
  11239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11240     _flag_k = FK_CMP;
  11241     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A91; /* 0x36023474: je 0x36023a91 */
  11242 L_3602347A:
  11243     edx = MEM32(esi + 0xE4); /* 0x3602347A: mov edx, dword ptr [esi + 0xe4] */
  11244     ecx = esi + 0xE4; /* 0x36023480: lea ecx, [esi + 0xe4] */
  11245     PUSH32(esp, 2); /* 0x36023486: push 2 */
  11246     PUSH32(esp, 0xC2u); /* 0x36023488: push 0xc2 */
  11247     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602348D: call dword ptr [edx + 4] */
  11248     RECOMP_FLAGS_IN();
  11249     /* test eax, eax */ /* 0x36023490: test eax, eax */
  11250     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11251     _cf = 0;
  11252     _flag_k = FK_TEST;
  11253     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023492: je 0x36023d5c */
  11254 L_36023498:
  11255     eax = MEM32(esi + 0xE4); /* 0x36023498: mov eax, dword ptr [esi + 0xe4] */
  11256     ecx = esi + 0xE4; /* 0x3602349E: lea ecx, [esi + 0xe4] */
  11257     PUSH32(esp, 2); /* 0x360234A4: push 2 */
  11258     PUSH32(esp, 0x184u); /* 0x360234A6: push 0x184 */
  11259     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234AB: call dword ptr [eax + 4] */
  11260     RECOMP_FLAGS_IN();
  11261     /* test eax, eax */ /* 0x360234AE: test eax, eax */
  11262     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11263     _cf = 0;
  11264     _flag_k = FK_TEST;
  11265     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234B0: jne 0x36023d5c */
  11266 L_360234B6:
  11267     ecx = MEM32(esi + 0x188); /* 0x360234B6: mov ecx, dword ptr [esi + 0x188] */
  11268     PUSH32(esp, 0x80u); /* 0x360234BC: push 0x80 */
  11269     RECOMP_ICALL(0x36059BA0u); /* 0x360234C1: call 0x36059ba0 */ /* not lifted */
  11270     RECOMP_FLAGS_IN();
  11271     /* test LO8(eax), LO8(eax) */ /* 0x360234C6: test al, al */
  11272     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11273     _cf = 0;
  11274     _flag_k = FK_NARROW(FK_TEST, 24);
  11275     if (TEST_NZ(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360234C8: jne 0x36023d5c */
  11276 L_360234CE:
  11277     ecx = MEM32(esi + 0x170); /* 0x360234CE: mov ecx, dword ptr [esi + 0x170] */
  11278     edx = MEM32(ecx + 0x24); /* 0x360234D4: mov edx, dword ptr [ecx + 0x24] */
  11279     eax = MEM32(esi + 0xE4); /* 0x360234D7: mov eax, dword ptr [esi + 0xe4] */
  11280     ecx = esi + 0xE4; /* 0x360234DD: lea ecx, [esi + 0xe4] */
  11281     PUSH32(esp, 2); /* 0x360234E3: push 2 */
  11282     PUSH32(esp, 0x21u); /* 0x360234E5: push 0x21 */
  11283     MEM32(ebp + 0x8) = edx; /* 0x360234E7: mov dword ptr [ebp + 8], edx */
  11284     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360234EA: call dword ptr [eax + 4] */
  11285     RECOMP_FLAGS_IN();
  11286     MEM32(ebp + (-0x10)) = eax; /* 0x360234ED: mov dword ptr [ebp - 0x10], eax */
  11287     eax = MEM32(ebp + 0x8); /* 0x360234F0: mov eax, dword ptr [ebp + 8] */
  11288     /* test eax, eax */ /* 0x360234F3: test eax, eax */
  11289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11290     _cf = 0;
  11291     _flag_k = FK_TEST;
  11292     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x360234F5: je 0x360235ed */
  11293 L_360234FB:
  11294     ecx = MEM32(ebp + 0x10); /* 0x360234FB: mov ecx, dword ptr [ebp + 0x10] */
  11295     /* test MEM8(ecx), 8 */ /* 0x360234FE: test byte ptr [ecx], 8 */
  11296     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  11297     _cf = 0;
  11298     _flag_k = FK_NARROW(FK_TEST, 24);
  11299     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x36023501: je 0x360235ed */
  11300 L_36023507:
  11301     edx = MEM32(esi + 0xE4); /* 0x36023507: mov edx, dword ptr [esi + 0xe4] */
  11302     ecx = esi + 0xE4; /* 0x3602350D: lea ecx, [esi + 0xe4] */
  11303     PUSH32(esp, 2); /* 0x36023513: push 2 */
  11304     PUSH32(esp, 0x217u); /* 0x36023515: push 0x217 */
  11305     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602351A: call dword ptr [edx + 4] */
  11306     RECOMP_FLAGS_IN();
  11307     /* test eax, eax */ /* 0x3602351D: test eax, eax */
  11308     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11309     _cf = 0;
  11310     _flag_k = FK_TEST;
  11311     if (TEST_Z(_flag_a, _flag_b)) goto L_360235ED; /* 0x3602351F: je 0x360235ed */
  11312 L_36023525:
  11313     eax = MEM32(ebp + 0x8); /* 0x36023525: mov eax, dword ptr [ebp + 8] */
  11314     ecx = MEM32(eax); /* 0x36023528: mov ecx, dword ptr [eax] */
  11315     fp_push((double)(int32_t)MEM32(eax + 0x20)); /* 0x3602352A: fild dword ptr [eax + 0x20] */
  11316     edx = ebp + (-0x2B8); /* 0x3602352D: lea edx, [ebp - 0x2b8] */
  11317     MEM32(ebp + (-0x14)) = ecx; /* 0x36023533: mov dword ptr [ebp - 0x14], ecx */
  11318     PUSH32(esp, edx); /* 0x36023536: push edx */
  11319     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36023537: fstp dword ptr [ebp - 0x10] */
  11320     ecx = esi; /* 0x3602353A: mov ecx, esi */
  11321     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602353C: call dword ptr [0x36170048] */
  11322     RECOMP_FLAGS_IN();
  11323     ecx = esi; /* 0x36023542: mov ecx, esi */
  11324     MEM32(ebp + 0x8) = eax; /* 0x36023544: mov dword ptr [ebp + 8], eax */
  11325     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023547: call dword ptr [0x3616ffb0] */
  11326     RECOMP_FLAGS_IN();
  11327     ecx = edi; /* 0x3602354D: mov ecx, edi */
  11328     esi = eax; /* 0x3602354F: mov esi, eax */
  11329     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023551: call dword ptr [0x361700b4] */
  11330     RECOMP_FLAGS_IN();
  11331     ecx = ebp + (-0x1C4); /* 0x36023557: lea ecx, [ebp - 0x1c4] */
  11332     /* cmp ecx, ebx */ /* 0x3602355D: cmp ecx, ebx */
  11333     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  11334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11335     _flag_k = FK_CMP;
  11336     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023572; /* 0x3602355F: je 0x36023572 */
  11337 L_36023561:
  11338     edx = MEM32(ebx); /* 0x36023561: mov edx, dword ptr [ebx] */
  11339     ecx = MEM32(ebx + 0x4); /* 0x36023563: mov ecx, dword ptr [ebx + 4] */
  11340     MEM32(ebp + (-0x1C4)) = edx; /* 0x36023566: mov dword ptr [ebp - 0x1c4], edx */
  11341     MEM32(ebp + (-0x1C0)) = ecx; /* 0x3602356C: mov dword ptr [ebp - 0x1c0], ecx */
  11342 L_36023572:
  11343     edx = MEM32(esi); /* 0x36023572: mov edx, dword ptr [esi] */
  11344     MEM32(ebp + (-0x1BC)) = edx; /* 0x36023574: mov dword ptr [ebp - 0x1bc], edx */
  11345     ecx = MEM32(esi + 0x4); /* 0x3602357A: mov ecx, dword ptr [esi + 4] */
  11346     MEM32(ebp + (-0x1B8)) = ecx; /* 0x3602357D: mov dword ptr [ebp - 0x1b8], ecx */
  11347     edx = MEM32(esi + 0x8); /* 0x36023583: mov edx, dword ptr [esi + 8] */
  11348     ecx = MEM32(ebp + 0x8); /* 0x36023586: mov ecx, dword ptr [ebp + 8] */
  11349     MEM32(ebp + (-0x1B4)) = edx; /* 0x36023589: mov dword ptr [ebp - 0x1b4], edx */
  11350     edx = MEM32(ecx); /* 0x3602358F: mov edx, dword ptr [ecx] */
  11351     MEM32(ebp + (-0x1B0)) = edx; /* 0x36023591: mov dword ptr [ebp - 0x1b0], edx */
  11352     edx = MEM32(ecx + 0x4); /* 0x36023597: mov edx, dword ptr [ecx + 4] */
  11353     MEM32(ebp + (-0x1AC)) = edx; /* 0x3602359A: mov dword ptr [ebp - 0x1ac], edx */
  11354     edx = MEM32(ecx + 0x8); /* 0x360235A0: mov edx, dword ptr [ecx + 8] */
  11355     MEM32(ebp + (-0x1A8)) = edx; /* 0x360235A3: mov dword ptr [ebp - 0x1a8], edx */
  11356     ecx = MEM32(ecx + 0xC); /* 0x360235A9: mov ecx, dword ptr [ecx + 0xc] */
  11357     edx = MEM32(ebp + (-0x10)); /* 0x360235AC: mov edx, dword ptr [ebp - 0x10] */
  11358     MEM32(ebp + (-0x1A4)) = ecx; /* 0x360235AF: mov dword ptr [ebp - 0x1a4], ecx */
  11359     ecx = MEM32(ebp + (-0x14)); /* 0x360235B5: mov ecx, dword ptr [ebp - 0x14] */
  11360     MEM32(ebp + (-0x1A0)) = edx; /* 0x360235B8: mov dword ptr [ebp - 0x1a0], edx */
  11361     MEM32(ebp + (-0x19C)) = ecx; /* 0x360235BE: mov dword ptr [ebp - 0x19c], ecx */
  11362     ecx = MEM32(ebp + 0xC); /* 0x360235C4: mov ecx, dword ptr [ebp + 0xc] */
  11363     MEM32(ebp + (-0x194)) = eax; /* 0x360235C7: mov dword ptr [ebp - 0x194], eax */
  11364     eax = MEM32(ecx + 0x4); /* 0x360235CD: mov eax, dword ptr [ecx + 4] */
  11365     edx = ebp + (-0x1C4); /* 0x360235D0: lea edx, [ebp - 0x1c4] */
  11366     PUSH32(esp, edx); /* 0x360235D6: push edx */
  11367     PUSH32(esp, eax); /* 0x360235D7: push eax */
  11368     MEM32(ebp + (-0x198)) = 9; /* 0x360235D8: mov dword ptr [ebp - 0x198], 9 */
  11369     eax = ebp + (-0x268); /* 0x360235E2: lea eax, [ebp - 0x268] */
  11370     goto L_36023D56; /* 0x360235E8: jmp 0x36023d56 */
  11371 L_360235ED:
  11372     eax = MEM32(ebp + (-0x10)); /* 0x360235ED: mov eax, dword ptr [ebp - 0x10] */
  11373     ecx = MEM32(ebp + 0x10); /* 0x360235F0: mov ecx, dword ptr [ebp + 0x10] */
  11374     /* cmp eax, 3 */ /* 0x360235F3: cmp eax, 3 */
  11375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  11376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11377     _flag_k = FK_CMP;
  11378     SET_LO8(eax, MEM8(ecx)); /* 0x360235F6: mov al, byte ptr [ecx] */
  11379     if (CMP_NE(_flag_a, _flag_b)) goto L_360236C2; /* 0x360235F8: jne 0x360236c2 */
  11380 L_360235FE:
  11381     /* test LO8(eax), 2 */ /* 0x360235FE: test al, 2 */
  11382     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24;
  11383     _cf = 0;
  11384     _flag_k = FK_NARROW(FK_TEST, 24);
  11385     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023600: je 0x36023d5c */
  11386 L_36023606:
  11387     edx = ebp + (-0x2A8); /* 0x36023606: lea edx, [ebp - 0x2a8] */
  11388     PUSH32(esp, edx); /* 0x3602360C: push edx */
  11389     ecx = esi; /* 0x3602360D: mov ecx, esi */
  11390     RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602360F: call dword ptr [0x36170048] */
  11391     RECOMP_FLAGS_IN();
  11392     ecx = esi; /* 0x36023615: mov ecx, esi */
  11393     MEM32(ebp + 0x8) = eax; /* 0x36023617: mov dword ptr [ebp + 8], eax */
  11394     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602361A: call dword ptr [0x3616ffb0] */
  11395     RECOMP_FLAGS_IN();
  11396     ecx = edi; /* 0x36023620: mov ecx, edi */
  11397     esi = eax; /* 0x36023622: mov esi, eax */
  11398     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023624: call dword ptr [0x361700b4] */
  11399     RECOMP_FLAGS_IN();
  11400     ecx = ebp + (-0x15C); /* 0x3602362A: lea ecx, [ebp - 0x15c] */
  11401     /* cmp ecx, ebx */ /* 0x36023630: cmp ecx, ebx */
  11402     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  11403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11404     _flag_k = FK_CMP;
  11405     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023645; /* 0x36023632: je 0x36023645 */
  11406 L_36023634:
  11407     edx = MEM32(ebx); /* 0x36023634: mov edx, dword ptr [ebx] */
  11408     ecx = MEM32(ebx + 0x4); /* 0x36023636: mov ecx, dword ptr [ebx + 4] */
  11409     MEM32(ebp + (-0x15C)) = edx; /* 0x36023639: mov dword ptr [ebp - 0x15c], edx */
  11410     MEM32(ebp + (-0x158)) = ecx; /* 0x3602363F: mov dword ptr [ebp - 0x158], ecx */
  11411 L_36023645:
  11412     edx = MEM32(esi); /* 0x36023645: mov edx, dword ptr [esi] */
  11413     MEM32(ebp + (-0x154)) = edx; /* 0x36023647: mov dword ptr [ebp - 0x154], edx */
  11414     ecx = MEM32(esi + 0x4); /* 0x3602364D: mov ecx, dword ptr [esi + 4] */
  11415     MEM32(ebp + (-0x150)) = ecx; /* 0x36023650: mov dword ptr [ebp - 0x150], ecx */
  11416     edx = MEM32(esi + 0x8); /* 0x36023656: mov edx, dword ptr [esi + 8] */
  11417     ecx = MEM32(ebp + 0x8); /* 0x36023659: mov ecx, dword ptr [ebp + 8] */
  11418     MEM32(ebp + (-0x14C)) = edx; /* 0x3602365C: mov dword ptr [ebp - 0x14c], edx */
  11419     edx = MEM32(ecx); /* 0x36023662: mov edx, dword ptr [ecx] */
  11420     MEM32(ebp + (-0x148)) = edx; /* 0x36023664: mov dword ptr [ebp - 0x148], edx */
  11421     edx = MEM32(ecx + 0x4); /* 0x3602366A: mov edx, dword ptr [ecx + 4] */
  11422     MEM32(ebp + (-0x144)) = edx; /* 0x3602366D: mov dword ptr [ebp - 0x144], edx */
  11423     edx = MEM32(ecx + 0x8); /* 0x36023673: mov edx, dword ptr [ecx + 8] */
  11424     MEM32(ebp + (-0x140)) = edx; /* 0x36023676: mov dword ptr [ebp - 0x140], edx */
  11425     ecx = MEM32(ecx + 0xC); /* 0x3602367C: mov ecx, dword ptr [ecx + 0xc] */
  11426     MEM32(ebp + (-0x13C)) = ecx; /* 0x3602367F: mov dword ptr [ebp - 0x13c], ecx */
  11427     ecx = MEM32(ebp + 0xC); /* 0x36023685: mov ecx, dword ptr [ebp + 0xc] */
  11428     MEM32(ebp + (-0x12C)) = eax; /* 0x36023688: mov dword ptr [ebp - 0x12c], eax */
  11429     eax = MEM32(ecx + 0x4); /* 0x3602368E: mov eax, dword ptr [ecx + 4] */
  11430     edx = ebp + (-0x15C); /* 0x36023691: lea edx, [ebp - 0x15c] */
  11431     PUSH32(esp, edx); /* 0x36023697: push edx */
  11432     PUSH32(esp, eax); /* 0x36023698: push eax */
  11433     MEM32(ebp + (-0x138)) = 0; /* 0x36023699: mov dword ptr [ebp - 0x138], 0 */
  11434     MEM32(ebp + (-0x134)) = 0; /* 0x360236A3: mov dword ptr [ebp - 0x134], 0 */
  11435     MEM32(ebp + (-0x130)) = 3; /* 0x360236AD: mov dword ptr [ebp - 0x130], 3 */
  11436     eax = ebp + (-0x264); /* 0x360236B7: lea eax, [ebp - 0x264] */
  11437     goto L_36023D56; /* 0x360236BD: jmp 0x36023d56 */
  11438 L_360236C2:
  11439     /* test LO8(eax), 4 */ /* 0x360236C2: test al, 4 */
  11440     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24;
  11441     _cf = 0;
  11442     _flag_k = FK_NARROW(FK_TEST, 24);
  11443     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x360236C4: je 0x36023d5c */
  11444 L_360236CA:
  11445     ecx = MEM32(ebp + (-0x18)); /* 0x360236CA: mov ecx, dword ptr [ebp - 0x18] */
  11446     PUSH32(esp, ebx); /* 0x360236CD: push ebx */
  11447     RECOMP_ICALL(0x36071E40u); /* 0x360236CE: call 0x36071e40 */ /* not lifted */
  11448     RECOMP_FLAGS_IN();
  11449     ecx = eax; /* 0x360236D3: mov ecx, eax */
  11450     RECOMP_ICALL(0x36076E20u); /* 0x360236D5: call 0x36076e20 */ /* not lifted */
  11451     RECOMP_FLAGS_IN();
  11452     /* test LO8(eax), LO8(eax) */ /* 0x360236DA: test al, al */
  11453     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11454     _cf = 0;
  11455     _flag_k = FK_NARROW(FK_TEST, 24);
  11456     if (TEST_Z(_flag_a, _flag_b)) goto L_36023780; /* 0x360236DC: je 0x36023780 */
  11457 L_360236E2:
  11458     edx = ebp + (-0x298); /* 0x360236E2: lea edx, [ebp - 0x298] */
  11459     PUSH32(esp, edx); /* 0x360236E8: push edx */
  11460     ecx = esi; /* 0x360236E9: mov ecx, esi */
  11461     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360236EB: call dword ptr [0x36170048] */
  11462     RECOMP_FLAGS_IN();
  11463     ecx = esi; /* 0x360236F1: mov ecx, esi */
  11464     MEM32(ebp + 0x8) = eax; /* 0x360236F3: mov dword ptr [ebp + 8], eax */
  11465     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360236F6: call dword ptr [0x3616ffb0] */
  11466     RECOMP_FLAGS_IN();
  11467     ecx = edi; /* 0x360236FC: mov ecx, edi */
  11468     esi = eax; /* 0x360236FE: mov esi, eax */
  11469     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023700: call dword ptr [0x361700b4] */
  11470     RECOMP_FLAGS_IN();
  11471     ecx = ebp + (-0x8C); /* 0x36023706: lea ecx, [ebp - 0x8c] */
  11472     /* cmp ecx, ebx */ /* 0x3602370C: cmp ecx, ebx */
  11473     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  11474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11475     _flag_k = FK_CMP;
  11476     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023721; /* 0x3602370E: je 0x36023721 */
  11477 L_36023710:
  11478     edx = MEM32(ebx); /* 0x36023710: mov edx, dword ptr [ebx] */
  11479     ecx = MEM32(ebx + 0x4); /* 0x36023712: mov ecx, dword ptr [ebx + 4] */
  11480     MEM32(ebp + (-0x8C)) = edx; /* 0x36023715: mov dword ptr [ebp - 0x8c], edx */
  11481     MEM32(ebp + (-0x88)) = ecx; /* 0x3602371B: mov dword ptr [ebp - 0x88], ecx */
  11482 L_36023721:
  11483     edx = MEM32(esi); /* 0x36023721: mov edx, dword ptr [esi] */
  11484     MEM32(ebp + (-0x84)) = edx; /* 0x36023723: mov dword ptr [ebp - 0x84], edx */
  11485     ecx = MEM32(esi + 0x4); /* 0x36023729: mov ecx, dword ptr [esi + 4] */
  11486     MEM32(ebp + (-0x80)) = ecx; /* 0x3602372C: mov dword ptr [ebp - 0x80], ecx */
  11487     edx = MEM32(esi + 0x8); /* 0x3602372F: mov edx, dword ptr [esi + 8] */
  11488     ecx = MEM32(ebp + 0x8); /* 0x36023732: mov ecx, dword ptr [ebp + 8] */
  11489     MEM32(ebp + (-0x7C)) = edx; /* 0x36023735: mov dword ptr [ebp - 0x7c], edx */
  11490     edx = MEM32(ecx); /* 0x36023738: mov edx, dword ptr [ecx] */
  11491     MEM32(ebp + (-0x78)) = edx; /* 0x3602373A: mov dword ptr [ebp - 0x78], edx */
  11492     edx = MEM32(ecx + 0x4); /* 0x3602373D: mov edx, dword ptr [ecx + 4] */
  11493     MEM32(ebp + (-0x74)) = edx; /* 0x36023740: mov dword ptr [ebp - 0x74], edx */
  11494     edx = MEM32(ecx + 0x8); /* 0x36023743: mov edx, dword ptr [ecx + 8] */
  11495     MEM32(ebp + (-0x70)) = edx; /* 0x36023746: mov dword ptr [ebp - 0x70], edx */
  11496     ecx = MEM32(ecx + 0xC); /* 0x36023749: mov ecx, dword ptr [ecx + 0xc] */
  11497     MEM32(ebp + (-0x6C)) = ecx; /* 0x3602374C: mov dword ptr [ebp - 0x6c], ecx */
  11498     ecx = MEM32(ebp + 0xC); /* 0x3602374F: mov ecx, dword ptr [ebp + 0xc] */
  11499     MEM32(ebp + (-0x5C)) = eax; /* 0x36023752: mov dword ptr [ebp - 0x5c], eax */
  11500     eax = MEM32(ecx + 0x4); /* 0x36023755: mov eax, dword ptr [ecx + 4] */
  11501     edx = ebp + (-0x8C); /* 0x36023758: lea edx, [ebp - 0x8c] */
  11502     PUSH32(esp, edx); /* 0x3602375E: push edx */
  11503     PUSH32(esp, eax); /* 0x3602375F: push eax */
  11504     MEM32(ebp + (-0x68)) = 0; /* 0x36023760: mov dword ptr [ebp - 0x68], 0 */
  11505     MEM32(ebp + (-0x64)) = 0; /* 0x36023767: mov dword ptr [ebp - 0x64], 0 */
  11506     MEM32(ebp + (-0x60)) = 4; /* 0x3602376E: mov dword ptr [ebp - 0x60], 4 */
  11507     eax = ebp + (-0x288); /* 0x36023775: lea eax, [ebp - 0x288] */
  11508     goto L_36023D56; /* 0x3602377B: jmp 0x36023d56 */
  11509 L_36023780:
  11510     ecx = MEM32(ebp + 0x10); /* 0x36023780: mov ecx, dword ptr [ebp + 0x10] */
  11511     /* test MEM8(ecx), 1 */ /* 0x36023783: test byte ptr [ecx], 1 */
  11512     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
  11513     _cf = 0;
  11514     _flag_k = FK_NARROW(FK_TEST, 24);
  11515     if (TEST_Z(_flag_a, _flag_b)) goto L_360239D5; /* 0x36023786: je 0x360239d5 */
  11516 L_3602378C:
  11517     eax = MEM32(ebp + (-0x10)); /* 0x3602378C: mov eax, dword ptr [ebp - 0x10] */
  11518     /* cmp eax, 1 */ /* 0x3602378F: cmp eax, 1 */
  11519     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11521     _flag_k = FK_CMP;
  11522     if (CMP_NE(_flag_a, _flag_b)) goto L_36023854; /* 0x36023792: jne 0x36023854 */
  11523 L_36023798:
  11524     edx = ebp + (-0x2D8); /* 0x36023798: lea edx, [ebp - 0x2d8] */
  11525     PUSH32(esp, edx); /* 0x3602379E: push edx */
  11526     ecx = esi; /* 0x3602379F: mov ecx, esi */
  11527     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360237A1: call dword ptr [0x36170048] */
  11528     RECOMP_FLAGS_IN();
  11529     ecx = esi; /* 0x360237A7: mov ecx, esi */
  11530     MEM32(ebp + 0x8) = eax; /* 0x360237A9: mov dword ptr [ebp + 8], eax */
  11531     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360237AC: call dword ptr [0x3616ffb0] */
  11532     RECOMP_FLAGS_IN();
  11533     ecx = edi; /* 0x360237B2: mov ecx, edi */
  11534     esi = eax; /* 0x360237B4: mov esi, eax */
  11535     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360237B6: call dword ptr [0x361700b4] */
  11536     RECOMP_FLAGS_IN();
  11537     ecx = ebp + (-0xC0); /* 0x360237BC: lea ecx, [ebp - 0xc0] */
  11538     /* cmp ecx, ebx */ /* 0x360237C2: cmp ecx, ebx */
  11539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
  11540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11541     _flag_k = FK_CMP;
  11542     if (CMP_EQ(_flag_a, _flag_b)) goto L_360237D7; /* 0x360237C4: je 0x360237d7 */
  11543 L_360237C6:
  11544     edx = MEM32(ebx); /* 0x360237C6: mov edx, dword ptr [ebx] */
  11545     ecx = MEM32(ebx + 0x4); /* 0x360237C8: mov ecx, dword ptr [ebx + 4] */
  11546     MEM32(ebp + (-0xC0)) = edx; /* 0x360237CB: mov dword ptr [ebp - 0xc0], edx */
  11547     MEM32(ebp + (-0xBC)) = ecx; /* 0x360237D1: mov dword ptr [ebp - 0xbc], ecx */
  11548 L_360237D7:
  11549     edx = MEM32(esi); /* 0x360237D7: mov edx, dword ptr [esi] */
  11550     MEM32(ebp + (-0xB8)) = edx; /* 0x360237D9: mov dword ptr [ebp - 0xb8], edx */
  11551     ecx = MEM32(esi + 0x4); /* 0x360237DF: mov ecx, dword ptr [esi + 4] */
  11552     MEM32(ebp + (-0xB4)) = ecx; /* 0x360237E2: mov dword ptr [ebp - 0xb4], ecx */
  11553     edx = MEM32(esi + 0x8); /* 0x360237E8: mov edx, dword ptr [esi + 8] */
  11554     ecx = MEM32(ebp + 0x8); /* 0x360237EB: mov ecx, dword ptr [ebp + 8] */
  11555     MEM32(ebp + (-0xB0)) = edx; /* 0x360237EE: mov dword ptr [ebp - 0xb0], edx */
  11556     edx = MEM32(ecx); /* 0x360237F4: mov edx, dword ptr [ecx] */
  11557     MEM32(ebp + (-0xAC)) = edx; /* 0x360237F6: mov dword ptr [ebp - 0xac], edx */
  11558     edx = MEM32(ecx + 0x4); /* 0x360237FC: mov edx, dword ptr [ecx + 4] */
  11559     MEM32(ebp + (-0xA8)) = edx; /* 0x360237FF: mov dword ptr [ebp - 0xa8], edx */
  11560     edx = MEM32(ecx + 0x8); /* 0x36023805: mov edx, dword ptr [ecx + 8] */
  11561     MEM32(ebp + (-0xA4)) = edx; /* 0x36023808: mov dword ptr [ebp - 0xa4], edx */
  11562     ecx = MEM32(ecx + 0xC); /* 0x3602380E: mov ecx, dword ptr [ecx + 0xc] */
  11563     MEM32(ebp + (-0xA0)) = ecx; /* 0x36023811: mov dword ptr [ebp - 0xa0], ecx */
  11564     ecx = MEM32(ebp + 0xC); /* 0x36023817: mov ecx, dword ptr [ebp + 0xc] */
  11565     MEM32(ebp + (-0x90)) = eax; /* 0x3602381A: mov dword ptr [ebp - 0x90], eax */
  11566     eax = MEM32(ecx + 0x4); /* 0x36023820: mov eax, dword ptr [ecx + 4] */
  11567     edx = ebp + (-0xC0); /* 0x36023823: lea edx, [ebp - 0xc0] */
  11568     PUSH32(esp, edx); /* 0x36023829: push edx */
  11569     PUSH32(esp, eax); /* 0x3602382A: push eax */
  11570     MEM32(ebp + (-0x9C)) = 0; /* 0x3602382B: mov dword ptr [ebp - 0x9c], 0 */
  11571     MEM32(ebp + (-0x98)) = 0; /* 0x36023835: mov dword ptr [ebp - 0x98], 0 */
  11572     MEM32(ebp + (-0x94)) = 0; /* 0x3602383F: mov dword ptr [ebp - 0x94], 0 */
  11573     eax = ebp + (-0x280); /* 0x36023849: lea eax, [ebp - 0x280] */
  11574     goto L_36023D56; /* 0x3602384F: jmp 0x36023d56 */
  11575 L_36023854:
  11576     /* cmp eax, 2 */ /* 0x36023854: cmp eax, 2 */
  11577     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  11578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11579     _flag_k = FK_CMP;
  11580     if (CMP_NE(_flag_a, _flag_b)) goto L_36023919; /* 0x36023857: jne 0x36023919 */
  11581 L_3602385D:
  11582     ecx = ebp + (-0x2F8); /* 0x3602385D: lea ecx, [ebp - 0x2f8] */
  11583     PUSH32(esp, ecx); /* 0x36023863: push ecx */
  11584     ecx = esi; /* 0x36023864: mov ecx, esi */
  11585     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023866: call dword ptr [0x36170048] */
  11586     RECOMP_FLAGS_IN();
  11587     ecx = esi; /* 0x3602386C: mov ecx, esi */
  11588     MEM32(ebp + 0x8) = eax; /* 0x3602386E: mov dword ptr [ebp + 8], eax */
  11589     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023871: call dword ptr [0x3616ffb0] */
  11590     RECOMP_FLAGS_IN();
  11591     ecx = edi; /* 0x36023877: mov ecx, edi */
  11592     esi = eax; /* 0x36023879: mov esi, eax */
  11593     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x3602387B: call dword ptr [0x361700b4] */
  11594     RECOMP_FLAGS_IN();
  11595     edx = ebp + (-0x128); /* 0x36023881: lea edx, [ebp - 0x128] */
  11596     /* cmp edx, ebx */ /* 0x36023887: cmp edx, ebx */
  11597     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11598     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11599     _flag_k = FK_CMP;
  11600     if (CMP_EQ(_flag_a, _flag_b)) goto L_3602389C; /* 0x36023889: je 0x3602389c */
  11601 L_3602388B:
  11602     ecx = MEM32(ebx); /* 0x3602388B: mov ecx, dword ptr [ebx] */
  11603     edx = MEM32(ebx + 0x4); /* 0x3602388D: mov edx, dword ptr [ebx + 4] */
  11604     MEM32(ebp + (-0x128)) = ecx; /* 0x36023890: mov dword ptr [ebp - 0x128], ecx */
  11605     MEM32(ebp + (-0x124)) = edx; /* 0x36023896: mov dword ptr [ebp - 0x124], edx */
  11606 L_3602389C:
  11607     ecx = MEM32(esi); /* 0x3602389C: mov ecx, dword ptr [esi] */
  11608     MEM32(ebp + (-0x120)) = ecx; /* 0x3602389E: mov dword ptr [ebp - 0x120], ecx */
  11609     edx = MEM32(esi + 0x4); /* 0x360238A4: mov edx, dword ptr [esi + 4] */
  11610     MEM32(ebp + (-0x11C)) = edx; /* 0x360238A7: mov dword ptr [ebp - 0x11c], edx */
  11611     ecx = MEM32(esi + 0x8); /* 0x360238AD: mov ecx, dword ptr [esi + 8] */
  11612     MEM32(ebp + (-0x118)) = ecx; /* 0x360238B0: mov dword ptr [ebp - 0x118], ecx */
  11613     ecx = MEM32(ebp + 0x8); /* 0x360238B6: mov ecx, dword ptr [ebp + 8] */
  11614     edx = MEM32(ecx); /* 0x360238B9: mov edx, dword ptr [ecx] */
  11615     MEM32(ebp + (-0x114)) = edx; /* 0x360238BB: mov dword ptr [ebp - 0x114], edx */
  11616     edx = MEM32(ecx + 0x4); /* 0x360238C1: mov edx, dword ptr [ecx + 4] */
  11617     MEM32(ebp + (-0x110)) = edx; /* 0x360238C4: mov dword ptr [ebp - 0x110], edx */
  11618     edx = MEM32(ecx + 0x8); /* 0x360238CA: mov edx, dword ptr [ecx + 8] */
  11619     MEM32(ebp + (-0x10C)) = edx; /* 0x360238CD: mov dword ptr [ebp - 0x10c], edx */
  11620     ecx = MEM32(ecx + 0xC); /* 0x360238D3: mov ecx, dword ptr [ecx + 0xc] */
  11621     MEM32(ebp + (-0x108)) = ecx; /* 0x360238D6: mov dword ptr [ebp - 0x108], ecx */
  11622     ecx = MEM32(ebp + 0xC); /* 0x360238DC: mov ecx, dword ptr [ebp + 0xc] */
  11623     MEM32(ebp + (-0xF8)) = eax; /* 0x360238DF: mov dword ptr [ebp - 0xf8], eax */
  11624     eax = MEM32(ecx + 0x4); /* 0x360238E5: mov eax, dword ptr [ecx + 4] */
  11625     edx = ebp + (-0x128); /* 0x360238E8: lea edx, [ebp - 0x128] */
  11626     PUSH32(esp, edx); /* 0x360238EE: push edx */
  11627     PUSH32(esp, eax); /* 0x360238EF: push eax */
  11628     MEM32(ebp + (-0x104)) = 0; /* 0x360238F0: mov dword ptr [ebp - 0x104], 0 */
  11629     MEM32(ebp + (-0x100)) = 0; /* 0x360238FA: mov dword ptr [ebp - 0x100], 0 */
  11630     MEM32(ebp + (-0xFC)) = 1; /* 0x36023904: mov dword ptr [ebp - 0xfc], 1 */
  11631     eax = ebp + (-0x270); /* 0x3602390E: lea eax, [ebp - 0x270] */
  11632     goto L_36023D56; /* 0x36023914: jmp 0x36023d56 */
  11633 L_36023919:
  11634     ecx = ebp + (-0x2E8); /* 0x36023919: lea ecx, [ebp - 0x2e8] */
  11635     PUSH32(esp, ecx); /* 0x3602391F: push ecx */
  11636     ecx = esi; /* 0x36023920: mov ecx, esi */
  11637     RECOMP_ICALL(MEM32(0x36170048)); /* 0x36023922: call dword ptr [0x36170048] */
  11638     RECOMP_FLAGS_IN();
  11639     ecx = esi; /* 0x36023928: mov ecx, esi */
  11640     MEM32(ebp + 0x8) = eax; /* 0x3602392A: mov dword ptr [ebp + 8], eax */
  11641     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602392D: call dword ptr [0x3616ffb0] */
  11642     RECOMP_FLAGS_IN();
  11643     ecx = edi; /* 0x36023933: mov ecx, edi */
  11644     esi = eax; /* 0x36023935: mov esi, eax */
  11645     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023937: call dword ptr [0x361700b4] */
  11646     RECOMP_FLAGS_IN();
  11647     edx = ebp + (-0x190); /* 0x3602393D: lea edx, [ebp - 0x190] */
  11648     /* cmp edx, ebx */ /* 0x36023943: cmp edx, ebx */
  11649     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11651     _flag_k = FK_CMP;
  11652     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023958; /* 0x36023945: je 0x36023958 */
  11653 L_36023947:
  11654     ecx = MEM32(ebx); /* 0x36023947: mov ecx, dword ptr [ebx] */
  11655     edx = MEM32(ebx + 0x4); /* 0x36023949: mov edx, dword ptr [ebx + 4] */
  11656     MEM32(ebp + (-0x190)) = ecx; /* 0x3602394C: mov dword ptr [ebp - 0x190], ecx */
  11657     MEM32(ebp + (-0x18C)) = edx; /* 0x36023952: mov dword ptr [ebp - 0x18c], edx */
  11658 L_36023958:
  11659     ecx = MEM32(esi); /* 0x36023958: mov ecx, dword ptr [esi] */
  11660     MEM32(ebp + (-0x188)) = ecx; /* 0x3602395A: mov dword ptr [ebp - 0x188], ecx */
  11661     edx = MEM32(esi + 0x4); /* 0x36023960: mov edx, dword ptr [esi + 4] */
  11662     MEM32(ebp + (-0x184)) = edx; /* 0x36023963: mov dword ptr [ebp - 0x184], edx */
  11663     ecx = MEM32(esi + 0x8); /* 0x36023969: mov ecx, dword ptr [esi + 8] */
  11664     MEM32(ebp + (-0x180)) = ecx; /* 0x3602396C: mov dword ptr [ebp - 0x180], ecx */
  11665     ecx = MEM32(ebp + 0x8); /* 0x36023972: mov ecx, dword ptr [ebp + 8] */
  11666     edx = MEM32(ecx); /* 0x36023975: mov edx, dword ptr [ecx] */
  11667     MEM32(ebp + (-0x17C)) = edx; /* 0x36023977: mov dword ptr [ebp - 0x17c], edx */
  11668     edx = MEM32(ecx + 0x4); /* 0x3602397D: mov edx, dword ptr [ecx + 4] */
  11669     MEM32(ebp + (-0x178)) = edx; /* 0x36023980: mov dword ptr [ebp - 0x178], edx */
  11670     edx = MEM32(ecx + 0x8); /* 0x36023986: mov edx, dword ptr [ecx + 8] */
  11671     MEM32(ebp + (-0x174)) = edx; /* 0x36023989: mov dword ptr [ebp - 0x174], edx */
  11672     ecx = MEM32(ecx + 0xC); /* 0x3602398F: mov ecx, dword ptr [ecx + 0xc] */
  11673     MEM32(ebp + (-0x170)) = ecx; /* 0x36023992: mov dword ptr [ebp - 0x170], ecx */
  11674     ecx = MEM32(ebp + 0xC); /* 0x36023998: mov ecx, dword ptr [ebp + 0xc] */
  11675     MEM32(ebp + (-0x160)) = eax; /* 0x3602399B: mov dword ptr [ebp - 0x160], eax */
  11676     eax = MEM32(ecx + 0x4); /* 0x360239A1: mov eax, dword ptr [ecx + 4] */
  11677     edx = ebp + (-0x190); /* 0x360239A4: lea edx, [ebp - 0x190] */
  11678     PUSH32(esp, edx); /* 0x360239AA: push edx */
  11679     PUSH32(esp, eax); /* 0x360239AB: push eax */
  11680     MEM32(ebp + (-0x16C)) = 0; /* 0x360239AC: mov dword ptr [ebp - 0x16c], 0 */
  11681     MEM32(ebp + (-0x168)) = 0; /* 0x360239B6: mov dword ptr [ebp - 0x168], 0 */
  11682     MEM32(ebp + (-0x164)) = 2; /* 0x360239C0: mov dword ptr [ebp - 0x164], 2 */
  11683     eax = ebp + (-0x278); /* 0x360239CA: lea eax, [ebp - 0x278] */
  11684     goto L_36023D56; /* 0x360239D0: jmp 0x36023d56 */
  11685 L_360239D5:
  11686     ecx = ebp + (-0x2C8); /* 0x360239D5: lea ecx, [ebp - 0x2c8] */
  11687     PUSH32(esp, ecx); /* 0x360239DB: push ecx */
  11688     ecx = esi; /* 0x360239DC: mov ecx, esi */
  11689     RECOMP_ICALL(MEM32(0x36170048)); /* 0x360239DE: call dword ptr [0x36170048] */
  11690     RECOMP_FLAGS_IN();
  11691     ecx = esi; /* 0x360239E4: mov ecx, esi */
  11692     MEM32(ebp + 0x8) = eax; /* 0x360239E6: mov dword ptr [ebp + 8], eax */
  11693     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360239E9: call dword ptr [0x3616ffb0] */
  11694     RECOMP_FLAGS_IN();
  11695     ecx = edi; /* 0x360239EF: mov ecx, edi */
  11696     esi = eax; /* 0x360239F1: mov esi, eax */
  11697     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x360239F3: call dword ptr [0x361700b4] */
  11698     RECOMP_FLAGS_IN();
  11699     edx = ebp + (-0x1F8); /* 0x360239F9: lea edx, [ebp - 0x1f8] */
  11700     /* cmp edx, ebx */ /* 0x360239FF: cmp edx, ebx */
  11701     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11703     _flag_k = FK_CMP;
  11704     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023A14; /* 0x36023A01: je 0x36023a14 */
  11705 L_36023A03:
  11706     ecx = MEM32(ebx); /* 0x36023A03: mov ecx, dword ptr [ebx] */
  11707     edx = MEM32(ebx + 0x4); /* 0x36023A05: mov edx, dword ptr [ebx + 4] */
  11708     MEM32(ebp + (-0x1F8)) = ecx; /* 0x36023A08: mov dword ptr [ebp - 0x1f8], ecx */
  11709     MEM32(ebp + (-0x1F4)) = edx; /* 0x36023A0E: mov dword ptr [ebp - 0x1f4], edx */
  11710 L_36023A14:
  11711     ecx = MEM32(esi); /* 0x36023A14: mov ecx, dword ptr [esi] */
  11712     MEM32(ebp + (-0x1F0)) = ecx; /* 0x36023A16: mov dword ptr [ebp - 0x1f0], ecx */
  11713     edx = MEM32(esi + 0x4); /* 0x36023A1C: mov edx, dword ptr [esi + 4] */
  11714     MEM32(ebp + (-0x1EC)) = edx; /* 0x36023A1F: mov dword ptr [ebp - 0x1ec], edx */
  11715     ecx = MEM32(esi + 0x8); /* 0x36023A25: mov ecx, dword ptr [esi + 8] */
  11716     MEM32(ebp + (-0x1E8)) = ecx; /* 0x36023A28: mov dword ptr [ebp - 0x1e8], ecx */
  11717     ecx = MEM32(ebp + 0x8); /* 0x36023A2E: mov ecx, dword ptr [ebp + 8] */
  11718     edx = MEM32(ecx); /* 0x36023A31: mov edx, dword ptr [ecx] */
  11719     MEM32(ebp + (-0x1E4)) = edx; /* 0x36023A33: mov dword ptr [ebp - 0x1e4], edx */
  11720     edx = MEM32(ecx + 0x4); /* 0x36023A39: mov edx, dword ptr [ecx + 4] */
  11721     MEM32(ebp + (-0x1E0)) = edx; /* 0x36023A3C: mov dword ptr [ebp - 0x1e0], edx */
  11722     edx = MEM32(ecx + 0x8); /* 0x36023A42: mov edx, dword ptr [ecx + 8] */
  11723     MEM32(ebp + (-0x1DC)) = edx; /* 0x36023A45: mov dword ptr [ebp - 0x1dc], edx */
  11724     ecx = MEM32(ecx + 0xC); /* 0x36023A4B: mov ecx, dword ptr [ecx + 0xc] */
  11725     MEM32(ebp + (-0x1D8)) = ecx; /* 0x36023A4E: mov dword ptr [ebp - 0x1d8], ecx */
  11726     ecx = MEM32(ebp + 0xC); /* 0x36023A54: mov ecx, dword ptr [ebp + 0xc] */
  11727     MEM32(ebp + (-0x1C8)) = eax; /* 0x36023A57: mov dword ptr [ebp - 0x1c8], eax */
  11728     eax = MEM32(ecx + 0x4); /* 0x36023A5D: mov eax, dword ptr [ecx + 4] */
  11729     edx = ebp + (-0x1F8); /* 0x36023A60: lea edx, [ebp - 0x1f8] */
  11730     PUSH32(esp, edx); /* 0x36023A66: push edx */
  11731     PUSH32(esp, eax); /* 0x36023A67: push eax */
  11732     MEM32(ebp + (-0x1D4)) = 0; /* 0x36023A68: mov dword ptr [ebp - 0x1d4], 0 */
  11733     MEM32(ebp + (-0x1D0)) = 0; /* 0x36023A72: mov dword ptr [ebp - 0x1d0], 0 */
  11734     MEM32(ebp + (-0x1CC)) = 2; /* 0x36023A7C: mov dword ptr [ebp - 0x1cc], 2 */
  11735     eax = ebp + (-0x26C); /* 0x36023A86: lea eax, [ebp - 0x26c] */
  11736     goto L_36023D56; /* 0x36023A8C: jmp 0x36023d56 */
  11737 L_36023A91:
  11738     /* cmp MEM32(ebx), 0xC748u */ /* 0x36023A91: cmp dword ptr [ebx], 0xc748 */
  11739     _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(0xC748u);
  11740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11741     _flag_k = FK_CMP;
  11742     if (CMP_NE(_flag_a, _flag_b)) goto L_36023B75; /* 0x36023A97: jne 0x36023b75 */
  11743 L_36023A9D:
  11744     ecx = MEM32(ebp + 0x10); /* 0x36023A9D: mov ecx, dword ptr [ebp + 0x10] */
  11745     /* test MEM8(ecx), 8 */ /* 0x36023AA0: test byte ptr [ecx], 8 */
  11746     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  11747     _cf = 0;
  11748     _flag_k = FK_NARROW(FK_TEST, 24);
  11749     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AA3: je 0x36023d5c */
  11750 L_36023AA9:
  11751     /* test edi, edi */ /* 0x36023AA9: test edi, edi */
  11752     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  11753     _cf = 0;
  11754     _flag_k = FK_TEST;
  11755     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023AAB: je 0x36023d5c */
  11756 L_36023AB1:
  11757     ecx = edi; /* 0x36023AB1: mov ecx, edi */
  11758     MEM32(ebp + (-0x58)) = 0; /* 0x36023AB3: mov dword ptr [ebp - 0x58], 0 */
  11759     MEM32(ebp + (-0x54)) = 0; /* 0x36023ABA: mov dword ptr [ebp - 0x54], 0 */
  11760     MEM32(ebp + (-0x50)) = 0; /* 0x36023AC1: mov dword ptr [ebp - 0x50], 0 */
  11761     MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x36023AC8: mov dword ptr [ebp - 0x4c], 0x3f800000 */
  11762     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023ACF: call dword ptr [0x3616ffb0] */
  11763     RECOMP_FLAGS_IN();
  11764     ecx = edi; /* 0x36023AD5: mov ecx, edi */
  11765     esi = eax; /* 0x36023AD7: mov esi, eax */
  11766     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023AD9: call dword ptr [0x361700b4] */
  11767     RECOMP_FLAGS_IN();
  11768     edx = ebp + (-0x260); /* 0x36023ADF: lea edx, [ebp - 0x260] */
  11769     /* cmp edx, ebx */ /* 0x36023AE5: cmp edx, ebx */
  11770     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11771     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11772     _flag_k = FK_CMP;
  11773     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023AFA; /* 0x36023AE7: je 0x36023afa */
  11774 L_36023AE9:
  11775     ecx = MEM32(ebx); /* 0x36023AE9: mov ecx, dword ptr [ebx] */
  11776     edx = MEM32(ebx + 0x4); /* 0x36023AEB: mov edx, dword ptr [ebx + 4] */
  11777     MEM32(ebp + (-0x260)) = ecx; /* 0x36023AEE: mov dword ptr [ebp - 0x260], ecx */
  11778     MEM32(ebp + (-0x25C)) = edx; /* 0x36023AF4: mov dword ptr [ebp - 0x25c], edx */
  11779 L_36023AFA:
  11780     ecx = MEM32(esi); /* 0x36023AFA: mov ecx, dword ptr [esi] */
  11781     MEM32(ebp + (-0x258)) = ecx; /* 0x36023AFC: mov dword ptr [ebp - 0x258], ecx */
  11782     edx = MEM32(esi + 0x4); /* 0x36023B02: mov edx, dword ptr [esi + 4] */
  11783     MEM32(ebp + (-0x254)) = edx; /* 0x36023B05: mov dword ptr [ebp - 0x254], edx */
  11784     ecx = MEM32(esi + 0x8); /* 0x36023B0B: mov ecx, dword ptr [esi + 8] */
  11785     edx = MEM32(ebp + (-0x58)); /* 0x36023B0E: mov edx, dword ptr [ebp - 0x58] */
  11786     MEM32(ebp + (-0x250)) = ecx; /* 0x36023B11: mov dword ptr [ebp - 0x250], ecx */
  11787     ecx = MEM32(ebp + (-0x54)); /* 0x36023B17: mov ecx, dword ptr [ebp - 0x54] */
  11788     MEM32(ebp + (-0x24C)) = edx; /* 0x36023B1A: mov dword ptr [ebp - 0x24c], edx */
  11789     edx = MEM32(ebp + (-0x50)); /* 0x36023B20: mov edx, dword ptr [ebp - 0x50] */
  11790     MEM32(ebp + (-0x248)) = ecx; /* 0x36023B23: mov dword ptr [ebp - 0x248], ecx */
  11791     ecx = MEM32(ebp + (-0x4C)); /* 0x36023B29: mov ecx, dword ptr [ebp - 0x4c] */
  11792     MEM32(ebp + (-0x244)) = edx; /* 0x36023B2C: mov dword ptr [ebp - 0x244], edx */
  11793     MEM32(ebp + (-0x240)) = ecx; /* 0x36023B32: mov dword ptr [ebp - 0x240], ecx */
  11794     ecx = MEM32(ebp + 0xC); /* 0x36023B38: mov ecx, dword ptr [ebp + 0xc] */
  11795     MEM32(ebp + (-0x230)) = eax; /* 0x36023B3B: mov dword ptr [ebp - 0x230], eax */
  11796     eax = MEM32(ecx + 0x4); /* 0x36023B41: mov eax, dword ptr [ecx + 4] */
  11797     edx = ebp + (-0x260); /* 0x36023B44: lea edx, [ebp - 0x260] */
  11798     PUSH32(esp, edx); /* 0x36023B4A: push edx */
  11799     PUSH32(esp, eax); /* 0x36023B4B: push eax */
  11800     MEM32(ebp + (-0x23C)) = 0; /* 0x36023B4C: mov dword ptr [ebp - 0x23c], 0 */
  11801     MEM32(ebp + (-0x238)) = 0; /* 0x36023B56: mov dword ptr [ebp - 0x238], 0 */
  11802     MEM32(ebp + (-0x234)) = 8; /* 0x36023B60: mov dword ptr [ebp - 0x234], 8 */
  11803     eax = ebp + (-0x27C); /* 0x36023B6A: lea eax, [ebp - 0x27c] */
  11804     goto L_36023D56; /* 0x36023B70: jmp 0x36023d56 */
  11805 L_36023B75:
  11806     PUSH32(esp, 0); /* 0x36023B75: push 0 */
  11807     PUSH32(esp, 0x361B5C98u); /* 0x36023B77: push 0x361b5c98 */
  11808     PUSH32(esp, 0x361B2CC0u); /* 0x36023B7C: push 0x361b2cc0 */
  11809     PUSH32(esp, 0); /* 0x36023B81: push 0 */
  11810     PUSH32(esp, edi); /* 0x36023B83: push edi */
  11811     RECOMP_ICALL(0x3615FD86u); /* 0x36023B84: call 0x3615fd86 */ /* not lifted */
  11812     RECOMP_FLAGS_IN();
  11813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11815     esp = esp + 0x14u; /* 0x36023B89: add esp, 0x14 */
  11816     _flag_k = FK_ADD;
  11817     /* test eax, eax */ /* 0x36023B8C: test eax, eax */
  11818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11819     _cf = 0;
  11820     _flag_k = FK_TEST;
  11821     if (TEST_Z(_flag_a, _flag_b)) goto L_36023C68; /* 0x36023B8E: je 0x36023c68 */
  11822 L_36023B94:
  11823     ecx = MEM32(ebp + 0x10); /* 0x36023B94: mov ecx, dword ptr [ebp + 0x10] */
  11824     /* test MEM8(ecx), 8 */ /* 0x36023B97: test byte ptr [ecx], 8 */
  11825     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  11826     _cf = 0;
  11827     _flag_k = FK_NARROW(FK_TEST, 24);
  11828     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023B9A: je 0x36023d5c */
  11829 L_36023BA0:
  11830     ecx = eax + 0x8C; /* 0x36023BA0: lea ecx, [eax + 0x8c] */
  11831     MEM32(ebp + (-0x48)) = 0; /* 0x36023BA6: mov dword ptr [ebp - 0x48], 0 */
  11832     MEM32(ebp + (-0x44)) = 0; /* 0x36023BAD: mov dword ptr [ebp - 0x44], 0 */
  11833     MEM32(ebp + (-0x40)) = 0; /* 0x36023BB4: mov dword ptr [ebp - 0x40], 0 */
  11834     MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x36023BBB: mov dword ptr [ebp - 0x3c], 0x3f800000 */
  11835     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023BC2: call dword ptr [0x3616ffb0] */
  11836     RECOMP_FLAGS_IN();
  11837     ecx = edi; /* 0x36023BC8: mov ecx, edi */
  11838     esi = eax; /* 0x36023BCA: mov esi, eax */
  11839     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023BCC: call dword ptr [0x361700b4] */
  11840     RECOMP_FLAGS_IN();
  11841     edx = ebp + (-0x22C); /* 0x36023BD2: lea edx, [ebp - 0x22c] */
  11842     /* cmp edx, ebx */ /* 0x36023BD8: cmp edx, ebx */
  11843     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11845     _flag_k = FK_CMP;
  11846     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023BED; /* 0x36023BDA: je 0x36023bed */
  11847 L_36023BDC:
  11848     ecx = MEM32(ebx); /* 0x36023BDC: mov ecx, dword ptr [ebx] */
  11849     edx = MEM32(ebx + 0x4); /* 0x36023BDE: mov edx, dword ptr [ebx + 4] */
  11850     MEM32(ebp + (-0x22C)) = ecx; /* 0x36023BE1: mov dword ptr [ebp - 0x22c], ecx */
  11851     MEM32(ebp + (-0x228)) = edx; /* 0x36023BE7: mov dword ptr [ebp - 0x228], edx */
  11852 L_36023BED:
  11853     ecx = MEM32(esi); /* 0x36023BED: mov ecx, dword ptr [esi] */
  11854     MEM32(ebp + (-0x224)) = ecx; /* 0x36023BEF: mov dword ptr [ebp - 0x224], ecx */
  11855     edx = MEM32(esi + 0x4); /* 0x36023BF5: mov edx, dword ptr [esi + 4] */
  11856     MEM32(ebp + (-0x220)) = edx; /* 0x36023BF8: mov dword ptr [ebp - 0x220], edx */
  11857     ecx = MEM32(esi + 0x8); /* 0x36023BFE: mov ecx, dword ptr [esi + 8] */
  11858     edx = MEM32(ebp + (-0x48)); /* 0x36023C01: mov edx, dword ptr [ebp - 0x48] */
  11859     MEM32(ebp + (-0x21C)) = ecx; /* 0x36023C04: mov dword ptr [ebp - 0x21c], ecx */
  11860     ecx = MEM32(ebp + (-0x44)); /* 0x36023C0A: mov ecx, dword ptr [ebp - 0x44] */
  11861     MEM32(ebp + (-0x218)) = edx; /* 0x36023C0D: mov dword ptr [ebp - 0x218], edx */
  11862     edx = MEM32(ebp + (-0x40)); /* 0x36023C13: mov edx, dword ptr [ebp - 0x40] */
  11863     MEM32(ebp + (-0x214)) = ecx; /* 0x36023C16: mov dword ptr [ebp - 0x214], ecx */
  11864     ecx = MEM32(ebp + (-0x3C)); /* 0x36023C1C: mov ecx, dword ptr [ebp - 0x3c] */
  11865     MEM32(ebp + (-0x210)) = edx; /* 0x36023C1F: mov dword ptr [ebp - 0x210], edx */
  11866     MEM32(ebp + (-0x20C)) = ecx; /* 0x36023C25: mov dword ptr [ebp - 0x20c], ecx */
  11867     ecx = MEM32(ebp + 0xC); /* 0x36023C2B: mov ecx, dword ptr [ebp + 0xc] */
  11868     MEM32(ebp + (-0x1FC)) = eax; /* 0x36023C2E: mov dword ptr [ebp - 0x1fc], eax */
  11869     eax = MEM32(ecx + 0x4); /* 0x36023C34: mov eax, dword ptr [ecx + 4] */
  11870     edx = ebp + (-0x22C); /* 0x36023C37: lea edx, [ebp - 0x22c] */
  11871     PUSH32(esp, edx); /* 0x36023C3D: push edx */
  11872     PUSH32(esp, eax); /* 0x36023C3E: push eax */
  11873     MEM32(ebp + (-0x208)) = 0; /* 0x36023C3F: mov dword ptr [ebp - 0x208], 0 */
  11874     MEM32(ebp + (-0x204)) = 0; /* 0x36023C49: mov dword ptr [ebp - 0x204], 0 */
  11875     MEM32(ebp + (-0x200)) = 5; /* 0x36023C53: mov dword ptr [ebp - 0x200], 5 */
  11876     eax = ebp + (-0x274); /* 0x36023C5D: lea eax, [ebp - 0x274] */
  11877     goto L_36023D56; /* 0x36023C63: jmp 0x36023d56 */
  11878 L_36023C68:
  11879     PUSH32(esp, 0); /* 0x36023C68: push 0 */
  11880     PUSH32(esp, 0x361B5D88u); /* 0x36023C6A: push 0x361b5d88 */
  11881     PUSH32(esp, 0x361B2CC0u); /* 0x36023C6F: push 0x361b2cc0 */
  11882     PUSH32(esp, 0); /* 0x36023C74: push 0 */
  11883     PUSH32(esp, edi); /* 0x36023C76: push edi */
  11884     RECOMP_ICALL(0x3615FD86u); /* 0x36023C77: call 0x3615fd86 */ /* not lifted */
  11885     RECOMP_FLAGS_IN();
  11886     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11887     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11888     esp = esp + 0x14u; /* 0x36023C7C: add esp, 0x14 */
  11889     _flag_k = FK_ADD;
  11890     /* test eax, eax */ /* 0x36023C7F: test eax, eax */
  11891     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11892     _cf = 0;
  11893     _flag_k = FK_TEST;
  11894     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C81: je 0x36023d5c */
  11895 L_36023C87:
  11896     ecx = MEM32(ebp + 0x10); /* 0x36023C87: mov ecx, dword ptr [ebp + 0x10] */
  11897     /* test MEM8(ecx), 8 */ /* 0x36023C8A: test byte ptr [ecx], 8 */
  11898     _flag_a = (uint32_t)(MEM8(ecx)) << 24; _flag_b = (uint32_t)(8) << 24;
  11899     _cf = 0;
  11900     _flag_k = FK_NARROW(FK_TEST, 24);
  11901     if (TEST_Z(_flag_a, _flag_b)) goto L_36023D5C; /* 0x36023C8D: je 0x36023d5c */
  11902 L_36023C93:
  11903     ecx = eax + 0x8C; /* 0x36023C93: lea ecx, [eax + 0x8c] */
  11904     MEM32(ebp + (-0x38)) = 0; /* 0x36023C99: mov dword ptr [ebp - 0x38], 0 */
  11905     MEM32(ebp + (-0x34)) = 0; /* 0x36023CA0: mov dword ptr [ebp - 0x34], 0 */
  11906     MEM32(ebp + (-0x30)) = 0; /* 0x36023CA7: mov dword ptr [ebp - 0x30], 0 */
  11907     MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x36023CAE: mov dword ptr [ebp - 0x2c], 0x3f800000 */
  11908     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36023CB5: call dword ptr [0x3616ffb0] */
  11909     RECOMP_FLAGS_IN();
  11910     ecx = edi; /* 0x36023CBB: mov ecx, edi */
  11911     esi = eax; /* 0x36023CBD: mov esi, eax */
  11912     RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36023CBF: call dword ptr [0x361700b4] */
  11913     RECOMP_FLAGS_IN();
  11914     edx = ebp + (-0xF4); /* 0x36023CC5: lea edx, [ebp - 0xf4] */
  11915     /* cmp edx, ebx */ /* 0x36023CCB: cmp edx, ebx */
  11916     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx);
  11917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11918     _flag_k = FK_CMP;
  11919     if (CMP_EQ(_flag_a, _flag_b)) goto L_36023CE0; /* 0x36023CCD: je 0x36023ce0 */
  11920 L_36023CCF:
  11921     ecx = MEM32(ebx); /* 0x36023CCF: mov ecx, dword ptr [ebx] */
  11922     edx = MEM32(ebx + 0x4); /* 0x36023CD1: mov edx, dword ptr [ebx + 4] */
  11923     MEM32(ebp + (-0xF4)) = ecx; /* 0x36023CD4: mov dword ptr [ebp - 0xf4], ecx */
  11924     MEM32(ebp + (-0xF0)) = edx; /* 0x36023CDA: mov dword ptr [ebp - 0xf0], edx */
  11925 L_36023CE0:
  11926     ecx = MEM32(esi); /* 0x36023CE0: mov ecx, dword ptr [esi] */
  11927     MEM32(ebp + (-0xEC)) = ecx; /* 0x36023CE2: mov dword ptr [ebp - 0xec], ecx */
  11928     edx = MEM32(esi + 0x4); /* 0x36023CE8: mov edx, dword ptr [esi + 4] */
  11929     MEM32(ebp + (-0xE8)) = edx; /* 0x36023CEB: mov dword ptr [ebp - 0xe8], edx */
  11930     ecx = MEM32(esi + 0x8); /* 0x36023CF1: mov ecx, dword ptr [esi + 8] */
  11931     edx = MEM32(ebp + (-0x38)); /* 0x36023CF4: mov edx, dword ptr [ebp - 0x38] */
  11932     MEM32(ebp + (-0xE4)) = ecx; /* 0x36023CF7: mov dword ptr [ebp - 0xe4], ecx */
  11933     ecx = MEM32(ebp + (-0x34)); /* 0x36023CFD: mov ecx, dword ptr [ebp - 0x34] */
  11934     MEM32(ebp + (-0xE0)) = edx; /* 0x36023D00: mov dword ptr [ebp - 0xe0], edx */
  11935     edx = MEM32(ebp + (-0x30)); /* 0x36023D06: mov edx, dword ptr [ebp - 0x30] */
  11936     MEM32(ebp + (-0xDC)) = ecx; /* 0x36023D09: mov dword ptr [ebp - 0xdc], ecx */
  11937     ecx = MEM32(ebp + (-0x2C)); /* 0x36023D0F: mov ecx, dword ptr [ebp - 0x2c] */
  11938     MEM32(ebp + (-0xD8)) = edx; /* 0x36023D12: mov dword ptr [ebp - 0xd8], edx */
  11939     MEM32(ebp + (-0xD4)) = ecx; /* 0x36023D18: mov dword ptr [ebp - 0xd4], ecx */
  11940     ecx = MEM32(ebp + 0xC); /* 0x36023D1E: mov ecx, dword ptr [ebp + 0xc] */
  11941     MEM32(ebp + (-0xC4)) = eax; /* 0x36023D21: mov dword ptr [ebp - 0xc4], eax */
  11942     eax = MEM32(ecx + 0x4); /* 0x36023D27: mov eax, dword ptr [ecx + 4] */
  11943     edx = ebp + (-0xF4); /* 0x36023D2A: lea edx, [ebp - 0xf4] */
  11944     PUSH32(esp, edx); /* 0x36023D30: push edx */
  11945     PUSH32(esp, eax); /* 0x36023D31: push eax */
  11946     MEM32(ebp + (-0xD0)) = 0; /* 0x36023D32: mov dword ptr [ebp - 0xd0], 0 */
  11947     MEM32(ebp + (-0xCC)) = 0; /* 0x36023D3C: mov dword ptr [ebp - 0xcc], 0 */
  11948     MEM32(ebp + (-0xC8)) = 6; /* 0x36023D46: mov dword ptr [ebp - 0xc8], 6 */
  11949     eax = ebp + (-0x284); /* 0x36023D50: lea eax, [ebp - 0x284] */
  11950 L_36023D56:
  11951     PUSH32(esp, eax); /* 0x36023D56: push eax */
  11952     RECOMP_ICALL(0x36029730u); /* 0x36023D57: call 0x36029730 */ /* not lifted */
  11953     RECOMP_FLAGS_IN();
  11954 L_36023D5C:
  11955     eax = MEM32(ebp + (-0x20)); /* 0x36023D5C: mov eax, dword ptr [ebp - 0x20] */
  11956     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8);
  11957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11958     ebx = ebx + 8; /* 0x36023D5F: add ebx, 8 */
  11959     _flag_k = FK_ADD;
  11960     /* cmp ebx, eax */ /* 0x36023D62: cmp ebx, eax */
  11961     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  11962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11963     _flag_k = FK_CMP;
  11964     RECOMP_BACKEDGE();
  11965     if (CMP_NE(_flag_a, _flag_b)) goto L_36023447; /* 0x36023D64: jne 0x36023447 */
  11966 L_36023D6A:
  11967     ebx = MEM32(ebp + (-0x24)); /* 0x36023D6A: mov ebx, dword ptr [ebp - 0x24] */
  11968     PUSH32(esp, ebx); /* 0x36023D6D: push ebx */
  11969     RECOMP_ICALL(0x3615FCC4u); /* 0x36023D6E: call 0x3615fcc4 */ /* not lifted */
  11970     RECOMP_FLAGS_IN();
  11971     ecx = MEM32(ebp + (-0xC)); /* 0x36023D73: mov ecx, dword ptr [ebp - 0xc] */
  11972     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11973     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11974     esp = esp + 4; /* 0x36023D76: add esp, 4 */
  11975     _flag_k = FK_ADD;
  11976     ebx = POP32_VAL(esp); /* 0x36023D79: pop ebx */
  11977     edi = POP32_VAL(esp); /* 0x36023D7A: pop edi */
  11978     SET_LO8(eax, 1); /* 0x36023D7B: mov al, 1 */
  11979     esi = POP32_VAL(esp); /* 0x36023D7D: pop esi */
  11980     MEM32(FS_BASE + (0)) = ecx; /* 0x36023D7E: mov dword ptr fs:[0], ecx */
  11981     esp = ebp; /* 0x36023D85: mov esp, ebp */
  11982     ebp = POP32_VAL(esp); /* 0x36023D87: pop ebp */
  11983     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36023D88: ret 0xc */
  11984     RECOMP_REGS_OUT();
  11985 }