aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0053.c (282897B)


      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_360B1B40(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(0x360B1B40u);
     17 
     18 L_360B1B40:
     19     PUSH32(esp, ebp); /* 0x360B1B40: push ebp */
     20     ebp = esp; /* 0x360B1B41: mov ebp, esp */
     21     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
     22     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     23     esp = esp - 0xCu; /* 0x360B1B43: sub esp, 0xc */
     24     _flag_k = FK_CMP;
     25     PUSH32(esp, ebx); /* 0x360B1B46: push ebx */
     26     ebx = MEM32(ebp + 0x8); /* 0x360B1B47: mov ebx, dword ptr [ebp + 8] */
     27     PUSH32(esp, esi); /* 0x360B1B4A: push esi */
     28     PUSH32(esp, edi); /* 0x360B1B4B: push edi */
     29     PUSH32(esp, 0); /* 0x360B1B4C: push 0 */
     30     PUSH32(esp, 0x361B7C18u); /* 0x360B1B4E: push 0x361b7c18 */
     31     PUSH32(esp, 0x361B2CF8u); /* 0x360B1B53: push 0x361b2cf8 */
     32     esi = ecx; /* 0x360B1B58: mov esi, ecx */
     33     PUSH32(esp, 0); /* 0x360B1B5A: push 0 */
     34     PUSH32(esp, ebx); /* 0x360B1B5C: push ebx */
     35     MEM32(ebp + (-0xC)) = esi; /* 0x360B1B5D: mov dword ptr [ebp - 0xc], esi */
     36     RECOMP_ICALL(0x3615FD86u); /* 0x360B1B60: call 0x3615fd86 */ /* not lifted */
     37     RECOMP_FLAGS_IN();
     38     edi = eax; /* 0x360B1B65: mov edi, eax */
     39     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
     40     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     41     esp = esp + 0x14u; /* 0x360B1B67: add esp, 0x14 */
     42     _flag_k = FK_ADD;
     43     /* test edi, edi */ /* 0x360B1B6A: test edi, edi */
     44     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
     45     _cf = 0;
     46     _flag_k = FK_TEST;
     47     MEM32(ebp + (-0x8)) = edi; /* 0x360B1B6C: mov dword ptr [ebp - 8], edi */
     48     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1CA8; /* 0x360B1B6F: je 0x360b1ca8 */
     49 L_360B1B75:
     50     PUSH32(esp, ebx); /* 0x360B1B75: push ebx */
     51     ecx = esi; /* 0x360B1B76: mov ecx, esi */
     52     RECOMP_ICALL(0x360B2830u); /* 0x360B1B78: call 0x360b2830 */ /* not lifted */
     53     RECOMP_FLAGS_IN();
     54     eax = MEM32(esi + 0x7C); /* 0x360B1B7D: mov eax, dword ptr [esi + 0x7c] */
     55     MEM32(edi + 0x1B0) = eax; /* 0x360B1B80: mov dword ptr [edi + 0x1b0], eax */
     56     ecx = MEM32(esi + 0x84); /* 0x360B1B86: mov ecx, dword ptr [esi + 0x84] */
     57     MEM32(edi + 0x1BC) = ecx; /* 0x360B1B8C: mov dword ptr [edi + 0x1bc], ecx */
     58     edx = esi + 0x8C; /* 0x360B1B92: lea edx, [esi + 0x8c] */
     59     ecx = MEM32(edx); /* 0x360B1B98: mov ecx, dword ptr [edx] */
     60     eax = edi + 0x1C4; /* 0x360B1B9A: lea eax, [edi + 0x1c4] */
     61     MEM32(eax) = ecx; /* 0x360B1BA0: mov dword ptr [eax], ecx */
     62     ecx = MEM32(edx + 0x4); /* 0x360B1BA2: mov ecx, dword ptr [edx + 4] */
     63     MEM32(eax + 0x4) = ecx; /* 0x360B1BA5: mov dword ptr [eax + 4], ecx */
     64     edx = MEM32(edx + 0x8); /* 0x360B1BA8: mov edx, dword ptr [edx + 8] */
     65     MEM32(eax + 0x8) = edx; /* 0x360B1BAB: mov dword ptr [eax + 8], edx */
     66     eax = MEM32(edi + 0x1E4); /* 0x360B1BAE: mov eax, dword ptr [edi + 0x1e4] */
     67     ecx = MEM32(esi + 0xBC); /* 0x360B1BB4: mov ecx, dword ptr [esi + 0xbc] */
     68     /* cmp eax, ecx */ /* 0x360B1BBA: cmp eax, ecx */
     69     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
     70     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     71     _flag_k = FK_CMP;
     72     MEM32(ebp + 0x8) = eax; /* 0x360B1BBC: mov dword ptr [ebp + 8], eax */
     73     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B1C68; /* 0x360B1BBF: je 0x360b1c68 */
     74 L_360B1BC5:
     75     esi = MEM32(eax + 0x4); /* 0x360B1BC5: mov esi, dword ptr [eax + 4] */
     76     eax = MEM32(esi); /* 0x360B1BC8: mov eax, dword ptr [esi] */
     77     /* cmp eax, esi */ /* 0x360B1BCA: cmp eax, esi */
     78     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
     79     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     80     _flag_k = FK_CMP;
     81     ecx = MEM32(ecx + 0x4); /* 0x360B1BCC: mov ecx, dword ptr [ecx + 4] */
     82     ebx = MEM32(ecx); /* 0x360B1BCF: mov ebx, dword ptr [ecx] */
     83     MEM32(ebp + (-0x4)) = ecx; /* 0x360B1BD1: mov dword ptr [ebp - 4], ecx */
     84     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B1BE8; /* 0x360B1BD4: je 0x360b1be8 */
     85 L_360B1BD6:
     86     /* cmp ebx, ecx */ /* 0x360B1BD6: cmp ebx, ecx */
     87     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
     88     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     89     _flag_k = FK_CMP;
     90     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B1BE8; /* 0x360B1BD8: je 0x360b1be8 */
     91 L_360B1BDA:
     92     edx = MEM32(ebx + 0x8); /* 0x360B1BDA: mov edx, dword ptr [ebx + 8] */
     93     MEM32(eax + 0x8) = edx; /* 0x360B1BDD: mov dword ptr [eax + 8], edx */
     94     eax = MEM32(eax); /* 0x360B1BE0: mov eax, dword ptr [eax] */
     95     /* cmp eax, esi */ /* 0x360B1BE2: cmp eax, esi */
     96     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
     97     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     98     _flag_k = FK_CMP;
     99     ebx = MEM32(ebx); /* 0x360B1BE4: mov ebx, dword ptr [ebx] */
    100     RECOMP_BACKEDGE();
    101     if (CMP_NE(_flag_a, _flag_b)) goto L_360B1BD6; /* 0x360B1BE6: jne 0x360b1bd6 */
    102 L_360B1BE8:
    103     /* cmp eax, esi */ /* 0x360B1BE8: cmp eax, esi */
    104     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
    105     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    106     _flag_k = FK_CMP;
    107     edi = eax; /* 0x360B1BEA: mov edi, eax */
    108     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B1C1B; /* 0x360B1BEC: je 0x360b1c1b */
    109 L_360B1BEE:
    110     eax = edi; /* 0x360B1BEE: mov eax, edi */
    111     ecx = MEM32(eax + 0x4); /* 0x360B1BF0: mov ecx, dword ptr [eax + 4] */
    112     edx = MEM32(eax); /* 0x360B1BF3: mov edx, dword ptr [eax] */
    113     edi = MEM32(edi); /* 0x360B1BF5: mov edi, dword ptr [edi] */
    114     MEM32(ecx) = edx; /* 0x360B1BF7: mov dword ptr [ecx], edx */
    115     ecx = MEM32(eax); /* 0x360B1BF9: mov ecx, dword ptr [eax] */
    116     edx = MEM32(eax + 0x4); /* 0x360B1BFB: mov edx, dword ptr [eax + 4] */
    117     PUSH32(esp, eax); /* 0x360B1BFE: push eax */
    118     MEM32(ecx + 0x4) = edx; /* 0x360B1BFF: mov dword ptr [ecx + 4], edx */
    119     RECOMP_ICALL(0x3615FCC4u); /* 0x360B1C02: call 0x3615fcc4 */ /* not lifted */
    120     RECOMP_FLAGS_IN();
    121     eax = MEM32(ebp + 0x8); /* 0x360B1C07: mov eax, dword ptr [ebp + 8] */
    122     ecx = MEM32(eax + 0x8); /* 0x360B1C0A: mov ecx, dword ptr [eax + 8] */
    123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    125     esp = esp + 4; /* 0x360B1C0D: add esp, 4 */
    126     _flag_k = FK_ADD;
    127     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    128     ecx = ecx - 1; /* 0x360B1C10: dec ecx */
    129     _flag_k = FK_DEC;
    130     /* cmp edi, esi */ /* 0x360B1C11: cmp edi, esi */
    131     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
    132     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    133     _flag_k = FK_CMP;
    134     MEM32(eax + 0x8) = ecx; /* 0x360B1C13: mov dword ptr [eax + 8], ecx */
    135     RECOMP_BACKEDGE();
    136     if (CMP_NE(_flag_a, _flag_b)) goto L_360B1BEE; /* 0x360B1C16: jne 0x360b1bee */
    137 L_360B1C18:
    138     ecx = MEM32(ebp + (-0x4)); /* 0x360B1C18: mov ecx, dword ptr [ebp - 4] */
    139 L_360B1C1B:
    140     /* cmp ebx, ecx */ /* 0x360B1C1B: cmp ebx, ecx */
    141     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
    142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    143     _flag_k = FK_CMP;
    144     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B1C62; /* 0x360B1C1D: je 0x360b1c62 */
    145 L_360B1C1F:
    146     edi = MEM32(esi + 0x4); /* 0x360B1C1F: mov edi, dword ptr [esi + 4] */
    147     PUSH32(esp, 0xCu); /* 0x360B1C22: push 0xc */
    148     RECOMP_ICALL(0x3615FD6Au); /* 0x360B1C24: call 0x3615fd6a */ /* not lifted */
    149     RECOMP_FLAGS_IN();
    150     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    151     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    152     esp = esp + 4; /* 0x360B1C29: add esp, 4 */
    153     _flag_k = FK_ADD;
    154     /* test esi, esi */ /* 0x360B1C2C: test esi, esi */
    155     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    156     _cf = 0;
    157     _flag_k = FK_TEST;
    158     ecx = esi; /* 0x360B1C2E: mov ecx, esi */
    159     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B1C34; /* 0x360B1C30: jne 0x360b1c34 */
    160 L_360B1C32:
    161     ecx = eax; /* 0x360B1C32: mov ecx, eax */
    162 L_360B1C34:
    163     /* test edi, edi */ /* 0x360B1C34: test edi, edi */
    164     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    165     _cf = 0;
    166     _flag_k = FK_TEST;
    167     MEM32(eax) = ecx; /* 0x360B1C36: mov dword ptr [eax], ecx */
    168     ecx = edi; /* 0x360B1C38: mov ecx, edi */
    169     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B1C3E; /* 0x360B1C3A: jne 0x360b1c3e */
    170 L_360B1C3C:
    171     ecx = eax; /* 0x360B1C3C: mov ecx, eax */
    172 L_360B1C3E:
    173     MEM32(eax + 0x4) = ecx; /* 0x360B1C3E: mov dword ptr [eax + 4], ecx */
    174     MEM32(esi + 0x4) = eax; /* 0x360B1C41: mov dword ptr [esi + 4], eax */
    175     ecx = MEM32(eax + 0x4); /* 0x360B1C44: mov ecx, dword ptr [eax + 4] */
    176     MEM32(ecx) = eax; /* 0x360B1C47: mov dword ptr [ecx], eax */
    177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
    178     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    179     eax = eax + 8; /* 0x360B1C49: add eax, 8 */
    180     _flag_k = FK_ADD;
    181     /* test eax, eax */ /* 0x360B1C4C: test eax, eax */
    182     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    183     _cf = 0;
    184     _flag_k = FK_TEST;
    185     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1C55; /* 0x360B1C4E: je 0x360b1c55 */
    186 L_360B1C50:
    187     edx = MEM32(ebx + 0x8); /* 0x360B1C50: mov edx, dword ptr [ebx + 8] */
    188     MEM32(eax) = edx; /* 0x360B1C53: mov dword ptr [eax], edx */
    189 L_360B1C55:
    190     eax = MEM32(ebp + 0x8); /* 0x360B1C55: mov eax, dword ptr [ebp + 8] */
    191     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1);
    192     MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x360B1C58: inc dword ptr [eax + 8] */
    193     _flag_k = FK_INC;
    194     ebx = MEM32(ebx); /* 0x360B1C5B: mov ebx, dword ptr [ebx] */
    195     /* cmp ebx, MEM32(ebp + (-0x4)) */ /* 0x360B1C5D: cmp ebx, dword ptr [ebp - 4] */
    196     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x4)));
    197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    198     _flag_k = FK_CMP;
    199     RECOMP_BACKEDGE();
    200     if (CMP_NE(_flag_a, _flag_b)) goto L_360B1C1F; /* 0x360B1C60: jne 0x360b1c1f */
    201 L_360B1C62:
    202     edi = MEM32(ebp + (-0x8)); /* 0x360B1C62: mov edi, dword ptr [ebp - 8] */
    203     esi = MEM32(ebp + (-0xC)); /* 0x360B1C65: mov esi, dword ptr [ebp - 0xc] */
    204 L_360B1C68:
    205     eax = MEM32(esi + 0x98); /* 0x360B1C68: mov eax, dword ptr [esi + 0x98] */
    206     MEM32(edi + 0x1A8) = eax; /* 0x360B1C6E: mov dword ptr [edi + 0x1a8], eax */
    207     ecx = MEM32(esi + 0x9C); /* 0x360B1C74: mov ecx, dword ptr [esi + 0x9c] */
    208     edx = esi + 0xAC; /* 0x360B1C7A: lea edx, [esi + 0xac] */
    209     PUSH32(esp, edx); /* 0x360B1C80: push edx */
    210     eax = esi + 0xA0; /* 0x360B1C81: lea eax, [esi + 0xa0] */
    211     MEM32(edi + 0x1AC) = ecx; /* 0x360B1C87: mov dword ptr [edi + 0x1ac], ecx */
    212     PUSH32(esp, eax); /* 0x360B1C8D: push eax */
    213     ecx = edi + 0x8C; /* 0x360B1C8E: lea ecx, [edi + 0x8c] */
    214     RECOMP_ICALL(MEM32(0x3616FC24)); /* 0x360B1C94: call dword ptr [0x3616fc24] */
    215     RECOMP_FLAGS_IN();
    216     ecx = MEM32(esi + 0x80); /* 0x360B1C9A: mov ecx, dword ptr [esi + 0x80] */
    217     PUSH32(esp, ecx); /* 0x360B1CA0: push ecx */
    218     ecx = edi; /* 0x360B1CA1: mov ecx, edi */
    219     RECOMP_ICALL(0x3609A1F0u); /* 0x360B1CA3: call 0x3609a1f0 */ /* not lifted */
    220     RECOMP_FLAGS_IN();
    221 L_360B1CA8:
    222     edi = POP32_VAL(esp); /* 0x360B1CA8: pop edi */
    223     esi = POP32_VAL(esp); /* 0x360B1CA9: pop esi */
    224     ebx = POP32_VAL(esp); /* 0x360B1CAA: pop ebx */
    225     esp = ebp; /* 0x360B1CAB: mov esp, ebp */
    226     ebp = POP32_VAL(esp); /* 0x360B1CAD: pop ebp */
    227     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B1CAE: ret 4 */
    228     RECOMP_REGS_OUT();
    229 }
    230 
    231 void sub_360B1CC0(void) {
    232     int _fpu_cmp = 0;
    233     uint32_t _cf = 0;
    234     int _df = 1;
    235     uint32_t _flag_k = FK_NONE;
    236     uint32_t _flag_a = 0, _flag_b = 0;
    237     uint32_t _itail_tgt = 0;
    238     RECOMP_REGS_LOCALS
    239     RECOMP_ENTER(0x360B1CC0u);
    240 
    241 L_360B1CC0:
    242     PUSH32(esp, esi); /* 0x360B1CC0: push esi */
    243     esi = ecx; /* 0x360B1CC1: mov esi, ecx */
    244     PUSH32(esp, edi); /* 0x360B1CC3: push edi */
    245     edi = esi + 0x4; /* 0x360B1CC4: lea edi, [esi + 4] */
    246     PUSH32(esp, edi); /* 0x360B1CC7: push edi */
    247     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360B1CC8: call dword ptr [0x3616ff70] */
    248     RECOMP_FLAGS_IN();
    249     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    250     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    251     esp = esp + 4; /* 0x360B1CCE: add esp, 4 */
    252     _flag_k = FK_ADD;
    253     /* test eax, eax */ /* 0x360B1CD1: test eax, eax */
    254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    255     _cf = 0;
    256     _flag_k = FK_TEST;
    257     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1CF9; /* 0x360B1CD3: je 0x360b1cf9 */
    258 L_360B1CD5:
    259     PUSH32(esp, 0); /* 0x360B1CD5: push 0 */
    260     PUSH32(esp, 0x361B7C18u); /* 0x360B1CD7: push 0x361b7c18 */
    261     PUSH32(esp, 0x361B2CC0u); /* 0x360B1CDC: push 0x361b2cc0 */
    262     PUSH32(esp, 0); /* 0x360B1CE1: push 0 */
    263     PUSH32(esp, eax); /* 0x360B1CE3: push eax */
    264     RECOMP_ICALL(0x3615FD86u); /* 0x360B1CE4: call 0x3615fd86 */ /* not lifted */
    265     RECOMP_FLAGS_IN();
    266     edx = MEM32(esi); /* 0x360B1CE9: mov edx, dword ptr [esi] */
    267     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    268     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    269     esp = esp + 0x14u; /* 0x360B1CEB: add esp, 0x14 */
    270     _flag_k = FK_ADD;
    271     PUSH32(esp, eax); /* 0x360B1CEE: push eax */
    272     ecx = esi; /* 0x360B1CEF: mov ecx, esi */
    273     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360B1CF1: call dword ptr [edx + 0x20] */
    274     RECOMP_FLAGS_IN();
    275 L_360B1CF4:
    276     edi = POP32_VAL(esp); /* 0x360B1CF4: pop edi */
    277     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    278     eax = 0; /* 0x360B1CF5: xor eax, eax */
    279     _cf = 0;
    280     _flag_k = FK_TEST;
    281     esi = POP32_VAL(esp); /* 0x360B1CF7: pop esi */
    282     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B1CF8: ret  */
    283 L_360B1CF9:
    284     /* cmp MEM32(edi), 0xC765u */ /* 0x360B1CF9: cmp dword ptr [edi], 0xc765 */
    285     _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0xC765u);
    286     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    287     _flag_k = FK_CMP;
    288     RECOMP_BACKEDGE();
    289     if (CMP_NE(_flag_a, _flag_b)) goto L_360B1CF4; /* 0x360B1CFF: jne 0x360b1cf4 */
    290 L_360B1D01:
    291     /* test esi, esi */ /* 0x360B1D01: test esi, esi */
    292     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    293     _cf = 0;
    294     _flag_k = FK_TEST;
    295     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1D0A; /* 0x360B1D03: je 0x360b1d0a */
    296 L_360B1D05:
    297     eax = esi + 0x20; /* 0x360B1D05: lea eax, [esi + 0x20] */
    298     goto L_360B1D0C; /* 0x360B1D08: jmp 0x360b1d0c */
    299 L_360B1D0A:
    300     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    301     eax = 0; /* 0x360B1D0A: xor eax, eax */
    302     _cf = 0;
    303     _flag_k = FK_TEST;
    304 L_360B1D0C:
    305     PUSH32(esp, 0); /* 0x360B1D0C: push 0 */
    306     PUSH32(esp, 0); /* 0x360B1D0E: push 0 */
    307     PUSH32(esp, eax); /* 0x360B1D10: push eax */
    308     RECOMP_ICALL(MEM32(0x3616FD20)); /* 0x360B1D11: call dword ptr [0x3616fd20] */
    309     RECOMP_FLAGS_IN();
    310     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    311     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    312     esp = esp + 0xCu; /* 0x360B1D17: add esp, 0xc */
    313     _flag_k = FK_ADD;
    314     /* test eax, eax */ /* 0x360B1D1A: test eax, eax */
    315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    316     _cf = 0;
    317     _flag_k = FK_TEST;
    318     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1D26; /* 0x360B1D1C: je 0x360b1d26 */
    319 L_360B1D1E:
    320     edi = eax + (-0x8C); /* 0x360B1D1E: lea edi, [eax - 0x8c] */
    321     goto L_360B1D28; /* 0x360B1D24: jmp 0x360b1d28 */
    322 L_360B1D26:
    323     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    324     edi = 0; /* 0x360B1D26: xor edi, edi */
    325     _cf = 0;
    326     _flag_k = FK_TEST;
    327 L_360B1D28:
    328     eax = MEM32(esi); /* 0x360B1D28: mov eax, dword ptr [esi] */
    329     PUSH32(esp, edi); /* 0x360B1D2A: push edi */
    330     ecx = esi; /* 0x360B1D2B: mov ecx, esi */
    331     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x360B1D2D: call dword ptr [eax + 0x24] */
    332     RECOMP_FLAGS_IN();
    333     /* test edi, edi */ /* 0x360B1D30: test edi, edi */
    334     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    335     _cf = 0;
    336     _flag_k = FK_TEST;
    337     RECOMP_BACKEDGE();
    338     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1CF4; /* 0x360B1D32: je 0x360b1cf4 */
    339 L_360B1D34:
    340     eax = edi + 0x8C; /* 0x360B1D34: lea eax, [edi + 0x8c] */
    341     edi = POP32_VAL(esp); /* 0x360B1D3A: pop edi */
    342     esi = POP32_VAL(esp); /* 0x360B1D3B: pop esi */
    343     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B1D3C: ret  */
    344     RECOMP_REGS_OUT();
    345 }
    346 
    347 void sub_360B1D40(void) {
    348     int _fpu_cmp = 0;
    349     uint32_t _cf = 0;
    350     int _df = 1;
    351     uint32_t _flag_k = FK_NONE;
    352     uint32_t _flag_a = 0, _flag_b = 0;
    353     uint32_t _itail_tgt = 0;
    354     RECOMP_REGS_LOCALS
    355     RECOMP_ENTER(0x360B1D40u);
    356 
    357     goto L_360B1D40;
    358 L_360B1770:
    359     PUSH32(esp, ebp); /* 0x360B1770: push ebp */
    360     ebp = esp; /* 0x360B1771: mov ebp, esp */
    361     PUSH32(esp, esi); /* 0x360B1773: push esi */
    362     esi = ecx; /* 0x360B1774: mov esi, ecx */
    363     RECOMP_ICALL(0x360B1900u); /* 0x360B1776: call 0x360b1900 */ /* not lifted */
    364     RECOMP_FLAGS_IN();
    365     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B177B: test byte ptr [ebp + 8], 1 */
    366     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    367     _cf = 0;
    368     _flag_k = FK_NARROW(FK_TEST, 24);
    369     if (TEST_Z(_flag_a, _flag_b)) goto L_360B178A; /* 0x360B177F: je 0x360b178a */
    370 L_360B1781:
    371     PUSH32(esp, esi); /* 0x360B1781: push esi */
    372     RECOMP_ICALL(0x3615FCC4u); /* 0x360B1782: call 0x3615fcc4 */ /* not lifted */
    373     RECOMP_FLAGS_IN();
    374     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    375     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    376     esp = esp + 4; /* 0x360B1787: add esp, 4 */
    377     _flag_k = FK_ADD;
    378 L_360B178A:
    379     eax = esi; /* 0x360B178A: mov eax, esi */
    380     esi = POP32_VAL(esp); /* 0x360B178C: pop esi */
    381     ebp = POP32_VAL(esp); /* 0x360B178D: pop ebp */
    382     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B178E: ret 4 */
    383 L_360B1D40:
    384     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
    385     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    386     ecx = ecx - 0x20u; /* 0x360B1D40: sub ecx, 0x20 */
    387     _flag_k = FK_CMP;
    388     RECOMP_BACKEDGE();
    389     goto L_360B1770; /* 0x360B1D43: jmp 0x360b1770 */
    390     { RECOMP_REGS_OUT(); return; } /* end of function */
    391     RECOMP_REGS_OUT();
    392 }
    393 
    394 void sub_360B1D50(void) {
    395     int _fpu_cmp = 0;
    396     uint32_t _cf = 0;
    397     int _df = 1;
    398     uint32_t _flag_k = FK_NONE;
    399     uint32_t _flag_a = 0, _flag_b = 0;
    400     uint32_t _itail_tgt = 0;
    401     RECOMP_REGS_LOCALS
    402     RECOMP_ENTER(0x360B1D50u);
    403 
    404 L_360B1D50:
    405     PUSH32(esp, esi); /* 0x360B1D50: push esi */
    406     esi = ecx; /* 0x360B1D51: mov esi, ecx */
    407     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360B1D53: call dword ptr [0x3616ffd0] */
    408     RECOMP_FLAGS_IN();
    409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    410     eax = 0; /* 0x360B1D59: xor eax, eax */
    411     _cf = 0;
    412     _flag_k = FK_TEST;
    413     MEM32(esi + 0x20) = eax; /* 0x360B1D5B: mov dword ptr [esi + 0x20], eax */
    414     MEM32(esi + 0x24) = eax; /* 0x360B1D5E: mov dword ptr [esi + 0x24], eax */
    415     MEM32(esi) = 0x36174CA0u; /* 0x360B1D61: mov dword ptr [esi], 0x36174ca0 */
    416     eax = esi; /* 0x360B1D67: mov eax, esi */
    417     esi = POP32_VAL(esp); /* 0x360B1D69: pop esi */
    418     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B1D6A: ret  */
    419     RECOMP_REGS_OUT();
    420 }
    421 
    422 void sub_360B1D70(void) {
    423     int _fpu_cmp = 0;
    424     uint32_t _cf = 0;
    425     int _df = 1;
    426     uint32_t _flag_k = FK_NONE;
    427     uint32_t _flag_a = 0, _flag_b = 0;
    428     uint32_t _itail_tgt = 0;
    429     RECOMP_REGS_LOCALS
    430     RECOMP_ENTER(0x360B1D70u);
    431 
    432 L_360B1D70:
    433     PUSH32(esp, ebp); /* 0x360B1D70: push ebp */
    434     ebp = esp; /* 0x360B1D71: mov ebp, esp */
    435     PUSH32(esp, esi); /* 0x360B1D73: push esi */
    436     esi = ecx; /* 0x360B1D74: mov esi, ecx */
    437     RECOMP_ICALL(0x360B1DA0u); /* 0x360B1D76: call 0x360b1da0 */ /* not lifted */
    438     RECOMP_FLAGS_IN();
    439     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B1D7B: test byte ptr [ebp + 8], 1 */
    440     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    441     _cf = 0;
    442     _flag_k = FK_NARROW(FK_TEST, 24);
    443     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1D8A; /* 0x360B1D7F: je 0x360b1d8a */
    444 L_360B1D81:
    445     PUSH32(esp, esi); /* 0x360B1D81: push esi */
    446     RECOMP_ICALL(0x3615FCC4u); /* 0x360B1D82: call 0x3615fcc4 */ /* not lifted */
    447     RECOMP_FLAGS_IN();
    448     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    449     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    450     esp = esp + 4; /* 0x360B1D87: add esp, 4 */
    451     _flag_k = FK_ADD;
    452 L_360B1D8A:
    453     eax = esi; /* 0x360B1D8A: mov eax, esi */
    454     esi = POP32_VAL(esp); /* 0x360B1D8C: pop esi */
    455     ebp = POP32_VAL(esp); /* 0x360B1D8D: pop ebp */
    456     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B1D8E: ret 4 */
    457     RECOMP_REGS_OUT();
    458 }
    459 
    460 void sub_360B1DA0(void) {
    461     int _fpu_cmp = 0;
    462     uint32_t _cf = 0;
    463     int _df = 1;
    464     uint32_t _flag_k = FK_NONE;
    465     uint32_t _flag_a = 0, _flag_b = 0;
    466     uint32_t _itail_tgt = 0;
    467     RECOMP_REGS_LOCALS
    468     RECOMP_ENTER(0x360B1DA0u);
    469 
    470 L_360B1DA0:
    471     MEM32(ecx) = 0x36174CA0u; /* 0x360B1DA0: mov dword ptr [ecx], 0x36174ca0 */
    472 L_360B1DA6:
    473     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
    474     { RECOMP_REGS_OUT(); return; } /* end of function */
    475   _ljump:
    476     switch (_itail_tgt) {
    477       case 0x360B1DA0u: goto L_360B1DA0;
    478       case 0x360B1DA6u: goto L_360B1DA6;
    479       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    480     }
    481     RECOMP_REGS_OUT();
    482 }
    483 
    484 void sub_360B1DB0(void) {
    485     int _fpu_cmp = 0;
    486     uint32_t _cf = 0;
    487     int _df = 1;
    488     uint32_t _flag_k = FK_NONE;
    489     uint32_t _flag_a = 0, _flag_b = 0;
    490     uint32_t _itail_tgt = 0;
    491     RECOMP_REGS_LOCALS
    492     RECOMP_ENTER(0x360B1DB0u);
    493 
    494 L_360B1DB0:
    495     PUSH32(esp, ebp); /* 0x360B1DB0: push ebp */
    496     ebp = esp; /* 0x360B1DB1: mov ebp, esp */
    497     PUSH32(esp, ebx); /* 0x360B1DB3: push ebx */
    498     ebx = MEM32(0x3616FAEC); /* 0x360B1DB4: mov ebx, dword ptr [0x3616faec] */
    499     PUSH32(esp, esi); /* 0x360B1DBA: push esi */
    500     esi = ecx; /* 0x360B1DBB: mov esi, ecx */
    501     eax = MEM32(esi + 0x28); /* 0x360B1DBD: mov eax, dword ptr [esi + 0x28] */
    502     PUSH32(esp, edi); /* 0x360B1DC0: push edi */
    503     edi = MEM32(ebp + 0x8); /* 0x360B1DC1: mov edi, dword ptr [ebp + 8] */
    504     PUSH32(esp, eax); /* 0x360B1DC4: push eax */
    505     ecx = edi; /* 0x360B1DC5: mov ecx, edi */
    506     RECOMP_ICALL(ebx); /* 0x360B1DC7: call ebx */
    507     RECOMP_FLAGS_IN();
    508     ecx = esi + 0x20; /* 0x360B1DC9: lea ecx, [esi + 0x20] */
    509     PUSH32(esp, ecx); /* 0x360B1DCC: push ecx */
    510     PUSH32(esp, edi); /* 0x360B1DCD: push edi */
    511     RECOMP_ICALL(0x3615B840u); /* 0x360B1DCE: call 0x3615b840 */ /* not lifted */
    512     RECOMP_FLAGS_IN();
    513     edx = MEM32(esi + 0x2C); /* 0x360B1DD3: mov edx, dword ptr [esi + 0x2c] */
    514     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    515     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    516     esp = esp + 8; /* 0x360B1DD6: add esp, 8 */
    517     _flag_k = FK_ADD;
    518     PUSH32(esp, edx); /* 0x360B1DD9: push edx */
    519     ecx = edi; /* 0x360B1DDA: mov ecx, edi */
    520     RECOMP_ICALL(ebx); /* 0x360B1DDC: call ebx */
    521     RECOMP_FLAGS_IN();
    522     edi = POP32_VAL(esp); /* 0x360B1DDE: pop edi */
    523     esi = POP32_VAL(esp); /* 0x360B1DDF: pop esi */
    524     ebx = POP32_VAL(esp); /* 0x360B1DE0: pop ebx */
    525     ebp = POP32_VAL(esp); /* 0x360B1DE1: pop ebp */
    526     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B1DE2: ret 4 */
    527     RECOMP_REGS_OUT();
    528 }
    529 
    530 void sub_360B1DF0(void) {
    531     int _fpu_cmp = 0;
    532     uint32_t _cf = 0;
    533     int _df = 1;
    534     uint32_t _flag_k = FK_NONE;
    535     uint32_t _flag_a = 0, _flag_b = 0;
    536     uint32_t _itail_tgt = 0;
    537     RECOMP_REGS_LOCALS
    538     RECOMP_ENTER(0x360B1DF0u);
    539 
    540 L_360B1DF0:
    541     PUSH32(esp, ebp); /* 0x360B1DF0: push ebp */
    542     ebp = esp; /* 0x360B1DF1: mov ebp, esp */
    543     PUSH32(esp, ecx); /* 0x360B1DF3: push ecx */
    544     PUSH32(esp, ebx); /* 0x360B1DF4: push ebx */
    545     PUSH32(esp, esi); /* 0x360B1DF5: push esi */
    546     esi = ecx; /* 0x360B1DF6: mov esi, ecx */
    547     eax = esi + 0x4; /* 0x360B1DF8: lea eax, [esi + 4] */
    548     PUSH32(esp, eax); /* 0x360B1DFB: push eax */
    549     RECOMP_ICALL(0x3606DA90u); /* 0x360B1DFC: call 0x3606da90 */ /* not lifted */
    550     RECOMP_FLAGS_IN();
    551     ecx = esi + 0x20; /* 0x360B1E01: lea ecx, [esi + 0x20] */
    552     PUSH32(esp, ecx); /* 0x360B1E04: push ecx */
    553     ebx = eax; /* 0x360B1E05: mov ebx, eax */
    554     RECOMP_ICALL(0x3606DA90u); /* 0x360B1E07: call 0x3606da90 */ /* not lifted */
    555     RECOMP_FLAGS_IN();
    556     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    558     esp = esp + 8; /* 0x360B1E0C: add esp, 8 */
    559     _flag_k = FK_ADD;
    560     /* test ebx, ebx */ /* 0x360B1E0F: test ebx, ebx */
    561     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    562     _cf = 0;
    563     _flag_k = FK_TEST;
    564     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1E7B; /* 0x360B1E11: je 0x360b1e7b */
    565 L_360B1E13:
    566     SET_LO8(ecx, MEM8(ebx + 0x128)); /* 0x360B1E13: mov cl, byte ptr [ebx + 0x128] */
    567     /* test LO8(ecx), LO8(ecx) */ /* 0x360B1E19: test cl, cl */
    568     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    569     _cf = 0;
    570     _flag_k = FK_NARROW(FK_TEST, 24);
    571     PUSH32(esp, 0); /* 0x360B1E1B: push 0 */
    572     PUSH32(esp, 0); /* 0x360B1E1D: push 0 */
    573     PUSH32(esp, 0); /* 0x360B1E1F: push 0 */
    574     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1E2E; /* 0x360B1E21: je 0x360b1e2e */
    575 L_360B1E23:
    576     edx = MEM32(esi + 0x28); /* 0x360B1E23: mov edx, dword ptr [esi + 0x28] */
    577     PUSH32(esp, 0); /* 0x360B1E26: push 0 */
    578     PUSH32(esp, edx); /* 0x360B1E28: push edx */
    579     PUSH32(esp, ebx); /* 0x360B1E29: push ebx */
    580     PUSH32(esp, 0x26u); /* 0x360B1E2A: push 0x26 */
    581     goto L_360B1E36; /* 0x360B1E2C: jmp 0x360b1e36 */
    582 L_360B1E2E:
    583     PUSH32(esp, eax); /* 0x360B1E2E: push eax */
    584     eax = MEM32(esi + 0x28); /* 0x360B1E2F: mov eax, dword ptr [esi + 0x28] */
    585     PUSH32(esp, eax); /* 0x360B1E32: push eax */
    586     PUSH32(esp, ebx); /* 0x360B1E33: push ebx */
    587     PUSH32(esp, 0x27u); /* 0x360B1E34: push 0x27 */
    588 L_360B1E36:
    589     RECOMP_ICALL(0x3601C590u); /* 0x360B1E36: call 0x3601c590 */ /* not lifted */
    590     RECOMP_FLAGS_IN();
    591     ecx = eax; /* 0x360B1E3B: mov ecx, eax */
    592     RECOMP_ICALL(0x3601D0B0u); /* 0x360B1E3D: call 0x3601d0b0 */ /* not lifted */
    593     RECOMP_FLAGS_IN();
    594     eax = MEM32(ebx + 0xE4); /* 0x360B1E42: mov eax, dword ptr [ebx + 0xe4] */
    595     PUSH32(esp, edi); /* 0x360B1E48: push edi */
    596     edi = ebx + 0xE4; /* 0x360B1E49: lea edi, [ebx + 0xe4] */
    597     PUSH32(esp, 2); /* 0x360B1E4F: push 2 */
    598     PUSH32(esp, 0x1Bu); /* 0x360B1E51: push 0x1b */
    599     ecx = edi; /* 0x360B1E53: mov ecx, edi */
    600     MEM32(ebp + (-0x4)) = eax; /* 0x360B1E55: mov dword ptr [ebp - 4], eax */
    601     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B1E58: call dword ptr [eax + 4] */
    602     RECOMP_FLAGS_IN();
    603     ecx = MEM32(esi + 0x28); /* 0x360B1E5B: mov ecx, dword ptr [esi + 0x28] */
    604     edx = MEM32(ebp + (-0x4)); /* 0x360B1E5E: mov edx, dword ptr [ebp - 4] */
    605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    607     eax = eax - ecx; /* 0x360B1E61: sub eax, ecx */
    608     _flag_k = FK_CMP;
    609     PUSH32(esp, eax); /* 0x360B1E63: push eax */
    610     PUSH32(esp, 0x1Bu); /* 0x360B1E64: push 0x1b */
    611     ecx = edi; /* 0x360B1E66: mov ecx, edi */
    612     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B1E68: call dword ptr [edx + 8] */
    613     RECOMP_FLAGS_IN();
    614     esi = MEM32(esi + 0x2C); /* 0x360B1E6B: mov esi, dword ptr [esi + 0x2c] */
    615     /* test esi, esi */ /* 0x360B1E6E: test esi, esi */
    616     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    617     _cf = 0;
    618     _flag_k = FK_TEST;
    619     edi = POP32_VAL(esp); /* 0x360B1E70: pop edi */
    620     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1E7B; /* 0x360B1E71: je 0x360b1e7b */
    621 L_360B1E73:
    622     PUSH32(esp, esi); /* 0x360B1E73: push esi */
    623     ecx = ebx; /* 0x360B1E74: mov ecx, ebx */
    624     RECOMP_ICALL(0x36072340u); /* 0x360B1E76: call 0x36072340 */ /* not lifted */
    625     RECOMP_FLAGS_IN();
    626 L_360B1E7B:
    627     esi = POP32_VAL(esp); /* 0x360B1E7B: pop esi */
    628     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    629     eax = 0; /* 0x360B1E7C: xor eax, eax */
    630     _cf = 0;
    631     _flag_k = FK_TEST;
    632     ebx = POP32_VAL(esp); /* 0x360B1E7E: pop ebx */
    633     esp = ebp; /* 0x360B1E7F: mov esp, ebp */
    634     ebp = POP32_VAL(esp); /* 0x360B1E81: pop ebp */
    635     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B1E82: ret  */
    636     RECOMP_REGS_OUT();
    637 }
    638 
    639 void sub_360B1E90(void) {
    640     int _fpu_cmp = 0;
    641     uint32_t _cf = 0;
    642     int _df = 1;
    643     uint32_t _flag_k = FK_NONE;
    644     uint32_t _flag_a = 0, _flag_b = 0;
    645     uint32_t _itail_tgt = 0;
    646     RECOMP_REGS_LOCALS
    647     RECOMP_ENTER(0x360B1E90u);
    648 
    649 L_360B1E90:
    650     PUSH32(esp, esi); /* 0x360B1E90: push esi */
    651     esi = ecx; /* 0x360B1E91: mov esi, ecx */
    652     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360B1E93: call dword ptr [0x3616ffd0] */
    653     RECOMP_FLAGS_IN();
    654     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    655     eax = 0; /* 0x360B1E99: xor eax, eax */
    656     _cf = 0;
    657     _flag_k = FK_TEST;
    658     MEM32(esi + 0x20) = eax; /* 0x360B1E9B: mov dword ptr [esi + 0x20], eax */
    659     MEM32(esi + 0x24) = eax; /* 0x360B1E9E: mov dword ptr [esi + 0x24], eax */
    660     MEM32(esi) = 0x36174CC4u; /* 0x360B1EA1: mov dword ptr [esi], 0x36174cc4 */
    661     eax = esi; /* 0x360B1EA7: mov eax, esi */
    662     esi = POP32_VAL(esp); /* 0x360B1EA9: pop esi */
    663     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B1EAA: ret  */
    664     RECOMP_REGS_OUT();
    665 }
    666 
    667 void sub_360B1EB0(void) {
    668     int _fpu_cmp = 0;
    669     uint32_t _cf = 0;
    670     int _df = 1;
    671     uint32_t _flag_k = FK_NONE;
    672     uint32_t _flag_a = 0, _flag_b = 0;
    673     uint32_t _itail_tgt = 0;
    674     RECOMP_REGS_LOCALS
    675     RECOMP_ENTER(0x360B1EB0u);
    676 
    677 L_360B1EB0:
    678     PUSH32(esp, ebp); /* 0x360B1EB0: push ebp */
    679     ebp = esp; /* 0x360B1EB1: mov ebp, esp */
    680     PUSH32(esp, esi); /* 0x360B1EB3: push esi */
    681     esi = ecx; /* 0x360B1EB4: mov esi, ecx */
    682     RECOMP_ICALL(0x360B1EE0u); /* 0x360B1EB6: call 0x360b1ee0 */ /* not lifted */
    683     RECOMP_FLAGS_IN();
    684     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B1EBB: test byte ptr [ebp + 8], 1 */
    685     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    686     _cf = 0;
    687     _flag_k = FK_NARROW(FK_TEST, 24);
    688     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1ECA; /* 0x360B1EBF: je 0x360b1eca */
    689 L_360B1EC1:
    690     PUSH32(esp, esi); /* 0x360B1EC1: push esi */
    691     RECOMP_ICALL(0x3615FCC4u); /* 0x360B1EC2: call 0x3615fcc4 */ /* not lifted */
    692     RECOMP_FLAGS_IN();
    693     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    694     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    695     esp = esp + 4; /* 0x360B1EC7: add esp, 4 */
    696     _flag_k = FK_ADD;
    697 L_360B1ECA:
    698     eax = esi; /* 0x360B1ECA: mov eax, esi */
    699     esi = POP32_VAL(esp); /* 0x360B1ECC: pop esi */
    700     ebp = POP32_VAL(esp); /* 0x360B1ECD: pop ebp */
    701     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B1ECE: ret 4 */
    702     RECOMP_REGS_OUT();
    703 }
    704 
    705 void sub_360B1EE0(void) {
    706     int _fpu_cmp = 0;
    707     uint32_t _cf = 0;
    708     int _df = 1;
    709     uint32_t _flag_k = FK_NONE;
    710     uint32_t _flag_a = 0, _flag_b = 0;
    711     uint32_t _itail_tgt = 0;
    712     RECOMP_REGS_LOCALS
    713     RECOMP_ENTER(0x360B1EE0u);
    714 
    715 L_360B1EE0:
    716     MEM32(ecx) = 0x36174CC4u; /* 0x360B1EE0: mov dword ptr [ecx], 0x36174cc4 */
    717 L_360B1EE6:
    718     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
    719     { RECOMP_REGS_OUT(); return; } /* end of function */
    720   _ljump:
    721     switch (_itail_tgt) {
    722       case 0x360B1EE0u: goto L_360B1EE0;
    723       case 0x360B1EE6u: goto L_360B1EE6;
    724       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    725     }
    726     RECOMP_REGS_OUT();
    727 }
    728 
    729 void sub_360B1EF0(void) {
    730     int _fpu_cmp = 0;
    731     uint32_t _cf = 0;
    732     int _df = 1;
    733     uint32_t _flag_k = FK_NONE;
    734     uint32_t _flag_a = 0, _flag_b = 0;
    735     uint32_t _itail_tgt = 0;
    736     RECOMP_REGS_LOCALS
    737     RECOMP_ENTER(0x360B1EF0u);
    738 
    739 L_360B1EF0:
    740     PUSH32(esp, ebp); /* 0x360B1EF0: push ebp */
    741     ebp = esp; /* 0x360B1EF1: mov ebp, esp */
    742     PUSH32(esp, ebx); /* 0x360B1EF3: push ebx */
    743     ebx = MEM32(0x3616FA8C); /* 0x360B1EF4: mov ebx, dword ptr [0x3616fa8c] */
    744     PUSH32(esp, esi); /* 0x360B1EFA: push esi */
    745     esi = ecx; /* 0x360B1EFB: mov esi, ecx */
    746     PUSH32(esp, edi); /* 0x360B1EFD: push edi */
    747     edi = MEM32(ebp + 0x8); /* 0x360B1EFE: mov edi, dword ptr [ebp + 8] */
    748     eax = esi + 0x28; /* 0x360B1F01: lea eax, [esi + 0x28] */
    749     PUSH32(esp, eax); /* 0x360B1F04: push eax */
    750     ecx = edi; /* 0x360B1F05: mov ecx, edi */
    751     RECOMP_ICALL(ebx); /* 0x360B1F07: call ebx */
    752     RECOMP_FLAGS_IN();
    753     ecx = esi + 0x20; /* 0x360B1F09: lea ecx, [esi + 0x20] */
    754     PUSH32(esp, ecx); /* 0x360B1F0C: push ecx */
    755     PUSH32(esp, edi); /* 0x360B1F0D: push edi */
    756     RECOMP_ICALL(0x3615B870u); /* 0x360B1F0E: call 0x3615b870 */ /* not lifted */
    757     RECOMP_FLAGS_IN();
    758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    760     esp = esp + 8; /* 0x360B1F13: add esp, 8 */
    761     _flag_k = FK_ADD;
    762     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu);
    763     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    764     esi = esi + 0x2Cu; /* 0x360B1F16: add esi, 0x2c */
    765     _flag_k = FK_ADD;
    766     PUSH32(esp, esi); /* 0x360B1F19: push esi */
    767     ecx = edi; /* 0x360B1F1A: mov ecx, edi */
    768     RECOMP_ICALL(ebx); /* 0x360B1F1C: call ebx */
    769     RECOMP_FLAGS_IN();
    770     ecx = edi; /* 0x360B1F1E: mov ecx, edi */
    771     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B1F20: call dword ptr [0x3616fadc] */
    772     RECOMP_FLAGS_IN();
    773     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    774     _cf = (eax) != 0;
    775     eax = (uint32_t)(-(int32_t)eax); /* 0x360B1F26: neg eax */
    776     _flag_k = FK_CMP;
    777     edi = POP32_VAL(esp); /* 0x360B1F28: pop edi */
    778     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B1F29: sbb eax, eax */
    779       eax = _sc ? 0xFFFFFFFFu : 0;
    780       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    781       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    782     esi = POP32_VAL(esp); /* 0x360B1F2B: pop esi */
    783     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    784     eax = eax + 1; /* 0x360B1F2C: inc eax */
    785     _flag_k = FK_INC;
    786     ebx = POP32_VAL(esp); /* 0x360B1F2D: pop ebx */
    787     ebp = POP32_VAL(esp); /* 0x360B1F2E: pop ebp */
    788     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B1F2F: ret 4 */
    789     RECOMP_REGS_OUT();
    790 }
    791 
    792 void sub_360B1F40(void) {
    793     int _fpu_cmp = 0;
    794     uint32_t _cf = 0;
    795     int _df = 1;
    796     uint32_t _flag_k = FK_NONE;
    797     uint32_t _flag_a = 0, _flag_b = 0;
    798     uint32_t _itail_tgt = 0;
    799     RECOMP_REGS_LOCALS
    800     RECOMP_ENTER(0x360B1F40u);
    801 
    802 L_360B1F40:
    803     PUSH32(esp, ebp); /* 0x360B1F40: push ebp */
    804     ebp = esp; /* 0x360B1F41: mov ebp, esp */
    805     PUSH32(esp, ecx); /* 0x360B1F43: push ecx */
    806     PUSH32(esp, ebx); /* 0x360B1F44: push ebx */
    807     PUSH32(esp, esi); /* 0x360B1F45: push esi */
    808     esi = ecx; /* 0x360B1F46: mov esi, ecx */
    809     eax = esi + 0x4; /* 0x360B1F48: lea eax, [esi + 4] */
    810     PUSH32(esp, eax); /* 0x360B1F4B: push eax */
    811     RECOMP_ICALL(0x3606DA90u); /* 0x360B1F4C: call 0x3606da90 */ /* not lifted */
    812     RECOMP_FLAGS_IN();
    813     ecx = esi + 0x20; /* 0x360B1F51: lea ecx, [esi + 0x20] */
    814     PUSH32(esp, ecx); /* 0x360B1F54: push ecx */
    815     ebx = eax; /* 0x360B1F55: mov ebx, eax */
    816     RECOMP_ICALL(0x3606DA90u); /* 0x360B1F57: call 0x3606da90 */ /* not lifted */
    817     RECOMP_FLAGS_IN();
    818     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    819     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    820     esp = esp + 8; /* 0x360B1F5C: add esp, 8 */
    821     _flag_k = FK_ADD;
    822     /* test ebx, ebx */ /* 0x360B1F5F: test ebx, ebx */
    823     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    824     _cf = 0;
    825     _flag_k = FK_TEST;
    826     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1FCB; /* 0x360B1F61: je 0x360b1fcb */
    827 L_360B1F63:
    828     SET_LO8(ecx, MEM8(ebx + 0x128)); /* 0x360B1F63: mov cl, byte ptr [ebx + 0x128] */
    829     /* test LO8(ecx), LO8(ecx) */ /* 0x360B1F69: test cl, cl */
    830     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    831     _cf = 0;
    832     _flag_k = FK_NARROW(FK_TEST, 24);
    833     PUSH32(esp, 0); /* 0x360B1F6B: push 0 */
    834     PUSH32(esp, 0); /* 0x360B1F6D: push 0 */
    835     PUSH32(esp, 0); /* 0x360B1F6F: push 0 */
    836     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1F7E; /* 0x360B1F71: je 0x360b1f7e */
    837 L_360B1F73:
    838     edx = MEM32(esi + 0x28); /* 0x360B1F73: mov edx, dword ptr [esi + 0x28] */
    839     PUSH32(esp, 0); /* 0x360B1F76: push 0 */
    840     PUSH32(esp, edx); /* 0x360B1F78: push edx */
    841     PUSH32(esp, ebx); /* 0x360B1F79: push ebx */
    842     PUSH32(esp, 0x24u); /* 0x360B1F7A: push 0x24 */
    843     goto L_360B1F86; /* 0x360B1F7C: jmp 0x360b1f86 */
    844 L_360B1F7E:
    845     PUSH32(esp, eax); /* 0x360B1F7E: push eax */
    846     eax = MEM32(esi + 0x28); /* 0x360B1F7F: mov eax, dword ptr [esi + 0x28] */
    847     PUSH32(esp, eax); /* 0x360B1F82: push eax */
    848     PUSH32(esp, ebx); /* 0x360B1F83: push ebx */
    849     PUSH32(esp, 0x25u); /* 0x360B1F84: push 0x25 */
    850 L_360B1F86:
    851     RECOMP_ICALL(0x3601C590u); /* 0x360B1F86: call 0x3601c590 */ /* not lifted */
    852     RECOMP_FLAGS_IN();
    853     ecx = eax; /* 0x360B1F8B: mov ecx, eax */
    854     RECOMP_ICALL(0x3601D0B0u); /* 0x360B1F8D: call 0x3601d0b0 */ /* not lifted */
    855     RECOMP_FLAGS_IN();
    856     eax = MEM32(ebx + 0xE4); /* 0x360B1F92: mov eax, dword ptr [ebx + 0xe4] */
    857     PUSH32(esp, edi); /* 0x360B1F98: push edi */
    858     edi = ebx + 0xE4; /* 0x360B1F99: lea edi, [ebx + 0xe4] */
    859     PUSH32(esp, 2); /* 0x360B1F9F: push 2 */
    860     PUSH32(esp, 0x1Bu); /* 0x360B1FA1: push 0x1b */
    861     ecx = edi; /* 0x360B1FA3: mov ecx, edi */
    862     MEM32(ebp + (-0x4)) = eax; /* 0x360B1FA5: mov dword ptr [ebp - 4], eax */
    863     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B1FA8: call dword ptr [eax + 4] */
    864     RECOMP_FLAGS_IN();
    865     ecx = MEM32(esi + 0x28); /* 0x360B1FAB: mov ecx, dword ptr [esi + 0x28] */
    866     edx = MEM32(ebp + (-0x4)); /* 0x360B1FAE: mov edx, dword ptr [ebp - 4] */
    867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    869     eax = eax - ecx; /* 0x360B1FB1: sub eax, ecx */
    870     _flag_k = FK_CMP;
    871     PUSH32(esp, eax); /* 0x360B1FB3: push eax */
    872     PUSH32(esp, 0x1Bu); /* 0x360B1FB4: push 0x1b */
    873     ecx = edi; /* 0x360B1FB6: mov ecx, edi */
    874     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B1FB8: call dword ptr [edx + 8] */
    875     RECOMP_FLAGS_IN();
    876     esi = MEM32(esi + 0x2C); /* 0x360B1FBB: mov esi, dword ptr [esi + 0x2c] */
    877     /* test esi, esi */ /* 0x360B1FBE: test esi, esi */
    878     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    879     _cf = 0;
    880     _flag_k = FK_TEST;
    881     edi = POP32_VAL(esp); /* 0x360B1FC0: pop edi */
    882     if (TEST_Z(_flag_a, _flag_b)) goto L_360B1FCB; /* 0x360B1FC1: je 0x360b1fcb */
    883 L_360B1FC3:
    884     PUSH32(esp, esi); /* 0x360B1FC3: push esi */
    885     ecx = ebx; /* 0x360B1FC4: mov ecx, ebx */
    886     RECOMP_ICALL(0x36072340u); /* 0x360B1FC6: call 0x36072340 */ /* not lifted */
    887     RECOMP_FLAGS_IN();
    888 L_360B1FCB:
    889     esi = POP32_VAL(esp); /* 0x360B1FCB: pop esi */
    890     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    891     eax = 0; /* 0x360B1FCC: xor eax, eax */
    892     _cf = 0;
    893     _flag_k = FK_TEST;
    894     ebx = POP32_VAL(esp); /* 0x360B1FCE: pop ebx */
    895     esp = ebp; /* 0x360B1FCF: mov esp, ebp */
    896     ebp = POP32_VAL(esp); /* 0x360B1FD1: pop ebp */
    897     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B1FD2: ret  */
    898     RECOMP_REGS_OUT();
    899 }
    900 
    901 void sub_360B1FE0(void) {
    902     int _fpu_cmp = 0;
    903     uint32_t _cf = 0;
    904     int _df = 1;
    905     uint32_t _flag_k = FK_NONE;
    906     uint32_t _flag_a = 0, _flag_b = 0;
    907     uint32_t _itail_tgt = 0;
    908     RECOMP_REGS_LOCALS
    909     RECOMP_ENTER(0x360B1FE0u);
    910 
    911 L_360B1FE0:
    912     PUSH32(esp, ebp); /* 0x360B1FE0: push ebp */
    913     ebp = esp; /* 0x360B1FE1: mov ebp, esp */
    914     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B1FE3: push -1 */
    915     PUSH32(esp, 0x36167239u); /* 0x360B1FE5: push 0x36167239 */
    916     eax = MEM32(FS_BASE + (0)); /* 0x360B1FEA: mov eax, dword ptr fs:[0] */
    917     PUSH32(esp, eax); /* 0x360B1FF0: push eax */
    918     MEM32(FS_BASE + (0)) = esp; /* 0x360B1FF1: mov dword ptr fs:[0], esp */
    919     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    920     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    921     esp = esp - 8; /* 0x360B1FF8: sub esp, 8 */
    922     _flag_k = FK_CMP;
    923     PUSH32(esp, ebx); /* 0x360B1FFB: push ebx */
    924     PUSH32(esp, esi); /* 0x360B1FFC: push esi */
    925     esi = ecx; /* 0x360B1FFD: mov esi, ecx */
    926     MEM32(ebp + (-0x14)) = esi; /* 0x360B1FFF: mov dword ptr [ebp - 0x14], esi */
    927     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360B2002: call dword ptr [0x3616ffd0] */
    928     RECOMP_FLAGS_IN();
    929     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    930     ebx = 0; /* 0x360B2008: xor ebx, ebx */
    931     _cf = 0;
    932     _flag_k = FK_TEST;
    933     PUSH32(esp, 0x10u); /* 0x360B200A: push 0x10 */
    934     MEM32(ebp + (-0x4)) = ebx; /* 0x360B200C: mov dword ptr [ebp - 4], ebx */
    935     MEM32(esi) = 0x36174CE8u; /* 0x360B200F: mov dword ptr [esi], 0x36174ce8 */
    936     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x360B2015: mov byte ptr [esi + 0xc], bl */
    937     RECOMP_ICALL(0x3615FD6Au); /* 0x360B2018: call 0x3615fd6a */ /* not lifted */
    938     RECOMP_FLAGS_IN();
    939     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    940     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    941     esp = esp + 4; /* 0x360B201D: add esp, 4 */
    942     _flag_k = FK_ADD;
    943     /* cmp eax, ebx */ /* 0x360B2020: cmp eax, ebx */
    944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    946     _flag_k = FK_CMP;
    947     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B2047; /* 0x360B2022: je 0x360b2047 */
    948 L_360B2024:
    949     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x360B2024: mov cl, byte ptr [ebp - 0xd] */
    950     MEM32(eax + 0x4) = ebx; /* 0x360B2027: mov dword ptr [eax + 4], ebx */
    951     MEM32(eax + 0x8) = ebx; /* 0x360B202A: mov dword ptr [eax + 8], ebx */
    952     MEM32(eax + 0xC) = ebx; /* 0x360B202D: mov dword ptr [eax + 0xc], ebx */
    953     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x360B2030: mov byte ptr [eax], cl */
    954     MEM32(esi + 0x20) = eax; /* 0x360B2032: mov dword ptr [esi + 0x20], eax */
    955     eax = esi; /* 0x360B2035: mov eax, esi */
    956     esi = POP32_VAL(esp); /* 0x360B2037: pop esi */
    957     ebx = POP32_VAL(esp); /* 0x360B2038: pop ebx */
    958     ecx = MEM32(ebp + (-0xC)); /* 0x360B2039: mov ecx, dword ptr [ebp - 0xc] */
    959     MEM32(FS_BASE + (0)) = ecx; /* 0x360B203C: mov dword ptr fs:[0], ecx */
    960     esp = ebp; /* 0x360B2043: mov esp, ebp */
    961     ebp = POP32_VAL(esp); /* 0x360B2045: pop ebp */
    962     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2046: ret  */
    963 L_360B2047:
    964     ecx = MEM32(ebp + (-0xC)); /* 0x360B2047: mov ecx, dword ptr [ebp - 0xc] */
    965     MEM32(esi + 0x20) = ebx; /* 0x360B204A: mov dword ptr [esi + 0x20], ebx */
    966     eax = esi; /* 0x360B204D: mov eax, esi */
    967     esi = POP32_VAL(esp); /* 0x360B204F: pop esi */
    968     ebx = POP32_VAL(esp); /* 0x360B2050: pop ebx */
    969     MEM32(FS_BASE + (0)) = ecx; /* 0x360B2051: mov dword ptr fs:[0], ecx */
    970     esp = ebp; /* 0x360B2058: mov esp, ebp */
    971     ebp = POP32_VAL(esp); /* 0x360B205A: pop ebp */
    972     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B205B: ret  */
    973     RECOMP_REGS_OUT();
    974 }
    975 
    976 void sub_360B2060(void) {
    977     int _fpu_cmp = 0;
    978     uint32_t _cf = 0;
    979     int _df = 1;
    980     uint32_t _flag_k = FK_NONE;
    981     uint32_t _flag_a = 0, _flag_b = 0;
    982     uint32_t _itail_tgt = 0;
    983     RECOMP_REGS_LOCALS
    984     RECOMP_ENTER(0x360B2060u);
    985 
    986 L_360B2060:
    987     PUSH32(esp, ebp); /* 0x360B2060: push ebp */
    988     ebp = esp; /* 0x360B2061: mov ebp, esp */
    989     PUSH32(esp, esi); /* 0x360B2063: push esi */
    990     esi = ecx; /* 0x360B2064: mov esi, ecx */
    991     RECOMP_ICALL(0x360B2090u); /* 0x360B2066: call 0x360b2090 */ /* not lifted */
    992     RECOMP_FLAGS_IN();
    993     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B206B: test byte ptr [ebp + 8], 1 */
    994     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    995     _cf = 0;
    996     _flag_k = FK_NARROW(FK_TEST, 24);
    997     if (TEST_Z(_flag_a, _flag_b)) goto L_360B207A; /* 0x360B206F: je 0x360b207a */
    998 L_360B2071:
    999     PUSH32(esp, esi); /* 0x360B2071: push esi */
   1000     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2072: call 0x3615fcc4 */ /* not lifted */
   1001     RECOMP_FLAGS_IN();
   1002     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1003     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1004     esp = esp + 4; /* 0x360B2077: add esp, 4 */
   1005     _flag_k = FK_ADD;
   1006 L_360B207A:
   1007     eax = esi; /* 0x360B207A: mov eax, esi */
   1008     esi = POP32_VAL(esp); /* 0x360B207C: pop esi */
   1009     ebp = POP32_VAL(esp); /* 0x360B207D: pop ebp */
   1010     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B207E: ret 4 */
   1011     RECOMP_REGS_OUT();
   1012 }
   1013 
   1014 void sub_360B2090(void) {
   1015     int _fpu_cmp = 0;
   1016     uint32_t _cf = 0;
   1017     int _df = 1;
   1018     uint32_t _flag_k = FK_NONE;
   1019     uint32_t _flag_a = 0, _flag_b = 0;
   1020     uint32_t _itail_tgt = 0;
   1021     RECOMP_REGS_LOCALS
   1022     RECOMP_ENTER(0x360B2090u);
   1023 
   1024 L_360B2090:
   1025     PUSH32(esp, ebp); /* 0x360B2090: push ebp */
   1026     ebp = esp; /* 0x360B2091: mov ebp, esp */
   1027     PUSH32(esp, ecx); /* 0x360B2093: push ecx */
   1028     PUSH32(esp, ebx); /* 0x360B2094: push ebx */
   1029     PUSH32(esp, esi); /* 0x360B2095: push esi */
   1030     PUSH32(esp, edi); /* 0x360B2096: push edi */
   1031     edi = ecx; /* 0x360B2097: mov edi, ecx */
   1032     esi = MEM32(edi + 0x20); /* 0x360B2099: mov esi, dword ptr [edi + 0x20] */
   1033     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1034     ebx = 0; /* 0x360B209C: xor ebx, ebx */
   1035     _cf = 0;
   1036     _flag_k = FK_TEST;
   1037     /* cmp esi, ebx */ /* 0x360B209E: cmp esi, ebx */
   1038     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1040     _flag_k = FK_CMP;
   1041     MEM32(edi) = 0x36174CE8u; /* 0x360B20A0: mov dword ptr [edi], 0x36174ce8 */
   1042     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B20C6; /* 0x360B20A6: je 0x360b20c6 */
   1043 L_360B20A8:
   1044     eax = MEM32(esi + 0x4); /* 0x360B20A8: mov eax, dword ptr [esi + 4] */
   1045     PUSH32(esp, eax); /* 0x360B20AB: push eax */
   1046     MEM32(ebp + (-0x4)) = eax; /* 0x360B20AC: mov dword ptr [ebp - 4], eax */
   1047     RECOMP_ICALL(0x3615FCC4u); /* 0x360B20AF: call 0x3615fcc4 */ /* not lifted */
   1048     RECOMP_FLAGS_IN();
   1049     PUSH32(esp, esi); /* 0x360B20B4: push esi */
   1050     MEM32(esi + 0x4) = ebx; /* 0x360B20B5: mov dword ptr [esi + 4], ebx */
   1051     MEM32(esi + 0x8) = ebx; /* 0x360B20B8: mov dword ptr [esi + 8], ebx */
   1052     MEM32(esi + 0xC) = ebx; /* 0x360B20BB: mov dword ptr [esi + 0xc], ebx */
   1053     RECOMP_ICALL(0x3615FCC4u); /* 0x360B20BE: call 0x3615fcc4 */ /* not lifted */
   1054     RECOMP_FLAGS_IN();
   1055     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1057     esp = esp + 8; /* 0x360B20C3: add esp, 8 */
   1058     _flag_k = FK_ADD;
   1059 L_360B20C6:
   1060     ecx = edi; /* 0x360B20C6: mov ecx, edi */
   1061     MEM32(edi + 0x20) = ebx; /* 0x360B20C8: mov dword ptr [edi + 0x20], ebx */
   1062     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x360B20CB: call dword ptr [0x3616ffd4] */
   1063     RECOMP_FLAGS_IN();
   1064     edi = POP32_VAL(esp); /* 0x360B20D1: pop edi */
   1065     esi = POP32_VAL(esp); /* 0x360B20D2: pop esi */
   1066     ebx = POP32_VAL(esp); /* 0x360B20D3: pop ebx */
   1067     esp = ebp; /* 0x360B20D4: mov esp, ebp */
   1068     ebp = POP32_VAL(esp); /* 0x360B20D6: pop ebp */
   1069     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B20D7: ret  */
   1070     RECOMP_REGS_OUT();
   1071 }
   1072 
   1073 void sub_360B20E0(void) {
   1074     int _fpu_cmp = 0;
   1075     uint32_t _cf = 0;
   1076     int _df = 1;
   1077     uint32_t _flag_k = FK_NONE;
   1078     uint32_t _flag_a = 0, _flag_b = 0;
   1079     uint32_t _itail_tgt = 0;
   1080     RECOMP_REGS_LOCALS
   1081     RECOMP_ENTER(0x360B20E0u);
   1082 
   1083 L_360B20E0:
   1084     PUSH32(esp, ebp); /* 0x360B20E0: push ebp */
   1085     ebp = esp; /* 0x360B20E1: mov ebp, esp */
   1086     eax = MEM32(ecx + 0x20); /* 0x360B20E3: mov eax, dword ptr [ecx + 0x20] */
   1087     PUSH32(esp, esi); /* 0x360B20E6: push esi */
   1088     esi = MEM32(ebp + 0x8); /* 0x360B20E7: mov esi, dword ptr [ebp + 8] */
   1089     PUSH32(esp, eax); /* 0x360B20EA: push eax */
   1090     PUSH32(esp, esi); /* 0x360B20EB: push esi */
   1091     RECOMP_ICALL(0x360AA350u); /* 0x360B20EC: call 0x360aa350 */ /* not lifted */
   1092     RECOMP_FLAGS_IN();
   1093     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1094     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1095     esp = esp + 8; /* 0x360B20F1: add esp, 8 */
   1096     _flag_k = FK_ADD;
   1097     ecx = esi; /* 0x360B20F4: mov ecx, esi */
   1098     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B20F6: call dword ptr [0x3616fadc] */
   1099     RECOMP_FLAGS_IN();
   1100     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1101     _cf = (eax) != 0;
   1102     eax = (uint32_t)(-(int32_t)eax); /* 0x360B20FC: neg eax */
   1103     _flag_k = FK_CMP;
   1104     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B20FE: sbb eax, eax */
   1105       eax = _sc ? 0xFFFFFFFFu : 0;
   1106       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1107       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1108     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1109     eax = eax + 1; /* 0x360B2100: inc eax */
   1110     _flag_k = FK_INC;
   1111     esi = POP32_VAL(esp); /* 0x360B2101: pop esi */
   1112     ebp = POP32_VAL(esp); /* 0x360B2102: pop ebp */
   1113     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2103: ret 4 */
   1114     RECOMP_REGS_OUT();
   1115 }
   1116 
   1117 void sub_360B2110(void) {
   1118     int _fpu_cmp = 0;
   1119     uint32_t _cf = 0;
   1120     int _df = 1;
   1121     uint32_t _flag_k = FK_NONE;
   1122     uint32_t _flag_a = 0, _flag_b = 0;
   1123     uint32_t _itail_tgt = 0;
   1124     RECOMP_REGS_LOCALS
   1125     RECOMP_ENTER(0x360B2110u);
   1126 
   1127 L_360B2110:
   1128     PUSH32(esp, ebp); /* 0x360B2110: push ebp */
   1129     ebp = esp; /* 0x360B2111: mov ebp, esp */
   1130     eax = MEM32(ecx + 0x20); /* 0x360B2113: mov eax, dword ptr [ecx + 0x20] */
   1131     ecx = MEM32(ebp + 0x8); /* 0x360B2116: mov ecx, dword ptr [ebp + 8] */
   1132     PUSH32(esp, eax); /* 0x360B2119: push eax */
   1133     PUSH32(esp, ecx); /* 0x360B211A: push ecx */
   1134     RECOMP_ICALL(0x360AA2D0u); /* 0x360B211B: call 0x360aa2d0 */ /* not lifted */
   1135     RECOMP_FLAGS_IN();
   1136     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1137     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1138     esp = esp + 8; /* 0x360B2120: add esp, 8 */
   1139     _flag_k = FK_ADD;
   1140     ebp = POP32_VAL(esp); /* 0x360B2123: pop ebp */
   1141     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2124: ret 4 */
   1142     RECOMP_REGS_OUT();
   1143 }
   1144 
   1145 void sub_360B2130(void) {
   1146     int _fpu_cmp = 0;
   1147     uint32_t _cf = 0;
   1148     int _df = 1;
   1149     uint32_t _flag_k = FK_NONE;
   1150     uint32_t _flag_a = 0, _flag_b = 0;
   1151     uint32_t _itail_tgt = 0;
   1152     RECOMP_REGS_LOCALS
   1153     RECOMP_ENTER(0x360B2130u);
   1154 
   1155 L_360B2130:
   1156     PUSH32(esp, esi); /* 0x360B2130: push esi */
   1157     PUSH32(esp, 0); /* 0x360B2131: push 0 */
   1158     PUSH32(esp, 0x361B5C98u); /* 0x360B2133: push 0x361b5c98 */
   1159     esi = ecx; /* 0x360B2138: mov esi, ecx */
   1160     PUSH32(esp, 0x361B2CC0u); /* 0x360B213A: push 0x361b2cc0 */
   1161     eax = esi + 0x4; /* 0x360B213F: lea eax, [esi + 4] */
   1162     PUSH32(esp, 0); /* 0x360B2142: push 0 */
   1163     PUSH32(esp, eax); /* 0x360B2144: push eax */
   1164     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360B2145: call dword ptr [0x3616ff70] */
   1165     RECOMP_FLAGS_IN();
   1166     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1167     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1168     esp = esp + 4; /* 0x360B214B: add esp, 4 */
   1169     _flag_k = FK_ADD;
   1170     PUSH32(esp, eax); /* 0x360B214E: push eax */
   1171     RECOMP_ICALL(0x3615FD86u); /* 0x360B214F: call 0x3615fd86 */ /* not lifted */
   1172     RECOMP_FLAGS_IN();
   1173     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1174     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1175     esp = esp + 0x14u; /* 0x360B2154: add esp, 0x14 */
   1176     _flag_k = FK_ADD;
   1177     /* test eax, eax */ /* 0x360B2157: test eax, eax */
   1178     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1179     _cf = 0;
   1180     _flag_k = FK_TEST;
   1181     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2166; /* 0x360B2159: je 0x360b2166 */
   1182 L_360B215B:
   1183     ecx = MEM32(esi + 0x20); /* 0x360B215B: mov ecx, dword ptr [esi + 0x20] */
   1184     PUSH32(esp, ecx); /* 0x360B215E: push ecx */
   1185     ecx = eax; /* 0x360B215F: mov ecx, eax */
   1186     RECOMP_ICALL(0x360A98B0u); /* 0x360B2161: call 0x360a98b0 */ /* not lifted */
   1187     RECOMP_FLAGS_IN();
   1188 L_360B2166:
   1189     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1190     eax = 0; /* 0x360B2166: xor eax, eax */
   1191     _cf = 0;
   1192     _flag_k = FK_TEST;
   1193     esi = POP32_VAL(esp); /* 0x360B2168: pop esi */
   1194     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2169: ret  */
   1195     RECOMP_REGS_OUT();
   1196 }
   1197 
   1198 void sub_360B2170(void) {
   1199     int _fpu_cmp = 0;
   1200     uint32_t _cf = 0;
   1201     int _df = 1;
   1202     uint32_t _flag_k = FK_NONE;
   1203     uint32_t _flag_a = 0, _flag_b = 0;
   1204     uint32_t _itail_tgt = 0;
   1205     RECOMP_REGS_LOCALS
   1206     RECOMP_ENTER(0x360B2170u);
   1207 
   1208 L_360B2170:
   1209     PUSH32(esp, ebp); /* 0x360B2170: push ebp */
   1210     ebp = esp; /* 0x360B2171: mov ebp, esp */
   1211     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B2173: push -1 */
   1212     PUSH32(esp, 0x3616727Au); /* 0x360B2175: push 0x3616727a */
   1213     eax = MEM32(FS_BASE + (0)); /* 0x360B217A: mov eax, dword ptr fs:[0] */
   1214     PUSH32(esp, eax); /* 0x360B2180: push eax */
   1215     MEM32(FS_BASE + (0)) = esp; /* 0x360B2181: mov dword ptr fs:[0], esp */
   1216     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1218     esp = esp - 0xCu; /* 0x360B2188: sub esp, 0xc */
   1219     _flag_k = FK_CMP;
   1220     PUSH32(esp, ebx); /* 0x360B218B: push ebx */
   1221     PUSH32(esp, esi); /* 0x360B218C: push esi */
   1222     esi = ecx; /* 0x360B218D: mov esi, ecx */
   1223     MEM32(ebp + (-0x14)) = esi; /* 0x360B218F: mov dword ptr [ebp - 0x14], esi */
   1224     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360B2192: call dword ptr [0x3616ffd0] */
   1225     RECOMP_FLAGS_IN();
   1226     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1227     ebx = 0; /* 0x360B2198: xor ebx, ebx */
   1228     _cf = 0;
   1229     _flag_k = FK_TEST;
   1230     MEM32(ebp + (-0x4)) = ebx; /* 0x360B219A: mov dword ptr [ebp - 4], ebx */
   1231     MEM32(esi + 0x20) = 0x361719E8u; /* 0x360B219D: mov dword ptr [esi + 0x20], 0x361719e8 */
   1232     MEM32(esi + 0x2C) = ebx; /* 0x360B21A4: mov dword ptr [esi + 0x2c], ebx */
   1233     MEM32(esi + 0x30) = ebx; /* 0x360B21A7: mov dword ptr [esi + 0x30], ebx */
   1234     MEM32(esi + 0x34) = ebx; /* 0x360B21AA: mov dword ptr [esi + 0x34], ebx */
   1235     MEM32(esi + 0x38) = ebx; /* 0x360B21AD: mov dword ptr [esi + 0x38], ebx */
   1236     MEM32(esi + 0x3C) = ebx; /* 0x360B21B0: mov dword ptr [esi + 0x3c], ebx */
   1237     MEM32(esi + 0x40) = ebx; /* 0x360B21B3: mov dword ptr [esi + 0x40], ebx */
   1238     MEM32(esi + 0x44) = ebx; /* 0x360B21B6: mov dword ptr [esi + 0x44], ebx */
   1239     MEM32(esi + 0x48) = ebx; /* 0x360B21B9: mov dword ptr [esi + 0x48], ebx */
   1240     MEM32(esi + 0x4C) = 0x3F800000u; /* 0x360B21BC: mov dword ptr [esi + 0x4c], 0x3f800000 */
   1241     MEM32(esi + 0x54) = ebx; /* 0x360B21C3: mov dword ptr [esi + 0x54], ebx */
   1242     MEM32(esi + 0x58) = ebx; /* 0x360B21C6: mov dword ptr [esi + 0x58], ebx */
   1243     MEM32(esi + 0x6C) = ebx; /* 0x360B21C9: mov dword ptr [esi + 0x6c], ebx */
   1244     MEM32(esi + 0x70) = ebx; /* 0x360B21CC: mov dword ptr [esi + 0x70], ebx */
   1245     PUSH32(esp, 0x10u); /* 0x360B21CF: push 0x10 */
   1246     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x360B21D1: mov byte ptr [ebp - 4], 1 */
   1247     MEM32(esi) = 0x36174D28u; /* 0x360B21D5: mov dword ptr [esi], 0x36174d28 */
   1248     MEM32(esi + 0x20) = 0x36174D0Cu; /* 0x360B21DB: mov dword ptr [esi + 0x20], 0x36174d0c */
   1249     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x360B21E2: mov byte ptr [esi + 0xc], bl */
   1250     RECOMP_ICALL(0x3615FD6Au); /* 0x360B21E5: call 0x3615fd6a */ /* not lifted */
   1251     RECOMP_FLAGS_IN();
   1252     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1253     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1254     esp = esp + 4; /* 0x360B21EA: add esp, 4 */
   1255     _flag_k = FK_ADD;
   1256     MEM32(ebp + (-0x18)) = eax; /* 0x360B21ED: mov dword ptr [ebp - 0x18], eax */
   1257     /* cmp eax, ebx */ /* 0x360B21F0: cmp eax, ebx */
   1258     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1259     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1260     _flag_k = FK_CMP;
   1261     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x360B21F2: mov byte ptr [ebp - 4], 2 */
   1262     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B2201; /* 0x360B21F6: je 0x360b2201 */
   1263 L_360B21F8:
   1264     ecx = eax; /* 0x360B21F8: mov ecx, eax */
   1265     RECOMP_ICALL(0x36008BB0u); /* 0x360B21FA: call 0x36008bb0 */ /* not lifted */
   1266     RECOMP_FLAGS_IN();
   1267     goto L_360B2203; /* 0x360B21FF: jmp 0x360b2203 */
   1268 L_360B2201:
   1269     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1270     eax = 0; /* 0x360B2201: xor eax, eax */
   1271     _cf = 0;
   1272     _flag_k = FK_TEST;
   1273 L_360B2203:
   1274     PUSH32(esp, edi); /* 0x360B2203: push edi */
   1275     PUSH32(esp, 0x10u); /* 0x360B2204: push 0x10 */
   1276     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x360B2206: mov byte ptr [ebp - 4], 1 */
   1277     MEM32(esi + 0x68) = eax; /* 0x360B220A: mov dword ptr [esi + 0x68], eax */
   1278     RECOMP_ICALL(0x3615FD6Au); /* 0x360B220D: call 0x3615fd6a */ /* not lifted */
   1279     RECOMP_FLAGS_IN();
   1280     edi = eax; /* 0x360B2212: mov edi, eax */
   1281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1283     esp = esp + 4; /* 0x360B2214: add esp, 4 */
   1284     _flag_k = FK_ADD;
   1285     MEM32(ebp + (-0x18)) = edi; /* 0x360B2217: mov dword ptr [ebp - 0x18], edi */
   1286     /* cmp edi, ebx */ /* 0x360B221A: cmp edi, ebx */
   1287     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   1288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1289     _flag_k = FK_CMP;
   1290     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x360B221C: mov byte ptr [ebp - 4], 3 */
   1291     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B2253; /* 0x360B2220: je 0x360b2253 */
   1292 L_360B2222:
   1293     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x360B2222: mov al, byte ptr [ebp - 0xd] */
   1294     PUSH32(esp, 0x6Cu); /* 0x360B2225: push 0x6c */
   1295     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x360B2227: mov byte ptr [edi], al */
   1296     RECOMP_ICALL(0x3615FD6Au); /* 0x360B2229: call 0x3615fd6a */ /* not lifted */
   1297     RECOMP_FLAGS_IN();
   1298     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1299     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1300     esp = esp + 4; /* 0x360B222E: add esp, 4 */
   1301     _flag_k = FK_ADD;
   1302     MEM32(edi + 0x4) = eax; /* 0x360B2231: mov dword ptr [edi + 4], eax */
   1303     ecx = 0x1Bu; /* 0x360B2234: mov ecx, 0x1b */
   1304 L_360B2239:
   1305     /* cmp eax, ebx */ /* 0x360B2239: cmp eax, ebx */
   1306     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1308     _flag_k = FK_CMP;
   1309     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B223F; /* 0x360B223B: je 0x360b223f */
   1310 L_360B223D:
   1311     MEM32(eax) = ebx; /* 0x360B223D: mov dword ptr [eax], ebx */
   1312 L_360B223F:
   1313     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   1314     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1315     eax = eax + 4; /* 0x360B223F: add eax, 4 */
   1316     _flag_k = FK_ADD;
   1317     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1318     ecx = ecx - 1; /* 0x360B2242: dec ecx */
   1319     _flag_k = FK_DEC;
   1320     RECOMP_BACKEDGE();
   1321     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_360B2239; /* 0x360B2243: jne 0x360b2239 */
   1322 L_360B2245:
   1323     eax = MEM32(edi + 0x4); /* 0x360B2245: mov eax, dword ptr [edi + 4] */
   1324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Cu);
   1325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1326     eax = eax + 0x6Cu; /* 0x360B2248: add eax, 0x6c */
   1327     _flag_k = FK_ADD;
   1328     MEM32(edi + 0x8) = eax; /* 0x360B224B: mov dword ptr [edi + 8], eax */
   1329     MEM32(edi + 0xC) = eax; /* 0x360B224E: mov dword ptr [edi + 0xc], eax */
   1330     goto L_360B2255; /* 0x360B2251: jmp 0x360b2255 */
   1331 L_360B2253:
   1332     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1333     edi = 0; /* 0x360B2253: xor edi, edi */
   1334     _cf = 0;
   1335     _flag_k = FK_TEST;
   1336 L_360B2255:
   1337     PUSH32(esp, 0x10u); /* 0x360B2255: push 0x10 */
   1338     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x360B2257: mov byte ptr [ebp - 4], 1 */
   1339     MEM32(esi + 0x60) = edi; /* 0x360B225B: mov dword ptr [esi + 0x60], edi */
   1340     RECOMP_ICALL(0x3615FD6Au); /* 0x360B225E: call 0x3615fd6a */ /* not lifted */
   1341     RECOMP_FLAGS_IN();
   1342     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1343     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1344     esp = esp + 4; /* 0x360B2263: add esp, 4 */
   1345     _flag_k = FK_ADD;
   1346     /* cmp eax, ebx */ /* 0x360B2266: cmp eax, ebx */
   1347     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1349     _flag_k = FK_CMP;
   1350     edi = POP32_VAL(esp); /* 0x360B2268: pop edi */
   1351     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B227B; /* 0x360B2269: je 0x360b227b */
   1352 L_360B226B:
   1353     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x360B226B: mov cl, byte ptr [ebp - 0xd] */
   1354     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x360B226E: mov byte ptr [eax], cl */
   1355     MEM32(eax + 0x4) = ebx; /* 0x360B2270: mov dword ptr [eax + 4], ebx */
   1356     MEM32(eax + 0x8) = ebx; /* 0x360B2273: mov dword ptr [eax + 8], ebx */
   1357     MEM32(eax + 0xC) = ebx; /* 0x360B2276: mov dword ptr [eax + 0xc], ebx */
   1358     goto L_360B227D; /* 0x360B2279: jmp 0x360b227d */
   1359 L_360B227B:
   1360     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1361     eax = 0; /* 0x360B227B: xor eax, eax */
   1362     _cf = 0;
   1363     _flag_k = FK_TEST;
   1364 L_360B227D:
   1365     ecx = MEM32(ebp + (-0xC)); /* 0x360B227D: mov ecx, dword ptr [ebp - 0xc] */
   1366     MEM32(esi + 0x64) = eax; /* 0x360B2280: mov dword ptr [esi + 0x64], eax */
   1367     MEM32(esi + 0x74) = ebx; /* 0x360B2283: mov dword ptr [esi + 0x74], ebx */
   1368     eax = esi; /* 0x360B2286: mov eax, esi */
   1369     esi = POP32_VAL(esp); /* 0x360B2288: pop esi */
   1370     ebx = POP32_VAL(esp); /* 0x360B2289: pop ebx */
   1371     MEM32(FS_BASE + (0)) = ecx; /* 0x360B228A: mov dword ptr fs:[0], ecx */
   1372     esp = ebp; /* 0x360B2291: mov esp, ebp */
   1373     ebp = POP32_VAL(esp); /* 0x360B2293: pop ebp */
   1374     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2294: ret  */
   1375     RECOMP_REGS_OUT();
   1376 }
   1377 
   1378 void sub_360B22A0(void) {
   1379     int _fpu_cmp = 0;
   1380     uint32_t _cf = 0;
   1381     int _df = 1;
   1382     uint32_t _flag_k = FK_NONE;
   1383     uint32_t _flag_a = 0, _flag_b = 0;
   1384     uint32_t _itail_tgt = 0;
   1385     RECOMP_REGS_LOCALS
   1386     RECOMP_ENTER(0x360B22A0u);
   1387 
   1388 L_360B22A0:
   1389     PUSH32(esp, ebp); /* 0x360B22A0: push ebp */
   1390     ebp = esp; /* 0x360B22A1: mov ebp, esp */
   1391     PUSH32(esp, esi); /* 0x360B22A3: push esi */
   1392     esi = ecx; /* 0x360B22A4: mov esi, ecx */
   1393     RECOMP_ICALL(0x360B2340u); /* 0x360B22A6: call 0x360b2340 */ /* not lifted */
   1394     RECOMP_FLAGS_IN();
   1395     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B22AB: test byte ptr [ebp + 8], 1 */
   1396     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   1397     _cf = 0;
   1398     _flag_k = FK_NARROW(FK_TEST, 24);
   1399     if (TEST_Z(_flag_a, _flag_b)) goto L_360B22BA; /* 0x360B22AF: je 0x360b22ba */
   1400 L_360B22B1:
   1401     PUSH32(esp, esi); /* 0x360B22B1: push esi */
   1402     RECOMP_ICALL(0x3615FCC4u); /* 0x360B22B2: call 0x3615fcc4 */ /* not lifted */
   1403     RECOMP_FLAGS_IN();
   1404     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1405     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1406     esp = esp + 4; /* 0x360B22B7: add esp, 4 */
   1407     _flag_k = FK_ADD;
   1408 L_360B22BA:
   1409     eax = esi; /* 0x360B22BA: mov eax, esi */
   1410     esi = POP32_VAL(esp); /* 0x360B22BC: pop esi */
   1411     ebp = POP32_VAL(esp); /* 0x360B22BD: pop ebp */
   1412     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B22BE: ret 4 */
   1413     RECOMP_REGS_OUT();
   1414 }
   1415 
   1416 void sub_360B22D0(void) {
   1417     int _fpu_cmp = 0;
   1418     uint32_t _cf = 0;
   1419     int _df = 1;
   1420     uint32_t _flag_k = FK_NONE;
   1421     uint32_t _flag_a = 0, _flag_b = 0;
   1422     uint32_t _itail_tgt = 0;
   1423     RECOMP_REGS_LOCALS
   1424     RECOMP_ENTER(0x360B22D0u);
   1425 
   1426 L_360B22D0:
   1427     PUSH32(esp, ebp); /* 0x360B22D0: push ebp */
   1428     ebp = esp; /* 0x360B22D1: mov ebp, esp */
   1429     eax = MEM32(ebp + 0xC); /* 0x360B22D3: mov eax, dword ptr [ebp + 0xc] */
   1430     PUSH32(esp, esi); /* 0x360B22D6: push esi */
   1431     esi = ecx; /* 0x360B22D7: mov esi, ecx */
   1432     ecx = MEM32(ebp + 0x8); /* 0x360B22D9: mov ecx, dword ptr [ebp + 8] */
   1433     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x90u);
   1434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1435     ecx = ecx + 0x90u; /* 0x360B22DC: add ecx, 0x90 */
   1436     _flag_k = FK_ADD;
   1437     PUSH32(esp, eax); /* 0x360B22E2: push eax */
   1438     PUSH32(esp, ecx); /* 0x360B22E3: push ecx */
   1439     ecx = esi; /* 0x360B22E4: mov ecx, esi */
   1440     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x360B22E6: call dword ptr [0x3616fc0c] */
   1441     RECOMP_FLAGS_IN();
   1442     MEM32(esi + 0x20) = 0x361719E8u; /* 0x360B22EC: mov dword ptr [esi + 0x20], 0x361719e8 */
   1443     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1444     eax = 0; /* 0x360B22F3: xor eax, eax */
   1445     _cf = 0;
   1446     _flag_k = FK_TEST;
   1447     MEM32(esi + 0x2C) = eax; /* 0x360B22F5: mov dword ptr [esi + 0x2c], eax */
   1448     MEM32(esi + 0x30) = eax; /* 0x360B22F8: mov dword ptr [esi + 0x30], eax */
   1449     MEM32(esi + 0x34) = eax; /* 0x360B22FB: mov dword ptr [esi + 0x34], eax */
   1450     MEM32(esi + 0x38) = eax; /* 0x360B22FE: mov dword ptr [esi + 0x38], eax */
   1451     MEM32(esi + 0x3C) = eax; /* 0x360B2301: mov dword ptr [esi + 0x3c], eax */
   1452     MEM32(esi + 0x40) = eax; /* 0x360B2304: mov dword ptr [esi + 0x40], eax */
   1453     MEM32(esi + 0x44) = eax; /* 0x360B2307: mov dword ptr [esi + 0x44], eax */
   1454     MEM32(esi + 0x48) = eax; /* 0x360B230A: mov dword ptr [esi + 0x48], eax */
   1455     MEM32(esi + 0x4C) = 0x3F800000u; /* 0x360B230D: mov dword ptr [esi + 0x4c], 0x3f800000 */
   1456     MEM32(esi + 0x54) = eax; /* 0x360B2314: mov dword ptr [esi + 0x54], eax */
   1457     MEM32(esi + 0x58) = eax; /* 0x360B2317: mov dword ptr [esi + 0x58], eax */
   1458     MEM32(esi + 0x6C) = eax; /* 0x360B231A: mov dword ptr [esi + 0x6c], eax */
   1459     MEM32(esi + 0x70) = eax; /* 0x360B231D: mov dword ptr [esi + 0x70], eax */
   1460     MEM32(esi) = 0x36174D28u; /* 0x360B2320: mov dword ptr [esi], 0x36174d28 */
   1461     MEM32(esi + 0x20) = 0x36174D0Cu; /* 0x360B2326: mov dword ptr [esi + 0x20], 0x36174d0c */
   1462     eax = esi; /* 0x360B232D: mov eax, esi */
   1463     esi = POP32_VAL(esp); /* 0x360B232F: pop esi */
   1464     ebp = POP32_VAL(esp); /* 0x360B2330: pop ebp */
   1465     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360B2331: ret 8 */
   1466     RECOMP_REGS_OUT();
   1467 }
   1468 
   1469 void sub_360B2340(void) {
   1470     int _fpu_cmp = 0;
   1471     uint32_t _cf = 0;
   1472     int _df = 1;
   1473     uint32_t _flag_k = FK_NONE;
   1474     uint32_t _flag_a = 0, _flag_b = 0;
   1475     uint32_t _itail_tgt = 0;
   1476     RECOMP_REGS_LOCALS
   1477     RECOMP_ENTER(0x360B2340u);
   1478 
   1479 L_360B2340:
   1480     PUSH32(esp, ebp); /* 0x360B2340: push ebp */
   1481     ebp = esp; /* 0x360B2341: mov ebp, esp */
   1482     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B2343: push -1 */
   1483     PUSH32(esp, 0x361672C0u); /* 0x360B2345: push 0x361672c0 */
   1484     eax = MEM32(FS_BASE + (0)); /* 0x360B234A: mov eax, dword ptr fs:[0] */
   1485     PUSH32(esp, eax); /* 0x360B2350: push eax */
   1486     MEM32(FS_BASE + (0)) = esp; /* 0x360B2351: mov dword ptr fs:[0], esp */
   1487     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1489     esp = esp - 8; /* 0x360B2358: sub esp, 8 */
   1490     _flag_k = FK_CMP;
   1491     PUSH32(esp, ebx); /* 0x360B235B: push ebx */
   1492     PUSH32(esp, esi); /* 0x360B235C: push esi */
   1493     esi = ecx; /* 0x360B235D: mov esi, ecx */
   1494     PUSH32(esp, edi); /* 0x360B235F: push edi */
   1495     MEM32(ebp + (-0x14)) = esi; /* 0x360B2360: mov dword ptr [ebp - 0x14], esi */
   1496     MEM32(esi) = 0x36174D28u; /* 0x360B2363: mov dword ptr [esi], 0x36174d28 */
   1497     MEM32(esi + 0x20) = 0x36174D0Cu; /* 0x360B2369: mov dword ptr [esi + 0x20], 0x36174d0c */
   1498     ebx = MEM32(esi + 0x68); /* 0x360B2370: mov ebx, dword ptr [esi + 0x68] */
   1499     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1500     edi = 0; /* 0x360B2373: xor edi, edi */
   1501     _cf = 0;
   1502     _flag_k = FK_TEST;
   1503     /* cmp ebx, edi */ /* 0x360B2375: cmp ebx, edi */
   1504     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   1505     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1506     _flag_k = FK_CMP;
   1507     MEM32(ebp + (-0x4)) = 1; /* 0x360B2377: mov dword ptr [ebp - 4], 1 */
   1508     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B239E; /* 0x360B237E: je 0x360b239e */
   1509 L_360B2380:
   1510     eax = MEM32(ebx + 0x4); /* 0x360B2380: mov eax, dword ptr [ebx + 4] */
   1511     PUSH32(esp, eax); /* 0x360B2383: push eax */
   1512     MEM32(ebp + (-0x10)) = eax; /* 0x360B2384: mov dword ptr [ebp - 0x10], eax */
   1513     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2387: call 0x3615fcc4 */ /* not lifted */
   1514     RECOMP_FLAGS_IN();
   1515     PUSH32(esp, ebx); /* 0x360B238C: push ebx */
   1516     MEM32(ebx + 0x4) = edi; /* 0x360B238D: mov dword ptr [ebx + 4], edi */
   1517     MEM32(ebx + 0x8) = edi; /* 0x360B2390: mov dword ptr [ebx + 8], edi */
   1518     MEM32(ebx + 0xC) = edi; /* 0x360B2393: mov dword ptr [ebx + 0xc], edi */
   1519     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2396: call 0x3615fcc4 */ /* not lifted */
   1520     RECOMP_FLAGS_IN();
   1521     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1523     esp = esp + 8; /* 0x360B239B: add esp, 8 */
   1524     _flag_k = FK_ADD;
   1525 L_360B239E:
   1526     ebx = MEM32(esi + 0x64); /* 0x360B239E: mov ebx, dword ptr [esi + 0x64] */
   1527     /* cmp ebx, edi */ /* 0x360B23A1: cmp ebx, edi */
   1528     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   1529     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1530     _flag_k = FK_CMP;
   1531     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B23E2; /* 0x360B23A3: je 0x360b23e2 */
   1532 L_360B23A5:
   1533     eax = MEM32(ebx + 0x8); /* 0x360B23A5: mov eax, dword ptr [ebx + 8] */
   1534     edi = MEM32(ebx + 0x4); /* 0x360B23A8: mov edi, dword ptr [ebx + 4] */
   1535     /* cmp edi, eax */ /* 0x360B23AB: cmp edi, eax */
   1536     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1537     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1538     _flag_k = FK_CMP;
   1539     MEM32(ebp + (-0x10)) = eax; /* 0x360B23AD: mov dword ptr [ebp - 0x10], eax */
   1540     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B23C3; /* 0x360B23B0: je 0x360b23c3 */
   1541 L_360B23B2:
   1542     ecx = edi; /* 0x360B23B2: mov ecx, edi */
   1543     RECOMP_ICALL(0x360E2940u); /* 0x360B23B4: call 0x360e2940 */ /* not lifted */
   1544     RECOMP_FLAGS_IN();
   1545     eax = MEM32(ebp + (-0x10)); /* 0x360B23B9: mov eax, dword ptr [ebp - 0x10] */
   1546     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   1547     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1548     edi = edi + 8; /* 0x360B23BC: add edi, 8 */
   1549     _flag_k = FK_ADD;
   1550     /* cmp edi, eax */ /* 0x360B23BF: cmp edi, eax */
   1551     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1553     _flag_k = FK_CMP;
   1554     RECOMP_BACKEDGE();
   1555     if (CMP_NE(_flag_a, _flag_b)) goto L_360B23B2; /* 0x360B23C1: jne 0x360b23b2 */
   1556 L_360B23C3:
   1557     eax = MEM32(ebx + 0x4); /* 0x360B23C3: mov eax, dword ptr [ebx + 4] */
   1558     PUSH32(esp, eax); /* 0x360B23C6: push eax */
   1559     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23C7: call 0x3615fcc4 */ /* not lifted */
   1560     RECOMP_FLAGS_IN();
   1561     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1562     eax = 0; /* 0x360B23CC: xor eax, eax */
   1563     _cf = 0;
   1564     _flag_k = FK_TEST;
   1565     PUSH32(esp, ebx); /* 0x360B23CE: push ebx */
   1566     MEM32(ebx + 0x4) = eax; /* 0x360B23CF: mov dword ptr [ebx + 4], eax */
   1567     MEM32(ebx + 0x8) = eax; /* 0x360B23D2: mov dword ptr [ebx + 8], eax */
   1568     MEM32(ebx + 0xC) = eax; /* 0x360B23D5: mov dword ptr [ebx + 0xc], eax */
   1569     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23D8: call 0x3615fcc4 */ /* not lifted */
   1570     RECOMP_FLAGS_IN();
   1571     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1572     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1573     esp = esp + 8; /* 0x360B23DD: add esp, 8 */
   1574     _flag_k = FK_ADD;
   1575     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1576     edi = 0; /* 0x360B23E0: xor edi, edi */
   1577     _cf = 0;
   1578     _flag_k = FK_TEST;
   1579 L_360B23E2:
   1580     ebx = MEM32(esi + 0x60); /* 0x360B23E2: mov ebx, dword ptr [esi + 0x60] */
   1581     /* cmp ebx, edi */ /* 0x360B23E5: cmp ebx, edi */
   1582     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   1583     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1584     _flag_k = FK_CMP;
   1585     MEM32(esi + 0x64) = edi; /* 0x360B23E7: mov dword ptr [esi + 0x64], edi */
   1586     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B240A; /* 0x360B23EA: je 0x360b240a */
   1587 L_360B23EC:
   1588     eax = MEM32(ebx + 0x4); /* 0x360B23EC: mov eax, dword ptr [ebx + 4] */
   1589     PUSH32(esp, eax); /* 0x360B23EF: push eax */
   1590     MEM32(ebp + (-0x14)) = eax; /* 0x360B23F0: mov dword ptr [ebp - 0x14], eax */
   1591     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23F3: call 0x3615fcc4 */ /* not lifted */
   1592     RECOMP_FLAGS_IN();
   1593     PUSH32(esp, ebx); /* 0x360B23F8: push ebx */
   1594     MEM32(ebx + 0x4) = edi; /* 0x360B23F9: mov dword ptr [ebx + 4], edi */
   1595     MEM32(ebx + 0x8) = edi; /* 0x360B23FC: mov dword ptr [ebx + 8], edi */
   1596     MEM32(ebx + 0xC) = edi; /* 0x360B23FF: mov dword ptr [ebx + 0xc], edi */
   1597     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2402: call 0x3615fcc4 */ /* not lifted */
   1598     RECOMP_FLAGS_IN();
   1599     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1601     esp = esp + 8; /* 0x360B2407: add esp, 8 */
   1602     _flag_k = FK_ADD;
   1603 L_360B240A:
   1604     eax = esi; /* 0x360B240A: mov eax, esi */
   1605     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1606     _cf = (eax) != 0;
   1607     eax = (uint32_t)(-(int32_t)eax); /* 0x360B240C: neg eax */
   1608     _flag_k = FK_CMP;
   1609     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B240E: sbb eax, eax */
   1610       eax = _sc ? 0xFFFFFFFFu : 0;
   1611       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1612       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1613     ecx = esi + 0x20; /* 0x360B2410: lea ecx, [esi + 0x20] */
   1614     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1615     eax = eax & ecx; /* 0x360B2413: and eax, ecx */
   1616     _cf = 0;
   1617     _flag_k = FK_TEST;
   1618     MEM32(esi + 0x60) = edi; /* 0x360B2415: mov dword ptr [esi + 0x60], edi */
   1619     ecx = esi; /* 0x360B2418: mov ecx, esi */
   1620     MEM32(eax) = 0x361719E8u; /* 0x360B241A: mov dword ptr [eax], 0x361719e8 */
   1621     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360B2420: mov dword ptr [ebp - 4], 0xffffffff */
   1622     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x360B2427: call dword ptr [0x3616ffd4] */
   1623     RECOMP_FLAGS_IN();
   1624     ecx = MEM32(ebp + (-0xC)); /* 0x360B242D: mov ecx, dword ptr [ebp - 0xc] */
   1625     edi = POP32_VAL(esp); /* 0x360B2430: pop edi */
   1626     esi = POP32_VAL(esp); /* 0x360B2431: pop esi */
   1627     ebx = POP32_VAL(esp); /* 0x360B2432: pop ebx */
   1628     MEM32(FS_BASE + (0)) = ecx; /* 0x360B2433: mov dword ptr fs:[0], ecx */
   1629     esp = ebp; /* 0x360B243A: mov esp, ebp */
   1630     ebp = POP32_VAL(esp); /* 0x360B243C: pop ebp */
   1631     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B243D: ret  */
   1632     RECOMP_REGS_OUT();
   1633 }
   1634 
   1635 void sub_360B2440(void) {
   1636     int _fpu_cmp = 0;
   1637     uint32_t _cf = 0;
   1638     int _df = 1;
   1639     uint32_t _flag_k = FK_NONE;
   1640     uint32_t _flag_a = 0, _flag_b = 0;
   1641     uint32_t _itail_tgt = 0;
   1642     RECOMP_REGS_LOCALS
   1643     RECOMP_ENTER(0x360B2440u);
   1644 
   1645 L_360B2440:
   1646     PUSH32(esp, ebp); /* 0x360B2440: push ebp */
   1647     ebp = esp; /* 0x360B2441: mov ebp, esp */
   1648     PUSH32(esp, ecx); /* 0x360B2443: push ecx */
   1649     PUSH32(esp, esi); /* 0x360B2444: push esi */
   1650     esi = MEM32(ebp + 0x8); /* 0x360B2445: mov esi, dword ptr [ebp + 8] */
   1651     PUSH32(esp, edi); /* 0x360B2448: push edi */
   1652     eax = ebp + (-0x4); /* 0x360B2449: lea eax, [ebp - 4] */
   1653     edi = ecx; /* 0x360B244C: mov edi, ecx */
   1654     PUSH32(esp, eax); /* 0x360B244E: push eax */
   1655     ecx = esi; /* 0x360B244F: mov ecx, esi */
   1656     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360B2451: call dword ptr [0x3616fa8c] */
   1657     RECOMP_FLAGS_IN();
   1658     ecx = MEM32(ebp + (-0x4)); /* 0x360B2457: mov ecx, dword ptr [ebp - 4] */
   1659     /* cmp ecx, MEM32(0x361C8C18) */ /* 0x360B245A: cmp ecx, dword ptr [0x361c8c18] */
   1660     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x361C8C18));
   1661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1662     _flag_k = FK_CMP;
   1663     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B246F; /* 0x360B2460: je 0x360b246f */
   1664 L_360B2462:
   1665     edi = POP32_VAL(esp); /* 0x360B2462: pop edi */
   1666     eax = 1; /* 0x360B2463: mov eax, 1 */
   1667     esi = POP32_VAL(esp); /* 0x360B2468: pop esi */
   1668     esp = ebp; /* 0x360B2469: mov esp, ebp */
   1669     ebp = POP32_VAL(esp); /* 0x360B246B: pop ebp */
   1670     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B246C: ret 4 */
   1671 L_360B246F:
   1672     PUSH32(esp, ebx); /* 0x360B246F: push ebx */
   1673     ebx = edi + 0x2C; /* 0x360B2470: lea ebx, [edi + 0x2c] */
   1674     PUSH32(esp, ebx); /* 0x360B2473: push ebx */
   1675     PUSH32(esp, esi); /* 0x360B2474: push esi */
   1676     RECOMP_ICALL(0x3615B870u); /* 0x360B2475: call 0x3615b870 */ /* not lifted */
   1677     RECOMP_FLAGS_IN();
   1678     eax = MEM32(ebx); /* 0x360B247A: mov eax, dword ptr [ebx] */
   1679     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1681     esp = esp + 8; /* 0x360B247C: add esp, 8 */
   1682     _flag_k = FK_ADD;
   1683     /* test eax, eax */ /* 0x360B247F: test eax, eax */
   1684     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1685     _cf = 0;
   1686     _flag_k = FK_TEST;
   1687     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B2521; /* 0x360B2481: jne 0x360b2521 */
   1688 L_360B2487:
   1689     ebx = MEM32(0x3616FAD0); /* 0x360B2487: mov ebx, dword ptr [0x3616fad0] */
   1690     edx = edi + 0x34; /* 0x360B248D: lea edx, [edi + 0x34] */
   1691     PUSH32(esp, edx); /* 0x360B2490: push edx */
   1692     ecx = esi; /* 0x360B2491: mov ecx, esi */
   1693     RECOMP_ICALL(ebx); /* 0x360B2493: call ebx */
   1694     RECOMP_FLAGS_IN();
   1695     eax = edi + 0x38; /* 0x360B2495: lea eax, [edi + 0x38] */
   1696     PUSH32(esp, eax); /* 0x360B2498: push eax */
   1697     ecx = esi; /* 0x360B2499: mov ecx, esi */
   1698     RECOMP_ICALL(ebx); /* 0x360B249B: call ebx */
   1699     RECOMP_FLAGS_IN();
   1700     ecx = edi + 0x3C; /* 0x360B249D: lea ecx, [edi + 0x3c] */
   1701     PUSH32(esp, ecx); /* 0x360B24A0: push ecx */
   1702     ecx = esi; /* 0x360B24A1: mov ecx, esi */
   1703     RECOMP_ICALL(ebx); /* 0x360B24A3: call ebx */
   1704     RECOMP_FLAGS_IN();
   1705     eax = edi + 0x40; /* 0x360B24A5: lea eax, [edi + 0x40] */
   1706     PUSH32(esp, eax); /* 0x360B24A8: push eax */
   1707     ecx = esi; /* 0x360B24A9: mov ecx, esi */
   1708     RECOMP_ICALL(ebx); /* 0x360B24AB: call ebx */
   1709     RECOMP_FLAGS_IN();
   1710     eax = edi + 0x44; /* 0x360B24AD: lea eax, [edi + 0x44] */
   1711     PUSH32(esp, eax); /* 0x360B24B0: push eax */
   1712     ecx = esi; /* 0x360B24B1: mov ecx, esi */
   1713     RECOMP_ICALL(ebx); /* 0x360B24B3: call ebx */
   1714     RECOMP_FLAGS_IN();
   1715     eax = edi + 0x48; /* 0x360B24B5: lea eax, [edi + 0x48] */
   1716     PUSH32(esp, eax); /* 0x360B24B8: push eax */
   1717     ecx = esi; /* 0x360B24B9: mov ecx, esi */
   1718     RECOMP_ICALL(ebx); /* 0x360B24BB: call ebx */
   1719     RECOMP_FLAGS_IN();
   1720     eax = edi + 0x4C; /* 0x360B24BD: lea eax, [edi + 0x4c] */
   1721     PUSH32(esp, eax); /* 0x360B24C0: push eax */
   1722     ecx = esi; /* 0x360B24C1: mov ecx, esi */
   1723     RECOMP_ICALL(ebx); /* 0x360B24C3: call ebx */
   1724     RECOMP_FLAGS_IN();
   1725     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360B24C5: fld dword ptr [0x3617040c] */
   1726     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x40)); /* 0x360B24CB: fcomp dword ptr [edi + 0x40] */
   1727     fp_pop();
   1728     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B24CE: fnstsw ax */
   1729     /* test HI8(eax), 0x40u */ /* 0x360B24D0: test ah, 0x40 */
   1730     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1731     _cf = 0;
   1732     _flag_k = FK_NARROW(FK_TEST, 24);
   1733     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2521; /* 0x360B24D3: je 0x360b2521 */
   1734 L_360B24D5:
   1735     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360B24D5: fld dword ptr [0x3617040c] */
   1736     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x44)); /* 0x360B24DB: fcomp dword ptr [edi + 0x44] */
   1737     fp_pop();
   1738     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B24DE: fnstsw ax */
   1739     /* test HI8(eax), 0x40u */ /* 0x360B24E0: test ah, 0x40 */
   1740     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1741     _cf = 0;
   1742     _flag_k = FK_NARROW(FK_TEST, 24);
   1743     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2521; /* 0x360B24E3: je 0x360b2521 */
   1744 L_360B24E5:
   1745     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360B24E5: fld dword ptr [0x3617040c] */
   1746     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x48)); /* 0x360B24EB: fcomp dword ptr [edi + 0x48] */
   1747     fp_pop();
   1748     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B24EE: fnstsw ax */
   1749     /* test HI8(eax), 0x40u */ /* 0x360B24F0: test ah, 0x40 */
   1750     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1751     _cf = 0;
   1752     _flag_k = FK_NARROW(FK_TEST, 24);
   1753     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2521; /* 0x360B24F3: je 0x360b2521 */
   1754 L_360B24F5:
   1755     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360B24F5: fld dword ptr [0x3617040c] */
   1756     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(edi + 0x4C)); /* 0x360B24FB: fcomp dword ptr [edi + 0x4c] */
   1757     fp_pop();
   1758     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B24FE: fnstsw ax */
   1759     /* test HI8(eax), 0x40u */ /* 0x360B2500: test ah, 0x40 */
   1760     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24;
   1761     _cf = 0;
   1762     _flag_k = FK_NARROW(FK_TEST, 24);
   1763     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2521; /* 0x360B2503: je 0x360b2521 */
   1764 L_360B2505:
   1765     MEM32(edi + 0x40) = 0; /* 0x360B2505: mov dword ptr [edi + 0x40], 0 */
   1766     MEM32(edi + 0x44) = 0; /* 0x360B250C: mov dword ptr [edi + 0x44], 0 */
   1767     MEM32(edi + 0x48) = 0; /* 0x360B2513: mov dword ptr [edi + 0x48], 0 */
   1768     MEM32(edi + 0x4C) = 0x3F800000u; /* 0x360B251A: mov dword ptr [edi + 0x4c], 0x3f800000 */
   1769 L_360B2521:
   1770     edx = edi + 0x50; /* 0x360B2521: lea edx, [edi + 0x50] */
   1771     PUSH32(esp, edx); /* 0x360B2524: push edx */
   1772     ecx = esi; /* 0x360B2525: mov ecx, esi */
   1773     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360B2527: call dword ptr [0x3616fa8c] */
   1774     RECOMP_FLAGS_IN();
   1775     eax = edi + 0x54; /* 0x360B252D: lea eax, [edi + 0x54] */
   1776     PUSH32(esp, eax); /* 0x360B2530: push eax */
   1777     PUSH32(esp, esi); /* 0x360B2531: push esi */
   1778     RECOMP_ICALL(0x3615B870u); /* 0x360B2532: call 0x3615b870 */ /* not lifted */
   1779     RECOMP_FLAGS_IN();
   1780     ebx = MEM32(0x3616FAE0); /* 0x360B2537: mov ebx, dword ptr [0x3616fae0] */
   1781     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1782     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1783     esp = esp + 8; /* 0x360B253D: add esp, 8 */
   1784     _flag_k = FK_ADD;
   1785     ecx = edi + 0x78; /* 0x360B2540: lea ecx, [edi + 0x78] */
   1786     PUSH32(esp, ecx); /* 0x360B2543: push ecx */
   1787     ecx = esi; /* 0x360B2544: mov ecx, esi */
   1788     RECOMP_ICALL(ebx); /* 0x360B2546: call ebx */
   1789     RECOMP_FLAGS_IN();
   1790     edx = edi + 0x79; /* 0x360B2548: lea edx, [edi + 0x79] */
   1791     PUSH32(esp, edx); /* 0x360B254B: push edx */
   1792     ecx = esi; /* 0x360B254C: mov ecx, esi */
   1793     RECOMP_ICALL(ebx); /* 0x360B254E: call ebx */
   1794     RECOMP_FLAGS_IN();
   1795     eax = MEM32(edi + 0x64); /* 0x360B2550: mov eax, dword ptr [edi + 0x64] */
   1796     PUSH32(esp, eax); /* 0x360B2553: push eax */
   1797     PUSH32(esp, esi); /* 0x360B2554: push esi */
   1798     RECOMP_ICALL(0x36030100u); /* 0x360B2555: call 0x36030100 */ /* not lifted */
   1799     RECOMP_FLAGS_IN();
   1800     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1802     esp = esp + 8; /* 0x360B255A: add esp, 8 */
   1803     _flag_k = FK_ADD;
   1804     ecx = ebp + 0x8; /* 0x360B255D: lea ecx, [ebp + 8] */
   1805     PUSH32(esp, ecx); /* 0x360B2560: push ecx */
   1806     ecx = esi; /* 0x360B2561: mov ecx, esi */
   1807     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360B2563: call dword ptr [0x3616fa8c] */
   1808     RECOMP_FLAGS_IN();
   1809     eax = MEM32(ebp + 0x8); /* 0x360B2569: mov eax, dword ptr [ebp + 8] */
   1810     /* test eax, eax */ /* 0x360B256C: test eax, eax */
   1811     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1812     _cf = 0;
   1813     _flag_k = FK_TEST;
   1814     ebx = POP32_VAL(esp); /* 0x360B256E: pop ebx */
   1815     if (TEST_LE(_flag_a, _flag_b)) goto L_360B258B; /* 0x360B256F: jle 0x360b258b */
   1816 L_360B2571:
   1817     PUSH32(esp, eax); /* 0x360B2571: push eax */
   1818     RECOMP_ICALL(MEM32(0x3616F1A0)); /* 0x360B2572: call dword ptr [0x3616f1a0] */
   1819     RECOMP_FLAGS_IN();
   1820     edx = MEM32(ebp + 0x8); /* 0x360B2578: mov edx, dword ptr [ebp + 8] */
   1821     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1822     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1823     esp = esp + 4; /* 0x360B257B: add esp, 4 */
   1824     _flag_k = FK_ADD;
   1825     PUSH32(esp, edx); /* 0x360B257E: push edx */
   1826     PUSH32(esp, eax); /* 0x360B257F: push eax */
   1827     ecx = esi; /* 0x360B2580: mov ecx, esi */
   1828     MEM32(edi + 0x74) = eax; /* 0x360B2582: mov dword ptr [edi + 0x74], eax */
   1829     RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x360B2585: call dword ptr [0x3616fac4] */
   1830     RECOMP_FLAGS_IN();
   1831 L_360B258B:
   1832     ecx = esi; /* 0x360B258B: mov ecx, esi */
   1833     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B258D: call dword ptr [0x3616fadc] */
   1834     RECOMP_FLAGS_IN();
   1835     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1836     _cf = (eax) != 0;
   1837     eax = (uint32_t)(-(int32_t)eax); /* 0x360B2593: neg eax */
   1838     _flag_k = FK_CMP;
   1839     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B2595: sbb eax, eax */
   1840       eax = _sc ? 0xFFFFFFFFu : 0;
   1841       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1842       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1843     edi = POP32_VAL(esp); /* 0x360B2597: pop edi */
   1844     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1845     eax = eax + 1; /* 0x360B2598: inc eax */
   1846     _flag_k = FK_INC;
   1847     esi = POP32_VAL(esp); /* 0x360B2599: pop esi */
   1848     esp = ebp; /* 0x360B259A: mov esp, ebp */
   1849     ebp = POP32_VAL(esp); /* 0x360B259C: pop ebp */
   1850     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B259D: ret 4 */
   1851     RECOMP_REGS_OUT();
   1852 }
   1853 
   1854 void sub_360B25A0(void) {
   1855     int _fpu_cmp = 0;
   1856     uint32_t _cf = 0;
   1857     int _df = 1;
   1858     uint32_t _flag_k = FK_NONE;
   1859     uint32_t _flag_a = 0, _flag_b = 0;
   1860     uint32_t _itail_tgt = 0;
   1861     RECOMP_REGS_LOCALS
   1862     RECOMP_ENTER(0x360B25A0u);
   1863 
   1864 L_360B25A0:
   1865     PUSH32(esp, ebp); /* 0x360B25A0: push ebp */
   1866     ebp = esp; /* 0x360B25A1: mov ebp, esp */
   1867     eax = MEM32(ecx + 0x60); /* 0x360B25A3: mov eax, dword ptr [ecx + 0x60] */
   1868     ecx = MEM32(eax + 0x4); /* 0x360B25A6: mov ecx, dword ptr [eax + 4] */
   1869     edx = MEM32(ebp + 0x8); /* 0x360B25A9: mov edx, dword ptr [ebp + 8] */
   1870     eax = MEM32(ecx + edx * 4); /* 0x360B25AC: mov eax, dword ptr [ecx + edx*4] */
   1871     ebp = POP32_VAL(esp); /* 0x360B25AF: pop ebp */
   1872     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B25B0: ret 4 */
   1873     RECOMP_REGS_OUT();
   1874 }
   1875 
   1876 void sub_360B25C0(void) {
   1877     int _fpu_cmp = 0;
   1878     uint32_t _cf = 0;
   1879     int _df = 1;
   1880     uint32_t _flag_k = FK_NONE;
   1881     uint32_t _flag_a = 0, _flag_b = 0;
   1882     uint32_t _itail_tgt = 0;
   1883     RECOMP_REGS_LOCALS
   1884     RECOMP_ENTER(0x360B25C0u);
   1885 
   1886 L_360B25C0:
   1887     PUSH32(esp, ebp); /* 0x360B25C0: push ebp */
   1888     ebp = esp; /* 0x360B25C1: mov ebp, esp */
   1889     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1891     esp = esp - 0x14u; /* 0x360B25C3: sub esp, 0x14 */
   1892     _flag_k = FK_CMP;
   1893     PUSH32(esp, ebx); /* 0x360B25C6: push ebx */
   1894     PUSH32(esp, esi); /* 0x360B25C7: push esi */
   1895     esi = MEM32(ebp + 0x8); /* 0x360B25C8: mov esi, dword ptr [ebp + 8] */
   1896     eax = MEM32(esi); /* 0x360B25CB: mov eax, dword ptr [esi] */
   1897     PUSH32(esp, edi); /* 0x360B25CD: push edi */
   1898     ebx = ecx; /* 0x360B25CE: mov ebx, ecx */
   1899     PUSH32(esp, 0x200u); /* 0x360B25D0: push 0x200 */
   1900     ecx = esi; /* 0x360B25D5: mov ecx, esi */
   1901     MEM32(ebp + (-0x4)) = ebx; /* 0x360B25D7: mov dword ptr [ebp - 4], ebx */
   1902     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x360B25DA: call dword ptr [eax + 0x1c] */
   1903     RECOMP_FLAGS_IN();
   1904     /* test LO8(eax), LO8(eax) */ /* 0x360B25DD: test al, al */
   1905     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1906     _cf = 0;
   1907     _flag_k = FK_NARROW(FK_TEST, 24);
   1908     edi = esi + 0x8C; /* 0x360B25DF: lea edi, [esi + 0x8c] */
   1909     if (TEST_Z(_flag_a, _flag_b)) goto L_360B25EB; /* 0x360B25E5: je 0x360b25eb */
   1910 L_360B25E7:
   1911     PUSH32(esp, 1); /* 0x360B25E7: push 1 */
   1912     goto L_360B25ED; /* 0x360B25E9: jmp 0x360b25ed */
   1913 L_360B25EB:
   1914     PUSH32(esp, 0); /* 0x360B25EB: push 0 */
   1915 L_360B25ED:
   1916     ecx = edi; /* 0x360B25ED: mov ecx, edi */
   1917     RECOMP_ICALL(MEM32(0x3616FCD4)); /* 0x360B25EF: call dword ptr [0x3616fcd4] */
   1918     RECOMP_FLAGS_IN();
   1919     edx = MEM32(esi); /* 0x360B25F5: mov edx, dword ptr [esi] */
   1920     PUSH32(esp, 0x20000000u); /* 0x360B25F7: push 0x20000000 */
   1921     ecx = esi; /* 0x360B25FC: mov ecx, esi */
   1922     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360B25FE: call dword ptr [edx + 0x1c] */
   1923     RECOMP_FLAGS_IN();
   1924     /* test LO8(eax), LO8(eax) */ /* 0x360B2601: test al, al */
   1925     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1926     _cf = 0;
   1927     _flag_k = FK_NARROW(FK_TEST, 24);
   1928     ecx = edi; /* 0x360B2603: mov ecx, edi */
   1929     if (TEST_Z(_flag_a, _flag_b)) goto L_360B260F; /* 0x360B2605: je 0x360b260f */
   1930 L_360B2607:
   1931     RECOMP_ICALL(MEM32(0x3616FC9C)); /* 0x360B2607: call dword ptr [0x3616fc9c] */
   1932     RECOMP_FLAGS_IN();
   1933     goto L_360B2615; /* 0x360B260D: jmp 0x360b2615 */
   1934 L_360B260F:
   1935     RECOMP_ICALL(MEM32(0x3616FCA8)); /* 0x360B260F: call dword ptr [0x3616fca8] */
   1936     RECOMP_FLAGS_IN();
   1937 L_360B2615:
   1938     ecx = MEM32(ebx + 0x2C); /* 0x360B2615: mov ecx, dword ptr [ebx + 0x2c] */
   1939     /* test ecx, ecx */ /* 0x360B2618: test ecx, ecx */
   1940     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1941     _cf = 0;
   1942     _flag_k = FK_TEST;
   1943     eax = ebx + 0x2C; /* 0x360B261A: lea eax, [ebx + 0x2c] */
   1944     if (TEST_Z(_flag_a, _flag_b)) goto L_360B26DD; /* 0x360B261D: je 0x360b26dd */
   1945 L_360B2623:
   1946     PUSH32(esp, eax); /* 0x360B2623: push eax */
   1947     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360B2624: call dword ptr [0x3616ff70] */
   1948     RECOMP_FLAGS_IN();
   1949     ebx = eax; /* 0x360B262A: mov ebx, eax */
   1950     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1951     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1952     esp = esp + 4; /* 0x360B262C: add esp, 4 */
   1953     _flag_k = FK_ADD;
   1954     /* test ebx, ebx */ /* 0x360B262F: test ebx, ebx */
   1955     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1956     _cf = 0;
   1957     _flag_k = FK_TEST;
   1958     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2779; /* 0x360B2631: je 0x360b2779 */
   1959 L_360B2637:
   1960     edx = MEM32(esi + 0x34); /* 0x360B2637: mov edx, dword ptr [esi + 0x34] */
   1961     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu);
   1962     edx = edx & 0xFFFFFFFEu; /* 0x360B263A: and edx, 0xfffffffe */
   1963     _cf = 0;
   1964     _flag_k = FK_TEST;
   1965     eax = edx; /* 0x360B263D: mov eax, edx */
   1966     PUSH32(esp, eax); /* 0x360B263F: push eax */
   1967     MEM32(esi + 0x34) = edx; /* 0x360B2640: mov dword ptr [esi + 0x34], edx */
   1968     edx = MEM32(esi); /* 0x360B2643: mov edx, dword ptr [esi] */
   1969     PUSH32(esp, 0); /* 0x360B2645: push 0 */
   1970     ecx = esi; /* 0x360B2647: mov ecx, esi */
   1971     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B2649: call dword ptr [edx + 8] */
   1972     RECOMP_FLAGS_IN();
   1973     ecx = edi; /* 0x360B264C: mov ecx, edi */
   1974     RECOMP_ICALL(MEM32(0x3616FCA0)); /* 0x360B264E: call dword ptr [0x3616fca0] */
   1975     RECOMP_FLAGS_IN();
   1976     ecx = edi; /* 0x360B2654: mov ecx, edi */
   1977     RECOMP_ICALL(MEM32(0x3616FC9C)); /* 0x360B2656: call dword ptr [0x3616fc9c] */
   1978     RECOMP_FLAGS_IN();
   1979     ecx = edi; /* 0x360B265C: mov ecx, edi */
   1980     RECOMP_ICALL(MEM32(0x3616FC98)); /* 0x360B265E: call dword ptr [0x3616fc98] */
   1981     RECOMP_FLAGS_IN();
   1982     ecx = MEM32(0x3616FC1C); /* 0x360B2664: mov ecx, dword ptr [0x3616fc1c] */
   1983     edx = MEM32(ebx); /* 0x360B266A: mov edx, dword ptr [ebx] */
   1984     PUSH32(esp, ecx); /* 0x360B266C: push ecx */
   1985     ecx = MEM32(0x3616FC18); /* 0x360B266D: mov ecx, dword ptr [0x3616fc18] */
   1986     eax = esi; /* 0x360B2673: mov eax, esi */
   1987     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1988     _cf = (eax) != 0;
   1989     eax = (uint32_t)(-(int32_t)eax); /* 0x360B2675: neg eax */
   1990     _flag_k = FK_CMP;
   1991     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B2677: sbb eax, eax */
   1992       eax = _sc ? 0xFFFFFFFFu : 0;
   1993       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1994       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1995     PUSH32(esp, ecx); /* 0x360B2679: push ecx */
   1996     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1997     eax = eax & edi; /* 0x360B267A: and eax, edi */
   1998     _cf = 0;
   1999     _flag_k = FK_TEST;
   2000     PUSH32(esp, eax); /* 0x360B267C: push eax */
   2001     ecx = ebx; /* 0x360B267D: mov ecx, ebx */
   2002     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360B267F: call dword ptr [edx + 0x1c] */
   2003     RECOMP_FLAGS_IN();
   2004     PUSH32(esp, 0); /* 0x360B2682: push 0 */
   2005     PUSH32(esp, 0x361B2CF8u); /* 0x360B2684: push 0x361b2cf8 */
   2006     PUSH32(esp, 0x361B2CC0u); /* 0x360B2689: push 0x361b2cc0 */
   2007     PUSH32(esp, 0); /* 0x360B268E: push 0 */
   2008     PUSH32(esp, ebx); /* 0x360B2690: push ebx */
   2009     RECOMP_ICALL(0x3615FD86u); /* 0x360B2691: call 0x3615fd86 */ /* not lifted */
   2010     RECOMP_FLAGS_IN();
   2011     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2012     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2013     esp = esp + 0x14u; /* 0x360B2696: add esp, 0x14 */
   2014     _flag_k = FK_ADD;
   2015     /* test eax, eax */ /* 0x360B2699: test eax, eax */
   2016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2017     _cf = 0;
   2018     _flag_k = FK_TEST;
   2019     if (TEST_Z(_flag_a, _flag_b)) goto L_360B26AD; /* 0x360B269B: je 0x360b26ad */
   2020 L_360B269D:
   2021     edx = MEM32(eax); /* 0x360B269D: mov edx, dword ptr [eax] */
   2022     PUSH32(esp, esi); /* 0x360B269F: push esi */
   2023     ecx = eax; /* 0x360B26A0: mov ecx, eax */
   2024     RECOMP_ICALL(MEM32(edx + 0x10C)); /* 0x360B26A2: call dword ptr [edx + 0x10c] */
   2025     RECOMP_FLAGS_IN();
   2026     goto L_360B2779; /* 0x360B26A8: jmp 0x360b2779 */
   2027 L_360B26AD:
   2028     PUSH32(esp, 0); /* 0x360B26AD: push 0 */
   2029     PUSH32(esp, 0x361B2CD8u); /* 0x360B26AF: push 0x361b2cd8 */
   2030     PUSH32(esp, 0x361B2CC0u); /* 0x360B26B4: push 0x361b2cc0 */
   2031     PUSH32(esp, 0); /* 0x360B26B9: push 0 */
   2032     PUSH32(esp, ebx); /* 0x360B26BB: push ebx */
   2033     RECOMP_ICALL(0x3615FD86u); /* 0x360B26BC: call 0x3615fd86 */ /* not lifted */
   2034     RECOMP_FLAGS_IN();
   2035     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2036     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2037     esp = esp + 0x14u; /* 0x360B26C1: add esp, 0x14 */
   2038     _flag_k = FK_ADD;
   2039     /* test eax, eax */ /* 0x360B26C4: test eax, eax */
   2040     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2041     _cf = 0;
   2042     _flag_k = FK_TEST;
   2043     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2779; /* 0x360B26C6: je 0x360b2779 */
   2044 L_360B26CC:
   2045     ecx = MEM32(eax + 0x150); /* 0x360B26CC: mov ecx, dword ptr [eax + 0x150] */
   2046     PUSH32(esp, esi); /* 0x360B26D2: push esi */
   2047     RECOMP_ICALL(0x36063340u); /* 0x360B26D3: call 0x36063340 */ /* not lifted */
   2048     RECOMP_FLAGS_IN();
   2049     goto L_360B2779; /* 0x360B26D8: jmp 0x360b2779 */
   2050 L_360B26DD:
   2051     eax = MEM32(ebx + 0x50); /* 0x360B26DD: mov eax, dword ptr [ebx + 0x50] */
   2052     PUSH32(esp, eax); /* 0x360B26E0: push eax */
   2053     RECOMP_ICALL(MEM32(0x36170044)); /* 0x360B26E1: call dword ptr [0x36170044] */
   2054     RECOMP_FLAGS_IN();
   2055     ebx = eax; /* 0x360B26E7: mov ebx, eax */
   2056     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2057     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2058     esp = esp + 4; /* 0x360B26E9: add esp, 4 */
   2059     _flag_k = FK_ADD;
   2060     /* test ebx, ebx */ /* 0x360B26EC: test ebx, ebx */
   2061     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2062     _cf = 0;
   2063     _flag_k = FK_TEST;
   2064     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2827; /* 0x360B26EE: je 0x360b2827 */
   2065 L_360B26F4:
   2066     ecx = ebx; /* 0x360B26F4: mov ecx, ebx */
   2067     RECOMP_ICALL(MEM32(0x361700F0)); /* 0x360B26F6: call dword ptr [0x361700f0] */
   2068     RECOMP_FLAGS_IN();
   2069     /* test LO8(eax), LO8(eax) */ /* 0x360B26FC: test al, al */
   2070     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2071     _cf = 0;
   2072     _flag_k = FK_NARROW(FK_TEST, 24);
   2073     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B2827; /* 0x360B26FE: jne 0x360b2827 */
   2074 L_360B2704:
   2075     ecx = MEM32(ebp + (-0x4)); /* 0x360B2704: mov ecx, dword ptr [ebp - 4] */
   2076     eax = ecx + 0x34; /* 0x360B2707: lea eax, [ecx + 0x34] */
   2077     MEM32(ebp + 0x8) = eax; /* 0x360B270A: mov dword ptr [ebp + 8], eax */
   2078     edx = MEM32(eax); /* 0x360B270D: mov edx, dword ptr [eax] */
   2079     ecx = MEM32(eax + 0x4); /* 0x360B270F: mov ecx, dword ptr [eax + 4] */
   2080     MEM32(ebp + (-0x10)) = edx; /* 0x360B2712: mov dword ptr [ebp - 0x10], edx */
   2081     edx = MEM32(eax + 0x8); /* 0x360B2715: mov edx, dword ptr [eax + 8] */
   2082     MEM32(ebp + (-0xC)) = ecx; /* 0x360B2718: mov dword ptr [ebp - 0xc], ecx */
   2083     ecx = ebx; /* 0x360B271B: mov ecx, ebx */
   2084     MEM32(ebp + (-0x8)) = edx; /* 0x360B271D: mov dword ptr [ebp - 8], edx */
   2085     RECOMP_ICALL(MEM32(0x361700C0)); /* 0x360B2720: call dword ptr [0x361700c0] */
   2086     RECOMP_FLAGS_IN();
   2087     edx = MEM32(eax); /* 0x360B2726: mov edx, dword ptr [eax] */
   2088     PUSH32(esp, 0); /* 0x360B2728: push 0 */
   2089     PUSH32(esp, 0); /* 0x360B272A: push 0 */
   2090     ecx = ebp + (-0x10); /* 0x360B272C: lea ecx, [ebp - 0x10] */
   2091     PUSH32(esp, ecx); /* 0x360B272F: push ecx */
   2092     ecx = eax; /* 0x360B2730: mov ecx, eax */
   2093     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360B2732: call dword ptr [edx + 0x20] */
   2094     RECOMP_FLAGS_IN();
   2095     /* cmp LO8(eax), 1 */ /* 0x360B2735: cmp al, 1 */
   2096     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2098     _flag_k = FK_NARROW(FK_CMP, 24);
   2099     if (CMP_NE(_flag_a, _flag_b)) goto L_360B274D; /* 0x360B2737: jne 0x360b274d */
   2100 L_360B2739:
   2101     eax = MEM32(ebp + (-0x10)); /* 0x360B2739: mov eax, dword ptr [ebp - 0x10] */
   2102     edx = MEM32(ebp + 0x8); /* 0x360B273C: mov edx, dword ptr [ebp + 8] */
   2103     ecx = MEM32(ebp + (-0xC)); /* 0x360B273F: mov ecx, dword ptr [ebp - 0xc] */
   2104     MEM32(edx) = eax; /* 0x360B2742: mov dword ptr [edx], eax */
   2105     eax = MEM32(ebp + (-0x8)); /* 0x360B2744: mov eax, dword ptr [ebp - 8] */
   2106     MEM32(edx + 0x4) = ecx; /* 0x360B2747: mov dword ptr [edx + 4], ecx */
   2107     MEM32(edx + 0x8) = eax; /* 0x360B274A: mov dword ptr [edx + 8], eax */
   2108 L_360B274D:
   2109     ecx = MEM32(ebp + (-0x4)); /* 0x360B274D: mov ecx, dword ptr [ebp - 4] */
   2110     edx = MEM32(ebx); /* 0x360B2750: mov edx, dword ptr [ebx] */
   2111     eax = esi; /* 0x360B2752: mov eax, esi */
   2112     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2113     _cf = (eax) != 0;
   2114     eax = (uint32_t)(-(int32_t)eax); /* 0x360B2754: neg eax */
   2115     _flag_k = FK_CMP;
   2116     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B2756: sbb eax, eax */
   2117       eax = _sc ? 0xFFFFFFFFu : 0;
   2118       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2119       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2120     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u);
   2121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2122     ecx = ecx + 0x40u; /* 0x360B2758: add ecx, 0x40 */
   2123     _flag_k = FK_ADD;
   2124     PUSH32(esp, ecx); /* 0x360B275B: push ecx */
   2125     ecx = MEM32(ebp + 0x8); /* 0x360B275C: mov ecx, dword ptr [ebp + 8] */
   2126     PUSH32(esp, ecx); /* 0x360B275F: push ecx */
   2127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2128     eax = eax & edi; /* 0x360B2760: and eax, edi */
   2129     _cf = 0;
   2130     _flag_k = FK_TEST;
   2131     PUSH32(esp, eax); /* 0x360B2762: push eax */
   2132     ecx = ebx; /* 0x360B2763: mov ecx, ebx */
   2133     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360B2765: call dword ptr [edx + 0x1c] */
   2134     RECOMP_FLAGS_IN();
   2135     edx = MEM32(esi); /* 0x360B2768: mov edx, dword ptr [esi] */
   2136     PUSH32(esp, 1); /* 0x360B276A: push 1 */
   2137     ecx = esi; /* 0x360B276C: mov ecx, esi */
   2138     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x360B276E: call dword ptr [edx + 0x18] */
   2139     RECOMP_FLAGS_IN();
   2140     ecx = edi; /* 0x360B2771: mov ecx, edi */
   2141     RECOMP_ICALL(MEM32(0x3616FC6C)); /* 0x360B2773: call dword ptr [0x3616fc6c] */
   2142     RECOMP_FLAGS_IN();
   2143 L_360B2779:
   2144     eax = MEM32(esi); /* 0x360B2779: mov eax, dword ptr [esi] */
   2145     PUSH32(esp, 0x362EA510u); /* 0x360B277B: push 0x362ea510 */
   2146     PUSH32(esp, 0); /* 0x360B2780: push 0 */
   2147     PUSH32(esp, esi); /* 0x360B2782: push esi */
   2148     PUSH32(esp, 0xAu); /* 0x360B2783: push 0xa */
   2149     ecx = esi; /* 0x360B2785: mov ecx, esi */
   2150     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x360B2787: call dword ptr [eax + 0x30] */
   2151     RECOMP_FLAGS_IN();
   2152     edx = MEM32(esi); /* 0x360B278A: mov edx, dword ptr [esi] */
   2153     PUSH32(esp, 2); /* 0x360B278C: push 2 */
   2154     PUSH32(esp, 0x190u); /* 0x360B278E: push 0x190 */
   2155     ecx = esi; /* 0x360B2793: mov ecx, esi */
   2156     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B2795: call dword ptr [edx + 4] */
   2157     RECOMP_FLAGS_IN();
   2158     /* test eax, eax */ /* 0x360B2798: test eax, eax */
   2159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2160     _cf = 0;
   2161     _flag_k = FK_TEST;
   2162     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2827; /* 0x360B279A: je 0x360b2827 */
   2163 L_360B27A0:
   2164     eax = MEM32(esi); /* 0x360B27A0: mov eax, dword ptr [esi] */
   2165     PUSH32(esp, 2); /* 0x360B27A2: push 2 */
   2166     PUSH32(esp, 0x190u); /* 0x360B27A4: push 0x190 */
   2167     ecx = esi; /* 0x360B27A9: mov ecx, esi */
   2168     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B27AB: call dword ptr [eax + 4] */
   2169     RECOMP_FLAGS_IN();
   2170     MEM32(ebp + 0x8) = eax; /* 0x360B27AE: mov dword ptr [ebp + 8], eax */
   2171     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x360B27B1: fild dword ptr [ebp + 8] */
   2172     _st[0] *= (double)*(float*)ADDR(0x361708D4); /* 0x360B27B4: fmul dword ptr [0x361708d4] */
   2173     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360B27BA: fcom dword ptr [0x3617040c] */
   2174     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B27C0: fnstsw ax */
   2175     /* test HI8(eax), 1 */ /* 0x360B27C2: test ah, 1 */
   2176     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2177     _cf = 0;
   2178     _flag_k = FK_NARROW(FK_TEST, 24);
   2179     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B27DC; /* 0x360B27C5: jne 0x360b27dc */
   2180 L_360B27C7:
   2181     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x360B27C7: fcom qword ptr [0x361708b8] */
   2182     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B27CD: fnstsw ax */
   2183     /* test HI8(eax), 1 */ /* 0x360B27CF: test ah, 1 */
   2184     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2185     _cf = 0;
   2186     _flag_k = FK_NARROW(FK_TEST, 24);
   2187     if (TEST_Z(_flag_a, _flag_b)) goto L_360B27DC; /* 0x360B27D2: je 0x360b27dc */
   2188 L_360B27D4:
   2189     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360B27D4: fmul dword ptr [0x36170464] */
   2190     goto L_360B27FD; /* 0x360B27DA: jmp 0x360b27fd */
   2191 L_360B27DC:
   2192     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x360B27DC: fmul dword ptr [0x361708b4] */
   2193     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2194     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2195     esp = esp - 8; /* 0x360B27E2: sub esp, 8 */
   2196     _flag_k = FK_CMP;
   2197     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x360B27E5: fst dword ptr [ebp + 8] */
   2198     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x360B27E8: fstp qword ptr [esp] */
   2199     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x360B27EB: call dword ptr [0x3616f198] */
   2200     RECOMP_FLAGS_IN();
   2201     _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x360B27F1: fsubr dword ptr [ebp + 8] */
   2202     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2204     esp = esp + 8; /* 0x360B27F4: add esp, 8 */
   2205     _flag_k = FK_ADD;
   2206     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x360B27F7: fmul dword ptr [0x361708b0] */
   2207 L_360B27FD:
   2208     fp_push(_st[0]); /* 0x360B27FD: fld st(0) */
   2209     edx = ebp + (-0x14); /* 0x360B27FF: lea edx, [ebp - 0x14] */
   2210     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x360B2802: fsin  */
   2211     PUSH32(esp, edx); /* 0x360B2804: push edx */
   2212     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360B2805: fld dword ptr [0x3617040c] */
   2213     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x360B280B: fst dword ptr [ebp + 8] */
   2214     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x360B280E: fstp dword ptr [ebp - 0x14] */
   2215     ecx = MEM32(ebp + 0x8); /* 0x360B2811: mov ecx, dword ptr [ebp + 8] */
   2216     MEM32(ebp + (-0xC)) = ecx; /* 0x360B2814: mov dword ptr [ebp - 0xc], ecx */
   2217     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x360B2817: fstp dword ptr [ebp - 0x10] */
   2218     ecx = edi; /* 0x360B281A: mov ecx, edi */
   2219     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360B281C: fcos  */
   2220     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x360B281E: fstp dword ptr [ebp - 8] */
   2221     RECOMP_ICALL(MEM32(0x3616FC68)); /* 0x360B2821: call dword ptr [0x3616fc68] */
   2222     RECOMP_FLAGS_IN();
   2223 L_360B2827:
   2224     edi = POP32_VAL(esp); /* 0x360B2827: pop edi */
   2225     esi = POP32_VAL(esp); /* 0x360B2828: pop esi */
   2226     ebx = POP32_VAL(esp); /* 0x360B2829: pop ebx */
   2227     esp = ebp; /* 0x360B282A: mov esp, ebp */
   2228     ebp = POP32_VAL(esp); /* 0x360B282C: pop ebp */
   2229     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B282D: ret 4 */
   2230     RECOMP_REGS_OUT();
   2231 }
   2232 
   2233 void sub_360B2779(void) {
   2234     int _fpu_cmp = 0;
   2235     uint32_t _cf = 0;
   2236     int _df = 1;
   2237     uint32_t _flag_k = FK_NONE;
   2238     uint32_t _flag_a = 0, _flag_b = 0;
   2239     uint32_t _itail_tgt = 0;
   2240     RECOMP_REGS_LOCALS
   2241     RECOMP_ENTER(0x360B2779u);
   2242 
   2243 L_360B2779:
   2244     eax = MEM32(esi); /* 0x360B2779: mov eax, dword ptr [esi] */
   2245     PUSH32(esp, 0x362EA510u); /* 0x360B277B: push 0x362ea510 */
   2246     PUSH32(esp, 0); /* 0x360B2780: push 0 */
   2247     PUSH32(esp, esi); /* 0x360B2782: push esi */
   2248     PUSH32(esp, 0xAu); /* 0x360B2783: push 0xa */
   2249     ecx = esi; /* 0x360B2785: mov ecx, esi */
   2250     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x360B2787: call dword ptr [eax + 0x30] */
   2251     RECOMP_FLAGS_IN();
   2252     edx = MEM32(esi); /* 0x360B278A: mov edx, dword ptr [esi] */
   2253     PUSH32(esp, 2); /* 0x360B278C: push 2 */
   2254     PUSH32(esp, 0x190u); /* 0x360B278E: push 0x190 */
   2255     ecx = esi; /* 0x360B2793: mov ecx, esi */
   2256     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B2795: call dword ptr [edx + 4] */
   2257     RECOMP_FLAGS_IN();
   2258     /* test eax, eax */ /* 0x360B2798: test eax, eax */
   2259     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2260     _cf = 0;
   2261     _flag_k = FK_TEST;
   2262     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2827; /* 0x360B279A: je 0x360b2827 */
   2263 L_360B27A0:
   2264     eax = MEM32(esi); /* 0x360B27A0: mov eax, dword ptr [esi] */
   2265     PUSH32(esp, 2); /* 0x360B27A2: push 2 */
   2266     PUSH32(esp, 0x190u); /* 0x360B27A4: push 0x190 */
   2267     ecx = esi; /* 0x360B27A9: mov ecx, esi */
   2268     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B27AB: call dword ptr [eax + 4] */
   2269     RECOMP_FLAGS_IN();
   2270     MEM32(ebp + 0x8) = eax; /* 0x360B27AE: mov dword ptr [ebp + 8], eax */
   2271     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x360B27B1: fild dword ptr [ebp + 8] */
   2272     _st[0] *= (double)*(float*)ADDR(0x361708D4); /* 0x360B27B4: fmul dword ptr [0x361708d4] */
   2273     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360B27BA: fcom dword ptr [0x3617040c] */
   2274     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B27C0: fnstsw ax */
   2275     /* test HI8(eax), 1 */ /* 0x360B27C2: test ah, 1 */
   2276     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2277     _cf = 0;
   2278     _flag_k = FK_NARROW(FK_TEST, 24);
   2279     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B27DC; /* 0x360B27C5: jne 0x360b27dc */
   2280 L_360B27C7:
   2281     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x361708B8)); /* 0x360B27C7: fcom qword ptr [0x361708b8] */
   2282     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360B27CD: fnstsw ax */
   2283     /* test HI8(eax), 1 */ /* 0x360B27CF: test ah, 1 */
   2284     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   2285     _cf = 0;
   2286     _flag_k = FK_NARROW(FK_TEST, 24);
   2287     if (TEST_Z(_flag_a, _flag_b)) goto L_360B27DC; /* 0x360B27D2: je 0x360b27dc */
   2288 L_360B27D4:
   2289     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360B27D4: fmul dword ptr [0x36170464] */
   2290     goto L_360B27FD; /* 0x360B27DA: jmp 0x360b27fd */
   2291 L_360B27DC:
   2292     _st[0] *= (double)*(float*)ADDR(0x361708B4); /* 0x360B27DC: fmul dword ptr [0x361708b4] */
   2293     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2294     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2295     esp = esp - 8; /* 0x360B27E2: sub esp, 8 */
   2296     _flag_k = FK_CMP;
   2297     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x360B27E5: fst dword ptr [ebp + 8] */
   2298     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x360B27E8: fstp qword ptr [esp] */
   2299     RECOMP_ICALL(MEM32(0x3616F198)); /* 0x360B27EB: call dword ptr [0x3616f198] */
   2300     RECOMP_FLAGS_IN();
   2301     _st[0] = (double)*(float*)ADDR(ebp + 0x8) - _st[0]; /* 0x360B27F1: fsubr dword ptr [ebp + 8] */
   2302     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2304     esp = esp + 8; /* 0x360B27F4: add esp, 8 */
   2305     _flag_k = FK_ADD;
   2306     _st[0] *= (double)*(float*)ADDR(0x361708B0); /* 0x360B27F7: fmul dword ptr [0x361708b0] */
   2307 L_360B27FD:
   2308     fp_push(_st[0]); /* 0x360B27FD: fld st(0) */
   2309     edx = ebp + (-0x14); /* 0x360B27FF: lea edx, [ebp - 0x14] */
   2310     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x360B2802: fsin  */
   2311     PUSH32(esp, edx); /* 0x360B2804: push edx */
   2312     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360B2805: fld dword ptr [0x3617040c] */
   2313     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x360B280B: fst dword ptr [ebp + 8] */
   2314     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x360B280E: fstp dword ptr [ebp - 0x14] */
   2315     ecx = MEM32(ebp + 0x8); /* 0x360B2811: mov ecx, dword ptr [ebp + 8] */
   2316     MEM32(ebp + (-0xC)) = ecx; /* 0x360B2814: mov dword ptr [ebp - 0xc], ecx */
   2317     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x360B2817: fstp dword ptr [ebp - 0x10] */
   2318     ecx = edi; /* 0x360B281A: mov ecx, edi */
   2319     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360B281C: fcos  */
   2320     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x360B281E: fstp dword ptr [ebp - 8] */
   2321     RECOMP_ICALL(MEM32(0x3616FC68)); /* 0x360B2821: call dword ptr [0x3616fc68] */
   2322     RECOMP_FLAGS_IN();
   2323 L_360B2827:
   2324     edi = POP32_VAL(esp); /* 0x360B2827: pop edi */
   2325     esi = POP32_VAL(esp); /* 0x360B2828: pop esi */
   2326     ebx = POP32_VAL(esp); /* 0x360B2829: pop ebx */
   2327     esp = ebp; /* 0x360B282A: mov esp, ebp */
   2328     ebp = POP32_VAL(esp); /* 0x360B282C: pop ebp */
   2329     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B282D: ret 4 */
   2330     RECOMP_REGS_OUT();
   2331 }
   2332 
   2333 void sub_360B27FD(void) {
   2334     int _fpu_cmp = 0;
   2335     uint32_t _cf = 0;
   2336     int _df = 1;
   2337     uint32_t _flag_k = FK_NONE;
   2338     uint32_t _flag_a = 0, _flag_b = 0;
   2339     uint32_t _itail_tgt = 0;
   2340     RECOMP_REGS_LOCALS
   2341     RECOMP_ENTER(0x360B27FDu);
   2342 
   2343 L_360B27FD:
   2344     fp_push(_st[0]); /* 0x360B27FD: fld st(0) */
   2345     edx = ebp + (-0x14); /* 0x360B27FF: lea edx, [ebp - 0x14] */
   2346     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x360B2802: fsin  */
   2347     PUSH32(esp, edx); /* 0x360B2804: push edx */
   2348     fp_push(*(float*)&MEM32(0x3617040C)); /* 0x360B2805: fld dword ptr [0x3617040c] */
   2349     { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x8) = _v; } /* 0x360B280B: fst dword ptr [ebp + 8] */
   2350     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x360B280E: fstp dword ptr [ebp - 0x14] */
   2351     ecx = MEM32(ebp + 0x8); /* 0x360B2811: mov ecx, dword ptr [ebp + 8] */
   2352     MEM32(ebp + (-0xC)) = ecx; /* 0x360B2814: mov dword ptr [ebp - 0xc], ecx */
   2353     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x360B2817: fstp dword ptr [ebp - 0x10] */
   2354     ecx = edi; /* 0x360B281A: mov ecx, edi */
   2355     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360B281C: fcos  */
   2356     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x360B281E: fstp dword ptr [ebp - 8] */
   2357     RECOMP_ICALL(MEM32(0x3616FC68)); /* 0x360B2821: call dword ptr [0x3616fc68] */
   2358     RECOMP_FLAGS_IN();
   2359     edi = POP32_VAL(esp); /* 0x360B2827: pop edi */
   2360     esi = POP32_VAL(esp); /* 0x360B2828: pop esi */
   2361     ebx = POP32_VAL(esp); /* 0x360B2829: pop ebx */
   2362     esp = ebp; /* 0x360B282A: mov esp, ebp */
   2363     ebp = POP32_VAL(esp); /* 0x360B282C: pop ebp */
   2364     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B282D: ret 4 */
   2365     RECOMP_REGS_OUT();
   2366 }
   2367 
   2368 void sub_360B2830(void) {
   2369     int _fpu_cmp = 0;
   2370     uint32_t _cf = 0;
   2371     int _df = 1;
   2372     uint32_t _flag_k = FK_NONE;
   2373     uint32_t _flag_a = 0, _flag_b = 0;
   2374     uint32_t _itail_tgt = 0;
   2375     RECOMP_REGS_LOCALS
   2376     RECOMP_ENTER(0x360B2830u);
   2377 
   2378 L_360B2830:
   2379     PUSH32(esp, ebp); /* 0x360B2830: push ebp */
   2380     ebp = esp; /* 0x360B2831: mov ebp, esp */
   2381     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2383     esp = esp - 8; /* 0x360B2833: sub esp, 8 */
   2384     _flag_k = FK_CMP;
   2385     PUSH32(esp, ebx); /* 0x360B2836: push ebx */
   2386     ebx = ecx; /* 0x360B2837: mov ebx, ecx */
   2387     ecx = MEM32(ebx + 0x64); /* 0x360B2839: mov ecx, dword ptr [ebx + 0x64] */
   2388     eax = MEM32(ecx + 0x4); /* 0x360B283C: mov eax, dword ptr [ecx + 4] */
   2389     ecx = MEM32(ecx + 0x8); /* 0x360B283F: mov ecx, dword ptr [ecx + 8] */
   2390     /* cmp eax, ecx */ /* 0x360B2842: cmp eax, ecx */
   2391     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2392     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2393     _flag_k = FK_CMP;
   2394     PUSH32(esp, esi); /* 0x360B2844: push esi */
   2395     esi = MEM32(ebp + 0x8); /* 0x360B2845: mov esi, dword ptr [ebp + 8] */
   2396     PUSH32(esp, edi); /* 0x360B2848: push edi */
   2397     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B2866; /* 0x360B2849: je 0x360b2866 */
   2398 L_360B284B:
   2399     /* cmp MEM32(eax), 0x17u */ /* 0x360B284B: cmp dword ptr [eax], 0x17 */
   2400     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x17u);
   2401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2402     _flag_k = FK_CMP;
   2403     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B2859; /* 0x360B284E: je 0x360b2859 */
   2404 L_360B2850:
   2405     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   2406     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2407     eax = eax + 8; /* 0x360B2850: add eax, 8 */
   2408     _flag_k = FK_ADD;
   2409     /* cmp eax, ecx */ /* 0x360B2853: cmp eax, ecx */
   2410     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2411     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2412     _flag_k = FK_CMP;
   2413     RECOMP_BACKEDGE();
   2414     if (CMP_NE(_flag_a, _flag_b)) goto L_360B284B; /* 0x360B2855: jne 0x360b284b */
   2415 L_360B2857:
   2416     goto L_360B2866; /* 0x360B2857: jmp 0x360b2866 */
   2417 L_360B2859:
   2418     eax = MEM32(eax + 0x4); /* 0x360B2859: mov eax, dword ptr [eax + 4] */
   2419     edx = MEM32(esi); /* 0x360B285C: mov edx, dword ptr [esi] */
   2420     PUSH32(esp, eax); /* 0x360B285E: push eax */
   2421     PUSH32(esp, 0x17u); /* 0x360B285F: push 0x17 */
   2422     ecx = esi; /* 0x360B2861: mov ecx, esi */
   2423     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B2863: call dword ptr [edx + 8] */
   2424     RECOMP_FLAGS_IN();
   2425 L_360B2866:
   2426     edx = MEM32(esi); /* 0x360B2866: mov edx, dword ptr [esi] */
   2427     PUSH32(esp, 2); /* 0x360B2868: push 2 */
   2428     PUSH32(esp, 0x17u); /* 0x360B286A: push 0x17 */
   2429     ecx = esi; /* 0x360B286C: mov ecx, esi */
   2430     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B286E: call dword ptr [edx + 4] */
   2431     RECOMP_FLAGS_IN();
   2432     MEM32(ebp + (-0x4)) = eax; /* 0x360B2871: mov dword ptr [ebp - 4], eax */
   2433     eax = ebp + (-0x8); /* 0x360B2874: lea eax, [ebp - 8] */
   2434     PUSH32(esp, eax); /* 0x360B2877: push eax */
   2435     ecx = esi; /* 0x360B2878: mov ecx, esi */
   2436     MEM32(ebp + (-0x8)) = 0x000F4254u; /* 0x360B287A: mov dword ptr [ebp - 8], 0xf4254 */
   2437     RECOMP_ICALL(0x3609F0E0u); /* 0x360B2881: call 0x3609f0e0 */ /* not lifted */
   2438     RECOMP_FLAGS_IN();
   2439     eax = (int32_t)(int8_t)MEM8(ebx + 0x78); /* 0x360B2886: movsx eax, byte ptr [ebx + 0x78] */
   2440     edx = MEM32(esi); /* 0x360B288A: mov edx, dword ptr [esi] */
   2441     PUSH32(esp, eax); /* 0x360B288C: push eax */
   2442     PUSH32(esp, 0x37u); /* 0x360B288D: push 0x37 */
   2443     ecx = esi; /* 0x360B288F: mov ecx, esi */
   2444     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B2891: call dword ptr [edx + 8] */
   2445     RECOMP_FLAGS_IN();
   2446     eax = (int32_t)(int8_t)MEM8(ebx + 0x79); /* 0x360B2894: movsx eax, byte ptr [ebx + 0x79] */
   2447     edx = MEM32(esi); /* 0x360B2898: mov edx, dword ptr [esi] */
   2448     PUSH32(esp, eax); /* 0x360B289A: push eax */
   2449     PUSH32(esp, 0xDCu); /* 0x360B289B: push 0xdc */
   2450     ecx = esi; /* 0x360B28A0: mov ecx, esi */
   2451     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B28A2: call dword ptr [edx + 8] */
   2452     RECOMP_FLAGS_IN();
   2453     ecx = esi; /* 0x360B28A5: mov ecx, esi */
   2454     RECOMP_ICALL(0x3608F430u); /* 0x360B28A7: call 0x3608f430 */ /* not lifted */
   2455     RECOMP_FLAGS_IN();
   2456     eax = MEM32(ebx + 0x64); /* 0x360B28AC: mov eax, dword ptr [ebx + 0x64] */
   2457     edi = MEM32(eax + 0x4); /* 0x360B28AF: mov edi, dword ptr [eax + 4] */
   2458     /* cmp edi, MEM32(eax + 0x8) */ /* 0x360B28B2: cmp edi, dword ptr [eax + 8] */
   2459     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2461     _flag_k = FK_CMP;
   2462     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B28F8; /* 0x360B28B5: je 0x360b28f8 */
   2463 L_360B28B7:
   2464     eax = MEM32(edi); /* 0x360B28B7: mov eax, dword ptr [edi] */
   2465     edx = MEM32(esi); /* 0x360B28B9: mov edx, dword ptr [esi] */
   2466     PUSH32(esp, eax); /* 0x360B28BB: push eax */
   2467     ecx = esi; /* 0x360B28BC: mov ecx, esi */
   2468     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360B28BE: call dword ptr [edx + 0x10] */
   2469     RECOMP_FLAGS_IN();
   2470     /* test LO8(eax), LO8(eax) */ /* 0x360B28C1: test al, al */
   2471     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2472     _cf = 0;
   2473     _flag_k = FK_NARROW(FK_TEST, 24);
   2474     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B28D3; /* 0x360B28C3: jne 0x360b28d3 */
   2475 L_360B28C5:
   2476     ecx = MEM32(edi + 0x4); /* 0x360B28C5: mov ecx, dword ptr [edi + 4] */
   2477     edx = MEM32(edi); /* 0x360B28C8: mov edx, dword ptr [edi] */
   2478     eax = MEM32(esi); /* 0x360B28CA: mov eax, dword ptr [esi] */
   2479     PUSH32(esp, ecx); /* 0x360B28CC: push ecx */
   2480     PUSH32(esp, edx); /* 0x360B28CD: push edx */
   2481     ecx = esi; /* 0x360B28CE: mov ecx, esi */
   2482     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x360B28D0: call dword ptr [eax + 0xc] */
   2483     RECOMP_FLAGS_IN();
   2484 L_360B28D3:
   2485     eax = MEM32(edi); /* 0x360B28D3: mov eax, dword ptr [edi] */
   2486     PUSH32(esp, eax); /* 0x360B28D5: push eax */
   2487     ecx = esi; /* 0x360B28D6: mov ecx, esi */
   2488     RECOMP_ICALL(0x3608ED30u); /* 0x360B28D8: call 0x3608ed30 */ /* not lifted */
   2489     RECOMP_FLAGS_IN();
   2490     eax = MEM32(edi + 0x4); /* 0x360B28DD: mov eax, dword ptr [edi + 4] */
   2491     ecx = MEM32(edi); /* 0x360B28E0: mov ecx, dword ptr [edi] */
   2492     edx = MEM32(esi); /* 0x360B28E2: mov edx, dword ptr [esi] */
   2493     PUSH32(esp, eax); /* 0x360B28E4: push eax */
   2494     PUSH32(esp, ecx); /* 0x360B28E5: push ecx */
   2495     ecx = esi; /* 0x360B28E6: mov ecx, esi */
   2496     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B28E8: call dword ptr [edx + 8] */
   2497     RECOMP_FLAGS_IN();
   2498     edx = MEM32(ebx + 0x64); /* 0x360B28EB: mov edx, dword ptr [ebx + 0x64] */
   2499     eax = MEM32(edx + 0x8); /* 0x360B28EE: mov eax, dword ptr [edx + 8] */
   2500     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   2501     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2502     edi = edi + 8; /* 0x360B28F1: add edi, 8 */
   2503     _flag_k = FK_ADD;
   2504     /* cmp edi, eax */ /* 0x360B28F4: cmp edi, eax */
   2505     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2507     _flag_k = FK_CMP;
   2508     RECOMP_BACKEDGE();
   2509     if (CMP_NE(_flag_a, _flag_b)) goto L_360B28B7; /* 0x360B28F6: jne 0x360b28b7 */
   2510 L_360B28F8:
   2511     eax = MEM32(esi); /* 0x360B28F8: mov eax, dword ptr [esi] */
   2512     PUSH32(esp, 2); /* 0x360B28FA: push 2 */
   2513     PUSH32(esp, 0x1Au); /* 0x360B28FC: push 0x1a */
   2514     ecx = esi; /* 0x360B28FE: mov ecx, esi */
   2515     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B2900: call dword ptr [eax + 4] */
   2516     RECOMP_FLAGS_IN();
   2517     edi = MEM32(esi); /* 0x360B2903: mov edi, dword ptr [esi] */
   2518     PUSH32(esp, 2); /* 0x360B2905: push 2 */
   2519     PUSH32(esp, 0x2BDu); /* 0x360B2907: push 0x2bd */
   2520     ecx = esi; /* 0x360B290C: mov ecx, esi */
   2521     RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x360B290E: call dword ptr [edi + 4] */
   2522     RECOMP_FLAGS_IN();
   2523     PUSH32(esp, eax); /* 0x360B2911: push eax */
   2524     PUSH32(esp, 0x36u); /* 0x360B2912: push 0x36 */
   2525     ecx = esi; /* 0x360B2914: mov ecx, esi */
   2526     RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x360B2916: call dword ptr [edi + 8] */
   2527     RECOMP_FLAGS_IN();
   2528     edx = MEM32(esi); /* 0x360B2919: mov edx, dword ptr [esi] */
   2529     PUSH32(esp, 2); /* 0x360B291B: push 2 */
   2530     PUSH32(esp, 0x1Au); /* 0x360B291D: push 0x1a */
   2531     ecx = esi; /* 0x360B291F: mov ecx, esi */
   2532     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B2921: call dword ptr [edx + 4] */
   2533     RECOMP_FLAGS_IN();
   2534     eax = MEM32(esi); /* 0x360B2924: mov eax, dword ptr [esi] */
   2535     PUSH32(esp, 2); /* 0x360B2926: push 2 */
   2536     PUSH32(esp, 0x1C2u); /* 0x360B2928: push 0x1c2 */
   2537     ecx = esi; /* 0x360B292D: mov ecx, esi */
   2538     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B292F: call dword ptr [eax + 4] */
   2539     RECOMP_FLAGS_IN();
   2540     /* test eax, eax */ /* 0x360B2932: test eax, eax */
   2541     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2542     _cf = 0;
   2543     _flag_k = FK_TEST;
   2544     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2963; /* 0x360B2934: je 0x360b2963 */
   2545 L_360B2936:
   2546     edx = MEM32(esi); /* 0x360B2936: mov edx, dword ptr [esi] */
   2547     PUSH32(esp, 2); /* 0x360B2938: push 2 */
   2548     PUSH32(esp, 7); /* 0x360B293A: push 7 */
   2549     ecx = esi; /* 0x360B293C: mov ecx, esi */
   2550     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B293E: call dword ptr [edx + 4] */
   2551     RECOMP_FLAGS_IN();
   2552     PUSH32(esp, eax); /* 0x360B2941: push eax */
   2553     eax = MEM32(esi); /* 0x360B2942: mov eax, dword ptr [esi] */
   2554     PUSH32(esp, 0); /* 0x360B2944: push 0 */
   2555     PUSH32(esp, 2); /* 0x360B2946: push 2 */
   2556     PUSH32(esp, 0x1C2u); /* 0x360B2948: push 0x1c2 */
   2557     ecx = esi; /* 0x360B294D: mov ecx, esi */
   2558     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B294F: call dword ptr [eax + 4] */
   2559     RECOMP_FLAGS_IN();
   2560     PUSH32(esp, eax); /* 0x360B2952: push eax */
   2561     RECOMP_ICALL(0x36095F20u); /* 0x360B2953: call 0x36095f20 */ /* not lifted */
   2562     RECOMP_FLAGS_IN();
   2563     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2564     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2565     esp = esp + 8; /* 0x360B2958: add esp, 8 */
   2566     _flag_k = FK_ADD;
   2567     PUSH32(esp, eax); /* 0x360B295B: push eax */
   2568     ecx = esi; /* 0x360B295C: mov ecx, esi */
   2569     RECOMP_ICALL(0x3609CA50u); /* 0x360B295E: call 0x3609ca50 */ /* not lifted */
   2570     RECOMP_FLAGS_IN();
   2571 L_360B2963:
   2572     ebx = MEM32(ebx + 0x74); /* 0x360B2963: mov ebx, dword ptr [ebx + 0x74] */
   2573     /* test ebx, ebx */ /* 0x360B2966: test ebx, ebx */
   2574     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2575     _cf = 0;
   2576     _flag_k = FK_TEST;
   2577     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2972; /* 0x360B2968: je 0x360b2972 */
   2578 L_360B296A:
   2579     PUSH32(esp, ebx); /* 0x360B296A: push ebx */
   2580     ecx = esi; /* 0x360B296B: mov ecx, esi */
   2581     RECOMP_ICALL(0x36090D90u); /* 0x360B296D: call 0x36090d90 */ /* not lifted */
   2582     RECOMP_FLAGS_IN();
   2583 L_360B2972:
   2584     edx = MEM32(esi); /* 0x360B2972: mov edx, dword ptr [esi] */
   2585     PUSH32(esp, 0x362EA510u); /* 0x360B2974: push 0x362ea510 */
   2586     PUSH32(esp, 0); /* 0x360B2979: push 0 */
   2587     PUSH32(esp, esi); /* 0x360B297B: push esi */
   2588     PUSH32(esp, 0xAu); /* 0x360B297C: push 0xa */
   2589     ecx = esi; /* 0x360B297E: mov ecx, esi */
   2590     RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x360B2980: call dword ptr [edx + 0x30] */
   2591     RECOMP_FLAGS_IN();
   2592     eax = MEM32(esi); /* 0x360B2983: mov eax, dword ptr [esi] */
   2593     PUSH32(esp, 2); /* 0x360B2985: push 2 */
   2594     PUSH32(esp, 0x2Au); /* 0x360B2987: push 0x2a */
   2595     ecx = esi; /* 0x360B2989: mov ecx, esi */
   2596     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B298B: call dword ptr [eax + 4] */
   2597     RECOMP_FLAGS_IN();
   2598     /* test eax, eax */ /* 0x360B298E: test eax, eax */
   2599     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2600     _cf = 0;
   2601     _flag_k = FK_TEST;
   2602     if (TEST_Z(_flag_a, _flag_b)) goto L_360B29A6; /* 0x360B2990: je 0x360b29a6 */
   2603 L_360B2992:
   2604     edi = MEM32(esi); /* 0x360B2992: mov edi, dword ptr [esi] */
   2605     PUSH32(esp, 2); /* 0x360B2994: push 2 */
   2606     PUSH32(esp, 0x2Au); /* 0x360B2996: push 0x2a */
   2607     ecx = esi; /* 0x360B2998: mov ecx, esi */
   2608     RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x360B299A: call dword ptr [edi + 4] */
   2609     RECOMP_FLAGS_IN();
   2610     PUSH32(esp, eax); /* 0x360B299D: push eax */
   2611     ecx = esi; /* 0x360B299E: mov ecx, esi */
   2612     RECOMP_ICALL(MEM32(edi + 0xB0)); /* 0x360B29A0: call dword ptr [edi + 0xb0] */
   2613     RECOMP_FLAGS_IN();
   2614 L_360B29A6:
   2615     edx = MEM32(esi); /* 0x360B29A6: mov edx, dword ptr [esi] */
   2616     ecx = esi; /* 0x360B29A8: mov ecx, esi */
   2617     RECOMP_ICALL(MEM32(edx + 0xA4)); /* 0x360B29AA: call dword ptr [edx + 0xa4] */
   2618     RECOMP_FLAGS_IN();
   2619     edi = POP32_VAL(esp); /* 0x360B29B0: pop edi */
   2620     esi = POP32_VAL(esp); /* 0x360B29B1: pop esi */
   2621     ebx = POP32_VAL(esp); /* 0x360B29B2: pop ebx */
   2622     esp = ebp; /* 0x360B29B3: mov esp, ebp */
   2623     ebp = POP32_VAL(esp); /* 0x360B29B5: pop ebp */
   2624     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B29B6: ret 4 */
   2625     RECOMP_REGS_OUT();
   2626 }
   2627 
   2628 void sub_360B29C0(void) {
   2629     int _fpu_cmp = 0;
   2630     uint32_t _cf = 0;
   2631     int _df = 1;
   2632     uint32_t _flag_k = FK_NONE;
   2633     uint32_t _flag_a = 0, _flag_b = 0;
   2634     uint32_t _itail_tgt = 0;
   2635     RECOMP_REGS_LOCALS
   2636     RECOMP_ENTER(0x360B29C0u);
   2637 
   2638 L_360B29C0:
   2639     PUSH32(esp, ebp); /* 0x360B29C0: push ebp */
   2640     ebp = esp; /* 0x360B29C1: mov ebp, esp */
   2641     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B29C3: push -1 */
   2642     PUSH32(esp, 0x361672F1u); /* 0x360B29C5: push 0x361672f1 */
   2643     eax = MEM32(FS_BASE + (0)); /* 0x360B29CA: mov eax, dword ptr fs:[0] */
   2644     PUSH32(esp, eax); /* 0x360B29D0: push eax */
   2645     MEM32(FS_BASE + (0)) = esp; /* 0x360B29D1: mov dword ptr fs:[0], esp */
   2646     PUSH32(esp, ecx); /* 0x360B29D8: push ecx */
   2647     PUSH32(esp, esi); /* 0x360B29D9: push esi */
   2648     esi = ecx; /* 0x360B29DA: mov esi, ecx */
   2649     eax = MEM32(esi + (-0x1C)); /* 0x360B29DC: mov eax, dword ptr [esi - 0x1c] */
   2650     /* cmp eax, 0xC773u */ /* 0x360B29DF: cmp eax, 0xc773 */
   2651     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC773u);
   2652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2653     _flag_k = FK_CMP;
   2654     if (CMP_NE(_flag_a, _flag_b)) goto L_360B2A12; /* 0x360B29E4: jne 0x360b2a12 */
   2655 L_360B29E6:
   2656     PUSH32(esp, 0x1A8u); /* 0x360B29E6: push 0x1a8 */
   2657     RECOMP_ICALL(0x3615FD6Au); /* 0x360B29EB: call 0x3615fd6a */ /* not lifted */
   2658     RECOMP_FLAGS_IN();
   2659     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2660     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2661     esp = esp + 4; /* 0x360B29F0: add esp, 4 */
   2662     _flag_k = FK_ADD;
   2663     MEM32(ebp + (-0x10)) = eax; /* 0x360B29F3: mov dword ptr [ebp - 0x10], eax */
   2664     /* test eax, eax */ /* 0x360B29F6: test eax, eax */
   2665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2666     _cf = 0;
   2667     _flag_k = FK_TEST;
   2668     MEM32(ebp + (-0x4)) = 0; /* 0x360B29F8: mov dword ptr [ebp - 4], 0 */
   2669     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2A6C; /* 0x360B29FF: je 0x360b2a6c */
   2670 L_360B2A01:
   2671     edx = MEM32(esi + (-0x18)); /* 0x360B2A01: mov edx, dword ptr [esi - 0x18] */
   2672     esi = MEM32(esi + (-0x1C)); /* 0x360B2A04: mov esi, dword ptr [esi - 0x1c] */
   2673     PUSH32(esp, edx); /* 0x360B2A07: push edx */
   2674     PUSH32(esp, esi); /* 0x360B2A08: push esi */
   2675     ecx = eax; /* 0x360B2A09: mov ecx, eax */
   2676     RECOMP_ICALL(0x3609B190u); /* 0x360B2A0B: call 0x3609b190 */ /* not lifted */
   2677     RECOMP_FLAGS_IN();
   2678     goto L_360B2A6E; /* 0x360B2A10: jmp 0x360b2a6e */
   2679 L_360B2A12:
   2680     /* cmp eax, 0xC769u */ /* 0x360B2A12: cmp eax, 0xc769 */
   2681     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC769u);
   2682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2683     _flag_k = FK_CMP;
   2684     PUSH32(esp, 0x1A8u); /* 0x360B2A17: push 0x1a8 */
   2685     if (CMP_NE(_flag_a, _flag_b)) goto L_360B2A45; /* 0x360B2A1C: jne 0x360b2a45 */
   2686 L_360B2A1E:
   2687     RECOMP_ICALL(0x3615FD6Au); /* 0x360B2A1E: call 0x3615fd6a */ /* not lifted */
   2688     RECOMP_FLAGS_IN();
   2689     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2690     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2691     esp = esp + 4; /* 0x360B2A23: add esp, 4 */
   2692     _flag_k = FK_ADD;
   2693     MEM32(ebp + (-0x10)) = eax; /* 0x360B2A26: mov dword ptr [ebp - 0x10], eax */
   2694     /* test eax, eax */ /* 0x360B2A29: test eax, eax */
   2695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2696     _cf = 0;
   2697     _flag_k = FK_TEST;
   2698     MEM32(ebp + (-0x4)) = 1; /* 0x360B2A2B: mov dword ptr [ebp - 4], 1 */
   2699     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2A6C; /* 0x360B2A32: je 0x360b2a6c */
   2700 L_360B2A34:
   2701     edx = MEM32(esi + (-0x18)); /* 0x360B2A34: mov edx, dword ptr [esi - 0x18] */
   2702     esi = MEM32(esi + (-0x1C)); /* 0x360B2A37: mov esi, dword ptr [esi - 0x1c] */
   2703     PUSH32(esp, edx); /* 0x360B2A3A: push edx */
   2704     PUSH32(esp, esi); /* 0x360B2A3B: push esi */
   2705     ecx = eax; /* 0x360B2A3C: mov ecx, eax */
   2706     RECOMP_ICALL(0x360920C0u); /* 0x360B2A3E: call 0x360920c0 */ /* not lifted */
   2707     RECOMP_FLAGS_IN();
   2708     goto L_360B2A6E; /* 0x360B2A43: jmp 0x360b2a6e */
   2709 L_360B2A45:
   2710     RECOMP_ICALL(0x3615FD6Au); /* 0x360B2A45: call 0x3615fd6a */ /* not lifted */
   2711     RECOMP_FLAGS_IN();
   2712     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2713     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2714     esp = esp + 4; /* 0x360B2A4A: add esp, 4 */
   2715     _flag_k = FK_ADD;
   2716     MEM32(ebp + (-0x10)) = eax; /* 0x360B2A4D: mov dword ptr [ebp - 0x10], eax */
   2717     /* test eax, eax */ /* 0x360B2A50: test eax, eax */
   2718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2719     _cf = 0;
   2720     _flag_k = FK_TEST;
   2721     MEM32(ebp + (-0x4)) = 2; /* 0x360B2A52: mov dword ptr [ebp - 4], 2 */
   2722     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2A6C; /* 0x360B2A59: je 0x360b2a6c */
   2723 L_360B2A5B:
   2724     edx = MEM32(esi + (-0x18)); /* 0x360B2A5B: mov edx, dword ptr [esi - 0x18] */
   2725     esi = MEM32(esi + (-0x1C)); /* 0x360B2A5E: mov esi, dword ptr [esi - 0x1c] */
   2726     PUSH32(esp, edx); /* 0x360B2A61: push edx */
   2727     PUSH32(esp, esi); /* 0x360B2A62: push esi */
   2728     ecx = eax; /* 0x360B2A63: mov ecx, eax */
   2729     RECOMP_ICALL(0x3609C3C0u); /* 0x360B2A65: call 0x3609c3c0 */ /* not lifted */
   2730     RECOMP_FLAGS_IN();
   2731     goto L_360B2A6E; /* 0x360B2A6A: jmp 0x360b2a6e */
   2732 L_360B2A6C:
   2733     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2734     eax = 0; /* 0x360B2A6C: xor eax, eax */
   2735     _cf = 0;
   2736     _flag_k = FK_TEST;
   2737 L_360B2A6E:
   2738     /* test eax, eax */ /* 0x360B2A6E: test eax, eax */
   2739     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2740     _cf = 0;
   2741     _flag_k = FK_TEST;
   2742     esi = POP32_VAL(esp); /* 0x360B2A70: pop esi */
   2743     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2A88; /* 0x360B2A71: je 0x360b2a88 */
   2744 L_360B2A73:
   2745     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Cu);
   2746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2747     eax = eax + 0x8Cu; /* 0x360B2A73: add eax, 0x8c */
   2748     _flag_k = FK_ADD;
   2749     ecx = MEM32(ebp + (-0xC)); /* 0x360B2A78: mov ecx, dword ptr [ebp - 0xc] */
   2750     MEM32(FS_BASE + (0)) = ecx; /* 0x360B2A7B: mov dword ptr fs:[0], ecx */
   2751     esp = ebp; /* 0x360B2A82: mov esp, ebp */
   2752     ebp = POP32_VAL(esp); /* 0x360B2A84: pop ebp */
   2753     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2A85: ret 4 */
   2754 L_360B2A88:
   2755     ecx = MEM32(ebp + (-0xC)); /* 0x360B2A88: mov ecx, dword ptr [ebp - 0xc] */
   2756     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2757     eax = 0; /* 0x360B2A8B: xor eax, eax */
   2758     _cf = 0;
   2759     _flag_k = FK_TEST;
   2760     MEM32(FS_BASE + (0)) = ecx; /* 0x360B2A8D: mov dword ptr fs:[0], ecx */
   2761     esp = ebp; /* 0x360B2A94: mov esp, ebp */
   2762     ebp = POP32_VAL(esp); /* 0x360B2A96: pop ebp */
   2763     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2A97: ret 4 */
   2764     RECOMP_REGS_OUT();
   2765 }
   2766 
   2767 void sub_360B2AA0(void) {
   2768     int _fpu_cmp = 0;
   2769     uint32_t _cf = 0;
   2770     int _df = 1;
   2771     uint32_t _flag_k = FK_NONE;
   2772     uint32_t _flag_a = 0, _flag_b = 0;
   2773     uint32_t _itail_tgt = 0;
   2774     RECOMP_REGS_LOCALS
   2775     RECOMP_ENTER(0x360B2AA0u);
   2776 
   2777 L_360B2AA0:
   2778     PUSH32(esp, ebp); /* 0x360B2AA0: push ebp */
   2779     ebp = esp; /* 0x360B2AA1: mov ebp, esp */
   2780     ecx = MEM32(ebp + 0x8); /* 0x360B2AA3: mov ecx, dword ptr [ebp + 8] */
   2781     eax = MEM32(ecx); /* 0x360B2AA6: mov eax, dword ptr [ecx] */
   2782     RECOMP_ICALL(MEM32(eax + 0x64)); /* 0x360B2AA8: call dword ptr [eax + 0x64] */
   2783     RECOMP_FLAGS_IN();
   2784     ebp = POP32_VAL(esp); /* 0x360B2AAB: pop ebp */
   2785     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2AAC: ret 4 */
   2786     RECOMP_REGS_OUT();
   2787 }
   2788 
   2789 void sub_360B2AB0(void) {
   2790     int _fpu_cmp = 0;
   2791     uint32_t _cf = 0;
   2792     int _df = 1;
   2793     uint32_t _flag_k = FK_NONE;
   2794     uint32_t _flag_a = 0, _flag_b = 0;
   2795     uint32_t _itail_tgt = 0;
   2796     RECOMP_REGS_LOCALS
   2797     RECOMP_ENTER(0x360B2AB0u);
   2798 
   2799 L_360B2AB0:
   2800     PUSH32(esp, ebp); /* 0x360B2AB0: push ebp */
   2801     ebp = esp; /* 0x360B2AB1: mov ebp, esp */
   2802     eax = MEM32(ebp + 0x8); /* 0x360B2AB3: mov eax, dword ptr [ebp + 8] */
   2803     PUSH32(esp, esi); /* 0x360B2AB6: push esi */
   2804     PUSH32(esp, 0); /* 0x360B2AB7: push 0 */
   2805     PUSH32(esp, 0x361B2CF8u); /* 0x360B2AB9: push 0x361b2cf8 */
   2806     PUSH32(esp, 0x361B2CC0u); /* 0x360B2ABE: push 0x361b2cc0 */
   2807     PUSH32(esp, 0); /* 0x360B2AC3: push 0 */
   2808     PUSH32(esp, eax); /* 0x360B2AC5: push eax */
   2809     esi = ecx; /* 0x360B2AC6: mov esi, ecx */
   2810     RECOMP_ICALL(0x3615FD86u); /* 0x360B2AC8: call 0x3615fd86 */ /* not lifted */
   2811     RECOMP_FLAGS_IN();
   2812     edx = MEM32(esi + (-0x20)); /* 0x360B2ACD: mov edx, dword ptr [esi - 0x20] */
   2813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2815     esp = esp + 0x14u; /* 0x360B2AD0: add esp, 0x14 */
   2816     _flag_k = FK_ADD;
   2817     ecx = esi + (-0x20); /* 0x360B2AD3: lea ecx, [esi - 0x20] */
   2818     PUSH32(esp, eax); /* 0x360B2AD6: push eax */
   2819     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360B2AD7: call dword ptr [edx + 0x20] */
   2820     RECOMP_FLAGS_IN();
   2821     esi = POP32_VAL(esp); /* 0x360B2ADA: pop esi */
   2822     ebp = POP32_VAL(esp); /* 0x360B2ADB: pop ebp */
   2823     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2ADC: ret 4 */
   2824     RECOMP_REGS_OUT();
   2825 }
   2826 
   2827 void sub_360B2AE0(void) {
   2828     int _fpu_cmp = 0;
   2829     uint32_t _cf = 0;
   2830     int _df = 1;
   2831     uint32_t _flag_k = FK_NONE;
   2832     uint32_t _flag_a = 0, _flag_b = 0;
   2833     uint32_t _itail_tgt = 0;
   2834     RECOMP_REGS_LOCALS
   2835     RECOMP_ENTER(0x360B2AE0u);
   2836 
   2837 L_360B2AE0:
   2838     PUSH32(esp, esi); /* 0x360B2AE0: push esi */
   2839     esi = ecx; /* 0x360B2AE1: mov esi, ecx */
   2840     PUSH32(esp, edi); /* 0x360B2AE3: push edi */
   2841     edi = MEM32(0x3616FF70); /* 0x360B2AE4: mov edi, dword ptr [0x3616ff70] */
   2842     eax = esi + 0x4; /* 0x360B2AEA: lea eax, [esi + 4] */
   2843     PUSH32(esp, eax); /* 0x360B2AED: push eax */
   2844     RECOMP_ICALL(edi); /* 0x360B2AEE: call edi */
   2845     RECOMP_FLAGS_IN();
   2846     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2847     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2848     esp = esp + 4; /* 0x360B2AF0: add esp, 4 */
   2849     _flag_k = FK_ADD;
   2850     /* test eax, eax */ /* 0x360B2AF3: test eax, eax */
   2851     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2852     _cf = 0;
   2853     _flag_k = FK_TEST;
   2854     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2B08; /* 0x360B2AF5: je 0x360b2b08 */
   2855 L_360B2AF7:
   2856     /* cmp MEM8(eax + 0x94), 1 */ /* 0x360B2AF7: cmp byte ptr [eax + 0x94], 1 */
   2857     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   2858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2859     _flag_k = FK_NARROW(FK_CMP, 24);
   2860     if (CMP_NE(_flag_a, _flag_b)) goto L_360B2B08; /* 0x360B2AFE: jne 0x360b2b08 */
   2861 L_360B2B00:
   2862     edi = POP32_VAL(esp); /* 0x360B2B00: pop edi */
   2863     eax = 2; /* 0x360B2B01: mov eax, 2 */
   2864     esi = POP32_VAL(esp); /* 0x360B2B06: pop esi */
   2865     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2B07: ret  */
   2866 L_360B2B08:
   2867     ecx = MEM32(esi + 0x2C); /* 0x360B2B08: mov ecx, dword ptr [esi + 0x2c] */
   2868     /* test ecx, ecx */ /* 0x360B2B0B: test ecx, ecx */
   2869     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2870     _cf = 0;
   2871     _flag_k = FK_TEST;
   2872     eax = esi + 0x2C; /* 0x360B2B0D: lea eax, [esi + 0x2c] */
   2873     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2B55; /* 0x360B2B10: je 0x360b2b55 */
   2874 L_360B2B12:
   2875     PUSH32(esp, eax); /* 0x360B2B12: push eax */
   2876     RECOMP_ICALL(edi); /* 0x360B2B13: call edi */
   2877     RECOMP_FLAGS_IN();
   2878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2880     esp = esp + 4; /* 0x360B2B15: add esp, 4 */
   2881     _flag_k = FK_ADD;
   2882     /* test eax, eax */ /* 0x360B2B18: test eax, eax */
   2883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2884     _cf = 0;
   2885     _flag_k = FK_TEST;
   2886     RECOMP_BACKEDGE();
   2887     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2B00; /* 0x360B2B1A: je 0x360b2b00 */
   2888 L_360B2B1C:
   2889     /* cmp MEM8(eax + 0x94), 1 */ /* 0x360B2B1C: cmp byte ptr [eax + 0x94], 1 */
   2890     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
   2891     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2892     _flag_k = FK_NARROW(FK_CMP, 24);
   2893     RECOMP_BACKEDGE();
   2894     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B2B00; /* 0x360B2B23: je 0x360b2b00 */
   2895 L_360B2B25:
   2896     ecx = MEM32(esi + 0x50); /* 0x360B2B25: mov ecx, dword ptr [esi + 0x50] */
   2897     edi = MEM32(0x36170044); /* 0x360B2B28: mov edi, dword ptr [0x36170044] */
   2898     PUSH32(esp, ecx); /* 0x360B2B2E: push ecx */
   2899     RECOMP_ICALL(edi); /* 0x360B2B2F: call edi */
   2900     RECOMP_FLAGS_IN();
   2901     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2902     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2903     esp = esp + 4; /* 0x360B2B31: add esp, 4 */
   2904     _flag_k = FK_ADD;
   2905     /* test eax, eax */ /* 0x360B2B34: test eax, eax */
   2906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2907     _cf = 0;
   2908     _flag_k = FK_TEST;
   2909     RECOMP_BACKEDGE();
   2910     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2B00; /* 0x360B2B36: je 0x360b2b00 */
   2911 L_360B2B38:
   2912     edx = MEM32(esi + 0x50); /* 0x360B2B38: mov edx, dword ptr [esi + 0x50] */
   2913     PUSH32(esp, edx); /* 0x360B2B3B: push edx */
   2914     RECOMP_ICALL(edi); /* 0x360B2B3C: call edi */
   2915     RECOMP_FLAGS_IN();
   2916     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2917     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2918     esp = esp + 4; /* 0x360B2B3E: add esp, 4 */
   2919     _flag_k = FK_ADD;
   2920     ecx = eax; /* 0x360B2B41: mov ecx, eax */
   2921     RECOMP_ICALL(MEM32(0x361700F0)); /* 0x360B2B43: call dword ptr [0x361700f0] */
   2922     RECOMP_FLAGS_IN();
   2923     /* test LO8(eax), LO8(eax) */ /* 0x360B2B49: test al, al */
   2924     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2925     _cf = 0;
   2926     _flag_k = FK_NARROW(FK_TEST, 24);
   2927     RECOMP_BACKEDGE();
   2928     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B2B00; /* 0x360B2B4B: jne 0x360b2b00 */
   2929 L_360B2B4D:
   2930     edi = POP32_VAL(esp); /* 0x360B2B4D: pop edi */
   2931     eax = 1; /* 0x360B2B4E: mov eax, 1 */
   2932     esi = POP32_VAL(esp); /* 0x360B2B53: pop esi */
   2933     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2B54: ret  */
   2934 L_360B2B55:
   2935     eax = MEM32(esi + 0x50); /* 0x360B2B55: mov eax, dword ptr [esi + 0x50] */
   2936     edi = MEM32(0x36170044); /* 0x360B2B58: mov edi, dword ptr [0x36170044] */
   2937     PUSH32(esp, eax); /* 0x360B2B5E: push eax */
   2938     RECOMP_ICALL(edi); /* 0x360B2B5F: call edi */
   2939     RECOMP_FLAGS_IN();
   2940     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2941     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2942     esp = esp + 4; /* 0x360B2B61: add esp, 4 */
   2943     _flag_k = FK_ADD;
   2944     /* test eax, eax */ /* 0x360B2B64: test eax, eax */
   2945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2946     _cf = 0;
   2947     _flag_k = FK_TEST;
   2948     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B2B70; /* 0x360B2B66: jne 0x360b2b70 */
   2949 L_360B2B68:
   2950     edi = POP32_VAL(esp); /* 0x360B2B68: pop edi */
   2951     eax = 3; /* 0x360B2B69: mov eax, 3 */
   2952     esi = POP32_VAL(esp); /* 0x360B2B6E: pop esi */
   2953     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2B6F: ret  */
   2954 L_360B2B70:
   2955     ecx = MEM32(esi + 0x50); /* 0x360B2B70: mov ecx, dword ptr [esi + 0x50] */
   2956     PUSH32(esp, ecx); /* 0x360B2B73: push ecx */
   2957     RECOMP_ICALL(edi); /* 0x360B2B74: call edi */
   2958     RECOMP_FLAGS_IN();
   2959     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2960     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2961     esp = esp + 4; /* 0x360B2B76: add esp, 4 */
   2962     _flag_k = FK_ADD;
   2963     ecx = eax; /* 0x360B2B79: mov ecx, eax */
   2964     RECOMP_ICALL(MEM32(0x361700F0)); /* 0x360B2B7B: call dword ptr [0x361700f0] */
   2965     RECOMP_FLAGS_IN();
   2966     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2967     edx = 0; /* 0x360B2B81: xor edx, edx */
   2968     _cf = 0;
   2969     _flag_k = FK_TEST;
   2970     /* test LO8(eax), LO8(eax) */ /* 0x360B2B83: test al, al */
   2971     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2972     _cf = 0;
   2973     _flag_k = FK_NARROW(FK_TEST, 24);
   2974     SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360B2B85: setne dl */
   2975     edi = POP32_VAL(esp); /* 0x360B2B88: pop edi */
   2976     esi = POP32_VAL(esp); /* 0x360B2B89: pop esi */
   2977     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1);
   2978     edx = edx + 1; /* 0x360B2B8A: inc edx */
   2979     _flag_k = FK_INC;
   2980     eax = edx; /* 0x360B2B8B: mov eax, edx */
   2981     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2B8D: ret  */
   2982     RECOMP_REGS_OUT();
   2983 }
   2984 
   2985 void sub_360B2B90(void) {
   2986     int _fpu_cmp = 0;
   2987     uint32_t _cf = 0;
   2988     int _df = 1;
   2989     uint32_t _flag_k = FK_NONE;
   2990     uint32_t _flag_a = 0, _flag_b = 0;
   2991     uint32_t _itail_tgt = 0;
   2992     RECOMP_REGS_LOCALS
   2993     RECOMP_ENTER(0x360B2B90u);
   2994 
   2995     goto L_360B2B90;
   2996 L_360B22A0:
   2997     PUSH32(esp, ebp); /* 0x360B22A0: push ebp */
   2998     ebp = esp; /* 0x360B22A1: mov ebp, esp */
   2999     PUSH32(esp, esi); /* 0x360B22A3: push esi */
   3000     esi = ecx; /* 0x360B22A4: mov esi, ecx */
   3001     RECOMP_ICALL(0x360B2340u); /* 0x360B22A6: call 0x360b2340 */ /* not lifted */
   3002     RECOMP_FLAGS_IN();
   3003     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B22AB: test byte ptr [ebp + 8], 1 */
   3004     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3005     _cf = 0;
   3006     _flag_k = FK_NARROW(FK_TEST, 24);
   3007     if (TEST_Z(_flag_a, _flag_b)) goto L_360B22BA; /* 0x360B22AF: je 0x360b22ba */
   3008 L_360B22B1:
   3009     PUSH32(esp, esi); /* 0x360B22B1: push esi */
   3010     RECOMP_ICALL(0x3615FCC4u); /* 0x360B22B2: call 0x3615fcc4 */ /* not lifted */
   3011     RECOMP_FLAGS_IN();
   3012     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3013     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3014     esp = esp + 4; /* 0x360B22B7: add esp, 4 */
   3015     _flag_k = FK_ADD;
   3016 L_360B22BA:
   3017     eax = esi; /* 0x360B22BA: mov eax, esi */
   3018     esi = POP32_VAL(esp); /* 0x360B22BC: pop esi */
   3019     ebp = POP32_VAL(esp); /* 0x360B22BD: pop ebp */
   3020     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B22BE: ret 4 */
   3021 L_360B2B90:
   3022     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   3023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3024     ecx = ecx - 0x20u; /* 0x360B2B90: sub ecx, 0x20 */
   3025     _flag_k = FK_CMP;
   3026     RECOMP_BACKEDGE();
   3027     goto L_360B22A0; /* 0x360B2B93: jmp 0x360b22a0 */
   3028     { RECOMP_REGS_OUT(); return; } /* end of function */
   3029     RECOMP_REGS_OUT();
   3030 }
   3031 
   3032 void sub_360B2BA0(void) {
   3033     int _fpu_cmp = 0;
   3034     uint32_t _cf = 0;
   3035     int _df = 1;
   3036     uint32_t _flag_k = FK_NONE;
   3037     uint32_t _flag_a = 0, _flag_b = 0;
   3038     uint32_t _itail_tgt = 0;
   3039     RECOMP_REGS_LOCALS
   3040     RECOMP_ENTER(0x360B2BA0u);
   3041 
   3042 L_360B2BA0:
   3043     PUSH32(esp, esi); /* 0x360B2BA0: push esi */
   3044     esi = ecx; /* 0x360B2BA1: mov esi, ecx */
   3045     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360B2BA3: call dword ptr [0x3616ffd0] */
   3046     RECOMP_FLAGS_IN();
   3047     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3048     eax = 0; /* 0x360B2BA9: xor eax, eax */
   3049     _cf = 0;
   3050     _flag_k = FK_TEST;
   3051     MEM32(esi + 0x20) = eax; /* 0x360B2BAB: mov dword ptr [esi + 0x20], eax */
   3052     MEM32(esi + 0x24) = eax; /* 0x360B2BAE: mov dword ptr [esi + 0x24], eax */
   3053     MEM32(esi) = 0x36174D54u; /* 0x360B2BB1: mov dword ptr [esi], 0x36174d54 */
   3054     eax = esi; /* 0x360B2BB7: mov eax, esi */
   3055     esi = POP32_VAL(esp); /* 0x360B2BB9: pop esi */
   3056     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2BBA: ret  */
   3057     RECOMP_REGS_OUT();
   3058 }
   3059 
   3060 void sub_360B2BC0(void) {
   3061     int _fpu_cmp = 0;
   3062     uint32_t _cf = 0;
   3063     int _df = 1;
   3064     uint32_t _flag_k = FK_NONE;
   3065     uint32_t _flag_a = 0, _flag_b = 0;
   3066     uint32_t _itail_tgt = 0;
   3067     RECOMP_REGS_LOCALS
   3068     RECOMP_ENTER(0x360B2BC0u);
   3069 
   3070 L_360B2BC0:
   3071     PUSH32(esp, ebp); /* 0x360B2BC0: push ebp */
   3072     ebp = esp; /* 0x360B2BC1: mov ebp, esp */
   3073     PUSH32(esp, esi); /* 0x360B2BC3: push esi */
   3074     esi = ecx; /* 0x360B2BC4: mov esi, ecx */
   3075     RECOMP_ICALL(0x360B2BF0u); /* 0x360B2BC6: call 0x360b2bf0 */ /* not lifted */
   3076     RECOMP_FLAGS_IN();
   3077     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B2BCB: test byte ptr [ebp + 8], 1 */
   3078     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3079     _cf = 0;
   3080     _flag_k = FK_NARROW(FK_TEST, 24);
   3081     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2BDA; /* 0x360B2BCF: je 0x360b2bda */
   3082 L_360B2BD1:
   3083     PUSH32(esp, esi); /* 0x360B2BD1: push esi */
   3084     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2BD2: call 0x3615fcc4 */ /* not lifted */
   3085     RECOMP_FLAGS_IN();
   3086     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3087     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3088     esp = esp + 4; /* 0x360B2BD7: add esp, 4 */
   3089     _flag_k = FK_ADD;
   3090 L_360B2BDA:
   3091     eax = esi; /* 0x360B2BDA: mov eax, esi */
   3092     esi = POP32_VAL(esp); /* 0x360B2BDC: pop esi */
   3093     ebp = POP32_VAL(esp); /* 0x360B2BDD: pop ebp */
   3094     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2BDE: ret 4 */
   3095     RECOMP_REGS_OUT();
   3096 }
   3097 
   3098 void sub_360B2BF0(void) {
   3099     int _fpu_cmp = 0;
   3100     uint32_t _cf = 0;
   3101     int _df = 1;
   3102     uint32_t _flag_k = FK_NONE;
   3103     uint32_t _flag_a = 0, _flag_b = 0;
   3104     uint32_t _itail_tgt = 0;
   3105     RECOMP_REGS_LOCALS
   3106     RECOMP_ENTER(0x360B2BF0u);
   3107 
   3108 L_360B2BF0:
   3109     MEM32(ecx) = 0x36174D54u; /* 0x360B2BF0: mov dword ptr [ecx], 0x36174d54 */
   3110 L_360B2BF6:
   3111     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   3112     { RECOMP_REGS_OUT(); return; } /* end of function */
   3113   _ljump:
   3114     switch (_itail_tgt) {
   3115       case 0x360B2BF0u: goto L_360B2BF0;
   3116       case 0x360B2BF6u: goto L_360B2BF6;
   3117       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3118     }
   3119     RECOMP_REGS_OUT();
   3120 }
   3121 
   3122 void sub_360B2C00(void) {
   3123     int _fpu_cmp = 0;
   3124     uint32_t _cf = 0;
   3125     int _df = 1;
   3126     uint32_t _flag_k = FK_NONE;
   3127     uint32_t _flag_a = 0, _flag_b = 0;
   3128     uint32_t _itail_tgt = 0;
   3129     RECOMP_REGS_LOCALS
   3130     RECOMP_ENTER(0x360B2C00u);
   3131 
   3132 L_360B2C00:
   3133     PUSH32(esp, ebp); /* 0x360B2C00: push ebp */
   3134     ebp = esp; /* 0x360B2C01: mov ebp, esp */
   3135     PUSH32(esp, ebx); /* 0x360B2C03: push ebx */
   3136     ebx = MEM32(0x3616FA8C); /* 0x360B2C04: mov ebx, dword ptr [0x3616fa8c] */
   3137     PUSH32(esp, esi); /* 0x360B2C0A: push esi */
   3138     esi = ecx; /* 0x360B2C0B: mov esi, ecx */
   3139     PUSH32(esp, edi); /* 0x360B2C0D: push edi */
   3140     edi = MEM32(ebp + 0x8); /* 0x360B2C0E: mov edi, dword ptr [ebp + 8] */
   3141     eax = esi + 0x28; /* 0x360B2C11: lea eax, [esi + 0x28] */
   3142     PUSH32(esp, eax); /* 0x360B2C14: push eax */
   3143     ecx = edi; /* 0x360B2C15: mov ecx, edi */
   3144     RECOMP_ICALL(ebx); /* 0x360B2C17: call ebx */
   3145     RECOMP_FLAGS_IN();
   3146     ecx = esi + 0x2C; /* 0x360B2C19: lea ecx, [esi + 0x2c] */
   3147     PUSH32(esp, ecx); /* 0x360B2C1C: push ecx */
   3148     ecx = edi; /* 0x360B2C1D: mov ecx, edi */
   3149     RECOMP_ICALL(ebx); /* 0x360B2C1F: call ebx */
   3150     RECOMP_FLAGS_IN();
   3151     edx = esi + 0x30; /* 0x360B2C21: lea edx, [esi + 0x30] */
   3152     PUSH32(esp, edx); /* 0x360B2C24: push edx */
   3153     ecx = edi; /* 0x360B2C25: mov ecx, edi */
   3154     RECOMP_ICALL(ebx); /* 0x360B2C27: call ebx */
   3155     RECOMP_FLAGS_IN();
   3156     eax = esi + 0x20; /* 0x360B2C29: lea eax, [esi + 0x20] */
   3157     PUSH32(esp, eax); /* 0x360B2C2C: push eax */
   3158     PUSH32(esp, edi); /* 0x360B2C2D: push edi */
   3159     RECOMP_ICALL(0x3615B870u); /* 0x360B2C2E: call 0x3615b870 */ /* not lifted */
   3160     RECOMP_FLAGS_IN();
   3161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3163     esp = esp + 8; /* 0x360B2C33: add esp, 8 */
   3164     _flag_k = FK_ADD;
   3165     ecx = esi + 0x34; /* 0x360B2C36: lea ecx, [esi + 0x34] */
   3166     PUSH32(esp, ecx); /* 0x360B2C39: push ecx */
   3167     ecx = edi; /* 0x360B2C3A: mov ecx, edi */
   3168     RECOMP_ICALL(ebx); /* 0x360B2C3C: call ebx */
   3169     RECOMP_FLAGS_IN();
   3170     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u);
   3171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3172     esi = esi + 0x38u; /* 0x360B2C3E: add esi, 0x38 */
   3173     _flag_k = FK_ADD;
   3174     PUSH32(esp, esi); /* 0x360B2C41: push esi */
   3175     ecx = edi; /* 0x360B2C42: mov ecx, edi */
   3176     RECOMP_ICALL(ebx); /* 0x360B2C44: call ebx */
   3177     RECOMP_FLAGS_IN();
   3178     ecx = edi; /* 0x360B2C46: mov ecx, edi */
   3179     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B2C48: call dword ptr [0x3616fadc] */
   3180     RECOMP_FLAGS_IN();
   3181     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   3182     _cf = (eax) != 0;
   3183     eax = (uint32_t)(-(int32_t)eax); /* 0x360B2C4E: neg eax */
   3184     _flag_k = FK_CMP;
   3185     edi = POP32_VAL(esp); /* 0x360B2C50: pop edi */
   3186     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B2C51: sbb eax, eax */
   3187       eax = _sc ? 0xFFFFFFFFu : 0;
   3188       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3189       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3190     esi = POP32_VAL(esp); /* 0x360B2C53: pop esi */
   3191     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3192     eax = eax + 1; /* 0x360B2C54: inc eax */
   3193     _flag_k = FK_INC;
   3194     ebx = POP32_VAL(esp); /* 0x360B2C55: pop ebx */
   3195     ebp = POP32_VAL(esp); /* 0x360B2C56: pop ebp */
   3196     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2C57: ret 4 */
   3197     RECOMP_REGS_OUT();
   3198 }
   3199 
   3200 void sub_360B2C60(void) {
   3201     int _fpu_cmp = 0;
   3202     uint32_t _cf = 0;
   3203     int _df = 1;
   3204     uint32_t _flag_k = FK_NONE;
   3205     uint32_t _flag_a = 0, _flag_b = 0;
   3206     uint32_t _itail_tgt = 0;
   3207     RECOMP_REGS_LOCALS
   3208     RECOMP_ENTER(0x360B2C60u);
   3209 
   3210 L_360B2C60:
   3211     PUSH32(esp, ebp); /* 0x360B2C60: push ebp */
   3212     ebp = esp; /* 0x360B2C61: mov ebp, esp */
   3213     PUSH32(esp, ebx); /* 0x360B2C63: push ebx */
   3214     ebx = MEM32(0x3616FAEC); /* 0x360B2C64: mov ebx, dword ptr [0x3616faec] */
   3215     PUSH32(esp, esi); /* 0x360B2C6A: push esi */
   3216     esi = ecx; /* 0x360B2C6B: mov esi, ecx */
   3217     eax = MEM32(esi + 0x28); /* 0x360B2C6D: mov eax, dword ptr [esi + 0x28] */
   3218     PUSH32(esp, edi); /* 0x360B2C70: push edi */
   3219     edi = MEM32(ebp + 0x8); /* 0x360B2C71: mov edi, dword ptr [ebp + 8] */
   3220     PUSH32(esp, eax); /* 0x360B2C74: push eax */
   3221     ecx = edi; /* 0x360B2C75: mov ecx, edi */
   3222     RECOMP_ICALL(ebx); /* 0x360B2C77: call ebx */
   3223     RECOMP_FLAGS_IN();
   3224     ecx = MEM32(esi + 0x2C); /* 0x360B2C79: mov ecx, dword ptr [esi + 0x2c] */
   3225     PUSH32(esp, ecx); /* 0x360B2C7C: push ecx */
   3226     ecx = edi; /* 0x360B2C7D: mov ecx, edi */
   3227     RECOMP_ICALL(ebx); /* 0x360B2C7F: call ebx */
   3228     RECOMP_FLAGS_IN();
   3229     edx = MEM32(esi + 0x30); /* 0x360B2C81: mov edx, dword ptr [esi + 0x30] */
   3230     PUSH32(esp, edx); /* 0x360B2C84: push edx */
   3231     ecx = edi; /* 0x360B2C85: mov ecx, edi */
   3232     RECOMP_ICALL(ebx); /* 0x360B2C87: call ebx */
   3233     RECOMP_FLAGS_IN();
   3234     eax = esi + 0x20; /* 0x360B2C89: lea eax, [esi + 0x20] */
   3235     PUSH32(esp, eax); /* 0x360B2C8C: push eax */
   3236     PUSH32(esp, edi); /* 0x360B2C8D: push edi */
   3237     RECOMP_ICALL(0x3615B840u); /* 0x360B2C8E: call 0x3615b840 */ /* not lifted */
   3238     RECOMP_FLAGS_IN();
   3239     ecx = MEM32(esi + 0x34); /* 0x360B2C93: mov ecx, dword ptr [esi + 0x34] */
   3240     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3242     esp = esp + 8; /* 0x360B2C96: add esp, 8 */
   3243     _flag_k = FK_ADD;
   3244     PUSH32(esp, ecx); /* 0x360B2C99: push ecx */
   3245     ecx = edi; /* 0x360B2C9A: mov ecx, edi */
   3246     RECOMP_ICALL(ebx); /* 0x360B2C9C: call ebx */
   3247     RECOMP_FLAGS_IN();
   3248     edx = MEM32(esi + 0x38); /* 0x360B2C9E: mov edx, dword ptr [esi + 0x38] */
   3249     PUSH32(esp, edx); /* 0x360B2CA1: push edx */
   3250     ecx = edi; /* 0x360B2CA2: mov ecx, edi */
   3251     RECOMP_ICALL(ebx); /* 0x360B2CA4: call ebx */
   3252     RECOMP_FLAGS_IN();
   3253     edi = POP32_VAL(esp); /* 0x360B2CA6: pop edi */
   3254     esi = POP32_VAL(esp); /* 0x360B2CA7: pop esi */
   3255     ebx = POP32_VAL(esp); /* 0x360B2CA8: pop ebx */
   3256     ebp = POP32_VAL(esp); /* 0x360B2CA9: pop ebp */
   3257     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2CAA: ret 4 */
   3258     RECOMP_REGS_OUT();
   3259 }
   3260 
   3261 void sub_360B2CB0(void) {
   3262     int _fpu_cmp = 0;
   3263     uint32_t _cf = 0;
   3264     int _df = 1;
   3265     uint32_t _flag_k = FK_NONE;
   3266     uint32_t _flag_a = 0, _flag_b = 0;
   3267     uint32_t _itail_tgt = 0;
   3268     RECOMP_REGS_LOCALS
   3269     RECOMP_ENTER(0x360B2CB0u);
   3270 
   3271 L_360B2CB0:
   3272     PUSH32(esp, ebp); /* 0x360B2CB0: push ebp */
   3273     ebp = esp; /* 0x360B2CB1: mov ebp, esp */
   3274     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3276     esp = esp - 8; /* 0x360B2CB3: sub esp, 8 */
   3277     _flag_k = FK_CMP;
   3278     PUSH32(esp, ebx); /* 0x360B2CB6: push ebx */
   3279     PUSH32(esp, esi); /* 0x360B2CB7: push esi */
   3280     esi = ecx; /* 0x360B2CB8: mov esi, ecx */
   3281     eax = esi + 0x4; /* 0x360B2CBA: lea eax, [esi + 4] */
   3282     PUSH32(esp, edi); /* 0x360B2CBD: push edi */
   3283     PUSH32(esp, eax); /* 0x360B2CBE: push eax */
   3284     RECOMP_ICALL(0x3606DA90u); /* 0x360B2CBF: call 0x3606da90 */ /* not lifted */
   3285     RECOMP_FLAGS_IN();
   3286     ecx = esi + 0x20; /* 0x360B2CC4: lea ecx, [esi + 0x20] */
   3287     ebx = eax; /* 0x360B2CC7: mov ebx, eax */
   3288     PUSH32(esp, ecx); /* 0x360B2CC9: push ecx */
   3289     MEM32(ebp + (-0x8)) = ebx; /* 0x360B2CCA: mov dword ptr [ebp - 8], ebx */
   3290     RECOMP_ICALL(0x3606DA90u); /* 0x360B2CCD: call 0x3606da90 */ /* not lifted */
   3291     RECOMP_FLAGS_IN();
   3292     edi = eax; /* 0x360B2CD2: mov edi, eax */
   3293     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3294     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3295     esp = esp + 8; /* 0x360B2CD4: add esp, 8 */
   3296     _flag_k = FK_ADD;
   3297     /* test edi, edi */ /* 0x360B2CD7: test edi, edi */
   3298     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3299     _cf = 0;
   3300     _flag_k = FK_TEST;
   3301     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2D9D; /* 0x360B2CD9: je 0x360b2d9d */
   3302 L_360B2CDF:
   3303     /* test ebx, ebx */ /* 0x360B2CDF: test ebx, ebx */
   3304     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3305     _cf = 0;
   3306     _flag_k = FK_TEST;
   3307     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2D9D; /* 0x360B2CE1: je 0x360b2d9d */
   3308 L_360B2CE7:
   3309     SET_LO8(eax, MEM8(ebx + 0x128)); /* 0x360B2CE7: mov al, byte ptr [ebx + 0x128] */
   3310     /* test LO8(eax), LO8(eax) */ /* 0x360B2CED: test al, al */
   3311     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3312     _cf = 0;
   3313     _flag_k = FK_NARROW(FK_TEST, 24);
   3314     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2D0C; /* 0x360B2CEF: je 0x360b2d0c */
   3315 L_360B2CF1:
   3316     edx = MEM32(esi + 0x34); /* 0x360B2CF1: mov edx, dword ptr [esi + 0x34] */
   3317     PUSH32(esp, 0); /* 0x360B2CF4: push 0 */
   3318     PUSH32(esp, 0); /* 0x360B2CF6: push 0 */
   3319     PUSH32(esp, edx); /* 0x360B2CF8: push edx */
   3320     RECOMP_ICALL(0x3603D360u); /* 0x360B2CF9: call 0x3603d360 */ /* not lifted */
   3321     RECOMP_FLAGS_IN();
   3322     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3323     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3324     esp = esp + 4; /* 0x360B2CFE: add esp, 4 */
   3325     _flag_k = FK_ADD;
   3326     PUSH32(esp, eax); /* 0x360B2D01: push eax */
   3327     eax = MEM32(esi + 0x2C); /* 0x360B2D02: mov eax, dword ptr [esi + 0x2c] */
   3328     PUSH32(esp, ebx); /* 0x360B2D05: push ebx */
   3329     PUSH32(esp, eax); /* 0x360B2D06: push eax */
   3330     PUSH32(esp, edi); /* 0x360B2D07: push edi */
   3331     PUSH32(esp, 0x32u); /* 0x360B2D08: push 0x32 */
   3332     goto L_360B2D46; /* 0x360B2D0A: jmp 0x360b2d46 */
   3333 L_360B2D0C:
   3334     SET_LO8(eax, MEM8(edi + 0x128)); /* 0x360B2D0C: mov al, byte ptr [edi + 0x128] */
   3335     /* test LO8(eax), LO8(eax) */ /* 0x360B2D12: test al, al */
   3336     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3337     _cf = 0;
   3338     _flag_k = FK_NARROW(FK_TEST, 24);
   3339     PUSH32(esp, 0); /* 0x360B2D14: push 0 */
   3340     PUSH32(esp, 0); /* 0x360B2D16: push 0 */
   3341     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2D31; /* 0x360B2D18: je 0x360b2d31 */
   3342 L_360B2D1A:
   3343     ecx = MEM32(esi + 0x34); /* 0x360B2D1A: mov ecx, dword ptr [esi + 0x34] */
   3344     PUSH32(esp, ecx); /* 0x360B2D1D: push ecx */
   3345     RECOMP_ICALL(0x3603D360u); /* 0x360B2D1E: call 0x3603d360 */ /* not lifted */
   3346     RECOMP_FLAGS_IN();
   3347     edx = MEM32(esi + 0x2C); /* 0x360B2D23: mov edx, dword ptr [esi + 0x2c] */
   3348     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3349     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3350     esp = esp + 4; /* 0x360B2D26: add esp, 4 */
   3351     _flag_k = FK_ADD;
   3352     PUSH32(esp, eax); /* 0x360B2D29: push eax */
   3353     PUSH32(esp, ebx); /* 0x360B2D2A: push ebx */
   3354     PUSH32(esp, edx); /* 0x360B2D2B: push edx */
   3355     PUSH32(esp, edi); /* 0x360B2D2C: push edi */
   3356     PUSH32(esp, 0x30u); /* 0x360B2D2D: push 0x30 */
   3357     goto L_360B2D46; /* 0x360B2D2F: jmp 0x360b2d46 */
   3358 L_360B2D31:
   3359     eax = MEM32(esi + 0x34); /* 0x360B2D31: mov eax, dword ptr [esi + 0x34] */
   3360     PUSH32(esp, eax); /* 0x360B2D34: push eax */
   3361     RECOMP_ICALL(0x3603D360u); /* 0x360B2D35: call 0x3603d360 */ /* not lifted */
   3362     RECOMP_FLAGS_IN();
   3363     ecx = MEM32(esi + 0x2C); /* 0x360B2D3A: mov ecx, dword ptr [esi + 0x2c] */
   3364     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3365     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3366     esp = esp + 4; /* 0x360B2D3D: add esp, 4 */
   3367     _flag_k = FK_ADD;
   3368     PUSH32(esp, eax); /* 0x360B2D40: push eax */
   3369     PUSH32(esp, ebx); /* 0x360B2D41: push ebx */
   3370     PUSH32(esp, ecx); /* 0x360B2D42: push ecx */
   3371     PUSH32(esp, edi); /* 0x360B2D43: push edi */
   3372     PUSH32(esp, 0x31u); /* 0x360B2D44: push 0x31 */
   3373 L_360B2D46:
   3374     RECOMP_ICALL(0x3601C590u); /* 0x360B2D46: call 0x3601c590 */ /* not lifted */
   3375     RECOMP_FLAGS_IN();
   3376     ecx = eax; /* 0x360B2D4B: mov ecx, eax */
   3377     RECOMP_ICALL(0x3601D0B0u); /* 0x360B2D4D: call 0x3601d0b0 */ /* not lifted */
   3378     RECOMP_FLAGS_IN();
   3379     eax = MEM32(edi + 0xE4); /* 0x360B2D52: mov eax, dword ptr [edi + 0xe4] */
   3380     ebx = edi + 0xE4; /* 0x360B2D58: lea ebx, [edi + 0xe4] */
   3381     PUSH32(esp, 2); /* 0x360B2D5E: push 2 */
   3382     PUSH32(esp, 0x1Bu); /* 0x360B2D60: push 0x1b */
   3383     ecx = ebx; /* 0x360B2D62: mov ecx, ebx */
   3384     MEM32(ebp + (-0x4)) = eax; /* 0x360B2D64: mov dword ptr [ebp - 4], eax */
   3385     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B2D67: call dword ptr [eax + 4] */
   3386     RECOMP_FLAGS_IN();
   3387     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x2C));
   3388     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3389     eax = eax - MEM32(esi + 0x2C); /* 0x360B2D6A: sub eax, dword ptr [esi + 0x2c] */
   3390     _flag_k = FK_CMP;
   3391     edx = MEM32(ebp + (-0x4)); /* 0x360B2D6D: mov edx, dword ptr [ebp - 4] */
   3392     PUSH32(esp, eax); /* 0x360B2D70: push eax */
   3393     PUSH32(esp, 0x1Bu); /* 0x360B2D71: push 0x1b */
   3394     ecx = ebx; /* 0x360B2D73: mov ecx, ebx */
   3395     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B2D75: call dword ptr [edx + 8] */
   3396     RECOMP_FLAGS_IN();
   3397     eax = MEM32(esi + 0x38); /* 0x360B2D78: mov eax, dword ptr [esi + 0x38] */
   3398     /* test eax, eax */ /* 0x360B2D7B: test eax, eax */
   3399     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3400     _cf = 0;
   3401     _flag_k = FK_TEST;
   3402     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2D87; /* 0x360B2D7D: je 0x360b2d87 */
   3403 L_360B2D7F:
   3404     PUSH32(esp, eax); /* 0x360B2D7F: push eax */
   3405     ecx = edi; /* 0x360B2D80: mov ecx, edi */
   3406     RECOMP_ICALL(0x36072340u); /* 0x360B2D82: call 0x36072340 */ /* not lifted */
   3407     RECOMP_FLAGS_IN();
   3408 L_360B2D87:
   3409     eax = MEM32(esi + 0x30); /* 0x360B2D87: mov eax, dword ptr [esi + 0x30] */
   3410     ecx = MEM32(esi + 0x28); /* 0x360B2D8A: mov ecx, dword ptr [esi + 0x28] */
   3411     edx = MEM32(ebp + (-0x8)); /* 0x360B2D8D: mov edx, dword ptr [ebp - 8] */
   3412     PUSH32(esp, eax); /* 0x360B2D90: push eax */
   3413     PUSH32(esp, ecx); /* 0x360B2D91: push ecx */
   3414     ecx = MEM32(edx + 0x16C); /* 0x360B2D92: mov ecx, dword ptr [edx + 0x16c] */
   3415     RECOMP_ICALL(0x3607C0F0u); /* 0x360B2D98: call 0x3607c0f0 */ /* not lifted */
   3416     RECOMP_FLAGS_IN();
   3417 L_360B2D9D:
   3418     edi = POP32_VAL(esp); /* 0x360B2D9D: pop edi */
   3419     esi = POP32_VAL(esp); /* 0x360B2D9E: pop esi */
   3420     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3421     eax = 0; /* 0x360B2D9F: xor eax, eax */
   3422     _cf = 0;
   3423     _flag_k = FK_TEST;
   3424     ebx = POP32_VAL(esp); /* 0x360B2DA1: pop ebx */
   3425     esp = ebp; /* 0x360B2DA2: mov esp, ebp */
   3426     ebp = POP32_VAL(esp); /* 0x360B2DA4: pop ebp */
   3427     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2DA5: ret  */
   3428     RECOMP_REGS_OUT();
   3429 }
   3430 
   3431 void sub_360B2DB0(void) {
   3432     int _fpu_cmp = 0;
   3433     uint32_t _cf = 0;
   3434     int _df = 1;
   3435     uint32_t _flag_k = FK_NONE;
   3436     uint32_t _flag_a = 0, _flag_b = 0;
   3437     uint32_t _itail_tgt = 0;
   3438     RECOMP_REGS_LOCALS
   3439     RECOMP_ENTER(0x360B2DB0u);
   3440 
   3441 L_360B2DB0:
   3442     PUSH32(esp, esi); /* 0x360B2DB0: push esi */
   3443     esi = ecx; /* 0x360B2DB1: mov esi, ecx */
   3444     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360B2DB3: call dword ptr [0x3616ffd0] */
   3445     RECOMP_FLAGS_IN();
   3446     MEM32(esi) = 0x36174D78u; /* 0x360B2DB9: mov dword ptr [esi], 0x36174d78 */
   3447     eax = esi; /* 0x360B2DBF: mov eax, esi */
   3448     esi = POP32_VAL(esp); /* 0x360B2DC1: pop esi */
   3449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B2DC2: ret  */
   3450     RECOMP_REGS_OUT();
   3451 }
   3452 
   3453 void sub_360B2DD0(void) {
   3454     int _fpu_cmp = 0;
   3455     uint32_t _cf = 0;
   3456     int _df = 1;
   3457     uint32_t _flag_k = FK_NONE;
   3458     uint32_t _flag_a = 0, _flag_b = 0;
   3459     uint32_t _itail_tgt = 0;
   3460     RECOMP_REGS_LOCALS
   3461     RECOMP_ENTER(0x360B2DD0u);
   3462 
   3463 L_360B2DD0:
   3464     PUSH32(esp, ebp); /* 0x360B2DD0: push ebp */
   3465     ebp = esp; /* 0x360B2DD1: mov ebp, esp */
   3466     PUSH32(esp, esi); /* 0x360B2DD3: push esi */
   3467     esi = ecx; /* 0x360B2DD4: mov esi, ecx */
   3468     RECOMP_ICALL(0x360B2E00u); /* 0x360B2DD6: call 0x360b2e00 */ /* not lifted */
   3469     RECOMP_FLAGS_IN();
   3470     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B2DDB: test byte ptr [ebp + 8], 1 */
   3471     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3472     _cf = 0;
   3473     _flag_k = FK_NARROW(FK_TEST, 24);
   3474     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2DEA; /* 0x360B2DDF: je 0x360b2dea */
   3475 L_360B2DE1:
   3476     PUSH32(esp, esi); /* 0x360B2DE1: push esi */
   3477     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2DE2: call 0x3615fcc4 */ /* not lifted */
   3478     RECOMP_FLAGS_IN();
   3479     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3481     esp = esp + 4; /* 0x360B2DE7: add esp, 4 */
   3482     _flag_k = FK_ADD;
   3483 L_360B2DEA:
   3484     eax = esi; /* 0x360B2DEA: mov eax, esi */
   3485     esi = POP32_VAL(esp); /* 0x360B2DEC: pop esi */
   3486     ebp = POP32_VAL(esp); /* 0x360B2DED: pop ebp */
   3487     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2DEE: ret 4 */
   3488     RECOMP_REGS_OUT();
   3489 }
   3490 
   3491 void sub_360B2E00(void) {
   3492     int _fpu_cmp = 0;
   3493     uint32_t _cf = 0;
   3494     int _df = 1;
   3495     uint32_t _flag_k = FK_NONE;
   3496     uint32_t _flag_a = 0, _flag_b = 0;
   3497     uint32_t _itail_tgt = 0;
   3498     RECOMP_REGS_LOCALS
   3499     RECOMP_ENTER(0x360B2E00u);
   3500 
   3501 L_360B2E00:
   3502     MEM32(ecx) = 0x36174D78u; /* 0x360B2E00: mov dword ptr [ecx], 0x36174d78 */
   3503 L_360B2E06:
   3504     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   3505     { RECOMP_REGS_OUT(); return; } /* end of function */
   3506   _ljump:
   3507     switch (_itail_tgt) {
   3508       case 0x360B2E00u: goto L_360B2E00;
   3509       case 0x360B2E06u: goto L_360B2E06;
   3510       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3511     }
   3512     RECOMP_REGS_OUT();
   3513 }
   3514 
   3515 void sub_360B2E10(void) {
   3516     int _fpu_cmp = 0;
   3517     uint32_t _cf = 0;
   3518     int _df = 1;
   3519     uint32_t _flag_k = FK_NONE;
   3520     uint32_t _flag_a = 0, _flag_b = 0;
   3521     uint32_t _itail_tgt = 0;
   3522     RECOMP_REGS_LOCALS
   3523     RECOMP_ENTER(0x360B2E10u);
   3524 
   3525 L_360B2E10:
   3526     PUSH32(esp, ebp); /* 0x360B2E10: push ebp */
   3527     ebp = esp; /* 0x360B2E11: mov ebp, esp */
   3528     PUSH32(esp, ecx); /* 0x360B2E13: push ecx */
   3529     PUSH32(esp, ebx); /* 0x360B2E14: push ebx */
   3530     ebx = MEM32(0x3616FA8C); /* 0x360B2E15: mov ebx, dword ptr [0x3616fa8c] */
   3531     PUSH32(esp, esi); /* 0x360B2E1B: push esi */
   3532     PUSH32(esp, edi); /* 0x360B2E1C: push edi */
   3533     edi = MEM32(ebp + 0x8); /* 0x360B2E1D: mov edi, dword ptr [ebp + 8] */
   3534     eax = ebp + 0x8; /* 0x360B2E20: lea eax, [ebp + 8] */
   3535     esi = ecx; /* 0x360B2E23: mov esi, ecx */
   3536     PUSH32(esp, eax); /* 0x360B2E25: push eax */
   3537     ecx = edi; /* 0x360B2E26: mov ecx, edi */
   3538     RECOMP_ICALL(ebx); /* 0x360B2E28: call ebx */
   3539     RECOMP_FLAGS_IN();
   3540     ecx = MEM32(ebp + 0x8); /* 0x360B2E2A: mov ecx, dword ptr [ebp + 8] */
   3541     edx = ebp + (-0x4); /* 0x360B2E2D: lea edx, [ebp - 4] */
   3542     MEM32(esi + 0x20) = ecx; /* 0x360B2E30: mov dword ptr [esi + 0x20], ecx */
   3543     PUSH32(esp, edx); /* 0x360B2E33: push edx */
   3544     ecx = edi; /* 0x360B2E34: mov ecx, edi */
   3545     RECOMP_ICALL(ebx); /* 0x360B2E36: call ebx */
   3546     RECOMP_FLAGS_IN();
   3547     eax = MEM32(ebp + (-0x4)); /* 0x360B2E38: mov eax, dword ptr [ebp - 4] */
   3548     ecx = edi; /* 0x360B2E3B: mov ecx, edi */
   3549     MEM32(esi + 0x24) = eax; /* 0x360B2E3D: mov dword ptr [esi + 0x24], eax */
   3550     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B2E40: call dword ptr [0x3616fadc] */
   3551     RECOMP_FLAGS_IN();
   3552     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   3553     _cf = (eax) != 0;
   3554     eax = (uint32_t)(-(int32_t)eax); /* 0x360B2E46: neg eax */
   3555     _flag_k = FK_CMP;
   3556     edi = POP32_VAL(esp); /* 0x360B2E48: pop edi */
   3557     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B2E49: sbb eax, eax */
   3558       eax = _sc ? 0xFFFFFFFFu : 0;
   3559       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3560       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3561     esi = POP32_VAL(esp); /* 0x360B2E4B: pop esi */
   3562     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3563     eax = eax + 1; /* 0x360B2E4C: inc eax */
   3564     _flag_k = FK_INC;
   3565     ebx = POP32_VAL(esp); /* 0x360B2E4D: pop ebx */
   3566     esp = ebp; /* 0x360B2E4E: mov esp, ebp */
   3567     ebp = POP32_VAL(esp); /* 0x360B2E50: pop ebp */
   3568     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B2E51: ret 4 */
   3569     RECOMP_REGS_OUT();
   3570 }
   3571 
   3572 void sub_360B2E60(void) {
   3573     int _fpu_cmp = 0;
   3574     uint32_t _cf = 0;
   3575     int _df = 1;
   3576     uint32_t _flag_k = FK_NONE;
   3577     uint32_t _flag_a = 0, _flag_b = 0;
   3578     uint32_t _itail_tgt = 0;
   3579     RECOMP_REGS_LOCALS
   3580     RECOMP_ENTER(0x360B2E60u);
   3581 
   3582 L_360B2E60:
   3583     PUSH32(esp, ebp); /* 0x360B2E60: push ebp */
   3584     ebp = esp; /* 0x360B2E61: mov ebp, esp */
   3585     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA8u);
   3586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3587     esp = esp - 0xA8u; /* 0x360B2E63: sub esp, 0xa8 */
   3588     _flag_k = FK_CMP;
   3589     PUSH32(esp, ebx); /* 0x360B2E69: push ebx */
   3590     PUSH32(esp, esi); /* 0x360B2E6A: push esi */
   3591     ebx = ecx; /* 0x360B2E6B: mov ebx, ecx */
   3592     PUSH32(esp, edi); /* 0x360B2E6D: push edi */
   3593     esi = ebx + 0x4; /* 0x360B2E6E: lea esi, [ebx + 4] */
   3594     PUSH32(esp, esi); /* 0x360B2E71: push esi */
   3595     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360B2E72: call dword ptr [0x3616ff70] */
   3596     RECOMP_FLAGS_IN();
   3597     edi = eax; /* 0x360B2E78: mov edi, eax */
   3598     eax = MEM32(esi); /* 0x360B2E7A: mov eax, dword ptr [esi] */
   3599     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3601     esp = esp + 4; /* 0x360B2E7C: add esp, 4 */
   3602     _flag_k = FK_ADD;
   3603     /* cmp eax, 0xC350u */ /* 0x360B2E7F: cmp eax, 0xc350 */
   3604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC350u);
   3605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3606     _flag_k = FK_CMP;
   3607     MEM32(ebp + (-0x4)) = edi; /* 0x360B2E84: mov dword ptr [ebp - 4], edi */
   3608     if (CMP_NE(_flag_a, _flag_b)) goto L_360B3044; /* 0x360B2E87: jne 0x360b3044 */
   3609 L_360B2E8D:
   3610     /* test edi, edi */ /* 0x360B2E8D: test edi, edi */
   3611     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3612     _cf = 0;
   3613     _flag_k = FK_TEST;
   3614     if (TEST_Z(_flag_a, _flag_b)) goto L_360B305F; /* 0x360B2E8F: je 0x360b305f */
   3615 L_360B2E95:
   3616     ecx = MEM32(ebx + 0x20); /* 0x360B2E95: mov ecx, dword ptr [ebx + 0x20] */
   3617     eax = MEM32(edi + 0xE4); /* 0x360B2E98: mov eax, dword ptr [edi + 0xe4] */
   3618     PUSH32(esp, 2); /* 0x360B2E9E: push 2 */
   3619     esi = edi + 0xE4; /* 0x360B2EA0: lea esi, [edi + 0xe4] */
   3620     PUSH32(esp, ecx); /* 0x360B2EA6: push ecx */
   3621     ecx = esi; /* 0x360B2EA7: mov ecx, esi */
   3622     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360B2EA9: call dword ptr [eax + 4] */
   3623     RECOMP_FLAGS_IN();
   3624     ecx = MEM32(ebx + 0x24); /* 0x360B2EAC: mov ecx, dword ptr [ebx + 0x24] */
   3625     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3627     ecx = ecx - eax; /* 0x360B2EAF: sub ecx, eax */
   3628     _flag_k = FK_CMP;
   3629     /* cmp MEM32(ebx + 0x20), 0x1Bu */ /* 0x360B2EB1: cmp dword ptr [ebx + 0x20], 0x1b */
   3630     _flag_a = (uint32_t)(MEM32(ebx + 0x20)); _flag_b = (uint32_t)(0x1Bu);
   3631     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3632     _flag_k = FK_CMP;
   3633     if (CMP_NE(_flag_a, _flag_b)) goto L_360B2F0F; /* 0x360B2EB5: jne 0x360b2f0f */
   3634 L_360B2EB7:
   3635     /* test ecx, ecx */ /* 0x360B2EB7: test ecx, ecx */
   3636     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3637     _cf = 0;
   3638     _flag_k = FK_TEST;
   3639     if (TEST_NS(_flag_a, _flag_b)) goto L_360B2EE4; /* 0x360B2EB9: jge 0x360b2ee4 */
   3640 L_360B2EBB:
   3641     SET_LO8(eax, MEM8(edi + 0x128)); /* 0x360B2EBB: mov al, byte ptr [edi + 0x128] */
   3642     PUSH32(esp, 0); /* 0x360B2EC1: push 0 */
   3643     PUSH32(esp, 0); /* 0x360B2EC3: push 0 */
   3644     /* test LO8(eax), LO8(eax) */ /* 0x360B2EC5: test al, al */
   3645     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3646     _cf = 0;
   3647     _flag_k = FK_NARROW(FK_TEST, 24);
   3648     PUSH32(esp, 0); /* 0x360B2EC7: push 0 */
   3649     eax = ecx; /* 0x360B2EC9: mov eax, ecx */
   3650     PUSH32(esp, 0); /* 0x360B2ECB: push 0 */
   3651     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360B2ECD: cdq  */
   3652     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2EDA; /* 0x360B2ECE: je 0x360b2eda */
   3653 L_360B2ED0:
   3654     _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx));
   3655     eax = eax ^ edx; /* 0x360B2ED0: xor eax, edx */
   3656     _cf = 0;
   3657     _flag_k = FK_TEST;
   3658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3660     eax = eax - edx; /* 0x360B2ED2: sub eax, edx */
   3661     _flag_k = FK_CMP;
   3662     PUSH32(esp, eax); /* 0x360B2ED4: push eax */
   3663     PUSH32(esp, edi); /* 0x360B2ED5: push edi */
   3664     PUSH32(esp, 0x1Bu); /* 0x360B2ED6: push 0x1b */
   3665     goto L_360B2F03; /* 0x360B2ED8: jmp 0x360b2f03 */
   3666 L_360B2EDA:
   3667     _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx));
   3668     eax = eax ^ edx; /* 0x360B2EDA: xor eax, edx */
   3669     _cf = 0;
   3670     _flag_k = FK_TEST;
   3671     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3673     eax = eax - edx; /* 0x360B2EDC: sub eax, edx */
   3674     _flag_k = FK_CMP;
   3675     PUSH32(esp, eax); /* 0x360B2EDE: push eax */
   3676     PUSH32(esp, edi); /* 0x360B2EDF: push edi */
   3677     PUSH32(esp, 0x1Cu); /* 0x360B2EE0: push 0x1c */
   3678     goto L_360B2F03; /* 0x360B2EE2: jmp 0x360b2f03 */
   3679 L_360B2EE4:
   3680     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_360B2F0F; /* 0x360B2EE4: jle 0x360b2f0f */
   3681 L_360B2EE6:
   3682     SET_LO8(eax, MEM8(edi + 0x128)); /* 0x360B2EE6: mov al, byte ptr [edi + 0x128] */
   3683     /* test LO8(eax), LO8(eax) */ /* 0x360B2EEC: test al, al */
   3684     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3685     _cf = 0;
   3686     _flag_k = FK_NARROW(FK_TEST, 24);
   3687     if (TEST_Z(_flag_a, _flag_b)) goto L_360B2F0F; /* 0x360B2EEE: je 0x360b2f0f */
   3688 L_360B2EF0:
   3689     PUSH32(esp, 0); /* 0x360B2EF0: push 0 */
   3690     PUSH32(esp, 0); /* 0x360B2EF2: push 0 */
   3691     eax = ecx; /* 0x360B2EF4: mov eax, ecx */
   3692     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360B2EF6: cdq  */
   3693     PUSH32(esp, 0); /* 0x360B2EF7: push 0 */
   3694     PUSH32(esp, 0); /* 0x360B2EF9: push 0 */
   3695     _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx));
   3696     eax = eax ^ edx; /* 0x360B2EFB: xor eax, edx */
   3697     _cf = 0;
   3698     _flag_k = FK_TEST;
   3699     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3701     eax = eax - edx; /* 0x360B2EFD: sub eax, edx */
   3702     _flag_k = FK_CMP;
   3703     PUSH32(esp, eax); /* 0x360B2EFF: push eax */
   3704     PUSH32(esp, edi); /* 0x360B2F00: push edi */
   3705     PUSH32(esp, 0x21u); /* 0x360B2F01: push 0x21 */
   3706 L_360B2F03:
   3707     RECOMP_ICALL(0x3601C590u); /* 0x360B2F03: call 0x3601c590 */ /* not lifted */
   3708     RECOMP_FLAGS_IN();
   3709     ecx = eax; /* 0x360B2F08: mov ecx, eax */
   3710     RECOMP_ICALL(0x3601D0B0u); /* 0x360B2F0A: call 0x3601d0b0 */ /* not lifted */
   3711     RECOMP_FLAGS_IN();
   3712 L_360B2F0F:
   3713     eax = MEM32(ebx + 0x20); /* 0x360B2F0F: mov eax, dword ptr [ebx + 0x20] */
   3714     edx = MEM32(esi); /* 0x360B2F12: mov edx, dword ptr [esi] */
   3715     PUSH32(esp, 2); /* 0x360B2F14: push 2 */
   3716     PUSH32(esp, eax); /* 0x360B2F16: push eax */
   3717     ecx = esi; /* 0x360B2F17: mov ecx, esi */
   3718     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B2F19: call dword ptr [edx + 4] */
   3719     RECOMP_FLAGS_IN();
   3720     ecx = MEM32(ebx + 0x24); /* 0x360B2F1C: mov ecx, dword ptr [ebx + 0x24] */
   3721     edx = MEM32(esi); /* 0x360B2F1F: mov edx, dword ptr [esi] */
   3722     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3724     ecx = ecx - eax; /* 0x360B2F21: sub ecx, eax */
   3725     _flag_k = FK_CMP;
   3726     eax = MEM32(ebx + 0x20); /* 0x360B2F23: mov eax, dword ptr [ebx + 0x20] */
   3727     PUSH32(esp, 2); /* 0x360B2F26: push 2 */
   3728     MEM32(ebp + (-0xC)) = ecx; /* 0x360B2F28: mov dword ptr [ebp - 0xc], ecx */
   3729     PUSH32(esp, eax); /* 0x360B2F2B: push eax */
   3730     ecx = esi; /* 0x360B2F2C: mov ecx, esi */
   3731     MEM32(ebp + (-0x14)) = 0x361C8C98u; /* 0x360B2F2E: mov dword ptr [ebp - 0x14], 0x361c8c98 */
   3732     MEM32(ebp + (-0x10)) = 0x361C8C8Cu; /* 0x360B2F35: mov dword ptr [ebp - 0x10], 0x361c8c8c */
   3733     MEM32(ebp + (-0x8)) = 1; /* 0x360B2F3C: mov dword ptr [ebp - 8], 1 */
   3734     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B2F43: call dword ptr [edx + 4] */
   3735     RECOMP_FLAGS_IN();
   3736     /* cmp eax, MEM32(ebx + 0x24) */ /* 0x360B2F46: cmp eax, dword ptr [ebx + 0x24] */
   3737     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x24));
   3738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3739     _flag_k = FK_CMP;
   3740     if (CMP_GE(_flag_a, _flag_b)) goto L_360B2F52; /* 0x360B2F49: jge 0x360b2f52 */
   3741 L_360B2F4B:
   3742     MEM32(ebp + (-0x8)) = 0; /* 0x360B2F4B: mov dword ptr [ebp - 8], 0 */
   3743 L_360B2F52:
   3744     eax = MEM32(ebx + 0x20); /* 0x360B2F52: mov eax, dword ptr [ebx + 0x20] */
   3745     /* cmp eax, 0x1Bu */ /* 0x360B2F55: cmp eax, 0x1b */
   3746     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Bu);
   3747     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3748     _flag_k = FK_CMP;
   3749     if (CMP_NE(_flag_a, _flag_b)) goto L_360B2F84; /* 0x360B2F58: jne 0x360b2f84 */
   3750 L_360B2F5A:
   3751     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3752     ecx = ecx | 0xFFFFFFFFu; /* 0x360B2F5A: or ecx, 0xffffffff */
   3753     _cf = 0;
   3754     _flag_k = FK_TEST;
   3755     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3756     eax = 0; /* 0x360B2F5D: xor eax, eax */
   3757     _cf = 0;
   3758     _flag_k = FK_TEST;
   3759     edi = 0x361C8C84u; /* 0x360B2F5F: mov edi, 0x361c8c84 */
   3760     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; } /* 0x360B2F64: repne scasb al, byte ptr es:[edi] */
   3761     ecx = ~ecx; /* 0x360B2F66: not ecx */
   3762     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3764     edi = edi - ecx; /* 0x360B2F68: sub edi, ecx */
   3765     _flag_k = FK_CMP;
   3766     eax = ecx; /* 0x360B2F6A: mov eax, ecx */
   3767     esi = edi; /* 0x360B2F6C: mov esi, edi */
   3768     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360B2F6E: shr ecx, 2 */
   3769     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3770     ecx = ecx >> 2u; /* 0x360B2F6E: shr ecx, 2 */
   3771     edx = ebp + (-0x28); /* 0x360B2F71: lea edx, [ebp - 0x28] */
   3772     edi = edx; /* 0x360B2F74: mov edi, edx */
   3773     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360B2F76: 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; }
   3774     ecx = eax; /* 0x360B2F78: mov ecx, eax */
   3775     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3776     ecx = ecx & 3; /* 0x360B2F7A: and ecx, 3 */
   3777     _cf = 0;
   3778     _flag_k = FK_TEST;
   3779     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360B2F7D: 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; }
   3780     edi = MEM32(ebp + (-0x4)); /* 0x360B2F7F: mov edi, dword ptr [ebp - 4] */
   3781     goto L_360B2FC6; /* 0x360B2F82: jmp 0x360b2fc6 */
   3782 L_360B2F84:
   3783     /* cmp eax, 0x3Du */ /* 0x360B2F84: cmp eax, 0x3d */
   3784     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Du);
   3785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3786     _flag_k = FK_CMP;
   3787     if (CMP_NE(_flag_a, _flag_b)) goto L_360B2FB3; /* 0x360B2F87: jne 0x360b2fb3 */
   3788 L_360B2F89:
   3789     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3790     ecx = ecx | 0xFFFFFFFFu; /* 0x360B2F89: or ecx, 0xffffffff */
   3791     _cf = 0;
   3792     _flag_k = FK_TEST;
   3793     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3794     eax = 0; /* 0x360B2F8C: xor eax, eax */
   3795     _cf = 0;
   3796     _flag_k = FK_TEST;
   3797     edi = 0x361C8C7Cu; /* 0x360B2F8E: mov edi, 0x361c8c7c */
   3798     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; } /* 0x360B2F93: repne scasb al, byte ptr es:[edi] */
   3799     ecx = ~ecx; /* 0x360B2F95: not ecx */
   3800     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3802     edi = edi - ecx; /* 0x360B2F97: sub edi, ecx */
   3803     _flag_k = FK_CMP;
   3804     eax = ecx; /* 0x360B2F99: mov eax, ecx */
   3805     esi = edi; /* 0x360B2F9B: mov esi, edi */
   3806     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360B2F9D: shr ecx, 2 */
   3807     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3808     ecx = ecx >> 2u; /* 0x360B2F9D: shr ecx, 2 */
   3809     edx = ebp + (-0x28); /* 0x360B2FA0: lea edx, [ebp - 0x28] */
   3810     edi = edx; /* 0x360B2FA3: mov edi, edx */
   3811     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360B2FA5: 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; }
   3812     ecx = eax; /* 0x360B2FA7: mov ecx, eax */
   3813     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3814     ecx = ecx & 3; /* 0x360B2FA9: and ecx, 3 */
   3815     _cf = 0;
   3816     _flag_k = FK_TEST;
   3817     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360B2FAC: 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; }
   3818     edi = MEM32(ebp + (-0x4)); /* 0x360B2FAE: mov edi, dword ptr [ebp - 4] */
   3819     goto L_360B2FC6; /* 0x360B2FB1: jmp 0x360b2fc6 */
   3820 L_360B2FB3:
   3821     PUSH32(esp, eax); /* 0x360B2FB3: push eax */
   3822     ecx = ebp + (-0x28); /* 0x360B2FB4: lea ecx, [ebp - 0x28] */
   3823     PUSH32(esp, 0x361C8C74u); /* 0x360B2FB7: push 0x361c8c74 */
   3824     PUSH32(esp, ecx); /* 0x360B2FBC: push ecx */
   3825     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x360B2FBD: call dword ptr [0x3616f25c] */
   3826     RECOMP_FLAGS_IN();
   3827     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3828     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3829     esp = esp + 0xCu; /* 0x360B2FC3: add esp, 0xc */
   3830     _flag_k = FK_ADD;
   3831 L_360B2FC6:
   3832     esi = MEM32(ebp + (-0xC)); /* 0x360B2FC6: mov esi, dword ptr [ebp - 0xc] */
   3833     eax = esi; /* 0x360B2FC9: mov eax, esi */
   3834     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360B2FCB: cdq  */
   3835     _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx));
   3836     eax = eax ^ edx; /* 0x360B2FCC: xor eax, edx */
   3837     _cf = 0;
   3838     _flag_k = FK_TEST;
   3839     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3841     eax = eax - edx; /* 0x360B2FCE: sub eax, edx */
   3842     _flag_k = FK_CMP;
   3843     edx = MEM32(ebp + (-0x8)); /* 0x360B2FD0: mov edx, dword ptr [ebp - 8] */
   3844     PUSH32(esp, eax); /* 0x360B2FD3: push eax */
   3845     eax = MEM32(ebp + edx * 4 + (-0x14)); /* 0x360B2FD4: mov eax, dword ptr [ebp + edx*4 - 0x14] */
   3846     PUSH32(esp, eax); /* 0x360B2FD8: push eax */
   3847     ecx = ebp + (-0x28); /* 0x360B2FD9: lea ecx, [ebp - 0x28] */
   3848     PUSH32(esp, ecx); /* 0x360B2FDC: push ecx */
   3849     edx = ebp + (-0xA8); /* 0x360B2FDD: lea edx, [ebp - 0xa8] */
   3850     PUSH32(esp, 0x361C8C60u); /* 0x360B2FE3: push 0x361c8c60 */
   3851     PUSH32(esp, edx); /* 0x360B2FE8: push edx */
   3852     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x360B2FE9: call dword ptr [0x3616f25c] */
   3853     RECOMP_FLAGS_IN();
   3854     eax = MEM32(ebx + 0x20); /* 0x360B2FEF: mov eax, dword ptr [ebx + 0x20] */
   3855     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3856     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3857     esp = esp + 0x14u; /* 0x360B2FF2: add esp, 0x14 */
   3858     _flag_k = FK_ADD;
   3859     /* cmp eax, 0x34u */ /* 0x360B2FF5: cmp eax, 0x34 */
   3860     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x34u);
   3861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3862     _flag_k = FK_CMP;
   3863     if (CMP_NE(_flag_a, _flag_b)) goto L_360B3028; /* 0x360B2FF8: jne 0x360b3028 */
   3864 L_360B2FFA:
   3865     SET_LO8(eax, MEM8(edi + 0x128)); /* 0x360B2FFA: mov al, byte ptr [edi + 0x128] */
   3866     /* test LO8(eax), LO8(eax) */ /* 0x360B3000: test al, al */
   3867     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3868     _cf = 0;
   3869     _flag_k = FK_NARROW(FK_TEST, 24);
   3870     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3028; /* 0x360B3002: je 0x360b3028 */
   3871 L_360B3004:
   3872     /* test MEM32(edi + 0x11C), 0x00400000u */ /* 0x360B3004: test dword ptr [edi + 0x11c], 0x400000 */
   3873     _flag_a = (uint32_t)(MEM32(edi + 0x11C)); _flag_b = (uint32_t)(0x00400000u);
   3874     _cf = 0;
   3875     _flag_k = FK_TEST;
   3876     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B3028; /* 0x360B300E: jne 0x360b3028 */
   3877 L_360B3010:
   3878     PUSH32(esp, 0); /* 0x360B3010: push 0 */
   3879     PUSH32(esp, 0); /* 0x360B3012: push 0 */
   3880     PUSH32(esp, 0); /* 0x360B3014: push 0 */
   3881     PUSH32(esp, 0); /* 0x360B3016: push 0 */
   3882     PUSH32(esp, esi); /* 0x360B3018: push esi */
   3883     PUSH32(esp, edi); /* 0x360B3019: push edi */
   3884     PUSH32(esp, 0x23u); /* 0x360B301A: push 0x23 */
   3885     RECOMP_ICALL(0x3601C590u); /* 0x360B301C: call 0x3601c590 */ /* not lifted */
   3886     RECOMP_FLAGS_IN();
   3887     ecx = eax; /* 0x360B3021: mov ecx, eax */
   3888     RECOMP_ICALL(0x3601D0B0u); /* 0x360B3023: call 0x3601d0b0 */ /* not lifted */
   3889     RECOMP_FLAGS_IN();
   3890 L_360B3028:
   3891     eax = MEM32(ebx + 0x24); /* 0x360B3028: mov eax, dword ptr [ebx + 0x24] */
   3892     ecx = MEM32(ebx + 0x20); /* 0x360B302B: mov ecx, dword ptr [ebx + 0x20] */
   3893     PUSH32(esp, eax); /* 0x360B302E: push eax */
   3894     PUSH32(esp, ecx); /* 0x360B302F: push ecx */
   3895     ecx = MEM32(edi + 0x154); /* 0x360B3030: mov ecx, dword ptr [edi + 0x154] */
   3896     RECOMP_ICALL(0x36075DB0u); /* 0x360B3036: call 0x36075db0 */ /* not lifted */
   3897     RECOMP_FLAGS_IN();
   3898     edi = POP32_VAL(esp); /* 0x360B303B: pop edi */
   3899     esi = POP32_VAL(esp); /* 0x360B303C: pop esi */
   3900     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3901     eax = 0; /* 0x360B303D: xor eax, eax */
   3902     _cf = 0;
   3903     _flag_k = FK_TEST;
   3904     ebx = POP32_VAL(esp); /* 0x360B303F: pop ebx */
   3905     esp = ebp; /* 0x360B3040: mov esp, ebp */
   3906     ebp = POP32_VAL(esp); /* 0x360B3042: pop ebp */
   3907     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3043: ret  */
   3908 L_360B3044:
   3909     /* test edi, edi */ /* 0x360B3044: test edi, edi */
   3910     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3911     _cf = 0;
   3912     _flag_k = FK_TEST;
   3913     if (TEST_Z(_flag_a, _flag_b)) goto L_360B305F; /* 0x360B3046: je 0x360b305f */
   3914 L_360B3048:
   3915     ecx = edi + (-0x8C); /* 0x360B3048: lea ecx, [edi - 0x8c] */
   3916     /* test ecx, ecx */ /* 0x360B304E: test ecx, ecx */
   3917     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3918     _cf = 0;
   3919     _flag_k = FK_TEST;
   3920     if (TEST_Z(_flag_a, _flag_b)) goto L_360B305F; /* 0x360B3050: je 0x360b305f */
   3921 L_360B3052:
   3922     eax = MEM32(ebx + 0x24); /* 0x360B3052: mov eax, dword ptr [ebx + 0x24] */
   3923     edx = MEM32(ecx); /* 0x360B3055: mov edx, dword ptr [ecx] */
   3924     PUSH32(esp, eax); /* 0x360B3057: push eax */
   3925     eax = MEM32(ebx + 0x20); /* 0x360B3058: mov eax, dword ptr [ebx + 0x20] */
   3926     PUSH32(esp, eax); /* 0x360B305B: push eax */
   3927     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360B305C: call dword ptr [edx + 8] */
   3928     RECOMP_FLAGS_IN();
   3929 L_360B305F:
   3930     edi = POP32_VAL(esp); /* 0x360B305F: pop edi */
   3931     esi = POP32_VAL(esp); /* 0x360B3060: pop esi */
   3932     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3933     eax = 0; /* 0x360B3061: xor eax, eax */
   3934     _cf = 0;
   3935     _flag_k = FK_TEST;
   3936     ebx = POP32_VAL(esp); /* 0x360B3063: pop ebx */
   3937     esp = ebp; /* 0x360B3064: mov esp, ebp */
   3938     ebp = POP32_VAL(esp); /* 0x360B3066: pop ebp */
   3939     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3067: ret  */
   3940     RECOMP_REGS_OUT();
   3941 }
   3942 
   3943 void sub_360B3070(void) {
   3944     int _fpu_cmp = 0;
   3945     uint32_t _cf = 0;
   3946     int _df = 1;
   3947     uint32_t _flag_k = FK_NONE;
   3948     uint32_t _flag_a = 0, _flag_b = 0;
   3949     uint32_t _itail_tgt = 0;
   3950     RECOMP_REGS_LOCALS
   3951     RECOMP_ENTER(0x360B3070u);
   3952 
   3953 L_360B3070:
   3954     PUSH32(esp, ebp); /* 0x360B3070: push ebp */
   3955     ebp = esp; /* 0x360B3071: mov ebp, esp */
   3956     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B3073: push -1 */
   3957     PUSH32(esp, 0x36167309u); /* 0x360B3075: push 0x36167309 */
   3958     eax = MEM32(FS_BASE + (0)); /* 0x360B307A: mov eax, dword ptr fs:[0] */
   3959     PUSH32(esp, eax); /* 0x360B3080: push eax */
   3960     MEM32(FS_BASE + (0)) = esp; /* 0x360B3081: mov dword ptr fs:[0], esp */
   3961     PUSH32(esp, ecx); /* 0x360B3088: push ecx */
   3962     PUSH32(esp, esi); /* 0x360B3089: push esi */
   3963     esi = ecx; /* 0x360B308A: mov esi, ecx */
   3964     MEM32(ebp + (-0x10)) = esi; /* 0x360B308C: mov dword ptr [ebp - 0x10], esi */
   3965     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360B308F: call dword ptr [0x3616ffd0] */
   3966     RECOMP_FLAGS_IN();
   3967     ecx = esi; /* 0x360B3095: mov ecx, esi */
   3968     MEM32(ebp + (-0x4)) = 0; /* 0x360B3097: mov dword ptr [ebp - 4], 0 */
   3969     MEM32(esi) = 0x36174D9Cu; /* 0x360B309E: mov dword ptr [esi], 0x36174d9c */
   3970     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x360B30A4: call dword ptr [0x3616fc20] */
   3971     RECOMP_FLAGS_IN();
   3972     ecx = MEM32(ebp + (-0xC)); /* 0x360B30AA: mov ecx, dword ptr [ebp - 0xc] */
   3973     eax = esi; /* 0x360B30AD: mov eax, esi */
   3974     esi = POP32_VAL(esp); /* 0x360B30AF: pop esi */
   3975     MEM32(FS_BASE + (0)) = ecx; /* 0x360B30B0: mov dword ptr fs:[0], ecx */
   3976     esp = ebp; /* 0x360B30B7: mov esp, ebp */
   3977     ebp = POP32_VAL(esp); /* 0x360B30B9: pop ebp */
   3978     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B30BA: ret  */
   3979     RECOMP_REGS_OUT();
   3980 }
   3981 
   3982 void sub_360B30C0(void) {
   3983     int _fpu_cmp = 0;
   3984     uint32_t _cf = 0;
   3985     int _df = 1;
   3986     uint32_t _flag_k = FK_NONE;
   3987     uint32_t _flag_a = 0, _flag_b = 0;
   3988     uint32_t _itail_tgt = 0;
   3989     RECOMP_REGS_LOCALS
   3990     RECOMP_ENTER(0x360B30C0u);
   3991 
   3992 L_360B30C0:
   3993     PUSH32(esp, ebp); /* 0x360B30C0: push ebp */
   3994     ebp = esp; /* 0x360B30C1: mov ebp, esp */
   3995     PUSH32(esp, esi); /* 0x360B30C3: push esi */
   3996     esi = ecx; /* 0x360B30C4: mov esi, ecx */
   3997     RECOMP_ICALL(0x360B30F0u); /* 0x360B30C6: call 0x360b30f0 */ /* not lifted */
   3998     RECOMP_FLAGS_IN();
   3999     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B30CB: test byte ptr [ebp + 8], 1 */
   4000     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4001     _cf = 0;
   4002     _flag_k = FK_NARROW(FK_TEST, 24);
   4003     if (TEST_Z(_flag_a, _flag_b)) goto L_360B30DA; /* 0x360B30CF: je 0x360b30da */
   4004 L_360B30D1:
   4005     PUSH32(esp, esi); /* 0x360B30D1: push esi */
   4006     RECOMP_ICALL(0x3615FCC4u); /* 0x360B30D2: call 0x3615fcc4 */ /* not lifted */
   4007     RECOMP_FLAGS_IN();
   4008     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4009     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4010     esp = esp + 4; /* 0x360B30D7: add esp, 4 */
   4011     _flag_k = FK_ADD;
   4012 L_360B30DA:
   4013     eax = esi; /* 0x360B30DA: mov eax, esi */
   4014     esi = POP32_VAL(esp); /* 0x360B30DC: pop esi */
   4015     ebp = POP32_VAL(esp); /* 0x360B30DD: pop ebp */
   4016     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B30DE: ret 4 */
   4017     RECOMP_REGS_OUT();
   4018 }
   4019 
   4020 void sub_360B30F0(void) {
   4021     int _fpu_cmp = 0;
   4022     uint32_t _cf = 0;
   4023     int _df = 1;
   4024     uint32_t _flag_k = FK_NONE;
   4025     uint32_t _flag_a = 0, _flag_b = 0;
   4026     uint32_t _itail_tgt = 0;
   4027     RECOMP_REGS_LOCALS
   4028     RECOMP_ENTER(0x360B30F0u);
   4029 
   4030 L_360B30F0:
   4031     MEM32(ecx) = 0x36174D9Cu; /* 0x360B30F0: mov dword ptr [ecx], 0x36174d9c */
   4032 L_360B30F6:
   4033     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   4034     { RECOMP_REGS_OUT(); return; } /* end of function */
   4035   _ljump:
   4036     switch (_itail_tgt) {
   4037       case 0x360B30F0u: goto L_360B30F0;
   4038       case 0x360B30F6u: goto L_360B30F6;
   4039       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4040     }
   4041     RECOMP_REGS_OUT();
   4042 }
   4043 
   4044 void sub_360B3100(void) {
   4045     int _fpu_cmp = 0;
   4046     uint32_t _cf = 0;
   4047     int _df = 1;
   4048     uint32_t _flag_k = FK_NONE;
   4049     uint32_t _flag_a = 0, _flag_b = 0;
   4050     uint32_t _itail_tgt = 0;
   4051     RECOMP_REGS_LOCALS
   4052     RECOMP_ENTER(0x360B3100u);
   4053 
   4054 L_360B3100:
   4055     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   4056     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4057     ecx = ecx + 4; /* 0x360B3100: add ecx, 4 */
   4058     _flag_k = FK_ADD;
   4059     PUSH32(esp, ecx); /* 0x360B3103: push ecx */
   4060     RECOMP_ICALL(0x360A8930u); /* 0x360B3104: call 0x360a8930 */ /* not lifted */
   4061     RECOMP_FLAGS_IN();
   4062     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4063     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4064     esp = esp + 4; /* 0x360B3109: add esp, 4 */
   4065     _flag_k = FK_ADD;
   4066     /* test eax, eax */ /* 0x360B310C: test eax, eax */
   4067     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4068     _cf = 0;
   4069     _flag_k = FK_TEST;
   4070     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B3116; /* 0x360B310E: jne 0x360b3116 */
   4071 L_360B3110:
   4072     eax = 2; /* 0x360B3110: mov eax, 2 */
   4073     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3115: ret  */
   4074 L_360B3116:
   4075     SET_LO8(eax, MEM8(eax + 0x120)); /* 0x360B3116: mov al, byte ptr [eax + 0x120] */
   4076     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4077     SET_LO8(eax, LO8(eax) - 1); /* 0x360B311C: dec al */
   4078     _flag_k = FK_NARROW(FK_DEC, 24);
   4079     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4080     _cf = (LO8(eax)) != 0;
   4081     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x360B311E: neg al */
   4082     _flag_k = FK_NARROW(FK_CMP, 24);
   4083     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B3120: sbb eax, eax */
   4084       eax = _sc ? 0xFFFFFFFFu : 0;
   4085       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4086       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4087     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
   4088     eax = eax & 0xFFFFFFFEu; /* 0x360B3122: and eax, 0xfffffffe */
   4089     _cf = 0;
   4090     _flag_k = FK_TEST;
   4091     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4092     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4093     eax = eax + 3; /* 0x360B3125: add eax, 3 */
   4094     _flag_k = FK_ADD;
   4095     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3128: ret  */
   4096     RECOMP_REGS_OUT();
   4097 }
   4098 
   4099 void sub_360B3130(void) {
   4100     int _fpu_cmp = 0;
   4101     uint32_t _cf = 0;
   4102     int _df = 1;
   4103     uint32_t _flag_k = FK_NONE;
   4104     uint32_t _flag_a = 0, _flag_b = 0;
   4105     uint32_t _itail_tgt = 0;
   4106     RECOMP_REGS_LOCALS
   4107     RECOMP_ENTER(0x360B3130u);
   4108 
   4109 L_360B3130:
   4110     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   4111     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4112     ecx = ecx + 4; /* 0x360B3130: add ecx, 4 */
   4113     _flag_k = FK_ADD;
   4114     PUSH32(esp, esi); /* 0x360B3133: push esi */
   4115     PUSH32(esp, ecx); /* 0x360B3134: push ecx */
   4116     RECOMP_ICALL(0x360A8930u); /* 0x360B3135: call 0x360a8930 */ /* not lifted */
   4117     RECOMP_FLAGS_IN();
   4118     esi = eax; /* 0x360B313A: mov esi, eax */
   4119     eax = MEM32(esi); /* 0x360B313C: mov eax, dword ptr [esi] */
   4120     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4122     esp = esp + 4; /* 0x360B313E: add esp, 4 */
   4123     _flag_k = FK_ADD;
   4124     PUSH32(esp, 0); /* 0x360B3141: push 0 */
   4125     ecx = esi; /* 0x360B3143: mov ecx, esi */
   4126     RECOMP_ICALL(MEM32(eax + 0x12C)); /* 0x360B3145: call dword ptr [eax + 0x12c] */
   4127     RECOMP_FLAGS_IN();
   4128     /* test esi, esi */ /* 0x360B314B: test esi, esi */
   4129     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4130     _cf = 0;
   4131     _flag_k = FK_TEST;
   4132     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3157; /* 0x360B314D: je 0x360b3157 */
   4133 L_360B314F:
   4134     eax = esi + 0x8C; /* 0x360B314F: lea eax, [esi + 0x8c] */
   4135     esi = POP32_VAL(esp); /* 0x360B3155: pop esi */
   4136     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3156: ret  */
   4137 L_360B3157:
   4138     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4139     eax = 0; /* 0x360B3157: xor eax, eax */
   4140     _cf = 0;
   4141     _flag_k = FK_TEST;
   4142     esi = POP32_VAL(esp); /* 0x360B3159: pop esi */
   4143     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B315A: ret  */
   4144     RECOMP_REGS_OUT();
   4145 }
   4146 
   4147 void sub_360B3160(void) {
   4148     int _fpu_cmp = 0;
   4149     uint32_t _cf = 0;
   4150     int _df = 1;
   4151     uint32_t _flag_k = FK_NONE;
   4152     uint32_t _flag_a = 0, _flag_b = 0;
   4153     uint32_t _itail_tgt = 0;
   4154     RECOMP_REGS_LOCALS
   4155     RECOMP_ENTER(0x360B3160u);
   4156 
   4157 L_360B3160:
   4158     PUSH32(esp, esi); /* 0x360B3160: push esi */
   4159     esi = ecx; /* 0x360B3161: mov esi, ecx */
   4160     RECOMP_ICALL(0x360B2170u); /* 0x360B3163: call 0x360b2170 */ /* not lifted */
   4161     RECOMP_FLAGS_IN();
   4162     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4163     eax = 0; /* 0x360B3168: xor eax, eax */
   4164     _cf = 0;
   4165     _flag_k = FK_TEST;
   4166     MEM32(esi + 0x7C) = eax; /* 0x360B316A: mov dword ptr [esi + 0x7c], eax */
   4167     MEM32(esi + 0x80) = eax; /* 0x360B316D: mov dword ptr [esi + 0x80], eax */
   4168     MEM32(esi + 0x84) = eax; /* 0x360B3173: mov dword ptr [esi + 0x84], eax */
   4169     MEM32(esi + 0x88) = eax; /* 0x360B3179: mov dword ptr [esi + 0x88], eax */
   4170     MEM32(esi + 0x8C) = eax; /* 0x360B317F: mov dword ptr [esi + 0x8c], eax */
   4171     MEM8(esi + 0x90) = (uint8_t)(LO8(eax)); /* 0x360B3185: mov byte ptr [esi + 0x90], al */
   4172     MEM8(esi + 0x91) = (uint8_t)(LO8(eax)); /* 0x360B318B: mov byte ptr [esi + 0x91], al */
   4173     MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x360B3191: mov byte ptr [esi + 0xc], al */
   4174     MEM32(esi) = 0x36174DDCu; /* 0x360B3194: mov dword ptr [esi], 0x36174ddc */
   4175     MEM32(esi + 0x20) = 0x36174DC0u; /* 0x360B319A: mov dword ptr [esi + 0x20], 0x36174dc0 */
   4176     eax = esi; /* 0x360B31A1: mov eax, esi */
   4177     esi = POP32_VAL(esp); /* 0x360B31A3: pop esi */
   4178     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B31A4: ret  */
   4179     RECOMP_REGS_OUT();
   4180 }
   4181 
   4182 void sub_360B31B0(void) {
   4183     int _fpu_cmp = 0;
   4184     uint32_t _cf = 0;
   4185     int _df = 1;
   4186     uint32_t _flag_k = FK_NONE;
   4187     uint32_t _flag_a = 0, _flag_b = 0;
   4188     uint32_t _itail_tgt = 0;
   4189     RECOMP_REGS_LOCALS
   4190     RECOMP_ENTER(0x360B31B0u);
   4191 
   4192 L_360B31B0:
   4193     PUSH32(esp, ebp); /* 0x360B31B0: push ebp */
   4194     ebp = esp; /* 0x360B31B1: mov ebp, esp */
   4195     PUSH32(esp, esi); /* 0x360B31B3: push esi */
   4196     esi = ecx; /* 0x360B31B4: mov esi, ecx */
   4197     RECOMP_ICALL(0x360B11C0u); /* 0x360B31B6: call 0x360b11c0 */ /* not lifted */
   4198     RECOMP_FLAGS_IN();
   4199     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B31BB: test byte ptr [ebp + 8], 1 */
   4200     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4201     _cf = 0;
   4202     _flag_k = FK_NARROW(FK_TEST, 24);
   4203     if (TEST_Z(_flag_a, _flag_b)) goto L_360B31CA; /* 0x360B31BF: je 0x360b31ca */
   4204 L_360B31C1:
   4205     PUSH32(esp, esi); /* 0x360B31C1: push esi */
   4206     RECOMP_ICALL(0x3615FCC4u); /* 0x360B31C2: call 0x3615fcc4 */ /* not lifted */
   4207     RECOMP_FLAGS_IN();
   4208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4209     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4210     esp = esp + 4; /* 0x360B31C7: add esp, 4 */
   4211     _flag_k = FK_ADD;
   4212 L_360B31CA:
   4213     eax = esi; /* 0x360B31CA: mov eax, esi */
   4214     esi = POP32_VAL(esp); /* 0x360B31CC: pop esi */
   4215     ebp = POP32_VAL(esp); /* 0x360B31CD: pop ebp */
   4216     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B31CE: ret 4 */
   4217     RECOMP_REGS_OUT();
   4218 }
   4219 
   4220 void sub_360B31E0(void) {
   4221     int _fpu_cmp = 0;
   4222     uint32_t _cf = 0;
   4223     int _df = 1;
   4224     uint32_t _flag_k = FK_NONE;
   4225     uint32_t _flag_a = 0, _flag_b = 0;
   4226     uint32_t _itail_tgt = 0;
   4227     RECOMP_REGS_LOCALS
   4228     RECOMP_ENTER(0x360B31E0u);
   4229 
   4230 L_360B31E0:
   4231     PUSH32(esp, ebp); /* 0x360B31E0: push ebp */
   4232     ebp = esp; /* 0x360B31E1: mov ebp, esp */
   4233     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B31E3: push -1 */
   4234     PUSH32(esp, 0x36167328u); /* 0x360B31E5: push 0x36167328 */
   4235     eax = MEM32(FS_BASE + (0)); /* 0x360B31EA: mov eax, dword ptr fs:[0] */
   4236     PUSH32(esp, eax); /* 0x360B31F0: push eax */
   4237     MEM32(FS_BASE + (0)) = esp; /* 0x360B31F1: mov dword ptr fs:[0], esp */
   4238     PUSH32(esp, ecx); /* 0x360B31F8: push ecx */
   4239     eax = MEM32(ebp + 0xC); /* 0x360B31F9: mov eax, dword ptr [ebp + 0xc] */
   4240     PUSH32(esp, ebx); /* 0x360B31FC: push ebx */
   4241     PUSH32(esp, esi); /* 0x360B31FD: push esi */
   4242     PUSH32(esp, edi); /* 0x360B31FE: push edi */
   4243     edi = MEM32(ebp + 0x8); /* 0x360B31FF: mov edi, dword ptr [ebp + 8] */
   4244     PUSH32(esp, eax); /* 0x360B3202: push eax */
   4245     esi = ecx; /* 0x360B3203: mov esi, ecx */
   4246     PUSH32(esp, edi); /* 0x360B3205: push edi */
   4247     MEM32(ebp + (-0x10)) = esi; /* 0x360B3206: mov dword ptr [ebp - 0x10], esi */
   4248     RECOMP_ICALL(0x360B22D0u); /* 0x360B3209: call 0x360b22d0 */ /* not lifted */
   4249     RECOMP_FLAGS_IN();
   4250     edx = MEM32(edi); /* 0x360B320E: mov edx, dword ptr [edi] */
   4251     PUSH32(esp, 2); /* 0x360B3210: push 2 */
   4252     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4253     ebx = 0; /* 0x360B3212: xor ebx, ebx */
   4254     _cf = 0;
   4255     _flag_k = FK_TEST;
   4256     PUSH32(esp, 0x121u); /* 0x360B3214: push 0x121 */
   4257     ecx = edi; /* 0x360B3219: mov ecx, edi */
   4258     MEM32(ebp + (-0x4)) = ebx; /* 0x360B321B: mov dword ptr [ebp - 4], ebx */
   4259     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360B321E: call dword ptr [edx + 4] */
   4260     RECOMP_FLAGS_IN();
   4261     MEM32(esi + 0x7C) = eax; /* 0x360B3221: mov dword ptr [esi + 0x7c], eax */
   4262     eax = edi + 0x1AC; /* 0x360B3224: lea eax, [edi + 0x1ac] */
   4263     ecx = esi + 0x80; /* 0x360B322A: lea ecx, [esi + 0x80] */
   4264     /* cmp ecx, eax */ /* 0x360B3230: cmp ecx, eax */
   4265     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4267     _flag_k = FK_CMP;
   4268     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B323E; /* 0x360B3232: je 0x360b323e */
   4269 L_360B3234:
   4270     edx = MEM32(eax); /* 0x360B3234: mov edx, dword ptr [eax] */
   4271     MEM32(ecx) = edx; /* 0x360B3236: mov dword ptr [ecx], edx */
   4272     eax = MEM32(eax + 0x4); /* 0x360B3238: mov eax, dword ptr [eax + 4] */
   4273     MEM32(ecx + 0x4) = eax; /* 0x360B323B: mov dword ptr [ecx + 4], eax */
   4274 L_360B323E:
   4275     MEM32(esi + 0x88) = ebx; /* 0x360B323E: mov dword ptr [esi + 0x88], ebx */
   4276     MEM32(esi + 0x8C) = ebx; /* 0x360B3244: mov dword ptr [esi + 0x8c], ebx */
   4277     SET_LO8(ecx, MEM8(edi + 0x1BD)); /* 0x360B324A: mov cl, byte ptr [edi + 0x1bd] */
   4278     MEM8(esi + 0x90) = (uint8_t)(LO8(ecx)); /* 0x360B3250: mov byte ptr [esi + 0x90], cl */
   4279     SET_LO8(edx, MEM8(edi + 0x1BC)); /* 0x360B3256: mov dl, byte ptr [edi + 0x1bc] */
   4280     ecx = MEM32(ebp + (-0xC)); /* 0x360B325C: mov ecx, dword ptr [ebp - 0xc] */
   4281     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x360B325F: mov byte ptr [esi + 0xc], bl */
   4282     edi = POP32_VAL(esp); /* 0x360B3262: pop edi */
   4283     MEM8(esi + 0x91) = (uint8_t)(LO8(edx)); /* 0x360B3263: mov byte ptr [esi + 0x91], dl */
   4284     MEM32(esi) = 0x36174DDCu; /* 0x360B3269: mov dword ptr [esi], 0x36174ddc */
   4285     MEM32(esi + 0x20) = 0x36174DC0u; /* 0x360B326F: mov dword ptr [esi + 0x20], 0x36174dc0 */
   4286     eax = esi; /* 0x360B3276: mov eax, esi */
   4287     esi = POP32_VAL(esp); /* 0x360B3278: pop esi */
   4288     ebx = POP32_VAL(esp); /* 0x360B3279: pop ebx */
   4289     MEM32(FS_BASE + (0)) = ecx; /* 0x360B327A: mov dword ptr fs:[0], ecx */
   4290     esp = ebp; /* 0x360B3281: mov esp, ebp */
   4291     ebp = POP32_VAL(esp); /* 0x360B3283: pop ebp */
   4292     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360B3284: ret 8 */
   4293     RECOMP_REGS_OUT();
   4294 }
   4295 
   4296 void sub_360B3290(void) {
   4297     int _fpu_cmp = 0;
   4298     uint32_t _cf = 0;
   4299     int _df = 1;
   4300     uint32_t _flag_k = FK_NONE;
   4301     uint32_t _flag_a = 0, _flag_b = 0;
   4302     uint32_t _itail_tgt = 0;
   4303     RECOMP_REGS_LOCALS
   4304     RECOMP_ENTER(0x360B3290u);
   4305 
   4306 L_360B3290:
   4307     PUSH32(esp, ebp); /* 0x360B3290: push ebp */
   4308     ebp = esp; /* 0x360B3291: mov ebp, esp */
   4309     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B3293: push -1 */
   4310     PUSH32(esp, 0x3616734Bu); /* 0x360B3295: push 0x3616734b */
   4311     eax = MEM32(FS_BASE + (0)); /* 0x360B329A: mov eax, dword ptr fs:[0] */
   4312     PUSH32(esp, eax); /* 0x360B32A0: push eax */
   4313     MEM32(FS_BASE + (0)) = esp; /* 0x360B32A1: mov dword ptr fs:[0], esp */
   4314     PUSH32(esp, ecx); /* 0x360B32A8: push ecx */
   4315     PUSH32(esp, esi); /* 0x360B32A9: push esi */
   4316     PUSH32(esp, 0x1C0u); /* 0x360B32AA: push 0x1c0 */
   4317     esi = ecx; /* 0x360B32AF: mov esi, ecx */
   4318     RECOMP_ICALL(0x3615FD6Au); /* 0x360B32B1: call 0x3615fd6a */ /* not lifted */
   4319     RECOMP_FLAGS_IN();
   4320     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4321     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4322     esp = esp + 4; /* 0x360B32B6: add esp, 4 */
   4323     _flag_k = FK_ADD;
   4324     MEM32(ebp + (-0x10)) = eax; /* 0x360B32B9: mov dword ptr [ebp - 0x10], eax */
   4325     /* test eax, eax */ /* 0x360B32BC: test eax, eax */
   4326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4327     _cf = 0;
   4328     _flag_k = FK_TEST;
   4329     MEM32(ebp + (-0x4)) = 0; /* 0x360B32BE: mov dword ptr [ebp - 4], 0 */
   4330     if (TEST_Z(_flag_a, _flag_b)) goto L_360B32F0; /* 0x360B32C5: je 0x360b32f0 */
   4331 L_360B32C7:
   4332     edx = MEM32(esi + (-0x18)); /* 0x360B32C7: mov edx, dword ptr [esi - 0x18] */
   4333     esi = MEM32(esi + (-0x1C)); /* 0x360B32CA: mov esi, dword ptr [esi - 0x1c] */
   4334     PUSH32(esp, edx); /* 0x360B32CD: push edx */
   4335     PUSH32(esp, esi); /* 0x360B32CE: push esi */
   4336     ecx = eax; /* 0x360B32CF: mov ecx, eax */
   4337     RECOMP_ICALL(0x360A8810u); /* 0x360B32D1: call 0x360a8810 */ /* not lifted */
   4338     RECOMP_FLAGS_IN();
   4339     /* test eax, eax */ /* 0x360B32D6: test eax, eax */
   4340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4341     _cf = 0;
   4342     _flag_k = FK_TEST;
   4343     if (TEST_Z(_flag_a, _flag_b)) goto L_360B32F0; /* 0x360B32D8: je 0x360b32f0 */
   4344 L_360B32DA:
   4345     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Cu);
   4346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4347     eax = eax + 0x8Cu; /* 0x360B32DA: add eax, 0x8c */
   4348     _flag_k = FK_ADD;
   4349     esi = POP32_VAL(esp); /* 0x360B32DF: pop esi */
   4350     ecx = MEM32(ebp + (-0xC)); /* 0x360B32E0: mov ecx, dword ptr [ebp - 0xc] */
   4351     MEM32(FS_BASE + (0)) = ecx; /* 0x360B32E3: mov dword ptr fs:[0], ecx */
   4352     esp = ebp; /* 0x360B32EA: mov esp, ebp */
   4353     ebp = POP32_VAL(esp); /* 0x360B32EC: pop ebp */
   4354     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B32ED: ret 4 */
   4355 L_360B32F0:
   4356     ecx = MEM32(ebp + (-0xC)); /* 0x360B32F0: mov ecx, dword ptr [ebp - 0xc] */
   4357     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4358     eax = 0; /* 0x360B32F3: xor eax, eax */
   4359     _cf = 0;
   4360     _flag_k = FK_TEST;
   4361     esi = POP32_VAL(esp); /* 0x360B32F5: pop esi */
   4362     MEM32(FS_BASE + (0)) = ecx; /* 0x360B32F6: mov dword ptr fs:[0], ecx */
   4363     esp = ebp; /* 0x360B32FD: mov esp, ebp */
   4364     ebp = POP32_VAL(esp); /* 0x360B32FF: pop ebp */
   4365     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B3300: ret 4 */
   4366     RECOMP_REGS_OUT();
   4367 }
   4368 
   4369 void sub_360B3310(void) {
   4370     int _fpu_cmp = 0;
   4371     uint32_t _cf = 0;
   4372     int _df = 1;
   4373     uint32_t _flag_k = FK_NONE;
   4374     uint32_t _flag_a = 0, _flag_b = 0;
   4375     uint32_t _itail_tgt = 0;
   4376     RECOMP_REGS_LOCALS
   4377     RECOMP_ENTER(0x360B3310u);
   4378 
   4379 L_360B3310:
   4380     PUSH32(esp, ebp); /* 0x360B3310: push ebp */
   4381     ebp = esp; /* 0x360B3311: mov ebp, esp */
   4382     PUSH32(esp, ecx); /* 0x360B3313: push ecx */
   4383     PUSH32(esp, ebx); /* 0x360B3314: push ebx */
   4384     PUSH32(esp, esi); /* 0x360B3315: push esi */
   4385     PUSH32(esp, edi); /* 0x360B3316: push edi */
   4386     edi = MEM32(ebp + 0x8); /* 0x360B3317: mov edi, dword ptr [ebp + 8] */
   4387     esi = ecx; /* 0x360B331A: mov esi, ecx */
   4388     PUSH32(esp, edi); /* 0x360B331C: push edi */
   4389     RECOMP_ICALL(0x360B2440u); /* 0x360B331D: call 0x360b2440 */ /* not lifted */
   4390     RECOMP_FLAGS_IN();
   4391     /* test eax, eax */ /* 0x360B3322: test eax, eax */
   4392     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4393     _cf = 0;
   4394     _flag_k = FK_TEST;
   4395     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B33AA; /* 0x360B3324: jne 0x360b33aa */
   4396 L_360B332A:
   4397     ebx = MEM32(0x3616FA8C); /* 0x360B332A: mov ebx, dword ptr [0x3616fa8c] */
   4398     eax = ebp + (-0x4); /* 0x360B3330: lea eax, [ebp - 4] */
   4399     PUSH32(esp, eax); /* 0x360B3333: push eax */
   4400     ecx = edi; /* 0x360B3334: mov ecx, edi */
   4401     RECOMP_ICALL(ebx); /* 0x360B3336: call ebx */
   4402     RECOMP_FLAGS_IN();
   4403     ecx = MEM32(ebp + (-0x4)); /* 0x360B3338: mov ecx, dword ptr [ebp - 4] */
   4404     /* cmp ecx, MEM32(0x361C8CC8) */ /* 0x360B333B: cmp ecx, dword ptr [0x361c8cc8] */
   4405     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x361C8CC8));
   4406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4407     _flag_k = FK_CMP;
   4408     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B3351; /* 0x360B3341: je 0x360b3351 */
   4409 L_360B3343:
   4410     edi = POP32_VAL(esp); /* 0x360B3343: pop edi */
   4411     esi = POP32_VAL(esp); /* 0x360B3344: pop esi */
   4412     eax = 1; /* 0x360B3345: mov eax, 1 */
   4413     ebx = POP32_VAL(esp); /* 0x360B334A: pop ebx */
   4414     esp = ebp; /* 0x360B334B: mov esp, ebp */
   4415     ebp = POP32_VAL(esp); /* 0x360B334D: pop ebp */
   4416     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B334E: ret 4 */
   4417 L_360B3351:
   4418     edx = esi + 0x88; /* 0x360B3351: lea edx, [esi + 0x88] */
   4419     PUSH32(esp, edx); /* 0x360B3357: push edx */
   4420     eax = esi + 0x80; /* 0x360B3358: lea eax, [esi + 0x80] */
   4421     PUSH32(esp, eax); /* 0x360B335E: push eax */
   4422     ecx = esi + 0x7C; /* 0x360B335F: lea ecx, [esi + 0x7c] */
   4423     PUSH32(esp, ecx); /* 0x360B3362: push ecx */
   4424     ecx = edi; /* 0x360B3363: mov ecx, edi */
   4425     RECOMP_ICALL(ebx); /* 0x360B3365: call ebx */
   4426     RECOMP_FLAGS_IN();
   4427     PUSH32(esp, eax); /* 0x360B3367: push eax */
   4428     RECOMP_ICALL(0x3615B870u); /* 0x360B3368: call 0x3615b870 */ /* not lifted */
   4429     RECOMP_FLAGS_IN();
   4430     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4431     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4432     esp = esp + 8; /* 0x360B336D: add esp, 8 */
   4433     _flag_k = FK_ADD;
   4434     PUSH32(esp, eax); /* 0x360B3370: push eax */
   4435     RECOMP_ICALL(0x3615B870u); /* 0x360B3371: call 0x3615b870 */ /* not lifted */
   4436     RECOMP_FLAGS_IN();
   4437     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4439     esp = esp + 8; /* 0x360B3376: add esp, 8 */
   4440     _flag_k = FK_ADD;
   4441     edx = ebp + 0xB; /* 0x360B3379: lea edx, [ebp + 0xb] */
   4442     PUSH32(esp, edx); /* 0x360B337C: push edx */
   4443     ecx = eax; /* 0x360B337D: mov ecx, eax */
   4444     RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x360B337F: call dword ptr [0x3616fae0] */
   4445     RECOMP_FLAGS_IN();
   4446     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360B3385: mov al, byte ptr [ebp + 0xb] */
   4447     SET_LO8(ecx, LO8(eax)); /* 0x360B3388: mov cl, al */
   4448     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4449     SET_LO8(ecx, LO8(ecx) & 1); /* 0x360B338A: and cl, 1 */
   4450     _cf = 0;
   4451     _flag_k = FK_NARROW(FK_TEST, 24);
   4452     if (1u) _cf = (((LO8(eax)) >> 0) & 1u); /* 0x360B338D: shr al, 1 */
   4453     if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(eax) >> 1u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4454     SET_LO8(eax, LO8(eax) >> 1u); /* 0x360B338D: shr al, 1 */
   4455     MEM8(esi + 0x90) = (uint8_t)(LO8(ecx)); /* 0x360B338F: mov byte ptr [esi + 0x90], cl */
   4456     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4457     SET_LO8(eax, LO8(eax) & 1); /* 0x360B3395: and al, 1 */
   4458     _cf = 0;
   4459     _flag_k = FK_NARROW(FK_TEST, 24);
   4460     ecx = edi; /* 0x360B3397: mov ecx, edi */
   4461     MEM8(esi + 0x91) = (uint8_t)(LO8(eax)); /* 0x360B3399: mov byte ptr [esi + 0x91], al */
   4462     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B339F: call dword ptr [0x3616fadc] */
   4463     RECOMP_FLAGS_IN();
   4464     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4465     _cf = (eax) != 0;
   4466     eax = (uint32_t)(-(int32_t)eax); /* 0x360B33A5: neg eax */
   4467     _flag_k = FK_CMP;
   4468     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B33A7: sbb eax, eax */
   4469       eax = _sc ? 0xFFFFFFFFu : 0;
   4470       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4471       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4472     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4473     eax = eax + 1; /* 0x360B33A9: inc eax */
   4474     _flag_k = FK_INC;
   4475 L_360B33AA:
   4476     edi = POP32_VAL(esp); /* 0x360B33AA: pop edi */
   4477     esi = POP32_VAL(esp); /* 0x360B33AB: pop esi */
   4478     ebx = POP32_VAL(esp); /* 0x360B33AC: pop ebx */
   4479     esp = ebp; /* 0x360B33AD: mov esp, ebp */
   4480     ebp = POP32_VAL(esp); /* 0x360B33AF: pop ebp */
   4481     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B33B0: ret 4 */
   4482     RECOMP_REGS_OUT();
   4483 }
   4484 
   4485 void sub_360B33C0(void) {
   4486     int _fpu_cmp = 0;
   4487     uint32_t _cf = 0;
   4488     int _df = 1;
   4489     uint32_t _flag_k = FK_NONE;
   4490     uint32_t _flag_a = 0, _flag_b = 0;
   4491     uint32_t _itail_tgt = 0;
   4492     RECOMP_REGS_LOCALS
   4493     RECOMP_ENTER(0x360B33C0u);
   4494 
   4495 L_360B33C0:
   4496     PUSH32(esp, ebp); /* 0x360B33C0: push ebp */
   4497     ebp = esp; /* 0x360B33C1: mov ebp, esp */
   4498     PUSH32(esp, esi); /* 0x360B33C3: push esi */
   4499     PUSH32(esp, edi); /* 0x360B33C4: push edi */
   4500     edi = MEM32(ebp + 0x8); /* 0x360B33C5: mov edi, dword ptr [ebp + 8] */
   4501     esi = ecx; /* 0x360B33C8: mov esi, ecx */
   4502     PUSH32(esp, edi); /* 0x360B33CA: push edi */
   4503     RECOMP_ICALL(0x3610DEF0u); /* 0x360B33CB: call 0x3610def0 */ /* not lifted */
   4504     RECOMP_FLAGS_IN();
   4505     SET_LO8(eax, MEM8(esi + 0x90)); /* 0x360B33D0: mov al, byte ptr [esi + 0x90] */
   4506     /* test LO8(eax), LO8(eax) */ /* 0x360B33D6: test al, al */
   4507     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4508     _cf = 0;
   4509     _flag_k = FK_NARROW(FK_TEST, 24);
   4510     MEM8(ebp + 0x8) = (uint8_t)(0); /* 0x360B33D8: mov byte ptr [ebp + 8], 0 */
   4511     if (TEST_Z(_flag_a, _flag_b)) goto L_360B33E2; /* 0x360B33DC: je 0x360b33e2 */
   4512 L_360B33DE:
   4513     MEM8(ebp + 0x8) = (uint8_t)(1); /* 0x360B33DE: mov byte ptr [ebp + 8], 1 */
   4514 L_360B33E2:
   4515     SET_LO8(eax, MEM8(esi + 0x91)); /* 0x360B33E2: mov al, byte ptr [esi + 0x91] */
   4516     /* test LO8(eax), LO8(eax) */ /* 0x360B33E8: test al, al */
   4517     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4518     _cf = 0;
   4519     _flag_k = FK_NARROW(FK_TEST, 24);
   4520     if (TEST_Z(_flag_a, _flag_b)) goto L_360B33F0; /* 0x360B33EA: je 0x360b33f0 */
   4521 L_360B33EC:
   4522     _flag_a = (uint32_t)((MEM8(ebp + 0x8) | 2)) << 24; _flag_b = (uint32_t)((MEM8(ebp + 0x8) | 2)) << 24;
   4523     MEM8(ebp + 0x8) = (uint8_t)(MEM8(ebp + 0x8) | 2); /* 0x360B33EC: or byte ptr [ebp + 8], 2 */
   4524     _cf = 0;
   4525     _flag_k = FK_NARROW(FK_TEST, 24);
   4526 L_360B33F0:
   4527     edx = MEM32(esi + 0x7C); /* 0x360B33F0: mov edx, dword ptr [esi + 0x7c] */
   4528     eax = esi + 0x88; /* 0x360B33F3: lea eax, [esi + 0x88] */
   4529     PUSH32(esp, eax); /* 0x360B33F9: push eax */
   4530     eax = MEM32(0x361C8CC8); /* 0x360B33FA: mov eax, dword ptr [0x361c8cc8] */
   4531     ecx = esi + 0x80; /* 0x360B33FF: lea ecx, [esi + 0x80] */
   4532     esi = MEM32(0x3616FAEC); /* 0x360B3405: mov esi, dword ptr [0x3616faec] */
   4533     PUSH32(esp, ecx); /* 0x360B340B: push ecx */
   4534     PUSH32(esp, edx); /* 0x360B340C: push edx */
   4535     PUSH32(esp, eax); /* 0x360B340D: push eax */
   4536     ecx = edi; /* 0x360B340E: mov ecx, edi */
   4537     RECOMP_ICALL(esi); /* 0x360B3410: call esi */
   4538     RECOMP_FLAGS_IN();
   4539     ecx = eax; /* 0x360B3412: mov ecx, eax */
   4540     RECOMP_ICALL(esi); /* 0x360B3414: call esi */
   4541     RECOMP_FLAGS_IN();
   4542     PUSH32(esp, eax); /* 0x360B3416: push eax */
   4543     RECOMP_ICALL(0x3615B840u); /* 0x360B3417: call 0x3615b840 */ /* not lifted */
   4544     RECOMP_FLAGS_IN();
   4545     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4546     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4547     esp = esp + 8; /* 0x360B341C: add esp, 8 */
   4548     _flag_k = FK_ADD;
   4549     PUSH32(esp, eax); /* 0x360B341F: push eax */
   4550     RECOMP_ICALL(0x3615B840u); /* 0x360B3420: call 0x3615b840 */ /* not lifted */
   4551     RECOMP_FLAGS_IN();
   4552     ecx = MEM32(ebp + 0x8); /* 0x360B3425: mov ecx, dword ptr [ebp + 8] */
   4553     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4554     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4555     esp = esp + 8; /* 0x360B3428: add esp, 8 */
   4556     _flag_k = FK_ADD;
   4557     PUSH32(esp, ecx); /* 0x360B342B: push ecx */
   4558     ecx = eax; /* 0x360B342C: mov ecx, eax */
   4559     RECOMP_ICALL(MEM32(0x3616FAE8)); /* 0x360B342E: call dword ptr [0x3616fae8] */
   4560     RECOMP_FLAGS_IN();
   4561     edi = POP32_VAL(esp); /* 0x360B3434: pop edi */
   4562     esi = POP32_VAL(esp); /* 0x360B3435: pop esi */
   4563     ebp = POP32_VAL(esp); /* 0x360B3436: pop ebp */
   4564     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B3437: ret 4 */
   4565     RECOMP_REGS_OUT();
   4566 }
   4567 
   4568 void sub_360B3440(void) {
   4569     int _fpu_cmp = 0;
   4570     uint32_t _cf = 0;
   4571     int _df = 1;
   4572     uint32_t _flag_k = FK_NONE;
   4573     uint32_t _flag_a = 0, _flag_b = 0;
   4574     uint32_t _itail_tgt = 0;
   4575     RECOMP_REGS_LOCALS
   4576     RECOMP_ENTER(0x360B3440u);
   4577 
   4578 L_360B3440:
   4579     PUSH32(esp, ebp); /* 0x360B3440: push ebp */
   4580     ebp = esp; /* 0x360B3441: mov ebp, esp */
   4581     PUSH32(esp, esi); /* 0x360B3443: push esi */
   4582     esi = MEM32(ebp + 0x8); /* 0x360B3444: mov esi, dword ptr [ebp + 8] */
   4583     PUSH32(esp, edi); /* 0x360B3447: push edi */
   4584     edi = ecx; /* 0x360B3448: mov edi, ecx */
   4585     PUSH32(esp, esi); /* 0x360B344A: push esi */
   4586     RECOMP_ICALL(0x360B2830u); /* 0x360B344B: call 0x360b2830 */ /* not lifted */
   4587     RECOMP_FLAGS_IN();
   4588     PUSH32(esp, 0); /* 0x360B3450: push 0 */
   4589     PUSH32(esp, 0x361C4320u); /* 0x360B3452: push 0x361c4320 */
   4590     PUSH32(esp, 0x361B2CF8u); /* 0x360B3457: push 0x361b2cf8 */
   4591     PUSH32(esp, 0); /* 0x360B345C: push 0 */
   4592     PUSH32(esp, esi); /* 0x360B345E: push esi */
   4593     RECOMP_ICALL(0x3615FD86u); /* 0x360B345F: call 0x3615fd86 */ /* not lifted */
   4594     RECOMP_FLAGS_IN();
   4595     esi = eax; /* 0x360B3464: mov esi, eax */
   4596     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4598     esp = esp + 0x14u; /* 0x360B3466: add esp, 0x14 */
   4599     _flag_k = FK_ADD;
   4600     /* test esi, esi */ /* 0x360B3469: test esi, esi */
   4601     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   4602     _cf = 0;
   4603     _flag_k = FK_TEST;
   4604     if (TEST_Z(_flag_a, _flag_b)) goto L_360B34C4; /* 0x360B346B: je 0x360b34c4 */
   4605 L_360B346D:
   4606     eax = MEM32(edi + 0x80); /* 0x360B346D: mov eax, dword ptr [edi + 0x80] */
   4607     edx = MEM32(esi); /* 0x360B3473: mov edx, dword ptr [esi] */
   4608     MEM32(esi + 0x1AC) = eax; /* 0x360B3475: mov dword ptr [esi + 0x1ac], eax */
   4609     ecx = MEM32(edi + 0x84); /* 0x360B347B: mov ecx, dword ptr [edi + 0x84] */
   4610     MEM32(esi + 0x1B0) = ecx; /* 0x360B3481: mov dword ptr [esi + 0x1b0], ecx */
   4611     PUSH32(esp, 1); /* 0x360B3487: push 1 */
   4612     ecx = esi; /* 0x360B3489: mov ecx, esi */
   4613     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360B348B: call dword ptr [edx + 0x1c] */
   4614     RECOMP_FLAGS_IN();
   4615     /* test LO8(eax), LO8(eax) */ /* 0x360B348E: test al, al */
   4616     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4617     _cf = 0;
   4618     _flag_k = FK_NARROW(FK_TEST, 24);
   4619     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B34AE; /* 0x360B3490: jne 0x360b34ae */
   4620 L_360B3492:
   4621     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x8Cu);
   4622     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4623     esi = esi + 0x8Cu; /* 0x360B3492: add esi, 0x8c */
   4624     _flag_k = FK_ADD;
   4625     ecx = esi; /* 0x360B3498: mov ecx, esi */
   4626     RECOMP_ICALL(MEM32(0x3616FCA0)); /* 0x360B349A: call dword ptr [0x3616fca0] */
   4627     RECOMP_FLAGS_IN();
   4628     ecx = esi; /* 0x360B34A0: mov ecx, esi */
   4629     RECOMP_ICALL(MEM32(0x3616FC98)); /* 0x360B34A2: call dword ptr [0x3616fc98] */
   4630     RECOMP_FLAGS_IN();
   4631     edi = POP32_VAL(esp); /* 0x360B34A8: pop edi */
   4632     esi = POP32_VAL(esp); /* 0x360B34A9: pop esi */
   4633     ebp = POP32_VAL(esp); /* 0x360B34AA: pop ebp */
   4634     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B34AB: ret 4 */
   4635 L_360B34AE:
   4636     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x8Cu);
   4637     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4638     esi = esi + 0x8Cu; /* 0x360B34AE: add esi, 0x8c */
   4639     _flag_k = FK_ADD;
   4640     ecx = esi; /* 0x360B34B4: mov ecx, esi */
   4641     RECOMP_ICALL(MEM32(0x3616FC6C)); /* 0x360B34B6: call dword ptr [0x3616fc6c] */
   4642     RECOMP_FLAGS_IN();
   4643     ecx = esi; /* 0x360B34BC: mov ecx, esi */
   4644     RECOMP_ICALL(MEM32(0x3616FCAC)); /* 0x360B34BE: call dword ptr [0x3616fcac] */
   4645     RECOMP_FLAGS_IN();
   4646 L_360B34C4:
   4647     edi = POP32_VAL(esp); /* 0x360B34C4: pop edi */
   4648     esi = POP32_VAL(esp); /* 0x360B34C5: pop esi */
   4649     ebp = POP32_VAL(esp); /* 0x360B34C6: pop ebp */
   4650     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B34C7: ret 4 */
   4651     RECOMP_REGS_OUT();
   4652 }
   4653 
   4654 void sub_360B34D0(void) {
   4655     int _fpu_cmp = 0;
   4656     uint32_t _cf = 0;
   4657     int _df = 1;
   4658     uint32_t _flag_k = FK_NONE;
   4659     uint32_t _flag_a = 0, _flag_b = 0;
   4660     uint32_t _itail_tgt = 0;
   4661     RECOMP_REGS_LOCALS
   4662     RECOMP_ENTER(0x360B34D0u);
   4663 
   4664 L_360B34D0:
   4665     PUSH32(esp, ebp); /* 0x360B34D0: push ebp */
   4666     ebp = esp; /* 0x360B34D1: mov ebp, esp */
   4667     PUSH32(esp, esi); /* 0x360B34D3: push esi */
   4668     esi = MEM32(ebp + 0x8); /* 0x360B34D4: mov esi, dword ptr [ebp + 8] */
   4669     PUSH32(esp, edi); /* 0x360B34D7: push edi */
   4670     edi = ecx; /* 0x360B34D8: mov edi, ecx */
   4671     PUSH32(esp, esi); /* 0x360B34DA: push esi */
   4672     RECOMP_ICALL(0x360B25C0u); /* 0x360B34DB: call 0x360b25c0 */ /* not lifted */
   4673     RECOMP_FLAGS_IN();
   4674     PUSH32(esp, 1); /* 0x360B34E0: push 1 */
   4675     PUSH32(esp, 0x361C4320u); /* 0x360B34E2: push 0x361c4320 */
   4676     PUSH32(esp, 0x361B2CF8u); /* 0x360B34E7: push 0x361b2cf8 */
   4677     PUSH32(esp, 0); /* 0x360B34EC: push 0 */
   4678     PUSH32(esp, esi); /* 0x360B34EE: push esi */
   4679     RECOMP_ICALL(0x3615FD86u); /* 0x360B34EF: call 0x3615fd86 */ /* not lifted */
   4680     RECOMP_FLAGS_IN();
   4681     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4682     ecx = 0; /* 0x360B34F4: xor ecx, ecx */
   4683     _cf = 0;
   4684     _flag_k = FK_TEST;
   4685     SET_LO8(ecx, MEM8(edi + 0x90)); /* 0x360B34F6: mov cl, byte ptr [edi + 0x90] */
   4686     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4688     esp = esp + 0x14u; /* 0x360B34FC: add esp, 0x14 */
   4689     _flag_k = FK_ADD;
   4690     esi = eax; /* 0x360B34FF: mov esi, eax */
   4691     eax = MEM32(esi); /* 0x360B3501: mov eax, dword ptr [esi] */
   4692     PUSH32(esp, ecx); /* 0x360B3503: push ecx */
   4693     ecx = esi; /* 0x360B3504: mov ecx, esi */
   4694     RECOMP_ICALL(MEM32(eax + 0x130)); /* 0x360B3506: call dword ptr [eax + 0x130] */
   4695     RECOMP_FLAGS_IN();
   4696     edx = MEM32(esi); /* 0x360B350C: mov edx, dword ptr [esi] */
   4697     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4698     eax = 0; /* 0x360B350E: xor eax, eax */
   4699     _cf = 0;
   4700     _flag_k = FK_TEST;
   4701     SET_LO8(eax, MEM8(edi + 0x91)); /* 0x360B3510: mov al, byte ptr [edi + 0x91] */
   4702     ecx = esi; /* 0x360B3516: mov ecx, esi */
   4703     PUSH32(esp, eax); /* 0x360B3518: push eax */
   4704     RECOMP_ICALL(MEM32(edx + 0x12C)); /* 0x360B3519: call dword ptr [edx + 0x12c] */
   4705     RECOMP_FLAGS_IN();
   4706     edi = POP32_VAL(esp); /* 0x360B351F: pop edi */
   4707     esi = POP32_VAL(esp); /* 0x360B3520: pop esi */
   4708     ebp = POP32_VAL(esp); /* 0x360B3521: pop ebp */
   4709     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B3522: ret 4 */
   4710     RECOMP_REGS_OUT();
   4711 }
   4712 
   4713 void sub_360B3530(void) {
   4714     int _fpu_cmp = 0;
   4715     uint32_t _cf = 0;
   4716     int _df = 1;
   4717     uint32_t _flag_k = FK_NONE;
   4718     uint32_t _flag_a = 0, _flag_b = 0;
   4719     uint32_t _itail_tgt = 0;
   4720     RECOMP_REGS_LOCALS
   4721     RECOMP_ENTER(0x360B3530u);
   4722 
   4723 L_360B3530:
   4724     PUSH32(esp, esi); /* 0x360B3530: push esi */
   4725     esi = ecx; /* 0x360B3531: mov esi, ecx */
   4726     RECOMP_ICALL(0x360AF0D0u); /* 0x360B3533: call 0x360af0d0 */ /* not lifted */
   4727     RECOMP_FLAGS_IN();
   4728     MEM32(esi) = 0x36174E24u; /* 0x360B3538: mov dword ptr [esi], 0x36174e24 */
   4729     MEM32(esi + 0x20) = 0x36174E08u; /* 0x360B353E: mov dword ptr [esi + 0x20], 0x36174e08 */
   4730     MEM8(esi + 0xC) = (uint8_t)(0); /* 0x360B3545: mov byte ptr [esi + 0xc], 0 */
   4731     eax = esi; /* 0x360B3549: mov eax, esi */
   4732     esi = POP32_VAL(esp); /* 0x360B354B: pop esi */
   4733     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B354C: ret  */
   4734     RECOMP_REGS_OUT();
   4735 }
   4736 
   4737 void sub_360B3550(void) {
   4738     int _fpu_cmp = 0;
   4739     uint32_t _cf = 0;
   4740     int _df = 1;
   4741     uint32_t _flag_k = FK_NONE;
   4742     uint32_t _flag_a = 0, _flag_b = 0;
   4743     uint32_t _itail_tgt = 0;
   4744     RECOMP_REGS_LOCALS
   4745     RECOMP_ENTER(0x360B3550u);
   4746 
   4747 L_360B3550:
   4748     PUSH32(esp, ebp); /* 0x360B3550: push ebp */
   4749     ebp = esp; /* 0x360B3551: mov ebp, esp */
   4750     PUSH32(esp, esi); /* 0x360B3553: push esi */
   4751     esi = ecx; /* 0x360B3554: mov esi, ecx */
   4752     RECOMP_ICALL(0x360B35B0u); /* 0x360B3556: call 0x360b35b0 */ /* not lifted */
   4753     RECOMP_FLAGS_IN();
   4754     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B355B: test byte ptr [ebp + 8], 1 */
   4755     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4756     _cf = 0;
   4757     _flag_k = FK_NARROW(FK_TEST, 24);
   4758     if (TEST_Z(_flag_a, _flag_b)) goto L_360B356A; /* 0x360B355F: je 0x360b356a */
   4759 L_360B3561:
   4760     PUSH32(esp, esi); /* 0x360B3561: push esi */
   4761     RECOMP_ICALL(0x3615FCC4u); /* 0x360B3562: call 0x3615fcc4 */ /* not lifted */
   4762     RECOMP_FLAGS_IN();
   4763     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4764     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4765     esp = esp + 4; /* 0x360B3567: add esp, 4 */
   4766     _flag_k = FK_ADD;
   4767 L_360B356A:
   4768     eax = esi; /* 0x360B356A: mov eax, esi */
   4769     esi = POP32_VAL(esp); /* 0x360B356C: pop esi */
   4770     ebp = POP32_VAL(esp); /* 0x360B356D: pop ebp */
   4771     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B356E: ret 4 */
   4772     RECOMP_REGS_OUT();
   4773 }
   4774 
   4775 void sub_360B3580(void) {
   4776     int _fpu_cmp = 0;
   4777     uint32_t _cf = 0;
   4778     int _df = 1;
   4779     uint32_t _flag_k = FK_NONE;
   4780     uint32_t _flag_a = 0, _flag_b = 0;
   4781     uint32_t _itail_tgt = 0;
   4782     RECOMP_REGS_LOCALS
   4783     RECOMP_ENTER(0x360B3580u);
   4784 
   4785 L_360B3580:
   4786     PUSH32(esp, ebp); /* 0x360B3580: push ebp */
   4787     ebp = esp; /* 0x360B3581: mov ebp, esp */
   4788     eax = MEM32(ebp + 0xC); /* 0x360B3583: mov eax, dword ptr [ebp + 0xc] */
   4789     PUSH32(esp, esi); /* 0x360B3586: push esi */
   4790     esi = ecx; /* 0x360B3587: mov esi, ecx */
   4791     ecx = MEM32(ebp + 0x8); /* 0x360B3589: mov ecx, dword ptr [ebp + 8] */
   4792     PUSH32(esp, eax); /* 0x360B358C: push eax */
   4793     PUSH32(esp, ecx); /* 0x360B358D: push ecx */
   4794     ecx = esi; /* 0x360B358E: mov ecx, esi */
   4795     RECOMP_ICALL(0x360AF130u); /* 0x360B3590: call 0x360af130 */ /* not lifted */
   4796     RECOMP_FLAGS_IN();
   4797     MEM32(esi) = 0x36174E24u; /* 0x360B3595: mov dword ptr [esi], 0x36174e24 */
   4798     MEM32(esi + 0x20) = 0x36174E08u; /* 0x360B359B: mov dword ptr [esi + 0x20], 0x36174e08 */
   4799     MEM8(esi + 0xC) = (uint8_t)(0); /* 0x360B35A2: mov byte ptr [esi + 0xc], 0 */
   4800     eax = esi; /* 0x360B35A6: mov eax, esi */
   4801     esi = POP32_VAL(esp); /* 0x360B35A8: pop esi */
   4802     ebp = POP32_VAL(esp); /* 0x360B35A9: pop ebp */
   4803     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360B35AA: ret 8 */
   4804     RECOMP_REGS_OUT();
   4805 }
   4806 
   4807 void sub_360B35B0(void) {
   4808     int _fpu_cmp = 0;
   4809     uint32_t _cf = 0;
   4810     int _df = 1;
   4811     uint32_t _flag_k = FK_NONE;
   4812     uint32_t _flag_a = 0, _flag_b = 0;
   4813     uint32_t _itail_tgt = 0;
   4814     RECOMP_REGS_LOCALS
   4815     RECOMP_ENTER(0x360B35B0u);
   4816 
   4817     goto L_360B35B0;
   4818 L_360AF170:
   4819     MEM32(ecx) = 0x36174A1Cu; /* 0x360AF170: mov dword ptr [ecx], 0x36174a1c */
   4820     MEM32(ecx + 0x20) = 0x36174A00u; /* 0x360AF176: mov dword ptr [ecx + 0x20], 0x36174a00 */
   4821     goto L_360B0F30; /* 0x360AF17D: jmp 0x360b0f30 */
   4822 L_360B0F30:
   4823     PUSH32(esp, ebp); /* 0x360B0F30: push ebp */
   4824     ebp = esp; /* 0x360B0F31: mov ebp, esp */
   4825     PUSH32(esp, ecx); /* 0x360B0F33: push ecx */
   4826     PUSH32(esp, edi); /* 0x360B0F34: push edi */
   4827     edi = MEM32(ecx + 0x7C); /* 0x360B0F35: mov edi, dword ptr [ecx + 0x7c] */
   4828     /* test edi, edi */ /* 0x360B0F38: test edi, edi */
   4829     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   4830     _cf = 0;
   4831     _flag_k = FK_TEST;
   4832     MEM32(ebp + (-0x4)) = ecx; /* 0x360B0F3A: mov dword ptr [ebp - 4], ecx */
   4833     MEM32(ecx) = 0x36174B94u; /* 0x360B0F3D: mov dword ptr [ecx], 0x36174b94 */
   4834     MEM32(ecx + 0x20) = 0x36174B78u; /* 0x360B0F43: mov dword ptr [ecx + 0x20], 0x36174b78 */
   4835     if (TEST_Z(_flag_a, _flag_b)) goto L_360B0F9D; /* 0x360B0F4A: je 0x360b0f9d */
   4836 L_360B0F4C:
   4837     PUSH32(esp, ebx); /* 0x360B0F4C: push ebx */
   4838     ebx = MEM32(edi + 0x4); /* 0x360B0F4D: mov ebx, dword ptr [edi + 4] */
   4839     PUSH32(esp, esi); /* 0x360B0F50: push esi */
   4840     esi = MEM32(ebx); /* 0x360B0F51: mov esi, dword ptr [ebx] */
   4841     /* cmp esi, ebx */ /* 0x360B0F53: cmp esi, ebx */
   4842     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4844     _flag_k = FK_CMP;
   4845     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B0F7E; /* 0x360B0F55: je 0x360b0f7e */
   4846 L_360B0F57:
   4847     eax = esi; /* 0x360B0F57: mov eax, esi */
   4848     ecx = MEM32(eax + 0x4); /* 0x360B0F59: mov ecx, dword ptr [eax + 4] */
   4849     edx = MEM32(eax); /* 0x360B0F5C: mov edx, dword ptr [eax] */
   4850     esi = MEM32(esi); /* 0x360B0F5E: mov esi, dword ptr [esi] */
   4851     MEM32(ecx) = edx; /* 0x360B0F60: mov dword ptr [ecx], edx */
   4852     ecx = MEM32(eax); /* 0x360B0F62: mov ecx, dword ptr [eax] */
   4853     edx = MEM32(eax + 0x4); /* 0x360B0F64: mov edx, dword ptr [eax + 4] */
   4854     PUSH32(esp, eax); /* 0x360B0F67: push eax */
   4855     MEM32(ecx + 0x4) = edx; /* 0x360B0F68: mov dword ptr [ecx + 4], edx */
   4856     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F6B: call 0x3615fcc4 */ /* not lifted */
   4857     RECOMP_FLAGS_IN();
   4858     ecx = MEM32(edi + 0x8); /* 0x360B0F70: mov ecx, dword ptr [edi + 8] */
   4859     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4860     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4861     esp = esp + 4; /* 0x360B0F73: add esp, 4 */
   4862     _flag_k = FK_ADD;
   4863     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4864     ecx = ecx - 1; /* 0x360B0F76: dec ecx */
   4865     _flag_k = FK_DEC;
   4866     /* cmp esi, ebx */ /* 0x360B0F77: cmp esi, ebx */
   4867     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   4868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4869     _flag_k = FK_CMP;
   4870     MEM32(edi + 0x8) = ecx; /* 0x360B0F79: mov dword ptr [edi + 8], ecx */
   4871     RECOMP_BACKEDGE();
   4872     if (CMP_NE(_flag_a, _flag_b)) goto L_360B0F57; /* 0x360B0F7C: jne 0x360b0f57 */
   4873 L_360B0F7E:
   4874     eax = MEM32(edi + 0x4); /* 0x360B0F7E: mov eax, dword ptr [edi + 4] */
   4875     PUSH32(esp, eax); /* 0x360B0F81: push eax */
   4876     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F82: call 0x3615fcc4 */ /* not lifted */
   4877     RECOMP_FLAGS_IN();
   4878     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4879     eax = 0; /* 0x360B0F87: xor eax, eax */
   4880     _cf = 0;
   4881     _flag_k = FK_TEST;
   4882     PUSH32(esp, edi); /* 0x360B0F89: push edi */
   4883     MEM32(edi + 0x4) = eax; /* 0x360B0F8A: mov dword ptr [edi + 4], eax */
   4884     MEM32(edi + 0x8) = eax; /* 0x360B0F8D: mov dword ptr [edi + 8], eax */
   4885     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F90: call 0x3615fcc4 */ /* not lifted */
   4886     RECOMP_FLAGS_IN();
   4887     ecx = MEM32(ebp + (-0x4)); /* 0x360B0F95: mov ecx, dword ptr [ebp - 4] */
   4888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4890     esp = esp + 8; /* 0x360B0F98: add esp, 8 */
   4891     _flag_k = FK_ADD;
   4892     esi = POP32_VAL(esp); /* 0x360B0F9B: pop esi */
   4893     ebx = POP32_VAL(esp); /* 0x360B0F9C: pop ebx */
   4894 L_360B0F9D:
   4895     RECOMP_ICALL(0x360B2340u); /* 0x360B0F9D: call 0x360b2340 */ /* not lifted */
   4896     RECOMP_FLAGS_IN();
   4897     edi = POP32_VAL(esp); /* 0x360B0FA2: pop edi */
   4898     esp = ebp; /* 0x360B0FA3: mov esp, ebp */
   4899     ebp = POP32_VAL(esp); /* 0x360B0FA5: pop ebp */
   4900     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B0FA6: ret  */
   4901 L_360B35B0:
   4902     MEM32(ecx) = 0x36174E24u; /* 0x360B35B0: mov dword ptr [ecx], 0x36174e24 */
   4903     MEM32(ecx + 0x20) = 0x36174E08u; /* 0x360B35B6: mov dword ptr [ecx + 0x20], 0x36174e08 */
   4904     RECOMP_BACKEDGE();
   4905     goto L_360AF170; /* 0x360B35BD: jmp 0x360af170 */
   4906     { RECOMP_REGS_OUT(); return; } /* end of function */
   4907     RECOMP_REGS_OUT();
   4908 }
   4909 
   4910 void sub_360B35D0(void) {
   4911     int _fpu_cmp = 0;
   4912     uint32_t _cf = 0;
   4913     int _df = 1;
   4914     uint32_t _flag_k = FK_NONE;
   4915     uint32_t _flag_a = 0, _flag_b = 0;
   4916     uint32_t _itail_tgt = 0;
   4917     RECOMP_REGS_LOCALS
   4918     RECOMP_ENTER(0x360B35D0u);
   4919 
   4920 L_360B35D0:
   4921     PUSH32(esp, ebp); /* 0x360B35D0: push ebp */
   4922     ebp = esp; /* 0x360B35D1: mov ebp, esp */
   4923     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B35D3: push -1 */
   4924     PUSH32(esp, 0x3616736Bu); /* 0x360B35D5: push 0x3616736b */
   4925     eax = MEM32(FS_BASE + (0)); /* 0x360B35DA: mov eax, dword ptr fs:[0] */
   4926     PUSH32(esp, eax); /* 0x360B35E0: push eax */
   4927     MEM32(FS_BASE + (0)) = esp; /* 0x360B35E1: mov dword ptr fs:[0], esp */
   4928     PUSH32(esp, ecx); /* 0x360B35E8: push ecx */
   4929     PUSH32(esp, esi); /* 0x360B35E9: push esi */
   4930     PUSH32(esp, 0x1D8u); /* 0x360B35EA: push 0x1d8 */
   4931     esi = ecx; /* 0x360B35EF: mov esi, ecx */
   4932     RECOMP_ICALL(0x3615FD6Au); /* 0x360B35F1: call 0x3615fd6a */ /* not lifted */
   4933     RECOMP_FLAGS_IN();
   4934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4936     esp = esp + 4; /* 0x360B35F6: add esp, 4 */
   4937     _flag_k = FK_ADD;
   4938     MEM32(ebp + (-0x10)) = eax; /* 0x360B35F9: mov dword ptr [ebp - 0x10], eax */
   4939     /* test eax, eax */ /* 0x360B35FC: test eax, eax */
   4940     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4941     _cf = 0;
   4942     _flag_k = FK_TEST;
   4943     MEM32(ebp + (-0x4)) = 0; /* 0x360B35FE: mov dword ptr [ebp - 4], 0 */
   4944     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3630; /* 0x360B3605: je 0x360b3630 */
   4945 L_360B3607:
   4946     edx = MEM32(esi + (-0x18)); /* 0x360B3607: mov edx, dword ptr [esi - 0x18] */
   4947     esi = MEM32(esi + (-0x1C)); /* 0x360B360A: mov esi, dword ptr [esi - 0x1c] */
   4948     PUSH32(esp, edx); /* 0x360B360D: push edx */
   4949     PUSH32(esp, esi); /* 0x360B360E: push esi */
   4950     ecx = eax; /* 0x360B360F: mov ecx, eax */
   4951     RECOMP_ICALL(0x360A8E70u); /* 0x360B3611: call 0x360a8e70 */ /* not lifted */
   4952     RECOMP_FLAGS_IN();
   4953     /* test eax, eax */ /* 0x360B3616: test eax, eax */
   4954     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4955     _cf = 0;
   4956     _flag_k = FK_TEST;
   4957     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3630; /* 0x360B3618: je 0x360b3630 */
   4958 L_360B361A:
   4959     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Cu);
   4960     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4961     eax = eax + 0x8Cu; /* 0x360B361A: add eax, 0x8c */
   4962     _flag_k = FK_ADD;
   4963     esi = POP32_VAL(esp); /* 0x360B361F: pop esi */
   4964     ecx = MEM32(ebp + (-0xC)); /* 0x360B3620: mov ecx, dword ptr [ebp - 0xc] */
   4965     MEM32(FS_BASE + (0)) = ecx; /* 0x360B3623: mov dword ptr fs:[0], ecx */
   4966     esp = ebp; /* 0x360B362A: mov esp, ebp */
   4967     ebp = POP32_VAL(esp); /* 0x360B362C: pop ebp */
   4968     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B362D: ret 4 */
   4969 L_360B3630:
   4970     ecx = MEM32(ebp + (-0xC)); /* 0x360B3630: mov ecx, dword ptr [ebp - 0xc] */
   4971     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4972     eax = 0; /* 0x360B3633: xor eax, eax */
   4973     _cf = 0;
   4974     _flag_k = FK_TEST;
   4975     esi = POP32_VAL(esp); /* 0x360B3635: pop esi */
   4976     MEM32(FS_BASE + (0)) = ecx; /* 0x360B3636: mov dword ptr fs:[0], ecx */
   4977     esp = ebp; /* 0x360B363D: mov esp, ebp */
   4978     ebp = POP32_VAL(esp); /* 0x360B363F: pop ebp */
   4979     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B3640: ret 4 */
   4980     RECOMP_REGS_OUT();
   4981 }
   4982 
   4983 void sub_360B3650(void) {
   4984     int _fpu_cmp = 0;
   4985     uint32_t _cf = 0;
   4986     int _df = 1;
   4987     uint32_t _flag_k = FK_NONE;
   4988     uint32_t _flag_a = 0, _flag_b = 0;
   4989     uint32_t _itail_tgt = 0;
   4990     RECOMP_REGS_LOCALS
   4991     RECOMP_ENTER(0x360B3650u);
   4992 
   4993 L_360B3650:
   4994     PUSH32(esp, ebp); /* 0x360B3650: push ebp */
   4995     ebp = esp; /* 0x360B3651: mov ebp, esp */
   4996     PUSH32(esp, esi); /* 0x360B3653: push esi */
   4997     esi = MEM32(ebp + 0x8); /* 0x360B3654: mov esi, dword ptr [ebp + 8] */
   4998     PUSH32(esp, esi); /* 0x360B3657: push esi */
   4999     RECOMP_ICALL(0x360AF210u); /* 0x360B3658: call 0x360af210 */ /* not lifted */
   5000     RECOMP_FLAGS_IN();
   5001     /* test eax, eax */ /* 0x360B365D: test eax, eax */
   5002     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5003     _cf = 0;
   5004     _flag_k = FK_TEST;
   5005     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B366E; /* 0x360B365F: jne 0x360b366e */
   5006 L_360B3661:
   5007     ecx = esi; /* 0x360B3661: mov ecx, esi */
   5008     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B3663: call dword ptr [0x3616fadc] */
   5009     RECOMP_FLAGS_IN();
   5010     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5011     _cf = (eax) != 0;
   5012     eax = (uint32_t)(-(int32_t)eax); /* 0x360B3669: neg eax */
   5013     _flag_k = FK_CMP;
   5014     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B366B: sbb eax, eax */
   5015       eax = _sc ? 0xFFFFFFFFu : 0;
   5016       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5017       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5018     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5019     eax = eax + 1; /* 0x360B366D: inc eax */
   5020     _flag_k = FK_INC;
   5021 L_360B366E:
   5022     esi = POP32_VAL(esp); /* 0x360B366E: pop esi */
   5023     ebp = POP32_VAL(esp); /* 0x360B366F: pop ebp */
   5024     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B3670: ret 4 */
   5025     RECOMP_REGS_OUT();
   5026 }
   5027 
   5028 void sub_360B3680(void) {
   5029     int _fpu_cmp = 0;
   5030     uint32_t _cf = 0;
   5031     int _df = 1;
   5032     uint32_t _flag_k = FK_NONE;
   5033     uint32_t _flag_a = 0, _flag_b = 0;
   5034     uint32_t _itail_tgt = 0;
   5035     RECOMP_REGS_LOCALS
   5036     RECOMP_ENTER(0x360B3680u);
   5037 
   5038 L_360B3680:
   5039     PUSH32(esp, ebp); /* 0x360B3680: push ebp */
   5040     ebp = esp; /* 0x360B3681: mov ebp, esp */
   5041     PUSH32(esp, esi); /* 0x360B3683: push esi */
   5042     PUSH32(esp, edi); /* 0x360B3684: push edi */
   5043     edi = MEM32(ebp + 0x8); /* 0x360B3685: mov edi, dword ptr [ebp + 8] */
   5044     PUSH32(esp, 0); /* 0x360B3688: push 0 */
   5045     PUSH32(esp, 0x361B5C98u); /* 0x360B368A: push 0x361b5c98 */
   5046     PUSH32(esp, 0x361B2CF8u); /* 0x360B368F: push 0x361b2cf8 */
   5047     PUSH32(esp, 0); /* 0x360B3694: push 0 */
   5048     PUSH32(esp, edi); /* 0x360B3696: push edi */
   5049     esi = ecx; /* 0x360B3697: mov esi, ecx */
   5050     RECOMP_ICALL(0x3615FD86u); /* 0x360B3699: call 0x3615fd86 */ /* not lifted */
   5051     RECOMP_FLAGS_IN();
   5052     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5053     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5054     esp = esp + 0x14u; /* 0x360B369E: add esp, 0x14 */
   5055     _flag_k = FK_ADD;
   5056     PUSH32(esp, edi); /* 0x360B36A1: push edi */
   5057     ecx = esi; /* 0x360B36A2: mov ecx, esi */
   5058     RECOMP_ICALL(0x360AF340u); /* 0x360B36A4: call 0x360af340 */ /* not lifted */
   5059     RECOMP_FLAGS_IN();
   5060     edi = POP32_VAL(esp); /* 0x360B36A9: pop edi */
   5061     esi = POP32_VAL(esp); /* 0x360B36AA: pop esi */
   5062     ebp = POP32_VAL(esp); /* 0x360B36AB: pop ebp */
   5063     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B36AC: ret 4 */
   5064     RECOMP_REGS_OUT();
   5065 }
   5066 
   5067 void sub_360B36B0(void) {
   5068     int _fpu_cmp = 0;
   5069     uint32_t _cf = 0;
   5070     int _df = 1;
   5071     uint32_t _flag_k = FK_NONE;
   5072     uint32_t _flag_a = 0, _flag_b = 0;
   5073     uint32_t _itail_tgt = 0;
   5074     RECOMP_REGS_LOCALS
   5075     RECOMP_ENTER(0x360B36B0u);
   5076 
   5077 L_360B36B0:
   5078     PUSH32(esp, esi); /* 0x360B36B0: push esi */
   5079     PUSH32(esp, edi); /* 0x360B36B1: push edi */
   5080     edi = ecx; /* 0x360B36B2: mov edi, ecx */
   5081     esi = edi + 0x4; /* 0x360B36B4: lea esi, [edi + 4] */
   5082     PUSH32(esp, esi); /* 0x360B36B7: push esi */
   5083     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360B36B8: call dword ptr [0x3616ff70] */
   5084     RECOMP_FLAGS_IN();
   5085     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5086     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5087     esp = esp + 4; /* 0x360B36BE: add esp, 4 */
   5088     _flag_k = FK_ADD;
   5089     /* test eax, eax */ /* 0x360B36C1: test eax, eax */
   5090     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5091     _cf = 0;
   5092     _flag_k = FK_TEST;
   5093     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B3709; /* 0x360B36C3: jne 0x360b3709 */
   5094 L_360B36C5:
   5095     /* cmp MEM32(esi), 0xC75Bu */ /* 0x360B36C5: cmp dword ptr [esi], 0xc75b */
   5096     _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0xC75Bu);
   5097     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5098     _flag_k = FK_CMP;
   5099     if (CMP_NE(_flag_a, _flag_b)) goto L_360B3709; /* 0x360B36CB: jne 0x360b3709 */
   5100 L_360B36CD:
   5101     /* test edi, edi */ /* 0x360B36CD: test edi, edi */
   5102     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5103     _cf = 0;
   5104     _flag_k = FK_TEST;
   5105     if (TEST_Z(_flag_a, _flag_b)) goto L_360B36D6; /* 0x360B36CF: je 0x360b36d6 */
   5106 L_360B36D1:
   5107     eax = edi + 0x20; /* 0x360B36D1: lea eax, [edi + 0x20] */
   5108     goto L_360B36D8; /* 0x360B36D4: jmp 0x360b36d8 */
   5109 L_360B36D6:
   5110     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5111     eax = 0; /* 0x360B36D6: xor eax, eax */
   5112     _cf = 0;
   5113     _flag_k = FK_TEST;
   5114 L_360B36D8:
   5115     PUSH32(esp, 0); /* 0x360B36D8: push 0 */
   5116     PUSH32(esp, 0); /* 0x360B36DA: push 0 */
   5117     PUSH32(esp, eax); /* 0x360B36DC: push eax */
   5118     RECOMP_ICALL(MEM32(0x3616FD20)); /* 0x360B36DD: call dword ptr [0x3616fd20] */
   5119     RECOMP_FLAGS_IN();
   5120     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5122     esp = esp + 0xCu; /* 0x360B36E3: add esp, 0xc */
   5123     _flag_k = FK_ADD;
   5124     /* test eax, eax */ /* 0x360B36E6: test eax, eax */
   5125     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5126     _cf = 0;
   5127     _flag_k = FK_TEST;
   5128     if (TEST_Z(_flag_a, _flag_b)) goto L_360B36F2; /* 0x360B36E8: je 0x360b36f2 */
   5129 L_360B36EA:
   5130     esi = eax + (-0x8C); /* 0x360B36EA: lea esi, [eax - 0x8c] */
   5131     goto L_360B36F4; /* 0x360B36F0: jmp 0x360b36f4 */
   5132 L_360B36F2:
   5133     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5134     esi = 0; /* 0x360B36F2: xor esi, esi */
   5135     _cf = 0;
   5136     _flag_k = FK_TEST;
   5137 L_360B36F4:
   5138     eax = MEM32(edi); /* 0x360B36F4: mov eax, dword ptr [edi] */
   5139     PUSH32(esp, esi); /* 0x360B36F6: push esi */
   5140     ecx = edi; /* 0x360B36F7: mov ecx, edi */
   5141     RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x360B36F9: call dword ptr [eax + 0x24] */
   5142     RECOMP_FLAGS_IN();
   5143     /* test esi, esi */ /* 0x360B36FC: test esi, esi */
   5144     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5145     _cf = 0;
   5146     _flag_k = FK_TEST;
   5147     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3709; /* 0x360B36FE: je 0x360b3709 */
   5148 L_360B3700:
   5149     edi = POP32_VAL(esp); /* 0x360B3700: pop edi */
   5150     eax = esi + 0x8C; /* 0x360B3701: lea eax, [esi + 0x8c] */
   5151     esi = POP32_VAL(esp); /* 0x360B3707: pop esi */
   5152     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3708: ret  */
   5153 L_360B3709:
   5154     edi = POP32_VAL(esp); /* 0x360B3709: pop edi */
   5155     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5156     eax = 0; /* 0x360B370A: xor eax, eax */
   5157     _cf = 0;
   5158     _flag_k = FK_TEST;
   5159     esi = POP32_VAL(esp); /* 0x360B370C: pop esi */
   5160     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B370D: ret  */
   5161     RECOMP_REGS_OUT();
   5162 }
   5163 
   5164 void sub_360B3710(void) {
   5165     int _fpu_cmp = 0;
   5166     uint32_t _cf = 0;
   5167     int _df = 1;
   5168     uint32_t _flag_k = FK_NONE;
   5169     uint32_t _flag_a = 0, _flag_b = 0;
   5170     uint32_t _itail_tgt = 0;
   5171     RECOMP_REGS_LOCALS
   5172     RECOMP_ENTER(0x360B3710u);
   5173 
   5174     goto L_360B3710;
   5175 L_360B3550:
   5176     PUSH32(esp, ebp); /* 0x360B3550: push ebp */
   5177     ebp = esp; /* 0x360B3551: mov ebp, esp */
   5178     PUSH32(esp, esi); /* 0x360B3553: push esi */
   5179     esi = ecx; /* 0x360B3554: mov esi, ecx */
   5180     RECOMP_ICALL(0x360B35B0u); /* 0x360B3556: call 0x360b35b0 */ /* not lifted */
   5181     RECOMP_FLAGS_IN();
   5182     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B355B: test byte ptr [ebp + 8], 1 */
   5183     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5184     _cf = 0;
   5185     _flag_k = FK_NARROW(FK_TEST, 24);
   5186     if (TEST_Z(_flag_a, _flag_b)) goto L_360B356A; /* 0x360B355F: je 0x360b356a */
   5187 L_360B3561:
   5188     PUSH32(esp, esi); /* 0x360B3561: push esi */
   5189     RECOMP_ICALL(0x3615FCC4u); /* 0x360B3562: call 0x3615fcc4 */ /* not lifted */
   5190     RECOMP_FLAGS_IN();
   5191     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5192     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5193     esp = esp + 4; /* 0x360B3567: add esp, 4 */
   5194     _flag_k = FK_ADD;
   5195 L_360B356A:
   5196     eax = esi; /* 0x360B356A: mov eax, esi */
   5197     esi = POP32_VAL(esp); /* 0x360B356C: pop esi */
   5198     ebp = POP32_VAL(esp); /* 0x360B356D: pop ebp */
   5199     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B356E: ret 4 */
   5200 L_360B3710:
   5201     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   5202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5203     ecx = ecx - 0x20u; /* 0x360B3710: sub ecx, 0x20 */
   5204     _flag_k = FK_CMP;
   5205     RECOMP_BACKEDGE();
   5206     goto L_360B3550; /* 0x360B3713: jmp 0x360b3550 */
   5207     { RECOMP_REGS_OUT(); return; } /* end of function */
   5208     RECOMP_REGS_OUT();
   5209 }
   5210 
   5211 void sub_360B3720(void) {
   5212     int _fpu_cmp = 0;
   5213     uint32_t _cf = 0;
   5214     int _df = 1;
   5215     uint32_t _flag_k = FK_NONE;
   5216     uint32_t _flag_a = 0, _flag_b = 0;
   5217     uint32_t _itail_tgt = 0;
   5218     RECOMP_REGS_LOCALS
   5219     RECOMP_ENTER(0x360B3720u);
   5220 
   5221 L_360B3720:
   5222     PUSH32(esp, esi); /* 0x360B3720: push esi */
   5223     esi = ecx; /* 0x360B3721: mov esi, ecx */
   5224     RECOMP_ICALL(0x360B2170u); /* 0x360B3723: call 0x360b2170 */ /* not lifted */
   5225     RECOMP_FLAGS_IN();
   5226     MEM32(esi) = 0x36174E70u; /* 0x360B3728: mov dword ptr [esi], 0x36174e70 */
   5227     MEM32(esi + 0x20) = 0x36174E54u; /* 0x360B372E: mov dword ptr [esi + 0x20], 0x36174e54 */
   5228     MEM8(esi + 0xC) = (uint8_t)(0); /* 0x360B3735: mov byte ptr [esi + 0xc], 0 */
   5229     eax = esi; /* 0x360B3739: mov eax, esi */
   5230     esi = POP32_VAL(esp); /* 0x360B373B: pop esi */
   5231     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B373C: ret  */
   5232     RECOMP_REGS_OUT();
   5233 }
   5234 
   5235 void sub_360B3740(void) {
   5236     int _fpu_cmp = 0;
   5237     uint32_t _cf = 0;
   5238     int _df = 1;
   5239     uint32_t _flag_k = FK_NONE;
   5240     uint32_t _flag_a = 0, _flag_b = 0;
   5241     uint32_t _itail_tgt = 0;
   5242     RECOMP_REGS_LOCALS
   5243     RECOMP_ENTER(0x360B3740u);
   5244 
   5245 L_360B3740:
   5246     PUSH32(esp, ebp); /* 0x360B3740: push ebp */
   5247     ebp = esp; /* 0x360B3741: mov ebp, esp */
   5248     PUSH32(esp, esi); /* 0x360B3743: push esi */
   5249     esi = ecx; /* 0x360B3744: mov esi, ecx */
   5250     RECOMP_ICALL(0x360B37A0u); /* 0x360B3746: call 0x360b37a0 */ /* not lifted */
   5251     RECOMP_FLAGS_IN();
   5252     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B374B: test byte ptr [ebp + 8], 1 */
   5253     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5254     _cf = 0;
   5255     _flag_k = FK_NARROW(FK_TEST, 24);
   5256     if (TEST_Z(_flag_a, _flag_b)) goto L_360B375A; /* 0x360B374F: je 0x360b375a */
   5257 L_360B3751:
   5258     PUSH32(esp, esi); /* 0x360B3751: push esi */
   5259     RECOMP_ICALL(0x3615FCC4u); /* 0x360B3752: call 0x3615fcc4 */ /* not lifted */
   5260     RECOMP_FLAGS_IN();
   5261     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5262     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5263     esp = esp + 4; /* 0x360B3757: add esp, 4 */
   5264     _flag_k = FK_ADD;
   5265 L_360B375A:
   5266     eax = esi; /* 0x360B375A: mov eax, esi */
   5267     esi = POP32_VAL(esp); /* 0x360B375C: pop esi */
   5268     ebp = POP32_VAL(esp); /* 0x360B375D: pop ebp */
   5269     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B375E: ret 4 */
   5270     RECOMP_REGS_OUT();
   5271 }
   5272 
   5273 void sub_360B3770(void) {
   5274     int _fpu_cmp = 0;
   5275     uint32_t _cf = 0;
   5276     int _df = 1;
   5277     uint32_t _flag_k = FK_NONE;
   5278     uint32_t _flag_a = 0, _flag_b = 0;
   5279     uint32_t _itail_tgt = 0;
   5280     RECOMP_REGS_LOCALS
   5281     RECOMP_ENTER(0x360B3770u);
   5282 
   5283 L_360B3770:
   5284     PUSH32(esp, ebp); /* 0x360B3770: push ebp */
   5285     ebp = esp; /* 0x360B3771: mov ebp, esp */
   5286     eax = MEM32(ebp + 0xC); /* 0x360B3773: mov eax, dword ptr [ebp + 0xc] */
   5287     PUSH32(esp, esi); /* 0x360B3776: push esi */
   5288     esi = ecx; /* 0x360B3777: mov esi, ecx */
   5289     ecx = MEM32(ebp + 0x8); /* 0x360B3779: mov ecx, dword ptr [ebp + 8] */
   5290     PUSH32(esp, eax); /* 0x360B377C: push eax */
   5291     PUSH32(esp, ecx); /* 0x360B377D: push ecx */
   5292     ecx = esi; /* 0x360B377E: mov ecx, esi */
   5293     RECOMP_ICALL(0x360B22D0u); /* 0x360B3780: call 0x360b22d0 */ /* not lifted */
   5294     RECOMP_FLAGS_IN();
   5295     MEM32(esi) = 0x36174E70u; /* 0x360B3785: mov dword ptr [esi], 0x36174e70 */
   5296     MEM32(esi + 0x20) = 0x36174E54u; /* 0x360B378B: mov dword ptr [esi + 0x20], 0x36174e54 */
   5297     MEM8(esi + 0xC) = (uint8_t)(0); /* 0x360B3792: mov byte ptr [esi + 0xc], 0 */
   5298     eax = esi; /* 0x360B3796: mov eax, esi */
   5299     esi = POP32_VAL(esp); /* 0x360B3798: pop esi */
   5300     ebp = POP32_VAL(esp); /* 0x360B3799: pop ebp */
   5301     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360B379A: ret 8 */
   5302     RECOMP_REGS_OUT();
   5303 }
   5304 
   5305 void sub_360B37A0(void) {
   5306     int _fpu_cmp = 0;
   5307     uint32_t _cf = 0;
   5308     int _df = 1;
   5309     uint32_t _flag_k = FK_NONE;
   5310     uint32_t _flag_a = 0, _flag_b = 0;
   5311     uint32_t _itail_tgt = 0;
   5312     RECOMP_REGS_LOCALS
   5313     RECOMP_ENTER(0x360B37A0u);
   5314 
   5315     goto L_360B37A0;
   5316 L_360B2340:
   5317     PUSH32(esp, ebp); /* 0x360B2340: push ebp */
   5318     ebp = esp; /* 0x360B2341: mov ebp, esp */
   5319     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B2343: push -1 */
   5320     PUSH32(esp, 0x361672C0u); /* 0x360B2345: push 0x361672c0 */
   5321     eax = MEM32(FS_BASE + (0)); /* 0x360B234A: mov eax, dword ptr fs:[0] */
   5322     PUSH32(esp, eax); /* 0x360B2350: push eax */
   5323     MEM32(FS_BASE + (0)) = esp; /* 0x360B2351: mov dword ptr fs:[0], esp */
   5324     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5326     esp = esp - 8; /* 0x360B2358: sub esp, 8 */
   5327     _flag_k = FK_CMP;
   5328     PUSH32(esp, ebx); /* 0x360B235B: push ebx */
   5329     PUSH32(esp, esi); /* 0x360B235C: push esi */
   5330     esi = ecx; /* 0x360B235D: mov esi, ecx */
   5331     PUSH32(esp, edi); /* 0x360B235F: push edi */
   5332     MEM32(ebp + (-0x14)) = esi; /* 0x360B2360: mov dword ptr [ebp - 0x14], esi */
   5333     MEM32(esi) = 0x36174D28u; /* 0x360B2363: mov dword ptr [esi], 0x36174d28 */
   5334     MEM32(esi + 0x20) = 0x36174D0Cu; /* 0x360B2369: mov dword ptr [esi + 0x20], 0x36174d0c */
   5335     ebx = MEM32(esi + 0x68); /* 0x360B2370: mov ebx, dword ptr [esi + 0x68] */
   5336     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5337     edi = 0; /* 0x360B2373: xor edi, edi */
   5338     _cf = 0;
   5339     _flag_k = FK_TEST;
   5340     /* cmp ebx, edi */ /* 0x360B2375: cmp ebx, edi */
   5341     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   5342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5343     _flag_k = FK_CMP;
   5344     MEM32(ebp + (-0x4)) = 1; /* 0x360B2377: mov dword ptr [ebp - 4], 1 */
   5345     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B239E; /* 0x360B237E: je 0x360b239e */
   5346 L_360B2380:
   5347     eax = MEM32(ebx + 0x4); /* 0x360B2380: mov eax, dword ptr [ebx + 4] */
   5348     PUSH32(esp, eax); /* 0x360B2383: push eax */
   5349     MEM32(ebp + (-0x10)) = eax; /* 0x360B2384: mov dword ptr [ebp - 0x10], eax */
   5350     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2387: call 0x3615fcc4 */ /* not lifted */
   5351     RECOMP_FLAGS_IN();
   5352     PUSH32(esp, ebx); /* 0x360B238C: push ebx */
   5353     MEM32(ebx + 0x4) = edi; /* 0x360B238D: mov dword ptr [ebx + 4], edi */
   5354     MEM32(ebx + 0x8) = edi; /* 0x360B2390: mov dword ptr [ebx + 8], edi */
   5355     MEM32(ebx + 0xC) = edi; /* 0x360B2393: mov dword ptr [ebx + 0xc], edi */
   5356     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2396: call 0x3615fcc4 */ /* not lifted */
   5357     RECOMP_FLAGS_IN();
   5358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5359     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5360     esp = esp + 8; /* 0x360B239B: add esp, 8 */
   5361     _flag_k = FK_ADD;
   5362 L_360B239E:
   5363     ebx = MEM32(esi + 0x64); /* 0x360B239E: mov ebx, dword ptr [esi + 0x64] */
   5364     /* cmp ebx, edi */ /* 0x360B23A1: cmp ebx, edi */
   5365     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   5366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5367     _flag_k = FK_CMP;
   5368     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B23E2; /* 0x360B23A3: je 0x360b23e2 */
   5369 L_360B23A5:
   5370     eax = MEM32(ebx + 0x8); /* 0x360B23A5: mov eax, dword ptr [ebx + 8] */
   5371     edi = MEM32(ebx + 0x4); /* 0x360B23A8: mov edi, dword ptr [ebx + 4] */
   5372     /* cmp edi, eax */ /* 0x360B23AB: cmp edi, eax */
   5373     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5375     _flag_k = FK_CMP;
   5376     MEM32(ebp + (-0x10)) = eax; /* 0x360B23AD: mov dword ptr [ebp - 0x10], eax */
   5377     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B23C3; /* 0x360B23B0: je 0x360b23c3 */
   5378 L_360B23B2:
   5379     ecx = edi; /* 0x360B23B2: mov ecx, edi */
   5380     RECOMP_ICALL(0x360E2940u); /* 0x360B23B4: call 0x360e2940 */ /* not lifted */
   5381     RECOMP_FLAGS_IN();
   5382     eax = MEM32(ebp + (-0x10)); /* 0x360B23B9: mov eax, dword ptr [ebp - 0x10] */
   5383     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   5384     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5385     edi = edi + 8; /* 0x360B23BC: add edi, 8 */
   5386     _flag_k = FK_ADD;
   5387     /* cmp edi, eax */ /* 0x360B23BF: cmp edi, eax */
   5388     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5390     _flag_k = FK_CMP;
   5391     RECOMP_BACKEDGE();
   5392     if (CMP_NE(_flag_a, _flag_b)) goto L_360B23B2; /* 0x360B23C1: jne 0x360b23b2 */
   5393 L_360B23C3:
   5394     eax = MEM32(ebx + 0x4); /* 0x360B23C3: mov eax, dword ptr [ebx + 4] */
   5395     PUSH32(esp, eax); /* 0x360B23C6: push eax */
   5396     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23C7: call 0x3615fcc4 */ /* not lifted */
   5397     RECOMP_FLAGS_IN();
   5398     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5399     eax = 0; /* 0x360B23CC: xor eax, eax */
   5400     _cf = 0;
   5401     _flag_k = FK_TEST;
   5402     PUSH32(esp, ebx); /* 0x360B23CE: push ebx */
   5403     MEM32(ebx + 0x4) = eax; /* 0x360B23CF: mov dword ptr [ebx + 4], eax */
   5404     MEM32(ebx + 0x8) = eax; /* 0x360B23D2: mov dword ptr [ebx + 8], eax */
   5405     MEM32(ebx + 0xC) = eax; /* 0x360B23D5: mov dword ptr [ebx + 0xc], eax */
   5406     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23D8: call 0x3615fcc4 */ /* not lifted */
   5407     RECOMP_FLAGS_IN();
   5408     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5410     esp = esp + 8; /* 0x360B23DD: add esp, 8 */
   5411     _flag_k = FK_ADD;
   5412     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5413     edi = 0; /* 0x360B23E0: xor edi, edi */
   5414     _cf = 0;
   5415     _flag_k = FK_TEST;
   5416 L_360B23E2:
   5417     ebx = MEM32(esi + 0x60); /* 0x360B23E2: mov ebx, dword ptr [esi + 0x60] */
   5418     /* cmp ebx, edi */ /* 0x360B23E5: cmp ebx, edi */
   5419     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   5420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5421     _flag_k = FK_CMP;
   5422     MEM32(esi + 0x64) = edi; /* 0x360B23E7: mov dword ptr [esi + 0x64], edi */
   5423     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B240A; /* 0x360B23EA: je 0x360b240a */
   5424 L_360B23EC:
   5425     eax = MEM32(ebx + 0x4); /* 0x360B23EC: mov eax, dword ptr [ebx + 4] */
   5426     PUSH32(esp, eax); /* 0x360B23EF: push eax */
   5427     MEM32(ebp + (-0x14)) = eax; /* 0x360B23F0: mov dword ptr [ebp - 0x14], eax */
   5428     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23F3: call 0x3615fcc4 */ /* not lifted */
   5429     RECOMP_FLAGS_IN();
   5430     PUSH32(esp, ebx); /* 0x360B23F8: push ebx */
   5431     MEM32(ebx + 0x4) = edi; /* 0x360B23F9: mov dword ptr [ebx + 4], edi */
   5432     MEM32(ebx + 0x8) = edi; /* 0x360B23FC: mov dword ptr [ebx + 8], edi */
   5433     MEM32(ebx + 0xC) = edi; /* 0x360B23FF: mov dword ptr [ebx + 0xc], edi */
   5434     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2402: call 0x3615fcc4 */ /* not lifted */
   5435     RECOMP_FLAGS_IN();
   5436     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5437     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5438     esp = esp + 8; /* 0x360B2407: add esp, 8 */
   5439     _flag_k = FK_ADD;
   5440 L_360B240A:
   5441     eax = esi; /* 0x360B240A: mov eax, esi */
   5442     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5443     _cf = (eax) != 0;
   5444     eax = (uint32_t)(-(int32_t)eax); /* 0x360B240C: neg eax */
   5445     _flag_k = FK_CMP;
   5446     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B240E: sbb eax, eax */
   5447       eax = _sc ? 0xFFFFFFFFu : 0;
   5448       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5449       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5450     ecx = esi + 0x20; /* 0x360B2410: lea ecx, [esi + 0x20] */
   5451     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   5452     eax = eax & ecx; /* 0x360B2413: and eax, ecx */
   5453     _cf = 0;
   5454     _flag_k = FK_TEST;
   5455     MEM32(esi + 0x60) = edi; /* 0x360B2415: mov dword ptr [esi + 0x60], edi */
   5456     ecx = esi; /* 0x360B2418: mov ecx, esi */
   5457     MEM32(eax) = 0x361719E8u; /* 0x360B241A: mov dword ptr [eax], 0x361719e8 */
   5458     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360B2420: mov dword ptr [ebp - 4], 0xffffffff */
   5459     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x360B2427: call dword ptr [0x3616ffd4] */
   5460     RECOMP_FLAGS_IN();
   5461     ecx = MEM32(ebp + (-0xC)); /* 0x360B242D: mov ecx, dword ptr [ebp - 0xc] */
   5462     edi = POP32_VAL(esp); /* 0x360B2430: pop edi */
   5463     esi = POP32_VAL(esp); /* 0x360B2431: pop esi */
   5464     ebx = POP32_VAL(esp); /* 0x360B2432: pop ebx */
   5465     MEM32(FS_BASE + (0)) = ecx; /* 0x360B2433: mov dword ptr fs:[0], ecx */
   5466     esp = ebp; /* 0x360B243A: mov esp, ebp */
   5467     ebp = POP32_VAL(esp); /* 0x360B243C: pop ebp */
   5468     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B243D: ret  */
   5469 L_360B37A0:
   5470     MEM32(ecx) = 0x36174E70u; /* 0x360B37A0: mov dword ptr [ecx], 0x36174e70 */
   5471     MEM32(ecx + 0x20) = 0x36174E54u; /* 0x360B37A6: mov dword ptr [ecx + 0x20], 0x36174e54 */
   5472     RECOMP_BACKEDGE();
   5473     goto L_360B2340; /* 0x360B37AD: jmp 0x360b2340 */
   5474     { RECOMP_REGS_OUT(); return; } /* end of function */
   5475     RECOMP_REGS_OUT();
   5476 }
   5477 
   5478 void sub_360B37C0(void) {
   5479     int _fpu_cmp = 0;
   5480     uint32_t _cf = 0;
   5481     int _df = 1;
   5482     uint32_t _flag_k = FK_NONE;
   5483     uint32_t _flag_a = 0, _flag_b = 0;
   5484     uint32_t _itail_tgt = 0;
   5485     RECOMP_REGS_LOCALS
   5486     RECOMP_ENTER(0x360B37C0u);
   5487 
   5488 L_360B37C0:
   5489     PUSH32(esp, ebp); /* 0x360B37C0: push ebp */
   5490     ebp = esp; /* 0x360B37C1: mov ebp, esp */
   5491     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B37C3: push -1 */
   5492     PUSH32(esp, 0x3616738Bu); /* 0x360B37C5: push 0x3616738b */
   5493     eax = MEM32(FS_BASE + (0)); /* 0x360B37CA: mov eax, dword ptr fs:[0] */
   5494     PUSH32(esp, eax); /* 0x360B37D0: push eax */
   5495     MEM32(FS_BASE + (0)) = esp; /* 0x360B37D1: mov dword ptr fs:[0], esp */
   5496     PUSH32(esp, ecx); /* 0x360B37D8: push ecx */
   5497     PUSH32(esp, esi); /* 0x360B37D9: push esi */
   5498     PUSH32(esp, 0x1D4u); /* 0x360B37DA: push 0x1d4 */
   5499     esi = ecx; /* 0x360B37DF: mov esi, ecx */
   5500     RECOMP_ICALL(0x3615FD6Au); /* 0x360B37E1: call 0x3615fd6a */ /* not lifted */
   5501     RECOMP_FLAGS_IN();
   5502     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5503     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5504     esp = esp + 4; /* 0x360B37E6: add esp, 4 */
   5505     _flag_k = FK_ADD;
   5506     MEM32(ebp + (-0x10)) = eax; /* 0x360B37E9: mov dword ptr [ebp - 0x10], eax */
   5507     /* test eax, eax */ /* 0x360B37EC: test eax, eax */
   5508     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5509     _cf = 0;
   5510     _flag_k = FK_TEST;
   5511     MEM32(ebp + (-0x4)) = 0; /* 0x360B37EE: mov dword ptr [ebp - 4], 0 */
   5512     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3820; /* 0x360B37F5: je 0x360b3820 */
   5513 L_360B37F7:
   5514     edx = MEM32(esi + (-0x18)); /* 0x360B37F7: mov edx, dword ptr [esi - 0x18] */
   5515     esi = MEM32(esi + (-0x1C)); /* 0x360B37FA: mov esi, dword ptr [esi - 0x1c] */
   5516     PUSH32(esp, edx); /* 0x360B37FD: push edx */
   5517     PUSH32(esp, esi); /* 0x360B37FE: push esi */
   5518     ecx = eax; /* 0x360B37FF: mov ecx, eax */
   5519     RECOMP_ICALL(0x360ABA20u); /* 0x360B3801: call 0x360aba20 */ /* not lifted */
   5520     RECOMP_FLAGS_IN();
   5521     /* test eax, eax */ /* 0x360B3806: test eax, eax */
   5522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5523     _cf = 0;
   5524     _flag_k = FK_TEST;
   5525     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3820; /* 0x360B3808: je 0x360b3820 */
   5526 L_360B380A:
   5527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Cu);
   5528     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5529     eax = eax + 0x8Cu; /* 0x360B380A: add eax, 0x8c */
   5530     _flag_k = FK_ADD;
   5531     esi = POP32_VAL(esp); /* 0x360B380F: pop esi */
   5532     ecx = MEM32(ebp + (-0xC)); /* 0x360B3810: mov ecx, dword ptr [ebp - 0xc] */
   5533     MEM32(FS_BASE + (0)) = ecx; /* 0x360B3813: mov dword ptr fs:[0], ecx */
   5534     esp = ebp; /* 0x360B381A: mov esp, ebp */
   5535     ebp = POP32_VAL(esp); /* 0x360B381C: pop ebp */
   5536     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B381D: ret 4 */
   5537 L_360B3820:
   5538     ecx = MEM32(ebp + (-0xC)); /* 0x360B3820: mov ecx, dword ptr [ebp - 0xc] */
   5539     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5540     eax = 0; /* 0x360B3823: xor eax, eax */
   5541     _cf = 0;
   5542     _flag_k = FK_TEST;
   5543     esi = POP32_VAL(esp); /* 0x360B3825: pop esi */
   5544     MEM32(FS_BASE + (0)) = ecx; /* 0x360B3826: mov dword ptr fs:[0], ecx */
   5545     esp = ebp; /* 0x360B382D: mov esp, ebp */
   5546     ebp = POP32_VAL(esp); /* 0x360B382F: pop ebp */
   5547     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B3830: ret 4 */
   5548     RECOMP_REGS_OUT();
   5549 }
   5550 
   5551 void sub_360B3840(void) {
   5552     int _fpu_cmp = 0;
   5553     uint32_t _cf = 0;
   5554     int _df = 1;
   5555     uint32_t _flag_k = FK_NONE;
   5556     uint32_t _flag_a = 0, _flag_b = 0;
   5557     uint32_t _itail_tgt = 0;
   5558     RECOMP_REGS_LOCALS
   5559     RECOMP_ENTER(0x360B3840u);
   5560 
   5561 L_360B3840:
   5562     PUSH32(esp, ebp); /* 0x360B3840: push ebp */
   5563     ebp = esp; /* 0x360B3841: mov ebp, esp */
   5564     PUSH32(esp, esi); /* 0x360B3843: push esi */
   5565     esi = MEM32(ebp + 0x8); /* 0x360B3844: mov esi, dword ptr [ebp + 8] */
   5566     PUSH32(esp, esi); /* 0x360B3847: push esi */
   5567     RECOMP_ICALL(0x360B2440u); /* 0x360B3848: call 0x360b2440 */ /* not lifted */
   5568     RECOMP_FLAGS_IN();
   5569     /* test eax, eax */ /* 0x360B384D: test eax, eax */
   5570     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5571     _cf = 0;
   5572     _flag_k = FK_TEST;
   5573     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B385E; /* 0x360B384F: jne 0x360b385e */
   5574 L_360B3851:
   5575     ecx = esi; /* 0x360B3851: mov ecx, esi */
   5576     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360B3853: call dword ptr [0x3616fadc] */
   5577     RECOMP_FLAGS_IN();
   5578     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5579     _cf = (eax) != 0;
   5580     eax = (uint32_t)(-(int32_t)eax); /* 0x360B3859: neg eax */
   5581     _flag_k = FK_CMP;
   5582     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B385B: sbb eax, eax */
   5583       eax = _sc ? 0xFFFFFFFFu : 0;
   5584       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5585       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5587     eax = eax + 1; /* 0x360B385D: inc eax */
   5588     _flag_k = FK_INC;
   5589 L_360B385E:
   5590     esi = POP32_VAL(esp); /* 0x360B385E: pop esi */
   5591     ebp = POP32_VAL(esp); /* 0x360B385F: pop ebp */
   5592     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B3860: ret 4 */
   5593     RECOMP_REGS_OUT();
   5594 }
   5595 
   5596 void sub_360B3870(void) {
   5597     int _fpu_cmp = 0;
   5598     uint32_t _cf = 0;
   5599     int _df = 1;
   5600     uint32_t _flag_k = FK_NONE;
   5601     uint32_t _flag_a = 0, _flag_b = 0;
   5602     uint32_t _itail_tgt = 0;
   5603     RECOMP_REGS_LOCALS
   5604     RECOMP_ENTER(0x360B3870u);
   5605 
   5606 L_360B3870:
   5607     PUSH32(esp, ebp); /* 0x360B3870: push ebp */
   5608     ebp = esp; /* 0x360B3871: mov ebp, esp */
   5609     PUSH32(esp, esi); /* 0x360B3873: push esi */
   5610     PUSH32(esp, edi); /* 0x360B3874: push edi */
   5611     edi = MEM32(ebp + 0x8); /* 0x360B3875: mov edi, dword ptr [ebp + 8] */
   5612     PUSH32(esp, 0); /* 0x360B3878: push 0 */
   5613     PUSH32(esp, 0x361C2CF8u); /* 0x360B387A: push 0x361c2cf8 */
   5614     PUSH32(esp, 0x361B2CF8u); /* 0x360B387F: push 0x361b2cf8 */
   5615     PUSH32(esp, 0); /* 0x360B3884: push 0 */
   5616     PUSH32(esp, edi); /* 0x360B3886: push edi */
   5617     esi = ecx; /* 0x360B3887: mov esi, ecx */
   5618     RECOMP_ICALL(0x3615FD86u); /* 0x360B3889: call 0x3615fd86 */ /* not lifted */
   5619     RECOMP_FLAGS_IN();
   5620     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5622     esp = esp + 0x14u; /* 0x360B388E: add esp, 0x14 */
   5623     _flag_k = FK_ADD;
   5624     /* test eax, eax */ /* 0x360B3891: test eax, eax */
   5625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5626     _cf = 0;
   5627     _flag_k = FK_TEST;
   5628     if (TEST_Z(_flag_a, _flag_b)) goto L_360B389D; /* 0x360B3893: je 0x360b389d */
   5629 L_360B3895:
   5630     PUSH32(esp, edi); /* 0x360B3895: push edi */
   5631     ecx = esi; /* 0x360B3896: mov ecx, esi */
   5632     RECOMP_ICALL(0x360B2830u); /* 0x360B3898: call 0x360b2830 */ /* not lifted */
   5633     RECOMP_FLAGS_IN();
   5634 L_360B389D:
   5635     edi = POP32_VAL(esp); /* 0x360B389D: pop edi */
   5636     esi = POP32_VAL(esp); /* 0x360B389E: pop esi */
   5637     ebp = POP32_VAL(esp); /* 0x360B389F: pop ebp */
   5638     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B38A0: ret 4 */
   5639     RECOMP_REGS_OUT();
   5640 }
   5641 
   5642 void sub_360B38B0(void) {
   5643     int _fpu_cmp = 0;
   5644     uint32_t _cf = 0;
   5645     int _df = 1;
   5646     uint32_t _flag_k = FK_NONE;
   5647     uint32_t _flag_a = 0, _flag_b = 0;
   5648     uint32_t _itail_tgt = 0;
   5649     RECOMP_REGS_LOCALS
   5650     RECOMP_ENTER(0x360B38B0u);
   5651 
   5652 L_360B38B0:
   5653     PUSH32(esp, ebp); /* 0x360B38B0: push ebp */
   5654     ebp = esp; /* 0x360B38B1: mov ebp, esp */
   5655     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5656     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5657     esp = esp - 8; /* 0x360B38B3: sub esp, 8 */
   5658     _flag_k = FK_CMP;
   5659     PUSH32(esp, esi); /* 0x360B38B6: push esi */
   5660     esi = ecx; /* 0x360B38B7: mov esi, ecx */
   5661     PUSH32(esp, edi); /* 0x360B38B9: push edi */
   5662     edi = esi + 0x4; /* 0x360B38BA: lea edi, [esi + 4] */
   5663     PUSH32(esp, edi); /* 0x360B38BD: push edi */
   5664     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360B38BE: call dword ptr [0x3616ff70] */
   5665     RECOMP_FLAGS_IN();
   5666     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5667     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5668     esp = esp + 4; /* 0x360B38C4: add esp, 4 */
   5669     _flag_k = FK_ADD;
   5670     /* test eax, eax */ /* 0x360B38C7: test eax, eax */
   5671     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5672     _cf = 0;
   5673     _flag_k = FK_TEST;
   5674     if (TEST_NZ(_flag_a, _flag_b)) goto L_360B3972; /* 0x360B38C9: jne 0x360b3972 */
   5675 L_360B38CF:
   5676     /* cmp MEM32(edi), 0xC74Au */ /* 0x360B38CF: cmp dword ptr [edi], 0xc74a */
   5677     _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0xC74Au);
   5678     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5679     _flag_k = FK_CMP;
   5680     if (CMP_NE(_flag_a, _flag_b)) goto L_360B3972; /* 0x360B38D5: jne 0x360b3972 */
   5681 L_360B38DB:
   5682     eax = MEM32(esi + 0x50); /* 0x360B38DB: mov eax, dword ptr [esi + 0x50] */
   5683     PUSH32(esp, eax); /* 0x360B38DE: push eax */
   5684     RECOMP_ICALL(MEM32(0x36170044)); /* 0x360B38DF: call dword ptr [0x36170044] */
   5685     RECOMP_FLAGS_IN();
   5686     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5687     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5688     esp = esp + 4; /* 0x360B38E5: add esp, 4 */
   5689     _flag_k = FK_ADD;
   5690     /* test eax, eax */ /* 0x360B38E8: test eax, eax */
   5691     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5692     _cf = 0;
   5693     _flag_k = FK_TEST;
   5694     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3972; /* 0x360B38EA: je 0x360b3972 */
   5695 L_360B38F0:
   5696     /* test esi, esi */ /* 0x360B38F0: test esi, esi */
   5697     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   5698     _cf = 0;
   5699     _flag_k = FK_TEST;
   5700     if (TEST_Z(_flag_a, _flag_b)) goto L_360B38F9; /* 0x360B38F2: je 0x360b38f9 */
   5701 L_360B38F4:
   5702     eax = esi + 0x20; /* 0x360B38F4: lea eax, [esi + 0x20] */
   5703     goto L_360B38FB; /* 0x360B38F7: jmp 0x360b38fb */
   5704 L_360B38F9:
   5705     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5706     eax = 0; /* 0x360B38F9: xor eax, eax */
   5707     _cf = 0;
   5708     _flag_k = FK_TEST;
   5709 L_360B38FB:
   5710     PUSH32(esp, 0); /* 0x360B38FB: push 0 */
   5711     PUSH32(esp, 0); /* 0x360B38FD: push 0 */
   5712     PUSH32(esp, eax); /* 0x360B38FF: push eax */
   5713     RECOMP_ICALL(MEM32(0x3616FD20)); /* 0x360B3900: call dword ptr [0x3616fd20] */
   5714     RECOMP_FLAGS_IN();
   5715     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5716     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5717     esp = esp + 0xCu; /* 0x360B3906: add esp, 0xc */
   5718     _flag_k = FK_ADD;
   5719     /* test eax, eax */ /* 0x360B3909: test eax, eax */
   5720     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5721     _cf = 0;
   5722     _flag_k = FK_TEST;
   5723     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3915; /* 0x360B390B: je 0x360b3915 */
   5724 L_360B390D:
   5725     edi = eax + (-0x8C); /* 0x360B390D: lea edi, [eax - 0x8c] */
   5726     goto L_360B3917; /* 0x360B3913: jmp 0x360b3917 */
   5727 L_360B3915:
   5728     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5729     edi = 0; /* 0x360B3915: xor edi, edi */
   5730     _cf = 0;
   5731     _flag_k = FK_TEST;
   5732 L_360B3917:
   5733     ecx = MEM32(0x3616FF74); /* 0x360B3917: mov ecx, dword ptr [0x3616ff74] */
   5734     ecx = MEM32(ecx); /* 0x360B391D: mov ecx, dword ptr [ecx] */
   5735     edx = MEM32(ecx); /* 0x360B391F: mov edx, dword ptr [ecx] */
   5736     eax = ebp + (-0x8); /* 0x360B3921: lea eax, [ebp - 8] */
   5737     PUSH32(esp, eax); /* 0x360B3924: push eax */
   5738     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360B3925: call dword ptr [edx + 0x24] */
   5739     RECOMP_FLAGS_IN();
   5740     ecx = ebp + (-0x8); /* 0x360B3928: lea ecx, [ebp - 8] */
   5741     /* cmp ecx, eax */ /* 0x360B392B: cmp ecx, eax */
   5742     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5744     _flag_k = FK_CMP;
   5745     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B3936; /* 0x360B392D: je 0x360b3936 */
   5746 L_360B392F:
   5747     ecx = MEM32(eax); /* 0x360B392F: mov ecx, dword ptr [eax] */
   5748     eax = MEM32(eax + 0x4); /* 0x360B3931: mov eax, dword ptr [eax + 4] */
   5749     goto L_360B393C; /* 0x360B3934: jmp 0x360b393c */
   5750 L_360B3936:
   5751     eax = MEM32(ebp + (-0x4)); /* 0x360B3936: mov eax, dword ptr [ebp - 4] */
   5752     ecx = MEM32(ebp + (-0x8)); /* 0x360B3939: mov ecx, dword ptr [ebp - 8] */
   5753 L_360B393C:
   5754     /* cmp MEM32(esi + 0x30), eax */ /* 0x360B393C: cmp dword ptr [esi + 0x30], eax */
   5755     _flag_a = (uint32_t)(MEM32(esi + 0x30)); _flag_b = (uint32_t)(eax);
   5756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5757     _flag_k = FK_CMP;
   5758     if (CMP_NE(_flag_a, _flag_b)) goto L_360B395A; /* 0x360B393F: jne 0x360b395a */
   5759 L_360B3941:
   5760     /* cmp MEM32(esi + 0x2C), ecx */ /* 0x360B3941: cmp dword ptr [esi + 0x2c], ecx */
   5761     _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(ecx);
   5762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5763     _flag_k = FK_CMP;
   5764     if (CMP_NE(_flag_a, _flag_b)) goto L_360B395A; /* 0x360B3944: jne 0x360b395a */
   5765 L_360B3946:
   5766     PUSH32(esp, edi); /* 0x360B3946: push edi */
   5767     RECOMP_ICALL(0x360F0E90u); /* 0x360B3947: call 0x360f0e90 */ /* not lifted */
   5768     RECOMP_FLAGS_IN();
   5769     ecx = eax; /* 0x360B394C: mov ecx, eax */
   5770     RECOMP_ICALL(0x360F1200u); /* 0x360B394E: call 0x360f1200 */ /* not lifted */
   5771     RECOMP_FLAGS_IN();
   5772     ecx = edi; /* 0x360B3953: mov ecx, edi */
   5773     RECOMP_ICALL(0x360AE3B0u); /* 0x360B3955: call 0x360ae3b0 */ /* not lifted */
   5774     RECOMP_FLAGS_IN();
   5775 L_360B395A:
   5776     edx = MEM32(esi); /* 0x360B395A: mov edx, dword ptr [esi] */
   5777     PUSH32(esp, edi); /* 0x360B395C: push edi */
   5778     ecx = esi; /* 0x360B395D: mov ecx, esi */
   5779     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360B395F: call dword ptr [edx + 0x24] */
   5780     RECOMP_FLAGS_IN();
   5781     /* test edi, edi */ /* 0x360B3962: test edi, edi */
   5782     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5783     _cf = 0;
   5784     _flag_k = FK_TEST;
   5785     if (TEST_Z(_flag_a, _flag_b)) goto L_360B3972; /* 0x360B3964: je 0x360b3972 */
   5786 L_360B3966:
   5787     eax = edi + 0x8C; /* 0x360B3966: lea eax, [edi + 0x8c] */
   5788     edi = POP32_VAL(esp); /* 0x360B396C: pop edi */
   5789     esi = POP32_VAL(esp); /* 0x360B396D: pop esi */
   5790     esp = ebp; /* 0x360B396E: mov esp, ebp */
   5791     ebp = POP32_VAL(esp); /* 0x360B3970: pop ebp */
   5792     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3971: ret  */
   5793 L_360B3972:
   5794     edi = POP32_VAL(esp); /* 0x360B3972: pop edi */
   5795     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5796     eax = 0; /* 0x360B3973: xor eax, eax */
   5797     _cf = 0;
   5798     _flag_k = FK_TEST;
   5799     esi = POP32_VAL(esp); /* 0x360B3975: pop esi */
   5800     esp = ebp; /* 0x360B3976: mov esp, ebp */
   5801     ebp = POP32_VAL(esp); /* 0x360B3978: pop ebp */
   5802     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3979: ret  */
   5803     RECOMP_REGS_OUT();
   5804 }
   5805 
   5806 void sub_360B3980(void) {
   5807     int _fpu_cmp = 0;
   5808     uint32_t _cf = 0;
   5809     int _df = 1;
   5810     uint32_t _flag_k = FK_NONE;
   5811     uint32_t _flag_a = 0, _flag_b = 0;
   5812     uint32_t _itail_tgt = 0;
   5813     RECOMP_REGS_LOCALS
   5814     RECOMP_ENTER(0x360B3980u);
   5815 
   5816     goto L_360B3980;
   5817 L_360B3740:
   5818     PUSH32(esp, ebp); /* 0x360B3740: push ebp */
   5819     ebp = esp; /* 0x360B3741: mov ebp, esp */
   5820     PUSH32(esp, esi); /* 0x360B3743: push esi */
   5821     esi = ecx; /* 0x360B3744: mov esi, ecx */
   5822     RECOMP_ICALL(0x360B37A0u); /* 0x360B3746: call 0x360b37a0 */ /* not lifted */
   5823     RECOMP_FLAGS_IN();
   5824     /* test MEM8(ebp + 0x8), 1 */ /* 0x360B374B: test byte ptr [ebp + 8], 1 */
   5825     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5826     _cf = 0;
   5827     _flag_k = FK_NARROW(FK_TEST, 24);
   5828     if (TEST_Z(_flag_a, _flag_b)) goto L_360B375A; /* 0x360B374F: je 0x360b375a */
   5829 L_360B3751:
   5830     PUSH32(esp, esi); /* 0x360B3751: push esi */
   5831     RECOMP_ICALL(0x3615FCC4u); /* 0x360B3752: call 0x3615fcc4 */ /* not lifted */
   5832     RECOMP_FLAGS_IN();
   5833     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5835     esp = esp + 4; /* 0x360B3757: add esp, 4 */
   5836     _flag_k = FK_ADD;
   5837 L_360B375A:
   5838     eax = esi; /* 0x360B375A: mov eax, esi */
   5839     esi = POP32_VAL(esp); /* 0x360B375C: pop esi */
   5840     ebp = POP32_VAL(esp); /* 0x360B375D: pop ebp */
   5841     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360B375E: ret 4 */
   5842 L_360B3980:
   5843     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u);
   5844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5845     ecx = ecx - 0x20u; /* 0x360B3980: sub ecx, 0x20 */
   5846     _flag_k = FK_CMP;
   5847     RECOMP_BACKEDGE();
   5848     goto L_360B3740; /* 0x360B3983: jmp 0x360b3740 */
   5849     { RECOMP_REGS_OUT(); return; } /* end of function */
   5850     RECOMP_REGS_OUT();
   5851 }
   5852 
   5853 void sub_360B3990(void) {
   5854     int _fpu_cmp = 0;
   5855     uint32_t _cf = 0;
   5856     int _df = 1;
   5857     uint32_t _flag_k = FK_NONE;
   5858     uint32_t _flag_a = 0, _flag_b = 0;
   5859     uint32_t _itail_tgt = 0;
   5860     RECOMP_REGS_LOCALS
   5861     RECOMP_ENTER(0x360B3990u);
   5862 
   5863 L_360B3990:
   5864     goto L_360B39A0; /* 0x360B3990: jmp 0x360b39a0 */
   5865 L_360B39A0:
   5866     MEM32(0x36306D20) = 0x361B2FF4u; /* 0x360B39A0: mov dword ptr [0x36306d20], 0x361b2ff4 */
   5867     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B39AA: ret  */
   5868     RECOMP_REGS_OUT();
   5869 }
   5870 
   5871 void sub_360B39A0(void) {
   5872     int _fpu_cmp = 0;
   5873     uint32_t _cf = 0;
   5874     int _df = 1;
   5875     uint32_t _flag_k = FK_NONE;
   5876     uint32_t _flag_a = 0, _flag_b = 0;
   5877     uint32_t _itail_tgt = 0;
   5878     RECOMP_REGS_LOCALS
   5879     RECOMP_ENTER(0x360B39A0u);
   5880 
   5881 L_360B39A0:
   5882     MEM32(0x36306D20) = 0x361B2FF4u; /* 0x360B39A0: mov dword ptr [0x36306d20], 0x361b2ff4 */
   5883     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B39AA: ret  */
   5884     RECOMP_REGS_OUT();
   5885 }
   5886 
   5887 void sub_360B39B0(void) {
   5888     int _fpu_cmp = 0;
   5889     uint32_t _cf = 0;
   5890     int _df = 1;
   5891     uint32_t _flag_k = FK_NONE;
   5892     uint32_t _flag_a = 0, _flag_b = 0;
   5893     uint32_t _itail_tgt = 0;
   5894     RECOMP_REGS_LOCALS
   5895     RECOMP_ENTER(0x360B39B0u);
   5896 
   5897 L_360B39B0:
   5898     goto L_360B39C0; /* 0x360B39B0: jmp 0x360b39c0 */
   5899 L_360B39C0:
   5900     MEM32(0x36306D1C) = 0x361B3028u; /* 0x360B39C0: mov dword ptr [0x36306d1c], 0x361b3028 */
   5901     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B39CA: ret  */
   5902     RECOMP_REGS_OUT();
   5903 }
   5904 
   5905 void sub_360B39C0(void) {
   5906     int _fpu_cmp = 0;
   5907     uint32_t _cf = 0;
   5908     int _df = 1;
   5909     uint32_t _flag_k = FK_NONE;
   5910     uint32_t _flag_a = 0, _flag_b = 0;
   5911     uint32_t _itail_tgt = 0;
   5912     RECOMP_REGS_LOCALS
   5913     RECOMP_ENTER(0x360B39C0u);
   5914 
   5915 L_360B39C0:
   5916     MEM32(0x36306D1C) = 0x361B3028u; /* 0x360B39C0: mov dword ptr [0x36306d1c], 0x361b3028 */
   5917     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B39CA: ret  */
   5918     RECOMP_REGS_OUT();
   5919 }
   5920 
   5921 void sub_360B39D0(void) {
   5922     int _fpu_cmp = 0;
   5923     uint32_t _cf = 0;
   5924     int _df = 1;
   5925     uint32_t _flag_k = FK_NONE;
   5926     uint32_t _flag_a = 0, _flag_b = 0;
   5927     uint32_t _itail_tgt = 0;
   5928     RECOMP_REGS_LOCALS
   5929     RECOMP_ENTER(0x360B39D0u);
   5930 
   5931 L_360B39D0:
   5932     goto L_360B39E0; /* 0x360B39D0: jmp 0x360b39e0 */
   5933 L_360B39E0:
   5934     MEM32(0x36306D18) = 0x361B3064u; /* 0x360B39E0: mov dword ptr [0x36306d18], 0x361b3064 */
   5935     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B39EA: ret  */
   5936     RECOMP_REGS_OUT();
   5937 }
   5938 
   5939 void sub_360B39E0(void) {
   5940     int _fpu_cmp = 0;
   5941     uint32_t _cf = 0;
   5942     int _df = 1;
   5943     uint32_t _flag_k = FK_NONE;
   5944     uint32_t _flag_a = 0, _flag_b = 0;
   5945     uint32_t _itail_tgt = 0;
   5946     RECOMP_REGS_LOCALS
   5947     RECOMP_ENTER(0x360B39E0u);
   5948 
   5949 L_360B39E0:
   5950     MEM32(0x36306D18) = 0x361B3064u; /* 0x360B39E0: mov dword ptr [0x36306d18], 0x361b3064 */
   5951     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B39EA: ret  */
   5952     RECOMP_REGS_OUT();
   5953 }
   5954 
   5955 void sub_360B39F0(void) {
   5956     int _fpu_cmp = 0;
   5957     uint32_t _cf = 0;
   5958     int _df = 1;
   5959     uint32_t _flag_k = FK_NONE;
   5960     uint32_t _flag_a = 0, _flag_b = 0;
   5961     uint32_t _itail_tgt = 0;
   5962     RECOMP_REGS_LOCALS
   5963     RECOMP_ENTER(0x360B39F0u);
   5964 
   5965 L_360B39F0:
   5966     goto L_360B3A00; /* 0x360B39F0: jmp 0x360b3a00 */
   5967 L_360B3A00:
   5968     MEM32(0x36306D14) = 0x361B3098u; /* 0x360B3A00: mov dword ptr [0x36306d14], 0x361b3098 */
   5969     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A0A: ret  */
   5970     RECOMP_REGS_OUT();
   5971 }
   5972 
   5973 void sub_360B3A00(void) {
   5974     int _fpu_cmp = 0;
   5975     uint32_t _cf = 0;
   5976     int _df = 1;
   5977     uint32_t _flag_k = FK_NONE;
   5978     uint32_t _flag_a = 0, _flag_b = 0;
   5979     uint32_t _itail_tgt = 0;
   5980     RECOMP_REGS_LOCALS
   5981     RECOMP_ENTER(0x360B3A00u);
   5982 
   5983 L_360B3A00:
   5984     MEM32(0x36306D14) = 0x361B3098u; /* 0x360B3A00: mov dword ptr [0x36306d14], 0x361b3098 */
   5985     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A0A: ret  */
   5986     RECOMP_REGS_OUT();
   5987 }
   5988 
   5989 void sub_360B3A10(void) {
   5990     int _fpu_cmp = 0;
   5991     uint32_t _cf = 0;
   5992     int _df = 1;
   5993     uint32_t _flag_k = FK_NONE;
   5994     uint32_t _flag_a = 0, _flag_b = 0;
   5995     uint32_t _itail_tgt = 0;
   5996     RECOMP_REGS_LOCALS
   5997     RECOMP_ENTER(0x360B3A10u);
   5998 
   5999 L_360B3A10:
   6000     goto L_360B3A20; /* 0x360B3A10: jmp 0x360b3a20 */
   6001 L_360B3A20:
   6002     MEM32(0x36306D10) = 0x361B30CCu; /* 0x360B3A20: mov dword ptr [0x36306d10], 0x361b30cc */
   6003     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A2A: ret  */
   6004     RECOMP_REGS_OUT();
   6005 }
   6006 
   6007 void sub_360B3A20(void) {
   6008     int _fpu_cmp = 0;
   6009     uint32_t _cf = 0;
   6010     int _df = 1;
   6011     uint32_t _flag_k = FK_NONE;
   6012     uint32_t _flag_a = 0, _flag_b = 0;
   6013     uint32_t _itail_tgt = 0;
   6014     RECOMP_REGS_LOCALS
   6015     RECOMP_ENTER(0x360B3A20u);
   6016 
   6017 L_360B3A20:
   6018     MEM32(0x36306D10) = 0x361B30CCu; /* 0x360B3A20: mov dword ptr [0x36306d10], 0x361b30cc */
   6019     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A2A: ret  */
   6020     RECOMP_REGS_OUT();
   6021 }
   6022 
   6023 void sub_360B3A30(void) {
   6024     int _fpu_cmp = 0;
   6025     uint32_t _cf = 0;
   6026     int _df = 1;
   6027     uint32_t _flag_k = FK_NONE;
   6028     uint32_t _flag_a = 0, _flag_b = 0;
   6029     uint32_t _itail_tgt = 0;
   6030     RECOMP_REGS_LOCALS
   6031     RECOMP_ENTER(0x360B3A30u);
   6032 
   6033 L_360B3A30:
   6034     goto L_360B3A40; /* 0x360B3A30: jmp 0x360b3a40 */
   6035 L_360B3A40:
   6036     MEM32(0x36306D0C) = 0x361B3100u; /* 0x360B3A40: mov dword ptr [0x36306d0c], 0x361b3100 */
   6037     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A4A: ret  */
   6038     RECOMP_REGS_OUT();
   6039 }
   6040 
   6041 void sub_360B3A40(void) {
   6042     int _fpu_cmp = 0;
   6043     uint32_t _cf = 0;
   6044     int _df = 1;
   6045     uint32_t _flag_k = FK_NONE;
   6046     uint32_t _flag_a = 0, _flag_b = 0;
   6047     uint32_t _itail_tgt = 0;
   6048     RECOMP_REGS_LOCALS
   6049     RECOMP_ENTER(0x360B3A40u);
   6050 
   6051 L_360B3A40:
   6052     MEM32(0x36306D0C) = 0x361B3100u; /* 0x360B3A40: mov dword ptr [0x36306d0c], 0x361b3100 */
   6053     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A4A: ret  */
   6054     RECOMP_REGS_OUT();
   6055 }
   6056 
   6057 void sub_360B3A50(void) {
   6058     int _fpu_cmp = 0;
   6059     uint32_t _cf = 0;
   6060     int _df = 1;
   6061     uint32_t _flag_k = FK_NONE;
   6062     uint32_t _flag_a = 0, _flag_b = 0;
   6063     uint32_t _itail_tgt = 0;
   6064     RECOMP_REGS_LOCALS
   6065     RECOMP_ENTER(0x360B3A50u);
   6066 
   6067 L_360B3A50:
   6068     goto L_360B3A60; /* 0x360B3A50: jmp 0x360b3a60 */
   6069 L_360B3A60:
   6070     MEM32(0x36306D08) = 0x361B3138u; /* 0x360B3A60: mov dword ptr [0x36306d08], 0x361b3138 */
   6071     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A6A: ret  */
   6072     RECOMP_REGS_OUT();
   6073 }
   6074 
   6075 void sub_360B3A60(void) {
   6076     int _fpu_cmp = 0;
   6077     uint32_t _cf = 0;
   6078     int _df = 1;
   6079     uint32_t _flag_k = FK_NONE;
   6080     uint32_t _flag_a = 0, _flag_b = 0;
   6081     uint32_t _itail_tgt = 0;
   6082     RECOMP_REGS_LOCALS
   6083     RECOMP_ENTER(0x360B3A60u);
   6084 
   6085 L_360B3A60:
   6086     MEM32(0x36306D08) = 0x361B3138u; /* 0x360B3A60: mov dword ptr [0x36306d08], 0x361b3138 */
   6087     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A6A: ret  */
   6088     RECOMP_REGS_OUT();
   6089 }
   6090 
   6091 void sub_360B3A70(void) {
   6092     int _fpu_cmp = 0;
   6093     uint32_t _cf = 0;
   6094     int _df = 1;
   6095     uint32_t _flag_k = FK_NONE;
   6096     uint32_t _flag_a = 0, _flag_b = 0;
   6097     uint32_t _itail_tgt = 0;
   6098     RECOMP_REGS_LOCALS
   6099     RECOMP_ENTER(0x360B3A70u);
   6100 
   6101 L_360B3A70:
   6102     goto L_360B3A80; /* 0x360B3A70: jmp 0x360b3a80 */
   6103 L_360B3A80:
   6104     MEM32(0x36306D04) = 0x361B57A8u; /* 0x360B3A80: mov dword ptr [0x36306d04], 0x361b57a8 */
   6105     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A8A: ret  */
   6106     RECOMP_REGS_OUT();
   6107 }
   6108 
   6109 void sub_360B3A80(void) {
   6110     int _fpu_cmp = 0;
   6111     uint32_t _cf = 0;
   6112     int _df = 1;
   6113     uint32_t _flag_k = FK_NONE;
   6114     uint32_t _flag_a = 0, _flag_b = 0;
   6115     uint32_t _itail_tgt = 0;
   6116     RECOMP_REGS_LOCALS
   6117     RECOMP_ENTER(0x360B3A80u);
   6118 
   6119 L_360B3A80:
   6120     MEM32(0x36306D04) = 0x361B57A8u; /* 0x360B3A80: mov dword ptr [0x36306d04], 0x361b57a8 */
   6121     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3A8A: ret  */
   6122     RECOMP_REGS_OUT();
   6123 }
   6124 
   6125 void sub_360B3A90(void) {
   6126     int _fpu_cmp = 0;
   6127     uint32_t _cf = 0;
   6128     int _df = 1;
   6129     uint32_t _flag_k = FK_NONE;
   6130     uint32_t _flag_a = 0, _flag_b = 0;
   6131     uint32_t _itail_tgt = 0;
   6132     RECOMP_REGS_LOCALS
   6133     RECOMP_ENTER(0x360B3A90u);
   6134 
   6135 L_360B3A90:
   6136     goto L_360B3AA0; /* 0x360B3A90: jmp 0x360b3aa0 */
   6137 L_360B3AA0:
   6138     MEM32(0x36306D00) = 0x361B57E0u; /* 0x360B3AA0: mov dword ptr [0x36306d00], 0x361b57e0 */
   6139     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3AAA: ret  */
   6140     RECOMP_REGS_OUT();
   6141 }
   6142 
   6143 void sub_360B3AA0(void) {
   6144     int _fpu_cmp = 0;
   6145     uint32_t _cf = 0;
   6146     int _df = 1;
   6147     uint32_t _flag_k = FK_NONE;
   6148     uint32_t _flag_a = 0, _flag_b = 0;
   6149     uint32_t _itail_tgt = 0;
   6150     RECOMP_REGS_LOCALS
   6151     RECOMP_ENTER(0x360B3AA0u);
   6152 
   6153 L_360B3AA0:
   6154     MEM32(0x36306D00) = 0x361B57E0u; /* 0x360B3AA0: mov dword ptr [0x36306d00], 0x361b57e0 */
   6155     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3AAA: ret  */
   6156     RECOMP_REGS_OUT();
   6157 }
   6158 
   6159 void sub_360B3AB0(void) {
   6160     int _fpu_cmp = 0;
   6161     uint32_t _cf = 0;
   6162     int _df = 1;
   6163     uint32_t _flag_k = FK_NONE;
   6164     uint32_t _flag_a = 0, _flag_b = 0;
   6165     uint32_t _itail_tgt = 0;
   6166     RECOMP_REGS_LOCALS
   6167     RECOMP_ENTER(0x360B3AB0u);
   6168 
   6169 L_360B3AB0:
   6170     goto L_360B3AC0; /* 0x360B3AB0: jmp 0x360b3ac0 */
   6171 L_360B3AC0:
   6172     MEM32(0x36306CFC) = 0x361B5814u; /* 0x360B3AC0: mov dword ptr [0x36306cfc], 0x361b5814 */
   6173     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3ACA: ret  */
   6174     RECOMP_REGS_OUT();
   6175 }
   6176 
   6177 void sub_360B3AC0(void) {
   6178     int _fpu_cmp = 0;
   6179     uint32_t _cf = 0;
   6180     int _df = 1;
   6181     uint32_t _flag_k = FK_NONE;
   6182     uint32_t _flag_a = 0, _flag_b = 0;
   6183     uint32_t _itail_tgt = 0;
   6184     RECOMP_REGS_LOCALS
   6185     RECOMP_ENTER(0x360B3AC0u);
   6186 
   6187 L_360B3AC0:
   6188     MEM32(0x36306CFC) = 0x361B5814u; /* 0x360B3AC0: mov dword ptr [0x36306cfc], 0x361b5814 */
   6189     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3ACA: ret  */
   6190     RECOMP_REGS_OUT();
   6191 }
   6192 
   6193 void sub_360B3AD0(void) {
   6194     int _fpu_cmp = 0;
   6195     uint32_t _cf = 0;
   6196     int _df = 1;
   6197     uint32_t _flag_k = FK_NONE;
   6198     uint32_t _flag_a = 0, _flag_b = 0;
   6199     uint32_t _itail_tgt = 0;
   6200     RECOMP_REGS_LOCALS
   6201     RECOMP_ENTER(0x360B3AD0u);
   6202 
   6203 L_360B3AD0:
   6204     goto L_360B3AE0; /* 0x360B3AD0: jmp 0x360b3ae0 */
   6205 L_360B3AE0:
   6206     MEM32(0x36306CF8) = 0x361B5850u; /* 0x360B3AE0: mov dword ptr [0x36306cf8], 0x361b5850 */
   6207     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3AEA: ret  */
   6208     RECOMP_REGS_OUT();
   6209 }
   6210 
   6211 void sub_360B3AE0(void) {
   6212     int _fpu_cmp = 0;
   6213     uint32_t _cf = 0;
   6214     int _df = 1;
   6215     uint32_t _flag_k = FK_NONE;
   6216     uint32_t _flag_a = 0, _flag_b = 0;
   6217     uint32_t _itail_tgt = 0;
   6218     RECOMP_REGS_LOCALS
   6219     RECOMP_ENTER(0x360B3AE0u);
   6220 
   6221 L_360B3AE0:
   6222     MEM32(0x36306CF8) = 0x361B5850u; /* 0x360B3AE0: mov dword ptr [0x36306cf8], 0x361b5850 */
   6223     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3AEA: ret  */
   6224     RECOMP_REGS_OUT();
   6225 }
   6226 
   6227 void sub_360B3AF0(void) {
   6228     int _fpu_cmp = 0;
   6229     uint32_t _cf = 0;
   6230     int _df = 1;
   6231     uint32_t _flag_k = FK_NONE;
   6232     uint32_t _flag_a = 0, _flag_b = 0;
   6233     uint32_t _itail_tgt = 0;
   6234     RECOMP_REGS_LOCALS
   6235     RECOMP_ENTER(0x360B3AF0u);
   6236 
   6237 L_360B3AF0:
   6238     goto L_360B3B00; /* 0x360B3AF0: jmp 0x360b3b00 */
   6239 L_360B3B00:
   6240     MEM32(0x36306CF4) = 0x361B5888u; /* 0x360B3B00: mov dword ptr [0x36306cf4], 0x361b5888 */
   6241     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3B0A: ret  */
   6242     RECOMP_REGS_OUT();
   6243 }
   6244 
   6245 void sub_360B3B00(void) {
   6246     int _fpu_cmp = 0;
   6247     uint32_t _cf = 0;
   6248     int _df = 1;
   6249     uint32_t _flag_k = FK_NONE;
   6250     uint32_t _flag_a = 0, _flag_b = 0;
   6251     uint32_t _itail_tgt = 0;
   6252     RECOMP_REGS_LOCALS
   6253     RECOMP_ENTER(0x360B3B00u);
   6254 
   6255 L_360B3B00:
   6256     MEM32(0x36306CF4) = 0x361B5888u; /* 0x360B3B00: mov dword ptr [0x36306cf4], 0x361b5888 */
   6257     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B3B0A: ret  */
   6258     RECOMP_REGS_OUT();
   6259 }