aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0058.c (418823B)


      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_360C5D60(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(0x360C5D60u);
     17 
     18 L_360C5D60:
     19     PUSH32(esp, ebp); /* 0x360C5D60: push ebp */
     20     ebp = esp; /* 0x360C5D61: mov ebp, esp */
     21     PUSH32(esp, ecx); /* 0x360C5D63: push ecx */
     22     PUSH32(esp, ebx); /* 0x360C5D64: push ebx */
     23     ebx = MEM32(ebp + 0x8); /* 0x360C5D65: mov ebx, dword ptr [ebp + 8] */
     24     PUSH32(esp, edi); /* 0x360C5D68: push edi */
     25     edi = ecx; /* 0x360C5D69: mov edi, ecx */
     26     SET_LO8(ecx, MEM8(ebx + 0x19)); /* 0x360C5D6B: mov cl, byte ptr [ebx + 0x19] */
     27     /* test LO8(ecx), LO8(ecx) */ /* 0x360C5D6E: test cl, cl */
     28     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
     29     _cf = 0;
     30     _flag_k = FK_NARROW(FK_TEST, 24);
     31     eax = MEM32(edi + 0x8); /* 0x360C5D70: mov eax, dword ptr [edi + 8] */
     32     MEM32(ebp + (-0x4)) = eax; /* 0x360C5D73: mov dword ptr [ebp - 4], eax */
     33     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C5DE0; /* 0x360C5D76: jne 0x360c5de0 */
     34 L_360C5D78:
     35     SET_LO8(eax, MEM8(ebx + 0x18)); /* 0x360C5D78: mov al, byte ptr [ebx + 0x18] */
     36     PUSH32(esp, esi); /* 0x360C5D7B: push esi */
     37     PUSH32(esp, 0x1Cu); /* 0x360C5D7C: push 0x1c */
     38     MEM8(ebp + 0xB) = (uint8_t)(LO8(eax)); /* 0x360C5D7E: mov byte ptr [ebp + 0xb], al */
     39     RECOMP_ICALL(0x3615FD6Au); /* 0x360C5D81: call 0x3615fd6a */ /* not lifted */
     40     RECOMP_FLAGS_IN();
     41     ecx = MEM32(ebp + 0xC); /* 0x360C5D86: mov ecx, dword ptr [ebp + 0xc] */
     42     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x360C5D89: mov dl, byte ptr [ebp + 0xb] */
     43     esi = eax; /* 0x360C5D8C: mov esi, eax */
     44     eax = ebx + 0xC; /* 0x360C5D8E: lea eax, [ebx + 0xc] */
     45     MEM32(esi + 0x4) = ecx; /* 0x360C5D91: mov dword ptr [esi + 4], ecx */
     46     PUSH32(esp, eax); /* 0x360C5D94: push eax */
     47     ecx = esi + 0xC; /* 0x360C5D95: lea ecx, [esi + 0xc] */
     48     PUSH32(esp, ecx); /* 0x360C5D98: push ecx */
     49     MEM8(esi + 0x18) = (uint8_t)(LO8(edx)); /* 0x360C5D99: mov byte ptr [esi + 0x18], dl */
     50     MEM8(esi + 0x19) = (uint8_t)(0); /* 0x360C5D9C: mov byte ptr [esi + 0x19], 0 */
     51     RECOMP_ICALL(0x3603F860u); /* 0x360C5DA0: call 0x3603f860 */ /* not lifted */
     52     RECOMP_FLAGS_IN();
     53     edx = MEM32(edi + 0x8); /* 0x360C5DA5: mov edx, dword ptr [edi + 8] */
     54     ecx = MEM32(ebp + (-0x4)); /* 0x360C5DA8: mov ecx, dword ptr [ebp - 4] */
     55     MEM32(esi) = edx; /* 0x360C5DAB: mov dword ptr [esi], edx */
     56     eax = MEM32(edi + 0x8); /* 0x360C5DAD: mov eax, dword ptr [edi + 8] */
     57     MEM32(esi + 0x8) = eax; /* 0x360C5DB0: mov dword ptr [esi + 8], eax */
     58     eax = MEM32(edi + 0x8); /* 0x360C5DB3: mov eax, dword ptr [edi + 8] */
     59     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
     60     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     61     esp = esp + 0xCu; /* 0x360C5DB6: add esp, 0xc */
     62     _flag_k = FK_ADD;
     63     /* cmp ecx, eax */ /* 0x360C5DB9: cmp ecx, eax */
     64     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
     65     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     66     _flag_k = FK_CMP;
     67     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5DC0; /* 0x360C5DBB: jne 0x360c5dc0 */
     68 L_360C5DBD:
     69     MEM32(ebp + (-0x4)) = esi; /* 0x360C5DBD: mov dword ptr [ebp - 4], esi */
     70 L_360C5DC0:
     71     edx = MEM32(ebx); /* 0x360C5DC0: mov edx, dword ptr [ebx] */
     72     PUSH32(esp, esi); /* 0x360C5DC2: push esi */
     73     PUSH32(esp, edx); /* 0x360C5DC3: push edx */
     74     ecx = edi; /* 0x360C5DC4: mov ecx, edi */
     75     RECOMP_ICALL(0x360C5D60u); /* 0x360C5DC6: call 0x360c5d60 */ /* not lifted */
     76     RECOMP_FLAGS_IN();
     77     MEM32(esi) = eax; /* 0x360C5DCB: mov dword ptr [esi], eax */
     78     eax = MEM32(ebx + 0x8); /* 0x360C5DCD: mov eax, dword ptr [ebx + 8] */
     79     PUSH32(esp, esi); /* 0x360C5DD0: push esi */
     80     PUSH32(esp, eax); /* 0x360C5DD1: push eax */
     81     ecx = edi; /* 0x360C5DD2: mov ecx, edi */
     82     RECOMP_ICALL(0x360C5D60u); /* 0x360C5DD4: call 0x360c5d60 */ /* not lifted */
     83     RECOMP_FLAGS_IN();
     84     MEM32(esi + 0x8) = eax; /* 0x360C5DD9: mov dword ptr [esi + 8], eax */
     85     eax = MEM32(ebp + (-0x4)); /* 0x360C5DDC: mov eax, dword ptr [ebp - 4] */
     86     esi = POP32_VAL(esp); /* 0x360C5DDF: pop esi */
     87 L_360C5DE0:
     88     edi = POP32_VAL(esp); /* 0x360C5DE0: pop edi */
     89     ebx = POP32_VAL(esp); /* 0x360C5DE1: pop ebx */
     90     esp = ebp; /* 0x360C5DE2: mov esp, ebp */
     91     ebp = POP32_VAL(esp); /* 0x360C5DE4: pop ebp */
     92     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360C5DE5: ret 8 */
     93     RECOMP_REGS_OUT();
     94 }
     95 
     96 void sub_360C5DF0(void) {
     97     int _fpu_cmp = 0;
     98     uint32_t _cf = 0;
     99     int _df = 1;
    100     uint32_t _flag_k = FK_NONE;
    101     uint32_t _flag_a = 0, _flag_b = 0;
    102     uint32_t _itail_tgt = 0;
    103     RECOMP_REGS_LOCALS
    104     RECOMP_ENTER(0x360C5DF0u);
    105 
    106 L_360C5DF0:
    107     PUSH32(esp, ebp); /* 0x360C5DF0: push ebp */
    108     ebp = esp; /* 0x360C5DF1: mov ebp, esp */
    109     PUSH32(esp, ebx); /* 0x360C5DF3: push ebx */
    110     PUSH32(esp, esi); /* 0x360C5DF4: push esi */
    111     ebx = ecx; /* 0x360C5DF5: mov ebx, ecx */
    112     eax = MEM32(ebx + 0x8); /* 0x360C5DF7: mov eax, dword ptr [ebx + 8] */
    113     PUSH32(esp, edi); /* 0x360C5DFA: push edi */
    114     edi = MEM32(ebp + 0x8); /* 0x360C5DFB: mov edi, dword ptr [ebp + 8] */
    115     /* cmp edi, eax */ /* 0x360C5DFE: cmp edi, eax */
    116     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    118     _flag_k = FK_CMP;
    119     esi = edi; /* 0x360C5E00: mov esi, edi */
    120     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5E23; /* 0x360C5E02: je 0x360c5e23 */
    121 L_360C5E04:
    122     eax = MEM32(esi + 0x8); /* 0x360C5E04: mov eax, dword ptr [esi + 8] */
    123     PUSH32(esp, eax); /* 0x360C5E07: push eax */
    124     ecx = ebx; /* 0x360C5E08: mov ecx, ebx */
    125     RECOMP_ICALL(0x360C5DF0u); /* 0x360C5E0A: call 0x360c5df0 */ /* not lifted */
    126     RECOMP_FLAGS_IN();
    127     esi = MEM32(esi); /* 0x360C5E0F: mov esi, dword ptr [esi] */
    128     PUSH32(esp, edi); /* 0x360C5E11: push edi */
    129     RECOMP_ICALL(0x3615FCC4u); /* 0x360C5E12: call 0x3615fcc4 */ /* not lifted */
    130     RECOMP_FLAGS_IN();
    131     eax = MEM32(ebx + 0x8); /* 0x360C5E17: mov eax, dword ptr [ebx + 8] */
    132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    134     esp = esp + 4; /* 0x360C5E1A: add esp, 4 */
    135     _flag_k = FK_ADD;
    136     /* cmp esi, eax */ /* 0x360C5E1D: cmp esi, eax */
    137     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    139     _flag_k = FK_CMP;
    140     edi = esi; /* 0x360C5E1F: mov edi, esi */
    141     RECOMP_BACKEDGE();
    142     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5E04; /* 0x360C5E21: jne 0x360c5e04 */
    143 L_360C5E23:
    144     edi = POP32_VAL(esp); /* 0x360C5E23: pop edi */
    145     esi = POP32_VAL(esp); /* 0x360C5E24: pop esi */
    146     ebx = POP32_VAL(esp); /* 0x360C5E25: pop ebx */
    147     ebp = POP32_VAL(esp); /* 0x360C5E26: pop ebp */
    148     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C5E27: ret 4 */
    149     RECOMP_REGS_OUT();
    150 }
    151 
    152 void sub_360C5E30(void) {
    153     int _fpu_cmp = 0;
    154     uint32_t _cf = 0;
    155     int _df = 1;
    156     uint32_t _flag_k = FK_NONE;
    157     uint32_t _flag_a = 0, _flag_b = 0;
    158     uint32_t _itail_tgt = 0;
    159     RECOMP_REGS_LOCALS
    160     RECOMP_ENTER(0x360C5E30u);
    161 
    162 L_360C5E30:
    163     PUSH32(esp, ebp); /* 0x360C5E30: push ebp */
    164     ebp = esp; /* 0x360C5E31: mov ebp, esp */
    165     PUSH32(esp, ecx); /* 0x360C5E33: push ecx */
    166     PUSH32(esp, ebx); /* 0x360C5E34: push ebx */
    167     PUSH32(esp, esi); /* 0x360C5E35: push esi */
    168     PUSH32(esp, edi); /* 0x360C5E36: push edi */
    169     PUSH32(esp, 0x1Cu); /* 0x360C5E37: push 0x1c */
    170     esi = ecx; /* 0x360C5E39: mov esi, ecx */
    171     RECOMP_ICALL(0x3615FD6Au); /* 0x360C5E3B: call 0x3615fd6a */ /* not lifted */
    172     RECOMP_FLAGS_IN();
    173     edi = MEM32(ebp + 0x10); /* 0x360C5E40: mov edi, dword ptr [ebp + 0x10] */
    174     ebx = MEM32(ebp + 0x14); /* 0x360C5E43: mov ebx, dword ptr [ebp + 0x14] */
    175     MEM32(eax + 0x4) = edi; /* 0x360C5E46: mov dword ptr [eax + 4], edi */
    176     MEM8(eax + 0x18) = (uint8_t)(0); /* 0x360C5E49: mov byte ptr [eax + 0x18], 0 */
    177     MEM8(eax + 0x19) = (uint8_t)(0); /* 0x360C5E4D: mov byte ptr [eax + 0x19], 0 */
    178     ecx = MEM32(esi + 0x8); /* 0x360C5E51: mov ecx, dword ptr [esi + 8] */
    179     MEM32(eax) = ecx; /* 0x360C5E54: mov dword ptr [eax], ecx */
    180     edx = MEM32(esi + 0x8); /* 0x360C5E56: mov edx, dword ptr [esi + 8] */
    181     MEM32(ebp + (-0x4)) = eax; /* 0x360C5E59: mov dword ptr [ebp - 4], eax */
    182     MEM32(eax + 0x8) = edx; /* 0x360C5E5C: mov dword ptr [eax + 8], edx */
    183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
    184     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    185     eax = eax + 0xCu; /* 0x360C5E5F: add eax, 0xc */
    186     _flag_k = FK_ADD;
    187     PUSH32(esp, ebx); /* 0x360C5E62: push ebx */
    188     PUSH32(esp, eax); /* 0x360C5E63: push eax */
    189     RECOMP_ICALL(0x3603F860u); /* 0x360C5E64: call 0x3603f860 */ /* not lifted */
    190     RECOMP_FLAGS_IN();
    191     ecx = MEM32(esi + 0x10); /* 0x360C5E69: mov ecx, dword ptr [esi + 0x10] */
    192     eax = MEM32(esi + 0x4); /* 0x360C5E6C: mov eax, dword ptr [esi + 4] */
    193     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    194     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    195     esp = esp + 0xCu; /* 0x360C5E6F: add esp, 0xc */
    196     _flag_k = FK_ADD;
    197     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    198     ecx = ecx + 1; /* 0x360C5E72: inc ecx */
    199     _flag_k = FK_INC;
    200     /* cmp edi, eax */ /* 0x360C5E73: cmp edi, eax */
    201     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    202     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    203     _flag_k = FK_CMP;
    204     MEM32(esi + 0x10) = ecx; /* 0x360C5E75: mov dword ptr [esi + 0x10], ecx */
    205     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EA4; /* 0x360C5E78: je 0x360c5ea4 */
    206 L_360C5E7A:
    207     eax = MEM32(ebp + 0xC); /* 0x360C5E7A: mov eax, dword ptr [ebp + 0xc] */
    208     /* cmp eax, MEM32(esi + 0x8) */ /* 0x360C5E7D: cmp eax, dword ptr [esi + 8] */
    209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    210     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    211     _flag_k = FK_CMP;
    212     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5EA4; /* 0x360C5E80: jne 0x360c5ea4 */
    213 L_360C5E82:
    214     ecx = edi + 0xC; /* 0x360C5E82: lea ecx, [edi + 0xc] */
    215     PUSH32(esp, ecx); /* 0x360C5E85: push ecx */
    216     ecx = ebx; /* 0x360C5E86: mov ecx, ebx */
    217     RECOMP_ICALL(0x3603F770u); /* 0x360C5E88: call 0x3603f770 */ /* not lifted */
    218     RECOMP_FLAGS_IN();
    219     /* test LO8(eax), LO8(eax) */ /* 0x360C5E8D: test al, al */
    220     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    221     _cf = 0;
    222     _flag_k = FK_NARROW(FK_TEST, 24);
    223     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C5EA4; /* 0x360C5E8F: jne 0x360c5ea4 */
    224 L_360C5E91:
    225     ecx = MEM32(ebp + (-0x4)); /* 0x360C5E91: mov ecx, dword ptr [ebp - 4] */
    226     MEM32(edi + 0x8) = ecx; /* 0x360C5E94: mov dword ptr [edi + 8], ecx */
    227     eax = MEM32(esi + 0x4); /* 0x360C5E97: mov eax, dword ptr [esi + 4] */
    228     /* cmp edi, MEM32(eax + 0x8) */ /* 0x360C5E9A: cmp edi, dword ptr [eax + 8] */
    229     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    231     _flag_k = FK_CMP;
    232     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5EC4; /* 0x360C5E9D: jne 0x360c5ec4 */
    233 L_360C5E9F:
    234     MEM32(eax + 0x8) = ecx; /* 0x360C5E9F: mov dword ptr [eax + 8], ecx */
    235     goto L_360C5EC4; /* 0x360C5EA2: jmp 0x360c5ec4 */
    236 L_360C5EA4:
    237     ecx = MEM32(ebp + (-0x4)); /* 0x360C5EA4: mov ecx, dword ptr [ebp - 4] */
    238     MEM32(edi) = ecx; /* 0x360C5EA7: mov dword ptr [edi], ecx */
    239     eax = MEM32(esi + 0x4); /* 0x360C5EA9: mov eax, dword ptr [esi + 4] */
    240     /* cmp edi, eax */ /* 0x360C5EAC: cmp edi, eax */
    241     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    243     _flag_k = FK_CMP;
    244     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5EBB; /* 0x360C5EAE: jne 0x360c5ebb */
    245 L_360C5EB0:
    246     MEM32(eax + 0x4) = ecx; /* 0x360C5EB0: mov dword ptr [eax + 4], ecx */
    247     edx = MEM32(esi + 0x4); /* 0x360C5EB3: mov edx, dword ptr [esi + 4] */
    248     MEM32(edx + 0x8) = ecx; /* 0x360C5EB6: mov dword ptr [edx + 8], ecx */
    249     goto L_360C5EC4; /* 0x360C5EB9: jmp 0x360c5ec4 */
    250 L_360C5EBB:
    251     /* cmp edi, MEM32(eax) */ /* 0x360C5EBB: cmp edi, dword ptr [eax] */
    252     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
    253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    254     _flag_k = FK_CMP;
    255     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5EC4; /* 0x360C5EBD: jne 0x360c5ec4 */
    256 L_360C5EBF:
    257     ecx = MEM32(ebp + (-0x4)); /* 0x360C5EBF: mov ecx, dword ptr [ebp - 4] */
    258     MEM32(eax) = ecx; /* 0x360C5EC2: mov dword ptr [eax], ecx */
    259 L_360C5EC4:
    260     edx = MEM32(esi + 0x4); /* 0x360C5EC4: mov edx, dword ptr [esi + 4] */
    261     eax = MEM32(ebp + (-0x4)); /* 0x360C5EC7: mov eax, dword ptr [ebp - 4] */
    262     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5ECA: cmp eax, dword ptr [edx + 4] */
    263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    264     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    265     _flag_k = FK_CMP;
    266     SET_LO8(ebx, 1); /* 0x360C5ECD: mov bl, 1 */
    267     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5ECF: je 0x360c6055 */
    268 L_360C5ED5:
    269     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
    270     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
    271     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
    272     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    273     _cf = 0;
    274     _flag_k = FK_NARROW(FK_TEST, 24);
    275     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
    276 L_360C5EE3:
    277     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
    278     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
    279     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
    280     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    282     _flag_k = FK_CMP;
    283     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
    284 L_360C5EF0:
    285     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
    286     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
    287     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    288     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    289     _flag_k = FK_NARROW(FK_CMP, 24);
    290     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
    291 L_360C5EF9:
    292     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
    293     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
    294     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
    295     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
    296     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
    297     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
    298     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
    299     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
    300 L_360C5F14:
    301     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
    302     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    303     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    304     _flag_k = FK_CMP;
    305     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
    306 L_360C5F19:
    307     eax = ecx; /* 0x360C5F19: mov eax, ecx */
    308     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
    309     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
    310     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
    311     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
    312     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
    313     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    314     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    315     _flag_k = FK_CMP;
    316     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
    317 L_360C5F2A:
    318     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
    319 L_360C5F2D:
    320     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
    321     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
    322     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
    323     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
    324     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    325     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    326     _flag_k = FK_CMP;
    327     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
    328 L_360C5F3B:
    329     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
    330     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
    331 L_360C5F40:
    332     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
    333     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
    334     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    335     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    336     _flag_k = FK_CMP;
    337     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
    338 L_360C5F47:
    339     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
    340     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
    341 L_360C5F4B:
    342     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
    343 L_360C5F4E:
    344     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
    345     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
    346 L_360C5F53:
    347     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
    348     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
    349     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
    350     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
    351     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
    352     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
    353     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
    354     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
    355     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
    356     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
    357     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
    358     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
    359     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    361     _flag_k = FK_CMP;
    362     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
    363 L_360C5F78:
    364     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
    365 L_360C5F7B:
    366     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
    367     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
    368     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
    369     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
    370     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    371     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    372     _flag_k = FK_CMP;
    373     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
    374 L_360C5F89:
    375     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
    376     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
    377     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
    378 L_360C5F94:
    379     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
    380     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
    381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    383     _flag_k = FK_CMP;
    384     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
    385 L_360C5F9C:
    386     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
    387     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
    388     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
    389 L_360C5FA7:
    390     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
    391     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
    392     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
    393 L_360C5FB1:
    394     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
    395     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    397     _flag_k = FK_NARROW(FK_CMP, 24);
    398     RECOMP_BACKEDGE();
    399     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
    400 L_360C5FBB:
    401     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
    402     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
    403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    404     _flag_k = FK_CMP;
    405     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
    406 L_360C5FBF:
    407     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
    408     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
    409     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
    410     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
    411     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
    412     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
    413     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    414     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    415     _flag_k = FK_CMP;
    416     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
    417 L_360C5FD0:
    418     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
    419 L_360C5FD3:
    420     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
    421     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
    422     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
    423     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
    424     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    426     _flag_k = FK_CMP;
    427     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
    428 L_360C5FE1:
    429     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
    430     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
    431 L_360C5FE6:
    432     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
    433     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
    434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
    435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    436     _flag_k = FK_CMP;
    437     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
    438 L_360C5FEE:
    439     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
    440     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
    441 L_360C5FF3:
    442     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
    443 L_360C5FF5:
    444     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
    445     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
    446 L_360C5FFB:
    447     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
    448     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
    449     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
    450     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
    451     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
    452     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
    453     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
    454     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
    455     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
    456     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
    457     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
    458     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
    459     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    460     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    461     _flag_k = FK_CMP;
    462     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
    463 L_360C6020:
    464     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
    465 L_360C6023:
    466     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
    467     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
    468     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
    469     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
    470     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    471     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    472     _flag_k = FK_CMP;
    473     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
    474 L_360C6031:
    475     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
    476     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
    477 L_360C6036:
    478     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
    479     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
    480     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
    481     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    482     _flag_k = FK_CMP;
    483     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
    484 L_360C603D:
    485     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
    486     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
    487 L_360C6041:
    488     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
    489 L_360C6044:
    490     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
    491 L_360C6046:
    492     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
    493 L_360C6049:
    494     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
    495     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
    496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    498     _flag_k = FK_CMP;
    499     RECOMP_BACKEDGE();
    500     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
    501 L_360C6055:
    502     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
    503     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
    504     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
    505     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
    506     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
    507     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
    508     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
    509     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
    510     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
    511     esp = ebp; /* 0x360C6069: mov esp, ebp */
    512     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
    513     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
    514     RECOMP_REGS_OUT();
    515 }
    516 
    517 void sub_360C5ED5(void) {
    518     int _fpu_cmp = 0;
    519     uint32_t _cf = 0;
    520     int _df = 1;
    521     uint32_t _flag_k = FK_NONE;
    522     uint32_t _flag_a = 0, _flag_b = 0;
    523     uint32_t _itail_tgt = 0;
    524     RECOMP_REGS_LOCALS
    525     RECOMP_ENTER(0x360C5ED5u);
    526 
    527 L_360C5ED5:
    528     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
    529     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
    530     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
    531     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    532     _cf = 0;
    533     _flag_k = FK_NARROW(FK_TEST, 24);
    534     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
    535 L_360C5EE3:
    536     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
    537     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
    538     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
    539     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    541     _flag_k = FK_CMP;
    542     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
    543 L_360C5EF0:
    544     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
    545     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
    546     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    547     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    548     _flag_k = FK_NARROW(FK_CMP, 24);
    549     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
    550 L_360C5EF9:
    551     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
    552     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
    553     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
    554     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
    555     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
    556     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
    557     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
    558     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
    559 L_360C5F14:
    560     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
    561     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    563     _flag_k = FK_CMP;
    564     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
    565 L_360C5F19:
    566     eax = ecx; /* 0x360C5F19: mov eax, ecx */
    567     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
    568     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
    569     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
    570     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
    571     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
    572     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    574     _flag_k = FK_CMP;
    575     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
    576 L_360C5F2A:
    577     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
    578 L_360C5F2D:
    579     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
    580     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
    581     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
    582     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
    583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    585     _flag_k = FK_CMP;
    586     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
    587 L_360C5F3B:
    588     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
    589     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
    590 L_360C5F40:
    591     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
    592     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
    593     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    594     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    595     _flag_k = FK_CMP;
    596     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
    597 L_360C5F47:
    598     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
    599     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
    600 L_360C5F4B:
    601     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
    602 L_360C5F4E:
    603     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
    604     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
    605 L_360C5F53:
    606     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
    607     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
    608     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
    609     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
    610     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
    611     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
    612     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
    613     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
    614     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
    615     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
    616     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
    617     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
    618     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    619     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    620     _flag_k = FK_CMP;
    621     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
    622 L_360C5F78:
    623     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
    624 L_360C5F7B:
    625     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
    626     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
    627     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
    628     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
    629     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    631     _flag_k = FK_CMP;
    632     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
    633 L_360C5F89:
    634     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
    635     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
    636     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
    637 L_360C5F94:
    638     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
    639     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
    640     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    641     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    642     _flag_k = FK_CMP;
    643     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
    644 L_360C5F9C:
    645     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
    646     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
    647     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
    648 L_360C5FA7:
    649     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
    650     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
    651     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
    652 L_360C5FB1:
    653     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
    654     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    656     _flag_k = FK_NARROW(FK_CMP, 24);
    657     RECOMP_BACKEDGE();
    658     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
    659 L_360C5FBB:
    660     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
    661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
    662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    663     _flag_k = FK_CMP;
    664     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
    665 L_360C5FBF:
    666     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
    667     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
    668     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
    669     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
    670     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
    671     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
    672     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    674     _flag_k = FK_CMP;
    675     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
    676 L_360C5FD0:
    677     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
    678 L_360C5FD3:
    679     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
    680     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
    681     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
    682     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
    683     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    685     _flag_k = FK_CMP;
    686     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
    687 L_360C5FE1:
    688     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
    689     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
    690 L_360C5FE6:
    691     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
    692     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
    693     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
    694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    695     _flag_k = FK_CMP;
    696     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
    697 L_360C5FEE:
    698     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
    699     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
    700 L_360C5FF3:
    701     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
    702 L_360C5FF5:
    703     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
    704     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
    705 L_360C5FFB:
    706     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
    707     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
    708     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
    709     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
    710     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
    711     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
    712     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
    713     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
    714     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
    715     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
    716     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
    717     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
    718     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    719     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    720     _flag_k = FK_CMP;
    721     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
    722 L_360C6020:
    723     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
    724 L_360C6023:
    725     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
    726     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
    727     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
    728     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
    729     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    731     _flag_k = FK_CMP;
    732     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
    733 L_360C6031:
    734     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
    735     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
    736 L_360C6036:
    737     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
    738     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
    739     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
    740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    741     _flag_k = FK_CMP;
    742     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
    743 L_360C603D:
    744     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
    745     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
    746 L_360C6041:
    747     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
    748 L_360C6044:
    749     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
    750 L_360C6046:
    751     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
    752 L_360C6049:
    753     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
    754     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
    755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    757     _flag_k = FK_CMP;
    758     RECOMP_BACKEDGE();
    759     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
    760 L_360C6055:
    761     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
    762     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
    763     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
    764     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
    765     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
    766     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
    767     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
    768     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
    769     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
    770     esp = ebp; /* 0x360C6069: mov esp, ebp */
    771     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
    772     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
    773     RECOMP_REGS_OUT();
    774 }
    775 
    776 void sub_360C5EF9(void) {
    777     int _fpu_cmp = 0;
    778     uint32_t _cf = 0;
    779     int _df = 1;
    780     uint32_t _flag_k = FK_NONE;
    781     uint32_t _flag_a = 0, _flag_b = 0;
    782     uint32_t _itail_tgt = 0;
    783     RECOMP_REGS_LOCALS
    784     RECOMP_ENTER(0x360C5EF9u);
    785 
    786     goto L_360C5EF9;
    787 L_360C5ED5:
    788     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
    789     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
    790     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
    791     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
    792     _cf = 0;
    793     _flag_k = FK_NARROW(FK_TEST, 24);
    794     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
    795 L_360C5EE3:
    796     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
    797     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
    798     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
    799     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
    800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    801     _flag_k = FK_CMP;
    802     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
    803 L_360C5EF0:
    804     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
    805     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
    806     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    808     _flag_k = FK_NARROW(FK_CMP, 24);
    809     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
    810 L_360C5EF9:
    811     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
    812     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
    813     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
    814     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
    815     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
    816     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
    817     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
    818     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
    819 L_360C5F14:
    820     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
    821     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
    822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    823     _flag_k = FK_CMP;
    824     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
    825 L_360C5F19:
    826     eax = ecx; /* 0x360C5F19: mov eax, ecx */
    827     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
    828     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
    829     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
    830     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
    831     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
    832     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    834     _flag_k = FK_CMP;
    835     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
    836 L_360C5F2A:
    837     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
    838 L_360C5F2D:
    839     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
    840     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
    841     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
    842     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
    843     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    845     _flag_k = FK_CMP;
    846     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
    847 L_360C5F3B:
    848     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
    849     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
    850 L_360C5F40:
    851     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
    852     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
    853     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
    854     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    855     _flag_k = FK_CMP;
    856     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
    857 L_360C5F47:
    858     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
    859     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
    860 L_360C5F4B:
    861     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
    862 L_360C5F4E:
    863     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
    864     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
    865 L_360C5F53:
    866     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
    867     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
    868     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
    869     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
    870     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
    871     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
    872     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
    873     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
    874     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
    875     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
    876     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
    877     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
    878     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    880     _flag_k = FK_CMP;
    881     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
    882 L_360C5F78:
    883     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
    884 L_360C5F7B:
    885     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
    886     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
    887     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
    888     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
    889     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    890     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    891     _flag_k = FK_CMP;
    892     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
    893 L_360C5F89:
    894     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
    895     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
    896     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
    897 L_360C5F94:
    898     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
    899     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
    900     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
    901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    902     _flag_k = FK_CMP;
    903     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
    904 L_360C5F9C:
    905     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
    906     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
    907     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
    908 L_360C5FA7:
    909     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
    910     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
    911     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
    912 L_360C5FB1:
    913     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
    914     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
    915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    916     _flag_k = FK_NARROW(FK_CMP, 24);
    917     RECOMP_BACKEDGE();
    918     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
    919 L_360C5FBB:
    920     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
    921     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
    922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    923     _flag_k = FK_CMP;
    924     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
    925 L_360C5FBF:
    926     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
    927     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
    928     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
    929     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
    930     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
    931     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
    932     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    934     _flag_k = FK_CMP;
    935     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
    936 L_360C5FD0:
    937     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
    938 L_360C5FD3:
    939     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
    940     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
    941     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
    942     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
    943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
    944     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    945     _flag_k = FK_CMP;
    946     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
    947 L_360C5FE1:
    948     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
    949     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
    950 L_360C5FE6:
    951     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
    952     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
    953     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
    954     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    955     _flag_k = FK_CMP;
    956     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
    957 L_360C5FEE:
    958     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
    959     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
    960 L_360C5FF3:
    961     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
    962 L_360C5FF5:
    963     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
    964     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
    965 L_360C5FFB:
    966     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
    967     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
    968     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
    969     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
    970     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
    971     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
    972     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
    973     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
    974     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
    975     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
    976     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
    977     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
    978     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    980     _flag_k = FK_CMP;
    981     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
    982 L_360C6020:
    983     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
    984 L_360C6023:
    985     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
    986     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
    987     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
    988     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
    989     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
    990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    991     _flag_k = FK_CMP;
    992     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
    993 L_360C6031:
    994     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
    995     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
    996 L_360C6036:
    997     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
    998     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
    999     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1000     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1001     _flag_k = FK_CMP;
   1002     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   1003 L_360C603D:
   1004     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   1005     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   1006 L_360C6041:
   1007     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   1008 L_360C6044:
   1009     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   1010 L_360C6046:
   1011     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   1012 L_360C6049:
   1013     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   1014     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   1015     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1016     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1017     _flag_k = FK_CMP;
   1018     RECOMP_BACKEDGE();
   1019     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   1020 L_360C6055:
   1021     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   1022     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   1023     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   1024     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   1025     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   1026     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   1027     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   1028     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   1029     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   1030     esp = ebp; /* 0x360C6069: mov esp, ebp */
   1031     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   1032     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   1033     RECOMP_REGS_OUT();
   1034 }
   1035 
   1036 void sub_360C5F4E(void) {
   1037     int _fpu_cmp = 0;
   1038     uint32_t _cf = 0;
   1039     int _df = 1;
   1040     uint32_t _flag_k = FK_NONE;
   1041     uint32_t _flag_a = 0, _flag_b = 0;
   1042     uint32_t _itail_tgt = 0;
   1043     RECOMP_REGS_LOCALS
   1044     RECOMP_ENTER(0x360C5F4Eu);
   1045 
   1046     goto L_360C5F4E;
   1047 L_360C5ED5:
   1048     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   1049     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   1050     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   1051     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1052     _cf = 0;
   1053     _flag_k = FK_NARROW(FK_TEST, 24);
   1054     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   1055 L_360C5EE3:
   1056     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   1057     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   1058     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   1059     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1061     _flag_k = FK_CMP;
   1062     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   1063 L_360C5EF0:
   1064     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   1065     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   1066     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1067     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1068     _flag_k = FK_NARROW(FK_CMP, 24);
   1069     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   1070 L_360C5EF9:
   1071     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   1072     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   1073     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   1074     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   1075     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   1076     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   1077     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   1078     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   1079 L_360C5F14:
   1080     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   1081     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1083     _flag_k = FK_CMP;
   1084     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   1085 L_360C5F19:
   1086     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   1087     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   1088     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   1089     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   1090     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   1091     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   1092     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1094     _flag_k = FK_CMP;
   1095     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   1096 L_360C5F2A:
   1097     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   1098 L_360C5F2D:
   1099     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   1100     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   1101     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   1102     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   1103     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1105     _flag_k = FK_CMP;
   1106     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   1107 L_360C5F3B:
   1108     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   1109     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   1110 L_360C5F40:
   1111     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   1112     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   1113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1115     _flag_k = FK_CMP;
   1116     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   1117 L_360C5F47:
   1118     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   1119     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   1120 L_360C5F4B:
   1121     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   1122 L_360C5F4E:
   1123     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   1124     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   1125 L_360C5F53:
   1126     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   1127     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   1128     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   1129     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   1130     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   1131     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   1132     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   1133     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   1134     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   1135     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   1136     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   1137     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   1138     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1140     _flag_k = FK_CMP;
   1141     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   1142 L_360C5F78:
   1143     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   1144 L_360C5F7B:
   1145     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   1146     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   1147     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   1148     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   1149     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1150     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1151     _flag_k = FK_CMP;
   1152     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   1153 L_360C5F89:
   1154     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   1155     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   1156     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   1157 L_360C5F94:
   1158     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   1159     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   1160     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1161     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1162     _flag_k = FK_CMP;
   1163     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   1164 L_360C5F9C:
   1165     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   1166     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   1167     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   1168 L_360C5FA7:
   1169     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   1170     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   1171     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   1172 L_360C5FB1:
   1173     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   1174     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1175     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1176     _flag_k = FK_NARROW(FK_CMP, 24);
   1177     RECOMP_BACKEDGE();
   1178     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   1179 L_360C5FBB:
   1180     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   1181     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1183     _flag_k = FK_CMP;
   1184     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   1185 L_360C5FBF:
   1186     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   1187     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   1188     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   1189     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   1190     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   1191     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   1192     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1193     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1194     _flag_k = FK_CMP;
   1195     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   1196 L_360C5FD0:
   1197     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   1198 L_360C5FD3:
   1199     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   1200     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   1201     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   1202     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   1203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1204     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1205     _flag_k = FK_CMP;
   1206     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   1207 L_360C5FE1:
   1208     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   1209     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   1210 L_360C5FE6:
   1211     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   1212     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   1213     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1215     _flag_k = FK_CMP;
   1216     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   1217 L_360C5FEE:
   1218     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   1219     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   1220 L_360C5FF3:
   1221     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   1222 L_360C5FF5:
   1223     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   1224     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   1225 L_360C5FFB:
   1226     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   1227     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   1228     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   1229     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   1230     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   1231     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   1232     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   1233     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   1234     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   1235     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   1236     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   1237     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   1238     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1239     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1240     _flag_k = FK_CMP;
   1241     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   1242 L_360C6020:
   1243     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   1244 L_360C6023:
   1245     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   1246     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   1247     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   1248     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   1249     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1250     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1251     _flag_k = FK_CMP;
   1252     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   1253 L_360C6031:
   1254     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   1255     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   1256 L_360C6036:
   1257     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   1258     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   1259     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1260     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1261     _flag_k = FK_CMP;
   1262     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   1263 L_360C603D:
   1264     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   1265     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   1266 L_360C6041:
   1267     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   1268 L_360C6044:
   1269     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   1270 L_360C6046:
   1271     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   1272 L_360C6049:
   1273     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   1274     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   1275     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1277     _flag_k = FK_CMP;
   1278     RECOMP_BACKEDGE();
   1279     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   1280 L_360C6055:
   1281     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   1282     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   1283     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   1284     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   1285     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   1286     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   1287     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   1288     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   1289     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   1290     esp = ebp; /* 0x360C6069: mov esp, ebp */
   1291     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   1292     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   1293     RECOMP_REGS_OUT();
   1294 }
   1295 
   1296 void sub_360C5F53(void) {
   1297     int _fpu_cmp = 0;
   1298     uint32_t _cf = 0;
   1299     int _df = 1;
   1300     uint32_t _flag_k = FK_NONE;
   1301     uint32_t _flag_a = 0, _flag_b = 0;
   1302     uint32_t _itail_tgt = 0;
   1303     RECOMP_REGS_LOCALS
   1304     RECOMP_ENTER(0x360C5F53u);
   1305 
   1306     goto L_360C5F53;
   1307 L_360C5ED5:
   1308     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   1309     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   1310     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   1311     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1312     _cf = 0;
   1313     _flag_k = FK_NARROW(FK_TEST, 24);
   1314     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   1315 L_360C5EE3:
   1316     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   1317     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   1318     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   1319     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1321     _flag_k = FK_CMP;
   1322     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   1323 L_360C5EF0:
   1324     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   1325     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   1326     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1328     _flag_k = FK_NARROW(FK_CMP, 24);
   1329     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   1330 L_360C5EF9:
   1331     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   1332     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   1333     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   1334     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   1335     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   1336     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   1337     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   1338     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   1339 L_360C5F14:
   1340     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   1341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1343     _flag_k = FK_CMP;
   1344     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   1345 L_360C5F19:
   1346     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   1347     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   1348     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   1349     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   1350     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   1351     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   1352     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1354     _flag_k = FK_CMP;
   1355     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   1356 L_360C5F2A:
   1357     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   1358 L_360C5F2D:
   1359     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   1360     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   1361     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   1362     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   1363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1365     _flag_k = FK_CMP;
   1366     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   1367 L_360C5F3B:
   1368     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   1369     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   1370 L_360C5F40:
   1371     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   1372     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   1373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1375     _flag_k = FK_CMP;
   1376     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   1377 L_360C5F47:
   1378     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   1379     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   1380 L_360C5F4B:
   1381     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   1382 L_360C5F4E:
   1383     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   1384     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   1385 L_360C5F53:
   1386     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   1387     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   1388     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   1389     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   1390     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   1391     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   1392     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   1393     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   1394     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   1395     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   1396     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   1397     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   1398     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1400     _flag_k = FK_CMP;
   1401     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   1402 L_360C5F78:
   1403     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   1404 L_360C5F7B:
   1405     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   1406     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   1407     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   1408     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   1409     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1411     _flag_k = FK_CMP;
   1412     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   1413 L_360C5F89:
   1414     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   1415     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   1416     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   1417 L_360C5F94:
   1418     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   1419     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   1420     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1422     _flag_k = FK_CMP;
   1423     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   1424 L_360C5F9C:
   1425     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   1426     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   1427     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   1428 L_360C5FA7:
   1429     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   1430     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   1431     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   1432 L_360C5FB1:
   1433     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   1434     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1436     _flag_k = FK_NARROW(FK_CMP, 24);
   1437     RECOMP_BACKEDGE();
   1438     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   1439 L_360C5FBB:
   1440     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   1441     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1443     _flag_k = FK_CMP;
   1444     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   1445 L_360C5FBF:
   1446     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   1447     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   1448     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   1449     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   1450     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   1451     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   1452     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1453     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1454     _flag_k = FK_CMP;
   1455     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   1456 L_360C5FD0:
   1457     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   1458 L_360C5FD3:
   1459     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   1460     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   1461     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   1462     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   1463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1465     _flag_k = FK_CMP;
   1466     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   1467 L_360C5FE1:
   1468     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   1469     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   1470 L_360C5FE6:
   1471     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   1472     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   1473     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1474     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1475     _flag_k = FK_CMP;
   1476     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   1477 L_360C5FEE:
   1478     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   1479     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   1480 L_360C5FF3:
   1481     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   1482 L_360C5FF5:
   1483     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   1484     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   1485 L_360C5FFB:
   1486     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   1487     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   1488     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   1489     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   1490     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   1491     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   1492     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   1493     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   1494     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   1495     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   1496     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   1497     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   1498     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1500     _flag_k = FK_CMP;
   1501     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   1502 L_360C6020:
   1503     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   1504 L_360C6023:
   1505     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   1506     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   1507     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   1508     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   1509     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1511     _flag_k = FK_CMP;
   1512     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   1513 L_360C6031:
   1514     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   1515     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   1516 L_360C6036:
   1517     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   1518     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   1519     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1520     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1521     _flag_k = FK_CMP;
   1522     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   1523 L_360C603D:
   1524     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   1525     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   1526 L_360C6041:
   1527     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   1528 L_360C6044:
   1529     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   1530 L_360C6046:
   1531     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   1532 L_360C6049:
   1533     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   1534     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   1535     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1537     _flag_k = FK_CMP;
   1538     RECOMP_BACKEDGE();
   1539     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   1540 L_360C6055:
   1541     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   1542     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   1543     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   1544     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   1545     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   1546     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   1547     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   1548     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   1549     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   1550     esp = ebp; /* 0x360C6069: mov esp, ebp */
   1551     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   1552     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   1553     RECOMP_REGS_OUT();
   1554 }
   1555 
   1556 void sub_360C5FB1(void) {
   1557     int _fpu_cmp = 0;
   1558     uint32_t _cf = 0;
   1559     int _df = 1;
   1560     uint32_t _flag_k = FK_NONE;
   1561     uint32_t _flag_a = 0, _flag_b = 0;
   1562     uint32_t _itail_tgt = 0;
   1563     RECOMP_REGS_LOCALS
   1564     RECOMP_ENTER(0x360C5FB1u);
   1565 
   1566     goto L_360C5FB1;
   1567 L_360C5ED5:
   1568     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   1569     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   1570     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   1571     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1572     _cf = 0;
   1573     _flag_k = FK_NARROW(FK_TEST, 24);
   1574     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   1575 L_360C5EE3:
   1576     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   1577     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   1578     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   1579     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1580     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1581     _flag_k = FK_CMP;
   1582     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   1583 L_360C5EF0:
   1584     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   1585     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   1586     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1588     _flag_k = FK_NARROW(FK_CMP, 24);
   1589     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   1590 L_360C5EF9:
   1591     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   1592     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   1593     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   1594     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   1595     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   1596     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   1597     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   1598     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   1599 L_360C5F14:
   1600     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   1601     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1603     _flag_k = FK_CMP;
   1604     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   1605 L_360C5F19:
   1606     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   1607     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   1608     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   1609     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   1610     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   1611     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   1612     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1614     _flag_k = FK_CMP;
   1615     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   1616 L_360C5F2A:
   1617     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   1618 L_360C5F2D:
   1619     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   1620     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   1621     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   1622     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   1623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1625     _flag_k = FK_CMP;
   1626     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   1627 L_360C5F3B:
   1628     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   1629     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   1630 L_360C5F40:
   1631     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   1632     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   1633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1635     _flag_k = FK_CMP;
   1636     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   1637 L_360C5F47:
   1638     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   1639     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   1640 L_360C5F4B:
   1641     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   1642 L_360C5F4E:
   1643     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   1644     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   1645 L_360C5F53:
   1646     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   1647     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   1648     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   1649     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   1650     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   1651     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   1652     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   1653     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   1654     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   1655     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   1656     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   1657     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   1658     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1660     _flag_k = FK_CMP;
   1661     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   1662 L_360C5F78:
   1663     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   1664 L_360C5F7B:
   1665     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   1666     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   1667     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   1668     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   1669     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1671     _flag_k = FK_CMP;
   1672     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   1673 L_360C5F89:
   1674     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   1675     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   1676     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   1677 L_360C5F94:
   1678     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   1679     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   1680     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1682     _flag_k = FK_CMP;
   1683     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   1684 L_360C5F9C:
   1685     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   1686     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   1687     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   1688 L_360C5FA7:
   1689     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   1690     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   1691     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   1692 L_360C5FB1:
   1693     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   1694     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1695     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1696     _flag_k = FK_NARROW(FK_CMP, 24);
   1697     RECOMP_BACKEDGE();
   1698     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   1699 L_360C5FBB:
   1700     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   1701     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1703     _flag_k = FK_CMP;
   1704     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   1705 L_360C5FBF:
   1706     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   1707     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   1708     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   1709     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   1710     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   1711     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   1712     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1713     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1714     _flag_k = FK_CMP;
   1715     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   1716 L_360C5FD0:
   1717     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   1718 L_360C5FD3:
   1719     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   1720     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   1721     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   1722     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   1723     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1724     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1725     _flag_k = FK_CMP;
   1726     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   1727 L_360C5FE1:
   1728     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   1729     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   1730 L_360C5FE6:
   1731     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   1732     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   1733     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1734     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1735     _flag_k = FK_CMP;
   1736     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   1737 L_360C5FEE:
   1738     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   1739     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   1740 L_360C5FF3:
   1741     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   1742 L_360C5FF5:
   1743     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   1744     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   1745 L_360C5FFB:
   1746     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   1747     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   1748     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   1749     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   1750     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   1751     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   1752     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   1753     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   1754     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   1755     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   1756     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   1757     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   1758     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1759     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1760     _flag_k = FK_CMP;
   1761     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   1762 L_360C6020:
   1763     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   1764 L_360C6023:
   1765     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   1766     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   1767     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   1768     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   1769     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1771     _flag_k = FK_CMP;
   1772     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   1773 L_360C6031:
   1774     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   1775     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   1776 L_360C6036:
   1777     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   1778     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   1779     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   1780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1781     _flag_k = FK_CMP;
   1782     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   1783 L_360C603D:
   1784     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   1785     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   1786 L_360C6041:
   1787     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   1788 L_360C6044:
   1789     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   1790 L_360C6046:
   1791     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   1792 L_360C6049:
   1793     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   1794     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   1795     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1796     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1797     _flag_k = FK_CMP;
   1798     RECOMP_BACKEDGE();
   1799     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   1800 L_360C6055:
   1801     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   1802     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   1803     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   1804     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   1805     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   1806     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   1807     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   1808     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   1809     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   1810     esp = ebp; /* 0x360C6069: mov esp, ebp */
   1811     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   1812     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   1813     RECOMP_REGS_OUT();
   1814 }
   1815 
   1816 void sub_360C5FF5(void) {
   1817     int _fpu_cmp = 0;
   1818     uint32_t _cf = 0;
   1819     int _df = 1;
   1820     uint32_t _flag_k = FK_NONE;
   1821     uint32_t _flag_a = 0, _flag_b = 0;
   1822     uint32_t _itail_tgt = 0;
   1823     RECOMP_REGS_LOCALS
   1824     RECOMP_ENTER(0x360C5FF5u);
   1825 
   1826     goto L_360C5FF5;
   1827 L_360C5ED5:
   1828     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   1829     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   1830     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   1831     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   1832     _cf = 0;
   1833     _flag_k = FK_NARROW(FK_TEST, 24);
   1834     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   1835 L_360C5EE3:
   1836     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   1837     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   1838     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   1839     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1841     _flag_k = FK_CMP;
   1842     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   1843 L_360C5EF0:
   1844     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   1845     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   1846     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1848     _flag_k = FK_NARROW(FK_CMP, 24);
   1849     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   1850 L_360C5EF9:
   1851     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   1852     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   1853     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   1854     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   1855     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   1856     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   1857     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   1858     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   1859 L_360C5F14:
   1860     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   1861     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   1862     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1863     _flag_k = FK_CMP;
   1864     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   1865 L_360C5F19:
   1866     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   1867     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   1868     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   1869     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   1870     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   1871     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   1872     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1873     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1874     _flag_k = FK_CMP;
   1875     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   1876 L_360C5F2A:
   1877     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   1878 L_360C5F2D:
   1879     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   1880     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   1881     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   1882     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   1883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1885     _flag_k = FK_CMP;
   1886     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   1887 L_360C5F3B:
   1888     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   1889     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   1890 L_360C5F40:
   1891     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   1892     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   1893     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   1894     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1895     _flag_k = FK_CMP;
   1896     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   1897 L_360C5F47:
   1898     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   1899     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   1900 L_360C5F4B:
   1901     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   1902 L_360C5F4E:
   1903     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   1904     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   1905 L_360C5F53:
   1906     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   1907     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   1908     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   1909     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   1910     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   1911     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   1912     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   1913     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   1914     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   1915     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   1916     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   1917     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   1918     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1920     _flag_k = FK_CMP;
   1921     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   1922 L_360C5F78:
   1923     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   1924 L_360C5F7B:
   1925     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   1926     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   1927     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   1928     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   1929     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1931     _flag_k = FK_CMP;
   1932     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   1933 L_360C5F89:
   1934     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   1935     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   1936     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   1937 L_360C5F94:
   1938     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   1939     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   1940     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   1941     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1942     _flag_k = FK_CMP;
   1943     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   1944 L_360C5F9C:
   1945     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   1946     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   1947     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   1948 L_360C5FA7:
   1949     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   1950     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   1951     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   1952 L_360C5FB1:
   1953     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   1954     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   1955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1956     _flag_k = FK_NARROW(FK_CMP, 24);
   1957     RECOMP_BACKEDGE();
   1958     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   1959 L_360C5FBB:
   1960     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   1961     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   1962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1963     _flag_k = FK_CMP;
   1964     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   1965 L_360C5FBF:
   1966     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   1967     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   1968     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   1969     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   1970     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   1971     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   1972     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1974     _flag_k = FK_CMP;
   1975     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   1976 L_360C5FD0:
   1977     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   1978 L_360C5FD3:
   1979     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   1980     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   1981     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   1982     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   1983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   1984     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1985     _flag_k = FK_CMP;
   1986     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   1987 L_360C5FE1:
   1988     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   1989     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   1990 L_360C5FE6:
   1991     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   1992     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   1993     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   1994     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1995     _flag_k = FK_CMP;
   1996     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   1997 L_360C5FEE:
   1998     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   1999     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   2000 L_360C5FF3:
   2001     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   2002 L_360C5FF5:
   2003     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   2004     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   2005 L_360C5FFB:
   2006     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   2007     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   2008     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   2009     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   2010     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   2011     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   2012     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   2013     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   2014     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   2015     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   2016     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   2017     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   2018     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2020     _flag_k = FK_CMP;
   2021     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   2022 L_360C6020:
   2023     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   2024 L_360C6023:
   2025     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   2026     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   2027     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   2028     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   2029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2031     _flag_k = FK_CMP;
   2032     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   2033 L_360C6031:
   2034     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   2035     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   2036 L_360C6036:
   2037     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   2038     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   2039     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2040     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2041     _flag_k = FK_CMP;
   2042     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   2043 L_360C603D:
   2044     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   2045     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   2046 L_360C6041:
   2047     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   2048 L_360C6044:
   2049     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   2050 L_360C6046:
   2051     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   2052 L_360C6049:
   2053     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   2054     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   2055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2056     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2057     _flag_k = FK_CMP;
   2058     RECOMP_BACKEDGE();
   2059     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   2060 L_360C6055:
   2061     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   2062     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   2063     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   2064     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   2065     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   2066     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   2067     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   2068     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   2069     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   2070     esp = ebp; /* 0x360C6069: mov esp, ebp */
   2071     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   2072     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   2073     RECOMP_REGS_OUT();
   2074 }
   2075 
   2076 void sub_360C5FFB(void) {
   2077     int _fpu_cmp = 0;
   2078     uint32_t _cf = 0;
   2079     int _df = 1;
   2080     uint32_t _flag_k = FK_NONE;
   2081     uint32_t _flag_a = 0, _flag_b = 0;
   2082     uint32_t _itail_tgt = 0;
   2083     RECOMP_REGS_LOCALS
   2084     RECOMP_ENTER(0x360C5FFBu);
   2085 
   2086     goto L_360C5FFB;
   2087 L_360C5ED5:
   2088     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   2089     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   2090     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   2091     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2092     _cf = 0;
   2093     _flag_k = FK_NARROW(FK_TEST, 24);
   2094     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   2095 L_360C5EE3:
   2096     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   2097     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   2098     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   2099     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2101     _flag_k = FK_CMP;
   2102     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   2103 L_360C5EF0:
   2104     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   2105     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   2106     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2108     _flag_k = FK_NARROW(FK_CMP, 24);
   2109     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   2110 L_360C5EF9:
   2111     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   2112     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   2113     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   2114     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   2115     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   2116     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   2117     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   2118     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   2119 L_360C5F14:
   2120     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   2121     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2122     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2123     _flag_k = FK_CMP;
   2124     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   2125 L_360C5F19:
   2126     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   2127     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   2128     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   2129     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   2130     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   2131     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   2132     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2133     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2134     _flag_k = FK_CMP;
   2135     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   2136 L_360C5F2A:
   2137     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   2138 L_360C5F2D:
   2139     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   2140     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   2141     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   2142     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   2143     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2145     _flag_k = FK_CMP;
   2146     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   2147 L_360C5F3B:
   2148     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   2149     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   2150 L_360C5F40:
   2151     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   2152     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   2153     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2154     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2155     _flag_k = FK_CMP;
   2156     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   2157 L_360C5F47:
   2158     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   2159     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   2160 L_360C5F4B:
   2161     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   2162 L_360C5F4E:
   2163     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   2164     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   2165 L_360C5F53:
   2166     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   2167     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   2168     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   2169     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   2170     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   2171     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   2172     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   2173     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   2174     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   2175     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   2176     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   2177     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   2178     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2179     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2180     _flag_k = FK_CMP;
   2181     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   2182 L_360C5F78:
   2183     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   2184 L_360C5F7B:
   2185     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   2186     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   2187     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   2188     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   2189     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2191     _flag_k = FK_CMP;
   2192     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   2193 L_360C5F89:
   2194     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   2195     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   2196     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   2197 L_360C5F94:
   2198     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   2199     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   2200     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2202     _flag_k = FK_CMP;
   2203     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   2204 L_360C5F9C:
   2205     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   2206     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   2207     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   2208 L_360C5FA7:
   2209     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   2210     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   2211     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   2212 L_360C5FB1:
   2213     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   2214     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2215     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2216     _flag_k = FK_NARROW(FK_CMP, 24);
   2217     RECOMP_BACKEDGE();
   2218     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   2219 L_360C5FBB:
   2220     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   2221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2223     _flag_k = FK_CMP;
   2224     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   2225 L_360C5FBF:
   2226     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   2227     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   2228     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   2229     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   2230     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   2231     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   2232     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2234     _flag_k = FK_CMP;
   2235     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   2236 L_360C5FD0:
   2237     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   2238 L_360C5FD3:
   2239     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   2240     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   2241     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   2242     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   2243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2245     _flag_k = FK_CMP;
   2246     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   2247 L_360C5FE1:
   2248     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   2249     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   2250 L_360C5FE6:
   2251     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   2252     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   2253     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2255     _flag_k = FK_CMP;
   2256     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   2257 L_360C5FEE:
   2258     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   2259     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   2260 L_360C5FF3:
   2261     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   2262 L_360C5FF5:
   2263     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   2264     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   2265 L_360C5FFB:
   2266     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   2267     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   2268     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   2269     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   2270     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   2271     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   2272     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   2273     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   2274     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   2275     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   2276     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   2277     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   2278     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2280     _flag_k = FK_CMP;
   2281     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   2282 L_360C6020:
   2283     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   2284 L_360C6023:
   2285     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   2286     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   2287     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   2288     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   2289     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2291     _flag_k = FK_CMP;
   2292     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   2293 L_360C6031:
   2294     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   2295     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   2296 L_360C6036:
   2297     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   2298     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   2299     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2301     _flag_k = FK_CMP;
   2302     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   2303 L_360C603D:
   2304     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   2305     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   2306 L_360C6041:
   2307     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   2308 L_360C6044:
   2309     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   2310 L_360C6046:
   2311     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   2312 L_360C6049:
   2313     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   2314     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   2315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2317     _flag_k = FK_CMP;
   2318     RECOMP_BACKEDGE();
   2319     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   2320 L_360C6055:
   2321     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   2322     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   2323     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   2324     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   2325     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   2326     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   2327     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   2328     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   2329     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   2330     esp = ebp; /* 0x360C6069: mov esp, ebp */
   2331     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   2332     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   2333     RECOMP_REGS_OUT();
   2334 }
   2335 
   2336 void sub_360C6044(void) {
   2337     int _fpu_cmp = 0;
   2338     uint32_t _cf = 0;
   2339     int _df = 1;
   2340     uint32_t _flag_k = FK_NONE;
   2341     uint32_t _flag_a = 0, _flag_b = 0;
   2342     uint32_t _itail_tgt = 0;
   2343     RECOMP_REGS_LOCALS
   2344     RECOMP_ENTER(0x360C6044u);
   2345 
   2346     goto L_360C6044;
   2347 L_360C5ED5:
   2348     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   2349     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   2350     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   2351     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2352     _cf = 0;
   2353     _flag_k = FK_NARROW(FK_TEST, 24);
   2354     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   2355 L_360C5EE3:
   2356     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   2357     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   2358     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   2359     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2361     _flag_k = FK_CMP;
   2362     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   2363 L_360C5EF0:
   2364     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   2365     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   2366     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2367     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2368     _flag_k = FK_NARROW(FK_CMP, 24);
   2369     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   2370 L_360C5EF9:
   2371     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   2372     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   2373     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   2374     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   2375     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   2376     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   2377     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   2378     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   2379 L_360C5F14:
   2380     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   2381     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2383     _flag_k = FK_CMP;
   2384     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   2385 L_360C5F19:
   2386     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   2387     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   2388     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   2389     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   2390     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   2391     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   2392     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2394     _flag_k = FK_CMP;
   2395     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   2396 L_360C5F2A:
   2397     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   2398 L_360C5F2D:
   2399     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   2400     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   2401     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   2402     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   2403     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2405     _flag_k = FK_CMP;
   2406     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   2407 L_360C5F3B:
   2408     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   2409     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   2410 L_360C5F40:
   2411     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   2412     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   2413     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2414     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2415     _flag_k = FK_CMP;
   2416     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   2417 L_360C5F47:
   2418     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   2419     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   2420 L_360C5F4B:
   2421     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   2422 L_360C5F4E:
   2423     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   2424     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   2425 L_360C5F53:
   2426     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   2427     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   2428     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   2429     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   2430     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   2431     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   2432     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   2433     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   2434     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   2435     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   2436     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   2437     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   2438     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2439     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2440     _flag_k = FK_CMP;
   2441     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   2442 L_360C5F78:
   2443     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   2444 L_360C5F7B:
   2445     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   2446     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   2447     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   2448     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   2449     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2451     _flag_k = FK_CMP;
   2452     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   2453 L_360C5F89:
   2454     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   2455     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   2456     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   2457 L_360C5F94:
   2458     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   2459     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   2460     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2462     _flag_k = FK_CMP;
   2463     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   2464 L_360C5F9C:
   2465     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   2466     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   2467     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   2468 L_360C5FA7:
   2469     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   2470     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   2471     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   2472 L_360C5FB1:
   2473     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   2474     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2475     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2476     _flag_k = FK_NARROW(FK_CMP, 24);
   2477     RECOMP_BACKEDGE();
   2478     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   2479 L_360C5FBB:
   2480     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   2481     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2483     _flag_k = FK_CMP;
   2484     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   2485 L_360C5FBF:
   2486     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   2487     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   2488     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   2489     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   2490     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   2491     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   2492     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2493     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2494     _flag_k = FK_CMP;
   2495     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   2496 L_360C5FD0:
   2497     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   2498 L_360C5FD3:
   2499     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   2500     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   2501     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   2502     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   2503     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2504     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2505     _flag_k = FK_CMP;
   2506     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   2507 L_360C5FE1:
   2508     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   2509     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   2510 L_360C5FE6:
   2511     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   2512     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   2513     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2514     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2515     _flag_k = FK_CMP;
   2516     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   2517 L_360C5FEE:
   2518     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   2519     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   2520 L_360C5FF3:
   2521     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   2522 L_360C5FF5:
   2523     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   2524     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   2525 L_360C5FFB:
   2526     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   2527     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   2528     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   2529     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   2530     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   2531     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   2532     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   2533     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   2534     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   2535     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   2536     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   2537     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   2538     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2539     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2540     _flag_k = FK_CMP;
   2541     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   2542 L_360C6020:
   2543     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   2544 L_360C6023:
   2545     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   2546     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   2547     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   2548     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   2549     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2550     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2551     _flag_k = FK_CMP;
   2552     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   2553 L_360C6031:
   2554     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   2555     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   2556 L_360C6036:
   2557     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   2558     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   2559     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2561     _flag_k = FK_CMP;
   2562     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   2563 L_360C603D:
   2564     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   2565     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   2566 L_360C6041:
   2567     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   2568 L_360C6044:
   2569     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   2570 L_360C6046:
   2571     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   2572 L_360C6049:
   2573     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   2574     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   2575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2577     _flag_k = FK_CMP;
   2578     RECOMP_BACKEDGE();
   2579     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   2580 L_360C6055:
   2581     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   2582     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   2583     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   2584     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   2585     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   2586     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   2587     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   2588     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   2589     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   2590     esp = ebp; /* 0x360C6069: mov esp, ebp */
   2591     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   2592     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   2593     RECOMP_REGS_OUT();
   2594 }
   2595 
   2596 void sub_360C6046(void) {
   2597     int _fpu_cmp = 0;
   2598     uint32_t _cf = 0;
   2599     int _df = 1;
   2600     uint32_t _flag_k = FK_NONE;
   2601     uint32_t _flag_a = 0, _flag_b = 0;
   2602     uint32_t _itail_tgt = 0;
   2603     RECOMP_REGS_LOCALS
   2604     RECOMP_ENTER(0x360C6046u);
   2605 
   2606     goto L_360C6046;
   2607 L_360C5ED5:
   2608     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   2609     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   2610     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   2611     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2612     _cf = 0;
   2613     _flag_k = FK_NARROW(FK_TEST, 24);
   2614     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   2615 L_360C5EE3:
   2616     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   2617     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   2618     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   2619     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2621     _flag_k = FK_CMP;
   2622     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   2623 L_360C5EF0:
   2624     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   2625     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   2626     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2627     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2628     _flag_k = FK_NARROW(FK_CMP, 24);
   2629     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   2630 L_360C5EF9:
   2631     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   2632     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   2633     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   2634     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   2635     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   2636     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   2637     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   2638     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   2639 L_360C5F14:
   2640     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   2641     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2643     _flag_k = FK_CMP;
   2644     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   2645 L_360C5F19:
   2646     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   2647     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   2648     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   2649     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   2650     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   2651     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   2652     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2653     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2654     _flag_k = FK_CMP;
   2655     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   2656 L_360C5F2A:
   2657     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   2658 L_360C5F2D:
   2659     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   2660     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   2661     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   2662     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   2663     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2664     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2665     _flag_k = FK_CMP;
   2666     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   2667 L_360C5F3B:
   2668     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   2669     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   2670 L_360C5F40:
   2671     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   2672     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   2673     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2675     _flag_k = FK_CMP;
   2676     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   2677 L_360C5F47:
   2678     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   2679     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   2680 L_360C5F4B:
   2681     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   2682 L_360C5F4E:
   2683     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   2684     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   2685 L_360C5F53:
   2686     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   2687     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   2688     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   2689     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   2690     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   2691     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   2692     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   2693     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   2694     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   2695     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   2696     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   2697     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   2698     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2700     _flag_k = FK_CMP;
   2701     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   2702 L_360C5F78:
   2703     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   2704 L_360C5F7B:
   2705     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   2706     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   2707     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   2708     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   2709     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2711     _flag_k = FK_CMP;
   2712     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   2713 L_360C5F89:
   2714     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   2715     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   2716     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   2717 L_360C5F94:
   2718     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   2719     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   2720     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2722     _flag_k = FK_CMP;
   2723     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   2724 L_360C5F9C:
   2725     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   2726     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   2727     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   2728 L_360C5FA7:
   2729     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   2730     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   2731     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   2732 L_360C5FB1:
   2733     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   2734     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2735     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2736     _flag_k = FK_NARROW(FK_CMP, 24);
   2737     RECOMP_BACKEDGE();
   2738     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   2739 L_360C5FBB:
   2740     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   2741     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2743     _flag_k = FK_CMP;
   2744     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   2745 L_360C5FBF:
   2746     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   2747     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   2748     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   2749     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   2750     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   2751     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   2752     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2754     _flag_k = FK_CMP;
   2755     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   2756 L_360C5FD0:
   2757     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   2758 L_360C5FD3:
   2759     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   2760     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   2761     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   2762     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   2763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2765     _flag_k = FK_CMP;
   2766     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   2767 L_360C5FE1:
   2768     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   2769     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   2770 L_360C5FE6:
   2771     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   2772     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   2773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2775     _flag_k = FK_CMP;
   2776     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   2777 L_360C5FEE:
   2778     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   2779     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   2780 L_360C5FF3:
   2781     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   2782 L_360C5FF5:
   2783     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   2784     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   2785 L_360C5FFB:
   2786     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   2787     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   2788     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   2789     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   2790     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   2791     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   2792     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   2793     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   2794     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   2795     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   2796     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   2797     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   2798     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2800     _flag_k = FK_CMP;
   2801     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   2802 L_360C6020:
   2803     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   2804 L_360C6023:
   2805     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   2806     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   2807     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   2808     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   2809     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2810     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2811     _flag_k = FK_CMP;
   2812     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   2813 L_360C6031:
   2814     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   2815     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   2816 L_360C6036:
   2817     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   2818     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   2819     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2821     _flag_k = FK_CMP;
   2822     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   2823 L_360C603D:
   2824     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   2825     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   2826 L_360C6041:
   2827     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   2828 L_360C6044:
   2829     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   2830 L_360C6046:
   2831     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   2832 L_360C6049:
   2833     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   2834     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   2835     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2837     _flag_k = FK_CMP;
   2838     RECOMP_BACKEDGE();
   2839     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   2840 L_360C6055:
   2841     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   2842     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   2843     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   2844     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   2845     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   2846     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   2847     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   2848     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   2849     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   2850     esp = ebp; /* 0x360C6069: mov esp, ebp */
   2851     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   2852     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   2853     RECOMP_REGS_OUT();
   2854 }
   2855 
   2856 void sub_360C6049(void) {
   2857     int _fpu_cmp = 0;
   2858     uint32_t _cf = 0;
   2859     int _df = 1;
   2860     uint32_t _flag_k = FK_NONE;
   2861     uint32_t _flag_a = 0, _flag_b = 0;
   2862     uint32_t _itail_tgt = 0;
   2863     RECOMP_REGS_LOCALS
   2864     RECOMP_ENTER(0x360C6049u);
   2865 
   2866     goto L_360C6049;
   2867 L_360C5ED5:
   2868     ecx = MEM32(eax + 0x4); /* 0x360C5ED5: mov ecx, dword ptr [eax + 4] */
   2869     SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x360C5ED8: mov dl, byte ptr [ecx + 0x18] */
   2870     /* test LO8(edx), LO8(edx) */ /* 0x360C5EDB: test dl, dl */
   2871     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2872     _cf = 0;
   2873     _flag_k = FK_NARROW(FK_TEST, 24);
   2874     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6055; /* 0x360C5EDD: jne 0x360c6055 */
   2875 L_360C5EE3:
   2876     edi = MEM32(ecx + 0x4); /* 0x360C5EE3: mov edi, dword ptr [ecx + 4] */
   2877     edx = MEM32(edi); /* 0x360C5EE6: mov edx, dword ptr [edi] */
   2878     /* cmp ecx, edx */ /* 0x360C5EE8: cmp ecx, edx */
   2879     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2881     _flag_k = FK_CMP;
   2882     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FB1; /* 0x360C5EEA: jne 0x360c5fb1 */
   2883 L_360C5EF0:
   2884     edx = MEM32(edi + 0x8); /* 0x360C5EF0: mov edx, dword ptr [edi + 8] */
   2885     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5EF3: cmp byte ptr [edx + 0x18], 0 */
   2886     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2887     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2888     _flag_k = FK_NARROW(FK_CMP, 24);
   2889     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F14; /* 0x360C5EF7: jne 0x360c5f14 */
   2890 L_360C5EF9:
   2891     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EF9: mov byte ptr [ecx + 0x18], bl */
   2892     MEM8(edx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5EFC: mov byte ptr [edx + 0x18], bl */
   2893     ecx = MEM32(eax + 0x4); /* 0x360C5EFF: mov ecx, dword ptr [eax + 4] */
   2894     edx = MEM32(ecx + 0x4); /* 0x360C5F02: mov edx, dword ptr [ecx + 4] */
   2895     MEM8(edx + 0x18) = (uint8_t)(0); /* 0x360C5F05: mov byte ptr [edx + 0x18], 0 */
   2896     eax = MEM32(eax + 0x4); /* 0x360C5F09: mov eax, dword ptr [eax + 4] */
   2897     eax = MEM32(eax + 0x4); /* 0x360C5F0C: mov eax, dword ptr [eax + 4] */
   2898     goto L_360C6049; /* 0x360C5F0F: jmp 0x360c6049 */
   2899 L_360C5F14:
   2900     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360C5F14: cmp eax, dword ptr [ecx + 8] */
   2901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2902     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2903     _flag_k = FK_CMP;
   2904     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F53; /* 0x360C5F17: jne 0x360c5f53 */
   2905 L_360C5F19:
   2906     eax = ecx; /* 0x360C5F19: mov eax, ecx */
   2907     ecx = MEM32(eax + 0x8); /* 0x360C5F1B: mov ecx, dword ptr [eax + 8] */
   2908     edx = MEM32(ecx); /* 0x360C5F1E: mov edx, dword ptr [ecx] */
   2909     MEM32(eax + 0x8) = edx; /* 0x360C5F20: mov dword ptr [eax + 8], edx */
   2910     edx = MEM32(ecx); /* 0x360C5F23: mov edx, dword ptr [ecx] */
   2911     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5F25: cmp edx, dword ptr [esi + 8] */
   2912     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2914     _flag_k = FK_CMP;
   2915     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F2D; /* 0x360C5F28: je 0x360c5f2d */
   2916 L_360C5F2A:
   2917     MEM32(edx + 0x4) = eax; /* 0x360C5F2A: mov dword ptr [edx + 4], eax */
   2918 L_360C5F2D:
   2919     edx = MEM32(eax + 0x4); /* 0x360C5F2D: mov edx, dword ptr [eax + 4] */
   2920     MEM32(ecx + 0x4) = edx; /* 0x360C5F30: mov dword ptr [ecx + 4], edx */
   2921     edx = MEM32(esi + 0x4); /* 0x360C5F33: mov edx, dword ptr [esi + 4] */
   2922     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5F36: cmp eax, dword ptr [edx + 4] */
   2923     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2925     _flag_k = FK_CMP;
   2926     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F40; /* 0x360C5F39: jne 0x360c5f40 */
   2927 L_360C5F3B:
   2928     MEM32(edx + 0x4) = ecx; /* 0x360C5F3B: mov dword ptr [edx + 4], ecx */
   2929     goto L_360C5F4E; /* 0x360C5F3E: jmp 0x360c5f4e */
   2930 L_360C5F40:
   2931     edx = MEM32(eax + 0x4); /* 0x360C5F40: mov edx, dword ptr [eax + 4] */
   2932     /* cmp eax, MEM32(edx) */ /* 0x360C5F43: cmp eax, dword ptr [edx] */
   2933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2934     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2935     _flag_k = FK_CMP;
   2936     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F4B; /* 0x360C5F45: jne 0x360c5f4b */
   2937 L_360C5F47:
   2938     MEM32(edx) = ecx; /* 0x360C5F47: mov dword ptr [edx], ecx */
   2939     goto L_360C5F4E; /* 0x360C5F49: jmp 0x360c5f4e */
   2940 L_360C5F4B:
   2941     MEM32(edx + 0x8) = ecx; /* 0x360C5F4B: mov dword ptr [edx + 8], ecx */
   2942 L_360C5F4E:
   2943     MEM32(ecx) = eax; /* 0x360C5F4E: mov dword ptr [ecx], eax */
   2944     MEM32(eax + 0x4) = ecx; /* 0x360C5F50: mov dword ptr [eax + 4], ecx */
   2945 L_360C5F53:
   2946     ecx = MEM32(eax + 0x4); /* 0x360C5F53: mov ecx, dword ptr [eax + 4] */
   2947     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5F56: mov byte ptr [ecx + 0x18], bl */
   2948     edx = MEM32(eax + 0x4); /* 0x360C5F59: mov edx, dword ptr [eax + 4] */
   2949     ecx = MEM32(edx + 0x4); /* 0x360C5F5C: mov ecx, dword ptr [edx + 4] */
   2950     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C5F5F: mov byte ptr [ecx + 0x18], 0 */
   2951     edx = MEM32(eax + 0x4); /* 0x360C5F63: mov edx, dword ptr [eax + 4] */
   2952     ecx = MEM32(edx + 0x4); /* 0x360C5F66: mov ecx, dword ptr [edx + 4] */
   2953     edx = MEM32(ecx); /* 0x360C5F69: mov edx, dword ptr [ecx] */
   2954     edi = MEM32(edx + 0x8); /* 0x360C5F6B: mov edi, dword ptr [edx + 8] */
   2955     MEM32(ecx) = edi; /* 0x360C5F6E: mov dword ptr [ecx], edi */
   2956     edi = MEM32(edx + 0x8); /* 0x360C5F70: mov edi, dword ptr [edx + 8] */
   2957     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C5F73: cmp edi, dword ptr [esi + 8] */
   2958     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2960     _flag_k = FK_CMP;
   2961     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5F7B; /* 0x360C5F76: je 0x360c5f7b */
   2962 L_360C5F78:
   2963     MEM32(edi + 0x4) = ecx; /* 0x360C5F78: mov dword ptr [edi + 4], ecx */
   2964 L_360C5F7B:
   2965     edi = MEM32(ecx + 0x4); /* 0x360C5F7B: mov edi, dword ptr [ecx + 4] */
   2966     MEM32(edx + 0x4) = edi; /* 0x360C5F7E: mov dword ptr [edx + 4], edi */
   2967     edi = MEM32(esi + 0x4); /* 0x360C5F81: mov edi, dword ptr [esi + 4] */
   2968     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C5F84: cmp ecx, dword ptr [edi + 4] */
   2969     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2970     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2971     _flag_k = FK_CMP;
   2972     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5F94; /* 0x360C5F87: jne 0x360c5f94 */
   2973 L_360C5F89:
   2974     MEM32(edi + 0x4) = edx; /* 0x360C5F89: mov dword ptr [edi + 4], edx */
   2975     MEM32(edx + 0x8) = ecx; /* 0x360C5F8C: mov dword ptr [edx + 8], ecx */
   2976     goto L_360C6046; /* 0x360C5F8F: jmp 0x360c6046 */
   2977 L_360C5F94:
   2978     edi = MEM32(ecx + 0x4); /* 0x360C5F94: mov edi, dword ptr [ecx + 4] */
   2979     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x360C5F97: cmp ecx, dword ptr [edi + 8] */
   2980     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2982     _flag_k = FK_CMP;
   2983     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FA7; /* 0x360C5F9A: jne 0x360c5fa7 */
   2984 L_360C5F9C:
   2985     MEM32(edi + 0x8) = edx; /* 0x360C5F9C: mov dword ptr [edi + 8], edx */
   2986     MEM32(edx + 0x8) = ecx; /* 0x360C5F9F: mov dword ptr [edx + 8], ecx */
   2987     goto L_360C6046; /* 0x360C5FA2: jmp 0x360c6046 */
   2988 L_360C5FA7:
   2989     MEM32(edi) = edx; /* 0x360C5FA7: mov dword ptr [edi], edx */
   2990     MEM32(edx + 0x8) = ecx; /* 0x360C5FA9: mov dword ptr [edx + 8], ecx */
   2991     goto L_360C6046; /* 0x360C5FAC: jmp 0x360c6046 */
   2992 L_360C5FB1:
   2993     /* cmp MEM8(edx + 0x18), 0 */ /* 0x360C5FB1: cmp byte ptr [edx + 0x18], 0 */
   2994     _flag_a = (uint32_t)(MEM8(edx + 0x18)) << 24; _flag_b = (uint32_t)(0) << 24;
   2995     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2996     _flag_k = FK_NARROW(FK_CMP, 24);
   2997     RECOMP_BACKEDGE();
   2998     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5EF9; /* 0x360C5FB5: je 0x360c5ef9 */
   2999 L_360C5FBB:
   3000     /* cmp eax, MEM32(ecx) */ /* 0x360C5FBB: cmp eax, dword ptr [ecx] */
   3001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3003     _flag_k = FK_CMP;
   3004     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FFB; /* 0x360C5FBD: jne 0x360c5ffb */
   3005 L_360C5FBF:
   3006     eax = ecx; /* 0x360C5FBF: mov eax, ecx */
   3007     ecx = MEM32(eax); /* 0x360C5FC1: mov ecx, dword ptr [eax] */
   3008     edx = MEM32(ecx + 0x8); /* 0x360C5FC3: mov edx, dword ptr [ecx + 8] */
   3009     MEM32(eax) = edx; /* 0x360C5FC6: mov dword ptr [eax], edx */
   3010     edx = MEM32(ecx + 0x8); /* 0x360C5FC8: mov edx, dword ptr [ecx + 8] */
   3011     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360C5FCB: cmp edx, dword ptr [esi + 8] */
   3012     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3013     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3014     _flag_k = FK_CMP;
   3015     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C5FD3; /* 0x360C5FCE: je 0x360c5fd3 */
   3016 L_360C5FD0:
   3017     MEM32(edx + 0x4) = eax; /* 0x360C5FD0: mov dword ptr [edx + 4], eax */
   3018 L_360C5FD3:
   3019     edx = MEM32(eax + 0x4); /* 0x360C5FD3: mov edx, dword ptr [eax + 4] */
   3020     MEM32(ecx + 0x4) = edx; /* 0x360C5FD6: mov dword ptr [ecx + 4], edx */
   3021     edx = MEM32(esi + 0x4); /* 0x360C5FD9: mov edx, dword ptr [esi + 4] */
   3022     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360C5FDC: cmp eax, dword ptr [edx + 4] */
   3023     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3025     _flag_k = FK_CMP;
   3026     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FE6; /* 0x360C5FDF: jne 0x360c5fe6 */
   3027 L_360C5FE1:
   3028     MEM32(edx + 0x4) = ecx; /* 0x360C5FE1: mov dword ptr [edx + 4], ecx */
   3029     goto L_360C5FF5; /* 0x360C5FE4: jmp 0x360c5ff5 */
   3030 L_360C5FE6:
   3031     edx = MEM32(eax + 0x4); /* 0x360C5FE6: mov edx, dword ptr [eax + 4] */
   3032     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360C5FE9: cmp eax, dword ptr [edx + 8] */
   3033     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3034     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3035     _flag_k = FK_CMP;
   3036     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5FF3; /* 0x360C5FEC: jne 0x360c5ff3 */
   3037 L_360C5FEE:
   3038     MEM32(edx + 0x8) = ecx; /* 0x360C5FEE: mov dword ptr [edx + 8], ecx */
   3039     goto L_360C5FF5; /* 0x360C5FF1: jmp 0x360c5ff5 */
   3040 L_360C5FF3:
   3041     MEM32(edx) = ecx; /* 0x360C5FF3: mov dword ptr [edx], ecx */
   3042 L_360C5FF5:
   3043     MEM32(ecx + 0x8) = eax; /* 0x360C5FF5: mov dword ptr [ecx + 8], eax */
   3044     MEM32(eax + 0x4) = ecx; /* 0x360C5FF8: mov dword ptr [eax + 4], ecx */
   3045 L_360C5FFB:
   3046     ecx = MEM32(eax + 0x4); /* 0x360C5FFB: mov ecx, dword ptr [eax + 4] */
   3047     MEM8(ecx + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C5FFE: mov byte ptr [ecx + 0x18], bl */
   3048     edx = MEM32(eax + 0x4); /* 0x360C6001: mov edx, dword ptr [eax + 4] */
   3049     ecx = MEM32(edx + 0x4); /* 0x360C6004: mov ecx, dword ptr [edx + 4] */
   3050     MEM8(ecx + 0x18) = (uint8_t)(0); /* 0x360C6007: mov byte ptr [ecx + 0x18], 0 */
   3051     edx = MEM32(eax + 0x4); /* 0x360C600B: mov edx, dword ptr [eax + 4] */
   3052     ecx = MEM32(edx + 0x4); /* 0x360C600E: mov ecx, dword ptr [edx + 4] */
   3053     edx = MEM32(ecx + 0x8); /* 0x360C6011: mov edx, dword ptr [ecx + 8] */
   3054     edi = MEM32(edx); /* 0x360C6014: mov edi, dword ptr [edx] */
   3055     MEM32(ecx + 0x8) = edi; /* 0x360C6016: mov dword ptr [ecx + 8], edi */
   3056     edi = MEM32(edx); /* 0x360C6019: mov edi, dword ptr [edx] */
   3057     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360C601B: cmp edi, dword ptr [esi + 8] */
   3058     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3059     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3060     _flag_k = FK_CMP;
   3061     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6023; /* 0x360C601E: je 0x360c6023 */
   3062 L_360C6020:
   3063     MEM32(edi + 0x4) = ecx; /* 0x360C6020: mov dword ptr [edi + 4], ecx */
   3064 L_360C6023:
   3065     edi = MEM32(ecx + 0x4); /* 0x360C6023: mov edi, dword ptr [ecx + 4] */
   3066     MEM32(edx + 0x4) = edi; /* 0x360C6026: mov dword ptr [edx + 4], edi */
   3067     edi = MEM32(esi + 0x4); /* 0x360C6029: mov edi, dword ptr [esi + 4] */
   3068     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360C602C: cmp ecx, dword ptr [edi + 4] */
   3069     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3070     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3071     _flag_k = FK_CMP;
   3072     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6036; /* 0x360C602F: jne 0x360c6036 */
   3073 L_360C6031:
   3074     MEM32(edi + 0x4) = edx; /* 0x360C6031: mov dword ptr [edi + 4], edx */
   3075     goto L_360C6044; /* 0x360C6034: jmp 0x360c6044 */
   3076 L_360C6036:
   3077     edi = MEM32(ecx + 0x4); /* 0x360C6036: mov edi, dword ptr [ecx + 4] */
   3078     /* cmp ecx, MEM32(edi) */ /* 0x360C6039: cmp ecx, dword ptr [edi] */
   3079     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3080     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3081     _flag_k = FK_CMP;
   3082     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6041; /* 0x360C603B: jne 0x360c6041 */
   3083 L_360C603D:
   3084     MEM32(edi) = edx; /* 0x360C603D: mov dword ptr [edi], edx */
   3085     goto L_360C6044; /* 0x360C603F: jmp 0x360c6044 */
   3086 L_360C6041:
   3087     MEM32(edi + 0x8) = edx; /* 0x360C6041: mov dword ptr [edi + 8], edx */
   3088 L_360C6044:
   3089     MEM32(edx) = ecx; /* 0x360C6044: mov dword ptr [edx], ecx */
   3090 L_360C6046:
   3091     MEM32(ecx + 0x4) = edx; /* 0x360C6046: mov dword ptr [ecx + 4], edx */
   3092 L_360C6049:
   3093     ecx = MEM32(esi + 0x4); /* 0x360C6049: mov ecx, dword ptr [esi + 4] */
   3094     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360C604C: cmp eax, dword ptr [ecx + 4] */
   3095     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3097     _flag_k = FK_CMP;
   3098     RECOMP_BACKEDGE();
   3099     if (CMP_NE(_flag_a, _flag_b)) goto L_360C5ED5; /* 0x360C604F: jne 0x360c5ed5 */
   3100 L_360C6055:
   3101     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   3102     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   3103     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   3104     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   3105     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   3106     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   3107     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   3108     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   3109     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   3110     esp = ebp; /* 0x360C6069: mov esp, ebp */
   3111     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   3112     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   3113     RECOMP_REGS_OUT();
   3114 }
   3115 
   3116 void sub_360C6055(void) {
   3117     int _fpu_cmp = 0;
   3118     uint32_t _cf = 0;
   3119     int _df = 1;
   3120     uint32_t _flag_k = FK_NONE;
   3121     uint32_t _flag_a = 0, _flag_b = 0;
   3122     uint32_t _itail_tgt = 0;
   3123     RECOMP_REGS_LOCALS
   3124     RECOMP_ENTER(0x360C6055u);
   3125 
   3126 L_360C6055:
   3127     edx = MEM32(esi + 0x4); /* 0x360C6055: mov edx, dword ptr [esi + 4] */
   3128     eax = MEM32(edx + 0x4); /* 0x360C6058: mov eax, dword ptr [edx + 4] */
   3129     ecx = MEM32(ebp + (-0x4)); /* 0x360C605B: mov ecx, dword ptr [ebp - 4] */
   3130     MEM8(eax + 0x18) = (uint8_t)(LO8(ebx)); /* 0x360C605E: mov byte ptr [eax + 0x18], bl */
   3131     eax = MEM32(ebp + 0x8); /* 0x360C6061: mov eax, dword ptr [ebp + 8] */
   3132     edi = POP32_VAL(esp); /* 0x360C6064: pop edi */
   3133     esi = POP32_VAL(esp); /* 0x360C6065: pop esi */
   3134     MEM32(eax) = ecx; /* 0x360C6066: mov dword ptr [eax], ecx */
   3135     ebx = POP32_VAL(esp); /* 0x360C6068: pop ebx */
   3136     esp = ebp; /* 0x360C6069: mov esp, ebp */
   3137     ebp = POP32_VAL(esp); /* 0x360C606B: pop ebp */
   3138     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C606C: ret 0x10 */
   3139     RECOMP_REGS_OUT();
   3140 }
   3141 
   3142 void sub_360C6070(void) {
   3143     int _fpu_cmp = 0;
   3144     uint32_t _cf = 0;
   3145     int _df = 1;
   3146     uint32_t _flag_k = FK_NONE;
   3147     uint32_t _flag_a = 0, _flag_b = 0;
   3148     uint32_t _itail_tgt = 0;
   3149     RECOMP_REGS_LOCALS
   3150     RECOMP_ENTER(0x360C6070u);
   3151 
   3152 L_360C6070:
   3153     PUSH32(esp, ebp); /* 0x360C6070: push ebp */
   3154     ebp = esp; /* 0x360C6071: mov ebp, esp */
   3155     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3157     esp = esp - 0xCu; /* 0x360C6073: sub esp, 0xc */
   3158     _flag_k = FK_CMP;
   3159     PUSH32(esp, ebx); /* 0x360C6076: push ebx */
   3160     PUSH32(esp, esi); /* 0x360C6077: push esi */
   3161     esi = ecx; /* 0x360C6078: mov esi, ecx */
   3162     PUSH32(esp, edi); /* 0x360C607A: push edi */
   3163     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3164     edi = 0; /* 0x360C607B: xor edi, edi */
   3165     _cf = 0;
   3166     _flag_k = FK_TEST;
   3167     MEM32(esi + 0x4) = edi; /* 0x360C607D: mov dword ptr [esi + 4], edi */
   3168     MEM32(esi + 0x8) = edi; /* 0x360C6080: mov dword ptr [esi + 8], edi */
   3169     MEM32(esi + 0xC) = edi; /* 0x360C6083: mov dword ptr [esi + 0xc], edi */
   3170     MEM32(esi + 0x10) = edi; /* 0x360C6086: mov dword ptr [esi + 0x10], edi */
   3171     MEM32(esi + 0x14) = edi; /* 0x360C6089: mov dword ptr [esi + 0x14], edi */
   3172     MEM32(esi + 0x18) = edi; /* 0x360C608C: mov dword ptr [esi + 0x18], edi */
   3173     MEM32(esi + 0x1C) = edi; /* 0x360C608F: mov dword ptr [esi + 0x1c], edi */
   3174     MEM32(esi + 0x20) = edi; /* 0x360C6092: mov dword ptr [esi + 0x20], edi */
   3175     MEM32(esi + 0x24) = edi; /* 0x360C6095: mov dword ptr [esi + 0x24], edi */
   3176     MEM32(esi + 0x28) = edi; /* 0x360C6098: mov dword ptr [esi + 0x28], edi */
   3177     MEM32(esi + 0x2C) = edi; /* 0x360C609B: mov dword ptr [esi + 0x2c], edi */
   3178     MEM32(esi + 0x30) = edi; /* 0x360C609E: mov dword ptr [esi + 0x30], edi */
   3179     MEM32(esi + 0x34) = edi; /* 0x360C60A1: mov dword ptr [esi + 0x34], edi */
   3180     MEM32(esi + 0x3C) = edi; /* 0x360C60A4: mov dword ptr [esi + 0x3c], edi */
   3181     MEM32(esi + 0x40) = edi; /* 0x360C60A7: mov dword ptr [esi + 0x40], edi */
   3182     MEM32(esi + 0x44) = edi; /* 0x360C60AA: mov dword ptr [esi + 0x44], edi */
   3183     MEM32(esi + 0x48) = edi; /* 0x360C60AD: mov dword ptr [esi + 0x48], edi */
   3184     MEM32(esi + 0x4C) = edi; /* 0x360C60B0: mov dword ptr [esi + 0x4c], edi */
   3185     MEM32(esi + 0x54) = edi; /* 0x360C60B3: mov dword ptr [esi + 0x54], edi */
   3186     MEM32(esi + 0x58) = edi; /* 0x360C60B6: mov dword ptr [esi + 0x58], edi */
   3187     ecx = esi + 0x6C; /* 0x360C60B9: lea ecx, [esi + 0x6c] */
   3188     MEM32(esi + 0x64) = edi; /* 0x360C60BC: mov dword ptr [esi + 0x64], edi */
   3189     MEM32(esi + 0x68) = edi; /* 0x360C60BF: mov dword ptr [esi + 0x68], edi */
   3190     RECOMP_ICALL(0x36042110u); /* 0x360C60C2: call 0x36042110 */ /* not lifted */
   3191     RECOMP_FLAGS_IN();
   3192     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3193     eax = 0; /* 0x360C60C7: xor eax, eax */
   3194     _cf = 0;
   3195     _flag_k = FK_TEST;
   3196     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3197     ecx = 0; /* 0x360C60C9: xor ecx, ecx */
   3198     _cf = 0;
   3199     _flag_k = FK_TEST;
   3200     ebx = ecx; /* 0x360C60CB: mov ebx, ecx */
   3201     edx = esi + 0x44; /* 0x360C60CD: lea edx, [esi + 0x44] */
   3202     MEM32(edx) = ebx; /* 0x360C60D0: mov dword ptr [edx], ebx */
   3203     MEM32(edx + 0x4) = ebx; /* 0x360C60D2: mov dword ptr [edx + 4], ebx */
   3204     MEM32(edx + 0x8) = ebx; /* 0x360C60D5: mov dword ptr [edx + 8], ebx */
   3205     edx = esi + 0x2C; /* 0x360C60D8: lea edx, [esi + 0x2c] */
   3206     MEM32(edx) = ebx; /* 0x360C60DB: mov dword ptr [edx], ebx */
   3207     MEM32(esi + 0x3C) = eax; /* 0x360C60DD: mov dword ptr [esi + 0x3c], eax */
   3208     MEM32(esi + 0x50) = edi; /* 0x360C60E0: mov dword ptr [esi + 0x50], edi */
   3209     MEM32(esi + 0x5C) = edi; /* 0x360C60E3: mov dword ptr [esi + 0x5c], edi */
   3210     MEM32(esi + 0x54) = eax; /* 0x360C60E6: mov dword ptr [esi + 0x54], eax */
   3211     MEM32(esi + 0x60) = edi; /* 0x360C60E9: mov dword ptr [esi + 0x60], edi */
   3212     MEM32(esi + 0x24) = eax; /* 0x360C60EC: mov dword ptr [esi + 0x24], eax */
   3213     MEM32(esi + 0x38) = edi; /* 0x360C60EF: mov dword ptr [esi + 0x38], edi */
   3214     MEM32(esi + 0x4) = eax; /* 0x360C60F2: mov dword ptr [esi + 4], eax */
   3215     MEM32(esi + 0xC) = eax; /* 0x360C60F5: mov dword ptr [esi + 0xc], eax */
   3216     MEM32(esi + 0x14) = eax; /* 0x360C60F8: mov dword ptr [esi + 0x14], eax */
   3217     MEM32(esi) = edi; /* 0x360C60FB: mov dword ptr [esi], edi */
   3218     MEM32(esi + 0x64) = eax; /* 0x360C60FD: mov dword ptr [esi + 0x64], eax */
   3219     edi = POP32_VAL(esp); /* 0x360C6100: pop edi */
   3220     MEM32(edx + 0x4) = ebx; /* 0x360C6101: mov dword ptr [edx + 4], ebx */
   3221     MEM32(esi + 0x40) = ecx; /* 0x360C6104: mov dword ptr [esi + 0x40], ecx */
   3222     MEM32(esi + 0x58) = ecx; /* 0x360C6107: mov dword ptr [esi + 0x58], ecx */
   3223     MEM32(esi + 0x28) = ecx; /* 0x360C610A: mov dword ptr [esi + 0x28], ecx */
   3224     MEM32(esi + 0x8) = ecx; /* 0x360C610D: mov dword ptr [esi + 8], ecx */
   3225     MEM32(esi + 0x10) = ecx; /* 0x360C6110: mov dword ptr [esi + 0x10], ecx */
   3226     MEM32(esi + 0x18) = ecx; /* 0x360C6113: mov dword ptr [esi + 0x18], ecx */
   3227     MEM32(esi + 0x68) = ecx; /* 0x360C6116: mov dword ptr [esi + 0x68], ecx */
   3228     eax = esi; /* 0x360C6119: mov eax, esi */
   3229     esi = POP32_VAL(esp); /* 0x360C611B: pop esi */
   3230     MEM32(ebp + (-0xC)) = ecx; /* 0x360C611C: mov dword ptr [ebp - 0xc], ecx */
   3231     MEM32(ebp + (-0x8)) = ecx; /* 0x360C611F: mov dword ptr [ebp - 8], ecx */
   3232     MEM32(ebp + (-0x4)) = ecx; /* 0x360C6122: mov dword ptr [ebp - 4], ecx */
   3233     MEM32(edx + 0x8) = ebx; /* 0x360C6125: mov dword ptr [edx + 8], ebx */
   3234     MEM32(ebp + (-0xC)) = ecx; /* 0x360C6128: mov dword ptr [ebp - 0xc], ecx */
   3235     MEM32(ebp + (-0x8)) = ecx; /* 0x360C612B: mov dword ptr [ebp - 8], ecx */
   3236     MEM32(ebp + (-0x4)) = ecx; /* 0x360C612E: mov dword ptr [ebp - 4], ecx */
   3237     ebx = POP32_VAL(esp); /* 0x360C6131: pop ebx */
   3238     esp = ebp; /* 0x360C6132: mov esp, ebp */
   3239     ebp = POP32_VAL(esp); /* 0x360C6134: pop ebp */
   3240     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6135: ret  */
   3241     RECOMP_REGS_OUT();
   3242 }
   3243 
   3244 void sub_360C6140(void) {
   3245     int _fpu_cmp = 0;
   3246     uint32_t _cf = 0;
   3247     int _df = 1;
   3248     uint32_t _flag_k = FK_NONE;
   3249     uint32_t _flag_a = 0, _flag_b = 0;
   3250     uint32_t _itail_tgt = 0;
   3251     RECOMP_REGS_LOCALS
   3252     RECOMP_ENTER(0x360C6140u);
   3253 
   3254 L_360C6140:
   3255     PUSH32(esp, ebp); /* 0x360C6140: push ebp */
   3256     ebp = esp; /* 0x360C6141: mov ebp, esp */
   3257     PUSH32(esp, ebx); /* 0x360C6143: push ebx */
   3258     PUSH32(esp, esi); /* 0x360C6144: push esi */
   3259     esi = MEM32(ebp + 0xC); /* 0x360C6145: mov esi, dword ptr [ebp + 0xc] */
   3260     ecx = MEM32(esi + 0x50); /* 0x360C6148: mov ecx, dword ptr [esi + 0x50] */
   3261     edx = MEM32(esi + 0x4C); /* 0x360C614B: mov edx, dword ptr [esi + 0x4c] */
   3262     PUSH32(esp, edi); /* 0x360C614E: push edi */
   3263     eax = esi + 0x54; /* 0x360C614F: lea eax, [esi + 0x54] */
   3264     PUSH32(esp, eax); /* 0x360C6152: push eax */
   3265     eax = MEM32(esi + 0x48); /* 0x360C6153: mov eax, dword ptr [esi + 0x48] */
   3266     PUSH32(esp, ecx); /* 0x360C6156: push ecx */
   3267     ecx = MEM32(esi + 0x44); /* 0x360C6157: mov ecx, dword ptr [esi + 0x44] */
   3268     PUSH32(esp, edx); /* 0x360C615A: push edx */
   3269     PUSH32(esp, eax); /* 0x360C615B: push eax */
   3270     eax = MEM32(esi + 0x38); /* 0x360C615C: mov eax, dword ptr [esi + 0x38] */
   3271     PUSH32(esp, ecx); /* 0x360C615F: push ecx */
   3272     ecx = MEM32(esi + 0x34); /* 0x360C6160: mov ecx, dword ptr [esi + 0x34] */
   3273     ebx = MEM32(0x3616FAEC); /* 0x360C6163: mov ebx, dword ptr [0x3616faec] */
   3274     edx = esi + 0x3C; /* 0x360C6169: lea edx, [esi + 0x3c] */
   3275     PUSH32(esp, edx); /* 0x360C616C: push edx */
   3276     edx = MEM32(esi + 0x30); /* 0x360C616D: mov edx, dword ptr [esi + 0x30] */
   3277     PUSH32(esp, eax); /* 0x360C6170: push eax */
   3278     eax = MEM32(esi + 0x2C); /* 0x360C6171: mov eax, dword ptr [esi + 0x2c] */
   3279     PUSH32(esp, ecx); /* 0x360C6174: push ecx */
   3280     PUSH32(esp, edx); /* 0x360C6175: push edx */
   3281     PUSH32(esp, eax); /* 0x360C6176: push eax */
   3282     ecx = esi + 0x24; /* 0x360C6177: lea ecx, [esi + 0x24] */
   3283     PUSH32(esp, ecx); /* 0x360C617A: push ecx */
   3284     edx = esi + 0x1C; /* 0x360C617B: lea edx, [esi + 0x1c] */
   3285     PUSH32(esp, edx); /* 0x360C617E: push edx */
   3286     eax = esi + 0x14; /* 0x360C617F: lea eax, [esi + 0x14] */
   3287     PUSH32(esp, eax); /* 0x360C6182: push eax */
   3288     eax = MEM32(esi); /* 0x360C6183: mov eax, dword ptr [esi] */
   3289     ecx = esi + 0xC; /* 0x360C6185: lea ecx, [esi + 0xc] */
   3290     PUSH32(esp, ecx); /* 0x360C6188: push ecx */
   3291     ecx = MEM32(ebp + 0x8); /* 0x360C6189: mov ecx, dword ptr [ebp + 8] */
   3292     edx = esi + 0x4; /* 0x360C618C: lea edx, [esi + 4] */
   3293     PUSH32(esp, edx); /* 0x360C618F: push edx */
   3294     PUSH32(esp, eax); /* 0x360C6190: push eax */
   3295     RECOMP_ICALL(ebx); /* 0x360C6191: call ebx */
   3296     RECOMP_FLAGS_IN();
   3297     PUSH32(esp, eax); /* 0x360C6193: push eax */
   3298     RECOMP_ICALL(0x3615B840u); /* 0x360C6194: call 0x3615b840 */ /* not lifted */
   3299     RECOMP_FLAGS_IN();
   3300     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3301     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3302     esp = esp + 8; /* 0x360C6199: add esp, 8 */
   3303     _flag_k = FK_ADD;
   3304     PUSH32(esp, eax); /* 0x360C619C: push eax */
   3305     RECOMP_ICALL(0x3615B840u); /* 0x360C619D: call 0x3615b840 */ /* not lifted */
   3306     RECOMP_FLAGS_IN();
   3307     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3309     esp = esp + 8; /* 0x360C61A2: add esp, 8 */
   3310     _flag_k = FK_ADD;
   3311     PUSH32(esp, eax); /* 0x360C61A5: push eax */
   3312     RECOMP_ICALL(0x3615B840u); /* 0x360C61A6: call 0x3615b840 */ /* not lifted */
   3313     RECOMP_FLAGS_IN();
   3314     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3315     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3316     esp = esp + 8; /* 0x360C61AB: add esp, 8 */
   3317     _flag_k = FK_ADD;
   3318     PUSH32(esp, eax); /* 0x360C61AE: push eax */
   3319     RECOMP_ICALL(0x3615B840u); /* 0x360C61AF: call 0x3615b840 */ /* not lifted */
   3320     RECOMP_FLAGS_IN();
   3321     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3322     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3323     esp = esp + 8; /* 0x360C61B4: add esp, 8 */
   3324     _flag_k = FK_ADD;
   3325     PUSH32(esp, eax); /* 0x360C61B7: push eax */
   3326     RECOMP_ICALL(0x3615B840u); /* 0x360C61B8: call 0x3615b840 */ /* not lifted */
   3327     RECOMP_FLAGS_IN();
   3328     edi = MEM32(0x3616FAD4); /* 0x360C61BD: mov edi, dword ptr [0x3616fad4] */
   3329     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3330     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3331     esp = esp + 8; /* 0x360C61C3: add esp, 8 */
   3332     _flag_k = FK_ADD;
   3333     ecx = eax; /* 0x360C61C6: mov ecx, eax */
   3334     RECOMP_ICALL(edi); /* 0x360C61C8: call edi */
   3335     RECOMP_FLAGS_IN();
   3336     ecx = eax; /* 0x360C61CA: mov ecx, eax */
   3337     RECOMP_ICALL(edi); /* 0x360C61CC: call edi */
   3338     RECOMP_FLAGS_IN();
   3339     ecx = eax; /* 0x360C61CE: mov ecx, eax */
   3340     RECOMP_ICALL(edi); /* 0x360C61D0: call edi */
   3341     RECOMP_FLAGS_IN();
   3342     ecx = eax; /* 0x360C61D2: mov ecx, eax */
   3343     RECOMP_ICALL(edi); /* 0x360C61D4: call edi */
   3344     RECOMP_FLAGS_IN();
   3345     PUSH32(esp, eax); /* 0x360C61D6: push eax */
   3346     RECOMP_ICALL(0x3615B840u); /* 0x360C61D7: call 0x3615b840 */ /* not lifted */
   3347     RECOMP_FLAGS_IN();
   3348     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3349     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3350     esp = esp + 8; /* 0x360C61DC: add esp, 8 */
   3351     _flag_k = FK_ADD;
   3352     ecx = eax; /* 0x360C61DF: mov ecx, eax */
   3353     RECOMP_ICALL(edi); /* 0x360C61E1: call edi */
   3354     RECOMP_FLAGS_IN();
   3355     ecx = eax; /* 0x360C61E3: mov ecx, eax */
   3356     RECOMP_ICALL(edi); /* 0x360C61E5: call edi */
   3357     RECOMP_FLAGS_IN();
   3358     ecx = eax; /* 0x360C61E7: mov ecx, eax */
   3359     RECOMP_ICALL(edi); /* 0x360C61E9: call edi */
   3360     RECOMP_FLAGS_IN();
   3361     ecx = eax; /* 0x360C61EB: mov ecx, eax */
   3362     RECOMP_ICALL(edi); /* 0x360C61ED: call edi */
   3363     RECOMP_FLAGS_IN();
   3364     PUSH32(esp, eax); /* 0x360C61EF: push eax */
   3365     RECOMP_ICALL(0x3615B840u); /* 0x360C61F0: call 0x3615b840 */ /* not lifted */
   3366     RECOMP_FLAGS_IN();
   3367     ecx = MEM32(esi + 0x5C); /* 0x360C61F5: mov ecx, dword ptr [esi + 0x5c] */
   3368     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3369     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3370     esp = esp + 8; /* 0x360C61F8: add esp, 8 */
   3371     _flag_k = FK_ADD;
   3372     PUSH32(esp, ecx); /* 0x360C61FB: push ecx */
   3373     ecx = eax; /* 0x360C61FC: mov ecx, eax */
   3374     RECOMP_ICALL(ebx); /* 0x360C61FE: call ebx */
   3375     RECOMP_FLAGS_IN();
   3376     ecx = MEM32(esi + 0x60); /* 0x360C6200: mov ecx, dword ptr [esi + 0x60] */
   3377     edx = esi + 0x6C; /* 0x360C6203: lea edx, [esi + 0x6c] */
   3378     PUSH32(esp, edx); /* 0x360C6206: push edx */
   3379     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x64u);
   3380     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3381     esi = esi + 0x64u; /* 0x360C6207: add esi, 0x64 */
   3382     _flag_k = FK_ADD;
   3383     PUSH32(esp, esi); /* 0x360C620A: push esi */
   3384     PUSH32(esp, ecx); /* 0x360C620B: push ecx */
   3385     ecx = eax; /* 0x360C620C: mov ecx, eax */
   3386     RECOMP_ICALL(ebx); /* 0x360C620E: call ebx */
   3387     RECOMP_FLAGS_IN();
   3388     PUSH32(esp, eax); /* 0x360C6210: push eax */
   3389     RECOMP_ICALL(0x3615B840u); /* 0x360C6211: call 0x3615b840 */ /* not lifted */
   3390     RECOMP_FLAGS_IN();
   3391     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3393     esp = esp + 8; /* 0x360C6216: add esp, 8 */
   3394     _flag_k = FK_ADD;
   3395     PUSH32(esp, eax); /* 0x360C6219: push eax */
   3396     RECOMP_ICALL(0x36042320u); /* 0x360C621A: call 0x36042320 */ /* not lifted */
   3397     RECOMP_FLAGS_IN();
   3398     eax = MEM32(ebp + 0x8); /* 0x360C621F: mov eax, dword ptr [ebp + 8] */
   3399     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3400     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3401     esp = esp + 8; /* 0x360C6222: add esp, 8 */
   3402     _flag_k = FK_ADD;
   3403     edi = POP32_VAL(esp); /* 0x360C6225: pop edi */
   3404     esi = POP32_VAL(esp); /* 0x360C6226: pop esi */
   3405     ebx = POP32_VAL(esp); /* 0x360C6227: pop ebx */
   3406     ebp = POP32_VAL(esp); /* 0x360C6228: pop ebp */
   3407     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6229: ret  */
   3408     RECOMP_REGS_OUT();
   3409 }
   3410 
   3411 void sub_360C6230(void) {
   3412     int _fpu_cmp = 0;
   3413     uint32_t _cf = 0;
   3414     int _df = 1;
   3415     uint32_t _flag_k = FK_NONE;
   3416     uint32_t _flag_a = 0, _flag_b = 0;
   3417     uint32_t _itail_tgt = 0;
   3418     RECOMP_REGS_LOCALS
   3419     RECOMP_ENTER(0x360C6230u);
   3420 
   3421 L_360C6230:
   3422     PUSH32(esp, ebp); /* 0x360C6230: push ebp */
   3423     ebp = esp; /* 0x360C6231: mov ebp, esp */
   3424     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3425     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3426     esp = esp - 8; /* 0x360C6233: sub esp, 8 */
   3427     _flag_k = FK_CMP;
   3428     PUSH32(esp, ebx); /* 0x360C6236: push ebx */
   3429     ebx = MEM32(ebp + 0x8); /* 0x360C6237: mov ebx, dword ptr [ebp + 8] */
   3430     ecx = ebx; /* 0x360C623A: mov ecx, ebx */
   3431     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360C623C: call dword ptr [0x3616fadc] */
   3432     RECOMP_FLAGS_IN();
   3433     /* test eax, eax */ /* 0x360C6242: test eax, eax */
   3434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3435     _cf = 0;
   3436     _flag_k = FK_TEST;
   3437     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6261; /* 0x360C6244: jne 0x360c6261 */
   3438 L_360C6246:
   3439     PUSH32(esp, 0x361C904Cu); /* 0x360C6246: push 0x361c904c */
   3440     ecx = ebp + (-0x8); /* 0x360C624B: lea ecx, [ebp - 8] */
   3441     RECOMP_ICALL(0x36008EF0u); /* 0x360C624E: call 0x36008ef0 */ /* not lifted */
   3442     RECOMP_FLAGS_IN();
   3443     PUSH32(esp, 0x36184170u); /* 0x360C6253: push 0x36184170 */
   3444     eax = ebp + (-0x8); /* 0x360C6258: lea eax, [ebp - 8] */
   3445     PUSH32(esp, eax); /* 0x360C625B: push eax */
   3446     RECOMP_ICALL(0x3615FD70u); /* 0x360C625C: call 0x3615fd70 */ /* not lifted */
   3447     RECOMP_FLAGS_IN();
   3448 L_360C6261:
   3449     PUSH32(esp, esi); /* 0x360C6261: push esi */
   3450     PUSH32(esp, edi); /* 0x360C6262: push edi */
   3451     ecx = ebp + 0x8; /* 0x360C6263: lea ecx, [ebp + 8] */
   3452     PUSH32(esp, ecx); /* 0x360C6266: push ecx */
   3453     ecx = ebx; /* 0x360C6267: mov ecx, ebx */
   3454     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360C6269: call dword ptr [0x3616fa8c] */
   3455     RECOMP_FLAGS_IN();
   3456     esi = MEM32(ebp + 0xC); /* 0x360C626F: mov esi, dword ptr [ebp + 0xc] */
   3457     edx = MEM32(ebp + 0x8); /* 0x360C6272: mov edx, dword ptr [ebp + 8] */
   3458     MEM32(esi) = edx; /* 0x360C6275: mov dword ptr [esi], edx */
   3459     eax = esi + 0x54; /* 0x360C6277: lea eax, [esi + 0x54] */
   3460     PUSH32(esp, eax); /* 0x360C627A: push eax */
   3461     ecx = esi + 0x50; /* 0x360C627B: lea ecx, [esi + 0x50] */
   3462     PUSH32(esp, ecx); /* 0x360C627E: push ecx */
   3463     edx = esi + 0x4C; /* 0x360C627F: lea edx, [esi + 0x4c] */
   3464     PUSH32(esp, edx); /* 0x360C6282: push edx */
   3465     eax = esi + 0x48; /* 0x360C6283: lea eax, [esi + 0x48] */
   3466     PUSH32(esp, eax); /* 0x360C6286: push eax */
   3467     ecx = esi + 0x44; /* 0x360C6287: lea ecx, [esi + 0x44] */
   3468     PUSH32(esp, ecx); /* 0x360C628A: push ecx */
   3469     edx = esi + 0x3C; /* 0x360C628B: lea edx, [esi + 0x3c] */
   3470     PUSH32(esp, edx); /* 0x360C628E: push edx */
   3471     eax = esi + 0x38; /* 0x360C628F: lea eax, [esi + 0x38] */
   3472     PUSH32(esp, eax); /* 0x360C6292: push eax */
   3473     ecx = esi + 0x34; /* 0x360C6293: lea ecx, [esi + 0x34] */
   3474     PUSH32(esp, ecx); /* 0x360C6296: push ecx */
   3475     edx = esi + 0x30; /* 0x360C6297: lea edx, [esi + 0x30] */
   3476     PUSH32(esp, edx); /* 0x360C629A: push edx */
   3477     eax = esi + 0x2C; /* 0x360C629B: lea eax, [esi + 0x2c] */
   3478     PUSH32(esp, eax); /* 0x360C629E: push eax */
   3479     ecx = esi + 0x24; /* 0x360C629F: lea ecx, [esi + 0x24] */
   3480     PUSH32(esp, ecx); /* 0x360C62A2: push ecx */
   3481     edx = esi + 0x1C; /* 0x360C62A3: lea edx, [esi + 0x1c] */
   3482     PUSH32(esp, edx); /* 0x360C62A6: push edx */
   3483     eax = esi + 0x14; /* 0x360C62A7: lea eax, [esi + 0x14] */
   3484     PUSH32(esp, eax); /* 0x360C62AA: push eax */
   3485     ecx = esi + 0xC; /* 0x360C62AB: lea ecx, [esi + 0xc] */
   3486     PUSH32(esp, ecx); /* 0x360C62AE: push ecx */
   3487     edx = esi + 0x4; /* 0x360C62AF: lea edx, [esi + 4] */
   3488     PUSH32(esp, edx); /* 0x360C62B2: push edx */
   3489     PUSH32(esp, ebx); /* 0x360C62B3: push ebx */
   3490     RECOMP_ICALL(0x3615B870u); /* 0x360C62B4: call 0x3615b870 */ /* not lifted */
   3491     RECOMP_FLAGS_IN();
   3492     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3494     esp = esp + 8; /* 0x360C62B9: add esp, 8 */
   3495     _flag_k = FK_ADD;
   3496     PUSH32(esp, eax); /* 0x360C62BC: push eax */
   3497     RECOMP_ICALL(0x3615B870u); /* 0x360C62BD: call 0x3615b870 */ /* not lifted */
   3498     RECOMP_FLAGS_IN();
   3499     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3501     esp = esp + 8; /* 0x360C62C2: add esp, 8 */
   3502     _flag_k = FK_ADD;
   3503     PUSH32(esp, eax); /* 0x360C62C5: push eax */
   3504     RECOMP_ICALL(0x3615B870u); /* 0x360C62C6: call 0x3615b870 */ /* not lifted */
   3505     RECOMP_FLAGS_IN();
   3506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3507     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3508     esp = esp + 8; /* 0x360C62CB: add esp, 8 */
   3509     _flag_k = FK_ADD;
   3510     PUSH32(esp, eax); /* 0x360C62CE: push eax */
   3511     RECOMP_ICALL(0x3615B870u); /* 0x360C62CF: call 0x3615b870 */ /* not lifted */
   3512     RECOMP_FLAGS_IN();
   3513     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3514     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3515     esp = esp + 8; /* 0x360C62D4: add esp, 8 */
   3516     _flag_k = FK_ADD;
   3517     PUSH32(esp, eax); /* 0x360C62D7: push eax */
   3518     RECOMP_ICALL(0x3615B870u); /* 0x360C62D8: call 0x3615b870 */ /* not lifted */
   3519     RECOMP_FLAGS_IN();
   3520     edi = MEM32(0x3616FAD0); /* 0x360C62DD: mov edi, dword ptr [0x3616fad0] */
   3521     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3523     esp = esp + 8; /* 0x360C62E3: add esp, 8 */
   3524     _flag_k = FK_ADD;
   3525     ecx = eax; /* 0x360C62E6: mov ecx, eax */
   3526     RECOMP_ICALL(edi); /* 0x360C62E8: call edi */
   3527     RECOMP_FLAGS_IN();
   3528     ecx = eax; /* 0x360C62EA: mov ecx, eax */
   3529     RECOMP_ICALL(edi); /* 0x360C62EC: call edi */
   3530     RECOMP_FLAGS_IN();
   3531     ecx = eax; /* 0x360C62EE: mov ecx, eax */
   3532     RECOMP_ICALL(edi); /* 0x360C62F0: call edi */
   3533     RECOMP_FLAGS_IN();
   3534     ecx = eax; /* 0x360C62F2: mov ecx, eax */
   3535     RECOMP_ICALL(edi); /* 0x360C62F4: call edi */
   3536     RECOMP_FLAGS_IN();
   3537     PUSH32(esp, eax); /* 0x360C62F6: push eax */
   3538     RECOMP_ICALL(0x3615B870u); /* 0x360C62F7: call 0x3615b870 */ /* not lifted */
   3539     RECOMP_FLAGS_IN();
   3540     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3541     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3542     esp = esp + 8; /* 0x360C62FC: add esp, 8 */
   3543     _flag_k = FK_ADD;
   3544     ecx = eax; /* 0x360C62FF: mov ecx, eax */
   3545     RECOMP_ICALL(edi); /* 0x360C6301: call edi */
   3546     RECOMP_FLAGS_IN();
   3547     ecx = eax; /* 0x360C6303: mov ecx, eax */
   3548     RECOMP_ICALL(edi); /* 0x360C6305: call edi */
   3549     RECOMP_FLAGS_IN();
   3550     ecx = eax; /* 0x360C6307: mov ecx, eax */
   3551     RECOMP_ICALL(edi); /* 0x360C6309: call edi */
   3552     RECOMP_FLAGS_IN();
   3553     ecx = eax; /* 0x360C630B: mov ecx, eax */
   3554     RECOMP_ICALL(edi); /* 0x360C630D: call edi */
   3555     RECOMP_FLAGS_IN();
   3556     PUSH32(esp, eax); /* 0x360C630F: push eax */
   3557     RECOMP_ICALL(0x3615B870u); /* 0x360C6310: call 0x3615b870 */ /* not lifted */
   3558     RECOMP_FLAGS_IN();
   3559     edi = MEM32(0x3616FA8C); /* 0x360C6315: mov edi, dword ptr [0x3616fa8c] */
   3560     ecx = esi + 0x5C; /* 0x360C631B: lea ecx, [esi + 0x5c] */
   3561     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3562     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3563     esp = esp + 8; /* 0x360C631E: add esp, 8 */
   3564     _flag_k = FK_ADD;
   3565     PUSH32(esp, ecx); /* 0x360C6321: push ecx */
   3566     ecx = eax; /* 0x360C6322: mov ecx, eax */
   3567     RECOMP_ICALL(edi); /* 0x360C6324: call edi */
   3568     RECOMP_FLAGS_IN();
   3569     edx = esi + 0x6C; /* 0x360C6326: lea edx, [esi + 0x6c] */
   3570     PUSH32(esp, edx); /* 0x360C6329: push edx */
   3571     ecx = esi + 0x64; /* 0x360C632A: lea ecx, [esi + 0x64] */
   3572     PUSH32(esp, ecx); /* 0x360C632D: push ecx */
   3573     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x60u);
   3574     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3575     esi = esi + 0x60u; /* 0x360C632E: add esi, 0x60 */
   3576     _flag_k = FK_ADD;
   3577     PUSH32(esp, esi); /* 0x360C6331: push esi */
   3578     ecx = eax; /* 0x360C6332: mov ecx, eax */
   3579     RECOMP_ICALL(edi); /* 0x360C6334: call edi */
   3580     RECOMP_FLAGS_IN();
   3581     PUSH32(esp, eax); /* 0x360C6336: push eax */
   3582     RECOMP_ICALL(0x3615B870u); /* 0x360C6337: call 0x3615b870 */ /* not lifted */
   3583     RECOMP_FLAGS_IN();
   3584     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3586     esp = esp + 8; /* 0x360C633C: add esp, 8 */
   3587     _flag_k = FK_ADD;
   3588     PUSH32(esp, eax); /* 0x360C633F: push eax */
   3589     RECOMP_ICALL(0x36042250u); /* 0x360C6340: call 0x36042250 */ /* not lifted */
   3590     RECOMP_FLAGS_IN();
   3591     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3592     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3593     esp = esp + 8; /* 0x360C6345: add esp, 8 */
   3594     _flag_k = FK_ADD;
   3595     edi = POP32_VAL(esp); /* 0x360C6348: pop edi */
   3596     esi = POP32_VAL(esp); /* 0x360C6349: pop esi */
   3597     eax = ebx; /* 0x360C634A: mov eax, ebx */
   3598     ebx = POP32_VAL(esp); /* 0x360C634C: pop ebx */
   3599     esp = ebp; /* 0x360C634D: mov esp, ebp */
   3600     ebp = POP32_VAL(esp); /* 0x360C634F: pop ebp */
   3601     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6350: ret  */
   3602     RECOMP_REGS_OUT();
   3603 }
   3604 
   3605 void sub_360C6360(void) {
   3606     int _fpu_cmp = 0;
   3607     uint32_t _cf = 0;
   3608     int _df = 1;
   3609     uint32_t _flag_k = FK_NONE;
   3610     uint32_t _flag_a = 0, _flag_b = 0;
   3611     uint32_t _itail_tgt = 0;
   3612     RECOMP_REGS_LOCALS
   3613     RECOMP_ENTER(0x360C6360u);
   3614 
   3615 L_360C6360:
   3616     PUSH32(esp, ebp); /* 0x360C6360: push ebp */
   3617     ebp = esp; /* 0x360C6361: mov ebp, esp */
   3618     PUSH32(esp, ebx); /* 0x360C6363: push ebx */
   3619     ebx = MEM32(ebp + 0x8); /* 0x360C6364: mov ebx, dword ptr [ebp + 8] */
   3620     PUSH32(esp, esi); /* 0x360C6367: push esi */
   3621     PUSH32(esp, edi); /* 0x360C6368: push edi */
   3622     edi = MEM32(ebp + 0xC); /* 0x360C6369: mov edi, dword ptr [ebp + 0xc] */
   3623     eax = MEM32(edi + 0x8); /* 0x360C636C: mov eax, dword ptr [edi + 8] */
   3624     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3625     eax = eax + 1; /* 0x360C636F: inc eax */
   3626     _flag_k = FK_INC;
   3627     ecx = eax; /* 0x360C6370: mov ecx, eax */
   3628     if (6u) _cf = (((ecx) >> 26) & 1u); /* 0x360C6372: shl ecx, 6 */
   3629     if (6u) { _flag_a = recomp_flags_pack((ecx << 6u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3630     ecx = ecx << 6u; /* 0x360C6372: shl ecx, 6 */
   3631     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3633     ecx = ecx - eax; /* 0x360C6375: sub ecx, eax */
   3634     _flag_k = FK_CMP;
   3635     if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x360C6377: shl ecx, 4 */
   3636     if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3637     ecx = ecx << 4u; /* 0x360C6377: shl ecx, 4 */
   3638     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3639     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3640     ecx = ecx + eax; /* 0x360C637A: add ecx, eax */
   3641     _flag_k = FK_ADD;
   3642     PUSH32(esp, ecx); /* 0x360C637C: push ecx */
   3643     ecx = ebx; /* 0x360C637D: mov ecx, ebx */
   3644     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x360C637F: call dword ptr [0x3616faec] */
   3645     RECOMP_FLAGS_IN();
   3646     eax = MEM32(edi + 0x4); /* 0x360C6385: mov eax, dword ptr [edi + 4] */
   3647     esi = MEM32(eax); /* 0x360C6388: mov esi, dword ptr [eax] */
   3648     /* cmp esi, eax */ /* 0x360C638A: cmp esi, eax */
   3649     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3651     _flag_k = FK_CMP;
   3652     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C63A4; /* 0x360C638C: je 0x360c63a4 */
   3653 L_360C638E:
   3654     edx = MEM32(esi + 0x8); /* 0x360C638E: mov edx, dword ptr [esi + 8] */
   3655     PUSH32(esp, edx); /* 0x360C6391: push edx */
   3656     PUSH32(esp, ebx); /* 0x360C6392: push ebx */
   3657     RECOMP_ICALL(0x360C6140u); /* 0x360C6393: call 0x360c6140 */ /* not lifted */
   3658     RECOMP_FLAGS_IN();
   3659     esi = MEM32(esi); /* 0x360C6398: mov esi, dword ptr [esi] */
   3660     eax = MEM32(edi + 0x4); /* 0x360C639A: mov eax, dword ptr [edi + 4] */
   3661     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3662     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3663     esp = esp + 8; /* 0x360C639D: add esp, 8 */
   3664     _flag_k = FK_ADD;
   3665     /* cmp esi, eax */ /* 0x360C63A0: cmp esi, eax */
   3666     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   3667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3668     _flag_k = FK_CMP;
   3669     RECOMP_BACKEDGE();
   3670     if (CMP_NE(_flag_a, _flag_b)) goto L_360C638E; /* 0x360C63A2: jne 0x360c638e */
   3671 L_360C63A4:
   3672     edi = POP32_VAL(esp); /* 0x360C63A4: pop edi */
   3673     esi = POP32_VAL(esp); /* 0x360C63A5: pop esi */
   3674     eax = ebx; /* 0x360C63A6: mov eax, ebx */
   3675     ebx = POP32_VAL(esp); /* 0x360C63A8: pop ebx */
   3676     ebp = POP32_VAL(esp); /* 0x360C63A9: pop ebp */
   3677     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C63AA: ret  */
   3678     RECOMP_REGS_OUT();
   3679 }
   3680 
   3681 void sub_360C63B0(void) {
   3682     int _fpu_cmp = 0;
   3683     uint32_t _cf = 0;
   3684     int _df = 1;
   3685     uint32_t _flag_k = FK_NONE;
   3686     uint32_t _flag_a = 0, _flag_b = 0;
   3687     uint32_t _itail_tgt = 0;
   3688     RECOMP_REGS_LOCALS
   3689     RECOMP_ENTER(0x360C63B0u);
   3690 
   3691 L_360C63B0:
   3692     PUSH32(esp, ebp); /* 0x360C63B0: push ebp */
   3693     ebp = esp; /* 0x360C63B1: mov ebp, esp */
   3694     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C63B3: push -1 */
   3695     PUSH32(esp, 0x3616773Bu); /* 0x360C63B5: push 0x3616773b */
   3696     eax = MEM32(FS_BASE + (0)); /* 0x360C63BA: mov eax, dword ptr fs:[0] */
   3697     PUSH32(esp, eax); /* 0x360C63C0: push eax */
   3698     MEM32(FS_BASE + (0)) = esp; /* 0x360C63C1: mov dword ptr fs:[0], esp */
   3699     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   3700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3701     esp = esp - 0x10u; /* 0x360C63C8: sub esp, 0x10 */
   3702     _flag_k = FK_CMP;
   3703     ecx = MEM32(ebp + 0x8); /* 0x360C63CB: mov ecx, dword ptr [ebp + 8] */
   3704     PUSH32(esp, esi); /* 0x360C63CE: push esi */
   3705     eax = ebp + (-0x10); /* 0x360C63CF: lea eax, [ebp - 0x10] */
   3706     PUSH32(esp, eax); /* 0x360C63D2: push eax */
   3707     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360C63D3: call dword ptr [0x3616fa8c] */
   3708     RECOMP_FLAGS_IN();
   3709     ecx = MEM32(ebp + (-0x10)); /* 0x360C63D9: mov ecx, dword ptr [ebp - 0x10] */
   3710     eax = ecx; /* 0x360C63DC: mov eax, ecx */
   3711     edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x360C63DE: cdq  */
   3712     esi = 0x3F1u; /* 0x360C63DF: mov esi, 0x3f1 */
   3713     { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)esi; /* 0x360C63E4: idiv esi */
   3714       if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); }
   3715       else { eax = 0; edx = 0; } }
   3716     /* test edx, edx */ /* 0x360C63E6: test edx, edx */
   3717     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3718     _cf = 0;
   3719     _flag_k = FK_TEST;
   3720     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C64B9; /* 0x360C63E8: jne 0x360c64b9 */
   3721 L_360C63EE:
   3722     /* test ecx, ecx */ /* 0x360C63EE: test ecx, ecx */
   3723     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3724     _cf = 0;
   3725     _flag_k = FK_TEST;
   3726     if (TEST_LE(_flag_a, _flag_b)) goto L_360C64B9; /* 0x360C63F0: jle 0x360c64b9 */
   3727 L_360C63F6:
   3728     eax = 0x81E722C3u; /* 0x360C63F6: mov eax, 0x81e722c3 */
   3729     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x360C63FB: imul ecx */
   3730       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   3731       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   3732     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3734     edx = edx + ecx; /* 0x360C63FD: add edx, ecx */
   3735     _flag_k = FK_ADD;
   3736     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x360C63FF: sar edx, 9 */
   3737     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3738     edx = (uint32_t)((int32_t)edx >> 9u);
   3739     ecx = edx; /* 0x360C6402: mov ecx, edx */
   3740     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x360C6404: shr ecx, 0x1f */
   3741     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3742     ecx = ecx >> 31u; /* 0x360C6404: shr ecx, 0x1f */
   3743     edx = edx + ecx + (-0x1); /* 0x360C6407: lea edx, [edx + ecx - 1] */
   3744     /* test edx, edx */ /* 0x360C640B: test edx, edx */
   3745     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   3746     _cf = 0;
   3747     _flag_k = FK_TEST;
   3748     MEM32(ebp + (-0x10)) = edx; /* 0x360C640D: mov dword ptr [ebp - 0x10], edx */
   3749     MEM32(ebp + (-0x14)) = 0; /* 0x360C6410: mov dword ptr [ebp - 0x14], 0 */
   3750     if (TEST_LE(_flag_a, _flag_b)) goto L_360C64A7; /* 0x360C6417: jle 0x360c64a7 */
   3751 L_360C641D:
   3752     PUSH32(esp, ebx); /* 0x360C641D: push ebx */
   3753     PUSH32(esp, edi); /* 0x360C641E: push edi */
   3754 L_360C641F:
   3755     PUSH32(esp, 0x8Cu); /* 0x360C641F: push 0x8c */
   3756     RECOMP_ICALL(0x3615FD6Au); /* 0x360C6424: call 0x3615fd6a */ /* not lifted */
   3757     RECOMP_FLAGS_IN();
   3758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3760     esp = esp + 4; /* 0x360C6429: add esp, 4 */
   3761     _flag_k = FK_ADD;
   3762     MEM32(ebp + (-0x18)) = eax; /* 0x360C642C: mov dword ptr [ebp - 0x18], eax */
   3763     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3764     ebx = 0; /* 0x360C642F: xor ebx, ebx */
   3765     _cf = 0;
   3766     _flag_k = FK_TEST;
   3767     /* cmp eax, ebx */ /* 0x360C6431: cmp eax, ebx */
   3768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3770     _flag_k = FK_CMP;
   3771     MEM32(ebp + (-0x4)) = ebx; /* 0x360C6433: mov dword ptr [ebp - 4], ebx */
   3772     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6441; /* 0x360C6436: je 0x360c6441 */
   3773 L_360C6438:
   3774     ecx = eax; /* 0x360C6438: mov ecx, eax */
   3775     RECOMP_ICALL(0x360C6070u); /* 0x360C643A: call 0x360c6070 */ /* not lifted */
   3776     RECOMP_FLAGS_IN();
   3777     ebx = eax; /* 0x360C643F: mov ebx, eax */
   3778 L_360C6441:
   3779     edx = MEM32(ebp + 0x8); /* 0x360C6441: mov edx, dword ptr [ebp + 8] */
   3780     PUSH32(esp, ebx); /* 0x360C6444: push ebx */
   3781     PUSH32(esp, edx); /* 0x360C6445: push edx */
   3782     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360C6446: mov dword ptr [ebp - 4], 0xffffffff */
   3783     RECOMP_ICALL(0x360C6230u); /* 0x360C644D: call 0x360c6230 */ /* not lifted */
   3784     RECOMP_FLAGS_IN();
   3785     eax = MEM32(ebp + 0xC); /* 0x360C6452: mov eax, dword ptr [ebp + 0xc] */
   3786     esi = MEM32(eax + 0x4); /* 0x360C6455: mov esi, dword ptr [eax + 4] */
   3787     edi = MEM32(esi + 0x4); /* 0x360C6458: mov edi, dword ptr [esi + 4] */
   3788     PUSH32(esp, 0xCu); /* 0x360C645B: push 0xc */
   3789     RECOMP_ICALL(0x3615FD6Au); /* 0x360C645D: call 0x3615fd6a */ /* not lifted */
   3790     RECOMP_FLAGS_IN();
   3791     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3792     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3793     esp = esp + 0xCu; /* 0x360C6462: add esp, 0xc */
   3794     _flag_k = FK_ADD;
   3795     /* test esi, esi */ /* 0x360C6465: test esi, esi */
   3796     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3797     _cf = 0;
   3798     _flag_k = FK_TEST;
   3799     ecx = esi; /* 0x360C6467: mov ecx, esi */
   3800     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C646D; /* 0x360C6469: jne 0x360c646d */
   3801 L_360C646B:
   3802     ecx = eax; /* 0x360C646B: mov ecx, eax */
   3803 L_360C646D:
   3804     /* test edi, edi */ /* 0x360C646D: test edi, edi */
   3805     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3806     _cf = 0;
   3807     _flag_k = FK_TEST;
   3808     MEM32(eax) = ecx; /* 0x360C646F: mov dword ptr [eax], ecx */
   3809     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6475; /* 0x360C6471: jne 0x360c6475 */
   3810 L_360C6473:
   3811     edi = eax; /* 0x360C6473: mov edi, eax */
   3812 L_360C6475:
   3813     MEM32(eax + 0x4) = edi; /* 0x360C6475: mov dword ptr [eax + 4], edi */
   3814     MEM32(esi + 0x4) = eax; /* 0x360C6478: mov dword ptr [esi + 4], eax */
   3815     ecx = MEM32(eax + 0x4); /* 0x360C647B: mov ecx, dword ptr [eax + 4] */
   3816     MEM32(ecx) = eax; /* 0x360C647E: mov dword ptr [ecx], eax */
   3817     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   3818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3819     eax = eax + 8; /* 0x360C6480: add eax, 8 */
   3820     _flag_k = FK_ADD;
   3821     /* test eax, eax */ /* 0x360C6483: test eax, eax */
   3822     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3823     _cf = 0;
   3824     _flag_k = FK_TEST;
   3825     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6489; /* 0x360C6485: je 0x360c6489 */
   3826 L_360C6487:
   3827     MEM32(eax) = ebx; /* 0x360C6487: mov dword ptr [eax], ebx */
   3828 L_360C6489:
   3829     eax = MEM32(ebp + 0xC); /* 0x360C6489: mov eax, dword ptr [ebp + 0xc] */
   3830     esi = MEM32(eax + 0x8); /* 0x360C648C: mov esi, dword ptr [eax + 8] */
   3831     ecx = MEM32(ebp + (-0x10)); /* 0x360C648F: mov ecx, dword ptr [ebp - 0x10] */
   3832     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3833     esi = esi + 1; /* 0x360C6492: inc esi */
   3834     _flag_k = FK_INC;
   3835     MEM32(eax + 0x8) = esi; /* 0x360C6493: mov dword ptr [eax + 8], esi */
   3836     eax = MEM32(ebp + (-0x14)); /* 0x360C6496: mov eax, dword ptr [ebp - 0x14] */
   3837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3838     eax = eax + 1; /* 0x360C6499: inc eax */
   3839     _flag_k = FK_INC;
   3840     /* cmp eax, ecx */ /* 0x360C649A: cmp eax, ecx */
   3841     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3843     _flag_k = FK_CMP;
   3844     MEM32(ebp + (-0x14)) = eax; /* 0x360C649C: mov dword ptr [ebp - 0x14], eax */
   3845     RECOMP_BACKEDGE();
   3846     if (CMP_L(_flag_a, _flag_b)) goto L_360C641F; /* 0x360C649F: jl 0x360c641f */
   3847 L_360C64A5:
   3848     edi = POP32_VAL(esp); /* 0x360C64A5: pop edi */
   3849     ebx = POP32_VAL(esp); /* 0x360C64A6: pop ebx */
   3850 L_360C64A7:
   3851     ecx = MEM32(ebp + (-0xC)); /* 0x360C64A7: mov ecx, dword ptr [ebp - 0xc] */
   3852     eax = MEM32(ebp + 0x8); /* 0x360C64AA: mov eax, dword ptr [ebp + 8] */
   3853     esi = POP32_VAL(esp); /* 0x360C64AD: pop esi */
   3854     MEM32(FS_BASE + (0)) = ecx; /* 0x360C64AE: mov dword ptr fs:[0], ecx */
   3855     esp = ebp; /* 0x360C64B5: mov esp, ebp */
   3856     ebp = POP32_VAL(esp); /* 0x360C64B7: pop ebp */
   3857     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C64B8: ret  */
   3858 L_360C64B9:
   3859     PUSH32(esp, 0x361C9060u); /* 0x360C64B9: push 0x361c9060 */
   3860     ecx = ebp + (-0x1C); /* 0x360C64BE: lea ecx, [ebp - 0x1c] */
   3861     RECOMP_ICALL(0x36008EF0u); /* 0x360C64C1: call 0x36008ef0 */ /* not lifted */
   3862     RECOMP_FLAGS_IN();
   3863     PUSH32(esp, 0x36184170u); /* 0x360C64C6: push 0x36184170 */
   3864     edx = ebp + (-0x1C); /* 0x360C64CB: lea edx, [ebp - 0x1c] */
   3865     PUSH32(esp, edx); /* 0x360C64CE: push edx */
   3866     RECOMP_ICALL(0x3615FD70u); /* 0x360C64CF: call 0x3615fd70 */ /* not lifted */
   3867     RECOMP_FLAGS_IN();
   3868     /* nop */ /* 0x360C64D4: nop  */
   3869     /* nop */ /* 0x360C64D5: nop  */
   3870     /* nop */ /* 0x360C64D6: nop  */
   3871     /* nop */ /* 0x360C64D7: nop  */
   3872     /* nop */ /* 0x360C64D8: nop  */
   3873     /* nop */ /* 0x360C64D9: nop  */
   3874     /* nop */ /* 0x360C64DA: nop  */
   3875     /* nop */ /* 0x360C64DB: nop  */
   3876     /* nop */ /* 0x360C64DC: nop  */
   3877     /* nop */ /* 0x360C64DD: nop  */
   3878     /* nop */ /* 0x360C64DE: nop  */
   3879     /* nop */ /* 0x360C64DF: nop  */
   3880     PUSH32(esp, ebp); /* 0x360C64E0: push ebp */
   3881     ebp = esp; /* 0x360C64E1: mov ebp, esp */
   3882     PUSH32(esp, esi); /* 0x360C64E3: push esi */
   3883     esi = MEM32(ebp + 0x8); /* 0x360C64E4: mov esi, dword ptr [ebp + 8] */
   3884     PUSH32(esp, edi); /* 0x360C64E7: push edi */
   3885     edi = ecx + 0x3C; /* 0x360C64E8: lea edi, [ecx + 0x3c] */
   3886     ecx = 6; /* 0x360C64EB: mov ecx, 6 */
   3887     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360C64F0: 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; }
   3888     edi = POP32_VAL(esp); /* 0x360C64F2: pop edi */
   3889     esi = POP32_VAL(esp); /* 0x360C64F3: pop esi */
   3890     ebp = POP32_VAL(esp); /* 0x360C64F4: pop ebp */
   3891     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C64F5: ret 4 */
   3892     RECOMP_REGS_OUT();
   3893 }
   3894 
   3895 void sub_360C64E0(void) {
   3896     int _fpu_cmp = 0;
   3897     uint32_t _cf = 0;
   3898     int _df = 1;
   3899     uint32_t _flag_k = FK_NONE;
   3900     uint32_t _flag_a = 0, _flag_b = 0;
   3901     uint32_t _itail_tgt = 0;
   3902     RECOMP_REGS_LOCALS
   3903     RECOMP_ENTER(0x360C64E0u);
   3904 
   3905 L_360C64E0:
   3906     PUSH32(esp, ebp); /* 0x360C64E0: push ebp */
   3907     ebp = esp; /* 0x360C64E1: mov ebp, esp */
   3908     PUSH32(esp, esi); /* 0x360C64E3: push esi */
   3909     esi = MEM32(ebp + 0x8); /* 0x360C64E4: mov esi, dword ptr [ebp + 8] */
   3910     PUSH32(esp, edi); /* 0x360C64E7: push edi */
   3911     edi = ecx + 0x3C; /* 0x360C64E8: lea edi, [ecx + 0x3c] */
   3912     ecx = 6; /* 0x360C64EB: mov ecx, 6 */
   3913     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360C64F0: 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; }
   3914     edi = POP32_VAL(esp); /* 0x360C64F2: pop edi */
   3915     esi = POP32_VAL(esp); /* 0x360C64F3: pop esi */
   3916     ebp = POP32_VAL(esp); /* 0x360C64F4: pop ebp */
   3917     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C64F5: ret 4 */
   3918     RECOMP_REGS_OUT();
   3919 }
   3920 
   3921 void sub_360C6500(void) {
   3922     int _fpu_cmp = 0;
   3923     uint32_t _cf = 0;
   3924     int _df = 1;
   3925     uint32_t _flag_k = FK_NONE;
   3926     uint32_t _flag_a = 0, _flag_b = 0;
   3927     uint32_t _itail_tgt = 0;
   3928     RECOMP_REGS_LOCALS
   3929     RECOMP_ENTER(0x360C6500u);
   3930 
   3931 L_360C6500:
   3932     PUSH32(esp, ebp); /* 0x360C6500: push ebp */
   3933     ebp = esp; /* 0x360C6501: mov ebp, esp */
   3934     eax = MEM32(ebp + 0x8); /* 0x360C6503: mov eax, dword ptr [ebp + 8] */
   3935     edx = MEM32(eax); /* 0x360C6506: mov edx, dword ptr [eax] */
   3936     MEM32(ecx + 0x54) = edx; /* 0x360C6508: mov dword ptr [ecx + 0x54], edx */
   3937     eax = MEM32(eax + 0x4); /* 0x360C650B: mov eax, dword ptr [eax + 4] */
   3938     MEM32(ecx + 0x58) = eax; /* 0x360C650E: mov dword ptr [ecx + 0x58], eax */
   3939     ebp = POP32_VAL(esp); /* 0x360C6511: pop ebp */
   3940     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6512: ret 4 */
   3941     RECOMP_REGS_OUT();
   3942 }
   3943 
   3944 void sub_360C6520(void) {
   3945     int _fpu_cmp = 0;
   3946     uint32_t _cf = 0;
   3947     int _df = 1;
   3948     uint32_t _flag_k = FK_NONE;
   3949     uint32_t _flag_a = 0, _flag_b = 0;
   3950     uint32_t _itail_tgt = 0;
   3951     RECOMP_REGS_LOCALS
   3952     RECOMP_ENTER(0x360C6520u);
   3953 
   3954 L_360C6520:
   3955     PUSH32(esp, ebp); /* 0x360C6520: push ebp */
   3956     ebp = esp; /* 0x360C6521: mov ebp, esp */
   3957     eax = MEM32(ebp + 0x8); /* 0x360C6523: mov eax, dword ptr [ebp + 8] */
   3958     MEM32(ecx + 0x5C) = eax; /* 0x360C6526: mov dword ptr [ecx + 0x5c], eax */
   3959     ebp = POP32_VAL(esp); /* 0x360C6529: pop ebp */
   3960     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C652A: ret 4 */
   3961     RECOMP_REGS_OUT();
   3962 }
   3963 
   3964 void sub_360C6530(void) {
   3965     int _fpu_cmp = 0;
   3966     uint32_t _cf = 0;
   3967     int _df = 1;
   3968     uint32_t _flag_k = FK_NONE;
   3969     uint32_t _flag_a = 0, _flag_b = 0;
   3970     uint32_t _itail_tgt = 0;
   3971     RECOMP_REGS_LOCALS
   3972     RECOMP_ENTER(0x360C6530u);
   3973 
   3974 L_360C6530:
   3975     PUSH32(esp, ebp); /* 0x360C6530: push ebp */
   3976     ebp = esp; /* 0x360C6531: mov ebp, esp */
   3977     eax = MEM32(ebp + 0x8); /* 0x360C6533: mov eax, dword ptr [ebp + 8] */
   3978     MEM32(ecx + 0x60) = eax; /* 0x360C6536: mov dword ptr [ecx + 0x60], eax */
   3979     ebp = POP32_VAL(esp); /* 0x360C6539: pop ebp */
   3980     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C653A: ret 4 */
   3981     RECOMP_REGS_OUT();
   3982 }
   3983 
   3984 void sub_360C6540(void) {
   3985     int _fpu_cmp = 0;
   3986     uint32_t _cf = 0;
   3987     int _df = 1;
   3988     uint32_t _flag_k = FK_NONE;
   3989     uint32_t _flag_a = 0, _flag_b = 0;
   3990     uint32_t _itail_tgt = 0;
   3991     RECOMP_REGS_LOCALS
   3992     RECOMP_ENTER(0x360C6540u);
   3993 
   3994 L_360C6540:
   3995     PUSH32(esp, ebp); /* 0x360C6540: push ebp */
   3996     ebp = esp; /* 0x360C6541: mov ebp, esp */
   3997     eax = MEM32(ebp + 0x8); /* 0x360C6543: mov eax, dword ptr [ebp + 8] */
   3998     MEM32(ecx) = eax; /* 0x360C6546: mov dword ptr [ecx], eax */
   3999     ebp = POP32_VAL(esp); /* 0x360C6548: pop ebp */
   4000     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6549: ret 4 */
   4001     RECOMP_REGS_OUT();
   4002 }
   4003 
   4004 void sub_360C6550(void) {
   4005     int _fpu_cmp = 0;
   4006     uint32_t _cf = 0;
   4007     int _df = 1;
   4008     uint32_t _flag_k = FK_NONE;
   4009     uint32_t _flag_a = 0, _flag_b = 0;
   4010     uint32_t _itail_tgt = 0;
   4011     RECOMP_REGS_LOCALS
   4012     RECOMP_ENTER(0x360C6550u);
   4013 
   4014 L_360C6550:
   4015     eax = MEM32(ecx); /* 0x360C6550: mov eax, dword ptr [ecx] */
   4016     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6552: ret  */
   4017     RECOMP_REGS_OUT();
   4018 }
   4019 
   4020 void sub_360C6560(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(0x360C6560u);
   4029 
   4030 L_360C6560:
   4031     PUSH32(esp, ebp); /* 0x360C6560: push ebp */
   4032     ebp = esp; /* 0x360C6561: mov ebp, esp */
   4033     eax = MEM32(ebp + 0x8); /* 0x360C6563: mov eax, dword ptr [ebp + 8] */
   4034     edx = MEM32(eax); /* 0x360C6566: mov edx, dword ptr [eax] */
   4035     MEM32(ecx + 0x4) = edx; /* 0x360C6568: mov dword ptr [ecx + 4], edx */
   4036     eax = MEM32(eax + 0x4); /* 0x360C656B: mov eax, dword ptr [eax + 4] */
   4037     MEM32(ecx + 0x8) = eax; /* 0x360C656E: mov dword ptr [ecx + 8], eax */
   4038     ebp = POP32_VAL(esp); /* 0x360C6571: pop ebp */
   4039     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6572: ret 4 */
   4040     RECOMP_REGS_OUT();
   4041 }
   4042 
   4043 void sub_360C6580(void) {
   4044     int _fpu_cmp = 0;
   4045     uint32_t _cf = 0;
   4046     int _df = 1;
   4047     uint32_t _flag_k = FK_NONE;
   4048     uint32_t _flag_a = 0, _flag_b = 0;
   4049     uint32_t _itail_tgt = 0;
   4050     RECOMP_REGS_LOCALS
   4051     RECOMP_ENTER(0x360C6580u);
   4052 
   4053 L_360C6580:
   4054     eax = ecx + 0x4; /* 0x360C6580: lea eax, [ecx + 4] */
   4055     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6583: ret  */
   4056     RECOMP_REGS_OUT();
   4057 }
   4058 
   4059 void sub_360C6590(void) {
   4060     int _fpu_cmp = 0;
   4061     uint32_t _cf = 0;
   4062     int _df = 1;
   4063     uint32_t _flag_k = FK_NONE;
   4064     uint32_t _flag_a = 0, _flag_b = 0;
   4065     uint32_t _itail_tgt = 0;
   4066     RECOMP_REGS_LOCALS
   4067     RECOMP_ENTER(0x360C6590u);
   4068 
   4069 L_360C6590:
   4070     PUSH32(esp, ebp); /* 0x360C6590: push ebp */
   4071     ebp = esp; /* 0x360C6591: mov ebp, esp */
   4072     eax = MEM32(ebp + 0x8); /* 0x360C6593: mov eax, dword ptr [ebp + 8] */
   4073     edx = MEM32(eax); /* 0x360C6596: mov edx, dword ptr [eax] */
   4074     MEM32(ecx + 0xC) = edx; /* 0x360C6598: mov dword ptr [ecx + 0xc], edx */
   4075     eax = MEM32(eax + 0x4); /* 0x360C659B: mov eax, dword ptr [eax + 4] */
   4076     MEM32(ecx + 0x10) = eax; /* 0x360C659E: mov dword ptr [ecx + 0x10], eax */
   4077     ebp = POP32_VAL(esp); /* 0x360C65A1: pop ebp */
   4078     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C65A2: ret 4 */
   4079     RECOMP_REGS_OUT();
   4080 }
   4081 
   4082 void sub_360C65B0(void) {
   4083     int _fpu_cmp = 0;
   4084     uint32_t _cf = 0;
   4085     int _df = 1;
   4086     uint32_t _flag_k = FK_NONE;
   4087     uint32_t _flag_a = 0, _flag_b = 0;
   4088     uint32_t _itail_tgt = 0;
   4089     RECOMP_REGS_LOCALS
   4090     RECOMP_ENTER(0x360C65B0u);
   4091 
   4092 L_360C65B0:
   4093     eax = ecx + 0xC; /* 0x360C65B0: lea eax, [ecx + 0xc] */
   4094     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C65B3: ret  */
   4095     RECOMP_REGS_OUT();
   4096 }
   4097 
   4098 void sub_360C65C0(void) {
   4099     int _fpu_cmp = 0;
   4100     uint32_t _cf = 0;
   4101     int _df = 1;
   4102     uint32_t _flag_k = FK_NONE;
   4103     uint32_t _flag_a = 0, _flag_b = 0;
   4104     uint32_t _itail_tgt = 0;
   4105     RECOMP_REGS_LOCALS
   4106     RECOMP_ENTER(0x360C65C0u);
   4107 
   4108 L_360C65C0:
   4109     PUSH32(esp, ebp); /* 0x360C65C0: push ebp */
   4110     ebp = esp; /* 0x360C65C1: mov ebp, esp */
   4111     eax = MEM32(ebp + 0x8); /* 0x360C65C3: mov eax, dword ptr [ebp + 8] */
   4112     edx = MEM32(eax); /* 0x360C65C6: mov edx, dword ptr [eax] */
   4113     MEM32(ecx + 0x14) = edx; /* 0x360C65C8: mov dword ptr [ecx + 0x14], edx */
   4114     eax = MEM32(eax + 0x4); /* 0x360C65CB: mov eax, dword ptr [eax + 4] */
   4115     MEM32(ecx + 0x18) = eax; /* 0x360C65CE: mov dword ptr [ecx + 0x18], eax */
   4116     ebp = POP32_VAL(esp); /* 0x360C65D1: pop ebp */
   4117     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C65D2: ret 4 */
   4118     RECOMP_REGS_OUT();
   4119 }
   4120 
   4121 void sub_360C65E0(void) {
   4122     int _fpu_cmp = 0;
   4123     uint32_t _cf = 0;
   4124     int _df = 1;
   4125     uint32_t _flag_k = FK_NONE;
   4126     uint32_t _flag_a = 0, _flag_b = 0;
   4127     uint32_t _itail_tgt = 0;
   4128     RECOMP_REGS_LOCALS
   4129     RECOMP_ENTER(0x360C65E0u);
   4130 
   4131 L_360C65E0:
   4132     eax = ecx + 0x14; /* 0x360C65E0: lea eax, [ecx + 0x14] */
   4133     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C65E3: ret  */
   4134     RECOMP_REGS_OUT();
   4135 }
   4136 
   4137 void sub_360C65F0(void) {
   4138     int _fpu_cmp = 0;
   4139     uint32_t _cf = 0;
   4140     int _df = 1;
   4141     uint32_t _flag_k = FK_NONE;
   4142     uint32_t _flag_a = 0, _flag_b = 0;
   4143     uint32_t _itail_tgt = 0;
   4144     RECOMP_REGS_LOCALS
   4145     RECOMP_ENTER(0x360C65F0u);
   4146 
   4147 L_360C65F0:
   4148     PUSH32(esp, ebp); /* 0x360C65F0: push ebp */
   4149     ebp = esp; /* 0x360C65F1: mov ebp, esp */
   4150     eax = MEM32(ebp + 0x8); /* 0x360C65F3: mov eax, dword ptr [ebp + 8] */
   4151     edx = MEM32(eax); /* 0x360C65F6: mov edx, dword ptr [eax] */
   4152     MEM32(ecx + 0x1C) = edx; /* 0x360C65F8: mov dword ptr [ecx + 0x1c], edx */
   4153     eax = MEM32(eax + 0x4); /* 0x360C65FB: mov eax, dword ptr [eax + 4] */
   4154     MEM32(ecx + 0x20) = eax; /* 0x360C65FE: mov dword ptr [ecx + 0x20], eax */
   4155     ebp = POP32_VAL(esp); /* 0x360C6601: pop ebp */
   4156     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6602: ret 4 */
   4157     RECOMP_REGS_OUT();
   4158 }
   4159 
   4160 void sub_360C6610(void) {
   4161     int _fpu_cmp = 0;
   4162     uint32_t _cf = 0;
   4163     int _df = 1;
   4164     uint32_t _flag_k = FK_NONE;
   4165     uint32_t _flag_a = 0, _flag_b = 0;
   4166     uint32_t _itail_tgt = 0;
   4167     RECOMP_REGS_LOCALS
   4168     RECOMP_ENTER(0x360C6610u);
   4169 
   4170 L_360C6610:
   4171     eax = ecx + 0x1C; /* 0x360C6610: lea eax, [ecx + 0x1c] */
   4172     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6613: ret  */
   4173     RECOMP_REGS_OUT();
   4174 }
   4175 
   4176 void sub_360C6620(void) {
   4177     int _fpu_cmp = 0;
   4178     uint32_t _cf = 0;
   4179     int _df = 1;
   4180     uint32_t _flag_k = FK_NONE;
   4181     uint32_t _flag_a = 0, _flag_b = 0;
   4182     uint32_t _itail_tgt = 0;
   4183     RECOMP_REGS_LOCALS
   4184     RECOMP_ENTER(0x360C6620u);
   4185 
   4186 L_360C6620:
   4187     PUSH32(esp, ebp); /* 0x360C6620: push ebp */
   4188     ebp = esp; /* 0x360C6621: mov ebp, esp */
   4189     PUSH32(esp, esi); /* 0x360C6623: push esi */
   4190     esi = MEM32(ebp + 0x8); /* 0x360C6624: mov esi, dword ptr [ebp + 8] */
   4191     PUSH32(esp, edi); /* 0x360C6627: push edi */
   4192     edi = ecx + 0x24; /* 0x360C6628: lea edi, [ecx + 0x24] */
   4193     ecx = 6; /* 0x360C662B: mov ecx, 6 */
   4194     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360C6630: 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; }
   4195     edi = POP32_VAL(esp); /* 0x360C6632: pop edi */
   4196     esi = POP32_VAL(esp); /* 0x360C6633: pop esi */
   4197     ebp = POP32_VAL(esp); /* 0x360C6634: pop ebp */
   4198     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6635: ret 4 */
   4199     RECOMP_REGS_OUT();
   4200 }
   4201 
   4202 void sub_360C6640(void) {
   4203     int _fpu_cmp = 0;
   4204     uint32_t _cf = 0;
   4205     int _df = 1;
   4206     uint32_t _flag_k = FK_NONE;
   4207     uint32_t _flag_a = 0, _flag_b = 0;
   4208     uint32_t _itail_tgt = 0;
   4209     RECOMP_REGS_LOCALS
   4210     RECOMP_ENTER(0x360C6640u);
   4211 
   4212 L_360C6640:
   4213     PUSH32(esp, ebp); /* 0x360C6640: push ebp */
   4214     ebp = esp; /* 0x360C6641: mov ebp, esp */
   4215     eax = MEM32(ebp + 0x8); /* 0x360C6643: mov eax, dword ptr [ebp + 8] */
   4216     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u);
   4217     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4218     ecx = ecx + 0x24u; /* 0x360C6646: add ecx, 0x24 */
   4219     _flag_k = FK_ADD;
   4220     /* cmp eax, ecx */ /* 0x360C6649: cmp eax, ecx */
   4221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4223     _flag_k = FK_CMP;
   4224     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6657; /* 0x360C664B: je 0x360c6657 */
   4225 L_360C664D:
   4226     edx = MEM32(ecx); /* 0x360C664D: mov edx, dword ptr [ecx] */
   4227     MEM32(eax) = edx; /* 0x360C664F: mov dword ptr [eax], edx */
   4228     edx = MEM32(ecx + 0x4); /* 0x360C6651: mov edx, dword ptr [ecx + 4] */
   4229     MEM32(eax + 0x4) = edx; /* 0x360C6654: mov dword ptr [eax + 4], edx */
   4230 L_360C6657:
   4231     PUSH32(esp, esi); /* 0x360C6657: push esi */
   4232     PUSH32(esp, edi); /* 0x360C6658: push edi */
   4233     edx = ecx + 0x8; /* 0x360C6659: lea edx, [ecx + 8] */
   4234     edi = MEM32(edx); /* 0x360C665C: mov edi, dword ptr [edx] */
   4235     esi = eax + 0x8; /* 0x360C665E: lea esi, [eax + 8] */
   4236     MEM32(esi) = edi; /* 0x360C6661: mov dword ptr [esi], edi */
   4237     edi = MEM32(edx + 0x4); /* 0x360C6663: mov edi, dword ptr [edx + 4] */
   4238     MEM32(esi + 0x4) = edi; /* 0x360C6666: mov dword ptr [esi + 4], edi */
   4239     edx = MEM32(edx + 0x8); /* 0x360C6669: mov edx, dword ptr [edx + 8] */
   4240     MEM32(esi + 0x8) = edx; /* 0x360C666C: mov dword ptr [esi + 8], edx */
   4241     ecx = MEM32(ecx + 0x14); /* 0x360C666F: mov ecx, dword ptr [ecx + 0x14] */
   4242     edi = POP32_VAL(esp); /* 0x360C6672: pop edi */
   4243     MEM32(eax + 0x14) = ecx; /* 0x360C6673: mov dword ptr [eax + 0x14], ecx */
   4244     esi = POP32_VAL(esp); /* 0x360C6676: pop esi */
   4245     ebp = POP32_VAL(esp); /* 0x360C6677: pop ebp */
   4246     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6678: ret 4 */
   4247     RECOMP_REGS_OUT();
   4248 }
   4249 
   4250 void sub_360C6680(void) {
   4251     int _fpu_cmp = 0;
   4252     uint32_t _cf = 0;
   4253     int _df = 1;
   4254     uint32_t _flag_k = FK_NONE;
   4255     uint32_t _flag_a = 0, _flag_b = 0;
   4256     uint32_t _itail_tgt = 0;
   4257     RECOMP_REGS_LOCALS
   4258     RECOMP_ENTER(0x360C6680u);
   4259 
   4260 L_360C6680:
   4261     eax = ecx + 0x6C; /* 0x360C6680: lea eax, [ecx + 0x6c] */
   4262     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6683: ret  */
   4263     RECOMP_REGS_OUT();
   4264 }
   4265 
   4266 void sub_360C6690(void) {
   4267     int _fpu_cmp = 0;
   4268     uint32_t _cf = 0;
   4269     int _df = 1;
   4270     uint32_t _flag_k = FK_NONE;
   4271     uint32_t _flag_a = 0, _flag_b = 0;
   4272     uint32_t _itail_tgt = 0;
   4273     RECOMP_REGS_LOCALS
   4274     RECOMP_ENTER(0x360C6690u);
   4275 
   4276 L_360C6690:
   4277     PUSH32(esp, ebp); /* 0x360C6690: push ebp */
   4278     ebp = esp; /* 0x360C6691: mov ebp, esp */
   4279     PUSH32(esp, esi); /* 0x360C6693: push esi */
   4280     esi = MEM32(ebp + 0x8); /* 0x360C6694: mov esi, dword ptr [ebp + 8] */
   4281     PUSH32(esp, edi); /* 0x360C6697: push edi */
   4282     edi = ecx + 0x6C; /* 0x360C6698: lea edi, [ecx + 0x6c] */
   4283     ecx = 8; /* 0x360C669B: mov ecx, 8 */
   4284     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360C66A0: 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; }
   4285     edi = POP32_VAL(esp); /* 0x360C66A2: pop edi */
   4286     esi = POP32_VAL(esp); /* 0x360C66A3: pop esi */
   4287     ebp = POP32_VAL(esp); /* 0x360C66A4: pop ebp */
   4288     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C66A5: ret 4 */
   4289     RECOMP_REGS_OUT();
   4290 }
   4291 
   4292 void sub_360C66B0(void) {
   4293     int _fpu_cmp = 0;
   4294     uint32_t _cf = 0;
   4295     int _df = 1;
   4296     uint32_t _flag_k = FK_NONE;
   4297     uint32_t _flag_a = 0, _flag_b = 0;
   4298     uint32_t _itail_tgt = 0;
   4299     RECOMP_REGS_LOCALS
   4300     RECOMP_ENTER(0x360C66B0u);
   4301 
   4302 L_360C66B0:
   4303     PUSH32(esp, esi); /* 0x360C66B0: push esi */
   4304     esi = ecx; /* 0x360C66B1: mov esi, ecx */
   4305     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360C66B3: call dword ptr [0x3616ffd0] */
   4306     RECOMP_FLAGS_IN();
   4307     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4308     eax = 0; /* 0x360C66B9: xor eax, eax */
   4309     _cf = 0;
   4310     _flag_k = FK_TEST;
   4311     MEM32(esi + 0x24) = eax; /* 0x360C66BB: mov dword ptr [esi + 0x24], eax */
   4312     MEM32(esi + 0x28) = eax; /* 0x360C66BE: mov dword ptr [esi + 0x28], eax */
   4313     MEM32(esi) = 0x36174ED0u; /* 0x360C66C1: mov dword ptr [esi], 0x36174ed0 */
   4314     eax = esi; /* 0x360C66C7: mov eax, esi */
   4315     esi = POP32_VAL(esp); /* 0x360C66C9: pop esi */
   4316     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C66CA: ret  */
   4317     RECOMP_REGS_OUT();
   4318 }
   4319 
   4320 void sub_360C66D0(void) {
   4321     int _fpu_cmp = 0;
   4322     uint32_t _cf = 0;
   4323     int _df = 1;
   4324     uint32_t _flag_k = FK_NONE;
   4325     uint32_t _flag_a = 0, _flag_b = 0;
   4326     uint32_t _itail_tgt = 0;
   4327     RECOMP_REGS_LOCALS
   4328     RECOMP_ENTER(0x360C66D0u);
   4329 
   4330 L_360C66D0:
   4331     PUSH32(esp, ebp); /* 0x360C66D0: push ebp */
   4332     ebp = esp; /* 0x360C66D1: mov ebp, esp */
   4333     PUSH32(esp, esi); /* 0x360C66D3: push esi */
   4334     esi = ecx; /* 0x360C66D4: mov esi, ecx */
   4335     RECOMP_ICALL(0x360C6700u); /* 0x360C66D6: call 0x360c6700 */ /* not lifted */
   4336     RECOMP_FLAGS_IN();
   4337     /* test MEM8(ebp + 0x8), 1 */ /* 0x360C66DB: test byte ptr [ebp + 8], 1 */
   4338     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4339     _cf = 0;
   4340     _flag_k = FK_NARROW(FK_TEST, 24);
   4341     if (TEST_Z(_flag_a, _flag_b)) goto L_360C66EA; /* 0x360C66DF: je 0x360c66ea */
   4342 L_360C66E1:
   4343     PUSH32(esp, esi); /* 0x360C66E1: push esi */
   4344     RECOMP_ICALL(0x3615FCC4u); /* 0x360C66E2: call 0x3615fcc4 */ /* not lifted */
   4345     RECOMP_FLAGS_IN();
   4346     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4348     esp = esp + 4; /* 0x360C66E7: add esp, 4 */
   4349     _flag_k = FK_ADD;
   4350 L_360C66EA:
   4351     eax = esi; /* 0x360C66EA: mov eax, esi */
   4352     esi = POP32_VAL(esp); /* 0x360C66EC: pop esi */
   4353     ebp = POP32_VAL(esp); /* 0x360C66ED: pop ebp */
   4354     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C66EE: ret 4 */
   4355     RECOMP_REGS_OUT();
   4356 }
   4357 
   4358 void sub_360C6700(void) {
   4359     int _fpu_cmp = 0;
   4360     uint32_t _cf = 0;
   4361     int _df = 1;
   4362     uint32_t _flag_k = FK_NONE;
   4363     uint32_t _flag_a = 0, _flag_b = 0;
   4364     uint32_t _itail_tgt = 0;
   4365     RECOMP_REGS_LOCALS
   4366     RECOMP_ENTER(0x360C6700u);
   4367 
   4368 L_360C6700:
   4369     MEM32(ecx) = 0x36174ED0u; /* 0x360C6700: mov dword ptr [ecx], 0x36174ed0 */
   4370 L_360C6706:
   4371     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   4372     { RECOMP_REGS_OUT(); return; } /* end of function */
   4373   _ljump:
   4374     switch (_itail_tgt) {
   4375       case 0x360C6700u: goto L_360C6700;
   4376       case 0x360C6706u: goto L_360C6706;
   4377       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4378     }
   4379     RECOMP_REGS_OUT();
   4380 }
   4381 
   4382 void sub_360C6710(void) {
   4383     int _fpu_cmp = 0;
   4384     uint32_t _cf = 0;
   4385     int _df = 1;
   4386     uint32_t _flag_k = FK_NONE;
   4387     uint32_t _flag_a = 0, _flag_b = 0;
   4388     uint32_t _itail_tgt = 0;
   4389     RECOMP_REGS_LOCALS
   4390     RECOMP_ENTER(0x360C6710u);
   4391 
   4392 L_360C6710:
   4393     PUSH32(esp, ebp); /* 0x360C6710: push ebp */
   4394     ebp = esp; /* 0x360C6711: mov ebp, esp */
   4395     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C6713: push -1 */
   4396     PUSH32(esp, 0x3616775Bu); /* 0x360C6715: push 0x3616775b */
   4397     eax = MEM32(FS_BASE + (0)); /* 0x360C671A: mov eax, dword ptr fs:[0] */
   4398     PUSH32(esp, eax); /* 0x360C6720: push eax */
   4399     MEM32(FS_BASE + (0)) = esp; /* 0x360C6721: mov dword ptr fs:[0], esp */
   4400     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4402     esp = esp - 0xCu; /* 0x360C6728: sub esp, 0xc */
   4403     _flag_k = FK_CMP;
   4404     PUSH32(esp, esi); /* 0x360C672B: push esi */
   4405     esi = MEM32(ebp + 0x8); /* 0x360C672C: mov esi, dword ptr [ebp + 8] */
   4406     PUSH32(esp, edi); /* 0x360C672F: push edi */
   4407     eax = ebp + 0x8; /* 0x360C6730: lea eax, [ebp + 8] */
   4408     edi = ecx; /* 0x360C6733: mov edi, ecx */
   4409     PUSH32(esp, eax); /* 0x360C6735: push eax */
   4410     ecx = esi; /* 0x360C6736: mov ecx, esi */
   4411     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360C6738: call dword ptr [0x3616fa8c] */
   4412     RECOMP_FLAGS_IN();
   4413     ecx = MEM32(ebp + 0x8); /* 0x360C673E: mov ecx, dword ptr [ebp + 8] */
   4414     /* cmp ecx, MEM32(0x361C9080) */ /* 0x360C6741: cmp ecx, dword ptr [0x361c9080] */
   4415     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x361C9080));
   4416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4417     _flag_k = FK_CMP;
   4418     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6760; /* 0x360C6747: je 0x360c6760 */
   4419 L_360C6749:
   4420     edi = POP32_VAL(esp); /* 0x360C6749: pop edi */
   4421     eax = 1; /* 0x360C674A: mov eax, 1 */
   4422     esi = POP32_VAL(esp); /* 0x360C674F: pop esi */
   4423     ecx = MEM32(ebp + (-0xC)); /* 0x360C6750: mov ecx, dword ptr [ebp - 0xc] */
   4424     MEM32(FS_BASE + (0)) = ecx; /* 0x360C6753: mov dword ptr fs:[0], ecx */
   4425     esp = ebp; /* 0x360C675A: mov esp, ebp */
   4426     ebp = POP32_VAL(esp); /* 0x360C675C: pop ebp */
   4427     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C675D: ret 4 */
   4428 L_360C6760:
   4429     edx = ebp + (-0x18); /* 0x360C6760: lea edx, [ebp - 0x18] */
   4430     PUSH32(esp, edx); /* 0x360C6763: push edx */
   4431     PUSH32(esp, esi); /* 0x360C6764: push esi */
   4432     MEM32(ebp + (-0x18)) = 0; /* 0x360C6765: mov dword ptr [ebp - 0x18], 0 */
   4433     MEM32(ebp + (-0x14)) = 0; /* 0x360C676C: mov dword ptr [ebp - 0x14], 0 */
   4434     RECOMP_ICALL(0x3615B870u); /* 0x360C6773: call 0x3615b870 */ /* not lifted */
   4435     RECOMP_FLAGS_IN();
   4436     PUSH32(esp, 0xA0u); /* 0x360C6778: push 0xa0 */
   4437     RECOMP_ICALL(0x3615FD6Au); /* 0x360C677D: call 0x3615fd6a */ /* not lifted */
   4438     RECOMP_FLAGS_IN();
   4439     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4440     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4441     esp = esp + 0xCu; /* 0x360C6782: add esp, 0xc */
   4442     _flag_k = FK_ADD;
   4443     MEM32(ebp + (-0x10)) = eax; /* 0x360C6785: mov dword ptr [ebp - 0x10], eax */
   4444     /* test eax, eax */ /* 0x360C6788: test eax, eax */
   4445     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4446     _cf = 0;
   4447     _flag_k = FK_TEST;
   4448     MEM32(ebp + (-0x4)) = 0; /* 0x360C678A: mov dword ptr [ebp - 4], 0 */
   4449     if (TEST_Z(_flag_a, _flag_b)) goto L_360C67A4; /* 0x360C6791: je 0x360c67a4 */
   4450 L_360C6793:
   4451     ecx = MEM32(ebp + (-0x14)); /* 0x360C6793: mov ecx, dword ptr [ebp - 0x14] */
   4452     edx = MEM32(ebp + (-0x18)); /* 0x360C6796: mov edx, dword ptr [ebp - 0x18] */
   4453     PUSH32(esp, ecx); /* 0x360C6799: push ecx */
   4454     PUSH32(esp, edx); /* 0x360C679A: push edx */
   4455     ecx = eax; /* 0x360C679B: mov ecx, eax */
   4456     RECOMP_ICALL(0x360C3F20u); /* 0x360C679D: call 0x360c3f20 */ /* not lifted */
   4457     RECOMP_FLAGS_IN();
   4458     goto L_360C67A6; /* 0x360C67A2: jmp 0x360c67a6 */
   4459 L_360C67A4:
   4460     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4461     eax = 0; /* 0x360C67A4: xor eax, eax */
   4462     _cf = 0;
   4463     _flag_k = FK_TEST;
   4464 L_360C67A6:
   4465     PUSH32(esp, eax); /* 0x360C67A6: push eax */
   4466     PUSH32(esp, esi); /* 0x360C67A7: push esi */
   4467     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360C67A8: mov dword ptr [ebp - 4], 0xffffffff */
   4468     MEM32(edi + 0x20) = eax; /* 0x360C67AF: mov dword ptr [edi + 0x20], eax */
   4469     RECOMP_ICALL(0x360C4D80u); /* 0x360C67B2: call 0x360c4d80 */ /* not lifted */
   4470     RECOMP_FLAGS_IN();
   4471     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
   4472     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4473     edi = edi + 0x24u; /* 0x360C67B7: add edi, 0x24 */
   4474     _flag_k = FK_ADD;
   4475     PUSH32(esp, edi); /* 0x360C67BA: push edi */
   4476     PUSH32(esp, esi); /* 0x360C67BB: push esi */
   4477     RECOMP_ICALL(0x3615B870u); /* 0x360C67BC: call 0x3615b870 */ /* not lifted */
   4478     RECOMP_FLAGS_IN();
   4479     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4480     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4481     esp = esp + 0x10u; /* 0x360C67C1: add esp, 0x10 */
   4482     _flag_k = FK_ADD;
   4483     ecx = esi; /* 0x360C67C4: mov ecx, esi */
   4484     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360C67C6: call dword ptr [0x3616fadc] */
   4485     RECOMP_FLAGS_IN();
   4486     ecx = MEM32(ebp + (-0xC)); /* 0x360C67CC: mov ecx, dword ptr [ebp - 0xc] */
   4487     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4488     _cf = (eax) != 0;
   4489     eax = (uint32_t)(-(int32_t)eax); /* 0x360C67CF: neg eax */
   4490     _flag_k = FK_CMP;
   4491     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360C67D1: sbb eax, eax */
   4492       eax = _sc ? 0xFFFFFFFFu : 0;
   4493       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4494       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4495     edi = POP32_VAL(esp); /* 0x360C67D3: pop edi */
   4496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4497     eax = eax + 1; /* 0x360C67D4: inc eax */
   4498     _flag_k = FK_INC;
   4499     esi = POP32_VAL(esp); /* 0x360C67D5: pop esi */
   4500     MEM32(FS_BASE + (0)) = ecx; /* 0x360C67D6: mov dword ptr fs:[0], ecx */
   4501     esp = ebp; /* 0x360C67DD: mov esp, ebp */
   4502     ebp = POP32_VAL(esp); /* 0x360C67DF: pop ebp */
   4503     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C67E0: ret 4 */
   4504     RECOMP_REGS_OUT();
   4505 }
   4506 
   4507 void sub_360C676C(void) {
   4508     int _fpu_cmp = 0;
   4509     uint32_t _cf = 0;
   4510     int _df = 1;
   4511     uint32_t _flag_k = FK_NONE;
   4512     uint32_t _flag_a = 0, _flag_b = 0;
   4513     uint32_t _itail_tgt = 0;
   4514     RECOMP_REGS_LOCALS
   4515     RECOMP_ENTER(0x360C676Cu);
   4516 
   4517 L_360C676C:
   4518     MEM32(ebp + (-0x14)) = 0; /* 0x360C676C: mov dword ptr [ebp - 0x14], 0 */
   4519     RECOMP_ICALL(0x3615B870u); /* 0x360C6773: call 0x3615b870 */ /* not lifted */
   4520     RECOMP_FLAGS_IN();
   4521     PUSH32(esp, 0xA0u); /* 0x360C6778: push 0xa0 */
   4522     RECOMP_ICALL(0x3615FD6Au); /* 0x360C677D: call 0x3615fd6a */ /* not lifted */
   4523     RECOMP_FLAGS_IN();
   4524     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4525     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4526     esp = esp + 0xCu; /* 0x360C6782: add esp, 0xc */
   4527     _flag_k = FK_ADD;
   4528     MEM32(ebp + (-0x10)) = eax; /* 0x360C6785: mov dword ptr [ebp - 0x10], eax */
   4529     /* test eax, eax */ /* 0x360C6788: test eax, eax */
   4530     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4531     _cf = 0;
   4532     _flag_k = FK_TEST;
   4533     MEM32(ebp + (-0x4)) = 0; /* 0x360C678A: mov dword ptr [ebp - 4], 0 */
   4534     if (TEST_Z(_flag_a, _flag_b)) goto L_360C67A4; /* 0x360C6791: je 0x360c67a4 */
   4535 L_360C6793:
   4536     ecx = MEM32(ebp + (-0x14)); /* 0x360C6793: mov ecx, dword ptr [ebp - 0x14] */
   4537     edx = MEM32(ebp + (-0x18)); /* 0x360C6796: mov edx, dword ptr [ebp - 0x18] */
   4538     PUSH32(esp, ecx); /* 0x360C6799: push ecx */
   4539     PUSH32(esp, edx); /* 0x360C679A: push edx */
   4540     ecx = eax; /* 0x360C679B: mov ecx, eax */
   4541     RECOMP_ICALL(0x360C3F20u); /* 0x360C679D: call 0x360c3f20 */ /* not lifted */
   4542     RECOMP_FLAGS_IN();
   4543     goto L_360C67A6; /* 0x360C67A2: jmp 0x360c67a6 */
   4544 L_360C67A4:
   4545     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4546     eax = 0; /* 0x360C67A4: xor eax, eax */
   4547     _cf = 0;
   4548     _flag_k = FK_TEST;
   4549 L_360C67A6:
   4550     PUSH32(esp, eax); /* 0x360C67A6: push eax */
   4551     PUSH32(esp, esi); /* 0x360C67A7: push esi */
   4552     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360C67A8: mov dword ptr [ebp - 4], 0xffffffff */
   4553     MEM32(edi + 0x20) = eax; /* 0x360C67AF: mov dword ptr [edi + 0x20], eax */
   4554     RECOMP_ICALL(0x360C4D80u); /* 0x360C67B2: call 0x360c4d80 */ /* not lifted */
   4555     RECOMP_FLAGS_IN();
   4556     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
   4557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4558     edi = edi + 0x24u; /* 0x360C67B7: add edi, 0x24 */
   4559     _flag_k = FK_ADD;
   4560     PUSH32(esp, edi); /* 0x360C67BA: push edi */
   4561     PUSH32(esp, esi); /* 0x360C67BB: push esi */
   4562     RECOMP_ICALL(0x3615B870u); /* 0x360C67BC: call 0x3615b870 */ /* not lifted */
   4563     RECOMP_FLAGS_IN();
   4564     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4565     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4566     esp = esp + 0x10u; /* 0x360C67C1: add esp, 0x10 */
   4567     _flag_k = FK_ADD;
   4568     ecx = esi; /* 0x360C67C4: mov ecx, esi */
   4569     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360C67C6: call dword ptr [0x3616fadc] */
   4570     RECOMP_FLAGS_IN();
   4571     ecx = MEM32(ebp + (-0xC)); /* 0x360C67CC: mov ecx, dword ptr [ebp - 0xc] */
   4572     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4573     _cf = (eax) != 0;
   4574     eax = (uint32_t)(-(int32_t)eax); /* 0x360C67CF: neg eax */
   4575     _flag_k = FK_CMP;
   4576     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360C67D1: sbb eax, eax */
   4577       eax = _sc ? 0xFFFFFFFFu : 0;
   4578       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4579       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4580     edi = POP32_VAL(esp); /* 0x360C67D3: pop edi */
   4581     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4582     eax = eax + 1; /* 0x360C67D4: inc eax */
   4583     _flag_k = FK_INC;
   4584     esi = POP32_VAL(esp); /* 0x360C67D5: pop esi */
   4585     MEM32(FS_BASE + (0)) = ecx; /* 0x360C67D6: mov dword ptr fs:[0], ecx */
   4586     esp = ebp; /* 0x360C67DD: mov esp, ebp */
   4587     ebp = POP32_VAL(esp); /* 0x360C67DF: pop ebp */
   4588     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C67E0: ret 4 */
   4589     RECOMP_REGS_OUT();
   4590 }
   4591 
   4592 void sub_360C67A6(void) {
   4593     int _fpu_cmp = 0;
   4594     uint32_t _cf = 0;
   4595     int _df = 1;
   4596     uint32_t _flag_k = FK_NONE;
   4597     uint32_t _flag_a = 0, _flag_b = 0;
   4598     uint32_t _itail_tgt = 0;
   4599     RECOMP_REGS_LOCALS
   4600     RECOMP_ENTER(0x360C67A6u);
   4601 
   4602 L_360C67A6:
   4603     PUSH32(esp, eax); /* 0x360C67A6: push eax */
   4604     PUSH32(esp, esi); /* 0x360C67A7: push esi */
   4605     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360C67A8: mov dword ptr [ebp - 4], 0xffffffff */
   4606     MEM32(edi + 0x20) = eax; /* 0x360C67AF: mov dword ptr [edi + 0x20], eax */
   4607     RECOMP_ICALL(0x360C4D80u); /* 0x360C67B2: call 0x360c4d80 */ /* not lifted */
   4608     RECOMP_FLAGS_IN();
   4609     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u);
   4610     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4611     edi = edi + 0x24u; /* 0x360C67B7: add edi, 0x24 */
   4612     _flag_k = FK_ADD;
   4613     PUSH32(esp, edi); /* 0x360C67BA: push edi */
   4614     PUSH32(esp, esi); /* 0x360C67BB: push esi */
   4615     RECOMP_ICALL(0x3615B870u); /* 0x360C67BC: call 0x3615b870 */ /* not lifted */
   4616     RECOMP_FLAGS_IN();
   4617     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4618     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4619     esp = esp + 0x10u; /* 0x360C67C1: add esp, 0x10 */
   4620     _flag_k = FK_ADD;
   4621     ecx = esi; /* 0x360C67C4: mov ecx, esi */
   4622     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360C67C6: call dword ptr [0x3616fadc] */
   4623     RECOMP_FLAGS_IN();
   4624     ecx = MEM32(ebp + (-0xC)); /* 0x360C67CC: mov ecx, dword ptr [ebp - 0xc] */
   4625     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   4626     _cf = (eax) != 0;
   4627     eax = (uint32_t)(-(int32_t)eax); /* 0x360C67CF: neg eax */
   4628     _flag_k = FK_CMP;
   4629     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360C67D1: sbb eax, eax */
   4630       eax = _sc ? 0xFFFFFFFFu : 0;
   4631       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4632       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4633     edi = POP32_VAL(esp); /* 0x360C67D3: pop edi */
   4634     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4635     eax = eax + 1; /* 0x360C67D4: inc eax */
   4636     _flag_k = FK_INC;
   4637     esi = POP32_VAL(esp); /* 0x360C67D5: pop esi */
   4638     MEM32(FS_BASE + (0)) = ecx; /* 0x360C67D6: mov dword ptr fs:[0], ecx */
   4639     esp = ebp; /* 0x360C67DD: mov esp, ebp */
   4640     ebp = POP32_VAL(esp); /* 0x360C67DF: pop ebp */
   4641     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C67E0: ret 4 */
   4642     RECOMP_REGS_OUT();
   4643 }
   4644 
   4645 void sub_360C67F0(void) {
   4646     int _fpu_cmp = 0;
   4647     uint32_t _cf = 0;
   4648     int _df = 1;
   4649     uint32_t _flag_k = FK_NONE;
   4650     uint32_t _flag_a = 0, _flag_b = 0;
   4651     uint32_t _itail_tgt = 0;
   4652     RECOMP_REGS_LOCALS
   4653     RECOMP_ENTER(0x360C67F0u);
   4654 
   4655 L_360C67F0:
   4656     PUSH32(esp, ebp); /* 0x360C67F0: push ebp */
   4657     ebp = esp; /* 0x360C67F1: mov ebp, esp */
   4658     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4660     esp = esp - 8; /* 0x360C67F3: sub esp, 8 */
   4661     _flag_k = FK_CMP;
   4662     eax = MEM32(0x361C9080); /* 0x360C67F6: mov eax, dword ptr [0x361c9080] */
   4663     PUSH32(esp, esi); /* 0x360C67FB: push esi */
   4664     PUSH32(esp, edi); /* 0x360C67FC: push edi */
   4665     edi = MEM32(ebp + 0x8); /* 0x360C67FD: mov edi, dword ptr [ebp + 8] */
   4666     esi = ecx; /* 0x360C6800: mov esi, ecx */
   4667     PUSH32(esp, eax); /* 0x360C6802: push eax */
   4668     ecx = edi; /* 0x360C6803: mov ecx, edi */
   4669     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x360C6805: call dword ptr [0x3616faec] */
   4670     RECOMP_FLAGS_IN();
   4671     eax = MEM32(esi + 0x20); /* 0x360C680B: mov eax, dword ptr [esi + 0x20] */
   4672     ecx = ebp + (-0x8); /* 0x360C680E: lea ecx, [ebp - 8] */
   4673     /* cmp ecx, eax */ /* 0x360C6811: cmp ecx, eax */
   4674     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4676     _flag_k = FK_CMP;
   4677     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6820; /* 0x360C6813: je 0x360c6820 */
   4678 L_360C6815:
   4679     edx = MEM32(eax); /* 0x360C6815: mov edx, dword ptr [eax] */
   4680     MEM32(ebp + (-0x8)) = edx; /* 0x360C6817: mov dword ptr [ebp - 8], edx */
   4681     eax = MEM32(eax + 0x4); /* 0x360C681A: mov eax, dword ptr [eax + 4] */
   4682     MEM32(ebp + (-0x4)) = eax; /* 0x360C681D: mov dword ptr [ebp - 4], eax */
   4683 L_360C6820:
   4684     ecx = ebp + (-0x8); /* 0x360C6820: lea ecx, [ebp - 8] */
   4685     PUSH32(esp, ecx); /* 0x360C6823: push ecx */
   4686     PUSH32(esp, edi); /* 0x360C6824: push edi */
   4687     RECOMP_ICALL(0x3615B840u); /* 0x360C6825: call 0x3615b840 */ /* not lifted */
   4688     RECOMP_FLAGS_IN();
   4689     edx = MEM32(esi + 0x20); /* 0x360C682A: mov edx, dword ptr [esi + 0x20] */
   4690     PUSH32(esp, edx); /* 0x360C682D: push edx */
   4691     PUSH32(esp, edi); /* 0x360C682E: push edi */
   4692     RECOMP_ICALL(0x360C4B10u); /* 0x360C682F: call 0x360c4b10 */ /* not lifted */
   4693     RECOMP_FLAGS_IN();
   4694     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   4695     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4696     esi = esi + 0x24u; /* 0x360C6834: add esi, 0x24 */
   4697     _flag_k = FK_ADD;
   4698     PUSH32(esp, esi); /* 0x360C6837: push esi */
   4699     PUSH32(esp, edi); /* 0x360C6838: push edi */
   4700     RECOMP_ICALL(0x3615B840u); /* 0x360C6839: call 0x3615b840 */ /* not lifted */
   4701     RECOMP_FLAGS_IN();
   4702     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   4703     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4704     esp = esp + 0x18u; /* 0x360C683E: add esp, 0x18 */
   4705     _flag_k = FK_ADD;
   4706     edi = POP32_VAL(esp); /* 0x360C6841: pop edi */
   4707     esi = POP32_VAL(esp); /* 0x360C6842: pop esi */
   4708     esp = ebp; /* 0x360C6843: mov esp, ebp */
   4709     ebp = POP32_VAL(esp); /* 0x360C6845: pop ebp */
   4710     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6846: ret 4 */
   4711     RECOMP_REGS_OUT();
   4712 }
   4713 
   4714 void sub_360C6850(void) {
   4715     int _fpu_cmp = 0;
   4716     uint32_t _cf = 0;
   4717     int _df = 1;
   4718     uint32_t _flag_k = FK_NONE;
   4719     uint32_t _flag_a = 0, _flag_b = 0;
   4720     uint32_t _itail_tgt = 0;
   4721     RECOMP_REGS_LOCALS
   4722     RECOMP_ENTER(0x360C6850u);
   4723 
   4724 L_360C6850:
   4725     PUSH32(esp, esi); /* 0x360C6850: push esi */
   4726     PUSH32(esp, 0); /* 0x360C6851: push 0 */
   4727     PUSH32(esp, 0x361B2CD8u); /* 0x360C6853: push 0x361b2cd8 */
   4728     esi = ecx; /* 0x360C6858: mov esi, ecx */
   4729     PUSH32(esp, 0x361B2CC0u); /* 0x360C685A: push 0x361b2cc0 */
   4730     eax = esi + 0x4; /* 0x360C685F: lea eax, [esi + 4] */
   4731     PUSH32(esp, 0); /* 0x360C6862: push 0 */
   4732     PUSH32(esp, eax); /* 0x360C6864: push eax */
   4733     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360C6865: call dword ptr [0x3616ff70] */
   4734     RECOMP_FLAGS_IN();
   4735     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4736     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4737     esp = esp + 4; /* 0x360C686B: add esp, 4 */
   4738     _flag_k = FK_ADD;
   4739     PUSH32(esp, eax); /* 0x360C686E: push eax */
   4740     RECOMP_ICALL(0x3615FD86u); /* 0x360C686F: call 0x3615fd86 */ /* not lifted */
   4741     RECOMP_FLAGS_IN();
   4742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4744     esp = esp + 0x14u; /* 0x360C6874: add esp, 0x14 */
   4745     _flag_k = FK_ADD;
   4746     /* test eax, eax */ /* 0x360C6877: test eax, eax */
   4747     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4748     _cf = 0;
   4749     _flag_k = FK_TEST;
   4750     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6891; /* 0x360C6879: je 0x360c6891 */
   4751 L_360C687B:
   4752     edx = MEM32(esi + 0x20); /* 0x360C687B: mov edx, dword ptr [esi + 0x20] */
   4753     ecx = esi + 0x24; /* 0x360C687E: lea ecx, [esi + 0x24] */
   4754     PUSH32(esp, ecx); /* 0x360C6881: push ecx */
   4755     PUSH32(esp, edx); /* 0x360C6882: push edx */
   4756     ecx = eax; /* 0x360C6883: mov ecx, eax */
   4757     RECOMP_ICALL(0x36071F20u); /* 0x360C6885: call 0x36071f20 */ /* not lifted */
   4758     RECOMP_FLAGS_IN();
   4759     ecx = eax; /* 0x360C688A: mov ecx, eax */
   4760     RECOMP_ICALL(0x3606C650u); /* 0x360C688C: call 0x3606c650 */ /* not lifted */
   4761     RECOMP_FLAGS_IN();
   4762 L_360C6891:
   4763     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4764     eax = 0; /* 0x360C6891: xor eax, eax */
   4765     _cf = 0;
   4766     _flag_k = FK_TEST;
   4767     esi = POP32_VAL(esp); /* 0x360C6893: pop esi */
   4768     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6894: ret  */
   4769     RECOMP_REGS_OUT();
   4770 }
   4771 
   4772 void sub_360C68A0(void) {
   4773     int _fpu_cmp = 0;
   4774     uint32_t _cf = 0;
   4775     int _df = 1;
   4776     uint32_t _flag_k = FK_NONE;
   4777     uint32_t _flag_a = 0, _flag_b = 0;
   4778     uint32_t _itail_tgt = 0;
   4779     RECOMP_REGS_LOCALS
   4780     RECOMP_ENTER(0x360C68A0u);
   4781 
   4782 L_360C68A0:
   4783     PUSH32(esp, ebp); /* 0x360C68A0: push ebp */
   4784     ebp = esp; /* 0x360C68A1: mov ebp, esp */
   4785     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C68A3: push -1 */
   4786     PUSH32(esp, 0x36167779u); /* 0x360C68A5: push 0x36167779 */
   4787     eax = MEM32(FS_BASE + (0)); /* 0x360C68AA: mov eax, dword ptr fs:[0] */
   4788     PUSH32(esp, eax); /* 0x360C68B0: push eax */
   4789     MEM32(FS_BASE + (0)) = esp; /* 0x360C68B1: mov dword ptr fs:[0], esp */
   4790     PUSH32(esp, ecx); /* 0x360C68B8: push ecx */
   4791     PUSH32(esp, esi); /* 0x360C68B9: push esi */
   4792     esi = ecx; /* 0x360C68BA: mov esi, ecx */
   4793     MEM32(ebp + (-0x10)) = esi; /* 0x360C68BC: mov dword ptr [ebp - 0x10], esi */
   4794     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360C68BF: call dword ptr [0x3616ffd0] */
   4795     RECOMP_FLAGS_IN();
   4796     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4797     eax = 0; /* 0x360C68C5: xor eax, eax */
   4798     _cf = 0;
   4799     _flag_k = FK_TEST;
   4800     MEM32(esi + 0x20) = eax; /* 0x360C68C7: mov dword ptr [esi + 0x20], eax */
   4801     MEM32(esi + 0x24) = eax; /* 0x360C68CA: mov dword ptr [esi + 0x24], eax */
   4802     ecx = esi; /* 0x360C68CD: mov ecx, esi */
   4803     MEM32(ebp + (-0x4)) = eax; /* 0x360C68CF: mov dword ptr [ebp - 4], eax */
   4804     MEM32(esi) = 0x36174EF4u; /* 0x360C68D2: mov dword ptr [esi], 0x36174ef4 */
   4805     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x360C68D8: call dword ptr [0x3616fc20] */
   4806     RECOMP_FLAGS_IN();
   4807     ecx = MEM32(ebp + (-0xC)); /* 0x360C68DE: mov ecx, dword ptr [ebp - 0xc] */
   4808     eax = esi; /* 0x360C68E1: mov eax, esi */
   4809     esi = POP32_VAL(esp); /* 0x360C68E3: pop esi */
   4810     MEM32(FS_BASE + (0)) = ecx; /* 0x360C68E4: mov dword ptr fs:[0], ecx */
   4811     esp = ebp; /* 0x360C68EB: mov esp, ebp */
   4812     ebp = POP32_VAL(esp); /* 0x360C68ED: pop ebp */
   4813     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C68EE: ret  */
   4814     RECOMP_REGS_OUT();
   4815 }
   4816 
   4817 void sub_360C68F0(void) {
   4818     int _fpu_cmp = 0;
   4819     uint32_t _cf = 0;
   4820     int _df = 1;
   4821     uint32_t _flag_k = FK_NONE;
   4822     uint32_t _flag_a = 0, _flag_b = 0;
   4823     uint32_t _itail_tgt = 0;
   4824     RECOMP_REGS_LOCALS
   4825     RECOMP_ENTER(0x360C68F0u);
   4826 
   4827 L_360C68F0:
   4828     PUSH32(esp, ebp); /* 0x360C68F0: push ebp */
   4829     ebp = esp; /* 0x360C68F1: mov ebp, esp */
   4830     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C68F3: push -1 */
   4831     PUSH32(esp, 0x361677A2u); /* 0x360C68F5: push 0x361677a2 */
   4832     eax = MEM32(FS_BASE + (0)); /* 0x360C68FA: mov eax, dword ptr fs:[0] */
   4833     PUSH32(esp, eax); /* 0x360C6900: push eax */
   4834     MEM32(FS_BASE + (0)) = esp; /* 0x360C6901: mov dword ptr fs:[0], esp */
   4835     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4837     esp = esp - 0x14u; /* 0x360C6908: sub esp, 0x14 */
   4838     _flag_k = FK_CMP;
   4839     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360C690B: mov al, byte ptr [ebp + 0xb] */
   4840     PUSH32(esp, ebx); /* 0x360C690E: push ebx */
   4841     PUSH32(esp, esi); /* 0x360C690F: push esi */
   4842     esi = ecx; /* 0x360C6910: mov esi, ecx */
   4843     PUSH32(esp, edi); /* 0x360C6912: push edi */
   4844     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   4845     ecx = ecx | 0xFFFFFFFFu; /* 0x360C6913: or ecx, 0xffffffff */
   4846     _cf = 0;
   4847     _flag_k = FK_TEST;
   4848     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x360C6916: mov byte ptr [ebp - 0x20], al */
   4849     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4850     eax = 0; /* 0x360C6919: xor eax, eax */
   4851     _cf = 0;
   4852     _flag_k = FK_TEST;
   4853     edi = 0x361B4258u; /* 0x360C691B: mov edi, 0x361b4258 */
   4854     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; } /* 0x360C6920: repne scasb al, byte ptr es:[edi] */
   4855     ecx = ~ecx; /* 0x360C6922: not ecx */
   4856     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4857     ecx = ecx - 1; /* 0x360C6924: dec ecx */
   4858     _flag_k = FK_DEC;
   4859     ebx = ecx; /* 0x360C6925: mov ebx, ecx */
   4860     PUSH32(esp, 1); /* 0x360C6927: push 1 */
   4861     PUSH32(esp, ebx); /* 0x360C6929: push ebx */
   4862     ecx = ebp + (-0x20); /* 0x360C692A: lea ecx, [ebp - 0x20] */
   4863     MEM32(ebp + (-0x10)) = esi; /* 0x360C692D: mov dword ptr [ebp - 0x10], esi */
   4864     MEM32(ebp + (-0x1C)) = eax; /* 0x360C6930: mov dword ptr [ebp - 0x1c], eax */
   4865     MEM32(ebp + (-0x18)) = eax; /* 0x360C6933: mov dword ptr [ebp - 0x18], eax */
   4866     MEM32(ebp + (-0x14)) = eax; /* 0x360C6936: mov dword ptr [ebp - 0x14], eax */
   4867     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360C6939: call dword ptr [0x3616f00c] */
   4868     RECOMP_FLAGS_IN();
   4869     /* test LO8(eax), LO8(eax) */ /* 0x360C693F: test al, al */
   4870     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4871     _cf = 0;
   4872     _flag_k = FK_NARROW(FK_TEST, 24);
   4873     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6968; /* 0x360C6941: je 0x360c6968 */
   4874 L_360C6943:
   4875     edi = MEM32(ebp + (-0x1C)); /* 0x360C6943: mov edi, dword ptr [ebp - 0x1c] */
   4876     ecx = ebx; /* 0x360C6946: mov ecx, ebx */
   4877     edx = ecx; /* 0x360C6948: mov edx, ecx */
   4878     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360C694A: shr ecx, 2 */
   4879     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   4880     ecx = ecx >> 2u; /* 0x360C694A: shr ecx, 2 */
   4881     esi = 0x361B4258u; /* 0x360C694D: mov esi, 0x361b4258 */
   4882     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360C6952: 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; }
   4883     ecx = edx; /* 0x360C6954: mov ecx, edx */
   4884     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   4885     ecx = ecx & 3; /* 0x360C6956: and ecx, 3 */
   4886     _cf = 0;
   4887     _flag_k = FK_TEST;
   4888     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360C6959: 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; }
   4889     eax = MEM32(ebp + (-0x1C)); /* 0x360C695B: mov eax, dword ptr [ebp - 0x1c] */
   4890     esi = MEM32(ebp + (-0x10)); /* 0x360C695E: mov esi, dword ptr [ebp - 0x10] */
   4891     MEM32(ebp + (-0x18)) = ebx; /* 0x360C6961: mov dword ptr [ebp - 0x18], ebx */
   4892     MEM8(eax + ebx) = (uint8_t)(0); /* 0x360C6964: mov byte ptr [eax + ebx], 0 */
   4893 L_360C6968:
   4894     edx = MEM32(ebp + 0x8); /* 0x360C6968: mov edx, dword ptr [ebp + 8] */
   4895     ecx = ebp + (-0x20); /* 0x360C696B: lea ecx, [ebp - 0x20] */
   4896     PUSH32(esp, ecx); /* 0x360C696E: push ecx */
   4897     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4898     edi = 0; /* 0x360C696F: xor edi, edi */
   4899     _cf = 0;
   4900     _flag_k = FK_TEST;
   4901     PUSH32(esp, edx); /* 0x360C6971: push edx */
   4902     ecx = esi; /* 0x360C6972: mov ecx, esi */
   4903     MEM32(ebp + (-0x4)) = edi; /* 0x360C6974: mov dword ptr [ebp - 4], edi */
   4904     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x360C6977: call dword ptr [0x3616fc0c] */
   4905     RECOMP_FLAGS_IN();
   4906     eax = MEM32(ebp + (-0x1C)); /* 0x360C697D: mov eax, dword ptr [ebp - 0x1c] */
   4907     /* cmp eax, edi */ /* 0x360C6980: cmp eax, edi */
   4908     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   4909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4910     _flag_k = FK_CMP;
   4911     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x360C6982: mov byte ptr [ebp - 4], 2 */
   4912     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C69A4; /* 0x360C6986: je 0x360c69a4 */
   4913 L_360C6988:
   4914     ecx = eax + (-0x1); /* 0x360C6988: lea ecx, [eax - 1] */
   4915     SET_LO8(eax, MEM8(ecx)); /* 0x360C698B: mov al, byte ptr [ecx] */
   4916     /* test LO8(eax), LO8(eax) */ /* 0x360C698D: test al, al */
   4917     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4918     _cf = 0;
   4919     _flag_k = FK_NARROW(FK_TEST, 24);
   4920     if (TEST_Z(_flag_a, _flag_b)) goto L_360C699B; /* 0x360C698F: je 0x360c699b */
   4921 L_360C6991:
   4922     /* cmp LO8(eax), 0xFFu */ /* 0x360C6991: cmp al, 0xff */
   4923     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
   4924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4925     _flag_k = FK_NARROW(FK_CMP, 24);
   4926     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C699B; /* 0x360C6993: je 0x360c699b */
   4927 L_360C6995:
   4928     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   4929     SET_LO8(eax, LO8(eax) - 1); /* 0x360C6995: dec al */
   4930     _flag_k = FK_NARROW(FK_DEC, 24);
   4931     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360C6997: mov byte ptr [ecx], al */
   4932     goto L_360C69A4; /* 0x360C6999: jmp 0x360c69a4 */
   4933 L_360C699B:
   4934     PUSH32(esp, ecx); /* 0x360C699B: push ecx */
   4935     RECOMP_ICALL(0x3615FCC4u); /* 0x360C699C: call 0x3615fcc4 */ /* not lifted */
   4936     RECOMP_FLAGS_IN();
   4937     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4939     esp = esp + 4; /* 0x360C69A1: add esp, 4 */
   4940     _flag_k = FK_ADD;
   4941 L_360C69A4:
   4942     MEM32(esi + 0x20) = edi; /* 0x360C69A4: mov dword ptr [esi + 0x20], edi */
   4943     MEM32(esi + 0x24) = edi; /* 0x360C69A7: mov dword ptr [esi + 0x24], edi */
   4944     ecx = esi; /* 0x360C69AA: mov ecx, esi */
   4945     MEM32(ebp + (-0x1C)) = edi; /* 0x360C69AC: mov dword ptr [ebp - 0x1c], edi */
   4946     MEM32(ebp + (-0x18)) = edi; /* 0x360C69AF: mov dword ptr [ebp - 0x18], edi */
   4947     MEM32(ebp + (-0x14)) = edi; /* 0x360C69B2: mov dword ptr [ebp - 0x14], edi */
   4948     MEM32(esi) = 0x36174EF4u; /* 0x360C69B5: mov dword ptr [esi], 0x36174ef4 */
   4949     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x360C69BB: call dword ptr [0x3616fc20] */
   4950     RECOMP_FLAGS_IN();
   4951     ecx = MEM32(ebp + (-0xC)); /* 0x360C69C1: mov ecx, dword ptr [ebp - 0xc] */
   4952     edi = POP32_VAL(esp); /* 0x360C69C4: pop edi */
   4953     eax = esi; /* 0x360C69C5: mov eax, esi */
   4954     esi = POP32_VAL(esp); /* 0x360C69C7: pop esi */
   4955     ebx = POP32_VAL(esp); /* 0x360C69C8: pop ebx */
   4956     MEM32(FS_BASE + (0)) = ecx; /* 0x360C69C9: mov dword ptr fs:[0], ecx */
   4957     esp = ebp; /* 0x360C69D0: mov esp, ebp */
   4958     ebp = POP32_VAL(esp); /* 0x360C69D2: pop ebp */
   4959     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C69D3: ret 4 */
   4960     RECOMP_REGS_OUT();
   4961 }
   4962 
   4963 void sub_360C69E0(void) {
   4964     int _fpu_cmp = 0;
   4965     uint32_t _cf = 0;
   4966     int _df = 1;
   4967     uint32_t _flag_k = FK_NONE;
   4968     uint32_t _flag_a = 0, _flag_b = 0;
   4969     uint32_t _itail_tgt = 0;
   4970     RECOMP_REGS_LOCALS
   4971     RECOMP_ENTER(0x360C69E0u);
   4972 
   4973 L_360C69E0:
   4974     PUSH32(esp, ebp); /* 0x360C69E0: push ebp */
   4975     ebp = esp; /* 0x360C69E1: mov ebp, esp */
   4976     eax = MEM32(ebp + 0x8); /* 0x360C69E3: mov eax, dword ptr [ebp + 8] */
   4977     /* cmp MEM32(eax), 0xDAC3u */ /* 0x360C69E6: cmp dword ptr [eax], 0xdac3 */
   4978     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xDAC3u);
   4979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4980     _flag_k = FK_CMP;
   4981     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6A00; /* 0x360C69EC: jne 0x360c6a00 */
   4982 L_360C69EE:
   4983     edx = MEM32(eax + 0x4); /* 0x360C69EE: mov edx, dword ptr [eax + 4] */
   4984     /* test edx, edx */ /* 0x360C69F1: test edx, edx */
   4985     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   4986     _cf = 0;
   4987     _flag_k = FK_TEST;
   4988     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6A00; /* 0x360C69F3: je 0x360c6a00 */
   4989 L_360C69F5:
   4990     edx = MEM32(eax); /* 0x360C69F5: mov edx, dword ptr [eax] */
   4991     MEM32(ecx + 0x20) = edx; /* 0x360C69F7: mov dword ptr [ecx + 0x20], edx */
   4992     eax = MEM32(eax + 0x4); /* 0x360C69FA: mov eax, dword ptr [eax + 4] */
   4993     MEM32(ecx + 0x24) = eax; /* 0x360C69FD: mov dword ptr [ecx + 0x24], eax */
   4994 L_360C6A00:
   4995     ebp = POP32_VAL(esp); /* 0x360C6A00: pop ebp */
   4996     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6A01: ret 4 */
   4997     RECOMP_REGS_OUT();
   4998 }
   4999 
   5000 void sub_360C6A10(void) {
   5001     int _fpu_cmp = 0;
   5002     uint32_t _cf = 0;
   5003     int _df = 1;
   5004     uint32_t _flag_k = FK_NONE;
   5005     uint32_t _flag_a = 0, _flag_b = 0;
   5006     uint32_t _itail_tgt = 0;
   5007     RECOMP_REGS_LOCALS
   5008     RECOMP_ENTER(0x360C6A10u);
   5009 
   5010 L_360C6A10:
   5011     eax = 1; /* 0x360C6A10: mov eax, 1 */
   5012     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6A15: ret  */
   5013     RECOMP_REGS_OUT();
   5014 }
   5015 
   5016 void sub_360C6A20(void) {
   5017     int _fpu_cmp = 0;
   5018     uint32_t _cf = 0;
   5019     int _df = 1;
   5020     uint32_t _flag_k = FK_NONE;
   5021     uint32_t _flag_a = 0, _flag_b = 0;
   5022     uint32_t _itail_tgt = 0;
   5023     RECOMP_REGS_LOCALS
   5024     RECOMP_ENTER(0x360C6A20u);
   5025 
   5026 L_360C6A20:
   5027     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5028     eax = 0; /* 0x360C6A20: xor eax, eax */
   5029     _cf = 0;
   5030     _flag_k = FK_TEST;
   5031     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6A22: ret  */
   5032     RECOMP_REGS_OUT();
   5033 }
   5034 
   5035 void sub_360C6A30(void) {
   5036     int _fpu_cmp = 0;
   5037     uint32_t _cf = 0;
   5038     int _df = 1;
   5039     uint32_t _flag_k = FK_NONE;
   5040     uint32_t _flag_a = 0, _flag_b = 0;
   5041     uint32_t _itail_tgt = 0;
   5042     RECOMP_REGS_LOCALS
   5043     RECOMP_ENTER(0x360C6A30u);
   5044 
   5045 L_360C6A30:
   5046     PUSH32(esp, ebp); /* 0x360C6A30: push ebp */
   5047     ebp = esp; /* 0x360C6A31: mov ebp, esp */
   5048     PUSH32(esp, esi); /* 0x360C6A33: push esi */
   5049     esi = ecx; /* 0x360C6A34: mov esi, ecx */
   5050     eax = MEM32(esi + 0x4); /* 0x360C6A36: mov eax, dword ptr [esi + 4] */
   5051     /* cmp eax, 0xC350u */ /* 0x360C6A39: cmp eax, 0xc350 */
   5052     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC350u);
   5053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5054     _flag_k = FK_CMP;
   5055     if (CMP_NE(_flag_a, _flag_b)) goto L_360C6A85; /* 0x360C6A3E: jne 0x360c6a85 */
   5056 L_360C6A40:
   5057     ecx = MEM32(esi + 0x8); /* 0x360C6A40: mov ecx, dword ptr [esi + 8] */
   5058     /* test ecx, ecx */ /* 0x360C6A43: test ecx, ecx */
   5059     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   5060     _cf = 0;
   5061     _flag_k = FK_TEST;
   5062     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6A85; /* 0x360C6A45: jbe 0x360c6a85 */
   5063 L_360C6A47:
   5064     ecx = MEM32(ebp + 0x8); /* 0x360C6A47: mov ecx, dword ptr [ebp + 8] */
   5065     eax = ebp + 0x8; /* 0x360C6A4A: lea eax, [ebp + 8] */
   5066     PUSH32(esp, eax); /* 0x360C6A4D: push eax */
   5067     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360C6A4E: call dword ptr [0x3616fa8c] */
   5068     RECOMP_FLAGS_IN();
   5069     eax = MEM32(ebp + 0x8); /* 0x360C6A54: mov eax, dword ptr [ebp + 8] */
   5070     /* test eax, eax */ /* 0x360C6A57: test eax, eax */
   5071     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5072     _cf = 0;
   5073     _flag_k = FK_TEST;
   5074     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6A74; /* 0x360C6A59: jne 0x360c6a74 */
   5075 L_360C6A5B:
   5076     PUSH32(esp, eax); /* 0x360C6A5B: push eax */
   5077     PUSH32(esp, 0x361C912Cu); /* 0x360C6A5C: push 0x361c912c */
   5078     RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x360C6A61: call dword ptr [0x3616f18c] */
   5079     RECOMP_FLAGS_IN();
   5080     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5081     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5082     esp = esp + 8; /* 0x360C6A67: add esp, 8 */
   5083     _flag_k = FK_ADD;
   5084     eax = 1; /* 0x360C6A6A: mov eax, 1 */
   5085     esi = POP32_VAL(esp); /* 0x360C6A6F: pop esi */
   5086     ebp = POP32_VAL(esp); /* 0x360C6A70: pop ebp */
   5087     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6A71: ret 4 */
   5088 L_360C6A74:
   5089     MEM32(esi + 0x20) = 0xDAC3u; /* 0x360C6A74: mov dword ptr [esi + 0x20], 0xdac3 */
   5090     MEM32(esi + 0x24) = eax; /* 0x360C6A7B: mov dword ptr [esi + 0x24], eax */
   5091     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5092     eax = 0; /* 0x360C6A7E: xor eax, eax */
   5093     _cf = 0;
   5094     _flag_k = FK_TEST;
   5095     esi = POP32_VAL(esp); /* 0x360C6A80: pop esi */
   5096     ebp = POP32_VAL(esp); /* 0x360C6A81: pop ebp */
   5097     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6A82: ret 4 */
   5098 L_360C6A85:
   5099     ecx = MEM32(esi + 0x8); /* 0x360C6A85: mov ecx, dword ptr [esi + 8] */
   5100     PUSH32(esp, ecx); /* 0x360C6A88: push ecx */
   5101     PUSH32(esp, eax); /* 0x360C6A89: push eax */
   5102     PUSH32(esp, 0x361C90D0u); /* 0x360C6A8A: push 0x361c90d0 */
   5103     RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x360C6A8F: call dword ptr [0x3616f18c] */
   5104     RECOMP_FLAGS_IN();
   5105     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5106     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5107     esp = esp + 0xCu; /* 0x360C6A95: add esp, 0xc */
   5108     _flag_k = FK_ADD;
   5109     eax = 1; /* 0x360C6A98: mov eax, 1 */
   5110     esi = POP32_VAL(esp); /* 0x360C6A9D: pop esi */
   5111     ebp = POP32_VAL(esp); /* 0x360C6A9E: pop ebp */
   5112     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6A9F: ret 4 */
   5113     RECOMP_REGS_OUT();
   5114 }
   5115 
   5116 void sub_360C6AB0(void) {
   5117     int _fpu_cmp = 0;
   5118     uint32_t _cf = 0;
   5119     int _df = 1;
   5120     uint32_t _flag_k = FK_NONE;
   5121     uint32_t _flag_a = 0, _flag_b = 0;
   5122     uint32_t _itail_tgt = 0;
   5123     RECOMP_REGS_LOCALS
   5124     RECOMP_ENTER(0x360C6AB0u);
   5125 
   5126 L_360C6AB0:
   5127     PUSH32(esp, ebp); /* 0x360C6AB0: push ebp */
   5128     ebp = esp; /* 0x360C6AB1: mov ebp, esp */
   5129     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5131     esp = esp - 8; /* 0x360C6AB3: sub esp, 8 */
   5132     _flag_k = FK_CMP;
   5133     eax = MEM32(ecx + 0x20); /* 0x360C6AB6: mov eax, dword ptr [ecx + 0x20] */
   5134     /* test eax, eax */ /* 0x360C6AB9: test eax, eax */
   5135     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5136     _cf = 0;
   5137     _flag_k = FK_TEST;
   5138     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6AE0; /* 0x360C6ABB: jne 0x360c6ae0 */
   5139 L_360C6ABD:
   5140     eax = MEM32(ecx + 0x24); /* 0x360C6ABD: mov eax, dword ptr [ecx + 0x24] */
   5141     /* test eax, eax */ /* 0x360C6AC0: test eax, eax */
   5142     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5143     _cf = 0;
   5144     _flag_k = FK_TEST;
   5145     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6AE0; /* 0x360C6AC2: jne 0x360c6ae0 */
   5146 L_360C6AC4:
   5147     PUSH32(esp, 0x361C91A4u); /* 0x360C6AC4: push 0x361c91a4 */
   5148     ecx = ebp + (-0x8); /* 0x360C6AC9: lea ecx, [ebp - 8] */
   5149     RECOMP_ICALL(MEM32(0x3616FD8C)); /* 0x360C6ACC: call dword ptr [0x3616fd8c] */
   5150     RECOMP_FLAGS_IN();
   5151     PUSH32(esp, 0x3618CC40u); /* 0x360C6AD2: push 0x3618cc40 */
   5152     eax = ebp + (-0x8); /* 0x360C6AD7: lea eax, [ebp - 8] */
   5153     PUSH32(esp, eax); /* 0x360C6ADA: push eax */
   5154     RECOMP_ICALL(0x3615FD70u); /* 0x360C6ADB: call 0x3615fd70 */ /* not lifted */
   5155     RECOMP_FLAGS_IN();
   5156 L_360C6AE0:
   5157     ecx = MEM32(ecx + 0x24); /* 0x360C6AE0: mov ecx, dword ptr [ecx + 0x24] */
   5158     PUSH32(esp, ecx); /* 0x360C6AE3: push ecx */
   5159     ecx = MEM32(ebp + 0x8); /* 0x360C6AE4: mov ecx, dword ptr [ebp + 8] */
   5160     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x360C6AE7: call dword ptr [0x3616faec] */
   5161     RECOMP_FLAGS_IN();
   5162     esp = ebp; /* 0x360C6AED: mov esp, ebp */
   5163     ebp = POP32_VAL(esp); /* 0x360C6AEF: pop ebp */
   5164     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6AF0: ret 4 */
   5165     RECOMP_REGS_OUT();
   5166 }
   5167 
   5168 void sub_360C6B00(void) {
   5169     int _fpu_cmp = 0;
   5170     uint32_t _cf = 0;
   5171     int _df = 1;
   5172     uint32_t _flag_k = FK_NONE;
   5173     uint32_t _flag_a = 0, _flag_b = 0;
   5174     uint32_t _itail_tgt = 0;
   5175     RECOMP_REGS_LOCALS
   5176     RECOMP_ENTER(0x360C6B00u);
   5177 
   5178 L_360C6B00:
   5179     PUSH32(esp, esi); /* 0x360C6B00: push esi */
   5180     esi = ecx; /* 0x360C6B01: mov esi, ecx */
   5181     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360C6B03: call dword ptr [0x3616ffd0] */
   5182     RECOMP_FLAGS_IN();
   5183     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5184     eax = 0; /* 0x360C6B09: xor eax, eax */
   5185     _cf = 0;
   5186     _flag_k = FK_TEST;
   5187     MEM32(esi + 0x24) = eax; /* 0x360C6B0B: mov dword ptr [esi + 0x24], eax */
   5188     MEM32(esi + 0x28) = eax; /* 0x360C6B0E: mov dword ptr [esi + 0x28], eax */
   5189     MEM32(esi) = 0x36174F18u; /* 0x360C6B11: mov dword ptr [esi], 0x36174f18 */
   5190     eax = esi; /* 0x360C6B17: mov eax, esi */
   5191     esi = POP32_VAL(esp); /* 0x360C6B19: pop esi */
   5192     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6B1A: ret  */
   5193     RECOMP_REGS_OUT();
   5194 }
   5195 
   5196 void sub_360C6B20(void) {
   5197     int _fpu_cmp = 0;
   5198     uint32_t _cf = 0;
   5199     int _df = 1;
   5200     uint32_t _flag_k = FK_NONE;
   5201     uint32_t _flag_a = 0, _flag_b = 0;
   5202     uint32_t _itail_tgt = 0;
   5203     RECOMP_REGS_LOCALS
   5204     RECOMP_ENTER(0x360C6B20u);
   5205 
   5206 L_360C6B20:
   5207     SET_LO8(eax, 1); /* 0x360C6B20: mov al, 1 */
   5208     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6B22: ret  */
   5209     RECOMP_REGS_OUT();
   5210 }
   5211 
   5212 void sub_360C6B30(void) {
   5213     int _fpu_cmp = 0;
   5214     uint32_t _cf = 0;
   5215     int _df = 1;
   5216     uint32_t _flag_k = FK_NONE;
   5217     uint32_t _flag_a = 0, _flag_b = 0;
   5218     uint32_t _itail_tgt = 0;
   5219     RECOMP_REGS_LOCALS
   5220     RECOMP_ENTER(0x360C6B30u);
   5221 
   5222 L_360C6B30:
   5223     PUSH32(esp, ebp); /* 0x360C6B30: push ebp */
   5224     ebp = esp; /* 0x360C6B31: mov ebp, esp */
   5225     PUSH32(esp, esi); /* 0x360C6B33: push esi */
   5226     esi = ecx; /* 0x360C6B34: mov esi, ecx */
   5227     RECOMP_ICALL(0x360C6B60u); /* 0x360C6B36: call 0x360c6b60 */ /* not lifted */
   5228     RECOMP_FLAGS_IN();
   5229     /* test MEM8(ebp + 0x8), 1 */ /* 0x360C6B3B: test byte ptr [ebp + 8], 1 */
   5230     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5231     _cf = 0;
   5232     _flag_k = FK_NARROW(FK_TEST, 24);
   5233     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6B4A; /* 0x360C6B3F: je 0x360c6b4a */
   5234 L_360C6B41:
   5235     PUSH32(esp, esi); /* 0x360C6B41: push esi */
   5236     RECOMP_ICALL(0x3615FCC4u); /* 0x360C6B42: call 0x3615fcc4 */ /* not lifted */
   5237     RECOMP_FLAGS_IN();
   5238     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5239     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5240     esp = esp + 4; /* 0x360C6B47: add esp, 4 */
   5241     _flag_k = FK_ADD;
   5242 L_360C6B4A:
   5243     eax = esi; /* 0x360C6B4A: mov eax, esi */
   5244     esi = POP32_VAL(esp); /* 0x360C6B4C: pop esi */
   5245     ebp = POP32_VAL(esp); /* 0x360C6B4D: pop ebp */
   5246     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6B4E: ret 4 */
   5247     RECOMP_REGS_OUT();
   5248 }
   5249 
   5250 void sub_360C6B60(void) {
   5251     int _fpu_cmp = 0;
   5252     uint32_t _cf = 0;
   5253     int _df = 1;
   5254     uint32_t _flag_k = FK_NONE;
   5255     uint32_t _flag_a = 0, _flag_b = 0;
   5256     uint32_t _itail_tgt = 0;
   5257     RECOMP_REGS_LOCALS
   5258     RECOMP_ENTER(0x360C6B60u);
   5259 
   5260 L_360C6B60:
   5261     MEM32(ecx) = 0x36174F18u; /* 0x360C6B60: mov dword ptr [ecx], 0x36174f18 */
   5262 L_360C6B66:
   5263     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   5264     { RECOMP_REGS_OUT(); return; } /* end of function */
   5265   _ljump:
   5266     switch (_itail_tgt) {
   5267       case 0x360C6B60u: goto L_360C6B60;
   5268       case 0x360C6B66u: goto L_360C6B66;
   5269       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5270     }
   5271     RECOMP_REGS_OUT();
   5272 }
   5273 
   5274 void sub_360C6B70(void) {
   5275     int _fpu_cmp = 0;
   5276     uint32_t _cf = 0;
   5277     int _df = 1;
   5278     uint32_t _flag_k = FK_NONE;
   5279     uint32_t _flag_a = 0, _flag_b = 0;
   5280     uint32_t _itail_tgt = 0;
   5281     RECOMP_REGS_LOCALS
   5282     RECOMP_ENTER(0x360C6B70u);
   5283 
   5284 L_360C6B70:
   5285     PUSH32(esp, ebp); /* 0x360C6B70: push ebp */
   5286     ebp = esp; /* 0x360C6B71: mov ebp, esp */
   5287     PUSH32(esp, ebx); /* 0x360C6B73: push ebx */
   5288     ebx = MEM32(0x3616FA8C); /* 0x360C6B74: mov ebx, dword ptr [0x3616fa8c] */
   5289     PUSH32(esp, esi); /* 0x360C6B7A: push esi */
   5290     esi = MEM32(ebp + 0x8); /* 0x360C6B7B: mov esi, dword ptr [ebp + 8] */
   5291     PUSH32(esp, edi); /* 0x360C6B7E: push edi */
   5292     eax = ebp + 0x8; /* 0x360C6B7F: lea eax, [ebp + 8] */
   5293     edi = ecx; /* 0x360C6B82: mov edi, ecx */
   5294     PUSH32(esp, eax); /* 0x360C6B84: push eax */
   5295     ecx = esi; /* 0x360C6B85: mov ecx, esi */
   5296     RECOMP_ICALL(ebx); /* 0x360C6B87: call ebx */
   5297     RECOMP_FLAGS_IN();
   5298     ecx = MEM32(ebp + 0x8); /* 0x360C6B89: mov ecx, dword ptr [ebp + 8] */
   5299     /* cmp ecx, MEM32(0x361C91CC) */ /* 0x360C6B8C: cmp ecx, dword ptr [0x361c91cc] */
   5300     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x361C91CC));
   5301     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5302     _flag_k = FK_CMP;
   5303     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6BA0; /* 0x360C6B92: je 0x360c6ba0 */
   5304 L_360C6B94:
   5305     edi = POP32_VAL(esp); /* 0x360C6B94: pop edi */
   5306     esi = POP32_VAL(esp); /* 0x360C6B95: pop esi */
   5307     eax = 1; /* 0x360C6B96: mov eax, 1 */
   5308     ebx = POP32_VAL(esp); /* 0x360C6B9B: pop ebx */
   5309     ebp = POP32_VAL(esp); /* 0x360C6B9C: pop ebp */
   5310     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6B9D: ret 4 */
   5311 L_360C6BA0:
   5312     edx = edi + 0x24; /* 0x360C6BA0: lea edx, [edi + 0x24] */
   5313     PUSH32(esp, edx); /* 0x360C6BA3: push edx */
   5314     PUSH32(esp, esi); /* 0x360C6BA4: push esi */
   5315     RECOMP_ICALL(0x3615B870u); /* 0x360C6BA5: call 0x3615b870 */ /* not lifted */
   5316     RECOMP_FLAGS_IN();
   5317     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5319     esp = esp + 8; /* 0x360C6BAA: add esp, 8 */
   5320     _flag_k = FK_ADD;
   5321     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u);
   5322     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5323     edi = edi + 0x20u; /* 0x360C6BAD: add edi, 0x20 */
   5324     _flag_k = FK_ADD;
   5325     PUSH32(esp, edi); /* 0x360C6BB0: push edi */
   5326     ecx = esi; /* 0x360C6BB1: mov ecx, esi */
   5327     RECOMP_ICALL(ebx); /* 0x360C6BB3: call ebx */
   5328     RECOMP_FLAGS_IN();
   5329     ecx = esi; /* 0x360C6BB5: mov ecx, esi */
   5330     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360C6BB7: call dword ptr [0x3616fadc] */
   5331     RECOMP_FLAGS_IN();
   5332     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5333     _cf = (eax) != 0;
   5334     eax = (uint32_t)(-(int32_t)eax); /* 0x360C6BBD: neg eax */
   5335     _flag_k = FK_CMP;
   5336     edi = POP32_VAL(esp); /* 0x360C6BBF: pop edi */
   5337     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360C6BC0: sbb eax, eax */
   5338       eax = _sc ? 0xFFFFFFFFu : 0;
   5339       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5340       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5341     esi = POP32_VAL(esp); /* 0x360C6BC2: pop esi */
   5342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5343     eax = eax + 1; /* 0x360C6BC3: inc eax */
   5344     _flag_k = FK_INC;
   5345     ebx = POP32_VAL(esp); /* 0x360C6BC4: pop ebx */
   5346     ebp = POP32_VAL(esp); /* 0x360C6BC5: pop ebp */
   5347     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6BC6: ret 4 */
   5348     RECOMP_REGS_OUT();
   5349 }
   5350 
   5351 void sub_360C6BD0(void) {
   5352     int _fpu_cmp = 0;
   5353     uint32_t _cf = 0;
   5354     int _df = 1;
   5355     uint32_t _flag_k = FK_NONE;
   5356     uint32_t _flag_a = 0, _flag_b = 0;
   5357     uint32_t _itail_tgt = 0;
   5358     RECOMP_REGS_LOCALS
   5359     RECOMP_ENTER(0x360C6BD0u);
   5360 
   5361 L_360C6BD0:
   5362     PUSH32(esp, ebp); /* 0x360C6BD0: push ebp */
   5363     ebp = esp; /* 0x360C6BD1: mov ebp, esp */
   5364     eax = MEM32(0x361C91CC); /* 0x360C6BD3: mov eax, dword ptr [0x361c91cc] */
   5365     PUSH32(esp, ebx); /* 0x360C6BD8: push ebx */
   5366     ebx = MEM32(0x3616FAEC); /* 0x360C6BD9: mov ebx, dword ptr [0x3616faec] */
   5367     PUSH32(esp, esi); /* 0x360C6BDF: push esi */
   5368     PUSH32(esp, edi); /* 0x360C6BE0: push edi */
   5369     edi = MEM32(ebp + 0x8); /* 0x360C6BE1: mov edi, dword ptr [ebp + 8] */
   5370     esi = ecx; /* 0x360C6BE4: mov esi, ecx */
   5371     PUSH32(esp, eax); /* 0x360C6BE6: push eax */
   5372     ecx = edi; /* 0x360C6BE7: mov ecx, edi */
   5373     RECOMP_ICALL(ebx); /* 0x360C6BE9: call ebx */
   5374     RECOMP_FLAGS_IN();
   5375     ecx = esi + 0x24; /* 0x360C6BEB: lea ecx, [esi + 0x24] */
   5376     PUSH32(esp, ecx); /* 0x360C6BEE: push ecx */
   5377     PUSH32(esp, edi); /* 0x360C6BEF: push edi */
   5378     RECOMP_ICALL(0x3615B840u); /* 0x360C6BF0: call 0x3615b840 */ /* not lifted */
   5379     RECOMP_FLAGS_IN();
   5380     edx = MEM32(esi + 0x20); /* 0x360C6BF5: mov edx, dword ptr [esi + 0x20] */
   5381     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5383     esp = esp + 8; /* 0x360C6BF8: add esp, 8 */
   5384     _flag_k = FK_ADD;
   5385     PUSH32(esp, edx); /* 0x360C6BFB: push edx */
   5386     ecx = edi; /* 0x360C6BFC: mov ecx, edi */
   5387     RECOMP_ICALL(ebx); /* 0x360C6BFE: call ebx */
   5388     RECOMP_FLAGS_IN();
   5389     edi = POP32_VAL(esp); /* 0x360C6C00: pop edi */
   5390     esi = POP32_VAL(esp); /* 0x360C6C01: pop esi */
   5391     ebx = POP32_VAL(esp); /* 0x360C6C02: pop ebx */
   5392     ebp = POP32_VAL(esp); /* 0x360C6C03: pop ebp */
   5393     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6C04: ret 4 */
   5394     RECOMP_REGS_OUT();
   5395 }
   5396 
   5397 void sub_360C6C10(void) {
   5398     int _fpu_cmp = 0;
   5399     uint32_t _cf = 0;
   5400     int _df = 1;
   5401     uint32_t _flag_k = FK_NONE;
   5402     uint32_t _flag_a = 0, _flag_b = 0;
   5403     uint32_t _itail_tgt = 0;
   5404     RECOMP_REGS_LOCALS
   5405     RECOMP_ENTER(0x360C6C10u);
   5406 
   5407 L_360C6C10:
   5408     PUSH32(esp, ebx); /* 0x360C6C10: push ebx */
   5409     ebx = MEM32(0x3616FF70); /* 0x360C6C11: mov ebx, dword ptr [0x3616ff70] */
   5410     PUSH32(esp, esi); /* 0x360C6C17: push esi */
   5411     PUSH32(esp, edi); /* 0x360C6C18: push edi */
   5412     PUSH32(esp, 0); /* 0x360C6C19: push 0 */
   5413     PUSH32(esp, 0x361B2CD8u); /* 0x360C6C1B: push 0x361b2cd8 */
   5414     esi = ecx; /* 0x360C6C20: mov esi, ecx */
   5415     PUSH32(esp, 0x361B2CC0u); /* 0x360C6C22: push 0x361b2cc0 */
   5416     edi = esi + 0x4; /* 0x360C6C27: lea edi, [esi + 4] */
   5417     PUSH32(esp, 0); /* 0x360C6C2A: push 0 */
   5418     PUSH32(esp, edi); /* 0x360C6C2C: push edi */
   5419     RECOMP_ICALL(ebx); /* 0x360C6C2D: call ebx */
   5420     RECOMP_FLAGS_IN();
   5421     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5423     esp = esp + 4; /* 0x360C6C2F: add esp, 4 */
   5424     _flag_k = FK_ADD;
   5425     PUSH32(esp, eax); /* 0x360C6C32: push eax */
   5426     RECOMP_ICALL(0x3615FD86u); /* 0x360C6C33: call 0x3615fd86 */ /* not lifted */
   5427     RECOMP_FLAGS_IN();
   5428     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5429     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5430     esp = esp + 0x14u; /* 0x360C6C38: add esp, 0x14 */
   5431     _flag_k = FK_ADD;
   5432     /* test eax, eax */ /* 0x360C6C3B: test eax, eax */
   5433     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5434     _cf = 0;
   5435     _flag_k = FK_TEST;
   5436     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6C5B; /* 0x360C6C3D: je 0x360c6c5b */
   5437 L_360C6C3F:
   5438     ecx = MEM32(esi + 0x20); /* 0x360C6C3F: mov ecx, dword ptr [esi + 0x20] */
   5439     PUSH32(esp, ecx); /* 0x360C6C42: push ecx */
   5440     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   5441     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5442     esi = esi + 0x24u; /* 0x360C6C43: add esi, 0x24 */
   5443     _flag_k = FK_ADD;
   5444     PUSH32(esp, esi); /* 0x360C6C46: push esi */
   5445     ecx = eax; /* 0x360C6C47: mov ecx, eax */
   5446     RECOMP_ICALL(0x36071F20u); /* 0x360C6C49: call 0x36071f20 */ /* not lifted */
   5447     RECOMP_FLAGS_IN();
   5448     ecx = eax; /* 0x360C6C4E: mov ecx, eax */
   5449     RECOMP_ICALL(0x3606C060u); /* 0x360C6C50: call 0x3606c060 */ /* not lifted */
   5450     RECOMP_FLAGS_IN();
   5451     edi = POP32_VAL(esp); /* 0x360C6C55: pop edi */
   5452     esi = POP32_VAL(esp); /* 0x360C6C56: pop esi */
   5453     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5454     eax = 0; /* 0x360C6C57: xor eax, eax */
   5455     _cf = 0;
   5456     _flag_k = FK_TEST;
   5457     ebx = POP32_VAL(esp); /* 0x360C6C59: pop ebx */
   5458     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6C5A: ret  */
   5459 L_360C6C5B:
   5460     PUSH32(esp, 0); /* 0x360C6C5B: push 0 */
   5461     PUSH32(esp, 0x361C61F0u); /* 0x360C6C5D: push 0x361c61f0 */
   5462     PUSH32(esp, 0x361B2CC0u); /* 0x360C6C62: push 0x361b2cc0 */
   5463     PUSH32(esp, 0); /* 0x360C6C67: push 0 */
   5464     PUSH32(esp, edi); /* 0x360C6C69: push edi */
   5465     RECOMP_ICALL(ebx); /* 0x360C6C6A: call ebx */
   5466     RECOMP_FLAGS_IN();
   5467     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5468     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5469     esp = esp + 4; /* 0x360C6C6C: add esp, 4 */
   5470     _flag_k = FK_ADD;
   5471     PUSH32(esp, eax); /* 0x360C6C6F: push eax */
   5472     RECOMP_ICALL(0x3615FD86u); /* 0x360C6C70: call 0x3615fd86 */ /* not lifted */
   5473     RECOMP_FLAGS_IN();
   5474     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5475     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5476     esp = esp + 0x14u; /* 0x360C6C75: add esp, 0x14 */
   5477     _flag_k = FK_ADD;
   5478     /* test eax, eax */ /* 0x360C6C78: test eax, eax */
   5479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5480     _cf = 0;
   5481     _flag_k = FK_TEST;
   5482     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6C8B; /* 0x360C6C7A: je 0x360c6c8b */
   5483 L_360C6C7C:
   5484     edx = MEM32(esi + 0x20); /* 0x360C6C7C: mov edx, dword ptr [esi + 0x20] */
   5485     PUSH32(esp, edx); /* 0x360C6C7F: push edx */
   5486     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u);
   5487     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5488     esi = esi + 0x24u; /* 0x360C6C80: add esi, 0x24 */
   5489     _flag_k = FK_ADD;
   5490     PUSH32(esp, esi); /* 0x360C6C83: push esi */
   5491     ecx = eax; /* 0x360C6C84: mov ecx, eax */
   5492     RECOMP_ICALL(0x3609B070u); /* 0x360C6C86: call 0x3609b070 */ /* not lifted */
   5493     RECOMP_FLAGS_IN();
   5494 L_360C6C8B:
   5495     edi = POP32_VAL(esp); /* 0x360C6C8B: pop edi */
   5496     esi = POP32_VAL(esp); /* 0x360C6C8C: pop esi */
   5497     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5498     eax = 0; /* 0x360C6C8D: xor eax, eax */
   5499     _cf = 0;
   5500     _flag_k = FK_TEST;
   5501     ebx = POP32_VAL(esp); /* 0x360C6C8F: pop ebx */
   5502     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6C90: ret  */
   5503     RECOMP_REGS_OUT();
   5504 }
   5505 
   5506 void sub_360C6CA0(void) {
   5507     int _fpu_cmp = 0;
   5508     uint32_t _cf = 0;
   5509     int _df = 1;
   5510     uint32_t _flag_k = FK_NONE;
   5511     uint32_t _flag_a = 0, _flag_b = 0;
   5512     uint32_t _itail_tgt = 0;
   5513     RECOMP_REGS_LOCALS
   5514     RECOMP_ENTER(0x360C6CA0u);
   5515 
   5516 L_360C6CA0:
   5517     PUSH32(esp, esi); /* 0x360C6CA0: push esi */
   5518     esi = ecx; /* 0x360C6CA1: mov esi, ecx */
   5519     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360C6CA3: call dword ptr [0x3616ffd0] */
   5520     RECOMP_FLAGS_IN();
   5521     MEM32(esi) = 0x36174F3Cu; /* 0x360C6CA9: mov dword ptr [esi], 0x36174f3c */
   5522     eax = esi; /* 0x360C6CAF: mov eax, esi */
   5523     esi = POP32_VAL(esp); /* 0x360C6CB1: pop esi */
   5524     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6CB2: ret  */
   5525     RECOMP_REGS_OUT();
   5526 }
   5527 
   5528 void sub_360C6CC0(void) {
   5529     int _fpu_cmp = 0;
   5530     uint32_t _cf = 0;
   5531     int _df = 1;
   5532     uint32_t _flag_k = FK_NONE;
   5533     uint32_t _flag_a = 0, _flag_b = 0;
   5534     uint32_t _itail_tgt = 0;
   5535     RECOMP_REGS_LOCALS
   5536     RECOMP_ENTER(0x360C6CC0u);
   5537 
   5538 L_360C6CC0:
   5539     PUSH32(esp, ebp); /* 0x360C6CC0: push ebp */
   5540     ebp = esp; /* 0x360C6CC1: mov ebp, esp */
   5541     PUSH32(esp, esi); /* 0x360C6CC3: push esi */
   5542     esi = ecx; /* 0x360C6CC4: mov esi, ecx */
   5543     RECOMP_ICALL(0x360C6CF0u); /* 0x360C6CC6: call 0x360c6cf0 */ /* not lifted */
   5544     RECOMP_FLAGS_IN();
   5545     /* test MEM8(ebp + 0x8), 1 */ /* 0x360C6CCB: test byte ptr [ebp + 8], 1 */
   5546     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5547     _cf = 0;
   5548     _flag_k = FK_NARROW(FK_TEST, 24);
   5549     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6CDA; /* 0x360C6CCF: je 0x360c6cda */
   5550 L_360C6CD1:
   5551     PUSH32(esp, esi); /* 0x360C6CD1: push esi */
   5552     RECOMP_ICALL(0x3615FCC4u); /* 0x360C6CD2: call 0x3615fcc4 */ /* not lifted */
   5553     RECOMP_FLAGS_IN();
   5554     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5555     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5556     esp = esp + 4; /* 0x360C6CD7: add esp, 4 */
   5557     _flag_k = FK_ADD;
   5558 L_360C6CDA:
   5559     eax = esi; /* 0x360C6CDA: mov eax, esi */
   5560     esi = POP32_VAL(esp); /* 0x360C6CDC: pop esi */
   5561     ebp = POP32_VAL(esp); /* 0x360C6CDD: pop ebp */
   5562     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6CDE: ret 4 */
   5563     RECOMP_REGS_OUT();
   5564 }
   5565 
   5566 void sub_360C6CF0(void) {
   5567     int _fpu_cmp = 0;
   5568     uint32_t _cf = 0;
   5569     int _df = 1;
   5570     uint32_t _flag_k = FK_NONE;
   5571     uint32_t _flag_a = 0, _flag_b = 0;
   5572     uint32_t _itail_tgt = 0;
   5573     RECOMP_REGS_LOCALS
   5574     RECOMP_ENTER(0x360C6CF0u);
   5575 
   5576 L_360C6CF0:
   5577     MEM32(ecx) = 0x36174F3Cu; /* 0x360C6CF0: mov dword ptr [ecx], 0x36174f3c */
   5578 L_360C6CF6:
   5579     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   5580     { RECOMP_REGS_OUT(); return; } /* end of function */
   5581   _ljump:
   5582     switch (_itail_tgt) {
   5583       case 0x360C6CF0u: goto L_360C6CF0;
   5584       case 0x360C6CF6u: goto L_360C6CF6;
   5585       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   5586     }
   5587     RECOMP_REGS_OUT();
   5588 }
   5589 
   5590 void sub_360C6D00(void) {
   5591     int _fpu_cmp = 0;
   5592     uint32_t _cf = 0;
   5593     int _df = 1;
   5594     uint32_t _flag_k = FK_NONE;
   5595     uint32_t _flag_a = 0, _flag_b = 0;
   5596     uint32_t _itail_tgt = 0;
   5597     RECOMP_REGS_LOCALS
   5598     RECOMP_ENTER(0x360C6D00u);
   5599 
   5600 L_360C6D00:
   5601     PUSH32(esp, ebp); /* 0x360C6D00: push ebp */
   5602     ebp = esp; /* 0x360C6D01: mov ebp, esp */
   5603     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C6D03: push -1 */
   5604     PUSH32(esp, 0x361677BBu); /* 0x360C6D05: push 0x361677bb */
   5605     eax = MEM32(FS_BASE + (0)); /* 0x360C6D0A: mov eax, dword ptr fs:[0] */
   5606     PUSH32(esp, eax); /* 0x360C6D10: push eax */
   5607     MEM32(FS_BASE + (0)) = esp; /* 0x360C6D11: mov dword ptr fs:[0], esp */
   5608     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5609     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5610     esp = esp - 0xCu; /* 0x360C6D18: sub esp, 0xc */
   5611     _flag_k = FK_CMP;
   5612     PUSH32(esp, ebx); /* 0x360C6D1B: push ebx */
   5613     ebx = MEM32(0x3616FA8C); /* 0x360C6D1C: mov ebx, dword ptr [0x3616fa8c] */
   5614     PUSH32(esp, esi); /* 0x360C6D22: push esi */
   5615     esi = MEM32(ebp + 0x8); /* 0x360C6D23: mov esi, dword ptr [ebp + 8] */
   5616     PUSH32(esp, edi); /* 0x360C6D26: push edi */
   5617     eax = ebp + 0x8; /* 0x360C6D27: lea eax, [ebp + 8] */
   5618     edi = ecx; /* 0x360C6D2A: mov edi, ecx */
   5619     PUSH32(esp, eax); /* 0x360C6D2C: push eax */
   5620     ecx = esi; /* 0x360C6D2D: mov ecx, esi */
   5621     RECOMP_ICALL(ebx); /* 0x360C6D2F: call ebx */
   5622     RECOMP_FLAGS_IN();
   5623     ecx = MEM32(ebp + 0x8); /* 0x360C6D31: mov ecx, dword ptr [ebp + 8] */
   5624     /* cmp ecx, MEM32(0x361C91F0) */ /* 0x360C6D34: cmp ecx, dword ptr [0x361c91f0] */
   5625     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x361C91F0));
   5626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5627     _flag_k = FK_CMP;
   5628     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6D54; /* 0x360C6D3A: je 0x360c6d54 */
   5629 L_360C6D3C:
   5630     edi = POP32_VAL(esp); /* 0x360C6D3C: pop edi */
   5631     esi = POP32_VAL(esp); /* 0x360C6D3D: pop esi */
   5632     eax = 1; /* 0x360C6D3E: mov eax, 1 */
   5633     ebx = POP32_VAL(esp); /* 0x360C6D43: pop ebx */
   5634     ecx = MEM32(ebp + (-0xC)); /* 0x360C6D44: mov ecx, dword ptr [ebp - 0xc] */
   5635     MEM32(FS_BASE + (0)) = ecx; /* 0x360C6D47: mov dword ptr fs:[0], ecx */
   5636     esp = ebp; /* 0x360C6D4E: mov esp, ebp */
   5637     ebp = POP32_VAL(esp); /* 0x360C6D50: pop ebp */
   5638     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6D51: ret 4 */
   5639 L_360C6D54:
   5640     edx = edi + 0x24; /* 0x360C6D54: lea edx, [edi + 0x24] */
   5641     PUSH32(esp, edx); /* 0x360C6D57: push edx */
   5642     ecx = esi; /* 0x360C6D58: mov ecx, esi */
   5643     RECOMP_ICALL(ebx); /* 0x360C6D5A: call ebx */
   5644     RECOMP_FLAGS_IN();
   5645     eax = ebp + (-0x18); /* 0x360C6D5C: lea eax, [ebp - 0x18] */
   5646     PUSH32(esp, eax); /* 0x360C6D5F: push eax */
   5647     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5648     ebx = 0; /* 0x360C6D60: xor ebx, ebx */
   5649     _cf = 0;
   5650     _flag_k = FK_TEST;
   5651     PUSH32(esp, esi); /* 0x360C6D62: push esi */
   5652     MEM32(ebp + (-0x18)) = ebx; /* 0x360C6D63: mov dword ptr [ebp - 0x18], ebx */
   5653     MEM32(ebp + (-0x14)) = ebx; /* 0x360C6D66: mov dword ptr [ebp - 0x14], ebx */
   5654     RECOMP_ICALL(0x3615B870u); /* 0x360C6D69: call 0x3615b870 */ /* not lifted */
   5655     RECOMP_FLAGS_IN();
   5656     PUSH32(esp, 0xA0u); /* 0x360C6D6E: push 0xa0 */
   5657     RECOMP_ICALL(0x3615FD6Au); /* 0x360C6D73: call 0x3615fd6a */ /* not lifted */
   5658     RECOMP_FLAGS_IN();
   5659     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5660     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5661     esp = esp + 0xCu; /* 0x360C6D78: add esp, 0xc */
   5662     _flag_k = FK_ADD;
   5663     MEM32(ebp + (-0x10)) = eax; /* 0x360C6D7B: mov dword ptr [ebp - 0x10], eax */
   5664     /* cmp eax, ebx */ /* 0x360C6D7E: cmp eax, ebx */
   5665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5667     _flag_k = FK_CMP;
   5668     MEM32(ebp + (-0x4)) = ebx; /* 0x360C6D80: mov dword ptr [ebp - 4], ebx */
   5669     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6D96; /* 0x360C6D83: je 0x360c6d96 */
   5670 L_360C6D85:
   5671     ecx = MEM32(ebp + (-0x14)); /* 0x360C6D85: mov ecx, dword ptr [ebp - 0x14] */
   5672     edx = MEM32(ebp + (-0x18)); /* 0x360C6D88: mov edx, dword ptr [ebp - 0x18] */
   5673     PUSH32(esp, ecx); /* 0x360C6D8B: push ecx */
   5674     PUSH32(esp, edx); /* 0x360C6D8C: push edx */
   5675     ecx = eax; /* 0x360C6D8D: mov ecx, eax */
   5676     RECOMP_ICALL(0x360C3F20u); /* 0x360C6D8F: call 0x360c3f20 */ /* not lifted */
   5677     RECOMP_FLAGS_IN();
   5678     goto L_360C6D98; /* 0x360C6D94: jmp 0x360c6d98 */
   5679 L_360C6D96:
   5680     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5681     eax = 0; /* 0x360C6D96: xor eax, eax */
   5682     _cf = 0;
   5683     _flag_k = FK_TEST;
   5684 L_360C6D98:
   5685     PUSH32(esp, eax); /* 0x360C6D98: push eax */
   5686     PUSH32(esp, esi); /* 0x360C6D99: push esi */
   5687     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360C6D9A: mov dword ptr [ebp - 4], 0xffffffff */
   5688     MEM32(edi + 0x20) = eax; /* 0x360C6DA1: mov dword ptr [edi + 0x20], eax */
   5689     RECOMP_ICALL(0x360C4D80u); /* 0x360C6DA4: call 0x360c4d80 */ /* not lifted */
   5690     RECOMP_FLAGS_IN();
   5691     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5692     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5693     esp = esp + 8; /* 0x360C6DA9: add esp, 8 */
   5694     _flag_k = FK_ADD;
   5695     ecx = esi; /* 0x360C6DAC: mov ecx, esi */
   5696     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360C6DAE: call dword ptr [0x3616fadc] */
   5697     RECOMP_FLAGS_IN();
   5698     ecx = MEM32(ebp + (-0xC)); /* 0x360C6DB4: mov ecx, dword ptr [ebp - 0xc] */
   5699     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5700     _cf = (eax) != 0;
   5701     eax = (uint32_t)(-(int32_t)eax); /* 0x360C6DB7: neg eax */
   5702     _flag_k = FK_CMP;
   5703     edi = POP32_VAL(esp); /* 0x360C6DB9: pop edi */
   5704     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360C6DBA: sbb eax, eax */
   5705       eax = _sc ? 0xFFFFFFFFu : 0;
   5706       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5707       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5708     esi = POP32_VAL(esp); /* 0x360C6DBC: pop esi */
   5709     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5710     eax = eax + 1; /* 0x360C6DBD: inc eax */
   5711     _flag_k = FK_INC;
   5712     ebx = POP32_VAL(esp); /* 0x360C6DBE: pop ebx */
   5713     MEM32(FS_BASE + (0)) = ecx; /* 0x360C6DBF: mov dword ptr fs:[0], ecx */
   5714     esp = ebp; /* 0x360C6DC6: mov esp, ebp */
   5715     ebp = POP32_VAL(esp); /* 0x360C6DC8: pop ebp */
   5716     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6DC9: ret 4 */
   5717     RECOMP_REGS_OUT();
   5718 }
   5719 
   5720 void sub_360C6DD0(void) {
   5721     int _fpu_cmp = 0;
   5722     uint32_t _cf = 0;
   5723     int _df = 1;
   5724     uint32_t _flag_k = FK_NONE;
   5725     uint32_t _flag_a = 0, _flag_b = 0;
   5726     uint32_t _itail_tgt = 0;
   5727     RECOMP_REGS_LOCALS
   5728     RECOMP_ENTER(0x360C6DD0u);
   5729 
   5730 L_360C6DD0:
   5731     PUSH32(esp, ebp); /* 0x360C6DD0: push ebp */
   5732     ebp = esp; /* 0x360C6DD1: mov ebp, esp */
   5733     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5734     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5735     esp = esp - 8; /* 0x360C6DD3: sub esp, 8 */
   5736     _flag_k = FK_CMP;
   5737     eax = MEM32(0x361C91F0); /* 0x360C6DD6: mov eax, dword ptr [0x361c91f0] */
   5738     PUSH32(esp, ebx); /* 0x360C6DDB: push ebx */
   5739     ebx = MEM32(0x3616FAEC); /* 0x360C6DDC: mov ebx, dword ptr [0x3616faec] */
   5740     PUSH32(esp, esi); /* 0x360C6DE2: push esi */
   5741     PUSH32(esp, edi); /* 0x360C6DE3: push edi */
   5742     edi = MEM32(ebp + 0x8); /* 0x360C6DE4: mov edi, dword ptr [ebp + 8] */
   5743     esi = ecx; /* 0x360C6DE7: mov esi, ecx */
   5744     PUSH32(esp, eax); /* 0x360C6DE9: push eax */
   5745     ecx = edi; /* 0x360C6DEA: mov ecx, edi */
   5746     RECOMP_ICALL(ebx); /* 0x360C6DEC: call ebx */
   5747     RECOMP_FLAGS_IN();
   5748     ecx = MEM32(esi + 0x24); /* 0x360C6DEE: mov ecx, dword ptr [esi + 0x24] */
   5749     PUSH32(esp, ecx); /* 0x360C6DF1: push ecx */
   5750     ecx = edi; /* 0x360C6DF2: mov ecx, edi */
   5751     RECOMP_ICALL(ebx); /* 0x360C6DF4: call ebx */
   5752     RECOMP_FLAGS_IN();
   5753     eax = MEM32(esi + 0x20); /* 0x360C6DF6: mov eax, dword ptr [esi + 0x20] */
   5754     edx = ebp + (-0x8); /* 0x360C6DF9: lea edx, [ebp - 8] */
   5755     /* cmp edx, eax */ /* 0x360C6DFC: cmp edx, eax */
   5756     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   5757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5758     _flag_k = FK_CMP;
   5759     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C6E0B; /* 0x360C6DFE: je 0x360c6e0b */
   5760 L_360C6E00:
   5761     ecx = MEM32(eax); /* 0x360C6E00: mov ecx, dword ptr [eax] */
   5762     MEM32(ebp + (-0x8)) = ecx; /* 0x360C6E02: mov dword ptr [ebp - 8], ecx */
   5763     edx = MEM32(eax + 0x4); /* 0x360C6E05: mov edx, dword ptr [eax + 4] */
   5764     MEM32(ebp + (-0x4)) = edx; /* 0x360C6E08: mov dword ptr [ebp - 4], edx */
   5765 L_360C6E0B:
   5766     eax = ebp + (-0x8); /* 0x360C6E0B: lea eax, [ebp - 8] */
   5767     PUSH32(esp, eax); /* 0x360C6E0E: push eax */
   5768     PUSH32(esp, edi); /* 0x360C6E0F: push edi */
   5769     RECOMP_ICALL(0x3615B840u); /* 0x360C6E10: call 0x3615b840 */ /* not lifted */
   5770     RECOMP_FLAGS_IN();
   5771     ecx = MEM32(esi + 0x20); /* 0x360C6E15: mov ecx, dword ptr [esi + 0x20] */
   5772     PUSH32(esp, ecx); /* 0x360C6E18: push ecx */
   5773     PUSH32(esp, edi); /* 0x360C6E19: push edi */
   5774     RECOMP_ICALL(0x360C4B10u); /* 0x360C6E1A: call 0x360c4b10 */ /* not lifted */
   5775     RECOMP_FLAGS_IN();
   5776     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5777     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5778     esp = esp + 0x10u; /* 0x360C6E1F: add esp, 0x10 */
   5779     _flag_k = FK_ADD;
   5780     edi = POP32_VAL(esp); /* 0x360C6E22: pop edi */
   5781     esi = POP32_VAL(esp); /* 0x360C6E23: pop esi */
   5782     ebx = POP32_VAL(esp); /* 0x360C6E24: pop ebx */
   5783     esp = ebp; /* 0x360C6E25: mov esp, ebp */
   5784     ebp = POP32_VAL(esp); /* 0x360C6E27: pop ebp */
   5785     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C6E28: ret 4 */
   5786     RECOMP_REGS_OUT();
   5787 }
   5788 
   5789 void sub_360C6E30(void) {
   5790     int _fpu_cmp = 0;
   5791     uint32_t _cf = 0;
   5792     int _df = 1;
   5793     uint32_t _flag_k = FK_NONE;
   5794     uint32_t _flag_a = 0, _flag_b = 0;
   5795     uint32_t _itail_tgt = 0;
   5796     RECOMP_REGS_LOCALS
   5797     RECOMP_ENTER(0x360C6E30u);
   5798 
   5799 L_360C6E30:
   5800     PUSH32(esp, esi); /* 0x360C6E30: push esi */
   5801     PUSH32(esp, 0); /* 0x360C6E31: push 0 */
   5802     PUSH32(esp, 0x361B2CD8u); /* 0x360C6E33: push 0x361b2cd8 */
   5803     esi = ecx; /* 0x360C6E38: mov esi, ecx */
   5804     PUSH32(esp, 0x361B2CC0u); /* 0x360C6E3A: push 0x361b2cc0 */
   5805     eax = esi + 0x4; /* 0x360C6E3F: lea eax, [esi + 4] */
   5806     PUSH32(esp, 0); /* 0x360C6E42: push 0 */
   5807     PUSH32(esp, eax); /* 0x360C6E44: push eax */
   5808     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360C6E45: call dword ptr [0x3616ff70] */
   5809     RECOMP_FLAGS_IN();
   5810     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5811     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5812     esp = esp + 4; /* 0x360C6E4B: add esp, 4 */
   5813     _flag_k = FK_ADD;
   5814     PUSH32(esp, eax); /* 0x360C6E4E: push eax */
   5815     RECOMP_ICALL(0x3615FD86u); /* 0x360C6E4F: call 0x3615fd86 */ /* not lifted */
   5816     RECOMP_FLAGS_IN();
   5817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5819     esp = esp + 0x14u; /* 0x360C6E54: add esp, 0x14 */
   5820     _flag_k = FK_ADD;
   5821     /* test eax, eax */ /* 0x360C6E57: test eax, eax */
   5822     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5823     _cf = 0;
   5824     _flag_k = FK_TEST;
   5825     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6E71; /* 0x360C6E59: je 0x360c6e71 */
   5826 L_360C6E5B:
   5827     ecx = MEM32(esi + 0x24); /* 0x360C6E5B: mov ecx, dword ptr [esi + 0x24] */
   5828     edx = MEM32(esi + 0x20); /* 0x360C6E5E: mov edx, dword ptr [esi + 0x20] */
   5829     PUSH32(esp, ecx); /* 0x360C6E61: push ecx */
   5830     PUSH32(esp, edx); /* 0x360C6E62: push edx */
   5831     ecx = eax; /* 0x360C6E63: mov ecx, eax */
   5832     RECOMP_ICALL(0x36071F20u); /* 0x360C6E65: call 0x36071f20 */ /* not lifted */
   5833     RECOMP_FLAGS_IN();
   5834     ecx = eax; /* 0x360C6E6A: mov ecx, eax */
   5835     RECOMP_ICALL(0x3606BC60u); /* 0x360C6E6C: call 0x3606bc60 */ /* not lifted */
   5836     RECOMP_FLAGS_IN();
   5837 L_360C6E71:
   5838     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5839     eax = 0; /* 0x360C6E71: xor eax, eax */
   5840     _cf = 0;
   5841     _flag_k = FK_TEST;
   5842     esi = POP32_VAL(esp); /* 0x360C6E73: pop esi */
   5843     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6E74: ret  */
   5844     RECOMP_REGS_OUT();
   5845 }
   5846 
   5847 void sub_360C6E80(void) {
   5848     int _fpu_cmp = 0;
   5849     uint32_t _cf = 0;
   5850     int _df = 1;
   5851     uint32_t _flag_k = FK_NONE;
   5852     uint32_t _flag_a = 0, _flag_b = 0;
   5853     uint32_t _itail_tgt = 0;
   5854     RECOMP_REGS_LOCALS
   5855     RECOMP_ENTER(0x360C6E80u);
   5856 
   5857 L_360C6E80:
   5858     PUSH32(esp, esi); /* 0x360C6E80: push esi */
   5859     esi = ecx; /* 0x360C6E81: mov esi, ecx */
   5860     eax = MEM32(esi + 0x20); /* 0x360C6E83: mov eax, dword ptr [esi + 0x20] */
   5861     /* test eax, eax */ /* 0x360C6E86: test eax, eax */
   5862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5863     _cf = 0;
   5864     _flag_k = FK_TEST;
   5865     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6E9A; /* 0x360C6E88: je 0x360c6e9a */
   5866 L_360C6E8A:
   5867     PUSH32(esp, eax); /* 0x360C6E8A: push eax */
   5868     RECOMP_ICALL(0x3615FCC4u); /* 0x360C6E8B: call 0x3615fcc4 */ /* not lifted */
   5869     RECOMP_FLAGS_IN();
   5870     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5871     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5872     esp = esp + 4; /* 0x360C6E90: add esp, 4 */
   5873     _flag_k = FK_ADD;
   5874     MEM32(esi + 0x20) = 0; /* 0x360C6E93: mov dword ptr [esi + 0x20], 0 */
   5875 L_360C6E9A:
   5876     eax = MEM32(esi + 0x24); /* 0x360C6E9A: mov eax, dword ptr [esi + 0x24] */
   5877     /* test eax, eax */ /* 0x360C6E9D: test eax, eax */
   5878     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5879     _cf = 0;
   5880     _flag_k = FK_TEST;
   5881     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6EB1; /* 0x360C6E9F: je 0x360c6eb1 */
   5882 L_360C6EA1:
   5883     PUSH32(esp, eax); /* 0x360C6EA1: push eax */
   5884     RECOMP_ICALL(0x3615FCC4u); /* 0x360C6EA2: call 0x3615fcc4 */ /* not lifted */
   5885     RECOMP_FLAGS_IN();
   5886     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5887     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5888     esp = esp + 4; /* 0x360C6EA7: add esp, 4 */
   5889     _flag_k = FK_ADD;
   5890     MEM32(esi + 0x24) = 0; /* 0x360C6EAA: mov dword ptr [esi + 0x24], 0 */
   5891 L_360C6EB1:
   5892     esi = POP32_VAL(esp); /* 0x360C6EB1: pop esi */
   5893     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6EB2: ret  */
   5894     RECOMP_REGS_OUT();
   5895 }
   5896 
   5897 void sub_360C6EC0(void) {
   5898     int _fpu_cmp = 0;
   5899     uint32_t _cf = 0;
   5900     int _df = 1;
   5901     uint32_t _flag_k = FK_NONE;
   5902     uint32_t _flag_a = 0, _flag_b = 0;
   5903     uint32_t _itail_tgt = 0;
   5904     RECOMP_REGS_LOCALS
   5905     RECOMP_ENTER(0x360C6EC0u);
   5906 
   5907 L_360C6EC0:
   5908     PUSH32(esp, ebp); /* 0x360C6EC0: push ebp */
   5909     ebp = esp; /* 0x360C6EC1: mov ebp, esp */
   5910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5911     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5912     esp = esp - 0x14u; /* 0x360C6EC3: sub esp, 0x14 */
   5913     _flag_k = FK_CMP;
   5914     PUSH32(esp, esi); /* 0x360C6EC6: push esi */
   5915     esi = ecx; /* 0x360C6EC7: mov esi, ecx */
   5916     ecx = MEM32(0x3616FF74); /* 0x360C6EC9: mov ecx, dword ptr [0x3616ff74] */
   5917     ecx = MEM32(ecx); /* 0x360C6ECF: mov ecx, dword ptr [ecx] */
   5918     eax = MEM32(esi + 0x18); /* 0x360C6ED1: mov eax, dword ptr [esi + 0x18] */
   5919     edx = MEM32(ecx); /* 0x360C6ED4: mov edx, dword ptr [ecx] */
   5920     MEM32(ebp + (-0x8)) = eax; /* 0x360C6ED6: mov dword ptr [ebp - 8], eax */
   5921     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360C6ED9: call dword ptr [edx + 0x10] */
   5922     RECOMP_FLAGS_IN();
   5923     /* test eax, eax */ /* 0x360C6EDC: test eax, eax */
   5924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5925     _cf = 0;
   5926     _flag_k = FK_TEST;
   5927     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6F66; /* 0x360C6EDE: je 0x360c6f66 */
   5928 L_360C6EE4:
   5929     eax = MEM32(0x3616FF74); /* 0x360C6EE4: mov eax, dword ptr [0x3616ff74] */
   5930     ecx = MEM32(eax); /* 0x360C6EE9: mov ecx, dword ptr [eax] */
   5931     edx = MEM32(ecx); /* 0x360C6EEB: mov edx, dword ptr [ecx] */
   5932     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x360C6EED: call dword ptr [edx + 0x10] */
   5933     RECOMP_FLAGS_IN();
   5934     ecx = eax; /* 0x360C6EF0: mov ecx, eax */
   5935     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360C6EF2: call dword ptr [0x3616ffb0] */
   5936     RECOMP_FLAGS_IN();
   5937     ecx = MEM32(eax); /* 0x360C6EF8: mov ecx, dword ptr [eax] */
   5938     edx = MEM32(eax + 0x4); /* 0x360C6EFA: mov edx, dword ptr [eax + 4] */
   5939     eax = MEM32(eax + 0x8); /* 0x360C6EFD: mov eax, dword ptr [eax + 8] */
   5940     MEM32(ebp + (-0x14)) = ecx; /* 0x360C6F00: mov dword ptr [ebp - 0x14], ecx */
   5941     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x360C6F03: fld dword ptr [ebp - 0x14] */
   5942     _st[0] -= (double)*(float*)ADDR(esi); /* 0x360C6F06: fsub dword ptr [esi] */
   5943     MEM32(ebp + (-0x10)) = edx; /* 0x360C6F08: mov dword ptr [ebp - 0x10], edx */
   5944     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x360C6F0B: fld dword ptr [ebp - 0x10] */
   5945     MEM32(ebp + (-0xC)) = eax; /* 0x360C6F0E: mov dword ptr [ebp - 0xc], eax */
   5946     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x360C6F11: fsub dword ptr [esi + 4] */
   5947     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x360C6F14: fld dword ptr [ebp - 0xc] */
   5948     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x360C6F17: fsub dword ptr [esi + 8] */
   5949     fp_push(_st[0]); /* 0x360C6F1A: fld st(0) */
   5950     _st[0] *= _st[1]; /* 0x360C6F1C: fmul st(1) */
   5951     fp_push(_st[3]); /* 0x360C6F1E: fld st(3) */
   5952     _st[0] *= _st[4]; /* 0x360C6F20: fmul st(4) */
   5953     { double _v = fp_pop(); _st[0] += _v; } /* 0x360C6F22: faddp st(1) */
   5954     fp_push(_st[2]); /* 0x360C6F24: fld st(2) */
   5955     _st[0] *= _st[3]; /* 0x360C6F26: fmul st(3) */
   5956     { double _v = fp_pop(); _st[0] += _v; } /* 0x360C6F28: faddp st(1) */
   5957     _st[0] = sqrt(_st[0]); /* 0x360C6F2A: fsqrt  */
   5958     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x360C6F2C: fstp dword ptr [ebp - 4] */
   5959     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360C6F2F: fstp st(0) */
   5960     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360C6F31: fstp st(0) */
   5961     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360C6F33: fstp st(0) */
   5962     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360C6F35: fld dword ptr [ebp - 4] */
   5963     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x10)); /* 0x360C6F38: fcomp dword ptr [esi + 0x10] */
   5964     fp_pop();
   5965     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C6F3B: fnstsw ax */
   5966     /* test HI8(eax), 1 */ /* 0x360C6F3D: test ah, 1 */
   5967     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   5968     _cf = 0;
   5969     _flag_k = FK_NARROW(FK_TEST, 24);
   5970     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6F66; /* 0x360C6F40: je 0x360c6f66 */
   5971 L_360C6F42:
   5972     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360C6F42: fld dword ptr [ebp - 4] */
   5973     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x360C6F45: fcomp dword ptr [esi + 0xc] */
   5974     fp_pop();
   5975     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C6F48: fnstsw ax */
   5976     /* test HI8(eax), 0x41u */ /* 0x360C6F4A: test ah, 0x41 */
   5977     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5978     _cf = 0;
   5979     _flag_k = FK_NARROW(FK_TEST, 24);
   5980     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6F58; /* 0x360C6F4D: je 0x360c6f58 */
   5981 L_360C6F4F:
   5982     MEM32(esi + 0x18) = 0x3F800000u; /* 0x360C6F4F: mov dword ptr [esi + 0x18], 0x3f800000 */
   5983     goto L_360C6F6D; /* 0x360C6F56: jmp 0x360c6f6d */
   5984 L_360C6F58:
   5985     fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x360C6F58: fld dword ptr [esi + 0x10] */
   5986     _st[0] -= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x360C6F5B: fsub dword ptr [ebp - 4] */
   5987     _st[0] /= (double)*(float*)ADDR(esi + 0x14); /* 0x360C6F5E: fdiv dword ptr [esi + 0x14] */
   5988     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x18) = _v; } /* 0x360C6F61: fstp dword ptr [esi + 0x18] */
   5989     goto L_360C6F6D; /* 0x360C6F64: jmp 0x360c6f6d */
   5990 L_360C6F66:
   5991     MEM32(esi + 0x18) = 0; /* 0x360C6F66: mov dword ptr [esi + 0x18], 0 */
   5992 L_360C6F6D:
   5993     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x360C6F6D: fld dword ptr [ebp - 8] */
   5994     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360C6F70: fcomp dword ptr [0x3617040c] */
   5995     fp_pop();
   5996     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C6F76: fnstsw ax */
   5997     /* test HI8(eax), 0x41u */ /* 0x360C6F78: test ah, 0x41 */
   5998     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   5999     _cf = 0;
   6000     _flag_k = FK_NARROW(FK_TEST, 24);
   6001     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C6F96; /* 0x360C6F7B: jne 0x360c6f96 */
   6002 L_360C6F7D:
   6003     fp_push(*(float*)&MEM32(esi + 0x18)); /* 0x360C6F7D: fld dword ptr [esi + 0x18] */
   6004     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360C6F80: fcomp dword ptr [0x3617040c] */
   6005     fp_pop();
   6006     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C6F86: fnstsw ax */
   6007     /* test HI8(eax), 0x41u */ /* 0x360C6F88: test ah, 0x41 */
   6008     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6009     _cf = 0;
   6010     _flag_k = FK_NARROW(FK_TEST, 24);
   6011     if (TEST_Z(_flag_a, _flag_b)) goto L_360C6F96; /* 0x360C6F8B: je 0x360c6f96 */
   6012 L_360C6F8D:
   6013     MEM8(esi + 0x1C) = (uint8_t)(1); /* 0x360C6F8D: mov byte ptr [esi + 0x1c], 1 */
   6014     esi = POP32_VAL(esp); /* 0x360C6F91: pop esi */
   6015     esp = ebp; /* 0x360C6F92: mov esp, ebp */
   6016     ebp = POP32_VAL(esp); /* 0x360C6F94: pop ebp */
   6017     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6F95: ret  */
   6018 L_360C6F96:
   6019     MEM8(esi + 0x1C) = (uint8_t)(0); /* 0x360C6F96: mov byte ptr [esi + 0x1c], 0 */
   6020     esi = POP32_VAL(esp); /* 0x360C6F9A: pop esi */
   6021     esp = ebp; /* 0x360C6F9B: mov esp, ebp */
   6022     ebp = POP32_VAL(esp); /* 0x360C6F9D: pop ebp */
   6023     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C6F9E: ret  */
   6024     RECOMP_REGS_OUT();
   6025 }
   6026 
   6027 void sub_360C6FA0(void) {
   6028     int _fpu_cmp = 0;
   6029     uint32_t _cf = 0;
   6030     int _df = 1;
   6031     uint32_t _flag_k = FK_NONE;
   6032     uint32_t _flag_a = 0, _flag_b = 0;
   6033     uint32_t _itail_tgt = 0;
   6034     RECOMP_REGS_LOCALS
   6035     RECOMP_ENTER(0x360C6FA0u);
   6036 
   6037 L_360C6FA0:
   6038     PUSH32(esp, ebp); /* 0x360C6FA0: push ebp */
   6039     ebp = esp; /* 0x360C6FA1: mov ebp, esp */
   6040     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6042     esp = esp - 0xCu; /* 0x360C6FA3: sub esp, 0xc */
   6043     _flag_k = FK_CMP;
   6044     PUSH32(esp, esi); /* 0x360C6FA6: push esi */
   6045     esi = ecx; /* 0x360C6FA7: mov esi, ecx */
   6046     RECOMP_ICALL(0x360C6EC0u); /* 0x360C6FA9: call 0x360c6ec0 */ /* not lifted */
   6047     RECOMP_FLAGS_IN();
   6048     fp_push(*(float*)&MEM32(esi + 0x18)); /* 0x360C6FAE: fld dword ptr [esi + 0x18] */
   6049     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360C6FB1: fcomp dword ptr [0x3617040c] */
   6050     fp_pop();
   6051     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C6FB7: fnstsw ax */
   6052     /* test HI8(eax), 0x41u */ /* 0x360C6FB9: test ah, 0x41 */
   6053     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   6054     _cf = 0;
   6055     _flag_k = FK_NARROW(FK_TEST, 24);
   6056     eax = MEM32(esi + 0x24); /* 0x360C6FBC: mov eax, dword ptr [esi + 0x24] */
   6057     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C7058; /* 0x360C6FBF: jne 0x360c7058 */
   6058 L_360C6FC5:
   6059     /* test eax, eax */ /* 0x360C6FC5: test eax, eax */
   6060     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6061     _cf = 0;
   6062     _flag_k = FK_TEST;
   6063     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7027; /* 0x360C6FC7: je 0x360c7027 */
   6064 L_360C6FC9:
   6065     SET_LO8(ecx, MEM8(esi + 0x1C)); /* 0x360C6FC9: mov cl, byte ptr [esi + 0x1c] */
   6066     /* test LO8(ecx), LO8(ecx) */ /* 0x360C6FCC: test cl, cl */
   6067     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6068     _cf = 0;
   6069     _flag_k = FK_NARROW(FK_TEST, 24);
   6070     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C7018; /* 0x360C6FCE: jne 0x360c7018 */
   6071 L_360C6FD0:
   6072     ecx = MEM32(esi + 0x18); /* 0x360C6FD0: mov ecx, dword ptr [esi + 0x18] */
   6073     PUSH32(esp, 0x64u); /* 0x360C6FD3: push 0x64 */
   6074     PUSH32(esp, 0); /* 0x360C6FD5: push 0 */
   6075     PUSH32(esp, 0); /* 0x360C6FD7: push 0 */
   6076     PUSH32(esp, ecx); /* 0x360C6FD9: push ecx */
   6077     PUSH32(esp, 0); /* 0x360C6FDA: push 0 */
   6078     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6079     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6080     esp = esp - 0xCu; /* 0x360C6FDC: sub esp, 0xc */
   6081     _flag_k = FK_CMP;
   6082     MEM32(ebp + (-0xC)) = 0; /* 0x360C6FDF: mov dword ptr [ebp - 0xc], 0 */
   6083     ecx = MEM32(ebp + (-0xC)); /* 0x360C6FE6: mov ecx, dword ptr [ebp - 0xc] */
   6084     edx = esp; /* 0x360C6FE9: mov edx, esp */
   6085     MEM32(edx) = ecx; /* 0x360C6FEB: mov dword ptr [edx], ecx */
   6086     MEM32(ebp + (-0x8)) = 0; /* 0x360C6FED: mov dword ptr [ebp - 8], 0 */
   6087     ecx = MEM32(ebp + (-0x8)); /* 0x360C6FF4: mov ecx, dword ptr [ebp - 8] */
   6088     MEM32(edx + 0x4) = ecx; /* 0x360C6FF7: mov dword ptr [edx + 4], ecx */
   6089     MEM32(ebp + (-0x4)) = 0; /* 0x360C6FFA: mov dword ptr [ebp - 4], 0 */
   6090     ecx = MEM32(ebp + (-0x4)); /* 0x360C7001: mov ecx, dword ptr [ebp - 4] */
   6091     MEM32(edx + 0x8) = ecx; /* 0x360C7004: mov dword ptr [edx + 8], ecx */
   6092     edx = MEM32(eax); /* 0x360C7007: mov edx, dword ptr [eax] */
   6093     PUSH32(esp, edx); /* 0x360C7009: push edx */
   6094     RECOMP_ICALL(0x3601C590u); /* 0x360C700A: call 0x3601c590 */ /* not lifted */
   6095     RECOMP_FLAGS_IN();
   6096     ecx = eax; /* 0x360C700F: mov ecx, eax */
   6097     RECOMP_ICALL(0x3601CD00u); /* 0x360C7011: call 0x3601cd00 */ /* not lifted */
   6098     RECOMP_FLAGS_IN();
   6099     goto L_360C7027; /* 0x360C7016: jmp 0x360c7027 */
   6100 L_360C7018:
   6101     eax = MEM32(eax); /* 0x360C7018: mov eax, dword ptr [eax] */
   6102     PUSH32(esp, eax); /* 0x360C701A: push eax */
   6103     RECOMP_ICALL(0x3601C590u); /* 0x360C701B: call 0x3601c590 */ /* not lifted */
   6104     RECOMP_FLAGS_IN();
   6105     ecx = eax; /* 0x360C7020: mov ecx, eax */
   6106     RECOMP_ICALL(0x3601CD40u); /* 0x360C7022: call 0x3601cd40 */ /* not lifted */
   6107     RECOMP_FLAGS_IN();
   6108 L_360C7027:
   6109     eax = MEM32(esi + 0x20); /* 0x360C7027: mov eax, dword ptr [esi + 0x20] */
   6110     /* test eax, eax */ /* 0x360C702A: test eax, eax */
   6111     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6112     _cf = 0;
   6113     _flag_k = FK_TEST;
   6114     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7072; /* 0x360C702C: je 0x360c7072 */
   6115 L_360C702E:
   6116     fp_push(*(float*)&MEM32(eax + 0xC)); /* 0x360C702E: fld dword ptr [eax + 0xc] */
   6117     edx = MEM32(eax + 0x4); /* 0x360C7031: mov edx, dword ptr [eax + 4] */
   6118     _st[0] *= (double)*(float*)ADDR(esi + 0x18); /* 0x360C7034: fmul dword ptr [esi + 0x18] */
   6119     PUSH32(esp, ecx); /* 0x360C7037: push ecx */
   6120     ecx = MEM32(eax + 0x8); /* 0x360C7038: mov ecx, dword ptr [eax + 8] */
   6121     eax = MEM32(eax); /* 0x360C703B: mov eax, dword ptr [eax] */
   6122     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x360C703D: fstp dword ptr [esp] */
   6123     PUSH32(esp, ecx); /* 0x360C7040: push ecx */
   6124     PUSH32(esp, edx); /* 0x360C7041: push edx */
   6125     PUSH32(esp, eax); /* 0x360C7042: push eax */
   6126     RECOMP_ICALL(MEM32(0x3616F3CC)); /* 0x360C7043: call dword ptr [0x3616f3cc] */
   6127     RECOMP_FLAGS_IN();
   6128     ecx = eax; /* 0x360C7049: mov ecx, eax */
   6129     RECOMP_ICALL(MEM32(0x3616F3C8)); /* 0x360C704B: call dword ptr [0x3616f3c8] */
   6130     RECOMP_FLAGS_IN();
   6131     esi = POP32_VAL(esp); /* 0x360C7051: pop esi */
   6132     esp = ebp; /* 0x360C7052: mov esp, ebp */
   6133     ebp = POP32_VAL(esp); /* 0x360C7054: pop ebp */
   6134     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7055: ret 4 */
   6135 L_360C7058:
   6136     /* test eax, eax */ /* 0x360C7058: test eax, eax */
   6137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6138     _cf = 0;
   6139     _flag_k = FK_TEST;
   6140     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7072; /* 0x360C705A: je 0x360c7072 */
   6141 L_360C705C:
   6142     SET_LO8(ecx, MEM8(esi + 0x1C)); /* 0x360C705C: mov cl, byte ptr [esi + 0x1c] */
   6143     /* test LO8(ecx), LO8(ecx) */ /* 0x360C705F: test cl, cl */
   6144     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6145     _cf = 0;
   6146     _flag_k = FK_NARROW(FK_TEST, 24);
   6147     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7072; /* 0x360C7061: je 0x360c7072 */
   6148 L_360C7063:
   6149     ecx = MEM32(eax); /* 0x360C7063: mov ecx, dword ptr [eax] */
   6150     PUSH32(esp, ecx); /* 0x360C7065: push ecx */
   6151     RECOMP_ICALL(0x3601C590u); /* 0x360C7066: call 0x3601c590 */ /* not lifted */
   6152     RECOMP_FLAGS_IN();
   6153     ecx = eax; /* 0x360C706B: mov ecx, eax */
   6154     RECOMP_ICALL(0x3601CD40u); /* 0x360C706D: call 0x3601cd40 */ /* not lifted */
   6155     RECOMP_FLAGS_IN();
   6156 L_360C7072:
   6157     esi = POP32_VAL(esp); /* 0x360C7072: pop esi */
   6158     esp = ebp; /* 0x360C7073: mov esp, ebp */
   6159     ebp = POP32_VAL(esp); /* 0x360C7075: pop ebp */
   6160     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7076: ret 4 */
   6161     RECOMP_REGS_OUT();
   6162 }
   6163 
   6164 void sub_360C7080(void) {
   6165     int _fpu_cmp = 0;
   6166     uint32_t _cf = 0;
   6167     int _df = 1;
   6168     uint32_t _flag_k = FK_NONE;
   6169     uint32_t _flag_a = 0, _flag_b = 0;
   6170     uint32_t _itail_tgt = 0;
   6171     RECOMP_REGS_LOCALS
   6172     RECOMP_ENTER(0x360C7080u);
   6173 
   6174 L_360C7080:
   6175     PUSH32(esp, ebp); /* 0x360C7080: push ebp */
   6176     ebp = esp; /* 0x360C7081: mov ebp, esp */
   6177     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C7083: push -1 */
   6178     PUSH32(esp, 0x361677DBu); /* 0x360C7085: push 0x361677db */
   6179     eax = MEM32(FS_BASE + (0)); /* 0x360C708A: mov eax, dword ptr fs:[0] */
   6180     PUSH32(esp, eax); /* 0x360C7090: push eax */
   6181     MEM32(FS_BASE + (0)) = esp; /* 0x360C7091: mov dword ptr fs:[0], esp */
   6182     PUSH32(esp, ecx); /* 0x360C7098: push ecx */
   6183     eax = MEM32(0x36306D64); /* 0x360C7099: mov eax, dword ptr [0x36306d64] */
   6184     /* test eax, eax */ /* 0x360C709E: test eax, eax */
   6185     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6186     _cf = 0;
   6187     _flag_k = FK_TEST;
   6188     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C70DB; /* 0x360C70A0: jne 0x360c70db */
   6189 L_360C70A2:
   6190     PUSH32(esp, 4); /* 0x360C70A2: push 4 */
   6191     RECOMP_ICALL(0x3615FD6Au); /* 0x360C70A4: call 0x3615fd6a */ /* not lifted */
   6192     RECOMP_FLAGS_IN();
   6193     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6194     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6195     esp = esp + 4; /* 0x360C70A9: add esp, 4 */
   6196     _flag_k = FK_ADD;
   6197     MEM32(ebp + (-0x10)) = eax; /* 0x360C70AC: mov dword ptr [ebp - 0x10], eax */
   6198     /* test eax, eax */ /* 0x360C70AF: test eax, eax */
   6199     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6200     _cf = 0;
   6201     _flag_k = FK_TEST;
   6202     MEM32(ebp + (-0x4)) = 0; /* 0x360C70B1: mov dword ptr [ebp - 4], 0 */
   6203     if (TEST_Z(_flag_a, _flag_b)) goto L_360C70D4; /* 0x360C70B8: je 0x360c70d4 */
   6204 L_360C70BA:
   6205     ecx = eax; /* 0x360C70BA: mov ecx, eax */
   6206     RECOMP_ICALL(0x360C7200u); /* 0x360C70BC: call 0x360c7200 */ /* not lifted */
   6207     RECOMP_FLAGS_IN();
   6208     MEM32(0x36306D64) = eax; /* 0x360C70C1: mov dword ptr [0x36306d64], eax */
   6209     ecx = MEM32(ebp + (-0xC)); /* 0x360C70C6: mov ecx, dword ptr [ebp - 0xc] */
   6210     MEM32(FS_BASE + (0)) = ecx; /* 0x360C70C9: mov dword ptr fs:[0], ecx */
   6211     esp = ebp; /* 0x360C70D0: mov esp, ebp */
   6212     ebp = POP32_VAL(esp); /* 0x360C70D2: pop ebp */
   6213     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C70D3: ret  */
   6214 L_360C70D4:
   6215     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6216     eax = 0; /* 0x360C70D4: xor eax, eax */
   6217     _cf = 0;
   6218     _flag_k = FK_TEST;
   6219     MEM32(0x36306D64) = eax; /* 0x360C70D6: mov dword ptr [0x36306d64], eax */
   6220 L_360C70DB:
   6221     ecx = MEM32(ebp + (-0xC)); /* 0x360C70DB: mov ecx, dword ptr [ebp - 0xc] */
   6222     MEM32(FS_BASE + (0)) = ecx; /* 0x360C70DE: mov dword ptr fs:[0], ecx */
   6223     esp = ebp; /* 0x360C70E5: mov esp, ebp */
   6224     ebp = POP32_VAL(esp); /* 0x360C70E7: pop ebp */
   6225     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C70E8: ret  */
   6226     RECOMP_REGS_OUT();
   6227 }
   6228 
   6229 void sub_360C70F0(void) {
   6230     int _fpu_cmp = 0;
   6231     uint32_t _cf = 0;
   6232     int _df = 1;
   6233     uint32_t _flag_k = FK_NONE;
   6234     uint32_t _flag_a = 0, _flag_b = 0;
   6235     uint32_t _itail_tgt = 0;
   6236     RECOMP_REGS_LOCALS
   6237     RECOMP_ENTER(0x360C70F0u);
   6238 
   6239 L_360C70F0:
   6240     PUSH32(esp, esi); /* 0x360C70F0: push esi */
   6241     esi = MEM32(0x36306D64); /* 0x360C70F1: mov esi, dword ptr [0x36306d64] */
   6242     /* test esi, esi */ /* 0x360C70F7: test esi, esi */
   6243     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6244     _cf = 0;
   6245     _flag_k = FK_TEST;
   6246     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7115; /* 0x360C70F9: je 0x360c7115 */
   6247 L_360C70FB:
   6248     ecx = esi; /* 0x360C70FB: mov ecx, esi */
   6249     RECOMP_ICALL(0x360C7120u); /* 0x360C70FD: call 0x360c7120 */ /* not lifted */
   6250     RECOMP_FLAGS_IN();
   6251     PUSH32(esp, esi); /* 0x360C7102: push esi */
   6252     RECOMP_ICALL(0x3615FCC4u); /* 0x360C7103: call 0x3615fcc4 */ /* not lifted */
   6253     RECOMP_FLAGS_IN();
   6254     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6255     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6256     esp = esp + 4; /* 0x360C7108: add esp, 4 */
   6257     _flag_k = FK_ADD;
   6258     MEM32(0x36306D64) = 0; /* 0x360C710B: mov dword ptr [0x36306d64], 0 */
   6259 L_360C7115:
   6260     esi = POP32_VAL(esp); /* 0x360C7115: pop esi */
   6261     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7116: ret  */
   6262     RECOMP_REGS_OUT();
   6263 }
   6264 
   6265 void sub_360C7120(void) {
   6266     int _fpu_cmp = 0;
   6267     uint32_t _cf = 0;
   6268     int _df = 1;
   6269     uint32_t _flag_k = FK_NONE;
   6270     uint32_t _flag_a = 0, _flag_b = 0;
   6271     uint32_t _itail_tgt = 0;
   6272     RECOMP_REGS_LOCALS
   6273     RECOMP_ENTER(0x360C7120u);
   6274 
   6275 L_360C7120:
   6276     PUSH32(esp, ebp); /* 0x360C7120: push ebp */
   6277     ebp = esp; /* 0x360C7121: mov ebp, esp */
   6278     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6279     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6280     esp = esp - 8; /* 0x360C7123: sub esp, 8 */
   6281     _flag_k = FK_CMP;
   6282     PUSH32(esp, ebx); /* 0x360C7126: push ebx */
   6283     ebx = ecx; /* 0x360C7127: mov ebx, ecx */
   6284     eax = MEM32(ebx); /* 0x360C7129: mov eax, dword ptr [ebx] */
   6285     /* test eax, eax */ /* 0x360C712B: test eax, eax */
   6286     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6287     _cf = 0;
   6288     _flag_k = FK_TEST;
   6289     if (TEST_Z(_flag_a, _flag_b)) goto L_360C71F4; /* 0x360C712D: je 0x360c71f4 */
   6290 L_360C7133:
   6291     ecx = MEM32(eax + 0x4); /* 0x360C7133: mov ecx, dword ptr [eax + 4] */
   6292     eax = MEM32(ecx); /* 0x360C7136: mov eax, dword ptr [ecx] */
   6293     /* cmp eax, ecx */ /* 0x360C7138: cmp eax, ecx */
   6294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6296     _flag_k = FK_CMP;
   6297     PUSH32(esp, esi); /* 0x360C713A: push esi */
   6298     PUSH32(esp, edi); /* 0x360C713B: push edi */
   6299     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C7186; /* 0x360C713C: je 0x360c7186 */
   6300 L_360C713E:
   6301     esi = MEM32(eax + 0x8); /* 0x360C713E: mov esi, dword ptr [eax + 8] */
   6302     /* test esi, esi */ /* 0x360C7141: test esi, esi */
   6303     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6304     _cf = 0;
   6305     _flag_k = FK_TEST;
   6306     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7155; /* 0x360C7143: je 0x360c7155 */
   6307 L_360C7145:
   6308     ecx = esi; /* 0x360C7145: mov ecx, esi */
   6309     RECOMP_ICALL(0x360C6E80u); /* 0x360C7147: call 0x360c6e80 */ /* not lifted */
   6310     RECOMP_FLAGS_IN();
   6311     PUSH32(esp, esi); /* 0x360C714C: push esi */
   6312     RECOMP_ICALL(0x3615FCC4u); /* 0x360C714D: call 0x3615fcc4 */ /* not lifted */
   6313     RECOMP_FLAGS_IN();
   6314     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6315     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6316     esp = esp + 4; /* 0x360C7152: add esp, 4 */
   6317     _flag_k = FK_ADD;
   6318 L_360C7155:
   6319     esi = MEM32(ebx); /* 0x360C7155: mov esi, dword ptr [ebx] */
   6320     eax = MEM32(esi + 0x4); /* 0x360C7157: mov eax, dword ptr [esi + 4] */
   6321     eax = MEM32(eax); /* 0x360C715A: mov eax, dword ptr [eax] */
   6322     ecx = MEM32(eax + 0x4); /* 0x360C715C: mov ecx, dword ptr [eax + 4] */
   6323     edx = MEM32(eax); /* 0x360C715F: mov edx, dword ptr [eax] */
   6324     MEM32(ecx) = edx; /* 0x360C7161: mov dword ptr [ecx], edx */
   6325     ecx = MEM32(eax); /* 0x360C7163: mov ecx, dword ptr [eax] */
   6326     edx = MEM32(eax + 0x4); /* 0x360C7165: mov edx, dword ptr [eax + 4] */
   6327     PUSH32(esp, eax); /* 0x360C7168: push eax */
   6328     MEM32(ecx + 0x4) = edx; /* 0x360C7169: mov dword ptr [ecx + 4], edx */
   6329     RECOMP_ICALL(0x3615FCC4u); /* 0x360C716C: call 0x3615fcc4 */ /* not lifted */
   6330     RECOMP_FLAGS_IN();
   6331     edi = MEM32(esi + 0x8); /* 0x360C7171: mov edi, dword ptr [esi + 8] */
   6332     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6333     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6334     esp = esp + 4; /* 0x360C7174: add esp, 4 */
   6335     _flag_k = FK_ADD;
   6336     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   6337     edi = edi - 1; /* 0x360C7177: dec edi */
   6338     _flag_k = FK_DEC;
   6339     MEM32(esi + 0x8) = edi; /* 0x360C7178: mov dword ptr [esi + 8], edi */
   6340     eax = MEM32(ebx); /* 0x360C717B: mov eax, dword ptr [ebx] */
   6341     ecx = MEM32(eax + 0x4); /* 0x360C717D: mov ecx, dword ptr [eax + 4] */
   6342     eax = MEM32(ecx); /* 0x360C7180: mov eax, dword ptr [ecx] */
   6343     /* cmp eax, ecx */ /* 0x360C7182: cmp eax, ecx */
   6344     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6345     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6346     _flag_k = FK_CMP;
   6347     RECOMP_BACKEDGE();
   6348     if (CMP_NE(_flag_a, _flag_b)) goto L_360C713E; /* 0x360C7184: jne 0x360c713e */
   6349 L_360C7186:
   6350     ecx = MEM32(ebx); /* 0x360C7186: mov ecx, dword ptr [ebx] */
   6351     edi = MEM32(ecx + 0x4); /* 0x360C7188: mov edi, dword ptr [ecx + 4] */
   6352     esi = MEM32(edi); /* 0x360C718B: mov esi, dword ptr [edi] */
   6353     /* cmp esi, edi */ /* 0x360C718D: cmp esi, edi */
   6354     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6356     _flag_k = FK_CMP;
   6357     MEM32(ebp + (-0x4)) = ecx; /* 0x360C718F: mov dword ptr [ebp - 4], ecx */
   6358     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C71AB; /* 0x360C7192: je 0x360c71ab */
   6359 L_360C7194:
   6360     goto L_360C7199; /* 0x360C7194: jmp 0x360c7199 */
   6361 L_360C7196:
   6362     ecx = MEM32(ebp + (-0x4)); /* 0x360C7196: mov ecx, dword ptr [ebp - 4] */
   6363 L_360C7199:
   6364     eax = esi; /* 0x360C7199: mov eax, esi */
   6365     esi = MEM32(esi); /* 0x360C719B: mov esi, dword ptr [esi] */
   6366     PUSH32(esp, eax); /* 0x360C719D: push eax */
   6367     edx = ebp + (-0x8); /* 0x360C719E: lea edx, [ebp - 8] */
   6368     PUSH32(esp, edx); /* 0x360C71A1: push edx */
   6369     RECOMP_ICALL(0x360C86A0u); /* 0x360C71A2: call 0x360c86a0 */ /* not lifted */
   6370     RECOMP_FLAGS_IN();
   6371     /* cmp esi, edi */ /* 0x360C71A7: cmp esi, edi */
   6372     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   6373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6374     _flag_k = FK_CMP;
   6375     RECOMP_BACKEDGE();
   6376     if (CMP_NE(_flag_a, _flag_b)) goto L_360C7196; /* 0x360C71A9: jne 0x360c7196 */
   6377 L_360C71AB:
   6378     edi = MEM32(ebx); /* 0x360C71AB: mov edi, dword ptr [ebx] */
   6379     /* test edi, edi */ /* 0x360C71AD: test edi, edi */
   6380     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6381     _cf = 0;
   6382     _flag_k = FK_TEST;
   6383     if (TEST_Z(_flag_a, _flag_b)) goto L_360C71EC; /* 0x360C71AF: je 0x360c71ec */
   6384 L_360C71B1:
   6385     eax = MEM32(edi + 0x4); /* 0x360C71B1: mov eax, dword ptr [edi + 4] */
   6386     esi = MEM32(eax); /* 0x360C71B4: mov esi, dword ptr [eax] */
   6387     /* cmp esi, eax */ /* 0x360C71B6: cmp esi, eax */
   6388     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6390     _flag_k = FK_CMP;
   6391     MEM32(ebp + (-0x4)) = eax; /* 0x360C71B8: mov dword ptr [ebp - 4], eax */
   6392     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C71D2; /* 0x360C71BB: je 0x360c71d2 */
   6393 L_360C71BD:
   6394     eax = esi; /* 0x360C71BD: mov eax, esi */
   6395     esi = MEM32(esi); /* 0x360C71BF: mov esi, dword ptr [esi] */
   6396     PUSH32(esp, eax); /* 0x360C71C1: push eax */
   6397     eax = ebp + (-0x8); /* 0x360C71C2: lea eax, [ebp - 8] */
   6398     PUSH32(esp, eax); /* 0x360C71C5: push eax */
   6399     ecx = edi; /* 0x360C71C6: mov ecx, edi */
   6400     RECOMP_ICALL(0x360C86A0u); /* 0x360C71C8: call 0x360c86a0 */ /* not lifted */
   6401     RECOMP_FLAGS_IN();
   6402     /* cmp esi, MEM32(ebp + (-0x4)) */ /* 0x360C71CD: cmp esi, dword ptr [ebp - 4] */
   6403     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4)));
   6404     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6405     _flag_k = FK_CMP;
   6406     RECOMP_BACKEDGE();
   6407     if (CMP_NE(_flag_a, _flag_b)) goto L_360C71BD; /* 0x360C71D0: jne 0x360c71bd */
   6408 L_360C71D2:
   6409     ecx = MEM32(edi + 0x4); /* 0x360C71D2: mov ecx, dword ptr [edi + 4] */
   6410     PUSH32(esp, ecx); /* 0x360C71D5: push ecx */
   6411     RECOMP_ICALL(0x3615FCC4u); /* 0x360C71D6: call 0x3615fcc4 */ /* not lifted */
   6412     RECOMP_FLAGS_IN();
   6413     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6414     eax = 0; /* 0x360C71DB: xor eax, eax */
   6415     _cf = 0;
   6416     _flag_k = FK_TEST;
   6417     PUSH32(esp, edi); /* 0x360C71DD: push edi */
   6418     MEM32(edi + 0x4) = eax; /* 0x360C71DE: mov dword ptr [edi + 4], eax */
   6419     MEM32(edi + 0x8) = eax; /* 0x360C71E1: mov dword ptr [edi + 8], eax */
   6420     RECOMP_ICALL(0x3615FCC4u); /* 0x360C71E4: call 0x3615fcc4 */ /* not lifted */
   6421     RECOMP_FLAGS_IN();
   6422     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6423     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6424     esp = esp + 8; /* 0x360C71E9: add esp, 8 */
   6425     _flag_k = FK_ADD;
   6426 L_360C71EC:
   6427     edi = POP32_VAL(esp); /* 0x360C71EC: pop edi */
   6428     MEM32(ebx) = 0; /* 0x360C71ED: mov dword ptr [ebx], 0 */
   6429     esi = POP32_VAL(esp); /* 0x360C71F3: pop esi */
   6430 L_360C71F4:
   6431     ebx = POP32_VAL(esp); /* 0x360C71F4: pop ebx */
   6432     esp = ebp; /* 0x360C71F5: mov esp, ebp */
   6433     ebp = POP32_VAL(esp); /* 0x360C71F7: pop ebp */
   6434     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C71F8: ret  */
   6435     RECOMP_REGS_OUT();
   6436 }
   6437 
   6438 void sub_360C7200(void) {
   6439     int _fpu_cmp = 0;
   6440     uint32_t _cf = 0;
   6441     int _df = 1;
   6442     uint32_t _flag_k = FK_NONE;
   6443     uint32_t _flag_a = 0, _flag_b = 0;
   6444     uint32_t _itail_tgt = 0;
   6445     RECOMP_REGS_LOCALS
   6446     RECOMP_ENTER(0x360C7200u);
   6447 
   6448 L_360C7200:
   6449     PUSH32(esp, ebp); /* 0x360C7200: push ebp */
   6450     ebp = esp; /* 0x360C7201: mov ebp, esp */
   6451     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C7203: push -1 */
   6452     PUSH32(esp, 0x361677FBu); /* 0x360C7205: push 0x361677fb */
   6453     eax = MEM32(FS_BASE + (0)); /* 0x360C720A: mov eax, dword ptr fs:[0] */
   6454     PUSH32(esp, eax); /* 0x360C7210: push eax */
   6455     MEM32(FS_BASE + (0)) = esp; /* 0x360C7211: mov dword ptr fs:[0], esp */
   6456     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6458     esp = esp - 0xCu; /* 0x360C7218: sub esp, 0xc */
   6459     _flag_k = FK_CMP;
   6460     PUSH32(esp, ebx); /* 0x360C721B: push ebx */
   6461     PUSH32(esp, esi); /* 0x360C721C: push esi */
   6462     PUSH32(esp, edi); /* 0x360C721D: push edi */
   6463     esi = ecx; /* 0x360C721E: mov esi, ecx */
   6464     PUSH32(esp, 0xCu); /* 0x360C7220: push 0xc */
   6465     MEM32(ebp + (-0x14)) = esi; /* 0x360C7222: mov dword ptr [ebp - 0x14], esi */
   6466     RECOMP_ICALL(0x3615FD6Au); /* 0x360C7225: call 0x3615fd6a */ /* not lifted */
   6467     RECOMP_FLAGS_IN();
   6468     edi = eax; /* 0x360C722A: mov edi, eax */
   6469     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6470     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6471     esp = esp + 4; /* 0x360C722C: add esp, 4 */
   6472     _flag_k = FK_ADD;
   6473     MEM32(ebp + (-0x18)) = edi; /* 0x360C722F: mov dword ptr [ebp - 0x18], edi */
   6474     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6475     ebx = 0; /* 0x360C7232: xor ebx, ebx */
   6476     _cf = 0;
   6477     _flag_k = FK_TEST;
   6478     /* cmp edi, ebx */ /* 0x360C7234: cmp edi, ebx */
   6479     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   6480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6481     _flag_k = FK_CMP;
   6482     MEM32(ebp + (-0x4)) = ebx; /* 0x360C7236: mov dword ptr [ebp - 4], ebx */
   6483     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C7257; /* 0x360C7239: je 0x360c7257 */
   6484 L_360C723B:
   6485     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x360C723B: mov al, byte ptr [ebp - 0xd] */
   6486     PUSH32(esp, 0xCu); /* 0x360C723E: push 0xc */
   6487     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x360C7240: mov byte ptr [edi], al */
   6488     RECOMP_ICALL(0x3615FD6Au); /* 0x360C7242: call 0x3615fd6a */ /* not lifted */
   6489     RECOMP_FLAGS_IN();
   6490     MEM32(eax) = eax; /* 0x360C7247: mov dword ptr [eax], eax */
   6491     MEM32(eax + 0x4) = eax; /* 0x360C7249: mov dword ptr [eax + 4], eax */
   6492     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6493     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6494     esp = esp + 4; /* 0x360C724C: add esp, 4 */
   6495     _flag_k = FK_ADD;
   6496     MEM32(edi + 0x4) = eax; /* 0x360C724F: mov dword ptr [edi + 4], eax */
   6497     MEM32(edi + 0x8) = ebx; /* 0x360C7252: mov dword ptr [edi + 8], ebx */
   6498     goto L_360C7259; /* 0x360C7255: jmp 0x360c7259 */
   6499 L_360C7257:
   6500     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6501     edi = 0; /* 0x360C7257: xor edi, edi */
   6502     _cf = 0;
   6503     _flag_k = FK_TEST;
   6504 L_360C7259:
   6505     /* cmp edi, ebx */ /* 0x360C7259: cmp edi, ebx */
   6506     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   6507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6508     _flag_k = FK_CMP;
   6509     MEM32(esi) = edi; /* 0x360C725B: mov dword ptr [esi], edi */
   6510     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C72A3; /* 0x360C725D: je 0x360c72a3 */
   6511 L_360C725F:
   6512     ebx = MEM32(edi + 0x4); /* 0x360C725F: mov ebx, dword ptr [edi + 4] */
   6513     esi = MEM32(ebx); /* 0x360C7262: mov esi, dword ptr [ebx] */
   6514     /* cmp esi, ebx */ /* 0x360C7264: cmp esi, ebx */
   6515     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6517     _flag_k = FK_CMP;
   6518     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C728F; /* 0x360C7266: je 0x360c728f */
   6519 L_360C7268:
   6520     eax = esi; /* 0x360C7268: mov eax, esi */
   6521     ecx = MEM32(eax + 0x4); /* 0x360C726A: mov ecx, dword ptr [eax + 4] */
   6522     edx = MEM32(eax); /* 0x360C726D: mov edx, dword ptr [eax] */
   6523     esi = MEM32(esi); /* 0x360C726F: mov esi, dword ptr [esi] */
   6524     MEM32(ecx) = edx; /* 0x360C7271: mov dword ptr [ecx], edx */
   6525     ecx = MEM32(eax); /* 0x360C7273: mov ecx, dword ptr [eax] */
   6526     edx = MEM32(eax + 0x4); /* 0x360C7275: mov edx, dword ptr [eax + 4] */
   6527     PUSH32(esp, eax); /* 0x360C7278: push eax */
   6528     MEM32(ecx + 0x4) = edx; /* 0x360C7279: mov dword ptr [ecx + 4], edx */
   6529     RECOMP_ICALL(0x3615FCC4u); /* 0x360C727C: call 0x3615fcc4 */ /* not lifted */
   6530     RECOMP_FLAGS_IN();
   6531     ecx = MEM32(edi + 0x8); /* 0x360C7281: mov ecx, dword ptr [edi + 8] */
   6532     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6533     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6534     esp = esp + 4; /* 0x360C7284: add esp, 4 */
   6535     _flag_k = FK_ADD;
   6536     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6537     ecx = ecx - 1; /* 0x360C7287: dec ecx */
   6538     _flag_k = FK_DEC;
   6539     /* cmp esi, ebx */ /* 0x360C7288: cmp esi, ebx */
   6540     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6542     _flag_k = FK_CMP;
   6543     MEM32(edi + 0x8) = ecx; /* 0x360C728A: mov dword ptr [edi + 8], ecx */
   6544     RECOMP_BACKEDGE();
   6545     if (CMP_NE(_flag_a, _flag_b)) goto L_360C7268; /* 0x360C728D: jne 0x360c7268 */
   6546 L_360C728F:
   6547     eax = MEM32(ebp + (-0x14)); /* 0x360C728F: mov eax, dword ptr [ebp - 0x14] */
   6548     edi = POP32_VAL(esp); /* 0x360C7292: pop edi */
   6549     esi = POP32_VAL(esp); /* 0x360C7293: pop esi */
   6550     ebx = POP32_VAL(esp); /* 0x360C7294: pop ebx */
   6551     ecx = MEM32(ebp + (-0xC)); /* 0x360C7295: mov ecx, dword ptr [ebp - 0xc] */
   6552     MEM32(FS_BASE + (0)) = ecx; /* 0x360C7298: mov dword ptr fs:[0], ecx */
   6553     esp = ebp; /* 0x360C729F: mov esp, ebp */
   6554     ebp = POP32_VAL(esp); /* 0x360C72A1: pop ebp */
   6555     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C72A2: ret  */
   6556 L_360C72A3:
   6557     ecx = MEM32(ebp + (-0xC)); /* 0x360C72A3: mov ecx, dword ptr [ebp - 0xc] */
   6558     edi = POP32_VAL(esp); /* 0x360C72A6: pop edi */
   6559     eax = esi; /* 0x360C72A7: mov eax, esi */
   6560     esi = POP32_VAL(esp); /* 0x360C72A9: pop esi */
   6561     ebx = POP32_VAL(esp); /* 0x360C72AA: pop ebx */
   6562     MEM32(FS_BASE + (0)) = ecx; /* 0x360C72AB: mov dword ptr fs:[0], ecx */
   6563     esp = ebp; /* 0x360C72B2: mov esp, ebp */
   6564     ebp = POP32_VAL(esp); /* 0x360C72B4: pop ebp */
   6565     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C72B5: ret  */
   6566     RECOMP_REGS_OUT();
   6567 }
   6568 
   6569 void sub_360C72C0(void) {
   6570     int _fpu_cmp = 0;
   6571     uint32_t _cf = 0;
   6572     int _df = 1;
   6573     uint32_t _flag_k = FK_NONE;
   6574     uint32_t _flag_a = 0, _flag_b = 0;
   6575     uint32_t _itail_tgt = 0;
   6576     RECOMP_REGS_LOCALS
   6577     RECOMP_ENTER(0x360C72C0u);
   6578 
   6579 L_360C72C0:
   6580     PUSH32(esp, ebp); /* 0x360C72C0: push ebp */
   6581     ebp = esp; /* 0x360C72C1: mov ebp, esp */
   6582     PUSH32(esp, esi); /* 0x360C72C3: push esi */
   6583     PUSH32(esp, edi); /* 0x360C72C4: push edi */
   6584     edi = ecx; /* 0x360C72C5: mov edi, ecx */
   6585     eax = MEM32(edi); /* 0x360C72C7: mov eax, dword ptr [edi] */
   6586     /* test eax, eax */ /* 0x360C72C9: test eax, eax */
   6587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6588     _cf = 0;
   6589     _flag_k = FK_TEST;
   6590     if (TEST_Z(_flag_a, _flag_b)) goto L_360C72ED; /* 0x360C72CB: je 0x360c72ed */
   6591 L_360C72CD:
   6592     eax = MEM32(eax + 0x4); /* 0x360C72CD: mov eax, dword ptr [eax + 4] */
   6593     esi = MEM32(eax); /* 0x360C72D0: mov esi, dword ptr [eax] */
   6594     /* cmp esi, eax */ /* 0x360C72D2: cmp esi, eax */
   6595     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   6596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6597     _flag_k = FK_CMP;
   6598     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C72ED; /* 0x360C72D4: je 0x360c72ed */
   6599 L_360C72D6:
   6600     PUSH32(esp, ebx); /* 0x360C72D6: push ebx */
   6601     ebx = MEM32(ebp + 0x8); /* 0x360C72D7: mov ebx, dword ptr [ebp + 8] */
   6602 L_360C72DA:
   6603     ecx = MEM32(esi + 0x8); /* 0x360C72DA: mov ecx, dword ptr [esi + 8] */
   6604     PUSH32(esp, ebx); /* 0x360C72DD: push ebx */
   6605     RECOMP_ICALL(0x360C6FA0u); /* 0x360C72DE: call 0x360c6fa0 */ /* not lifted */
   6606     RECOMP_FLAGS_IN();
   6607     eax = MEM32(edi); /* 0x360C72E3: mov eax, dword ptr [edi] */
   6608     esi = MEM32(esi); /* 0x360C72E5: mov esi, dword ptr [esi] */
   6609     /* cmp esi, MEM32(eax + 0x4) */ /* 0x360C72E7: cmp esi, dword ptr [eax + 4] */
   6610     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   6611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6612     _flag_k = FK_CMP;
   6613     RECOMP_BACKEDGE();
   6614     if (CMP_NE(_flag_a, _flag_b)) goto L_360C72DA; /* 0x360C72EA: jne 0x360c72da */
   6615 L_360C72EC:
   6616     ebx = POP32_VAL(esp); /* 0x360C72EC: pop ebx */
   6617 L_360C72ED:
   6618     edi = POP32_VAL(esp); /* 0x360C72ED: pop edi */
   6619     esi = POP32_VAL(esp); /* 0x360C72EE: pop esi */
   6620     ebp = POP32_VAL(esp); /* 0x360C72EF: pop ebp */
   6621     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C72F0: ret 4 */
   6622     RECOMP_REGS_OUT();
   6623 }
   6624 
   6625 void sub_360C7300(void) {
   6626     int _fpu_cmp = 0;
   6627     uint32_t _cf = 0;
   6628     int _df = 1;
   6629     uint32_t _flag_k = FK_NONE;
   6630     uint32_t _flag_a = 0, _flag_b = 0;
   6631     uint32_t _itail_tgt = 0;
   6632     RECOMP_REGS_LOCALS
   6633     RECOMP_ENTER(0x360C7300u);
   6634 
   6635 L_360C7300:
   6636     PUSH32(esp, ebp); /* 0x360C7300: push ebp */
   6637     ebp = esp; /* 0x360C7301: mov ebp, esp */
   6638     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C7303: push -1 */
   6639     PUSH32(esp, 0x3616781Bu); /* 0x360C7305: push 0x3616781b */
   6640     eax = MEM32(FS_BASE + (0)); /* 0x360C730A: mov eax, dword ptr fs:[0] */
   6641     PUSH32(esp, eax); /* 0x360C7310: push eax */
   6642     MEM32(FS_BASE + (0)) = esp; /* 0x360C7311: mov dword ptr fs:[0], esp */
   6643     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6645     esp = esp - 8; /* 0x360C7318: sub esp, 8 */
   6646     _flag_k = FK_CMP;
   6647     PUSH32(esp, ebx); /* 0x360C731B: push ebx */
   6648     PUSH32(esp, esi); /* 0x360C731C: push esi */
   6649     PUSH32(esp, edi); /* 0x360C731D: push edi */
   6650     edi = ecx; /* 0x360C731E: mov edi, ecx */
   6651     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6652     ebx = 0; /* 0x360C7320: xor ebx, ebx */
   6653     _cf = 0;
   6654     _flag_k = FK_TEST;
   6655     PUSH32(esp, 0xCu); /* 0x360C7322: push 0xc */
   6656     MEM32(edi + 0xC) = ebx; /* 0x360C7324: mov dword ptr [edi + 0xc], ebx */
   6657     RECOMP_ICALL(0x3615FD6Au); /* 0x360C7327: call 0x3615fd6a */ /* not lifted */
   6658     RECOMP_FLAGS_IN();
   6659     esi = eax; /* 0x360C732C: mov esi, eax */
   6660     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6661     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6662     esp = esp + 4; /* 0x360C732E: add esp, 4 */
   6663     _flag_k = FK_ADD;
   6664     MEM32(ebp + (-0x14)) = esi; /* 0x360C7331: mov dword ptr [ebp - 0x14], esi */
   6665     /* cmp esi, ebx */ /* 0x360C7334: cmp esi, ebx */
   6666     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6668     _flag_k = FK_CMP;
   6669     MEM32(ebp + (-0x4)) = ebx; /* 0x360C7336: mov dword ptr [ebp - 4], ebx */
   6670     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C736B; /* 0x360C7339: je 0x360c736b */
   6671 L_360C733B:
   6672     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x360C733B: mov al, byte ptr [ebp - 0xd] */
   6673     PUSH32(esp, 0xCu); /* 0x360C733E: push 0xc */
   6674     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x360C7340: mov byte ptr [esi], al */
   6675     RECOMP_ICALL(0x3615FD6Au); /* 0x360C7342: call 0x3615fd6a */ /* not lifted */
   6676     RECOMP_FLAGS_IN();
   6677     MEM32(eax) = eax; /* 0x360C7347: mov dword ptr [eax], eax */
   6678     MEM32(eax + 0x4) = eax; /* 0x360C7349: mov dword ptr [eax + 4], eax */
   6679     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6680     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6681     esp = esp + 4; /* 0x360C734C: add esp, 4 */
   6682     _flag_k = FK_ADD;
   6683     MEM32(esi + 0x4) = eax; /* 0x360C734F: mov dword ptr [esi + 4], eax */
   6684     MEM32(esi + 0x8) = ebx; /* 0x360C7352: mov dword ptr [esi + 8], ebx */
   6685     MEM32(edi + 0x8) = esi; /* 0x360C7355: mov dword ptr [edi + 8], esi */
   6686     eax = edi; /* 0x360C7358: mov eax, edi */
   6687     edi = POP32_VAL(esp); /* 0x360C735A: pop edi */
   6688     esi = POP32_VAL(esp); /* 0x360C735B: pop esi */
   6689     ebx = POP32_VAL(esp); /* 0x360C735C: pop ebx */
   6690     ecx = MEM32(ebp + (-0xC)); /* 0x360C735D: mov ecx, dword ptr [ebp - 0xc] */
   6691     MEM32(FS_BASE + (0)) = ecx; /* 0x360C7360: mov dword ptr fs:[0], ecx */
   6692     esp = ebp; /* 0x360C7367: mov esp, ebp */
   6693     ebp = POP32_VAL(esp); /* 0x360C7369: pop ebp */
   6694     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C736A: ret  */
   6695 L_360C736B:
   6696     ecx = MEM32(ebp + (-0xC)); /* 0x360C736B: mov ecx, dword ptr [ebp - 0xc] */
   6697     MEM32(edi + 0x8) = ebx; /* 0x360C736E: mov dword ptr [edi + 8], ebx */
   6698     eax = edi; /* 0x360C7371: mov eax, edi */
   6699     edi = POP32_VAL(esp); /* 0x360C7373: pop edi */
   6700     esi = POP32_VAL(esp); /* 0x360C7374: pop esi */
   6701     ebx = POP32_VAL(esp); /* 0x360C7375: pop ebx */
   6702     MEM32(FS_BASE + (0)) = ecx; /* 0x360C7376: mov dword ptr fs:[0], ecx */
   6703     esp = ebp; /* 0x360C737D: mov esp, ebp */
   6704     ebp = POP32_VAL(esp); /* 0x360C737F: pop ebp */
   6705     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7380: ret  */
   6706     RECOMP_REGS_OUT();
   6707 }
   6708 
   6709 void sub_360C7390(void) {
   6710     int _fpu_cmp = 0;
   6711     uint32_t _cf = 0;
   6712     int _df = 1;
   6713     uint32_t _flag_k = FK_NONE;
   6714     uint32_t _flag_a = 0, _flag_b = 0;
   6715     uint32_t _itail_tgt = 0;
   6716     RECOMP_REGS_LOCALS
   6717     RECOMP_ENTER(0x360C7390u);
   6718 
   6719 L_360C7390:
   6720     PUSH32(esp, ebp); /* 0x360C7390: push ebp */
   6721     ebp = esp; /* 0x360C7391: mov ebp, esp */
   6722     PUSH32(esp, ecx); /* 0x360C7393: push ecx */
   6723     PUSH32(esp, edi); /* 0x360C7394: push edi */
   6724     edi = MEM32(ecx + 0x8); /* 0x360C7395: mov edi, dword ptr [ecx + 8] */
   6725     /* test edi, edi */ /* 0x360C7398: test edi, edi */
   6726     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6727     _cf = 0;
   6728     _flag_k = FK_TEST;
   6729     MEM32(ebp + (-0x4)) = ecx; /* 0x360C739A: mov dword ptr [ebp - 4], ecx */
   6730     if (TEST_Z(_flag_a, _flag_b)) goto L_360C73F8; /* 0x360C739D: je 0x360c73f8 */
   6731 L_360C739F:
   6732     PUSH32(esp, ebx); /* 0x360C739F: push ebx */
   6733     ebx = MEM32(edi + 0x4); /* 0x360C73A0: mov ebx, dword ptr [edi + 4] */
   6734     PUSH32(esp, esi); /* 0x360C73A3: push esi */
   6735     esi = MEM32(ebx); /* 0x360C73A4: mov esi, dword ptr [ebx] */
   6736     /* cmp esi, ebx */ /* 0x360C73A6: cmp esi, ebx */
   6737     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6739     _flag_k = FK_CMP;
   6740     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C73D1; /* 0x360C73A8: je 0x360c73d1 */
   6741 L_360C73AA:
   6742     eax = esi; /* 0x360C73AA: mov eax, esi */
   6743     ecx = MEM32(eax + 0x4); /* 0x360C73AC: mov ecx, dword ptr [eax + 4] */
   6744     edx = MEM32(eax); /* 0x360C73AF: mov edx, dword ptr [eax] */
   6745     esi = MEM32(esi); /* 0x360C73B1: mov esi, dword ptr [esi] */
   6746     MEM32(ecx) = edx; /* 0x360C73B3: mov dword ptr [ecx], edx */
   6747     ecx = MEM32(eax); /* 0x360C73B5: mov ecx, dword ptr [eax] */
   6748     edx = MEM32(eax + 0x4); /* 0x360C73B7: mov edx, dword ptr [eax + 4] */
   6749     PUSH32(esp, eax); /* 0x360C73BA: push eax */
   6750     MEM32(ecx + 0x4) = edx; /* 0x360C73BB: mov dword ptr [ecx + 4], edx */
   6751     RECOMP_ICALL(0x3615FCC4u); /* 0x360C73BE: call 0x3615fcc4 */ /* not lifted */
   6752     RECOMP_FLAGS_IN();
   6753     ecx = MEM32(edi + 0x8); /* 0x360C73C3: mov ecx, dword ptr [edi + 8] */
   6754     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6755     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6756     esp = esp + 4; /* 0x360C73C6: add esp, 4 */
   6757     _flag_k = FK_ADD;
   6758     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6759     ecx = ecx - 1; /* 0x360C73C9: dec ecx */
   6760     _flag_k = FK_DEC;
   6761     /* cmp esi, ebx */ /* 0x360C73CA: cmp esi, ebx */
   6762     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   6763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6764     _flag_k = FK_CMP;
   6765     MEM32(edi + 0x8) = ecx; /* 0x360C73CC: mov dword ptr [edi + 8], ecx */
   6766     RECOMP_BACKEDGE();
   6767     if (CMP_NE(_flag_a, _flag_b)) goto L_360C73AA; /* 0x360C73CF: jne 0x360c73aa */
   6768 L_360C73D1:
   6769     eax = MEM32(edi + 0x4); /* 0x360C73D1: mov eax, dword ptr [edi + 4] */
   6770     PUSH32(esp, eax); /* 0x360C73D4: push eax */
   6771     RECOMP_ICALL(0x3615FCC4u); /* 0x360C73D5: call 0x3615fcc4 */ /* not lifted */
   6772     RECOMP_FLAGS_IN();
   6773     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6774     esi = 0; /* 0x360C73DA: xor esi, esi */
   6775     _cf = 0;
   6776     _flag_k = FK_TEST;
   6777     PUSH32(esp, edi); /* 0x360C73DC: push edi */
   6778     MEM32(edi + 0x4) = esi; /* 0x360C73DD: mov dword ptr [edi + 4], esi */
   6779     MEM32(edi + 0x8) = esi; /* 0x360C73E0: mov dword ptr [edi + 8], esi */
   6780     RECOMP_ICALL(0x3615FCC4u); /* 0x360C73E3: call 0x3615fcc4 */ /* not lifted */
   6781     RECOMP_FLAGS_IN();
   6782     ecx = MEM32(ebp + (-0x4)); /* 0x360C73E8: mov ecx, dword ptr [ebp - 4] */
   6783     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6784     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6785     esp = esp + 8; /* 0x360C73EB: add esp, 8 */
   6786     _flag_k = FK_ADD;
   6787     MEM32(ecx + 0x8) = esi; /* 0x360C73EE: mov dword ptr [ecx + 8], esi */
   6788     esi = POP32_VAL(esp); /* 0x360C73F1: pop esi */
   6789     ebx = POP32_VAL(esp); /* 0x360C73F2: pop ebx */
   6790     edi = POP32_VAL(esp); /* 0x360C73F3: pop edi */
   6791     esp = ebp; /* 0x360C73F4: mov esp, ebp */
   6792     ebp = POP32_VAL(esp); /* 0x360C73F6: pop ebp */
   6793     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C73F7: ret  */
   6794 L_360C73F8:
   6795     MEM32(ecx + 0x8) = 0; /* 0x360C73F8: mov dword ptr [ecx + 8], 0 */
   6796     edi = POP32_VAL(esp); /* 0x360C73FF: pop edi */
   6797     esp = ebp; /* 0x360C7400: mov esp, ebp */
   6798     ebp = POP32_VAL(esp); /* 0x360C7402: pop ebp */
   6799     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7403: ret  */
   6800     RECOMP_REGS_OUT();
   6801 }
   6802 
   6803 void sub_360C7410(void) {
   6804     int _fpu_cmp = 0;
   6805     uint32_t _cf = 0;
   6806     int _df = 1;
   6807     uint32_t _flag_k = FK_NONE;
   6808     uint32_t _flag_a = 0, _flag_b = 0;
   6809     uint32_t _itail_tgt = 0;
   6810     RECOMP_REGS_LOCALS
   6811     RECOMP_ENTER(0x360C7410u);
   6812 
   6813 L_360C7410:
   6814     PUSH32(esp, ebp); /* 0x360C7410: push ebp */
   6815     ebp = esp; /* 0x360C7411: mov ebp, esp */
   6816     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C7413: push -1 */
   6817     PUSH32(esp, 0x3616783Bu); /* 0x360C7415: push 0x3616783b */
   6818     eax = MEM32(FS_BASE + (0)); /* 0x360C741A: mov eax, dword ptr fs:[0] */
   6819     PUSH32(esp, eax); /* 0x360C7420: push eax */
   6820     MEM32(FS_BASE + (0)) = esp; /* 0x360C7421: mov dword ptr fs:[0], esp */
   6821     PUSH32(esp, ecx); /* 0x360C7428: push ecx */
   6822     eax = MEM32(0x36306D68); /* 0x360C7429: mov eax, dword ptr [0x36306d68] */
   6823     /* test eax, eax */ /* 0x360C742E: test eax, eax */
   6824     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6825     _cf = 0;
   6826     _flag_k = FK_TEST;
   6827     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C746B; /* 0x360C7430: jne 0x360c746b */
   6828 L_360C7432:
   6829     PUSH32(esp, 0x10u); /* 0x360C7432: push 0x10 */
   6830     RECOMP_ICALL(0x3615FD6Au); /* 0x360C7434: call 0x3615fd6a */ /* not lifted */
   6831     RECOMP_FLAGS_IN();
   6832     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6833     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6834     esp = esp + 4; /* 0x360C7439: add esp, 4 */
   6835     _flag_k = FK_ADD;
   6836     MEM32(ebp + (-0x10)) = eax; /* 0x360C743C: mov dword ptr [ebp - 0x10], eax */
   6837     /* test eax, eax */ /* 0x360C743F: test eax, eax */
   6838     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6839     _cf = 0;
   6840     _flag_k = FK_TEST;
   6841     MEM32(ebp + (-0x4)) = 0; /* 0x360C7441: mov dword ptr [ebp - 4], 0 */
   6842     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7464; /* 0x360C7448: je 0x360c7464 */
   6843 L_360C744A:
   6844     ecx = eax; /* 0x360C744A: mov ecx, eax */
   6845     RECOMP_ICALL(0x360C7300u); /* 0x360C744C: call 0x360c7300 */ /* not lifted */
   6846     RECOMP_FLAGS_IN();
   6847     MEM32(0x36306D68) = eax; /* 0x360C7451: mov dword ptr [0x36306d68], eax */
   6848     ecx = MEM32(ebp + (-0xC)); /* 0x360C7456: mov ecx, dword ptr [ebp - 0xc] */
   6849     MEM32(FS_BASE + (0)) = ecx; /* 0x360C7459: mov dword ptr fs:[0], ecx */
   6850     esp = ebp; /* 0x360C7460: mov esp, ebp */
   6851     ebp = POP32_VAL(esp); /* 0x360C7462: pop ebp */
   6852     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7463: ret  */
   6853 L_360C7464:
   6854     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6855     eax = 0; /* 0x360C7464: xor eax, eax */
   6856     _cf = 0;
   6857     _flag_k = FK_TEST;
   6858     MEM32(0x36306D68) = eax; /* 0x360C7466: mov dword ptr [0x36306d68], eax */
   6859 L_360C746B:
   6860     ecx = MEM32(ebp + (-0xC)); /* 0x360C746B: mov ecx, dword ptr [ebp - 0xc] */
   6861     MEM32(FS_BASE + (0)) = ecx; /* 0x360C746E: mov dword ptr fs:[0], ecx */
   6862     esp = ebp; /* 0x360C7475: mov esp, ebp */
   6863     ebp = POP32_VAL(esp); /* 0x360C7477: pop ebp */
   6864     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7478: ret  */
   6865     RECOMP_REGS_OUT();
   6866 }
   6867 
   6868 void sub_360C7480(void) {
   6869     int _fpu_cmp = 0;
   6870     uint32_t _cf = 0;
   6871     int _df = 1;
   6872     uint32_t _flag_k = FK_NONE;
   6873     uint32_t _flag_a = 0, _flag_b = 0;
   6874     uint32_t _itail_tgt = 0;
   6875     RECOMP_REGS_LOCALS
   6876     RECOMP_ENTER(0x360C7480u);
   6877 
   6878 L_360C7480:
   6879     PUSH32(esp, esi); /* 0x360C7480: push esi */
   6880     RECOMP_ICALL(MEM32(0x3616F3D0)); /* 0x360C7481: call dword ptr [0x3616f3d0] */
   6881     RECOMP_FLAGS_IN();
   6882     esi = MEM32(0x36306D68); /* 0x360C7487: mov esi, dword ptr [0x36306d68] */
   6883     /* test esi, esi */ /* 0x360C748D: test esi, esi */
   6884     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6885     _cf = 0;
   6886     _flag_k = FK_TEST;
   6887     if (TEST_Z(_flag_a, _flag_b)) goto L_360C74AB; /* 0x360C748F: je 0x360c74ab */
   6888 L_360C7491:
   6889     ecx = esi; /* 0x360C7491: mov ecx, esi */
   6890     RECOMP_ICALL(0x360C7390u); /* 0x360C7493: call 0x360c7390 */ /* not lifted */
   6891     RECOMP_FLAGS_IN();
   6892     PUSH32(esp, esi); /* 0x360C7498: push esi */
   6893     RECOMP_ICALL(0x3615FCC4u); /* 0x360C7499: call 0x3615fcc4 */ /* not lifted */
   6894     RECOMP_FLAGS_IN();
   6895     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6896     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6897     esp = esp + 4; /* 0x360C749E: add esp, 4 */
   6898     _flag_k = FK_ADD;
   6899     MEM32(0x36306D68) = 0; /* 0x360C74A1: mov dword ptr [0x36306d68], 0 */
   6900 L_360C74AB:
   6901     esi = POP32_VAL(esp); /* 0x360C74AB: pop esi */
   6902     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C74AC: ret  */
   6903     RECOMP_REGS_OUT();
   6904 }
   6905 
   6906 void sub_360C74B0(void) {
   6907     int _fpu_cmp = 0;
   6908     uint32_t _cf = 0;
   6909     int _df = 1;
   6910     uint32_t _flag_k = FK_NONE;
   6911     uint32_t _flag_a = 0, _flag_b = 0;
   6912     uint32_t _itail_tgt = 0;
   6913     RECOMP_REGS_LOCALS
   6914     RECOMP_ENTER(0x360C74B0u);
   6915 
   6916 L_360C74B0:
   6917     PUSH32(esp, esi); /* 0x360C74B0: push esi */
   6918     esi = ecx; /* 0x360C74B1: mov esi, ecx */
   6919     RECOMP_ICALL(MEM32(0x3616F39C)); /* 0x360C74B3: call dword ptr [0x3616f39c] */
   6920     RECOMP_FLAGS_IN();
   6921     MEM32(esi) = eax; /* 0x360C74B9: mov dword ptr [esi], eax */
   6922     MEM32(esi + 0x4) = 0; /* 0x360C74BB: mov dword ptr [esi + 4], 0 */
   6923     esi = POP32_VAL(esp); /* 0x360C74C2: pop esi */
   6924     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C74C3: ret  */
   6925     RECOMP_REGS_OUT();
   6926 }
   6927 
   6928 void sub_360C74D0(void) {
   6929     int _fpu_cmp = 0;
   6930     uint32_t _cf = 0;
   6931     int _df = 1;
   6932     uint32_t _flag_k = FK_NONE;
   6933     uint32_t _flag_a = 0, _flag_b = 0;
   6934     uint32_t _itail_tgt = 0;
   6935     RECOMP_REGS_LOCALS
   6936     RECOMP_ENTER(0x360C74D0u);
   6937 
   6938 L_360C74D0:
   6939     PUSH32(esp, ebp); /* 0x360C74D0: push ebp */
   6940     ebp = esp; /* 0x360C74D1: mov ebp, esp */
   6941     eax = MEM32(ebp + 0x8); /* 0x360C74D3: mov eax, dword ptr [ebp + 8] */
   6942     ecx = MEM32(ecx); /* 0x360C74D6: mov ecx, dword ptr [ecx] */
   6943     PUSH32(esp, eax); /* 0x360C74D8: push eax */
   6944     RECOMP_ICALL(MEM32(0x3616F3D4)); /* 0x360C74D9: call dword ptr [0x3616f3d4] */
   6945     RECOMP_FLAGS_IN();
   6946     ebp = POP32_VAL(esp); /* 0x360C74DF: pop ebp */
   6947     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C74E0: ret 4 */
   6948     RECOMP_REGS_OUT();
   6949 }
   6950 
   6951 void sub_360C74F0(void) {
   6952     int _fpu_cmp = 0;
   6953     uint32_t _cf = 0;
   6954     int _df = 1;
   6955     uint32_t _flag_k = FK_NONE;
   6956     uint32_t _flag_a = 0, _flag_b = 0;
   6957     uint32_t _itail_tgt = 0;
   6958     RECOMP_REGS_LOCALS
   6959     RECOMP_ENTER(0x360C74F0u);
   6960 
   6961 L_360C74F0:
   6962     ecx = MEM32(ecx); /* 0x360C74F0: mov ecx, dword ptr [ecx] */
   6963 L_360C74F2:
   6964     { _itail_tgt = (uint32_t)(MEM32(0x3616F3D8)); goto _ljump; }
   6965     { RECOMP_REGS_OUT(); return; } /* end of function */
   6966   _ljump:
   6967     switch (_itail_tgt) {
   6968       case 0x360C74F0u: goto L_360C74F0;
   6969       case 0x360C74F2u: goto L_360C74F2;
   6970       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6971     }
   6972     RECOMP_REGS_OUT();
   6973 }
   6974 
   6975 void sub_360C7500(void) {
   6976     int _fpu_cmp = 0;
   6977     uint32_t _cf = 0;
   6978     int _df = 1;
   6979     uint32_t _flag_k = FK_NONE;
   6980     uint32_t _flag_a = 0, _flag_b = 0;
   6981     uint32_t _itail_tgt = 0;
   6982     RECOMP_REGS_LOCALS
   6983     RECOMP_ENTER(0x360C7500u);
   6984 
   6985 L_360C7500:
   6986     PUSH32(esp, esi); /* 0x360C7500: push esi */
   6987     esi = ecx; /* 0x360C7501: mov esi, ecx */
   6988     eax = MEM32(esi + 0x8); /* 0x360C7503: mov eax, dword ptr [esi + 8] */
   6989     ecx = MEM32(eax + 0x4); /* 0x360C7506: mov ecx, dword ptr [eax + 4] */
   6990     eax = MEM32(ecx); /* 0x360C7509: mov eax, dword ptr [ecx] */
   6991     /* cmp eax, ecx */ /* 0x360C750B: cmp eax, ecx */
   6992     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6994     _flag_k = FK_CMP;
   6995     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C7584; /* 0x360C750D: je 0x360c7584 */
   6996 L_360C750F:
   6997     PUSH32(esp, ebx); /* 0x360C750F: push ebx */
   6998     ebx = MEM32(0x3616F3DC); /* 0x360C7510: mov ebx, dword ptr [0x3616f3dc] */
   6999     PUSH32(esp, edi); /* 0x360C7516: push edi */
   7000 L_360C7517:
   7001     eax = MEM32(eax + 0x8); /* 0x360C7517: mov eax, dword ptr [eax + 8] */
   7002     ecx = MEM32(eax + 0x8); /* 0x360C751A: mov ecx, dword ptr [eax + 8] */
   7003     PUSH32(esp, ecx); /* 0x360C751D: push ecx */
   7004     RECOMP_ICALL(MEM32(0x3616F39C)); /* 0x360C751E: call dword ptr [0x3616f39c] */
   7005     RECOMP_FLAGS_IN();
   7006     ecx = eax; /* 0x360C7524: mov ecx, eax */
   7007     RECOMP_ICALL(ebx); /* 0x360C7526: call ebx */
   7008     RECOMP_FLAGS_IN();
   7009     edx = MEM32(esi + 0x8); /* 0x360C7528: mov edx, dword ptr [esi + 8] */
   7010     eax = MEM32(edx + 0x4); /* 0x360C752B: mov eax, dword ptr [edx + 4] */
   7011     eax = MEM32(eax); /* 0x360C752E: mov eax, dword ptr [eax] */
   7012     eax = MEM32(eax + 0x8); /* 0x360C7530: mov eax, dword ptr [eax + 8] */
   7013     /* test eax, eax */ /* 0x360C7533: test eax, eax */
   7014     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7015     _cf = 0;
   7016     _flag_k = FK_TEST;
   7017     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7546; /* 0x360C7535: je 0x360c7546 */
   7018 L_360C7537:
   7019     PUSH32(esp, eax); /* 0x360C7537: push eax */
   7020     MEM32(eax) = 0x36174F60u; /* 0x360C7538: mov dword ptr [eax], 0x36174f60 */
   7021     RECOMP_ICALL(0x3615FCC4u); /* 0x360C753E: call 0x3615fcc4 */ /* not lifted */
   7022     RECOMP_FLAGS_IN();
   7023     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7024     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7025     esp = esp + 4; /* 0x360C7543: add esp, 4 */
   7026     _flag_k = FK_ADD;
   7027 L_360C7546:
   7028     edi = MEM32(esi + 0x8); /* 0x360C7546: mov edi, dword ptr [esi + 8] */
   7029     ecx = MEM32(edi + 0x4); /* 0x360C7549: mov ecx, dword ptr [edi + 4] */
   7030     eax = MEM32(ecx); /* 0x360C754C: mov eax, dword ptr [ecx] */
   7031     edx = MEM32(eax + 0x4); /* 0x360C754E: mov edx, dword ptr [eax + 4] */
   7032     ecx = MEM32(eax); /* 0x360C7551: mov ecx, dword ptr [eax] */
   7033     MEM32(edx) = ecx; /* 0x360C7553: mov dword ptr [edx], ecx */
   7034     edx = MEM32(eax); /* 0x360C7555: mov edx, dword ptr [eax] */
   7035     ecx = MEM32(eax + 0x4); /* 0x360C7557: mov ecx, dword ptr [eax + 4] */
   7036     PUSH32(esp, eax); /* 0x360C755A: push eax */
   7037     MEM32(edx + 0x4) = ecx; /* 0x360C755B: mov dword ptr [edx + 4], ecx */
   7038     RECOMP_ICALL(0x3615FCC4u); /* 0x360C755E: call 0x3615fcc4 */ /* not lifted */
   7039     RECOMP_FLAGS_IN();
   7040     eax = MEM32(edi + 0x8); /* 0x360C7563: mov eax, dword ptr [edi + 8] */
   7041     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7042     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7043     esp = esp + 4; /* 0x360C7566: add esp, 4 */
   7044     _flag_k = FK_ADD;
   7045     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7046     eax = eax - 1; /* 0x360C7569: dec eax */
   7047     _flag_k = FK_DEC;
   7048     MEM32(edi + 0x8) = eax; /* 0x360C756A: mov dword ptr [edi + 8], eax */
   7049     edx = MEM32(esi + 0x8); /* 0x360C756D: mov edx, dword ptr [esi + 8] */
   7050     ecx = MEM32(edx + 0x4); /* 0x360C7570: mov ecx, dword ptr [edx + 4] */
   7051     eax = MEM32(ecx); /* 0x360C7573: mov eax, dword ptr [ecx] */
   7052     /* cmp eax, ecx */ /* 0x360C7575: cmp eax, ecx */
   7053     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7054     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7055     _flag_k = FK_CMP;
   7056     RECOMP_BACKEDGE();
   7057     if (CMP_NE(_flag_a, _flag_b)) goto L_360C7517; /* 0x360C7577: jne 0x360c7517 */
   7058 L_360C7579:
   7059     edi = POP32_VAL(esp); /* 0x360C7579: pop edi */
   7060     ebx = POP32_VAL(esp); /* 0x360C757A: pop ebx */
   7061     MEM32(esi + 0x4) = 0; /* 0x360C757B: mov dword ptr [esi + 4], 0 */
   7062     esi = POP32_VAL(esp); /* 0x360C7582: pop esi */
   7063     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7583: ret  */
   7064 L_360C7584:
   7065     MEM32(esi + 0x4) = 0; /* 0x360C7584: mov dword ptr [esi + 4], 0 */
   7066     esi = POP32_VAL(esp); /* 0x360C758B: pop esi */
   7067     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C758C: ret  */
   7068     RECOMP_REGS_OUT();
   7069 }
   7070 
   7071 void sub_360C7590(void) {
   7072     int _fpu_cmp = 0;
   7073     uint32_t _cf = 0;
   7074     int _df = 1;
   7075     uint32_t _flag_k = FK_NONE;
   7076     uint32_t _flag_a = 0, _flag_b = 0;
   7077     uint32_t _itail_tgt = 0;
   7078     RECOMP_REGS_LOCALS
   7079     RECOMP_ENTER(0x360C7590u);
   7080 
   7081 L_360C7590:
   7082     PUSH32(esp, ebp); /* 0x360C7590: push ebp */
   7083     ebp = esp; /* 0x360C7591: mov ebp, esp */
   7084     PUSH32(esp, 0xFFFFFFFFu); /* 0x360C7593: push -1 */
   7085     PUSH32(esp, 0x36167858u); /* 0x360C7595: push 0x36167858 */
   7086     eax = MEM32(FS_BASE + (0)); /* 0x360C759A: mov eax, dword ptr fs:[0] */
   7087     PUSH32(esp, eax); /* 0x360C75A0: push eax */
   7088     MEM32(FS_BASE + (0)) = esp; /* 0x360C75A1: mov dword ptr fs:[0], esp */
   7089     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u);
   7090     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7091     esp = esp - 0x20u; /* 0x360C75A8: sub esp, 0x20 */
   7092     _flag_k = FK_CMP;
   7093     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360C75AB: mov al, byte ptr [ebp + 0xb] */
   7094     PUSH32(esp, ebx); /* 0x360C75AE: push ebx */
   7095     PUSH32(esp, esi); /* 0x360C75AF: push esi */
   7096     PUSH32(esp, edi); /* 0x360C75B0: push edi */
   7097     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7098     edi = 0; /* 0x360C75B1: xor edi, edi */
   7099     _cf = 0;
   7100     _flag_k = FK_TEST;
   7101     PUSH32(esp, edi); /* 0x360C75B3: push edi */
   7102     esi = ecx; /* 0x360C75B4: mov esi, ecx */
   7103     PUSH32(esp, edi); /* 0x360C75B6: push edi */
   7104     ecx = ebp + (-0x2C); /* 0x360C75B7: lea ecx, [ebp - 0x2c] */
   7105     MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x360C75BA: mov byte ptr [ebp - 0x2c], al */
   7106     RECOMP_ICALL(0x360C86E0u); /* 0x360C75BD: call 0x360c86e0 */ /* not lifted */
   7107     RECOMP_FLAGS_IN();
   7108     MEM32(ebp + (-0x28)) = eax; /* 0x360C75C2: mov dword ptr [ebp - 0x28], eax */
   7109     MEM32(ebp + (-0x24)) = edi; /* 0x360C75C5: mov dword ptr [ebp - 0x24], edi */
   7110     ecx = MEM32(esi + 0x8); /* 0x360C75C8: mov ecx, dword ptr [esi + 8] */
   7111     eax = MEM32(ecx + 0x4); /* 0x360C75CB: mov eax, dword ptr [ecx + 4] */
   7112     ebx = MEM32(eax); /* 0x360C75CE: mov ebx, dword ptr [eax] */
   7113     /* cmp ebx, eax */ /* 0x360C75D0: cmp ebx, eax */
   7114     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
   7115     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7116     _flag_k = FK_CMP;
   7117     MEM32(ebp + (-0x4)) = edi; /* 0x360C75D2: mov dword ptr [ebp - 4], edi */
   7118     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C761B; /* 0x360C75D5: je 0x360c761b */
   7119 L_360C75D7:
   7120     ecx = MEM32(ebx + 0x8); /* 0x360C75D7: mov ecx, dword ptr [ebx + 8] */
   7121     eax = MEM32(ebp + 0x8); /* 0x360C75DA: mov eax, dword ptr [ebp + 8] */
   7122     edx = MEM32(ecx); /* 0x360C75DD: mov edx, dword ptr [ecx] */
   7123     edi = ebx + 0x8; /* 0x360C75DF: lea edi, [ebx + 8] */
   7124     PUSH32(esp, eax); /* 0x360C75E2: push eax */
   7125     RECOMP_ICALL(MEM32(edx)); /* 0x360C75E3: call dword ptr [edx] */
   7126     RECOMP_FLAGS_IN();
   7127     eax = MEM32(edi); /* 0x360C75E5: mov eax, dword ptr [edi] */
   7128     SET_LO8(ecx, MEM8(eax + 0x4)); /* 0x360C75E7: mov cl, byte ptr [eax + 4] */
   7129     /* test LO8(ecx), LO8(ecx) */ /* 0x360C75EA: test cl, cl */
   7130     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7131     _cf = 0;
   7132     _flag_k = FK_NARROW(FK_TEST, 24);
   7133     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7611; /* 0x360C75EC: je 0x360c7611 */
   7134 L_360C75EE:
   7135     ecx = MEM32(eax + 0x8); /* 0x360C75EE: mov ecx, dword ptr [eax + 8] */
   7136     PUSH32(esp, ecx); /* 0x360C75F1: push ecx */
   7137     RECOMP_ICALL(MEM32(0x3616F39C)); /* 0x360C75F2: call dword ptr [0x3616f39c] */
   7138     RECOMP_FLAGS_IN();
   7139     ecx = eax; /* 0x360C75F8: mov ecx, eax */
   7140     RECOMP_ICALL(MEM32(0x3616F3DC)); /* 0x360C75FA: call dword ptr [0x3616f3dc] */
   7141     RECOMP_FLAGS_IN();
   7142     eax = MEM32(ebp + (-0x28)); /* 0x360C7600: mov eax, dword ptr [ebp - 0x28] */
   7143     PUSH32(esp, edi); /* 0x360C7603: push edi */
   7144     PUSH32(esp, eax); /* 0x360C7604: push eax */
   7145     edx = ebp + (-0x14); /* 0x360C7605: lea edx, [ebp - 0x14] */
   7146     PUSH32(esp, edx); /* 0x360C7608: push edx */
   7147     ecx = ebp + (-0x2C); /* 0x360C7609: lea ecx, [ebp - 0x2c] */
   7148     RECOMP_ICALL(0x360C5BA0u); /* 0x360C760C: call 0x360c5ba0 */ /* not lifted */
   7149     RECOMP_FLAGS_IN();
   7150 L_360C7611:
   7151     eax = MEM32(esi + 0x8); /* 0x360C7611: mov eax, dword ptr [esi + 8] */
   7152     ebx = MEM32(ebx); /* 0x360C7614: mov ebx, dword ptr [ebx] */
   7153     /* cmp ebx, MEM32(eax + 0x4) */ /* 0x360C7616: cmp ebx, dword ptr [eax + 4] */
   7154     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   7155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7156     _flag_k = FK_CMP;
   7157     RECOMP_BACKEDGE();
   7158     if (CMP_NE(_flag_a, _flag_b)) goto L_360C75D7; /* 0x360C7619: jne 0x360c75d7 */
   7159 L_360C761B:
   7160     edx = MEM32(ebp + (-0x28)); /* 0x360C761B: mov edx, dword ptr [ebp - 0x28] */
   7161     eax = MEM32(edx); /* 0x360C761E: mov eax, dword ptr [edx] */
   7162     /* cmp eax, edx */ /* 0x360C7620: cmp eax, edx */
   7163     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7164     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7165     _flag_k = FK_CMP;
   7166     MEM32(ebp + (-0x14)) = eax; /* 0x360C7622: mov dword ptr [ebp - 0x14], eax */
   7167     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C76A4; /* 0x360C7625: je 0x360c76a4 */
   7168 L_360C7627:
   7169     edi = MEM32(esi + 0x8); /* 0x360C7627: mov edi, dword ptr [esi + 8] */
   7170     ebx = MEM32(edi + 0x4); /* 0x360C762A: mov ebx, dword ptr [edi + 4] */
   7171     ecx = MEM32(ebx); /* 0x360C762D: mov ecx, dword ptr [ebx] */
   7172     /* cmp ecx, ebx */ /* 0x360C762F: cmp ecx, ebx */
   7173     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7175     _flag_k = FK_CMP;
   7176     MEM32(ebp + (-0x10)) = ecx; /* 0x360C7631: mov dword ptr [ebp - 0x10], ecx */
   7177     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C766E; /* 0x360C7634: je 0x360c766e */
   7178 L_360C7636:
   7179     edx = MEM32(ecx + 0x8); /* 0x360C7636: mov edx, dword ptr [ecx + 8] */
   7180     eax = MEM32(ebp + (-0x14)); /* 0x360C7639: mov eax, dword ptr [ebp - 0x14] */
   7181     /* cmp edx, MEM32(eax + 0x8) */ /* 0x360C763C: cmp edx, dword ptr [eax + 8] */
   7182     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   7183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7184     _flag_k = FK_CMP;
   7185     if (CMP_NE(_flag_a, _flag_b)) goto L_360C7662; /* 0x360C763F: jne 0x360c7662 */
   7186 L_360C7641:
   7187     PUSH32(esp, 0); /* 0x360C7641: push 0 */
   7188     ecx = ebp + (-0x18); /* 0x360C7643: lea ecx, [ebp - 0x18] */
   7189     PUSH32(esp, ecx); /* 0x360C7646: push ecx */
   7190     ecx = ebp + (-0x10); /* 0x360C7647: lea ecx, [ebp - 0x10] */
   7191     RECOMP_ICALL(0x360641D0u); /* 0x360C764A: call 0x360641d0 */ /* not lifted */
   7192     RECOMP_FLAGS_IN();
   7193     edx = MEM32(eax); /* 0x360C764F: mov edx, dword ptr [eax] */
   7194     PUSH32(esp, edx); /* 0x360C7651: push edx */
   7195     eax = ebp + (-0x1C); /* 0x360C7652: lea eax, [ebp - 0x1c] */
   7196     PUSH32(esp, eax); /* 0x360C7655: push eax */
   7197     ecx = edi; /* 0x360C7656: mov ecx, edi */
   7198     RECOMP_ICALL(0x360C86A0u); /* 0x360C7658: call 0x360c86a0 */ /* not lifted */
   7199     RECOMP_FLAGS_IN();
   7200     ecx = MEM32(ebp + (-0x10)); /* 0x360C765D: mov ecx, dword ptr [ebp - 0x10] */
   7201     goto L_360C7667; /* 0x360C7660: jmp 0x360c7667 */
   7202 L_360C7662:
   7203     ecx = MEM32(ecx); /* 0x360C7662: mov ecx, dword ptr [ecx] */
   7204     MEM32(ebp + (-0x10)) = ecx; /* 0x360C7664: mov dword ptr [ebp - 0x10], ecx */
   7205 L_360C7667:
   7206     /* cmp ecx, ebx */ /* 0x360C7667: cmp ecx, ebx */
   7207     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   7208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7209     _flag_k = FK_CMP;
   7210     RECOMP_BACKEDGE();
   7211     if (CMP_NE(_flag_a, _flag_b)) goto L_360C7636; /* 0x360C7669: jne 0x360c7636 */
   7212 L_360C766B:
   7213     edx = MEM32(ebp + (-0x28)); /* 0x360C766B: mov edx, dword ptr [ebp - 0x28] */
   7214 L_360C766E:
   7215     eax = MEM32(edx); /* 0x360C766E: mov eax, dword ptr [edx] */
   7216     ecx = MEM32(eax + 0x8); /* 0x360C7670: mov ecx, dword ptr [eax + 8] */
   7217     /* test ecx, ecx */ /* 0x360C7673: test ecx, ecx */
   7218     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7219     _cf = 0;
   7220     _flag_k = FK_TEST;
   7221     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7686; /* 0x360C7675: je 0x360c7686 */
   7222 L_360C7677:
   7223     PUSH32(esp, ecx); /* 0x360C7677: push ecx */
   7224     MEM32(ecx) = 0x36174F60u; /* 0x360C7678: mov dword ptr [ecx], 0x36174f60 */
   7225     RECOMP_ICALL(0x3615FCC4u); /* 0x360C767E: call 0x3615fcc4 */ /* not lifted */
   7226     RECOMP_FLAGS_IN();
   7227     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7228     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7229     esp = esp + 4; /* 0x360C7683: add esp, 4 */
   7230     _flag_k = FK_ADD;
   7231 L_360C7686:
   7232     ecx = MEM32(ebp + (-0x28)); /* 0x360C7686: mov ecx, dword ptr [ebp - 0x28] */
   7233     eax = MEM32(ecx); /* 0x360C7689: mov eax, dword ptr [ecx] */
   7234     PUSH32(esp, eax); /* 0x360C768B: push eax */
   7235     edx = ebp + (-0x20); /* 0x360C768C: lea edx, [ebp - 0x20] */
   7236     PUSH32(esp, edx); /* 0x360C768F: push edx */
   7237     ecx = ebp + (-0x2C); /* 0x360C7690: lea ecx, [ebp - 0x2c] */
   7238     RECOMP_ICALL(0x360C86A0u); /* 0x360C7693: call 0x360c86a0 */ /* not lifted */
   7239     RECOMP_FLAGS_IN();
   7240     edx = MEM32(ebp + (-0x28)); /* 0x360C7698: mov edx, dword ptr [ebp - 0x28] */
   7241     eax = MEM32(edx); /* 0x360C769B: mov eax, dword ptr [edx] */
   7242     /* cmp eax, edx */ /* 0x360C769D: cmp eax, edx */
   7243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   7244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7245     _flag_k = FK_CMP;
   7246     MEM32(ebp + (-0x14)) = eax; /* 0x360C769F: mov dword ptr [ebp - 0x14], eax */
   7247     RECOMP_BACKEDGE();
   7248     if (CMP_NE(_flag_a, _flag_b)) goto L_360C7627; /* 0x360C76A2: jne 0x360c7627 */
   7249 L_360C76A4:
   7250     eax = MEM32(esi); /* 0x360C76A4: mov eax, dword ptr [esi] */
   7251     edi = MEM32(eax + 0x718); /* 0x360C76A6: mov edi, dword ptr [eax + 0x718] */
   7252     /* test edi, edi */ /* 0x360C76AC: test edi, edi */
   7253     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7254     _cf = 0;
   7255     _flag_k = FK_TEST;
   7256     if (TEST_Z(_flag_a, _flag_b)) goto L_360C797F; /* 0x360C76AE: je 0x360c797f */
   7257 L_360C76B4:
   7258     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360C76B4: fld dword ptr [ebp + 8] */
   7259     _st[0] *= (double)*(float*)ADDR(0x36170408); /* 0x360C76B7: fmul dword ptr [0x36170408] */
   7260     _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x360C76BD: fadd dword ptr [esi + 0xc] */
   7261     fp_push(*(double*)ADDR(0x36174F88)); /* 0x360C76C0: fld qword ptr [0x36174f88] */
   7262     RECOMP_ICALL(0x3615FEC4u); /* 0x360C76C6: call 0x3615fec4 */ /* not lifted */
   7263     RECOMP_FLAGS_IN();
   7264     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC) = _v; } /* 0x360C76CB: fst dword ptr [esi + 0xc] */
   7265     _st[0] += (double)*(float*)ADDR(0x36174F84); /* 0x360C76CE: fadd dword ptr [0x36174f84] */
   7266     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C76D4: fmul dword ptr [0x36174f80] */
   7267     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C76DA: fcos  */
   7268     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C76DC: fadd dword ptr [0x36170380] */
   7269     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C76E2: fmul dword ptr [0x36170464] */
   7270     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C76E8: fmul dword ptr [0x36174f7c] */
   7271     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C76EE: call 0x3615fd8c */ /* not lifted */
   7272     RECOMP_FLAGS_IN();
   7273     MEM32(edi + 0x4C) = eax; /* 0x360C76F3: mov dword ptr [edi + 0x4c], eax */
   7274     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C76F6: fld dword ptr [esi + 0xc] */
   7275     _st[0] += (double)*(float*)ADDR(0x36174F78); /* 0x360C76F9: fadd dword ptr [0x36174f78] */
   7276     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C76FF: fmul dword ptr [0x36174f80] */
   7277     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C7705: fcos  */
   7278     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C7707: fadd dword ptr [0x36170380] */
   7279     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C770D: fmul dword ptr [0x36170464] */
   7280     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C7713: fmul dword ptr [0x36174f7c] */
   7281     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7719: call 0x3615fd8c */ /* not lifted */
   7282     RECOMP_FLAGS_IN();
   7283     MEM32(edi + 0x50) = eax; /* 0x360C771E: mov dword ptr [edi + 0x50], eax */
   7284     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C7721: fld dword ptr [esi + 0xc] */
   7285     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C7724: fmul dword ptr [0x36174f80] */
   7286     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C772A: fcos  */
   7287     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C772C: fadd dword ptr [0x36170380] */
   7288     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7732: fmul dword ptr [0x36170464] */
   7289     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C7738: fmul dword ptr [0x36174f7c] */
   7290     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C773E: call 0x3615fd8c */ /* not lifted */
   7291     RECOMP_FLAGS_IN();
   7292     MEM32(edi + 0x54) = eax; /* 0x360C7743: mov dword ptr [edi + 0x54], eax */
   7293     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C7746: fld dword ptr [esi + 0xc] */
   7294     _st[0] += (double)*(float*)ADDR(0x36174F74); /* 0x360C7749: fadd dword ptr [0x36174f74] */
   7295     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C774F: fmul dword ptr [0x36174f80] */
   7296     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C7755: fcos  */
   7297     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C7757: fadd dword ptr [0x36170380] */
   7298     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C775D: fmul dword ptr [0x36170464] */
   7299     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C7763: fmul dword ptr [0x36174f7c] */
   7300     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7769: call 0x3615fd8c */ /* not lifted */
   7301     RECOMP_FLAGS_IN();
   7302     MEM32(edi + 0x58) = eax; /* 0x360C776E: mov dword ptr [edi + 0x58], eax */
   7303     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C7771: fld dword ptr [esi + 0xc] */
   7304     _st[0] += (double)*(float*)ADDR(0x36171148); /* 0x360C7774: fadd dword ptr [0x36171148] */
   7305     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C777A: fmul dword ptr [0x36174f80] */
   7306     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C7780: fcos  */
   7307     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C7782: fadd dword ptr [0x36170380] */
   7308     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7788: fmul dword ptr [0x36170464] */
   7309     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C778E: fmul dword ptr [0x36174f7c] */
   7310     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7794: call 0x3615fd8c */ /* not lifted */
   7311     RECOMP_FLAGS_IN();
   7312     MEM32(edi + 0x5C) = eax; /* 0x360C7799: mov dword ptr [edi + 0x5c], eax */
   7313     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C779C: fld dword ptr [esi + 0xc] */
   7314     _st[0] += (double)*(float*)ADDR(0x36174F70); /* 0x360C779F: fadd dword ptr [0x36174f70] */
   7315     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C77A5: fmul dword ptr [0x36174f80] */
   7316     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C77AB: fcos  */
   7317     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C77AD: fadd dword ptr [0x36170380] */
   7318     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C77B3: fmul dword ptr [0x36170464] */
   7319     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C77B9: fmul dword ptr [0x36174f7c] */
   7320     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C77BF: call 0x3615fd8c */ /* not lifted */
   7321     RECOMP_FLAGS_IN();
   7322     MEM32(edi + 0x60) = eax; /* 0x360C77C4: mov dword ptr [edi + 0x60], eax */
   7323     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C77C7: fld dword ptr [esi + 0xc] */
   7324     _st[0] += (double)*(float*)ADDR(0x36174F6C); /* 0x360C77CA: fadd dword ptr [0x36174f6c] */
   7325     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C77D0: fmul dword ptr [0x36174f80] */
   7326     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C77D6: fcos  */
   7327     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C77D8: fadd dword ptr [0x36170380] */
   7328     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C77DE: fmul dword ptr [0x36170464] */
   7329     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C77E4: fmul dword ptr [0x36174f7c] */
   7330     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C77EA: call 0x3615fd8c */ /* not lifted */
   7331     RECOMP_FLAGS_IN();
   7332     MEM32(edi + 0x64) = eax; /* 0x360C77EF: mov dword ptr [edi + 0x64], eax */
   7333     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C77F2: fld dword ptr [esi + 0xc] */
   7334     _st[0] += (double)*(float*)ADDR(0x36170408); /* 0x360C77F5: fadd dword ptr [0x36170408] */
   7335     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C77FB: fmul dword ptr [0x36174f80] */
   7336     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C7801: fcos  */
   7337     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C7803: fadd dword ptr [0x36170380] */
   7338     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7809: fmul dword ptr [0x36170464] */
   7339     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C780F: fmul dword ptr [0x36174f7c] */
   7340     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7815: call 0x3615fd8c */ /* not lifted */
   7341     RECOMP_FLAGS_IN();
   7342     MEM32(edi + 0x68) = eax; /* 0x360C781A: mov dword ptr [edi + 0x68], eax */
   7343     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C781D: fld dword ptr [esi + 0xc] */
   7344     _st[0] += (double)*(float*)ADDR(0x36170888); /* 0x360C7820: fadd dword ptr [0x36170888] */
   7345     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C7826: fmul dword ptr [0x36174f80] */
   7346     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C782C: fcos  */
   7347     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C782E: fadd dword ptr [0x36170380] */
   7348     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7834: fmul dword ptr [0x36170464] */
   7349     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C783A: fmul dword ptr [0x36174f7c] */
   7350     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7840: call 0x3615fd8c */ /* not lifted */
   7351     RECOMP_FLAGS_IN();
   7352     MEM32(edi + 0x6C) = eax; /* 0x360C7845: mov dword ptr [edi + 0x6c], eax */
   7353     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C7848: fld dword ptr [esi + 0xc] */
   7354     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C784B: fmul dword ptr [0x36174f80] */
   7355     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C7851: fcos  */
   7356     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C7853: fadd dword ptr [0x36170380] */
   7357     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7859: fmul dword ptr [0x36170464] */
   7358     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C785F: fmul dword ptr [0x36174f7c] */
   7359     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7865: call 0x3615fd8c */ /* not lifted */
   7360     RECOMP_FLAGS_IN();
   7361     MEM32(edi + 0x70) = eax; /* 0x360C786A: mov dword ptr [edi + 0x70], eax */
   7362     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C786D: fld dword ptr [esi + 0xc] */
   7363     _st[0] += (double)*(float*)ADDR(0x36171148); /* 0x360C7870: fadd dword ptr [0x36171148] */
   7364     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C7876: fmul dword ptr [0x36174f80] */
   7365     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C787C: fcos  */
   7366     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C787E: fadd dword ptr [0x36170380] */
   7367     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7884: fmul dword ptr [0x36170464] */
   7368     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C788A: fmul dword ptr [0x36174f7c] */
   7369     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7890: call 0x3615fd8c */ /* not lifted */
   7370     RECOMP_FLAGS_IN();
   7371     MEM32(edi + 0x74) = eax; /* 0x360C7895: mov dword ptr [edi + 0x74], eax */
   7372     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C7898: fld dword ptr [esi + 0xc] */
   7373     _st[0] += (double)*(float*)ADDR(0x36174F74); /* 0x360C789B: fadd dword ptr [0x36174f74] */
   7374     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C78A1: fmul dword ptr [0x36174f80] */
   7375     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C78A7: fcos  */
   7376     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C78A9: fadd dword ptr [0x36170380] */
   7377     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C78AF: fmul dword ptr [0x36170464] */
   7378     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C78B5: fmul dword ptr [0x36174f7c] */
   7379     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C78BB: call 0x3615fd8c */ /* not lifted */
   7380     RECOMP_FLAGS_IN();
   7381     MEM32(edi + 0x78) = eax; /* 0x360C78C0: mov dword ptr [edi + 0x78], eax */
   7382     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C78C3: fld dword ptr [esi + 0xc] */
   7383     _st[0] += (double)*(float*)ADDR(0x36174F68); /* 0x360C78C6: fadd dword ptr [0x36174f68] */
   7384     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C78CC: fmul dword ptr [0x36174f80] */
   7385     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C78D2: fcos  */
   7386     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C78D4: fadd dword ptr [0x36170380] */
   7387     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C78DA: fmul dword ptr [0x36170464] */
   7388     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C78E0: fmul dword ptr [0x36174f7c] */
   7389     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C78E6: call 0x3615fd8c */ /* not lifted */
   7390     RECOMP_FLAGS_IN();
   7391     MEM32(edi + 0x7C) = eax; /* 0x360C78EB: mov dword ptr [edi + 0x7c], eax */
   7392     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C78EE: fld dword ptr [esi + 0xc] */
   7393     _st[0] += (double)*(float*)ADDR(0x36174F64); /* 0x360C78F1: fadd dword ptr [0x36174f64] */
   7394     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C78F7: fmul dword ptr [0x36174f80] */
   7395     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C78FD: fcos  */
   7396     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C78FF: fadd dword ptr [0x36170380] */
   7397     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7905: fmul dword ptr [0x36170464] */
   7398     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C790B: fmul dword ptr [0x36174f7c] */
   7399     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C7911: call 0x3615fd8c */ /* not lifted */
   7400     RECOMP_FLAGS_IN();
   7401     MEM32(edi + 0x80) = eax; /* 0x360C7916: mov dword ptr [edi + 0x80], eax */
   7402     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C791C: fld dword ptr [esi + 0xc] */
   7403     _st[0] += (double)*(float*)ADDR(0x36174F6C); /* 0x360C791F: fadd dword ptr [0x36174f6c] */
   7404     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C7925: fmul dword ptr [0x36174f80] */
   7405     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C792B: fcos  */
   7406     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C792D: fadd dword ptr [0x36170380] */
   7407     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7933: fmul dword ptr [0x36170464] */
   7408     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C7939: fmul dword ptr [0x36174f7c] */
   7409     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C793F: call 0x3615fd8c */ /* not lifted */
   7410     RECOMP_FLAGS_IN();
   7411     MEM32(edi + 0x84) = eax; /* 0x360C7944: mov dword ptr [edi + 0x84], eax */
   7412     fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x360C794A: fld dword ptr [esi + 0xc] */
   7413     _st[0] += (double)*(float*)ADDR(0x36170408); /* 0x360C794D: fadd dword ptr [0x36170408] */
   7414     _st[0] *= (double)*(float*)ADDR(0x36174F80); /* 0x360C7953: fmul dword ptr [0x36174f80] */
   7415     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x360C7959: fcos  */
   7416     _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x360C795B: fadd dword ptr [0x36170380] */
   7417     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360C7961: fmul dword ptr [0x36170464] */
   7418     _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x360C7967: fmul dword ptr [0x36174f7c] */
   7419     RECOMP_ICALL(0x3615FD8Cu); /* 0x360C796D: call 0x3615fd8c */ /* not lifted */
   7420     RECOMP_FLAGS_IN();
   7421     MEM32(edi + 0x88) = eax; /* 0x360C7972: mov dword ptr [edi + 0x88], eax */
   7422     MEM8(edi + 0x120) = (uint8_t)(0); /* 0x360C7978: mov byte ptr [edi + 0x120], 0 */
   7423 L_360C797F:
   7424     edi = MEM32(ebp + 0x10); /* 0x360C797F: mov edi, dword ptr [ebp + 0x10] */
   7425     ebx = MEM32(ebp + 0xC); /* 0x360C7982: mov ebx, dword ptr [ebp + 0xc] */
   7426     PUSH32(esp, edi); /* 0x360C7985: push edi */
   7427     PUSH32(esp, ebx); /* 0x360C7986: push ebx */
   7428     ecx = esi; /* 0x360C7987: mov ecx, esi */
   7429     RECOMP_ICALL(0x3600C340u); /* 0x360C7989: call 0x3600c340 */ /* not lifted */
   7430     RECOMP_FLAGS_IN();
   7431     RECOMP_ICALL(0x3600C230u); /* 0x360C798E: call 0x3600c230 */ /* not lifted */
   7432     RECOMP_FLAGS_IN();
   7433     ecx = MEM32(eax + 0x5C); /* 0x360C7993: mov ecx, dword ptr [eax + 0x5c] */
   7434     PUSH32(esp, edi); /* 0x360C7996: push edi */
   7435     PUSH32(esp, ebx); /* 0x360C7997: push ebx */
   7436     MEM32(ebp + 0x10) = ecx; /* 0x360C7998: mov dword ptr [ebp + 0x10], ecx */
   7437     RECOMP_ICALL(0x3600C230u); /* 0x360C799B: call 0x3600c230 */ /* not lifted */
   7438     RECOMP_FLAGS_IN();
   7439     ecx = eax; /* 0x360C79A0: mov ecx, eax */
   7440     RECOMP_ICALL(0x3600C610u); /* 0x360C79A2: call 0x3600c610 */ /* not lifted */
   7441     RECOMP_FLAGS_IN();
   7442     _st[0] = _st[0] / (double)(int32_t)MEM32(ebp + 0x10); /* 0x360C79A7: fidiv dword ptr [ebp + 0x10] */
   7443     edx = MEM32(ebp + 0x8); /* 0x360C79AA: mov edx, dword ptr [ebp + 8] */
   7444     PUSH32(esp, ecx); /* 0x360C79AD: push ecx */
   7445     ecx = MEM32(esi); /* 0x360C79AE: mov ecx, dword ptr [esi] */
   7446     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x360C79B0: fstp dword ptr [esp] */
   7447     PUSH32(esp, edx); /* 0x360C79B3: push edx */
   7448     RECOMP_ICALL(MEM32(0x3616F3E4)); /* 0x360C79B4: call dword ptr [0x3616f3e4] */
   7449     RECOMP_FLAGS_IN();
   7450     ecx = MEM32(esi); /* 0x360C79BA: mov ecx, dword ptr [esi] */
   7451     RECOMP_ICALL(MEM32(0x3616F3E0)); /* 0x360C79BC: call dword ptr [0x3616f3e0] */
   7452     RECOMP_FLAGS_IN();
   7453     PUSH32(esp, eax); /* 0x360C79C2: push eax */
   7454     ecx = esi; /* 0x360C79C3: mov ecx, esi */
   7455     RECOMP_ICALL(0x360C7E60u); /* 0x360C79C5: call 0x360c7e60 */ /* not lifted */
   7456     RECOMP_FLAGS_IN();
   7457     edi = MEM32(ebp + (-0x28)); /* 0x360C79CA: mov edi, dword ptr [ebp - 0x28] */
   7458     esi = MEM32(edi); /* 0x360C79CD: mov esi, dword ptr [edi] */
   7459     /* cmp esi, edi */ /* 0x360C79CF: cmp esi, edi */
   7460     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7462     _flag_k = FK_CMP;
   7463     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C79FA; /* 0x360C79D1: je 0x360c79fa */
   7464 L_360C79D3:
   7465     eax = esi; /* 0x360C79D3: mov eax, esi */
   7466     ecx = MEM32(eax + 0x4); /* 0x360C79D5: mov ecx, dword ptr [eax + 4] */
   7467     edx = MEM32(eax); /* 0x360C79D8: mov edx, dword ptr [eax] */
   7468     esi = MEM32(esi); /* 0x360C79DA: mov esi, dword ptr [esi] */
   7469     MEM32(ecx) = edx; /* 0x360C79DC: mov dword ptr [ecx], edx */
   7470     ecx = MEM32(eax); /* 0x360C79DE: mov ecx, dword ptr [eax] */
   7471     edx = MEM32(eax + 0x4); /* 0x360C79E0: mov edx, dword ptr [eax + 4] */
   7472     PUSH32(esp, eax); /* 0x360C79E3: push eax */
   7473     MEM32(ecx + 0x4) = edx; /* 0x360C79E4: mov dword ptr [ecx + 4], edx */
   7474     RECOMP_ICALL(0x3615FCC4u); /* 0x360C79E7: call 0x3615fcc4 */ /* not lifted */
   7475     RECOMP_FLAGS_IN();
   7476     ecx = MEM32(ebp + (-0x24)); /* 0x360C79EC: mov ecx, dword ptr [ebp - 0x24] */
   7477     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7478     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7479     esp = esp + 4; /* 0x360C79EF: add esp, 4 */
   7480     _flag_k = FK_ADD;
   7481     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7482     ecx = ecx - 1; /* 0x360C79F2: dec ecx */
   7483     _flag_k = FK_DEC;
   7484     /* cmp esi, edi */ /* 0x360C79F3: cmp esi, edi */
   7485     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi);
   7486     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7487     _flag_k = FK_CMP;
   7488     MEM32(ebp + (-0x24)) = ecx; /* 0x360C79F5: mov dword ptr [ebp - 0x24], ecx */
   7489     RECOMP_BACKEDGE();
   7490     if (CMP_NE(_flag_a, _flag_b)) goto L_360C79D3; /* 0x360C79F8: jne 0x360c79d3 */
   7491 L_360C79FA:
   7492     eax = MEM32(ebp + (-0x28)); /* 0x360C79FA: mov eax, dword ptr [ebp - 0x28] */
   7493     PUSH32(esp, eax); /* 0x360C79FD: push eax */
   7494     RECOMP_ICALL(0x3615FCC4u); /* 0x360C79FE: call 0x3615fcc4 */ /* not lifted */
   7495     RECOMP_FLAGS_IN();
   7496     ecx = MEM32(ebp + (-0xC)); /* 0x360C7A03: mov ecx, dword ptr [ebp - 0xc] */
   7497     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7498     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7499     esp = esp + 4; /* 0x360C7A06: add esp, 4 */
   7500     _flag_k = FK_ADD;
   7501     edi = POP32_VAL(esp); /* 0x360C7A09: pop edi */
   7502     esi = POP32_VAL(esp); /* 0x360C7A0A: pop esi */
   7503     ebx = POP32_VAL(esp); /* 0x360C7A0B: pop ebx */
   7504     MEM32(FS_BASE + (0)) = ecx; /* 0x360C7A0C: mov dword ptr fs:[0], ecx */
   7505     esp = ebp; /* 0x360C7A13: mov esp, ebp */
   7506     ebp = POP32_VAL(esp); /* 0x360C7A15: pop ebp */
   7507     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360C7A16: ret 0xc */
   7508     RECOMP_REGS_OUT();
   7509 }
   7510 
   7511 void sub_360C7A20(void) {
   7512     int _fpu_cmp = 0;
   7513     uint32_t _cf = 0;
   7514     int _df = 1;
   7515     uint32_t _flag_k = FK_NONE;
   7516     uint32_t _flag_a = 0, _flag_b = 0;
   7517     uint32_t _itail_tgt = 0;
   7518     RECOMP_REGS_LOCALS
   7519     RECOMP_ENTER(0x360C7A20u);
   7520 
   7521 L_360C7A20:
   7522     PUSH32(esp, ebp); /* 0x360C7A20: push ebp */
   7523     ebp = esp; /* 0x360C7A21: mov ebp, esp */
   7524     eax = MEM32(ecx); /* 0x360C7A23: mov eax, dword ptr [ecx] */
   7525     PUSH32(esp, esi); /* 0x360C7A25: push esi */
   7526     esi = MEM32(eax + 0x718); /* 0x360C7A26: mov esi, dword ptr [eax + 0x718] */
   7527     /* test esi, esi */ /* 0x360C7A2C: test esi, esi */
   7528     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   7529     _cf = 0;
   7530     _flag_k = FK_TEST;
   7531     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7A45; /* 0x360C7A2E: je 0x360c7a45 */
   7532 L_360C7A30:
   7533     edx = MEM32(ebp + 0x8); /* 0x360C7A30: mov edx, dword ptr [ebp + 8] */
   7534     PUSH32(esp, edx); /* 0x360C7A33: push edx */
   7535     RECOMP_ICALL(0x360C7BE0u); /* 0x360C7A34: call 0x360c7be0 */ /* not lifted */
   7536     RECOMP_FLAGS_IN();
   7537     eax = MEM32(esi + 0x134); /* 0x360C7A39: mov eax, dword ptr [esi + 0x134] */
   7538     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7539     eax = eax - 1; /* 0x360C7A3F: dec eax */
   7540     _flag_k = FK_DEC;
   7541     esi = POP32_VAL(esp); /* 0x360C7A40: pop esi */
   7542     ebp = POP32_VAL(esp); /* 0x360C7A41: pop ebp */
   7543     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7A42: ret 4 */
   7544 L_360C7A45:
   7545     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7546     eax = eax | 0xFFFFFFFFu; /* 0x360C7A45: or eax, 0xffffffff */
   7547     _cf = 0;
   7548     _flag_k = FK_TEST;
   7549     esi = POP32_VAL(esp); /* 0x360C7A48: pop esi */
   7550     ebp = POP32_VAL(esp); /* 0x360C7A49: pop ebp */
   7551     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7A4A: ret 4 */
   7552     RECOMP_REGS_OUT();
   7553 }
   7554 
   7555 void sub_360C7A50(void) {
   7556     int _fpu_cmp = 0;
   7557     uint32_t _cf = 0;
   7558     int _df = 1;
   7559     uint32_t _flag_k = FK_NONE;
   7560     uint32_t _flag_a = 0, _flag_b = 0;
   7561     uint32_t _itail_tgt = 0;
   7562     RECOMP_REGS_LOCALS
   7563     RECOMP_ENTER(0x360C7A50u);
   7564 
   7565 L_360C7A50:
   7566     eax = MEM32(ecx); /* 0x360C7A50: mov eax, dword ptr [ecx] */
   7567     eax = MEM32(eax + 0x718); /* 0x360C7A52: mov eax, dword ptr [eax + 0x718] */
   7568     /* test eax, eax */ /* 0x360C7A58: test eax, eax */
   7569     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7570     _cf = 0;
   7571     _flag_k = FK_TEST;
   7572     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7A63; /* 0x360C7A5A: je 0x360c7a63 */
   7573 L_360C7A5C:
   7574     eax = MEM32(eax + 0x134); /* 0x360C7A5C: mov eax, dword ptr [eax + 0x134] */
   7575     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7A62: ret  */
   7576 L_360C7A63:
   7577     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7578     eax = eax | 0xFFFFFFFFu; /* 0x360C7A63: or eax, 0xffffffff */
   7579     _cf = 0;
   7580     _flag_k = FK_TEST;
   7581     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7A66: ret  */
   7582     RECOMP_REGS_OUT();
   7583 }
   7584 
   7585 void sub_360C7A70(void) {
   7586     int _fpu_cmp = 0;
   7587     uint32_t _cf = 0;
   7588     int _df = 1;
   7589     uint32_t _flag_k = FK_NONE;
   7590     uint32_t _flag_a = 0, _flag_b = 0;
   7591     uint32_t _itail_tgt = 0;
   7592     RECOMP_REGS_LOCALS
   7593     RECOMP_ENTER(0x360C7A70u);
   7594 
   7595 L_360C7A70:
   7596     PUSH32(esp, ebp); /* 0x360C7A70: push ebp */
   7597     ebp = esp; /* 0x360C7A71: mov ebp, esp */
   7598     eax = MEM32(ebp + 0x8); /* 0x360C7A73: mov eax, dword ptr [ebp + 8] */
   7599     /* cmp eax, 0xFFFFFFFFu */ /* 0x360C7A76: cmp eax, -1 */
   7600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7602     _flag_k = FK_CMP;
   7603     if (CMP_EQ(_flag_a, _flag_b)) goto L_360C7AE9; /* 0x360C7A79: je 0x360c7ae9 */
   7604 L_360C7A7B:
   7605     ecx = MEM32(ecx); /* 0x360C7A7B: mov ecx, dword ptr [ecx] */
   7606     ecx = MEM32(ecx + 0x718); /* 0x360C7A7D: mov ecx, dword ptr [ecx + 0x718] */
   7607     /* test ecx, ecx */ /* 0x360C7A83: test ecx, ecx */
   7608     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7609     _cf = 0;
   7610     _flag_k = FK_TEST;
   7611     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7AE9; /* 0x360C7A85: je 0x360c7ae9 */
   7612 L_360C7A87:
   7613     fp_push(*(float*)&MEM32(ebp + 0x14)); /* 0x360C7A87: fld dword ptr [ebp + 0x14] */
   7614     PUSH32(esp, esi); /* 0x360C7A8A: push esi */
   7615     esi = MEM32(ebp + 0xC); /* 0x360C7A8B: mov esi, dword ptr [ebp + 0xc] */
   7616     PUSH32(esp, edi); /* 0x360C7A8E: push edi */
   7617     edi = MEM32(esi); /* 0x360C7A8F: mov edi, dword ptr [esi] */
   7618     edx = eax + eax * 2 + 0x4E; /* 0x360C7A91: lea edx, [eax + eax*2 + 0x4e] */
   7619     edx = ecx + edx * 4; /* 0x360C7A95: lea edx, [ecx + edx*4] */
   7620     MEM32(edx) = edi; /* 0x360C7A98: mov dword ptr [edx], edi */
   7621     edi = MEM32(esi + 0x4); /* 0x360C7A9A: mov edi, dword ptr [esi + 4] */
   7622     MEM32(edx + 0x4) = edi; /* 0x360C7A9D: mov dword ptr [edx + 4], edi */
   7623     esi = MEM32(esi + 0x8); /* 0x360C7AA0: mov esi, dword ptr [esi + 8] */
   7624     MEM32(edx + 0x8) = esi; /* 0x360C7AA3: mov dword ptr [edx + 8], esi */
   7625     esi = MEM32(ebp + 0x10); /* 0x360C7AA6: mov esi, dword ptr [ebp + 0x10] */
   7626     edi = MEM32(esi); /* 0x360C7AA9: mov edi, dword ptr [esi] */
   7627     edx = eax + eax * 2 + 0x17A; /* 0x360C7AAB: lea edx, [eax + eax*2 + 0x17a] */
   7628     edx = ecx + edx * 4; /* 0x360C7AB2: lea edx, [ecx + edx*4] */
   7629     MEM32(edx) = edi; /* 0x360C7AB5: mov dword ptr [edx], edi */
   7630     edi = MEM32(esi + 0x4); /* 0x360C7AB7: mov edi, dword ptr [esi + 4] */
   7631     MEM32(edx + 0x4) = edi; /* 0x360C7ABA: mov dword ptr [edx + 4], edi */
   7632     esi = MEM32(esi + 0x8); /* 0x360C7ABD: mov esi, dword ptr [esi + 8] */
   7633     MEM32(edx + 0x8) = esi; /* 0x360C7AC0: mov dword ptr [edx + 8], esi */
   7634     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + eax * 4 + 0xA98) = _v; } /* 0x360C7AC3: fstp dword ptr [ecx + eax*4 + 0xa98] */
   7635     edx = MEM32(ebp + 0x18); /* 0x360C7ACA: mov edx, dword ptr [ebp + 0x18] */
   7636     eax = eax + eax * 2; /* 0x360C7ACD: lea eax, [eax + eax*2] */
   7637     ecx = ecx + eax * 4 + 0xC28; /* 0x360C7AD0: lea ecx, [ecx + eax*4 + 0xc28] */
   7638     eax = MEM32(edx); /* 0x360C7AD7: mov eax, dword ptr [edx] */
   7639     MEM32(ecx) = eax; /* 0x360C7AD9: mov dword ptr [ecx], eax */
   7640     eax = MEM32(edx + 0x4); /* 0x360C7ADB: mov eax, dword ptr [edx + 4] */
   7641     MEM32(ecx + 0x4) = eax; /* 0x360C7ADE: mov dword ptr [ecx + 4], eax */
   7642     edx = MEM32(edx + 0x8); /* 0x360C7AE1: mov edx, dword ptr [edx + 8] */
   7643     edi = POP32_VAL(esp); /* 0x360C7AE4: pop edi */
   7644     MEM32(ecx + 0x8) = edx; /* 0x360C7AE5: mov dword ptr [ecx + 8], edx */
   7645     esi = POP32_VAL(esp); /* 0x360C7AE8: pop esi */
   7646 L_360C7AE9:
   7647     ebp = POP32_VAL(esp); /* 0x360C7AE9: pop ebp */
   7648     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x360C7AEA: ret 0x14 */
   7649     RECOMP_REGS_OUT();
   7650 }
   7651 
   7652 void sub_360C7AF0(void) {
   7653     int _fpu_cmp = 0;
   7654     uint32_t _cf = 0;
   7655     int _df = 1;
   7656     uint32_t _flag_k = FK_NONE;
   7657     uint32_t _flag_a = 0, _flag_b = 0;
   7658     uint32_t _itail_tgt = 0;
   7659     RECOMP_REGS_LOCALS
   7660     RECOMP_ENTER(0x360C7AF0u);
   7661 
   7662 L_360C7AF0:
   7663     eax = MEM32(ecx); /* 0x360C7AF0: mov eax, dword ptr [ecx] */
   7664     eax = MEM32(eax + 0x718); /* 0x360C7AF2: mov eax, dword ptr [eax + 0x718] */
   7665     /* test eax, eax */ /* 0x360C7AF8: test eax, eax */
   7666     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7667     _cf = 0;
   7668     _flag_k = FK_TEST;
   7669     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7B03; /* 0x360C7AFA: je 0x360c7b03 */
   7670 L_360C7AFC:
   7671     SET_LO8(eax, MEM8(eax + 0x131)); /* 0x360C7AFC: mov al, byte ptr [eax + 0x131] */
   7672     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7B02: ret  */
   7673 L_360C7B03:
   7674     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7675     SET_LO8(eax, 0); /* 0x360C7B03: xor al, al */
   7676     _cf = 0;
   7677     _flag_k = FK_NARROW(FK_TEST, 24);
   7678     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7B05: ret  */
   7679     RECOMP_REGS_OUT();
   7680 }
   7681 
   7682 void sub_360C7B10(void) {
   7683     int _fpu_cmp = 0;
   7684     uint32_t _cf = 0;
   7685     int _df = 1;
   7686     uint32_t _flag_k = FK_NONE;
   7687     uint32_t _flag_a = 0, _flag_b = 0;
   7688     uint32_t _itail_tgt = 0;
   7689     RECOMP_REGS_LOCALS
   7690     RECOMP_ENTER(0x360C7B10u);
   7691 
   7692 L_360C7B10:
   7693     eax = MEM32(ecx); /* 0x360C7B10: mov eax, dword ptr [ecx] */
   7694     ecx = MEM32(eax + 0x718); /* 0x360C7B12: mov ecx, dword ptr [eax + 0x718] */
   7695     /* test ecx, ecx */ /* 0x360C7B18: test ecx, ecx */
   7696     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7697     _cf = 0;
   7698     _flag_k = FK_TEST;
   7699     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7B2E; /* 0x360C7B1A: je 0x360c7b2e */
   7700 L_360C7B1C:
   7701     SET_LO8(eax, MEM8(ecx + 0x131)); /* 0x360C7B1C: mov al, byte ptr [ecx + 0x131] */
   7702     /* test LO8(eax), LO8(eax) */ /* 0x360C7B22: test al, al */
   7703     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7704     _cf = 0;
   7705     _flag_k = FK_NARROW(FK_TEST, 24);
   7706     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x360C7B24: sete al */
   7707     MEM8(ecx + 0x131) = (uint8_t)(LO8(eax)); /* 0x360C7B27: mov byte ptr [ecx + 0x131], al */
   7708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7B2D: ret  */
   7709 L_360C7B2E:
   7710     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7711     SET_LO8(eax, 0); /* 0x360C7B2E: xor al, al */
   7712     _cf = 0;
   7713     _flag_k = FK_NARROW(FK_TEST, 24);
   7714     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C7B30: ret  */
   7715     RECOMP_REGS_OUT();
   7716 }
   7717 
   7718 void sub_360C7B40(void) {
   7719     int _fpu_cmp = 0;
   7720     uint32_t _cf = 0;
   7721     int _df = 1;
   7722     uint32_t _flag_k = FK_NONE;
   7723     uint32_t _flag_a = 0, _flag_b = 0;
   7724     uint32_t _itail_tgt = 0;
   7725     RECOMP_REGS_LOCALS
   7726     RECOMP_ENTER(0x360C7B40u);
   7727 
   7728 L_360C7B40:
   7729     PUSH32(esp, ebp); /* 0x360C7B40: push ebp */
   7730     ebp = esp; /* 0x360C7B41: mov ebp, esp */
   7731     eax = MEM32(ebp + 0x8); /* 0x360C7B43: mov eax, dword ptr [ebp + 8] */
   7732     ecx = MEM32(ecx); /* 0x360C7B46: mov ecx, dword ptr [ecx] */
   7733     PUSH32(esp, eax); /* 0x360C7B48: push eax */
   7734     RECOMP_ICALL(MEM32(0x3616F3E8)); /* 0x360C7B49: call dword ptr [0x3616f3e8] */
   7735     RECOMP_FLAGS_IN();
   7736     ebp = POP32_VAL(esp); /* 0x360C7B4F: pop ebp */
   7737     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7B50: ret 4 */
   7738     RECOMP_REGS_OUT();
   7739 }
   7740 
   7741 void sub_360C7B60(void) {
   7742     int _fpu_cmp = 0;
   7743     uint32_t _cf = 0;
   7744     int _df = 1;
   7745     uint32_t _flag_k = FK_NONE;
   7746     uint32_t _flag_a = 0, _flag_b = 0;
   7747     uint32_t _itail_tgt = 0;
   7748     RECOMP_REGS_LOCALS
   7749     RECOMP_ENTER(0x360C7B60u);
   7750 
   7751 L_360C7B60:
   7752     PUSH32(esp, ebp); /* 0x360C7B60: push ebp */
   7753     ebp = esp; /* 0x360C7B61: mov ebp, esp */
   7754     eax = MEM32(ebp + 0x8); /* 0x360C7B63: mov eax, dword ptr [ebp + 8] */
   7755     ecx = MEM32(ecx); /* 0x360C7B66: mov ecx, dword ptr [ecx] */
   7756     PUSH32(esp, eax); /* 0x360C7B68: push eax */
   7757     RECOMP_ICALL(MEM32(0x3616F3EC)); /* 0x360C7B69: call dword ptr [0x3616f3ec] */
   7758     RECOMP_FLAGS_IN();
   7759     ebp = POP32_VAL(esp); /* 0x360C7B6F: pop ebp */
   7760     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7B70: ret 4 */
   7761     RECOMP_REGS_OUT();
   7762 }
   7763 
   7764 void sub_360C7B80(void) {
   7765     int _fpu_cmp = 0;
   7766     uint32_t _cf = 0;
   7767     int _df = 1;
   7768     uint32_t _flag_k = FK_NONE;
   7769     uint32_t _flag_a = 0, _flag_b = 0;
   7770     uint32_t _itail_tgt = 0;
   7771     RECOMP_REGS_LOCALS
   7772     RECOMP_ENTER(0x360C7B80u);
   7773 
   7774 L_360C7B80:
   7775     PUSH32(esp, ebp); /* 0x360C7B80: push ebp */
   7776     ebp = esp; /* 0x360C7B81: mov ebp, esp */
   7777     eax = MEM32(ebp + 0x8); /* 0x360C7B83: mov eax, dword ptr [ebp + 8] */
   7778     ecx = MEM32(ecx); /* 0x360C7B86: mov ecx, dword ptr [ecx] */
   7779     PUSH32(esp, eax); /* 0x360C7B88: push eax */
   7780     RECOMP_ICALL(MEM32(0x3616F3F0)); /* 0x360C7B89: call dword ptr [0x3616f3f0] */
   7781     RECOMP_FLAGS_IN();
   7782     ebp = POP32_VAL(esp); /* 0x360C7B8F: pop ebp */
   7783     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7B90: ret 4 */
   7784     RECOMP_REGS_OUT();
   7785 }
   7786 
   7787 void sub_360C7BA0(void) {
   7788     int _fpu_cmp = 0;
   7789     uint32_t _cf = 0;
   7790     int _df = 1;
   7791     uint32_t _flag_k = FK_NONE;
   7792     uint32_t _flag_a = 0, _flag_b = 0;
   7793     uint32_t _itail_tgt = 0;
   7794     RECOMP_REGS_LOCALS
   7795     RECOMP_ENTER(0x360C7BA0u);
   7796 
   7797 L_360C7BA0:
   7798     PUSH32(esp, ebp); /* 0x360C7BA0: push ebp */
   7799     ebp = esp; /* 0x360C7BA1: mov ebp, esp */
   7800     eax = MEM32(ebp + 0x8); /* 0x360C7BA3: mov eax, dword ptr [ebp + 8] */
   7801     ecx = MEM32(ecx); /* 0x360C7BA6: mov ecx, dword ptr [ecx] */
   7802     PUSH32(esp, eax); /* 0x360C7BA8: push eax */
   7803     RECOMP_ICALL(MEM32(0x3616F3F4)); /* 0x360C7BA9: call dword ptr [0x3616f3f4] */
   7804     RECOMP_FLAGS_IN();
   7805     ebp = POP32_VAL(esp); /* 0x360C7BAF: pop ebp */
   7806     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7BB0: ret 4 */
   7807     RECOMP_REGS_OUT();
   7808 }
   7809 
   7810 void sub_360C7BC0(void) {
   7811     int _fpu_cmp = 0;
   7812     uint32_t _cf = 0;
   7813     int _df = 1;
   7814     uint32_t _flag_k = FK_NONE;
   7815     uint32_t _flag_a = 0, _flag_b = 0;
   7816     uint32_t _itail_tgt = 0;
   7817     RECOMP_REGS_LOCALS
   7818     RECOMP_ENTER(0x360C7BC0u);
   7819 
   7820 L_360C7BC0:
   7821     PUSH32(esp, ebp); /* 0x360C7BC0: push ebp */
   7822     ebp = esp; /* 0x360C7BC1: mov ebp, esp */
   7823     eax = MEM32(ebp + 0x8); /* 0x360C7BC3: mov eax, dword ptr [ebp + 8] */
   7824     ecx = MEM32(ecx); /* 0x360C7BC6: mov ecx, dword ptr [ecx] */
   7825     PUSH32(esp, eax); /* 0x360C7BC8: push eax */
   7826     RECOMP_ICALL(MEM32(0x3616F3F8)); /* 0x360C7BC9: call dword ptr [0x3616f3f8] */
   7827     RECOMP_FLAGS_IN();
   7828     ebp = POP32_VAL(esp); /* 0x360C7BCF: pop ebp */
   7829     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7BD0: ret 4 */
   7830     RECOMP_REGS_OUT();
   7831 }
   7832 
   7833 void sub_360C7BE0(void) {
   7834     int _fpu_cmp = 0;
   7835     uint32_t _cf = 0;
   7836     int _df = 1;
   7837     uint32_t _flag_k = FK_NONE;
   7838     uint32_t _flag_a = 0, _flag_b = 0;
   7839     uint32_t _itail_tgt = 0;
   7840     RECOMP_REGS_LOCALS
   7841     RECOMP_ENTER(0x360C7BE0u);
   7842 
   7843 L_360C7BE0:
   7844     PUSH32(esp, ebp); /* 0x360C7BE0: push ebp */
   7845     ebp = esp; /* 0x360C7BE1: mov ebp, esp */
   7846     eax = MEM32(ebp + 0x8); /* 0x360C7BE3: mov eax, dword ptr [ebp + 8] */
   7847     PUSH32(esp, eax); /* 0x360C7BE6: push eax */
   7848     RECOMP_ICALL(0x360C7E60u); /* 0x360C7BE7: call 0x360c7e60 */ /* not lifted */
   7849     RECOMP_FLAGS_IN();
   7850     ebp = POP32_VAL(esp); /* 0x360C7BEC: pop ebp */
   7851     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7BED: ret 4 */
   7852     RECOMP_REGS_OUT();
   7853 }
   7854 
   7855 void sub_360C7BF0(void) {
   7856     int _fpu_cmp = 0;
   7857     uint32_t _cf = 0;
   7858     int _df = 1;
   7859     uint32_t _flag_k = FK_NONE;
   7860     uint32_t _flag_a = 0, _flag_b = 0;
   7861     uint32_t _itail_tgt = 0;
   7862     RECOMP_REGS_LOCALS
   7863     RECOMP_ENTER(0x360C7BF0u);
   7864 
   7865 L_360C7BF0:
   7866     PUSH32(esp, ebp); /* 0x360C7BF0: push ebp */
   7867     ebp = esp; /* 0x360C7BF1: mov ebp, esp */
   7868     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   7869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7870     esp = esp - 0x2Cu; /* 0x360C7BF3: sub esp, 0x2c */
   7871     _flag_k = FK_CMP;
   7872     PUSH32(esp, ebx); /* 0x360C7BF6: push ebx */
   7873     ebx = ecx; /* 0x360C7BF7: mov ebx, ecx */
   7874     ecx = MEM32(ebx + 0x4); /* 0x360C7BF9: mov ecx, dword ptr [ebx + 4] */
   7875     /* test ecx, ecx */ /* 0x360C7BFC: test ecx, ecx */
   7876     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7877     _cf = 0;
   7878     _flag_k = FK_TEST;
   7879     PUSH32(esp, esi); /* 0x360C7BFE: push esi */
   7880     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7CBF; /* 0x360C7BFF: je 0x360c7cbf */
   7881 L_360C7C05:
   7882     PUSH32(esp, edi); /* 0x360C7C05: push edi */
   7883     edi = MEM32(0x361700C0); /* 0x360C7C06: mov edi, dword ptr [0x361700c0] */
   7884     MEM32(ebp + (-0x14)) = 0; /* 0x360C7C0C: mov dword ptr [ebp - 0x14], 0 */
   7885     MEM32(ebp + (-0x10)) = 0; /* 0x360C7C13: mov dword ptr [ebp - 0x10], 0 */
   7886     MEM32(ebp + (-0xC)) = 0; /* 0x360C7C1A: mov dword ptr [ebp - 0xc], 0 */
   7887     MEM32(ebp + (-0x20)) = 0; /* 0x360C7C21: mov dword ptr [ebp - 0x20], 0 */
   7888     MEM32(ebp + (-0x1C)) = 0; /* 0x360C7C28: mov dword ptr [ebp - 0x1c], 0 */
   7889     MEM32(ebp + (-0x18)) = 0; /* 0x360C7C2F: mov dword ptr [ebp - 0x18], 0 */
   7890     RECOMP_ICALL(edi); /* 0x360C7C36: call edi */
   7891     RECOMP_FLAGS_IN();
   7892     esi = MEM32(ebp + 0x8); /* 0x360C7C38: mov esi, dword ptr [ebp + 8] */
   7893     edx = MEM32(eax); /* 0x360C7C3B: mov edx, dword ptr [eax] */
   7894     PUSH32(esp, 0); /* 0x360C7C3D: push 0 */
   7895     PUSH32(esp, 0); /* 0x360C7C3F: push 0 */
   7896     PUSH32(esp, esi); /* 0x360C7C41: push esi */
   7897     ecx = eax; /* 0x360C7C42: mov ecx, eax */
   7898     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360C7C44: call dword ptr [edx + 0x20] */
   7899     RECOMP_FLAGS_IN();
   7900     ecx = MEM32(ebx + 0x4); /* 0x360C7C47: mov ecx, dword ptr [ebx + 4] */
   7901     RECOMP_ICALL(edi); /* 0x360C7C4A: call edi */
   7902     RECOMP_FLAGS_IN();
   7903     edx = MEM32(eax); /* 0x360C7C4C: mov edx, dword ptr [eax] */
   7904     PUSH32(esp, 0); /* 0x360C7C4E: push 0 */
   7905     PUSH32(esp, 0); /* 0x360C7C50: push 0 */
   7906     ecx = ebp + (-0x20); /* 0x360C7C52: lea ecx, [ebp - 0x20] */
   7907     PUSH32(esp, ecx); /* 0x360C7C55: push ecx */
   7908     ecx = ebp + (-0x14); /* 0x360C7C56: lea ecx, [ebp - 0x14] */
   7909     PUSH32(esp, ecx); /* 0x360C7C59: push ecx */
   7910     PUSH32(esp, esi); /* 0x360C7C5A: push esi */
   7911     ecx = eax; /* 0x360C7C5B: mov ecx, eax */
   7912     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360C7C5D: call dword ptr [edx + 4] */
   7913     RECOMP_FLAGS_IN();
   7914     eax = MEM32(ebp + (-0x14)); /* 0x360C7C60: mov eax, dword ptr [ebp - 0x14] */
   7915     ecx = MEM32(ebp + (-0x10)); /* 0x360C7C63: mov ecx, dword ptr [ebp - 0x10] */
   7916     edx = esi; /* 0x360C7C66: mov edx, esi */
   7917     MEM32(edx) = eax; /* 0x360C7C68: mov dword ptr [edx], eax */
   7918     eax = MEM32(ebp + (-0xC)); /* 0x360C7C6A: mov eax, dword ptr [ebp - 0xc] */
   7919     MEM32(edx + 0x4) = ecx; /* 0x360C7C6D: mov dword ptr [edx + 4], ecx */
   7920     MEM32(edx + 0x8) = eax; /* 0x360C7C70: mov dword ptr [edx + 8], eax */
   7921     ecx = ebp + (-0x8); /* 0x360C7C73: lea ecx, [ebp - 8] */
   7922     PUSH32(esp, ecx); /* 0x360C7C76: push ecx */
   7923     edx = ebp + (-0x2C); /* 0x360C7C77: lea edx, [ebp - 0x2c] */
   7924     PUSH32(esp, edx); /* 0x360C7C7A: push edx */
   7925     eax = ebp + (-0x4); /* 0x360C7C7B: lea eax, [ebp - 4] */
   7926     PUSH32(esp, eax); /* 0x360C7C7E: push eax */
   7927     MEM32(ebp + (-0x4)) = 0; /* 0x360C7C7F: mov dword ptr [ebp - 4], 0 */
   7928     MEM32(ebp + (-0x2C)) = 0; /* 0x360C7C86: mov dword ptr [ebp - 0x2c], 0 */
   7929     MEM32(ebp + (-0x28)) = 0; /* 0x360C7C8D: mov dword ptr [ebp - 0x28], 0 */
   7930     MEM32(ebp + (-0x24)) = 0; /* 0x360C7C94: mov dword ptr [ebp - 0x24], 0 */
   7931     MEM32(ebp + (-0x8)) = 0; /* 0x360C7C9B: mov dword ptr [ebp - 8], 0 */
   7932     RECOMP_ICALL(MEM32(0x3616F3FC)); /* 0x360C7CA2: call dword ptr [0x3616f3fc] */
   7933     RECOMP_FLAGS_IN();
   7934     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x360C7CA8: fld dword ptr [esi + 4] */
   7935     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x360C7CAB: fcomp dword ptr [ebp - 4] */
   7936     fp_pop();
   7937     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7939     esp = esp + 0xCu; /* 0x360C7CAE: add esp, 0xc */
   7940     _flag_k = FK_ADD;
   7941     edi = POP32_VAL(esp); /* 0x360C7CB1: pop edi */
   7942     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C7CB2: fnstsw ax */
   7943     /* test HI8(eax), 1 */ /* 0x360C7CB4: test ah, 1 */
   7944     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   7945     _cf = 0;
   7946     _flag_k = FK_NARROW(FK_TEST, 24);
   7947     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7CBF; /* 0x360C7CB7: je 0x360c7cbf */
   7948 L_360C7CB9:
   7949     ecx = MEM32(ebp + (-0x4)); /* 0x360C7CB9: mov ecx, dword ptr [ebp - 4] */
   7950     MEM32(esi + 0x4) = ecx; /* 0x360C7CBC: mov dword ptr [esi + 4], ecx */
   7951 L_360C7CBF:
   7952     esi = POP32_VAL(esp); /* 0x360C7CBF: pop esi */
   7953     ebx = POP32_VAL(esp); /* 0x360C7CC0: pop ebx */
   7954     esp = ebp; /* 0x360C7CC1: mov esp, ebp */
   7955     ebp = POP32_VAL(esp); /* 0x360C7CC3: pop ebp */
   7956     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7CC4: ret 4 */
   7957     RECOMP_REGS_OUT();
   7958 }
   7959 
   7960 void sub_360C7C36(void) {
   7961     int _fpu_cmp = 0;
   7962     uint32_t _cf = 0;
   7963     int _df = 1;
   7964     uint32_t _flag_k = FK_NONE;
   7965     uint32_t _flag_a = 0, _flag_b = 0;
   7966     uint32_t _itail_tgt = 0;
   7967     RECOMP_REGS_LOCALS
   7968     RECOMP_ENTER(0x360C7C36u);
   7969 
   7970 L_360C7C36:
   7971     RECOMP_ICALL(edi); /* 0x360C7C36: call edi */
   7972     RECOMP_FLAGS_IN();
   7973     esi = MEM32(ebp + 0x8); /* 0x360C7C38: mov esi, dword ptr [ebp + 8] */
   7974     edx = MEM32(eax); /* 0x360C7C3B: mov edx, dword ptr [eax] */
   7975     PUSH32(esp, 0); /* 0x360C7C3D: push 0 */
   7976     PUSH32(esp, 0); /* 0x360C7C3F: push 0 */
   7977     PUSH32(esp, esi); /* 0x360C7C41: push esi */
   7978     ecx = eax; /* 0x360C7C42: mov ecx, eax */
   7979     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360C7C44: call dword ptr [edx + 0x20] */
   7980     RECOMP_FLAGS_IN();
   7981     ecx = MEM32(ebx + 0x4); /* 0x360C7C47: mov ecx, dword ptr [ebx + 4] */
   7982     RECOMP_ICALL(edi); /* 0x360C7C4A: call edi */
   7983     RECOMP_FLAGS_IN();
   7984     edx = MEM32(eax); /* 0x360C7C4C: mov edx, dword ptr [eax] */
   7985     PUSH32(esp, 0); /* 0x360C7C4E: push 0 */
   7986     PUSH32(esp, 0); /* 0x360C7C50: push 0 */
   7987     ecx = ebp + (-0x20); /* 0x360C7C52: lea ecx, [ebp - 0x20] */
   7988     PUSH32(esp, ecx); /* 0x360C7C55: push ecx */
   7989     ecx = ebp + (-0x14); /* 0x360C7C56: lea ecx, [ebp - 0x14] */
   7990     PUSH32(esp, ecx); /* 0x360C7C59: push ecx */
   7991     PUSH32(esp, esi); /* 0x360C7C5A: push esi */
   7992     ecx = eax; /* 0x360C7C5B: mov ecx, eax */
   7993     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360C7C5D: call dword ptr [edx + 4] */
   7994     RECOMP_FLAGS_IN();
   7995     eax = MEM32(ebp + (-0x14)); /* 0x360C7C60: mov eax, dword ptr [ebp - 0x14] */
   7996     ecx = MEM32(ebp + (-0x10)); /* 0x360C7C63: mov ecx, dword ptr [ebp - 0x10] */
   7997     edx = esi; /* 0x360C7C66: mov edx, esi */
   7998     MEM32(edx) = eax; /* 0x360C7C68: mov dword ptr [edx], eax */
   7999     eax = MEM32(ebp + (-0xC)); /* 0x360C7C6A: mov eax, dword ptr [ebp - 0xc] */
   8000     MEM32(edx + 0x4) = ecx; /* 0x360C7C6D: mov dword ptr [edx + 4], ecx */
   8001     MEM32(edx + 0x8) = eax; /* 0x360C7C70: mov dword ptr [edx + 8], eax */
   8002     ecx = ebp + (-0x8); /* 0x360C7C73: lea ecx, [ebp - 8] */
   8003     PUSH32(esp, ecx); /* 0x360C7C76: push ecx */
   8004     edx = ebp + (-0x2C); /* 0x360C7C77: lea edx, [ebp - 0x2c] */
   8005     PUSH32(esp, edx); /* 0x360C7C7A: push edx */
   8006     eax = ebp + (-0x4); /* 0x360C7C7B: lea eax, [ebp - 4] */
   8007     PUSH32(esp, eax); /* 0x360C7C7E: push eax */
   8008     MEM32(ebp + (-0x4)) = 0; /* 0x360C7C7F: mov dword ptr [ebp - 4], 0 */
   8009     MEM32(ebp + (-0x2C)) = 0; /* 0x360C7C86: mov dword ptr [ebp - 0x2c], 0 */
   8010     MEM32(ebp + (-0x28)) = 0; /* 0x360C7C8D: mov dword ptr [ebp - 0x28], 0 */
   8011     MEM32(ebp + (-0x24)) = 0; /* 0x360C7C94: mov dword ptr [ebp - 0x24], 0 */
   8012     MEM32(ebp + (-0x8)) = 0; /* 0x360C7C9B: mov dword ptr [ebp - 8], 0 */
   8013     RECOMP_ICALL(MEM32(0x3616F3FC)); /* 0x360C7CA2: call dword ptr [0x3616f3fc] */
   8014     RECOMP_FLAGS_IN();
   8015     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x360C7CA8: fld dword ptr [esi + 4] */
   8016     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x360C7CAB: fcomp dword ptr [ebp - 4] */
   8017     fp_pop();
   8018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8020     esp = esp + 0xCu; /* 0x360C7CAE: add esp, 0xc */
   8021     _flag_k = FK_ADD;
   8022     edi = POP32_VAL(esp); /* 0x360C7CB1: pop edi */
   8023     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C7CB2: fnstsw ax */
   8024     /* test HI8(eax), 1 */ /* 0x360C7CB4: test ah, 1 */
   8025     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8026     _cf = 0;
   8027     _flag_k = FK_NARROW(FK_TEST, 24);
   8028     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7CBF; /* 0x360C7CB7: je 0x360c7cbf */
   8029 L_360C7CB9:
   8030     ecx = MEM32(ebp + (-0x4)); /* 0x360C7CB9: mov ecx, dword ptr [ebp - 4] */
   8031     MEM32(esi + 0x4) = ecx; /* 0x360C7CBC: mov dword ptr [esi + 4], ecx */
   8032 L_360C7CBF:
   8033     esi = POP32_VAL(esp); /* 0x360C7CBF: pop esi */
   8034     ebx = POP32_VAL(esp); /* 0x360C7CC0: pop ebx */
   8035     esp = ebp; /* 0x360C7CC1: mov esp, ebp */
   8036     ebp = POP32_VAL(esp); /* 0x360C7CC3: pop ebp */
   8037     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7CC4: ret 4 */
   8038     RECOMP_REGS_OUT();
   8039 }
   8040 
   8041 void sub_360C7CD0(void) {
   8042     int _fpu_cmp = 0;
   8043     uint32_t _cf = 0;
   8044     int _df = 1;
   8045     uint32_t _flag_k = FK_NONE;
   8046     uint32_t _flag_a = 0, _flag_b = 0;
   8047     uint32_t _itail_tgt = 0;
   8048     RECOMP_REGS_LOCALS
   8049     RECOMP_ENTER(0x360C7CD0u);
   8050 
   8051 L_360C7CD0:
   8052     PUSH32(esp, ebp); /* 0x360C7CD0: push ebp */
   8053     ebp = esp; /* 0x360C7CD1: mov ebp, esp */
   8054     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   8055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8056     esp = esp - 0x18u; /* 0x360C7CD3: sub esp, 0x18 */
   8057     _flag_k = FK_CMP;
   8058     PUSH32(esp, ebx); /* 0x360C7CD6: push ebx */
   8059     ebx = ecx; /* 0x360C7CD7: mov ebx, ecx */
   8060     ecx = MEM32(ebx + 0x4); /* 0x360C7CD9: mov ecx, dword ptr [ebx + 4] */
   8061     /* test ecx, ecx */ /* 0x360C7CDC: test ecx, ecx */
   8062     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8063     _cf = 0;
   8064     _flag_k = FK_TEST;
   8065     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7D77; /* 0x360C7CDE: je 0x360c7d77 */
   8066 L_360C7CE4:
   8067     PUSH32(esp, esi); /* 0x360C7CE4: push esi */
   8068     PUSH32(esp, edi); /* 0x360C7CE5: push edi */
   8069     edi = MEM32(0x361700C0); /* 0x360C7CE6: mov edi, dword ptr [0x361700c0] */
   8070     MEM32(ebp + (-0xC)) = 0; /* 0x360C7CEC: mov dword ptr [ebp - 0xc], 0 */
   8071     MEM32(ebp + (-0x8)) = 0; /* 0x360C7CF3: mov dword ptr [ebp - 8], 0 */
   8072     MEM32(ebp + (-0x4)) = 0; /* 0x360C7CFA: mov dword ptr [ebp - 4], 0 */
   8073     MEM32(ebp + (-0x18)) = 0; /* 0x360C7D01: mov dword ptr [ebp - 0x18], 0 */
   8074     MEM32(ebp + (-0x14)) = 0; /* 0x360C7D08: mov dword ptr [ebp - 0x14], 0 */
   8075     MEM32(ebp + (-0x10)) = 0; /* 0x360C7D0F: mov dword ptr [ebp - 0x10], 0 */
   8076     RECOMP_ICALL(edi); /* 0x360C7D16: call edi */
   8077     RECOMP_FLAGS_IN();
   8078     esi = MEM32(ebp + 0x8); /* 0x360C7D18: mov esi, dword ptr [ebp + 8] */
   8079     edx = MEM32(eax); /* 0x360C7D1B: mov edx, dword ptr [eax] */
   8080     PUSH32(esp, 0); /* 0x360C7D1D: push 0 */
   8081     PUSH32(esp, 0); /* 0x360C7D1F: push 0 */
   8082     PUSH32(esp, esi); /* 0x360C7D21: push esi */
   8083     ecx = eax; /* 0x360C7D22: mov ecx, eax */
   8084     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360C7D24: call dword ptr [edx + 0x20] */
   8085     RECOMP_FLAGS_IN();
   8086     ecx = MEM32(ebx + 0x4); /* 0x360C7D27: mov ecx, dword ptr [ebx + 4] */
   8087     RECOMP_ICALL(edi); /* 0x360C7D2A: call edi */
   8088     RECOMP_FLAGS_IN();
   8089     edx = MEM32(eax); /* 0x360C7D2C: mov edx, dword ptr [eax] */
   8090     PUSH32(esp, 0); /* 0x360C7D2E: push 0 */
   8091     PUSH32(esp, 0); /* 0x360C7D30: push 0 */
   8092     ecx = ebp + (-0x18); /* 0x360C7D32: lea ecx, [ebp - 0x18] */
   8093     PUSH32(esp, ecx); /* 0x360C7D35: push ecx */
   8094     ecx = ebp + (-0xC); /* 0x360C7D36: lea ecx, [ebp - 0xc] */
   8095     PUSH32(esp, ecx); /* 0x360C7D39: push ecx */
   8096     PUSH32(esp, esi); /* 0x360C7D3A: push esi */
   8097     ecx = eax; /* 0x360C7D3B: mov ecx, eax */
   8098     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360C7D3D: call dword ptr [edx + 4] */
   8099     RECOMP_FLAGS_IN();
   8100     edx = MEM32(ebp + 0x14); /* 0x360C7D40: mov edx, dword ptr [ebp + 0x14] */
   8101     eax = MEM32(ebp + 0x10); /* 0x360C7D43: mov eax, dword ptr [ebp + 0x10] */
   8102     edi = MEM32(ebp + 0xC); /* 0x360C7D46: mov edi, dword ptr [ebp + 0xc] */
   8103     PUSH32(esp, edx); /* 0x360C7D49: push edx */
   8104     PUSH32(esp, eax); /* 0x360C7D4A: push eax */
   8105     PUSH32(esp, edi); /* 0x360C7D4B: push edi */
   8106     MEM32(edi) = 0; /* 0x360C7D4C: mov dword ptr [edi], 0 */
   8107     RECOMP_ICALL(MEM32(0x3616F3FC)); /* 0x360C7D52: call dword ptr [0x3616f3fc] */
   8108     RECOMP_FLAGS_IN();
   8109     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x360C7D58: fld dword ptr [esi + 4] */
   8110     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x360C7D5B: fcomp dword ptr [ebp - 8] */
   8111     fp_pop();
   8112     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8113     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8114     esp = esp + 0xCu; /* 0x360C7D5E: add esp, 0xc */
   8115     _flag_k = FK_ADD;
   8116     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C7D61: fnstsw ax */
   8117     /* test HI8(eax), 1 */ /* 0x360C7D63: test ah, 1 */
   8118     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8119     _cf = 0;
   8120     _flag_k = FK_NARROW(FK_TEST, 24);
   8121     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7D6E; /* 0x360C7D66: je 0x360c7d6e */
   8122 L_360C7D68:
   8123     ecx = MEM32(ebp + (-0x8)); /* 0x360C7D68: mov ecx, dword ptr [ebp - 8] */
   8124     MEM32(esi + 0x4) = ecx; /* 0x360C7D6B: mov dword ptr [esi + 4], ecx */
   8125 L_360C7D6E:
   8126     fp_push(*(float*)&MEM32(edi)); /* 0x360C7D6E: fld dword ptr [edi] */
   8127     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x360C7D70: fsub dword ptr [esi + 4] */
   8128     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x360C7D73: fstp dword ptr [edi] */
   8129     edi = POP32_VAL(esp); /* 0x360C7D75: pop edi */
   8130     esi = POP32_VAL(esp); /* 0x360C7D76: pop esi */
   8131 L_360C7D77:
   8132     ebx = POP32_VAL(esp); /* 0x360C7D77: pop ebx */
   8133     esp = ebp; /* 0x360C7D78: mov esp, ebp */
   8134     ebp = POP32_VAL(esp); /* 0x360C7D7A: pop ebp */
   8135     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C7D7B: ret 0x10 */
   8136     RECOMP_REGS_OUT();
   8137 }
   8138 
   8139 void sub_360C7D08(void) {
   8140     int _fpu_cmp = 0;
   8141     uint32_t _cf = 0;
   8142     int _df = 1;
   8143     uint32_t _flag_k = FK_NONE;
   8144     uint32_t _flag_a = 0, _flag_b = 0;
   8145     uint32_t _itail_tgt = 0;
   8146     RECOMP_REGS_LOCALS
   8147     RECOMP_ENTER(0x360C7D08u);
   8148 
   8149 L_360C7D08:
   8150     MEM32(ebp + (-0x14)) = 0; /* 0x360C7D08: mov dword ptr [ebp - 0x14], 0 */
   8151     MEM32(ebp + (-0x10)) = 0; /* 0x360C7D0F: mov dword ptr [ebp - 0x10], 0 */
   8152     RECOMP_ICALL(edi); /* 0x360C7D16: call edi */
   8153     RECOMP_FLAGS_IN();
   8154     esi = MEM32(ebp + 0x8); /* 0x360C7D18: mov esi, dword ptr [ebp + 8] */
   8155     edx = MEM32(eax); /* 0x360C7D1B: mov edx, dword ptr [eax] */
   8156     PUSH32(esp, 0); /* 0x360C7D1D: push 0 */
   8157     PUSH32(esp, 0); /* 0x360C7D1F: push 0 */
   8158     PUSH32(esp, esi); /* 0x360C7D21: push esi */
   8159     ecx = eax; /* 0x360C7D22: mov ecx, eax */
   8160     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360C7D24: call dword ptr [edx + 0x20] */
   8161     RECOMP_FLAGS_IN();
   8162     ecx = MEM32(ebx + 0x4); /* 0x360C7D27: mov ecx, dword ptr [ebx + 4] */
   8163     RECOMP_ICALL(edi); /* 0x360C7D2A: call edi */
   8164     RECOMP_FLAGS_IN();
   8165     edx = MEM32(eax); /* 0x360C7D2C: mov edx, dword ptr [eax] */
   8166     PUSH32(esp, 0); /* 0x360C7D2E: push 0 */
   8167     PUSH32(esp, 0); /* 0x360C7D30: push 0 */
   8168     ecx = ebp + (-0x18); /* 0x360C7D32: lea ecx, [ebp - 0x18] */
   8169     PUSH32(esp, ecx); /* 0x360C7D35: push ecx */
   8170     ecx = ebp + (-0xC); /* 0x360C7D36: lea ecx, [ebp - 0xc] */
   8171     PUSH32(esp, ecx); /* 0x360C7D39: push ecx */
   8172     PUSH32(esp, esi); /* 0x360C7D3A: push esi */
   8173     ecx = eax; /* 0x360C7D3B: mov ecx, eax */
   8174     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360C7D3D: call dword ptr [edx + 4] */
   8175     RECOMP_FLAGS_IN();
   8176     edx = MEM32(ebp + 0x14); /* 0x360C7D40: mov edx, dword ptr [ebp + 0x14] */
   8177     eax = MEM32(ebp + 0x10); /* 0x360C7D43: mov eax, dword ptr [ebp + 0x10] */
   8178     edi = MEM32(ebp + 0xC); /* 0x360C7D46: mov edi, dword ptr [ebp + 0xc] */
   8179     PUSH32(esp, edx); /* 0x360C7D49: push edx */
   8180     PUSH32(esp, eax); /* 0x360C7D4A: push eax */
   8181     PUSH32(esp, edi); /* 0x360C7D4B: push edi */
   8182     MEM32(edi) = 0; /* 0x360C7D4C: mov dword ptr [edi], 0 */
   8183     RECOMP_ICALL(MEM32(0x3616F3FC)); /* 0x360C7D52: call dword ptr [0x3616f3fc] */
   8184     RECOMP_FLAGS_IN();
   8185     fp_push(*(float*)&MEM32(esi + 0x4)); /* 0x360C7D58: fld dword ptr [esi + 4] */
   8186     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x8))); /* 0x360C7D5B: fcomp dword ptr [ebp - 8] */
   8187     fp_pop();
   8188     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8189     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8190     esp = esp + 0xCu; /* 0x360C7D5E: add esp, 0xc */
   8191     _flag_k = FK_ADD;
   8192     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C7D61: fnstsw ax */
   8193     /* test HI8(eax), 1 */ /* 0x360C7D63: test ah, 1 */
   8194     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   8195     _cf = 0;
   8196     _flag_k = FK_NARROW(FK_TEST, 24);
   8197     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7D6E; /* 0x360C7D66: je 0x360c7d6e */
   8198 L_360C7D68:
   8199     ecx = MEM32(ebp + (-0x8)); /* 0x360C7D68: mov ecx, dword ptr [ebp - 8] */
   8200     MEM32(esi + 0x4) = ecx; /* 0x360C7D6B: mov dword ptr [esi + 4], ecx */
   8201 L_360C7D6E:
   8202     fp_push(*(float*)&MEM32(edi)); /* 0x360C7D6E: fld dword ptr [edi] */
   8203     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x360C7D70: fsub dword ptr [esi + 4] */
   8204     { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x360C7D73: fstp dword ptr [edi] */
   8205     edi = POP32_VAL(esp); /* 0x360C7D75: pop edi */
   8206     esi = POP32_VAL(esp); /* 0x360C7D76: pop esi */
   8207     ebx = POP32_VAL(esp); /* 0x360C7D77: pop ebx */
   8208     esp = ebp; /* 0x360C7D78: mov esp, ebp */
   8209     ebp = POP32_VAL(esp); /* 0x360C7D7A: pop ebp */
   8210     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360C7D7B: ret 0x10 */
   8211     RECOMP_REGS_OUT();
   8212 }
   8213 
   8214 void sub_360C7D80(void) {
   8215     int _fpu_cmp = 0;
   8216     uint32_t _cf = 0;
   8217     int _df = 1;
   8218     uint32_t _flag_k = FK_NONE;
   8219     uint32_t _flag_a = 0, _flag_b = 0;
   8220     uint32_t _itail_tgt = 0;
   8221     RECOMP_REGS_LOCALS
   8222     RECOMP_ENTER(0x360C7D80u);
   8223 
   8224 L_360C7D80:
   8225     PUSH32(esp, ebp); /* 0x360C7D80: push ebp */
   8226     ebp = esp; /* 0x360C7D81: mov ebp, esp */
   8227     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8228     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8229     esp = esp - 0xCu; /* 0x360C7D83: sub esp, 0xc */
   8230     _flag_k = FK_CMP;
   8231     PUSH32(esp, ebx); /* 0x360C7D86: push ebx */
   8232     ebx = ecx; /* 0x360C7D87: mov ebx, ecx */
   8233     ecx = MEM32(ebx + 0x4); /* 0x360C7D89: mov ecx, dword ptr [ebx + 4] */
   8234     /* test ecx, ecx */ /* 0x360C7D8C: test ecx, ecx */
   8235     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8236     _cf = 0;
   8237     _flag_k = FK_TEST;
   8238     PUSH32(esp, esi); /* 0x360C7D8E: push esi */
   8239     if (TEST_Z(_flag_a, _flag_b)) goto L_360C7E06; /* 0x360C7D8F: je 0x360c7e06 */
   8240 L_360C7D91:
   8241     PUSH32(esp, edi); /* 0x360C7D91: push edi */
   8242     edi = MEM32(0x361700C0); /* 0x360C7D92: mov edi, dword ptr [0x361700c0] */
   8243     MEM32(ebp + (-0xC)) = 0; /* 0x360C7D98: mov dword ptr [ebp - 0xc], 0 */
   8244     MEM32(ebp + (-0x8)) = 0; /* 0x360C7D9F: mov dword ptr [ebp - 8], 0 */
   8245     MEM32(ebp + (-0x4)) = 0; /* 0x360C7DA6: mov dword ptr [ebp - 4], 0 */
   8246     RECOMP_ICALL(edi); /* 0x360C7DAD: call edi */
   8247     RECOMP_FLAGS_IN();
   8248     esi = MEM32(ebp + 0x8); /* 0x360C7DAF: mov esi, dword ptr [ebp + 8] */
   8249     edx = MEM32(eax); /* 0x360C7DB2: mov edx, dword ptr [eax] */
   8250     PUSH32(esp, 0); /* 0x360C7DB4: push 0 */
   8251     PUSH32(esp, 0); /* 0x360C7DB6: push 0 */
   8252     PUSH32(esp, esi); /* 0x360C7DB8: push esi */
   8253     ecx = eax; /* 0x360C7DB9: mov ecx, eax */
   8254     RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360C7DBB: call dword ptr [edx + 0x20] */
   8255     RECOMP_FLAGS_IN();
   8256     ecx = MEM32(ebx + 0x4); /* 0x360C7DBE: mov ecx, dword ptr [ebx + 4] */
   8257     RECOMP_ICALL(edi); /* 0x360C7DC1: call edi */
   8258     RECOMP_FLAGS_IN();
   8259     ecx = MEM32(ebp + 0xC); /* 0x360C7DC3: mov ecx, dword ptr [ebp + 0xc] */
   8260     edx = MEM32(eax); /* 0x360C7DC6: mov edx, dword ptr [eax] */
   8261     PUSH32(esp, 0); /* 0x360C7DC8: push 0 */
   8262     PUSH32(esp, 0); /* 0x360C7DCA: push 0 */
   8263     PUSH32(esp, ecx); /* 0x360C7DCC: push ecx */
   8264     ecx = ebp + (-0xC); /* 0x360C7DCD: lea ecx, [ebp - 0xc] */
   8265     PUSH32(esp, ecx); /* 0x360C7DD0: push ecx */
   8266     PUSH32(esp, esi); /* 0x360C7DD1: push esi */
   8267     ecx = eax; /* 0x360C7DD2: mov ecx, eax */
   8268     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360C7DD4: call dword ptr [edx + 4] */
   8269     RECOMP_FLAGS_IN();
   8270     edx = MEM32(ebp + 0x18); /* 0x360C7DD7: mov edx, dword ptr [ebp + 0x18] */
   8271     ecx = MEM32(ebp + 0x14); /* 0x360C7DDA: mov ecx, dword ptr [ebp + 0x14] */
   8272     eax = MEM32(ebp + 0x10); /* 0x360C7DDD: mov eax, dword ptr [ebp + 0x10] */
   8273     PUSH32(esp, edx); /* 0x360C7DE0: push edx */
   8274     PUSH32(esp, ecx); /* 0x360C7DE1: push ecx */
   8275     PUSH32(esp, eax); /* 0x360C7DE2: push eax */
   8276     MEM32(eax) = 0; /* 0x360C7DE3: mov dword ptr [eax], 0 */
   8277     RECOMP_ICALL(MEM32(0x3616F3FC)); /* 0x360C7DE9: call dword ptr [0x3616f3fc] */
   8278     RECOMP_FLAGS_IN();
   8279     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x360C7DEF: fld dword ptr [ebp - 8] */
   8280     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0x4)); /* 0x360C7DF2: fcomp dword ptr [esi + 4] */
   8281     fp_pop();
   8282     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8283     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8284     esp = esp + 0xCu; /* 0x360C7DF5: add esp, 0xc */
   8285     _flag_k = FK_ADD;
   8286     edi = POP32_VAL(esp); /* 0x360C7DF8: pop edi */
   8287     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360C7DF9: fnstsw ax */
   8288     /* test HI8(eax), 0x41u */ /* 0x360C7DFB: test ah, 0x41 */
   8289     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   8290     _cf = 0;
   8291     _flag_k = FK_NARROW(FK_TEST, 24);
   8292     if (TEST_NZ(_flag_a, _flag_b)) goto L_360C7E06; /* 0x360C7DFE: jne 0x360c7e06 */
   8293 L_360C7E00:
   8294     edx = MEM32(ebp + (-0x8)); /* 0x360C7E00: mov edx, dword ptr [ebp - 8] */
   8295     MEM32(esi + 0x4) = edx; /* 0x360C7E03: mov dword ptr [esi + 4], edx */
   8296 L_360C7E06:
   8297     esi = POP32_VAL(esp); /* 0x360C7E06: pop esi */
   8298     ebx = POP32_VAL(esp); /* 0x360C7E07: pop ebx */
   8299     esp = ebp; /* 0x360C7E08: mov esp, ebp */
   8300     ebp = POP32_VAL(esp); /* 0x360C7E0A: pop ebp */
   8301     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x360C7E0B: ret 0x14 */
   8302     RECOMP_REGS_OUT();
   8303 }
   8304 
   8305 void sub_360C7E10(void) {
   8306     int _fpu_cmp = 0;
   8307     uint32_t _cf = 0;
   8308     int _df = 1;
   8309     uint32_t _flag_k = FK_NONE;
   8310     uint32_t _flag_a = 0, _flag_b = 0;
   8311     uint32_t _itail_tgt = 0;
   8312     RECOMP_REGS_LOCALS
   8313     RECOMP_ENTER(0x360C7E10u);
   8314 
   8315 L_360C7E10:
   8316     PUSH32(esp, ebp); /* 0x360C7E10: push ebp */
   8317     ebp = esp; /* 0x360C7E11: mov ebp, esp */
   8318     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   8319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8320     esp = esp - 0xCu; /* 0x360C7E13: sub esp, 0xc */
   8321     _flag_k = FK_CMP;
   8322     eax = MEM32(ebp + 0x20); /* 0x360C7E16: mov eax, dword ptr [ebp + 0x20] */
   8323     MEM32(ebp + (-0xC)) = 0xBF800000u; /* 0x360C7E19: mov dword ptr [ebp - 0xc], 0xbf800000 */
   8324     ecx = MEM32(ebp + (-0xC)); /* 0x360C7E20: mov ecx, dword ptr [ebp - 0xc] */
   8325     MEM32(eax) = ecx; /* 0x360C7E23: mov dword ptr [eax], ecx */
   8326     MEM32(ebp + (-0x8)) = 0xBF800000u; /* 0x360C7E25: mov dword ptr [ebp - 8], 0xbf800000 */
   8327     edx = MEM32(ebp + (-0x8)); /* 0x360C7E2C: mov edx, dword ptr [ebp - 8] */
   8328     MEM32(ebp + (-0x4)) = 0xBF800000u; /* 0x360C7E2F: mov dword ptr [ebp - 4], 0xbf800000 */
   8329     ecx = MEM32(ebp + (-0x4)); /* 0x360C7E36: mov ecx, dword ptr [ebp - 4] */
   8330     MEM32(eax + 0x4) = edx; /* 0x360C7E39: mov dword ptr [eax + 4], edx */
   8331     MEM32(eax + 0x8) = ecx; /* 0x360C7E3C: mov dword ptr [eax + 8], ecx */
   8332     esp = ebp; /* 0x360C7E3F: mov esp, ebp */
   8333     ebp = POP32_VAL(esp); /* 0x360C7E41: pop ebp */
   8334     RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x360C7E42: ret 0x20 */
   8335     RECOMP_REGS_OUT();
   8336 }
   8337 
   8338 void sub_360C7E50(void) {
   8339     int _fpu_cmp = 0;
   8340     uint32_t _cf = 0;
   8341     int _df = 1;
   8342     uint32_t _flag_k = FK_NONE;
   8343     uint32_t _flag_a = 0, _flag_b = 0;
   8344     uint32_t _itail_tgt = 0;
   8345     RECOMP_REGS_LOCALS
   8346     RECOMP_ENTER(0x360C7E50u);
   8347 
   8348 L_360C7E50:
   8349     PUSH32(esp, ebp); /* 0x360C7E50: push ebp */
   8350     ebp = esp; /* 0x360C7E51: mov ebp, esp */
   8351     eax = MEM32(ebp + 0x8); /* 0x360C7E53: mov eax, dword ptr [ebp + 8] */
   8352     MEM32(ecx + 0x4) = eax; /* 0x360C7E56: mov dword ptr [ecx + 4], eax */
   8353     ebp = POP32_VAL(esp); /* 0x360C7E59: pop ebp */
   8354     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360C7E5A: ret 4 */
   8355     RECOMP_REGS_OUT();
   8356 }