aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0125.c (191061B)


      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_36166628(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(0x36166628u);
     17 
     18     goto L_36166628;
     19 L_3615FD76:
     20     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
     21 L_36166628:
     22     eax = 0x3618B7D8u; /* 0x36166628: mov eax, 0x3618b7d8 */
     23 L_3616662D:
     24     RECOMP_BACKEDGE();
     25     goto L_3615FD76; /* 0x3616662D: jmp 0x3615fd76 */
     26     { RECOMP_REGS_OUT(); return; } /* end of function */
     27   _ljump:
     28     switch (_itail_tgt) {
     29       case 0x3615FD76u: goto L_3615FD76;
     30       case 0x36166628u: goto L_36166628;
     31       case 0x3616662Du: goto L_3616662D;
     32       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     33     }
     34     RECOMP_REGS_OUT();
     35 }
     36 
     37 void sub_36166640(void) {
     38     int _fpu_cmp = 0;
     39     uint32_t _cf = 0;
     40     int _df = 1;
     41     uint32_t _flag_k = FK_NONE;
     42     uint32_t _flag_a = 0, _flag_b = 0;
     43     uint32_t _itail_tgt = 0;
     44     RECOMP_REGS_LOCALS
     45     RECOMP_ENTER(0x36166640u);
     46 
     47     goto L_36166640;
     48 L_3608EA50:
     49     PUSH32(esp, ebp); /* 0x3608EA50: push ebp */
     50     ebp = esp; /* 0x3608EA51: mov ebp, esp */
     51     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608EA53: push -1 */
     52     PUSH32(esp, 0x36166176u); /* 0x3608EA55: push 0x36166176 */
     53     eax = MEM32(FS_BASE + (0)); /* 0x3608EA5A: mov eax, dword ptr fs:[0] */
     54     PUSH32(esp, eax); /* 0x3608EA60: push eax */
     55     MEM32(FS_BASE + (0)) = esp; /* 0x3608EA61: mov dword ptr fs:[0], esp */
     56     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
     57     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     58     esp = esp - 0x18u; /* 0x3608EA68: sub esp, 0x18 */
     59     _flag_k = FK_CMP;
     60     PUSH32(esp, ebx); /* 0x3608EA6B: push ebx */
     61     PUSH32(esp, esi); /* 0x3608EA6C: push esi */
     62     esi = ecx; /* 0x3608EA6D: mov esi, ecx */
     63     PUSH32(esp, edi); /* 0x3608EA6F: push edi */
     64     MEM32(ebp + (-0x1C)) = esi; /* 0x3608EA70: mov dword ptr [ebp - 0x1c], esi */
     65     MEM32(esi) = 0x361729F8u; /* 0x3608EA73: mov dword ptr [esi], 0x361729f8 */
     66     MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608EA79: mov dword ptr [esi + 8], 0x361729e8 */
     67     MEM32(esi + 0x40) = 0x361729E0u; /* 0x3608EA80: mov dword ptr [esi + 0x40], 0x361729e0 */
     68     MEM32(esi + 0x4C) = 0x361729D8u; /* 0x3608EA87: mov dword ptr [esi + 0x4c], 0x361729d8 */
     69     eax = MEM32(esi + 0x6C); /* 0x3608EA8E: mov eax, dword ptr [esi + 0x6c] */
     70     ecx = MEM32(eax + 0x4); /* 0x3608EA91: mov ecx, dword ptr [eax + 4] */
     71     ecx = MEM32(ecx); /* 0x3608EA94: mov ecx, dword ptr [ecx] */
     72     MEM32(ebp + (-0x10)) = ecx; /* 0x3608EA96: mov dword ptr [ebp - 0x10], ecx */
     73     eax = MEM32(eax + 0x4); /* 0x3608EA99: mov eax, dword ptr [eax + 4] */
     74     /* cmp ecx, eax */ /* 0x3608EA9C: cmp ecx, eax */
     75     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
     76     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     77     _flag_k = FK_CMP;
     78     MEM32(ebp + (-0x4)) = 2; /* 0x3608EA9E: mov dword ptr [ebp - 4], 2 */
     79     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAD7; /* 0x3608EAA5: je 0x3608ead7 */
     80 L_3608EAA7:
     81     edi = MEM32(ecx + 0x10); /* 0x3608EAA7: mov edi, dword ptr [ecx + 0x10] */
     82     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     83     ebx = 0; /* 0x3608EAAA: xor ebx, ebx */
     84     _cf = 0;
     85     _flag_k = FK_TEST;
     86     /* cmp edi, ebx */ /* 0x3608EAAC: cmp edi, ebx */
     87     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
     88     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     89     _flag_k = FK_CMP;
     90     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAC0; /* 0x3608EAAE: je 0x3608eac0 */
     91 L_3608EAB0:
     92     ecx = edi; /* 0x3608EAB0: mov ecx, edi */
     93     RECOMP_ICALL(0x360055D0u); /* 0x3608EAB2: call 0x360055d0 */ /* not lifted */
     94     RECOMP_FLAGS_IN();
     95     PUSH32(esp, edi); /* 0x3608EAB7: push edi */
     96     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAB8: call 0x3615fcc4 */ /* not lifted */
     97     RECOMP_FLAGS_IN();
     98     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
     99     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    100     esp = esp + 4; /* 0x3608EABD: add esp, 4 */
    101     _flag_k = FK_ADD;
    102 L_3608EAC0:
    103     ecx = ebp + (-0x10); /* 0x3608EAC0: lea ecx, [ebp - 0x10] */
    104     RECOMP_ICALL(0x36064140u); /* 0x3608EAC3: call 0x36064140 */ /* not lifted */
    105     RECOMP_FLAGS_IN();
    106     eax = MEM32(esi + 0x6C); /* 0x3608EAC8: mov eax, dword ptr [esi + 0x6c] */
    107     eax = MEM32(eax + 0x4); /* 0x3608EACB: mov eax, dword ptr [eax + 4] */
    108     ecx = MEM32(ebp + (-0x10)); /* 0x3608EACE: mov ecx, dword ptr [ebp - 0x10] */
    109     /* cmp ecx, eax */ /* 0x3608EAD1: cmp ecx, eax */
    110     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    112     _flag_k = FK_CMP;
    113     RECOMP_BACKEDGE();
    114     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EAA7; /* 0x3608EAD3: jne 0x3608eaa7 */
    115 L_3608EAD5:
    116     goto L_3608EAD9; /* 0x3608EAD5: jmp 0x3608ead9 */
    117 L_3608EAD7:
    118     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    119     ebx = 0; /* 0x3608EAD7: xor ebx, ebx */
    120     _cf = 0;
    121     _flag_k = FK_TEST;
    122 L_3608EAD9:
    123     edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */
    124     /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */
    125     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    126     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    127     _flag_k = FK_CMP;
    128     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */
    129 L_3608EAE0:
    130     ecx = edi; /* 0x3608EAE0: mov ecx, edi */
    131     RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */
    132     RECOMP_FLAGS_IN();
    133     PUSH32(esp, edi); /* 0x3608EAE7: push edi */
    134     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */
    135     RECOMP_FLAGS_IN();
    136     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    137     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    138     esp = esp + 4; /* 0x3608EAED: add esp, 4 */
    139     _flag_k = FK_ADD;
    140 L_3608EAF0:
    141     edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */
    142     /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */
    143     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    144     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    145     _flag_k = FK_CMP;
    146     MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */
    147     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */
    148 L_3608EAFA:
    149     ecx = edi; /* 0x3608EAFA: mov ecx, edi */
    150     RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */
    151     RECOMP_FLAGS_IN();
    152     PUSH32(esp, edi); /* 0x3608EB01: push edi */
    153     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */
    154     RECOMP_FLAGS_IN();
    155     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    156     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    157     esp = esp + 4; /* 0x3608EB07: add esp, 4 */
    158     _flag_k = FK_ADD;
    159 L_3608EB0A:
    160     edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */
    161     /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */
    162     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    164     _flag_k = FK_CMP;
    165     MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */
    166     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */
    167 L_3608EB14:
    168     ecx = edi; /* 0x3608EB14: mov ecx, edi */
    169     RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */
    170     RECOMP_FLAGS_IN();
    171     PUSH32(esp, edi); /* 0x3608EB1B: push edi */
    172     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */
    173     RECOMP_FLAGS_IN();
    174     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    176     esp = esp + 4; /* 0x3608EB21: add esp, 4 */
    177     _flag_k = FK_ADD;
    178 L_3608EB24:
    179     edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */
    180     /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */
    181     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    183     _flag_k = FK_CMP;
    184     MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */
    185     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */
    186 L_3608EB2E:
    187     ecx = edi; /* 0x3608EB2E: mov ecx, edi */
    188     RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */
    189     RECOMP_FLAGS_IN();
    190     PUSH32(esp, edi); /* 0x3608EB35: push edi */
    191     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */
    192     RECOMP_FLAGS_IN();
    193     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    194     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    195     esp = esp + 4; /* 0x3608EB3B: add esp, 4 */
    196     _flag_k = FK_ADD;
    197 L_3608EB3E:
    198     edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */
    199     /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */
    200     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    202     _flag_k = FK_CMP;
    203     MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */
    204     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */
    205 L_3608EB48:
    206     ecx = edi; /* 0x3608EB48: mov ecx, edi */
    207     RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */
    208     RECOMP_FLAGS_IN();
    209     PUSH32(esp, edi); /* 0x3608EB4F: push edi */
    210     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */
    211     RECOMP_FLAGS_IN();
    212     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    213     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    214     esp = esp + 4; /* 0x3608EB55: add esp, 4 */
    215     _flag_k = FK_ADD;
    216 L_3608EB58:
    217     eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */
    218     MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */
    219     ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */
    220     eax = ecx; /* 0x3608EB61: mov eax, ecx */
    221     ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */
    222     /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */
    223     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
    224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    225     _flag_k = FK_CMP;
    226     MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */
    227     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */
    228 L_3608EB70:
    229     eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */
    230     /* test eax, eax */ /* 0x3608EB73: test eax, eax */
    231     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    232     _cf = 0;
    233     _flag_k = FK_TEST;
    234     MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */
    235     if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */
    236 L_3608EB7A:
    237     ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */
    238     edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */
    239     /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */
    240     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
    241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    242     _flag_k = FK_CMP;
    243     MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */
    244     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */
    245 L_3608EB87:
    246     PUSH32(esp, 0); /* 0x3608EB87: push 0 */
    247     ecx = edi; /* 0x3608EB89: mov ecx, edi */
    248     RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */
    249     RECOMP_FLAGS_IN();
    250     eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */
    251     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
    252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    253     edi = edi + 8; /* 0x3608EB93: add edi, 8 */
    254     _flag_k = FK_ADD;
    255     /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */
    256     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    257     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    258     _flag_k = FK_CMP;
    259     RECOMP_BACKEDGE();
    260     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */
    261 L_3608EB9A:
    262     eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */
    263 L_3608EB9D:
    264     eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */
    265     PUSH32(esp, eax); /* 0x3608EBA0: push eax */
    266     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */
    267     RECOMP_FLAGS_IN();
    268     eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */
    269     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    270     ecx = 0; /* 0x3608EBA9: xor ecx, ecx */
    271     _cf = 0;
    272     _flag_k = FK_TEST;
    273     PUSH32(esp, eax); /* 0x3608EBAB: push eax */
    274     MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */
    275     MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */
    276     MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */
    277     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */
    278     RECOMP_FLAGS_IN();
    279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    281     esp = esp + 8; /* 0x3608EBBA: add esp, 8 */
    282     _flag_k = FK_ADD;
    283 L_3608EBBD:
    284     eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */
    285     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */
    286     /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */
    287     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    288     _cf = 0;
    289     _flag_k = FK_NARROW(FK_TEST, 24);
    290     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */
    291 L_3608EBC7:
    292     PUSH32(esp, eax); /* 0x3608EBC7: push eax */
    293     RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */
    294     RECOMP_FLAGS_IN();
    295     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    296     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    297     esp = esp + 4; /* 0x3608EBCD: add esp, 4 */
    298     _flag_k = FK_ADD;
    299     goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */
    300 L_3608EBD2:
    301     eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */
    302     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */
    303     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    304     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    305     _flag_k = FK_CMP;
    306     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */
    307 L_3608EBDA:
    308     ebx = eax; /* 0x3608EBDA: mov ebx, eax */
    309     eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */
    310     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */
    311     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    313     _flag_k = FK_CMP;
    314     RECOMP_BACKEDGE();
    315     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */
    316 L_3608EBE4:
    317     /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */
    318     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax);
    319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    320     _flag_k = FK_CMP;
    321     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */
    322 L_3608EBE9:
    323     ebx = eax; /* 0x3608EBE9: mov ebx, eax */
    324 L_3608EBEB:
    325     /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */
    326     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
    327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    328     _flag_k = FK_CMP;
    329     RECOMP_BACKEDGE();
    330     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */
    331 L_3608EBF0:
    332     ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */
    333     eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */
    334     edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */
    335     PUSH32(esp, eax); /* 0x3608EBF8: push eax */
    336     PUSH32(esp, edx); /* 0x3608EBF9: push edx */
    337     eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */
    338     PUSH32(esp, eax); /* 0x3608EBFD: push eax */
    339     RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */
    340     RECOMP_FLAGS_IN();
    341     edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */
    342     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    343     ebx = 0; /* 0x3608EC06: xor ebx, ebx */
    344     _cf = 0;
    345     _flag_k = FK_TEST;
    346     /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */
    347     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    348     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    349     _flag_k = FK_CMP;
    350     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */
    351 L_3608EC0C:
    352     eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */
    353     ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */
    354     PUSH32(esp, eax); /* 0x3608EC11: push eax */
    355     PUSH32(esp, ecx); /* 0x3608EC12: push ecx */
    356     ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */
    357     PUSH32(esp, ecx); /* 0x3608EC16: push ecx */
    358     ecx = edi; /* 0x3608EC17: mov ecx, edi */
    359     RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */
    360     RECOMP_FLAGS_IN();
    361     eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */
    362     PUSH32(esp, eax); /* 0x3608EC21: push eax */
    363     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */
    364     RECOMP_FLAGS_IN();
    365     eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */
    366     PUSH32(esp, eax); /* 0x3608EC2A: push eax */
    367     MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */
    368     MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */
    369     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */
    370     RECOMP_FLAGS_IN();
    371     PUSH32(esp, edi); /* 0x3608EC36: push edi */
    372     MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */
    373     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */
    374     RECOMP_FLAGS_IN();
    375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    377     esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */
    378     _flag_k = FK_ADD;
    379 L_3608EC42:
    380     eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */
    381     /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */
    382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    383     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    384     _flag_k = FK_CMP;
    385     edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */
    386     MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */
    387     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */
    388 L_3608EC52:
    389     PUSH32(esp, eax); /* 0x3608EC52: push eax */
    390     RECOMP_ICALL(edi); /* 0x3608EC53: call edi */
    391     RECOMP_FLAGS_IN();
    392     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    393     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    394     esp = esp + 4; /* 0x3608EC55: add esp, 4 */
    395     _flag_k = FK_ADD;
    396     MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */
    397 L_3608EC5B:
    398     eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */
    399     /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */
    400     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    402     _flag_k = FK_CMP;
    403     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */
    404 L_3608EC62:
    405     PUSH32(esp, eax); /* 0x3608EC62: push eax */
    406     RECOMP_ICALL(edi); /* 0x3608EC63: call edi */
    407     RECOMP_FLAGS_IN();
    408     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    410     esp = esp + 4; /* 0x3608EC65: add esp, 4 */
    411     _flag_k = FK_ADD;
    412     MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */
    413 L_3608EC6B:
    414     ecx = esi; /* 0x3608EC6B: mov ecx, esi */
    415     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    416     _cf = (ecx) != 0;
    417     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */
    418     _flag_k = FK_CMP;
    419     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */
    420       ecx = _sc ? 0xFFFFFFFFu : 0;
    421       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    422       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    423     eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */
    424     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    425     ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */
    426     _cf = 0;
    427     _flag_k = FK_TEST;
    428     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */
    429     RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */
    430     RECOMP_FLAGS_IN();
    431     ecx = esi; /* 0x3608EC7F: mov ecx, esi */
    432     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    433     _cf = (ecx) != 0;
    434     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */
    435     _flag_k = FK_CMP;
    436     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */
    437       ecx = _sc ? 0xFFFFFFFFu : 0;
    438       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    439       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    440     eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */
    441     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    442     ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */
    443     _cf = 0;
    444     _flag_k = FK_TEST;
    445     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */
    446     RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */
    447     RECOMP_FLAGS_IN();
    448     ecx = esi; /* 0x3608EC93: mov ecx, esi */
    449     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */
    450     RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */
    451     RECOMP_FLAGS_IN();
    452     ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */
    453     edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */
    454     esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */
    455     ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */
    456     MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */
    457     esp = ebp; /* 0x3608ECAE: mov esp, ebp */
    458     ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */
    459     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret  */
    460 L_36166640:
    461     ecx = MEM32(ebp + (-0x10)); /* 0x36166640: mov ecx, dword ptr [ebp - 0x10] */
    462     RECOMP_BACKEDGE();
    463     goto L_3608EA50; /* 0x36166643: jmp 0x3608ea50 */
    464     { RECOMP_REGS_OUT(); return; } /* end of function */
    465     RECOMP_REGS_OUT();
    466 }
    467 
    468 void sub_36166648(void) {
    469     int _fpu_cmp = 0;
    470     uint32_t _cf = 0;
    471     int _df = 1;
    472     uint32_t _flag_k = FK_NONE;
    473     uint32_t _flag_a = 0, _flag_b = 0;
    474     uint32_t _itail_tgt = 0;
    475     RECOMP_REGS_LOCALS
    476     RECOMP_ENTER(0x36166648u);
    477 
    478     goto L_36166648;
    479 L_3615FD76:
    480     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
    481 L_36166648:
    482     eax = 0x3618B800u; /* 0x36166648: mov eax, 0x3618b800 */
    483 L_3616664D:
    484     RECOMP_BACKEDGE();
    485     goto L_3615FD76; /* 0x3616664D: jmp 0x3615fd76 */
    486     { RECOMP_REGS_OUT(); return; } /* end of function */
    487   _ljump:
    488     switch (_itail_tgt) {
    489       case 0x3615FD76u: goto L_3615FD76;
    490       case 0x36166648u: goto L_36166648;
    491       case 0x3616664Du: goto L_3616664D;
    492       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    493     }
    494     RECOMP_REGS_OUT();
    495 }
    496 
    497 void sub_36166660(void) {
    498     int _fpu_cmp = 0;
    499     uint32_t _cf = 0;
    500     int _df = 1;
    501     uint32_t _flag_k = FK_NONE;
    502     uint32_t _flag_a = 0, _flag_b = 0;
    503     uint32_t _itail_tgt = 0;
    504     RECOMP_REGS_LOCALS
    505     RECOMP_ENTER(0x36166660u);
    506 
    507     goto L_36166660;
    508 L_3609CC20:
    509     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
    510     ebp = esp; /* 0x3609CC21: mov ebp, esp */
    511     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
    512     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
    513     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
    514     PUSH32(esp, eax); /* 0x3609CC30: push eax */
    515     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
    516     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    518     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
    519     _flag_k = FK_CMP;
    520     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
    521     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
    522     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
    523     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
    524     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
    525     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
    526     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
    527     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
    528     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
    529     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
    530     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
    531     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
    532     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
    533     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
    534     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
    535     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    536     _cf = 0;
    537     _flag_k = FK_TEST;
    538     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
    539     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
    540 L_3609CC97:
    541     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
    542     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
    543     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
    544     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    546     _flag_k = FK_CMP;
    547     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
    548     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
    549 L_3609CCA3:
    550     eax = edi; /* 0x3609CCA3: mov eax, edi */
    551     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
    552     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
    553     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
    554     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
    555     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
    556     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
    557     RECOMP_FLAGS_IN();
    558     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
    559     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
    560     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    561     _flag_k = FK_CMP;
    562     RECOMP_BACKEDGE();
    563     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
    564 L_3609CCB8:
    565     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
    566     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
    567     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
    568     RECOMP_FLAGS_IN();
    569     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    570     eax = 0; /* 0x3609CCC1: xor eax, eax */
    571     _cf = 0;
    572     _flag_k = FK_TEST;
    573     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
    574     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
    575     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
    576     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
    577     RECOMP_FLAGS_IN();
    578     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    579     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    580     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
    581     _flag_k = FK_ADD;
    582 L_3609CCD2:
    583     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
    584     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
    585     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    586     _cf = 0;
    587     _flag_k = FK_TEST;
    588     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
    589     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
    590 L_3609CCE6:
    591     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
    592     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
    593     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
    594     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    595     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    596     _flag_k = FK_CMP;
    597     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
    598     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
    599 L_3609CCF2:
    600     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
    601     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
    602     eax = edi; /* 0x3609CCF7: mov eax, edi */
    603     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
    604     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
    605     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
    606     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
    607     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
    608     RECOMP_FLAGS_IN();
    609     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
    610     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
    611     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
    612     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
    613     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
    614     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
    615     PUSH32(esp, eax); /* 0x3609CD15: push eax */
    616     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
    617     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
    618     RECOMP_FLAGS_IN();
    619     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
    620     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
    621     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    622     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    623     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
    624     _flag_k = FK_ADD;
    625     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    626     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
    627     _flag_k = FK_DEC;
    628     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
    629     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    630     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    631     _flag_k = FK_CMP;
    632     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
    633     RECOMP_BACKEDGE();
    634     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
    635 L_3609CD2F:
    636     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
    637     PUSH32(esp, eax); /* 0x3609CD32: push eax */
    638     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
    639     RECOMP_FLAGS_IN();
    640     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    641     eax = 0; /* 0x3609CD38: xor eax, eax */
    642     _cf = 0;
    643     _flag_k = FK_TEST;
    644     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
    645     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
    646     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
    647     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
    648     RECOMP_FLAGS_IN();
    649     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    650     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    651     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
    652     _flag_k = FK_ADD;
    653 L_3609CD49:
    654     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
    655     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
    656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    657     _cf = 0;
    658     _flag_k = FK_TEST;
    659     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
    660     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
    661 L_3609CD5D:
    662     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
    663     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
    664     RECOMP_FLAGS_IN();
    665     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    666     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    667     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
    668     _flag_k = FK_ADD;
    669 L_3609CD66:
    670     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
    671     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
    672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    673     _cf = 0;
    674     _flag_k = FK_TEST;
    675     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
    676     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
    677 L_3609CD7A:
    678     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
    679     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
    680     RECOMP_FLAGS_IN();
    681     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    682     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    683     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
    684     _flag_k = FK_ADD;
    685 L_3609CD83:
    686     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
    687     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
    688     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    689     _cf = 0;
    690     _flag_k = FK_TEST;
    691     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
    692     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
    693 L_3609CD97:
    694     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
    695     RECOMP_FLAGS_IN();
    696     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
    697 L_3609CDA6:
    698     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
    699     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    700     _cf = (ecx) != 0;
    701     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
    702     _flag_k = FK_CMP;
    703     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
    704       ecx = _sc ? 0xFFFFFFFFu : 0;
    705       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    706       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    707     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
    708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    709     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
    710     _cf = 0;
    711     _flag_k = FK_TEST;
    712     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
    713     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
    714     RECOMP_FLAGS_IN();
    715     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
    716     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    717     _cf = (ecx) != 0;
    718     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
    719     _flag_k = FK_CMP;
    720     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
    721       ecx = _sc ? 0xFFFFFFFFu : 0;
    722       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    723       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    724     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
    725     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    726     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
    727     _cf = 0;
    728     _flag_k = FK_TEST;
    729     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
    730     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
    731     RECOMP_FLAGS_IN();
    732     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
    733     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
    734     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
    735     RECOMP_FLAGS_IN();
    736     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
    737     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
    738     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
    739     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
    740     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
    741     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
    742     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
    743     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
    744 L_36166660:
    745     ecx = MEM32(ebp + (-0x10)); /* 0x36166660: mov ecx, dword ptr [ebp - 0x10] */
    746     RECOMP_BACKEDGE();
    747     goto L_3609CC20; /* 0x36166663: jmp 0x3609cc20 */
    748     { RECOMP_REGS_OUT(); return; } /* end of function */
    749     RECOMP_REGS_OUT();
    750 }
    751 
    752 void sub_36166668(void) {
    753     int _fpu_cmp = 0;
    754     uint32_t _cf = 0;
    755     int _df = 1;
    756     uint32_t _flag_k = FK_NONE;
    757     uint32_t _flag_a = 0, _flag_b = 0;
    758     uint32_t _itail_tgt = 0;
    759     RECOMP_REGS_LOCALS
    760     RECOMP_ENTER(0x36166668u);
    761 
    762 L_36166668:
    763     eax = MEM32(ebp + 0x8); /* 0x36166668: mov eax, dword ptr [ebp + 8] */
    764     PUSH32(esp, eax); /* 0x3616666B: push eax */
    765     RECOMP_ICALL(0x3615FCC4u); /* 0x3616666C: call 0x3615fcc4 */ /* not lifted */
    766     RECOMP_FLAGS_IN();
    767     ecx = POP32_VAL(esp); /* 0x36166671: pop ecx */
    768     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166672: ret  */
    769     RECOMP_REGS_OUT();
    770 }
    771 
    772 void sub_36166673(void) {
    773     int _fpu_cmp = 0;
    774     uint32_t _cf = 0;
    775     int _df = 1;
    776     uint32_t _flag_k = FK_NONE;
    777     uint32_t _flag_a = 0, _flag_b = 0;
    778     uint32_t _itail_tgt = 0;
    779     RECOMP_REGS_LOCALS
    780     RECOMP_ENTER(0x36166673u);
    781 
    782     goto L_36166673;
    783 L_3615FD76:
    784     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
    785 L_36166673:
    786     eax = 0x3618B828u; /* 0x36166673: mov eax, 0x3618b828 */
    787 L_36166678:
    788     RECOMP_BACKEDGE();
    789     goto L_3615FD76; /* 0x36166678: jmp 0x3615fd76 */
    790     { RECOMP_REGS_OUT(); return; } /* end of function */
    791   _ljump:
    792     switch (_itail_tgt) {
    793       case 0x3615FD76u: goto L_3615FD76;
    794       case 0x36166673u: goto L_36166673;
    795       case 0x36166678u: goto L_36166678;
    796       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    797     }
    798     RECOMP_REGS_OUT();
    799 }
    800 
    801 void sub_36166680(void) {
    802     int _fpu_cmp = 0;
    803     uint32_t _cf = 0;
    804     int _df = 1;
    805     uint32_t _flag_k = FK_NONE;
    806     uint32_t _flag_a = 0, _flag_b = 0;
    807     uint32_t _itail_tgt = 0;
    808     RECOMP_REGS_LOCALS
    809     RECOMP_ENTER(0x36166680u);
    810 
    811 L_36166680:
    812     eax = MEM32(ebp + (-0x14)); /* 0x36166680: mov eax, dword ptr [ebp - 0x14] */
    813     PUSH32(esp, eax); /* 0x36166683: push eax */
    814     RECOMP_ICALL(0x3615FCC4u); /* 0x36166684: call 0x3615fcc4 */ /* not lifted */
    815     RECOMP_FLAGS_IN();
    816     ecx = POP32_VAL(esp); /* 0x36166689: pop ecx */
    817     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616668A: ret  */
    818     RECOMP_REGS_OUT();
    819 }
    820 
    821 void sub_3616668B(void) {
    822     int _fpu_cmp = 0;
    823     uint32_t _cf = 0;
    824     int _df = 1;
    825     uint32_t _flag_k = FK_NONE;
    826     uint32_t _flag_a = 0, _flag_b = 0;
    827     uint32_t _itail_tgt = 0;
    828     RECOMP_REGS_LOCALS
    829     RECOMP_ENTER(0x3616668Bu);
    830 
    831     goto L_3616668B;
    832 L_3615FD76:
    833     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
    834 L_3616668B:
    835     eax = 0x3618B858u; /* 0x3616668B: mov eax, 0x3618b858 */
    836 L_36166690:
    837     RECOMP_BACKEDGE();
    838     goto L_3615FD76; /* 0x36166690: jmp 0x3615fd76 */
    839     { RECOMP_REGS_OUT(); return; } /* end of function */
    840   _ljump:
    841     switch (_itail_tgt) {
    842       case 0x3615FD76u: goto L_3615FD76;
    843       case 0x3616668Bu: goto L_3616668B;
    844       case 0x36166690u: goto L_36166690;
    845       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    846     }
    847     RECOMP_REGS_OUT();
    848 }
    849 
    850 void sub_361666A0(void) {
    851     int _fpu_cmp = 0;
    852     uint32_t _cf = 0;
    853     int _df = 1;
    854     uint32_t _flag_k = FK_NONE;
    855     uint32_t _flag_a = 0, _flag_b = 0;
    856     uint32_t _itail_tgt = 0;
    857     RECOMP_REGS_LOCALS
    858     RECOMP_ENTER(0x361666A0u);
    859 
    860     goto L_361666A0;
    861 L_3609CC20:
    862     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
    863     ebp = esp; /* 0x3609CC21: mov ebp, esp */
    864     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
    865     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
    866     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
    867     PUSH32(esp, eax); /* 0x3609CC30: push eax */
    868     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
    869     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    871     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
    872     _flag_k = FK_CMP;
    873     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
    874     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
    875     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
    876     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
    877     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
    878     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
    879     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
    880     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
    881     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
    882     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
    883     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
    884     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
    885     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
    886     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
    887     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
    888     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    889     _cf = 0;
    890     _flag_k = FK_TEST;
    891     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
    892     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
    893 L_3609CC97:
    894     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
    895     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
    896     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
    897     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    898     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    899     _flag_k = FK_CMP;
    900     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
    901     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
    902 L_3609CCA3:
    903     eax = edi; /* 0x3609CCA3: mov eax, edi */
    904     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
    905     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
    906     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
    907     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
    908     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
    909     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
    910     RECOMP_FLAGS_IN();
    911     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
    912     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
    913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    914     _flag_k = FK_CMP;
    915     RECOMP_BACKEDGE();
    916     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
    917 L_3609CCB8:
    918     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
    919     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
    920     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
    921     RECOMP_FLAGS_IN();
    922     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    923     eax = 0; /* 0x3609CCC1: xor eax, eax */
    924     _cf = 0;
    925     _flag_k = FK_TEST;
    926     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
    927     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
    928     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
    929     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
    930     RECOMP_FLAGS_IN();
    931     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    933     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
    934     _flag_k = FK_ADD;
    935 L_3609CCD2:
    936     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
    937     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
    938     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    939     _cf = 0;
    940     _flag_k = FK_TEST;
    941     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
    942     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
    943 L_3609CCE6:
    944     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
    945     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
    946     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
    947     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    949     _flag_k = FK_CMP;
    950     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
    951     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
    952 L_3609CCF2:
    953     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
    954     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
    955     eax = edi; /* 0x3609CCF7: mov eax, edi */
    956     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
    957     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
    958     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
    959     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
    960     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
    961     RECOMP_FLAGS_IN();
    962     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
    963     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
    964     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
    965     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
    966     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
    967     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
    968     PUSH32(esp, eax); /* 0x3609CD15: push eax */
    969     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
    970     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
    971     RECOMP_FLAGS_IN();
    972     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
    973     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
    974     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    975     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    976     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
    977     _flag_k = FK_ADD;
    978     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    979     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
    980     _flag_k = FK_DEC;
    981     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
    982     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    984     _flag_k = FK_CMP;
    985     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
    986     RECOMP_BACKEDGE();
    987     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
    988 L_3609CD2F:
    989     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
    990     PUSH32(esp, eax); /* 0x3609CD32: push eax */
    991     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
    992     RECOMP_FLAGS_IN();
    993     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    994     eax = 0; /* 0x3609CD38: xor eax, eax */
    995     _cf = 0;
    996     _flag_k = FK_TEST;
    997     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
    998     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
    999     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
   1000     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
   1001     RECOMP_FLAGS_IN();
   1002     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1003     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1004     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
   1005     _flag_k = FK_ADD;
   1006 L_3609CD49:
   1007     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
   1008     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
   1009     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1010     _cf = 0;
   1011     _flag_k = FK_TEST;
   1012     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
   1013     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
   1014 L_3609CD5D:
   1015     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
   1016     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
   1017     RECOMP_FLAGS_IN();
   1018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1020     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
   1021     _flag_k = FK_ADD;
   1022 L_3609CD66:
   1023     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
   1024     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
   1025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1026     _cf = 0;
   1027     _flag_k = FK_TEST;
   1028     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
   1029     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
   1030 L_3609CD7A:
   1031     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
   1032     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
   1033     RECOMP_FLAGS_IN();
   1034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1036     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
   1037     _flag_k = FK_ADD;
   1038 L_3609CD83:
   1039     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
   1040     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
   1041     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1042     _cf = 0;
   1043     _flag_k = FK_TEST;
   1044     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
   1045     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
   1046 L_3609CD97:
   1047     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
   1048     RECOMP_FLAGS_IN();
   1049     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
   1050 L_3609CDA6:
   1051     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
   1052     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1053     _cf = (ecx) != 0;
   1054     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
   1055     _flag_k = FK_CMP;
   1056     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
   1057       ecx = _sc ? 0xFFFFFFFFu : 0;
   1058       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1059       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1060     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
   1061     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1062     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
   1063     _cf = 0;
   1064     _flag_k = FK_TEST;
   1065     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
   1066     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
   1067     RECOMP_FLAGS_IN();
   1068     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
   1069     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1070     _cf = (ecx) != 0;
   1071     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
   1072     _flag_k = FK_CMP;
   1073     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
   1074       ecx = _sc ? 0xFFFFFFFFu : 0;
   1075       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1076       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1077     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
   1078     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1079     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
   1080     _cf = 0;
   1081     _flag_k = FK_TEST;
   1082     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
   1083     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
   1084     RECOMP_FLAGS_IN();
   1085     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
   1086     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
   1087     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
   1088     RECOMP_FLAGS_IN();
   1089     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
   1090     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
   1091     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
   1092     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
   1093     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
   1094     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
   1095     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
   1096     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
   1097 L_361666A0:
   1098     ecx = MEM32(ebp + (-0x14)); /* 0x361666A0: mov ecx, dword ptr [ebp - 0x14] */
   1099     RECOMP_BACKEDGE();
   1100     goto L_3609CC20; /* 0x361666A3: jmp 0x3609cc20 */
   1101     { RECOMP_REGS_OUT(); return; } /* end of function */
   1102     RECOMP_REGS_OUT();
   1103 }
   1104 
   1105 void sub_361666A8(void) {
   1106     int _fpu_cmp = 0;
   1107     uint32_t _cf = 0;
   1108     int _df = 1;
   1109     uint32_t _flag_k = FK_NONE;
   1110     uint32_t _flag_a = 0, _flag_b = 0;
   1111     uint32_t _itail_tgt = 0;
   1112     RECOMP_REGS_LOCALS
   1113     RECOMP_ENTER(0x361666A8u);
   1114 
   1115     goto L_361666A8;
   1116 L_3615FD76:
   1117     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1118 L_361666A8:
   1119     eax = 0x3618B880u; /* 0x361666A8: mov eax, 0x3618b880 */
   1120 L_361666AD:
   1121     RECOMP_BACKEDGE();
   1122     goto L_3615FD76; /* 0x361666AD: jmp 0x3615fd76 */
   1123     { RECOMP_REGS_OUT(); return; } /* end of function */
   1124   _ljump:
   1125     switch (_itail_tgt) {
   1126       case 0x3615FD76u: goto L_3615FD76;
   1127       case 0x361666A8u: goto L_361666A8;
   1128       case 0x361666ADu: goto L_361666AD;
   1129       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1130     }
   1131     RECOMP_REGS_OUT();
   1132 }
   1133 
   1134 void sub_361666C0(void) {
   1135     int _fpu_cmp = 0;
   1136     uint32_t _cf = 0;
   1137     int _df = 1;
   1138     uint32_t _flag_k = FK_NONE;
   1139     uint32_t _flag_a = 0, _flag_b = 0;
   1140     uint32_t _itail_tgt = 0;
   1141     RECOMP_REGS_LOCALS
   1142     RECOMP_ENTER(0x361666C0u);
   1143 
   1144     goto L_361666C0;
   1145 L_3606C6E0:
   1146     PUSH32(esp, ebp); /* 0x3606C6E0: push ebp */
   1147     ebp = esp; /* 0x3606C6E1: mov ebp, esp */
   1148     PUSH32(esp, ecx); /* 0x3606C6E3: push ecx */
   1149     PUSH32(esp, esi); /* 0x3606C6E4: push esi */
   1150     esi = ecx; /* 0x3606C6E5: mov esi, ecx */
   1151     eax = MEM32(esi + 0x4); /* 0x3606C6E7: mov eax, dword ptr [esi + 4] */
   1152     PUSH32(esp, eax); /* 0x3606C6EA: push eax */
   1153     MEM32(ebp + (-0x4)) = eax; /* 0x3606C6EB: mov dword ptr [ebp - 4], eax */
   1154     RECOMP_ICALL(0x3615FCC4u); /* 0x3606C6EE: call 0x3615fcc4 */ /* not lifted */
   1155     RECOMP_FLAGS_IN();
   1156     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1157     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1158     esp = esp + 4; /* 0x3606C6F3: add esp, 4 */
   1159     _flag_k = FK_ADD;
   1160     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1161     eax = 0; /* 0x3606C6F6: xor eax, eax */
   1162     _cf = 0;
   1163     _flag_k = FK_TEST;
   1164     MEM32(esi + 0x4) = eax; /* 0x3606C6F8: mov dword ptr [esi + 4], eax */
   1165     MEM32(esi + 0x8) = eax; /* 0x3606C6FB: mov dword ptr [esi + 8], eax */
   1166     MEM32(esi + 0xC) = eax; /* 0x3606C6FE: mov dword ptr [esi + 0xc], eax */
   1167     esi = POP32_VAL(esp); /* 0x3606C701: pop esi */
   1168     esp = ebp; /* 0x3606C702: mov esp, ebp */
   1169     ebp = POP32_VAL(esp); /* 0x3606C704: pop ebp */
   1170     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606C705: ret  */
   1171 L_361666C0:
   1172     ecx = ebp + (-0x3C); /* 0x361666C0: lea ecx, [ebp - 0x3c] */
   1173     RECOMP_BACKEDGE();
   1174     goto L_3606C6E0; /* 0x361666C3: jmp 0x3606c6e0 */
   1175     { RECOMP_REGS_OUT(); return; } /* end of function */
   1176     RECOMP_REGS_OUT();
   1177 }
   1178 
   1179 void sub_361666C8(void) {
   1180     int _fpu_cmp = 0;
   1181     uint32_t _cf = 0;
   1182     int _df = 1;
   1183     uint32_t _flag_k = FK_NONE;
   1184     uint32_t _flag_a = 0, _flag_b = 0;
   1185     uint32_t _itail_tgt = 0;
   1186     RECOMP_REGS_LOCALS
   1187     RECOMP_ENTER(0x361666C8u);
   1188 
   1189     goto L_361666C8;
   1190 L_36099A30:
   1191     eax = MEM32(0x3616FD60); /* 0x36099A30: mov eax, dword ptr [0x3616fd60] */
   1192     MEM32(ecx) = eax; /* 0x36099A35: mov dword ptr [ecx], eax */
   1193     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36099A37: ret  */
   1194 L_361666C8:
   1195     ecx = ebp + (-0x4C); /* 0x361666C8: lea ecx, [ebp - 0x4c] */
   1196     RECOMP_BACKEDGE();
   1197     goto L_36099A30; /* 0x361666CB: jmp 0x36099a30 */
   1198     { RECOMP_REGS_OUT(); return; } /* end of function */
   1199     RECOMP_REGS_OUT();
   1200 }
   1201 
   1202 void sub_361666D0(void) {
   1203     int _fpu_cmp = 0;
   1204     uint32_t _cf = 0;
   1205     int _df = 1;
   1206     uint32_t _flag_k = FK_NONE;
   1207     uint32_t _flag_a = 0, _flag_b = 0;
   1208     uint32_t _itail_tgt = 0;
   1209     RECOMP_REGS_LOCALS
   1210     RECOMP_ENTER(0x361666D0u);
   1211 
   1212     goto L_361666D0;
   1213 L_3615FD76:
   1214     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1215 L_361666D0:
   1216     eax = 0x3618B8A8u; /* 0x361666D0: mov eax, 0x3618b8a8 */
   1217 L_361666D5:
   1218     RECOMP_BACKEDGE();
   1219     goto L_3615FD76; /* 0x361666D5: jmp 0x3615fd76 */
   1220     { RECOMP_REGS_OUT(); return; } /* end of function */
   1221   _ljump:
   1222     switch (_itail_tgt) {
   1223       case 0x3615FD76u: goto L_3615FD76;
   1224       case 0x361666D0u: goto L_361666D0;
   1225       case 0x361666D5u: goto L_361666D5;
   1226       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1227     }
   1228     RECOMP_REGS_OUT();
   1229 }
   1230 
   1231 void sub_361666E0(void) {
   1232     int _fpu_cmp = 0;
   1233     uint32_t _cf = 0;
   1234     int _df = 1;
   1235     uint32_t _flag_k = FK_NONE;
   1236     uint32_t _flag_a = 0, _flag_b = 0;
   1237     uint32_t _itail_tgt = 0;
   1238     RECOMP_REGS_LOCALS
   1239     RECOMP_ENTER(0x361666E0u);
   1240 
   1241 L_361666E0:
   1242     eax = MEM32(ebp + (-0x10)); /* 0x361666E0: mov eax, dword ptr [ebp - 0x10] */
   1243     PUSH32(esp, eax); /* 0x361666E3: push eax */
   1244     RECOMP_ICALL(0x3615FCC4u); /* 0x361666E4: call 0x3615fcc4 */ /* not lifted */
   1245     RECOMP_FLAGS_IN();
   1246     ecx = POP32_VAL(esp); /* 0x361666E9: pop ecx */
   1247     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361666EA: ret  */
   1248     RECOMP_REGS_OUT();
   1249 }
   1250 
   1251 void sub_361666EB(void) {
   1252     int _fpu_cmp = 0;
   1253     uint32_t _cf = 0;
   1254     int _df = 1;
   1255     uint32_t _flag_k = FK_NONE;
   1256     uint32_t _flag_a = 0, _flag_b = 0;
   1257     uint32_t _itail_tgt = 0;
   1258     RECOMP_REGS_LOCALS
   1259     RECOMP_ENTER(0x361666EBu);
   1260 
   1261     goto L_361666EB;
   1262 L_3615FD76:
   1263     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1264 L_361666EB:
   1265     eax = 0x3618B8D8u; /* 0x361666EB: mov eax, 0x3618b8d8 */
   1266 L_361666F0:
   1267     RECOMP_BACKEDGE();
   1268     goto L_3615FD76; /* 0x361666F0: jmp 0x3615fd76 */
   1269     { RECOMP_REGS_OUT(); return; } /* end of function */
   1270   _ljump:
   1271     switch (_itail_tgt) {
   1272       case 0x3615FD76u: goto L_3615FD76;
   1273       case 0x361666EBu: goto L_361666EB;
   1274       case 0x361666F0u: goto L_361666F0;
   1275       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1276     }
   1277     RECOMP_REGS_OUT();
   1278 }
   1279 
   1280 void sub_36166700(void) {
   1281     int _fpu_cmp = 0;
   1282     uint32_t _cf = 0;
   1283     int _df = 1;
   1284     uint32_t _flag_k = FK_NONE;
   1285     uint32_t _flag_a = 0, _flag_b = 0;
   1286     uint32_t _itail_tgt = 0;
   1287     RECOMP_REGS_LOCALS
   1288     RECOMP_ENTER(0x36166700u);
   1289 
   1290 L_36166700:
   1291     eax = MEM32(ebp + (-0x10)); /* 0x36166700: mov eax, dword ptr [ebp - 0x10] */
   1292     PUSH32(esp, eax); /* 0x36166703: push eax */
   1293     RECOMP_ICALL(0x3615FCC4u); /* 0x36166704: call 0x3615fcc4 */ /* not lifted */
   1294     RECOMP_FLAGS_IN();
   1295     ecx = POP32_VAL(esp); /* 0x36166709: pop ecx */
   1296     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616670A: ret  */
   1297     RECOMP_REGS_OUT();
   1298 }
   1299 
   1300 void sub_3616670B(void) {
   1301     int _fpu_cmp = 0;
   1302     uint32_t _cf = 0;
   1303     int _df = 1;
   1304     uint32_t _flag_k = FK_NONE;
   1305     uint32_t _flag_a = 0, _flag_b = 0;
   1306     uint32_t _itail_tgt = 0;
   1307     RECOMP_REGS_LOCALS
   1308     RECOMP_ENTER(0x3616670Bu);
   1309 
   1310     goto L_3616670B;
   1311 L_3615FD76:
   1312     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1313 L_3616670B:
   1314     eax = 0x3618B900u; /* 0x3616670B: mov eax, 0x3618b900 */
   1315 L_36166710:
   1316     RECOMP_BACKEDGE();
   1317     goto L_3615FD76; /* 0x36166710: jmp 0x3615fd76 */
   1318     { RECOMP_REGS_OUT(); return; } /* end of function */
   1319   _ljump:
   1320     switch (_itail_tgt) {
   1321       case 0x3615FD76u: goto L_3615FD76;
   1322       case 0x3616670Bu: goto L_3616670B;
   1323       case 0x36166710u: goto L_36166710;
   1324       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1325     }
   1326     RECOMP_REGS_OUT();
   1327 }
   1328 
   1329 void sub_36166720(void) {
   1330     int _fpu_cmp = 0;
   1331     uint32_t _cf = 0;
   1332     int _df = 1;
   1333     uint32_t _flag_k = FK_NONE;
   1334     uint32_t _flag_a = 0, _flag_b = 0;
   1335     uint32_t _itail_tgt = 0;
   1336     RECOMP_REGS_LOCALS
   1337     RECOMP_ENTER(0x36166720u);
   1338 
   1339 L_36166720:
   1340     ecx = ebp + (-0x20); /* 0x36166720: lea ecx, [ebp - 0x20] */
   1341 L_36166723:
   1342     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   1343     { RECOMP_REGS_OUT(); return; } /* end of function */
   1344   _ljump:
   1345     switch (_itail_tgt) {
   1346       case 0x36166720u: goto L_36166720;
   1347       case 0x36166723u: goto L_36166723;
   1348       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1349     }
   1350     RECOMP_REGS_OUT();
   1351 }
   1352 
   1353 void sub_36166729(void) {
   1354     int _fpu_cmp = 0;
   1355     uint32_t _cf = 0;
   1356     int _df = 1;
   1357     uint32_t _flag_k = FK_NONE;
   1358     uint32_t _flag_a = 0, _flag_b = 0;
   1359     uint32_t _itail_tgt = 0;
   1360     RECOMP_REGS_LOCALS
   1361     RECOMP_ENTER(0x36166729u);
   1362 
   1363     goto L_36166729;
   1364 L_3615FD76:
   1365     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1366 L_36166729:
   1367     eax = 0x3618B928u; /* 0x36166729: mov eax, 0x3618b928 */
   1368 L_3616672E:
   1369     RECOMP_BACKEDGE();
   1370     goto L_3615FD76; /* 0x3616672E: jmp 0x3615fd76 */
   1371     { RECOMP_REGS_OUT(); return; } /* end of function */
   1372   _ljump:
   1373     switch (_itail_tgt) {
   1374       case 0x3615FD76u: goto L_3615FD76;
   1375       case 0x36166729u: goto L_36166729;
   1376       case 0x3616672Eu: goto L_3616672E;
   1377       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1378     }
   1379     RECOMP_REGS_OUT();
   1380 }
   1381 
   1382 void sub_36166740(void) {
   1383     int _fpu_cmp = 0;
   1384     uint32_t _cf = 0;
   1385     int _df = 1;
   1386     uint32_t _flag_k = FK_NONE;
   1387     uint32_t _flag_a = 0, _flag_b = 0;
   1388     uint32_t _itail_tgt = 0;
   1389     RECOMP_REGS_LOCALS
   1390     RECOMP_ENTER(0x36166740u);
   1391 
   1392 L_36166740:
   1393     ecx = ebp + (-0x1C); /* 0x36166740: lea ecx, [ebp - 0x1c] */
   1394 L_36166743:
   1395     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   1396     { RECOMP_REGS_OUT(); return; } /* end of function */
   1397   _ljump:
   1398     switch (_itail_tgt) {
   1399       case 0x36166740u: goto L_36166740;
   1400       case 0x36166743u: goto L_36166743;
   1401       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1402     }
   1403     RECOMP_REGS_OUT();
   1404 }
   1405 
   1406 void sub_36166749(void) {
   1407     int _fpu_cmp = 0;
   1408     uint32_t _cf = 0;
   1409     int _df = 1;
   1410     uint32_t _flag_k = FK_NONE;
   1411     uint32_t _flag_a = 0, _flag_b = 0;
   1412     uint32_t _itail_tgt = 0;
   1413     RECOMP_REGS_LOCALS
   1414     RECOMP_ENTER(0x36166749u);
   1415 
   1416     goto L_36166749;
   1417 L_3615FD76:
   1418     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1419 L_36166749:
   1420     eax = 0x3618B950u; /* 0x36166749: mov eax, 0x3618b950 */
   1421 L_3616674E:
   1422     RECOMP_BACKEDGE();
   1423     goto L_3615FD76; /* 0x3616674E: jmp 0x3615fd76 */
   1424     { RECOMP_REGS_OUT(); return; } /* end of function */
   1425   _ljump:
   1426     switch (_itail_tgt) {
   1427       case 0x3615FD76u: goto L_3615FD76;
   1428       case 0x36166749u: goto L_36166749;
   1429       case 0x3616674Eu: goto L_3616674E;
   1430       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1431     }
   1432     RECOMP_REGS_OUT();
   1433 }
   1434 
   1435 void sub_36166760(void) {
   1436     int _fpu_cmp = 0;
   1437     uint32_t _cf = 0;
   1438     int _df = 1;
   1439     uint32_t _flag_k = FK_NONE;
   1440     uint32_t _flag_a = 0, _flag_b = 0;
   1441     uint32_t _itail_tgt = 0;
   1442     RECOMP_REGS_LOCALS
   1443     RECOMP_ENTER(0x36166760u);
   1444 
   1445 L_36166760:
   1446     eax = MEM32(ebp + (-0x14)); /* 0x36166760: mov eax, dword ptr [ebp - 0x14] */
   1447     PUSH32(esp, eax); /* 0x36166763: push eax */
   1448     RECOMP_ICALL(0x3615FCC4u); /* 0x36166764: call 0x3615fcc4 */ /* not lifted */
   1449     RECOMP_FLAGS_IN();
   1450     ecx = POP32_VAL(esp); /* 0x36166769: pop ecx */
   1451     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616676A: ret  */
   1452     RECOMP_REGS_OUT();
   1453 }
   1454 
   1455 void sub_3616676B(void) {
   1456     int _fpu_cmp = 0;
   1457     uint32_t _cf = 0;
   1458     int _df = 1;
   1459     uint32_t _flag_k = FK_NONE;
   1460     uint32_t _flag_a = 0, _flag_b = 0;
   1461     uint32_t _itail_tgt = 0;
   1462     RECOMP_REGS_LOCALS
   1463     RECOMP_ENTER(0x3616676Bu);
   1464 
   1465 L_3616676B:
   1466     eax = MEM32(ebp + (-0x18)); /* 0x3616676B: mov eax, dword ptr [ebp - 0x18] */
   1467 L_3616676E:
   1468     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1469     eax = eax & 1; /* 0x3616676E: and eax, 1 */
   1470     _cf = 0;
   1471     _flag_k = FK_TEST;
   1472 L_36166771:
   1473     /* test eax, eax */ /* 0x36166771: test eax, eax */
   1474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1475     _cf = 0;
   1476     _flag_k = FK_TEST;
   1477 L_36166773:
   1478     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166782; /* 0x36166773: je 0x36166782 */
   1479 L_36166779:
   1480     ecx = ebp + (-0x2C); /* 0x36166779: lea ecx, [ebp - 0x2c] */
   1481 L_3616677C:
   1482     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   1483 L_36166782:
   1484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166782: ret  */
   1485   _ljump:
   1486     switch (_itail_tgt) {
   1487       case 0x3616676Bu: goto L_3616676B;
   1488       case 0x3616676Eu: goto L_3616676E;
   1489       case 0x36166771u: goto L_36166771;
   1490       case 0x36166773u: goto L_36166773;
   1491       case 0x36166779u: goto L_36166779;
   1492       case 0x3616677Cu: goto L_3616677C;
   1493       case 0x36166782u: goto L_36166782;
   1494       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1495     }
   1496     RECOMP_REGS_OUT();
   1497 }
   1498 
   1499 void sub_36166783(void) {
   1500     int _fpu_cmp = 0;
   1501     uint32_t _cf = 0;
   1502     int _df = 1;
   1503     uint32_t _flag_k = FK_NONE;
   1504     uint32_t _flag_a = 0, _flag_b = 0;
   1505     uint32_t _itail_tgt = 0;
   1506     RECOMP_REGS_LOCALS
   1507     RECOMP_ENTER(0x36166783u);
   1508 
   1509     goto L_36166783;
   1510 L_3615FD76:
   1511     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1512 L_36166783:
   1513     eax = 0x3618B978u; /* 0x36166783: mov eax, 0x3618b978 */
   1514 L_36166788:
   1515     RECOMP_BACKEDGE();
   1516     goto L_3615FD76; /* 0x36166788: jmp 0x3615fd76 */
   1517     { RECOMP_REGS_OUT(); return; } /* end of function */
   1518   _ljump:
   1519     switch (_itail_tgt) {
   1520       case 0x3615FD76u: goto L_3615FD76;
   1521       case 0x36166783u: goto L_36166783;
   1522       case 0x36166788u: goto L_36166788;
   1523       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1524     }
   1525     RECOMP_REGS_OUT();
   1526 }
   1527 
   1528 void sub_36166790(void) {
   1529     int _fpu_cmp = 0;
   1530     uint32_t _cf = 0;
   1531     int _df = 1;
   1532     uint32_t _flag_k = FK_NONE;
   1533     uint32_t _flag_a = 0, _flag_b = 0;
   1534     uint32_t _itail_tgt = 0;
   1535     RECOMP_REGS_LOCALS
   1536     RECOMP_ENTER(0x36166790u);
   1537 
   1538 L_36166790:
   1539     eax = MEM32(ebp + (-0x14)); /* 0x36166790: mov eax, dword ptr [ebp - 0x14] */
   1540     PUSH32(esp, eax); /* 0x36166793: push eax */
   1541     RECOMP_ICALL(0x3615FCC4u); /* 0x36166794: call 0x3615fcc4 */ /* not lifted */
   1542     RECOMP_FLAGS_IN();
   1543     ecx = POP32_VAL(esp); /* 0x36166799: pop ecx */
   1544     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616679A: ret  */
   1545     RECOMP_REGS_OUT();
   1546 }
   1547 
   1548 void sub_3616679B(void) {
   1549     int _fpu_cmp = 0;
   1550     uint32_t _cf = 0;
   1551     int _df = 1;
   1552     uint32_t _flag_k = FK_NONE;
   1553     uint32_t _flag_a = 0, _flag_b = 0;
   1554     uint32_t _itail_tgt = 0;
   1555     RECOMP_REGS_LOCALS
   1556     RECOMP_ENTER(0x3616679Bu);
   1557 
   1558     goto L_3616679B;
   1559 L_3615FD76:
   1560     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1561 L_3616679B:
   1562     eax = 0x3618B9B0u; /* 0x3616679B: mov eax, 0x3618b9b0 */
   1563 L_361667A0:
   1564     RECOMP_BACKEDGE();
   1565     goto L_3615FD76; /* 0x361667A0: jmp 0x3615fd76 */
   1566     { RECOMP_REGS_OUT(); return; } /* end of function */
   1567   _ljump:
   1568     switch (_itail_tgt) {
   1569       case 0x3615FD76u: goto L_3615FD76;
   1570       case 0x3616679Bu: goto L_3616679B;
   1571       case 0x361667A0u: goto L_361667A0;
   1572       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1573     }
   1574     RECOMP_REGS_OUT();
   1575 }
   1576 
   1577 void sub_361667B0(void) {
   1578     int _fpu_cmp = 0;
   1579     uint32_t _cf = 0;
   1580     int _df = 1;
   1581     uint32_t _flag_k = FK_NONE;
   1582     uint32_t _flag_a = 0, _flag_b = 0;
   1583     uint32_t _itail_tgt = 0;
   1584     RECOMP_REGS_LOCALS
   1585     RECOMP_ENTER(0x361667B0u);
   1586 
   1587 L_361667B0:
   1588     eax = MEM32(ebp + (-0x10)); /* 0x361667B0: mov eax, dword ptr [ebp - 0x10] */
   1589     PUSH32(esp, eax); /* 0x361667B3: push eax */
   1590     RECOMP_ICALL(0x3615FCC4u); /* 0x361667B4: call 0x3615fcc4 */ /* not lifted */
   1591     RECOMP_FLAGS_IN();
   1592     ecx = POP32_VAL(esp); /* 0x361667B9: pop ecx */
   1593     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361667BA: ret  */
   1594     RECOMP_REGS_OUT();
   1595 }
   1596 
   1597 void sub_361667BB(void) {
   1598     int _fpu_cmp = 0;
   1599     uint32_t _cf = 0;
   1600     int _df = 1;
   1601     uint32_t _flag_k = FK_NONE;
   1602     uint32_t _flag_a = 0, _flag_b = 0;
   1603     uint32_t _itail_tgt = 0;
   1604     RECOMP_REGS_LOCALS
   1605     RECOMP_ENTER(0x361667BBu);
   1606 
   1607     goto L_361667BB;
   1608 L_3615FD76:
   1609     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1610 L_361667BB:
   1611     eax = 0x3618B9D8u; /* 0x361667BB: mov eax, 0x3618b9d8 */
   1612 L_361667C0:
   1613     RECOMP_BACKEDGE();
   1614     goto L_3615FD76; /* 0x361667C0: jmp 0x3615fd76 */
   1615     { RECOMP_REGS_OUT(); return; } /* end of function */
   1616   _ljump:
   1617     switch (_itail_tgt) {
   1618       case 0x3615FD76u: goto L_3615FD76;
   1619       case 0x361667BBu: goto L_361667BB;
   1620       case 0x361667C0u: goto L_361667C0;
   1621       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1622     }
   1623     RECOMP_REGS_OUT();
   1624 }
   1625 
   1626 void sub_361667D0(void) {
   1627     int _fpu_cmp = 0;
   1628     uint32_t _cf = 0;
   1629     int _df = 1;
   1630     uint32_t _flag_k = FK_NONE;
   1631     uint32_t _flag_a = 0, _flag_b = 0;
   1632     uint32_t _itail_tgt = 0;
   1633     RECOMP_REGS_LOCALS
   1634     RECOMP_ENTER(0x361667D0u);
   1635 
   1636 L_361667D0:
   1637     eax = MEM32(ebp + (-0x14)); /* 0x361667D0: mov eax, dword ptr [ebp - 0x14] */
   1638     PUSH32(esp, eax); /* 0x361667D3: push eax */
   1639     RECOMP_ICALL(0x3615FCC4u); /* 0x361667D4: call 0x3615fcc4 */ /* not lifted */
   1640     RECOMP_FLAGS_IN();
   1641     ecx = POP32_VAL(esp); /* 0x361667D9: pop ecx */
   1642     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361667DA: ret  */
   1643     RECOMP_REGS_OUT();
   1644 }
   1645 
   1646 void sub_361667DB(void) {
   1647     int _fpu_cmp = 0;
   1648     uint32_t _cf = 0;
   1649     int _df = 1;
   1650     uint32_t _flag_k = FK_NONE;
   1651     uint32_t _flag_a = 0, _flag_b = 0;
   1652     uint32_t _itail_tgt = 0;
   1653     RECOMP_REGS_LOCALS
   1654     RECOMP_ENTER(0x361667DBu);
   1655 
   1656     goto L_361667DB;
   1657 L_3615FD76:
   1658     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1659 L_361667DB:
   1660     eax = 0x3618BA00u; /* 0x361667DB: mov eax, 0x3618ba00 */
   1661 L_361667E0:
   1662     RECOMP_BACKEDGE();
   1663     goto L_3615FD76; /* 0x361667E0: jmp 0x3615fd76 */
   1664     { RECOMP_REGS_OUT(); return; } /* end of function */
   1665   _ljump:
   1666     switch (_itail_tgt) {
   1667       case 0x3615FD76u: goto L_3615FD76;
   1668       case 0x361667DBu: goto L_361667DB;
   1669       case 0x361667E0u: goto L_361667E0;
   1670       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1671     }
   1672     RECOMP_REGS_OUT();
   1673 }
   1674 
   1675 void sub_361667F0(void) {
   1676     int _fpu_cmp = 0;
   1677     uint32_t _cf = 0;
   1678     int _df = 1;
   1679     uint32_t _flag_k = FK_NONE;
   1680     uint32_t _flag_a = 0, _flag_b = 0;
   1681     uint32_t _itail_tgt = 0;
   1682     RECOMP_REGS_LOCALS
   1683     RECOMP_ENTER(0x361667F0u);
   1684 
   1685 L_361667F0:
   1686     eax = MEM32(ebp + (-0x14)); /* 0x361667F0: mov eax, dword ptr [ebp - 0x14] */
   1687     PUSH32(esp, eax); /* 0x361667F3: push eax */
   1688     RECOMP_ICALL(0x3615FCC4u); /* 0x361667F4: call 0x3615fcc4 */ /* not lifted */
   1689     RECOMP_FLAGS_IN();
   1690     ecx = POP32_VAL(esp); /* 0x361667F9: pop ecx */
   1691     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361667FA: ret  */
   1692     RECOMP_REGS_OUT();
   1693 }
   1694 
   1695 void sub_361667FB(void) {
   1696     int _fpu_cmp = 0;
   1697     uint32_t _cf = 0;
   1698     int _df = 1;
   1699     uint32_t _flag_k = FK_NONE;
   1700     uint32_t _flag_a = 0, _flag_b = 0;
   1701     uint32_t _itail_tgt = 0;
   1702     RECOMP_REGS_LOCALS
   1703     RECOMP_ENTER(0x361667FBu);
   1704 
   1705 L_361667FB:
   1706     eax = MEM32(ebp + (-0x14)); /* 0x361667FB: mov eax, dword ptr [ebp - 0x14] */
   1707     PUSH32(esp, eax); /* 0x361667FE: push eax */
   1708     RECOMP_ICALL(0x3615FCC4u); /* 0x361667FF: call 0x3615fcc4 */ /* not lifted */
   1709     RECOMP_FLAGS_IN();
   1710     ecx = POP32_VAL(esp); /* 0x36166804: pop ecx */
   1711     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166805: ret  */
   1712     RECOMP_REGS_OUT();
   1713 }
   1714 
   1715 void sub_36166806(void) {
   1716     int _fpu_cmp = 0;
   1717     uint32_t _cf = 0;
   1718     int _df = 1;
   1719     uint32_t _flag_k = FK_NONE;
   1720     uint32_t _flag_a = 0, _flag_b = 0;
   1721     uint32_t _itail_tgt = 0;
   1722     RECOMP_REGS_LOCALS
   1723     RECOMP_ENTER(0x36166806u);
   1724 
   1725     goto L_36166806;
   1726 L_3615FD76:
   1727     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1728 L_36166806:
   1729     eax = 0x3618BA28u; /* 0x36166806: mov eax, 0x3618ba28 */
   1730 L_3616680B:
   1731     RECOMP_BACKEDGE();
   1732     goto L_3615FD76; /* 0x3616680B: jmp 0x3615fd76 */
   1733     { RECOMP_REGS_OUT(); return; } /* end of function */
   1734   _ljump:
   1735     switch (_itail_tgt) {
   1736       case 0x3615FD76u: goto L_3615FD76;
   1737       case 0x36166806u: goto L_36166806;
   1738       case 0x3616680Bu: goto L_3616680B;
   1739       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1740     }
   1741     RECOMP_REGS_OUT();
   1742 }
   1743 
   1744 void sub_36166810(void) {
   1745     int _fpu_cmp = 0;
   1746     uint32_t _cf = 0;
   1747     int _df = 1;
   1748     uint32_t _flag_k = FK_NONE;
   1749     uint32_t _flag_a = 0, _flag_b = 0;
   1750     uint32_t _itail_tgt = 0;
   1751     RECOMP_REGS_LOCALS
   1752     RECOMP_ENTER(0x36166810u);
   1753 
   1754 L_36166810:
   1755     ecx = MEM32(ebp + (-0x10)); /* 0x36166810: mov ecx, dword ptr [ebp - 0x10] */
   1756 L_36166813:
   1757     { _itail_tgt = (uint32_t)(MEM32(0x3616FC4C)); goto _ljump; }
   1758     { RECOMP_REGS_OUT(); return; } /* end of function */
   1759   _ljump:
   1760     switch (_itail_tgt) {
   1761       case 0x36166810u: goto L_36166810;
   1762       case 0x36166813u: goto L_36166813;
   1763       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1764     }
   1765     RECOMP_REGS_OUT();
   1766 }
   1767 
   1768 void sub_36166819(void) {
   1769     int _fpu_cmp = 0;
   1770     uint32_t _cf = 0;
   1771     int _df = 1;
   1772     uint32_t _flag_k = FK_NONE;
   1773     uint32_t _flag_a = 0, _flag_b = 0;
   1774     uint32_t _itail_tgt = 0;
   1775     RECOMP_REGS_LOCALS
   1776     RECOMP_ENTER(0x36166819u);
   1777 
   1778     goto L_36166819;
   1779 L_3615FD76:
   1780     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1781 L_36166819:
   1782     eax = 0x3618BA58u; /* 0x36166819: mov eax, 0x3618ba58 */
   1783 L_3616681E:
   1784     RECOMP_BACKEDGE();
   1785     goto L_3615FD76; /* 0x3616681E: jmp 0x3615fd76 */
   1786     { RECOMP_REGS_OUT(); return; } /* end of function */
   1787   _ljump:
   1788     switch (_itail_tgt) {
   1789       case 0x3615FD76u: goto L_3615FD76;
   1790       case 0x36166819u: goto L_36166819;
   1791       case 0x3616681Eu: goto L_3616681E;
   1792       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1793     }
   1794     RECOMP_REGS_OUT();
   1795 }
   1796 
   1797 void sub_36166830(void) {
   1798     int _fpu_cmp = 0;
   1799     uint32_t _cf = 0;
   1800     int _df = 1;
   1801     uint32_t _flag_k = FK_NONE;
   1802     uint32_t _flag_a = 0, _flag_b = 0;
   1803     uint32_t _itail_tgt = 0;
   1804     RECOMP_REGS_LOCALS
   1805     RECOMP_ENTER(0x36166830u);
   1806 
   1807     goto L_36166830;
   1808 L_3609CC20:
   1809     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
   1810     ebp = esp; /* 0x3609CC21: mov ebp, esp */
   1811     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
   1812     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
   1813     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
   1814     PUSH32(esp, eax); /* 0x3609CC30: push eax */
   1815     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
   1816     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1817     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1818     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
   1819     _flag_k = FK_CMP;
   1820     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
   1821     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
   1822     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
   1823     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
   1824     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
   1825     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
   1826     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
   1827     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
   1828     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
   1829     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
   1830     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
   1831     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
   1832     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
   1833     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
   1834     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
   1835     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1836     _cf = 0;
   1837     _flag_k = FK_TEST;
   1838     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
   1839     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
   1840 L_3609CC97:
   1841     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
   1842     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
   1843     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
   1844     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1846     _flag_k = FK_CMP;
   1847     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
   1848     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
   1849 L_3609CCA3:
   1850     eax = edi; /* 0x3609CCA3: mov eax, edi */
   1851     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
   1852     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
   1853     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
   1854     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
   1855     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
   1856     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
   1857     RECOMP_FLAGS_IN();
   1858     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
   1859     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
   1860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1861     _flag_k = FK_CMP;
   1862     RECOMP_BACKEDGE();
   1863     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
   1864 L_3609CCB8:
   1865     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
   1866     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
   1867     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
   1868     RECOMP_FLAGS_IN();
   1869     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1870     eax = 0; /* 0x3609CCC1: xor eax, eax */
   1871     _cf = 0;
   1872     _flag_k = FK_TEST;
   1873     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
   1874     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
   1875     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
   1876     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
   1877     RECOMP_FLAGS_IN();
   1878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1880     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
   1881     _flag_k = FK_ADD;
   1882 L_3609CCD2:
   1883     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
   1884     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
   1885     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1886     _cf = 0;
   1887     _flag_k = FK_TEST;
   1888     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
   1889     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
   1890 L_3609CCE6:
   1891     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
   1892     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
   1893     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
   1894     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1896     _flag_k = FK_CMP;
   1897     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
   1898     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
   1899 L_3609CCF2:
   1900     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
   1901     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
   1902     eax = edi; /* 0x3609CCF7: mov eax, edi */
   1903     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
   1904     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
   1905     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
   1906     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
   1907     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
   1908     RECOMP_FLAGS_IN();
   1909     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
   1910     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
   1911     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
   1912     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
   1913     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
   1914     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
   1915     PUSH32(esp, eax); /* 0x3609CD15: push eax */
   1916     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
   1917     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
   1918     RECOMP_FLAGS_IN();
   1919     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
   1920     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
   1921     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1922     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1923     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
   1924     _flag_k = FK_ADD;
   1925     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1926     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
   1927     _flag_k = FK_DEC;
   1928     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
   1929     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1930     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1931     _flag_k = FK_CMP;
   1932     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
   1933     RECOMP_BACKEDGE();
   1934     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
   1935 L_3609CD2F:
   1936     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
   1937     PUSH32(esp, eax); /* 0x3609CD32: push eax */
   1938     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
   1939     RECOMP_FLAGS_IN();
   1940     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1941     eax = 0; /* 0x3609CD38: xor eax, eax */
   1942     _cf = 0;
   1943     _flag_k = FK_TEST;
   1944     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
   1945     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
   1946     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
   1947     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
   1948     RECOMP_FLAGS_IN();
   1949     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1950     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1951     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
   1952     _flag_k = FK_ADD;
   1953 L_3609CD49:
   1954     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
   1955     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
   1956     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1957     _cf = 0;
   1958     _flag_k = FK_TEST;
   1959     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
   1960     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
   1961 L_3609CD5D:
   1962     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
   1963     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
   1964     RECOMP_FLAGS_IN();
   1965     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1966     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1967     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
   1968     _flag_k = FK_ADD;
   1969 L_3609CD66:
   1970     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
   1971     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
   1972     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1973     _cf = 0;
   1974     _flag_k = FK_TEST;
   1975     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
   1976     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
   1977 L_3609CD7A:
   1978     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
   1979     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
   1980     RECOMP_FLAGS_IN();
   1981     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1982     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1983     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
   1984     _flag_k = FK_ADD;
   1985 L_3609CD83:
   1986     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
   1987     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
   1988     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1989     _cf = 0;
   1990     _flag_k = FK_TEST;
   1991     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
   1992     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
   1993 L_3609CD97:
   1994     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
   1995     RECOMP_FLAGS_IN();
   1996     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
   1997 L_3609CDA6:
   1998     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
   1999     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2000     _cf = (ecx) != 0;
   2001     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
   2002     _flag_k = FK_CMP;
   2003     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
   2004       ecx = _sc ? 0xFFFFFFFFu : 0;
   2005       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2006       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2007     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
   2008     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2009     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
   2010     _cf = 0;
   2011     _flag_k = FK_TEST;
   2012     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
   2013     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
   2014     RECOMP_FLAGS_IN();
   2015     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
   2016     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2017     _cf = (ecx) != 0;
   2018     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
   2019     _flag_k = FK_CMP;
   2020     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
   2021       ecx = _sc ? 0xFFFFFFFFu : 0;
   2022       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2023       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2024     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
   2025     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2026     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
   2027     _cf = 0;
   2028     _flag_k = FK_TEST;
   2029     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
   2030     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
   2031     RECOMP_FLAGS_IN();
   2032     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
   2033     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
   2034     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
   2035     RECOMP_FLAGS_IN();
   2036     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
   2037     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
   2038     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
   2039     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
   2040     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
   2041     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
   2042     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
   2043     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
   2044 L_36166830:
   2045     ecx = MEM32(ebp + (-0x10)); /* 0x36166830: mov ecx, dword ptr [ebp - 0x10] */
   2046     RECOMP_BACKEDGE();
   2047     goto L_3609CC20; /* 0x36166833: jmp 0x3609cc20 */
   2048     { RECOMP_REGS_OUT(); return; } /* end of function */
   2049     RECOMP_REGS_OUT();
   2050 }
   2051 
   2052 void sub_36166838(void) {
   2053     int _fpu_cmp = 0;
   2054     uint32_t _cf = 0;
   2055     int _df = 1;
   2056     uint32_t _flag_k = FK_NONE;
   2057     uint32_t _flag_a = 0, _flag_b = 0;
   2058     uint32_t _itail_tgt = 0;
   2059     RECOMP_REGS_LOCALS
   2060     RECOMP_ENTER(0x36166838u);
   2061 
   2062 L_36166838:
   2063     eax = MEM32(ebp + 0xC); /* 0x36166838: mov eax, dword ptr [ebp + 0xc] */
   2064     PUSH32(esp, eax); /* 0x3616683B: push eax */
   2065     RECOMP_ICALL(0x3615FCC4u); /* 0x3616683C: call 0x3615fcc4 */ /* not lifted */
   2066     RECOMP_FLAGS_IN();
   2067     ecx = POP32_VAL(esp); /* 0x36166841: pop ecx */
   2068     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166842: ret  */
   2069     RECOMP_REGS_OUT();
   2070 }
   2071 
   2072 void sub_36166843(void) {
   2073     int _fpu_cmp = 0;
   2074     uint32_t _cf = 0;
   2075     int _df = 1;
   2076     uint32_t _flag_k = FK_NONE;
   2077     uint32_t _flag_a = 0, _flag_b = 0;
   2078     uint32_t _itail_tgt = 0;
   2079     RECOMP_REGS_LOCALS
   2080     RECOMP_ENTER(0x36166843u);
   2081 
   2082     goto L_36166843;
   2083 L_3615FD76:
   2084     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2085 L_36166843:
   2086     eax = 0x3618BA80u; /* 0x36166843: mov eax, 0x3618ba80 */
   2087 L_36166848:
   2088     RECOMP_BACKEDGE();
   2089     goto L_3615FD76; /* 0x36166848: jmp 0x3615fd76 */
   2090     { RECOMP_REGS_OUT(); return; } /* end of function */
   2091   _ljump:
   2092     switch (_itail_tgt) {
   2093       case 0x3615FD76u: goto L_3615FD76;
   2094       case 0x36166843u: goto L_36166843;
   2095       case 0x36166848u: goto L_36166848;
   2096       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2097     }
   2098     RECOMP_REGS_OUT();
   2099 }
   2100 
   2101 void sub_36166850(void) {
   2102     int _fpu_cmp = 0;
   2103     uint32_t _cf = 0;
   2104     int _df = 1;
   2105     uint32_t _flag_k = FK_NONE;
   2106     uint32_t _flag_a = 0, _flag_b = 0;
   2107     uint32_t _itail_tgt = 0;
   2108     RECOMP_REGS_LOCALS
   2109     RECOMP_ENTER(0x36166850u);
   2110 
   2111 L_36166850:
   2112     ecx = ebp + (-0x20); /* 0x36166850: lea ecx, [ebp - 0x20] */
   2113 L_36166853:
   2114     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2115     { RECOMP_REGS_OUT(); return; } /* end of function */
   2116   _ljump:
   2117     switch (_itail_tgt) {
   2118       case 0x36166850u: goto L_36166850;
   2119       case 0x36166853u: goto L_36166853;
   2120       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2121     }
   2122     RECOMP_REGS_OUT();
   2123 }
   2124 
   2125 void sub_36166859(void) {
   2126     int _fpu_cmp = 0;
   2127     uint32_t _cf = 0;
   2128     int _df = 1;
   2129     uint32_t _flag_k = FK_NONE;
   2130     uint32_t _flag_a = 0, _flag_b = 0;
   2131     uint32_t _itail_tgt = 0;
   2132     RECOMP_REGS_LOCALS
   2133     RECOMP_ENTER(0x36166859u);
   2134 
   2135     goto L_36166859;
   2136 L_3615FD76:
   2137     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2138 L_36166859:
   2139     eax = 0x3618BAB0u; /* 0x36166859: mov eax, 0x3618bab0 */
   2140 L_3616685E:
   2141     RECOMP_BACKEDGE();
   2142     goto L_3615FD76; /* 0x3616685E: jmp 0x3615fd76 */
   2143     { RECOMP_REGS_OUT(); return; } /* end of function */
   2144   _ljump:
   2145     switch (_itail_tgt) {
   2146       case 0x3615FD76u: goto L_3615FD76;
   2147       case 0x36166859u: goto L_36166859;
   2148       case 0x3616685Eu: goto L_3616685E;
   2149       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2150     }
   2151     RECOMP_REGS_OUT();
   2152 }
   2153 
   2154 void sub_36166870(void) {
   2155     int _fpu_cmp = 0;
   2156     uint32_t _cf = 0;
   2157     int _df = 1;
   2158     uint32_t _flag_k = FK_NONE;
   2159     uint32_t _flag_a = 0, _flag_b = 0;
   2160     uint32_t _itail_tgt = 0;
   2161     RECOMP_REGS_LOCALS
   2162     RECOMP_ENTER(0x36166870u);
   2163 
   2164 L_36166870:
   2165     ecx = ebp + (-0x1C); /* 0x36166870: lea ecx, [ebp - 0x1c] */
   2166 L_36166873:
   2167     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2168     { RECOMP_REGS_OUT(); return; } /* end of function */
   2169   _ljump:
   2170     switch (_itail_tgt) {
   2171       case 0x36166870u: goto L_36166870;
   2172       case 0x36166873u: goto L_36166873;
   2173       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2174     }
   2175     RECOMP_REGS_OUT();
   2176 }
   2177 
   2178 void sub_36166879(void) {
   2179     int _fpu_cmp = 0;
   2180     uint32_t _cf = 0;
   2181     int _df = 1;
   2182     uint32_t _flag_k = FK_NONE;
   2183     uint32_t _flag_a = 0, _flag_b = 0;
   2184     uint32_t _itail_tgt = 0;
   2185     RECOMP_REGS_LOCALS
   2186     RECOMP_ENTER(0x36166879u);
   2187 
   2188     goto L_36166879;
   2189 L_3615FD76:
   2190     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2191 L_36166879:
   2192     eax = 0x3618BAD8u; /* 0x36166879: mov eax, 0x3618bad8 */
   2193 L_3616687E:
   2194     RECOMP_BACKEDGE();
   2195     goto L_3615FD76; /* 0x3616687E: jmp 0x3615fd76 */
   2196     { RECOMP_REGS_OUT(); return; } /* end of function */
   2197   _ljump:
   2198     switch (_itail_tgt) {
   2199       case 0x3615FD76u: goto L_3615FD76;
   2200       case 0x36166879u: goto L_36166879;
   2201       case 0x3616687Eu: goto L_3616687E;
   2202       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2203     }
   2204     RECOMP_REGS_OUT();
   2205 }
   2206 
   2207 void sub_36166890(void) {
   2208     int _fpu_cmp = 0;
   2209     uint32_t _cf = 0;
   2210     int _df = 1;
   2211     uint32_t _flag_k = FK_NONE;
   2212     uint32_t _flag_a = 0, _flag_b = 0;
   2213     uint32_t _itail_tgt = 0;
   2214     RECOMP_REGS_LOCALS
   2215     RECOMP_ENTER(0x36166890u);
   2216 
   2217     goto L_36166890;
   2218 L_3609CC20:
   2219     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
   2220     ebp = esp; /* 0x3609CC21: mov ebp, esp */
   2221     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
   2222     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
   2223     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
   2224     PUSH32(esp, eax); /* 0x3609CC30: push eax */
   2225     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
   2226     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2227     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2228     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
   2229     _flag_k = FK_CMP;
   2230     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
   2231     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
   2232     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
   2233     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
   2234     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
   2235     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
   2236     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
   2237     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
   2238     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
   2239     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
   2240     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
   2241     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
   2242     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
   2243     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
   2244     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
   2245     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2246     _cf = 0;
   2247     _flag_k = FK_TEST;
   2248     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
   2249     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
   2250 L_3609CC97:
   2251     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
   2252     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
   2253     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
   2254     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2256     _flag_k = FK_CMP;
   2257     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
   2258     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
   2259 L_3609CCA3:
   2260     eax = edi; /* 0x3609CCA3: mov eax, edi */
   2261     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
   2262     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
   2263     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
   2264     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
   2265     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
   2266     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
   2267     RECOMP_FLAGS_IN();
   2268     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
   2269     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
   2270     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2271     _flag_k = FK_CMP;
   2272     RECOMP_BACKEDGE();
   2273     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
   2274 L_3609CCB8:
   2275     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
   2276     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
   2277     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
   2278     RECOMP_FLAGS_IN();
   2279     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2280     eax = 0; /* 0x3609CCC1: xor eax, eax */
   2281     _cf = 0;
   2282     _flag_k = FK_TEST;
   2283     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
   2284     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
   2285     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
   2286     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
   2287     RECOMP_FLAGS_IN();
   2288     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2289     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2290     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
   2291     _flag_k = FK_ADD;
   2292 L_3609CCD2:
   2293     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
   2294     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
   2295     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2296     _cf = 0;
   2297     _flag_k = FK_TEST;
   2298     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
   2299     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
   2300 L_3609CCE6:
   2301     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
   2302     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
   2303     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
   2304     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2306     _flag_k = FK_CMP;
   2307     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
   2308     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
   2309 L_3609CCF2:
   2310     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
   2311     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
   2312     eax = edi; /* 0x3609CCF7: mov eax, edi */
   2313     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
   2314     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
   2315     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
   2316     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
   2317     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
   2318     RECOMP_FLAGS_IN();
   2319     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
   2320     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
   2321     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
   2322     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
   2323     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
   2324     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
   2325     PUSH32(esp, eax); /* 0x3609CD15: push eax */
   2326     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
   2327     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
   2328     RECOMP_FLAGS_IN();
   2329     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
   2330     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
   2331     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2332     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2333     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
   2334     _flag_k = FK_ADD;
   2335     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2336     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
   2337     _flag_k = FK_DEC;
   2338     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
   2339     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2341     _flag_k = FK_CMP;
   2342     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
   2343     RECOMP_BACKEDGE();
   2344     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
   2345 L_3609CD2F:
   2346     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
   2347     PUSH32(esp, eax); /* 0x3609CD32: push eax */
   2348     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
   2349     RECOMP_FLAGS_IN();
   2350     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2351     eax = 0; /* 0x3609CD38: xor eax, eax */
   2352     _cf = 0;
   2353     _flag_k = FK_TEST;
   2354     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
   2355     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
   2356     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
   2357     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
   2358     RECOMP_FLAGS_IN();
   2359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2361     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
   2362     _flag_k = FK_ADD;
   2363 L_3609CD49:
   2364     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
   2365     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
   2366     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2367     _cf = 0;
   2368     _flag_k = FK_TEST;
   2369     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
   2370     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
   2371 L_3609CD5D:
   2372     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
   2373     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
   2374     RECOMP_FLAGS_IN();
   2375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2377     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
   2378     _flag_k = FK_ADD;
   2379 L_3609CD66:
   2380     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
   2381     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
   2382     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2383     _cf = 0;
   2384     _flag_k = FK_TEST;
   2385     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
   2386     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
   2387 L_3609CD7A:
   2388     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
   2389     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
   2390     RECOMP_FLAGS_IN();
   2391     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2393     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
   2394     _flag_k = FK_ADD;
   2395 L_3609CD83:
   2396     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
   2397     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
   2398     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2399     _cf = 0;
   2400     _flag_k = FK_TEST;
   2401     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
   2402     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
   2403 L_3609CD97:
   2404     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
   2405     RECOMP_FLAGS_IN();
   2406     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
   2407 L_3609CDA6:
   2408     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
   2409     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2410     _cf = (ecx) != 0;
   2411     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
   2412     _flag_k = FK_CMP;
   2413     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
   2414       ecx = _sc ? 0xFFFFFFFFu : 0;
   2415       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2416       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2417     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
   2418     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2419     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
   2420     _cf = 0;
   2421     _flag_k = FK_TEST;
   2422     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
   2423     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
   2424     RECOMP_FLAGS_IN();
   2425     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
   2426     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2427     _cf = (ecx) != 0;
   2428     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
   2429     _flag_k = FK_CMP;
   2430     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
   2431       ecx = _sc ? 0xFFFFFFFFu : 0;
   2432       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2433       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2434     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
   2435     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2436     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
   2437     _cf = 0;
   2438     _flag_k = FK_TEST;
   2439     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
   2440     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
   2441     RECOMP_FLAGS_IN();
   2442     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
   2443     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
   2444     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
   2445     RECOMP_FLAGS_IN();
   2446     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
   2447     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
   2448     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
   2449     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
   2450     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
   2451     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
   2452     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
   2453     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
   2454 L_36166890:
   2455     ecx = MEM32(ebp + (-0x10)); /* 0x36166890: mov ecx, dword ptr [ebp - 0x10] */
   2456     RECOMP_BACKEDGE();
   2457     goto L_3609CC20; /* 0x36166893: jmp 0x3609cc20 */
   2458     { RECOMP_REGS_OUT(); return; } /* end of function */
   2459     RECOMP_REGS_OUT();
   2460 }
   2461 
   2462 void sub_36166898(void) {
   2463     int _fpu_cmp = 0;
   2464     uint32_t _cf = 0;
   2465     int _df = 1;
   2466     uint32_t _flag_k = FK_NONE;
   2467     uint32_t _flag_a = 0, _flag_b = 0;
   2468     uint32_t _itail_tgt = 0;
   2469     RECOMP_REGS_LOCALS
   2470     RECOMP_ENTER(0x36166898u);
   2471 
   2472     goto L_36166898;
   2473 L_3615FD76:
   2474     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2475 L_36166898:
   2476     eax = 0x3618BB00u; /* 0x36166898: mov eax, 0x3618bb00 */
   2477 L_3616689D:
   2478     RECOMP_BACKEDGE();
   2479     goto L_3615FD76; /* 0x3616689D: jmp 0x3615fd76 */
   2480     { RECOMP_REGS_OUT(); return; } /* end of function */
   2481   _ljump:
   2482     switch (_itail_tgt) {
   2483       case 0x3615FD76u: goto L_3615FD76;
   2484       case 0x36166898u: goto L_36166898;
   2485       case 0x3616689Du: goto L_3616689D;
   2486       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2487     }
   2488     RECOMP_REGS_OUT();
   2489 }
   2490 
   2491 void sub_361668B0(void) {
   2492     int _fpu_cmp = 0;
   2493     uint32_t _cf = 0;
   2494     int _df = 1;
   2495     uint32_t _flag_k = FK_NONE;
   2496     uint32_t _flag_a = 0, _flag_b = 0;
   2497     uint32_t _itail_tgt = 0;
   2498     RECOMP_REGS_LOCALS
   2499     RECOMP_ENTER(0x361668B0u);
   2500 
   2501 L_361668B0:
   2502     eax = MEM32(ebp + (-0x10)); /* 0x361668B0: mov eax, dword ptr [ebp - 0x10] */
   2503     PUSH32(esp, eax); /* 0x361668B3: push eax */
   2504     RECOMP_ICALL(0x3615FCC4u); /* 0x361668B4: call 0x3615fcc4 */ /* not lifted */
   2505     RECOMP_FLAGS_IN();
   2506     ecx = POP32_VAL(esp); /* 0x361668B9: pop ecx */
   2507     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361668BA: ret  */
   2508     RECOMP_REGS_OUT();
   2509 }
   2510 
   2511 void sub_361668BB(void) {
   2512     int _fpu_cmp = 0;
   2513     uint32_t _cf = 0;
   2514     int _df = 1;
   2515     uint32_t _flag_k = FK_NONE;
   2516     uint32_t _flag_a = 0, _flag_b = 0;
   2517     uint32_t _itail_tgt = 0;
   2518     RECOMP_REGS_LOCALS
   2519     RECOMP_ENTER(0x361668BBu);
   2520 
   2521 L_361668BB:
   2522     eax = MEM32(ebp + 0x8); /* 0x361668BB: mov eax, dword ptr [ebp + 8] */
   2523     PUSH32(esp, eax); /* 0x361668BE: push eax */
   2524     RECOMP_ICALL(0x3615FCC4u); /* 0x361668BF: call 0x3615fcc4 */ /* not lifted */
   2525     RECOMP_FLAGS_IN();
   2526     ecx = POP32_VAL(esp); /* 0x361668C4: pop ecx */
   2527     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361668C5: ret  */
   2528     RECOMP_REGS_OUT();
   2529 }
   2530 
   2531 void sub_361668C6(void) {
   2532     int _fpu_cmp = 0;
   2533     uint32_t _cf = 0;
   2534     int _df = 1;
   2535     uint32_t _flag_k = FK_NONE;
   2536     uint32_t _flag_a = 0, _flag_b = 0;
   2537     uint32_t _itail_tgt = 0;
   2538     RECOMP_REGS_LOCALS
   2539     RECOMP_ENTER(0x361668C6u);
   2540 
   2541     goto L_361668C6;
   2542 L_3615FD76:
   2543     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2544 L_361668C6:
   2545     eax = 0x3618BB28u; /* 0x361668C6: mov eax, 0x3618bb28 */
   2546 L_361668CB:
   2547     RECOMP_BACKEDGE();
   2548     goto L_3615FD76; /* 0x361668CB: jmp 0x3615fd76 */
   2549     { RECOMP_REGS_OUT(); return; } /* end of function */
   2550   _ljump:
   2551     switch (_itail_tgt) {
   2552       case 0x3615FD76u: goto L_3615FD76;
   2553       case 0x361668C6u: goto L_361668C6;
   2554       case 0x361668CBu: goto L_361668CB;
   2555       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2556     }
   2557     RECOMP_REGS_OUT();
   2558 }
   2559 
   2560 void sub_361668D0(void) {
   2561     int _fpu_cmp = 0;
   2562     uint32_t _cf = 0;
   2563     int _df = 1;
   2564     uint32_t _flag_k = FK_NONE;
   2565     uint32_t _flag_a = 0, _flag_b = 0;
   2566     uint32_t _itail_tgt = 0;
   2567     RECOMP_REGS_LOCALS
   2568     RECOMP_ENTER(0x361668D0u);
   2569 
   2570 L_361668D0:
   2571     ecx = ebp + (-0x20); /* 0x361668D0: lea ecx, [ebp - 0x20] */
   2572 L_361668D3:
   2573     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2574     { RECOMP_REGS_OUT(); return; } /* end of function */
   2575   _ljump:
   2576     switch (_itail_tgt) {
   2577       case 0x361668D0u: goto L_361668D0;
   2578       case 0x361668D3u: goto L_361668D3;
   2579       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2580     }
   2581     RECOMP_REGS_OUT();
   2582 }
   2583 
   2584 void sub_361668D9(void) {
   2585     int _fpu_cmp = 0;
   2586     uint32_t _cf = 0;
   2587     int _df = 1;
   2588     uint32_t _flag_k = FK_NONE;
   2589     uint32_t _flag_a = 0, _flag_b = 0;
   2590     uint32_t _itail_tgt = 0;
   2591     RECOMP_REGS_LOCALS
   2592     RECOMP_ENTER(0x361668D9u);
   2593 
   2594     goto L_361668D9;
   2595 L_3615FD76:
   2596     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2597 L_361668D9:
   2598     eax = 0x3618BB58u; /* 0x361668D9: mov eax, 0x3618bb58 */
   2599 L_361668DE:
   2600     RECOMP_BACKEDGE();
   2601     goto L_3615FD76; /* 0x361668DE: jmp 0x3615fd76 */
   2602     { RECOMP_REGS_OUT(); return; } /* end of function */
   2603   _ljump:
   2604     switch (_itail_tgt) {
   2605       case 0x3615FD76u: goto L_3615FD76;
   2606       case 0x361668D9u: goto L_361668D9;
   2607       case 0x361668DEu: goto L_361668DE;
   2608       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2609     }
   2610     RECOMP_REGS_OUT();
   2611 }
   2612 
   2613 void sub_361668F0(void) {
   2614     int _fpu_cmp = 0;
   2615     uint32_t _cf = 0;
   2616     int _df = 1;
   2617     uint32_t _flag_k = FK_NONE;
   2618     uint32_t _flag_a = 0, _flag_b = 0;
   2619     uint32_t _itail_tgt = 0;
   2620     RECOMP_REGS_LOCALS
   2621     RECOMP_ENTER(0x361668F0u);
   2622 
   2623 L_361668F0:
   2624     ecx = ebp + (-0x1C); /* 0x361668F0: lea ecx, [ebp - 0x1c] */
   2625 L_361668F3:
   2626     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2627     { RECOMP_REGS_OUT(); return; } /* end of function */
   2628   _ljump:
   2629     switch (_itail_tgt) {
   2630       case 0x361668F0u: goto L_361668F0;
   2631       case 0x361668F3u: goto L_361668F3;
   2632       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2633     }
   2634     RECOMP_REGS_OUT();
   2635 }
   2636 
   2637 void sub_361668F9(void) {
   2638     int _fpu_cmp = 0;
   2639     uint32_t _cf = 0;
   2640     int _df = 1;
   2641     uint32_t _flag_k = FK_NONE;
   2642     uint32_t _flag_a = 0, _flag_b = 0;
   2643     uint32_t _itail_tgt = 0;
   2644     RECOMP_REGS_LOCALS
   2645     RECOMP_ENTER(0x361668F9u);
   2646 
   2647     goto L_361668F9;
   2648 L_3615FD76:
   2649     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2650 L_361668F9:
   2651     eax = 0x3618BB80u; /* 0x361668F9: mov eax, 0x3618bb80 */
   2652 L_361668FE:
   2653     RECOMP_BACKEDGE();
   2654     goto L_3615FD76; /* 0x361668FE: jmp 0x3615fd76 */
   2655     { RECOMP_REGS_OUT(); return; } /* end of function */
   2656   _ljump:
   2657     switch (_itail_tgt) {
   2658       case 0x3615FD76u: goto L_3615FD76;
   2659       case 0x361668F9u: goto L_361668F9;
   2660       case 0x361668FEu: goto L_361668FE;
   2661       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2662     }
   2663     RECOMP_REGS_OUT();
   2664 }
   2665 
   2666 void sub_36166910(void) {
   2667     int _fpu_cmp = 0;
   2668     uint32_t _cf = 0;
   2669     int _df = 1;
   2670     uint32_t _flag_k = FK_NONE;
   2671     uint32_t _flag_a = 0, _flag_b = 0;
   2672     uint32_t _itail_tgt = 0;
   2673     RECOMP_REGS_LOCALS
   2674     RECOMP_ENTER(0x36166910u);
   2675 
   2676 L_36166910:
   2677     eax = MEM32(ebp + (-0x14)); /* 0x36166910: mov eax, dword ptr [ebp - 0x14] */
   2678     PUSH32(esp, eax); /* 0x36166913: push eax */
   2679     RECOMP_ICALL(0x3615FCC4u); /* 0x36166914: call 0x3615fcc4 */ /* not lifted */
   2680     RECOMP_FLAGS_IN();
   2681     ecx = POP32_VAL(esp); /* 0x36166919: pop ecx */
   2682     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616691A: ret  */
   2683     RECOMP_REGS_OUT();
   2684 }
   2685 
   2686 void sub_3616691B(void) {
   2687     int _fpu_cmp = 0;
   2688     uint32_t _cf = 0;
   2689     int _df = 1;
   2690     uint32_t _flag_k = FK_NONE;
   2691     uint32_t _flag_a = 0, _flag_b = 0;
   2692     uint32_t _itail_tgt = 0;
   2693     RECOMP_REGS_LOCALS
   2694     RECOMP_ENTER(0x3616691Bu);
   2695 
   2696 L_3616691B:
   2697     eax = MEM32(ebp + (-0x18)); /* 0x3616691B: mov eax, dword ptr [ebp - 0x18] */
   2698 L_3616691E:
   2699     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2700     eax = eax & 1; /* 0x3616691E: and eax, 1 */
   2701     _cf = 0;
   2702     _flag_k = FK_TEST;
   2703 L_36166921:
   2704     /* test eax, eax */ /* 0x36166921: test eax, eax */
   2705     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2706     _cf = 0;
   2707     _flag_k = FK_TEST;
   2708 L_36166923:
   2709     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166932; /* 0x36166923: je 0x36166932 */
   2710 L_36166929:
   2711     ecx = ebp + (-0x2C); /* 0x36166929: lea ecx, [ebp - 0x2c] */
   2712 L_3616692C:
   2713     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2714 L_36166932:
   2715     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166932: ret  */
   2716   _ljump:
   2717     switch (_itail_tgt) {
   2718       case 0x3616691Bu: goto L_3616691B;
   2719       case 0x3616691Eu: goto L_3616691E;
   2720       case 0x36166921u: goto L_36166921;
   2721       case 0x36166923u: goto L_36166923;
   2722       case 0x36166929u: goto L_36166929;
   2723       case 0x3616692Cu: goto L_3616692C;
   2724       case 0x36166932u: goto L_36166932;
   2725       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2726     }
   2727     RECOMP_REGS_OUT();
   2728 }
   2729 
   2730 void sub_36166933(void) {
   2731     int _fpu_cmp = 0;
   2732     uint32_t _cf = 0;
   2733     int _df = 1;
   2734     uint32_t _flag_k = FK_NONE;
   2735     uint32_t _flag_a = 0, _flag_b = 0;
   2736     uint32_t _itail_tgt = 0;
   2737     RECOMP_REGS_LOCALS
   2738     RECOMP_ENTER(0x36166933u);
   2739 
   2740     goto L_36166933;
   2741 L_3615FD76:
   2742     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2743 L_36166933:
   2744     eax = 0x3618BBA8u; /* 0x36166933: mov eax, 0x3618bba8 */
   2745 L_36166938:
   2746     RECOMP_BACKEDGE();
   2747     goto L_3615FD76; /* 0x36166938: jmp 0x3615fd76 */
   2748     { RECOMP_REGS_OUT(); return; } /* end of function */
   2749   _ljump:
   2750     switch (_itail_tgt) {
   2751       case 0x3615FD76u: goto L_3615FD76;
   2752       case 0x36166933u: goto L_36166933;
   2753       case 0x36166938u: goto L_36166938;
   2754       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2755     }
   2756     RECOMP_REGS_OUT();
   2757 }
   2758 
   2759 void sub_36166940(void) {
   2760     int _fpu_cmp = 0;
   2761     uint32_t _cf = 0;
   2762     int _df = 1;
   2763     uint32_t _flag_k = FK_NONE;
   2764     uint32_t _flag_a = 0, _flag_b = 0;
   2765     uint32_t _itail_tgt = 0;
   2766     RECOMP_REGS_LOCALS
   2767     RECOMP_ENTER(0x36166940u);
   2768 
   2769 L_36166940:
   2770     eax = MEM32(ebp + 0x8); /* 0x36166940: mov eax, dword ptr [ebp + 8] */
   2771     PUSH32(esp, eax); /* 0x36166943: push eax */
   2772     RECOMP_ICALL(0x3615FCC4u); /* 0x36166944: call 0x3615fcc4 */ /* not lifted */
   2773     RECOMP_FLAGS_IN();
   2774     ecx = POP32_VAL(esp); /* 0x36166949: pop ecx */
   2775     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616694A: ret  */
   2776     RECOMP_REGS_OUT();
   2777 }
   2778 
   2779 void sub_3616694B(void) {
   2780     int _fpu_cmp = 0;
   2781     uint32_t _cf = 0;
   2782     int _df = 1;
   2783     uint32_t _flag_k = FK_NONE;
   2784     uint32_t _flag_a = 0, _flag_b = 0;
   2785     uint32_t _itail_tgt = 0;
   2786     RECOMP_REGS_LOCALS
   2787     RECOMP_ENTER(0x3616694Bu);
   2788 
   2789 L_3616694B:
   2790     eax = MEM32(ebp + 0x8); /* 0x3616694B: mov eax, dword ptr [ebp + 8] */
   2791     PUSH32(esp, eax); /* 0x3616694E: push eax */
   2792     RECOMP_ICALL(0x3615FCC4u); /* 0x3616694F: call 0x3615fcc4 */ /* not lifted */
   2793     RECOMP_FLAGS_IN();
   2794     ecx = POP32_VAL(esp); /* 0x36166954: pop ecx */
   2795     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166955: ret  */
   2796     RECOMP_REGS_OUT();
   2797 }
   2798 
   2799 void sub_36166956(void) {
   2800     int _fpu_cmp = 0;
   2801     uint32_t _cf = 0;
   2802     int _df = 1;
   2803     uint32_t _flag_k = FK_NONE;
   2804     uint32_t _flag_a = 0, _flag_b = 0;
   2805     uint32_t _itail_tgt = 0;
   2806     RECOMP_REGS_LOCALS
   2807     RECOMP_ENTER(0x36166956u);
   2808 
   2809 L_36166956:
   2810     eax = MEM32(ebp + 0x8); /* 0x36166956: mov eax, dword ptr [ebp + 8] */
   2811     PUSH32(esp, eax); /* 0x36166959: push eax */
   2812     RECOMP_ICALL(0x3615FCC4u); /* 0x3616695A: call 0x3615fcc4 */ /* not lifted */
   2813     RECOMP_FLAGS_IN();
   2814     ecx = POP32_VAL(esp); /* 0x3616695F: pop ecx */
   2815     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166960: ret  */
   2816     RECOMP_REGS_OUT();
   2817 }
   2818 
   2819 void sub_36166961(void) {
   2820     int _fpu_cmp = 0;
   2821     uint32_t _cf = 0;
   2822     int _df = 1;
   2823     uint32_t _flag_k = FK_NONE;
   2824     uint32_t _flag_a = 0, _flag_b = 0;
   2825     uint32_t _itail_tgt = 0;
   2826     RECOMP_REGS_LOCALS
   2827     RECOMP_ENTER(0x36166961u);
   2828 
   2829 L_36166961:
   2830     ecx = ebp + (-0x30); /* 0x36166961: lea ecx, [ebp - 0x30] */
   2831 L_36166964:
   2832     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2833     { RECOMP_REGS_OUT(); return; } /* end of function */
   2834   _ljump:
   2835     switch (_itail_tgt) {
   2836       case 0x36166961u: goto L_36166961;
   2837       case 0x36166964u: goto L_36166964;
   2838       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2839     }
   2840     RECOMP_REGS_OUT();
   2841 }
   2842 
   2843 void sub_3616696A(void) {
   2844     int _fpu_cmp = 0;
   2845     uint32_t _cf = 0;
   2846     int _df = 1;
   2847     uint32_t _flag_k = FK_NONE;
   2848     uint32_t _flag_a = 0, _flag_b = 0;
   2849     uint32_t _itail_tgt = 0;
   2850     RECOMP_REGS_LOCALS
   2851     RECOMP_ENTER(0x3616696Au);
   2852 
   2853 L_3616696A:
   2854     ecx = ebp + (-0x20); /* 0x3616696A: lea ecx, [ebp - 0x20] */
   2855 L_3616696D:
   2856     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2857     { RECOMP_REGS_OUT(); return; } /* end of function */
   2858   _ljump:
   2859     switch (_itail_tgt) {
   2860       case 0x3616696Au: goto L_3616696A;
   2861       case 0x3616696Du: goto L_3616696D;
   2862       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2863     }
   2864     RECOMP_REGS_OUT();
   2865 }
   2866 
   2867 void sub_36166973(void) {
   2868     int _fpu_cmp = 0;
   2869     uint32_t _cf = 0;
   2870     int _df = 1;
   2871     uint32_t _flag_k = FK_NONE;
   2872     uint32_t _flag_a = 0, _flag_b = 0;
   2873     uint32_t _itail_tgt = 0;
   2874     RECOMP_REGS_LOCALS
   2875     RECOMP_ENTER(0x36166973u);
   2876 
   2877     goto L_36166973;
   2878 L_3615FD76:
   2879     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2880 L_36166973:
   2881     eax = 0x3618BBE0u; /* 0x36166973: mov eax, 0x3618bbe0 */
   2882 L_36166978:
   2883     RECOMP_BACKEDGE();
   2884     goto L_3615FD76; /* 0x36166978: jmp 0x3615fd76 */
   2885     { RECOMP_REGS_OUT(); return; } /* end of function */
   2886   _ljump:
   2887     switch (_itail_tgt) {
   2888       case 0x3615FD76u: goto L_3615FD76;
   2889       case 0x36166973u: goto L_36166973;
   2890       case 0x36166978u: goto L_36166978;
   2891       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2892     }
   2893     RECOMP_REGS_OUT();
   2894 }
   2895 
   2896 void sub_36166980(void) {
   2897     int _fpu_cmp = 0;
   2898     uint32_t _cf = 0;
   2899     int _df = 1;
   2900     uint32_t _flag_k = FK_NONE;
   2901     uint32_t _flag_a = 0, _flag_b = 0;
   2902     uint32_t _itail_tgt = 0;
   2903     RECOMP_REGS_LOCALS
   2904     RECOMP_ENTER(0x36166980u);
   2905 
   2906 L_36166980:
   2907     eax = MEM32(ebp + (-0x10)); /* 0x36166980: mov eax, dword ptr [ebp - 0x10] */
   2908     PUSH32(esp, eax); /* 0x36166983: push eax */
   2909     RECOMP_ICALL(0x3615FCC4u); /* 0x36166984: call 0x3615fcc4 */ /* not lifted */
   2910     RECOMP_FLAGS_IN();
   2911     ecx = POP32_VAL(esp); /* 0x36166989: pop ecx */
   2912     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616698A: ret  */
   2913     RECOMP_REGS_OUT();
   2914 }
   2915 
   2916 void sub_3616698B(void) {
   2917     int _fpu_cmp = 0;
   2918     uint32_t _cf = 0;
   2919     int _df = 1;
   2920     uint32_t _flag_k = FK_NONE;
   2921     uint32_t _flag_a = 0, _flag_b = 0;
   2922     uint32_t _itail_tgt = 0;
   2923     RECOMP_REGS_LOCALS
   2924     RECOMP_ENTER(0x3616698Bu);
   2925 
   2926 L_3616698B:
   2927     eax = MEM32(ebp + (-0x10)); /* 0x3616698B: mov eax, dword ptr [ebp - 0x10] */
   2928     PUSH32(esp, eax); /* 0x3616698E: push eax */
   2929     RECOMP_ICALL(0x3615FCC4u); /* 0x3616698F: call 0x3615fcc4 */ /* not lifted */
   2930     RECOMP_FLAGS_IN();
   2931     ecx = POP32_VAL(esp); /* 0x36166994: pop ecx */
   2932     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166995: ret  */
   2933     RECOMP_REGS_OUT();
   2934 }
   2935 
   2936 void sub_36166996(void) {
   2937     int _fpu_cmp = 0;
   2938     uint32_t _cf = 0;
   2939     int _df = 1;
   2940     uint32_t _flag_k = FK_NONE;
   2941     uint32_t _flag_a = 0, _flag_b = 0;
   2942     uint32_t _itail_tgt = 0;
   2943     RECOMP_REGS_LOCALS
   2944     RECOMP_ENTER(0x36166996u);
   2945 
   2946 L_36166996:
   2947     eax = MEM32(ebp + 0x8); /* 0x36166996: mov eax, dword ptr [ebp + 8] */
   2948     PUSH32(esp, eax); /* 0x36166999: push eax */
   2949     RECOMP_ICALL(0x3615FCC4u); /* 0x3616699A: call 0x3615fcc4 */ /* not lifted */
   2950     RECOMP_FLAGS_IN();
   2951     ecx = POP32_VAL(esp); /* 0x3616699F: pop ecx */
   2952     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361669A0: ret  */
   2953     RECOMP_REGS_OUT();
   2954 }
   2955 
   2956 void sub_361669A1(void) {
   2957     int _fpu_cmp = 0;
   2958     uint32_t _cf = 0;
   2959     int _df = 1;
   2960     uint32_t _flag_k = FK_NONE;
   2961     uint32_t _flag_a = 0, _flag_b = 0;
   2962     uint32_t _itail_tgt = 0;
   2963     RECOMP_REGS_LOCALS
   2964     RECOMP_ENTER(0x361669A1u);
   2965 
   2966     goto L_361669A1;
   2967 L_3615FD76:
   2968     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2969 L_361669A1:
   2970     eax = 0x3618BC28u; /* 0x361669A1: mov eax, 0x3618bc28 */
   2971 L_361669A6:
   2972     RECOMP_BACKEDGE();
   2973     goto L_3615FD76; /* 0x361669A6: jmp 0x3615fd76 */
   2974     { RECOMP_REGS_OUT(); return; } /* end of function */
   2975   _ljump:
   2976     switch (_itail_tgt) {
   2977       case 0x3615FD76u: goto L_3615FD76;
   2978       case 0x361669A1u: goto L_361669A1;
   2979       case 0x361669A6u: goto L_361669A6;
   2980       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2981     }
   2982     RECOMP_REGS_OUT();
   2983 }
   2984 
   2985 void sub_361669B0(void) {
   2986     int _fpu_cmp = 0;
   2987     uint32_t _cf = 0;
   2988     int _df = 1;
   2989     uint32_t _flag_k = FK_NONE;
   2990     uint32_t _flag_a = 0, _flag_b = 0;
   2991     uint32_t _itail_tgt = 0;
   2992     RECOMP_REGS_LOCALS
   2993     RECOMP_ENTER(0x361669B0u);
   2994 
   2995 L_361669B0:
   2996     ecx = ebp + (-0x40); /* 0x361669B0: lea ecx, [ebp - 0x40] */
   2997 L_361669B3:
   2998     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2999     { RECOMP_REGS_OUT(); return; } /* end of function */
   3000   _ljump:
   3001     switch (_itail_tgt) {
   3002       case 0x361669B0u: goto L_361669B0;
   3003       case 0x361669B3u: goto L_361669B3;
   3004       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3005     }
   3006     RECOMP_REGS_OUT();
   3007 }
   3008 
   3009 void sub_361669B9(void) {
   3010     int _fpu_cmp = 0;
   3011     uint32_t _cf = 0;
   3012     int _df = 1;
   3013     uint32_t _flag_k = FK_NONE;
   3014     uint32_t _flag_a = 0, _flag_b = 0;
   3015     uint32_t _itail_tgt = 0;
   3016     RECOMP_REGS_LOCALS
   3017     RECOMP_ENTER(0x361669B9u);
   3018 
   3019 L_361669B9:
   3020     ecx = ebp + (-0x30); /* 0x361669B9: lea ecx, [ebp - 0x30] */
   3021 L_361669BC:
   3022     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   3023     { RECOMP_REGS_OUT(); return; } /* end of function */
   3024   _ljump:
   3025     switch (_itail_tgt) {
   3026       case 0x361669B9u: goto L_361669B9;
   3027       case 0x361669BCu: goto L_361669BC;
   3028       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3029     }
   3030     RECOMP_REGS_OUT();
   3031 }
   3032 
   3033 void sub_361669C2(void) {
   3034     int _fpu_cmp = 0;
   3035     uint32_t _cf = 0;
   3036     int _df = 1;
   3037     uint32_t _flag_k = FK_NONE;
   3038     uint32_t _flag_a = 0, _flag_b = 0;
   3039     uint32_t _itail_tgt = 0;
   3040     RECOMP_REGS_LOCALS
   3041     RECOMP_ENTER(0x361669C2u);
   3042 
   3043     goto L_361669C2;
   3044 L_3615FD76:
   3045     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3046 L_361669C2:
   3047     eax = 0x3618BC60u; /* 0x361669C2: mov eax, 0x3618bc60 */
   3048 L_361669C7:
   3049     RECOMP_BACKEDGE();
   3050     goto L_3615FD76; /* 0x361669C7: jmp 0x3615fd76 */
   3051     { RECOMP_REGS_OUT(); return; } /* end of function */
   3052   _ljump:
   3053     switch (_itail_tgt) {
   3054       case 0x3615FD76u: goto L_3615FD76;
   3055       case 0x361669C2u: goto L_361669C2;
   3056       case 0x361669C7u: goto L_361669C7;
   3057       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3058     }
   3059     RECOMP_REGS_OUT();
   3060 }
   3061 
   3062 void sub_361669D0(void) {
   3063     int _fpu_cmp = 0;
   3064     uint32_t _cf = 0;
   3065     int _df = 1;
   3066     uint32_t _flag_k = FK_NONE;
   3067     uint32_t _flag_a = 0, _flag_b = 0;
   3068     uint32_t _itail_tgt = 0;
   3069     RECOMP_REGS_LOCALS
   3070     RECOMP_ENTER(0x361669D0u);
   3071 
   3072     goto L_361669D0;
   3073 L_3608EA50:
   3074     PUSH32(esp, ebp); /* 0x3608EA50: push ebp */
   3075     ebp = esp; /* 0x3608EA51: mov ebp, esp */
   3076     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608EA53: push -1 */
   3077     PUSH32(esp, 0x36166176u); /* 0x3608EA55: push 0x36166176 */
   3078     eax = MEM32(FS_BASE + (0)); /* 0x3608EA5A: mov eax, dword ptr fs:[0] */
   3079     PUSH32(esp, eax); /* 0x3608EA60: push eax */
   3080     MEM32(FS_BASE + (0)) = esp; /* 0x3608EA61: mov dword ptr fs:[0], esp */
   3081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   3082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3083     esp = esp - 0x18u; /* 0x3608EA68: sub esp, 0x18 */
   3084     _flag_k = FK_CMP;
   3085     PUSH32(esp, ebx); /* 0x3608EA6B: push ebx */
   3086     PUSH32(esp, esi); /* 0x3608EA6C: push esi */
   3087     esi = ecx; /* 0x3608EA6D: mov esi, ecx */
   3088     PUSH32(esp, edi); /* 0x3608EA6F: push edi */
   3089     MEM32(ebp + (-0x1C)) = esi; /* 0x3608EA70: mov dword ptr [ebp - 0x1c], esi */
   3090     MEM32(esi) = 0x361729F8u; /* 0x3608EA73: mov dword ptr [esi], 0x361729f8 */
   3091     MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608EA79: mov dword ptr [esi + 8], 0x361729e8 */
   3092     MEM32(esi + 0x40) = 0x361729E0u; /* 0x3608EA80: mov dword ptr [esi + 0x40], 0x361729e0 */
   3093     MEM32(esi + 0x4C) = 0x361729D8u; /* 0x3608EA87: mov dword ptr [esi + 0x4c], 0x361729d8 */
   3094     eax = MEM32(esi + 0x6C); /* 0x3608EA8E: mov eax, dword ptr [esi + 0x6c] */
   3095     ecx = MEM32(eax + 0x4); /* 0x3608EA91: mov ecx, dword ptr [eax + 4] */
   3096     ecx = MEM32(ecx); /* 0x3608EA94: mov ecx, dword ptr [ecx] */
   3097     MEM32(ebp + (-0x10)) = ecx; /* 0x3608EA96: mov dword ptr [ebp - 0x10], ecx */
   3098     eax = MEM32(eax + 0x4); /* 0x3608EA99: mov eax, dword ptr [eax + 4] */
   3099     /* cmp ecx, eax */ /* 0x3608EA9C: cmp ecx, eax */
   3100     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3102     _flag_k = FK_CMP;
   3103     MEM32(ebp + (-0x4)) = 2; /* 0x3608EA9E: mov dword ptr [ebp - 4], 2 */
   3104     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAD7; /* 0x3608EAA5: je 0x3608ead7 */
   3105 L_3608EAA7:
   3106     edi = MEM32(ecx + 0x10); /* 0x3608EAA7: mov edi, dword ptr [ecx + 0x10] */
   3107     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3108     ebx = 0; /* 0x3608EAAA: xor ebx, ebx */
   3109     _cf = 0;
   3110     _flag_k = FK_TEST;
   3111     /* cmp edi, ebx */ /* 0x3608EAAC: cmp edi, ebx */
   3112     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3113     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3114     _flag_k = FK_CMP;
   3115     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAC0; /* 0x3608EAAE: je 0x3608eac0 */
   3116 L_3608EAB0:
   3117     ecx = edi; /* 0x3608EAB0: mov ecx, edi */
   3118     RECOMP_ICALL(0x360055D0u); /* 0x3608EAB2: call 0x360055d0 */ /* not lifted */
   3119     RECOMP_FLAGS_IN();
   3120     PUSH32(esp, edi); /* 0x3608EAB7: push edi */
   3121     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAB8: call 0x3615fcc4 */ /* not lifted */
   3122     RECOMP_FLAGS_IN();
   3123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3125     esp = esp + 4; /* 0x3608EABD: add esp, 4 */
   3126     _flag_k = FK_ADD;
   3127 L_3608EAC0:
   3128     ecx = ebp + (-0x10); /* 0x3608EAC0: lea ecx, [ebp - 0x10] */
   3129     RECOMP_ICALL(0x36064140u); /* 0x3608EAC3: call 0x36064140 */ /* not lifted */
   3130     RECOMP_FLAGS_IN();
   3131     eax = MEM32(esi + 0x6C); /* 0x3608EAC8: mov eax, dword ptr [esi + 0x6c] */
   3132     eax = MEM32(eax + 0x4); /* 0x3608EACB: mov eax, dword ptr [eax + 4] */
   3133     ecx = MEM32(ebp + (-0x10)); /* 0x3608EACE: mov ecx, dword ptr [ebp - 0x10] */
   3134     /* cmp ecx, eax */ /* 0x3608EAD1: cmp ecx, eax */
   3135     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3137     _flag_k = FK_CMP;
   3138     RECOMP_BACKEDGE();
   3139     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EAA7; /* 0x3608EAD3: jne 0x3608eaa7 */
   3140 L_3608EAD5:
   3141     goto L_3608EAD9; /* 0x3608EAD5: jmp 0x3608ead9 */
   3142 L_3608EAD7:
   3143     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3144     ebx = 0; /* 0x3608EAD7: xor ebx, ebx */
   3145     _cf = 0;
   3146     _flag_k = FK_TEST;
   3147 L_3608EAD9:
   3148     edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */
   3149     /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */
   3150     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3151     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3152     _flag_k = FK_CMP;
   3153     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */
   3154 L_3608EAE0:
   3155     ecx = edi; /* 0x3608EAE0: mov ecx, edi */
   3156     RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */
   3157     RECOMP_FLAGS_IN();
   3158     PUSH32(esp, edi); /* 0x3608EAE7: push edi */
   3159     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */
   3160     RECOMP_FLAGS_IN();
   3161     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3162     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3163     esp = esp + 4; /* 0x3608EAED: add esp, 4 */
   3164     _flag_k = FK_ADD;
   3165 L_3608EAF0:
   3166     edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */
   3167     /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */
   3168     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3170     _flag_k = FK_CMP;
   3171     MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */
   3172     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */
   3173 L_3608EAFA:
   3174     ecx = edi; /* 0x3608EAFA: mov ecx, edi */
   3175     RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */
   3176     RECOMP_FLAGS_IN();
   3177     PUSH32(esp, edi); /* 0x3608EB01: push edi */
   3178     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */
   3179     RECOMP_FLAGS_IN();
   3180     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3181     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3182     esp = esp + 4; /* 0x3608EB07: add esp, 4 */
   3183     _flag_k = FK_ADD;
   3184 L_3608EB0A:
   3185     edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */
   3186     /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */
   3187     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3189     _flag_k = FK_CMP;
   3190     MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */
   3191     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */
   3192 L_3608EB14:
   3193     ecx = edi; /* 0x3608EB14: mov ecx, edi */
   3194     RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */
   3195     RECOMP_FLAGS_IN();
   3196     PUSH32(esp, edi); /* 0x3608EB1B: push edi */
   3197     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */
   3198     RECOMP_FLAGS_IN();
   3199     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3200     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3201     esp = esp + 4; /* 0x3608EB21: add esp, 4 */
   3202     _flag_k = FK_ADD;
   3203 L_3608EB24:
   3204     edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */
   3205     /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */
   3206     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3207     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3208     _flag_k = FK_CMP;
   3209     MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */
   3210     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */
   3211 L_3608EB2E:
   3212     ecx = edi; /* 0x3608EB2E: mov ecx, edi */
   3213     RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */
   3214     RECOMP_FLAGS_IN();
   3215     PUSH32(esp, edi); /* 0x3608EB35: push edi */
   3216     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */
   3217     RECOMP_FLAGS_IN();
   3218     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3219     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3220     esp = esp + 4; /* 0x3608EB3B: add esp, 4 */
   3221     _flag_k = FK_ADD;
   3222 L_3608EB3E:
   3223     edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */
   3224     /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */
   3225     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3227     _flag_k = FK_CMP;
   3228     MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */
   3229     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */
   3230 L_3608EB48:
   3231     ecx = edi; /* 0x3608EB48: mov ecx, edi */
   3232     RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */
   3233     RECOMP_FLAGS_IN();
   3234     PUSH32(esp, edi); /* 0x3608EB4F: push edi */
   3235     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */
   3236     RECOMP_FLAGS_IN();
   3237     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3239     esp = esp + 4; /* 0x3608EB55: add esp, 4 */
   3240     _flag_k = FK_ADD;
   3241 L_3608EB58:
   3242     eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */
   3243     MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */
   3244     ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */
   3245     eax = ecx; /* 0x3608EB61: mov eax, ecx */
   3246     ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */
   3247     /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */
   3248     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   3249     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3250     _flag_k = FK_CMP;
   3251     MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */
   3252     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */
   3253 L_3608EB70:
   3254     eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */
   3255     /* test eax, eax */ /* 0x3608EB73: test eax, eax */
   3256     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3257     _cf = 0;
   3258     _flag_k = FK_TEST;
   3259     MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */
   3260     if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */
   3261 L_3608EB7A:
   3262     ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */
   3263     edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */
   3264     /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */
   3265     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3267     _flag_k = FK_CMP;
   3268     MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */
   3269     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */
   3270 L_3608EB87:
   3271     PUSH32(esp, 0); /* 0x3608EB87: push 0 */
   3272     ecx = edi; /* 0x3608EB89: mov ecx, edi */
   3273     RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */
   3274     RECOMP_FLAGS_IN();
   3275     eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */
   3276     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   3277     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3278     edi = edi + 8; /* 0x3608EB93: add edi, 8 */
   3279     _flag_k = FK_ADD;
   3280     /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */
   3281     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3282     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3283     _flag_k = FK_CMP;
   3284     RECOMP_BACKEDGE();
   3285     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */
   3286 L_3608EB9A:
   3287     eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */
   3288 L_3608EB9D:
   3289     eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */
   3290     PUSH32(esp, eax); /* 0x3608EBA0: push eax */
   3291     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */
   3292     RECOMP_FLAGS_IN();
   3293     eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */
   3294     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3295     ecx = 0; /* 0x3608EBA9: xor ecx, ecx */
   3296     _cf = 0;
   3297     _flag_k = FK_TEST;
   3298     PUSH32(esp, eax); /* 0x3608EBAB: push eax */
   3299     MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */
   3300     MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */
   3301     MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */
   3302     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */
   3303     RECOMP_FLAGS_IN();
   3304     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3305     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3306     esp = esp + 8; /* 0x3608EBBA: add esp, 8 */
   3307     _flag_k = FK_ADD;
   3308 L_3608EBBD:
   3309     eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */
   3310     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */
   3311     /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */
   3312     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3313     _cf = 0;
   3314     _flag_k = FK_NARROW(FK_TEST, 24);
   3315     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */
   3316 L_3608EBC7:
   3317     PUSH32(esp, eax); /* 0x3608EBC7: push eax */
   3318     RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */
   3319     RECOMP_FLAGS_IN();
   3320     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3321     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3322     esp = esp + 4; /* 0x3608EBCD: add esp, 4 */
   3323     _flag_k = FK_ADD;
   3324     goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */
   3325 L_3608EBD2:
   3326     eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */
   3327     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */
   3328     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3330     _flag_k = FK_CMP;
   3331     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */
   3332 L_3608EBDA:
   3333     ebx = eax; /* 0x3608EBDA: mov ebx, eax */
   3334     eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */
   3335     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */
   3336     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3338     _flag_k = FK_CMP;
   3339     RECOMP_BACKEDGE();
   3340     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */
   3341 L_3608EBE4:
   3342     /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */
   3343     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax);
   3344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3345     _flag_k = FK_CMP;
   3346     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */
   3347 L_3608EBE9:
   3348     ebx = eax; /* 0x3608EBE9: mov ebx, eax */
   3349 L_3608EBEB:
   3350     /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */
   3351     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
   3352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3353     _flag_k = FK_CMP;
   3354     RECOMP_BACKEDGE();
   3355     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */
   3356 L_3608EBF0:
   3357     ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */
   3358     eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */
   3359     edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */
   3360     PUSH32(esp, eax); /* 0x3608EBF8: push eax */
   3361     PUSH32(esp, edx); /* 0x3608EBF9: push edx */
   3362     eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */
   3363     PUSH32(esp, eax); /* 0x3608EBFD: push eax */
   3364     RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */
   3365     RECOMP_FLAGS_IN();
   3366     edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */
   3367     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3368     ebx = 0; /* 0x3608EC06: xor ebx, ebx */
   3369     _cf = 0;
   3370     _flag_k = FK_TEST;
   3371     /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */
   3372     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3374     _flag_k = FK_CMP;
   3375     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */
   3376 L_3608EC0C:
   3377     eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */
   3378     ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */
   3379     PUSH32(esp, eax); /* 0x3608EC11: push eax */
   3380     PUSH32(esp, ecx); /* 0x3608EC12: push ecx */
   3381     ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */
   3382     PUSH32(esp, ecx); /* 0x3608EC16: push ecx */
   3383     ecx = edi; /* 0x3608EC17: mov ecx, edi */
   3384     RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */
   3385     RECOMP_FLAGS_IN();
   3386     eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */
   3387     PUSH32(esp, eax); /* 0x3608EC21: push eax */
   3388     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */
   3389     RECOMP_FLAGS_IN();
   3390     eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */
   3391     PUSH32(esp, eax); /* 0x3608EC2A: push eax */
   3392     MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */
   3393     MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */
   3394     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */
   3395     RECOMP_FLAGS_IN();
   3396     PUSH32(esp, edi); /* 0x3608EC36: push edi */
   3397     MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */
   3398     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */
   3399     RECOMP_FLAGS_IN();
   3400     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3402     esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */
   3403     _flag_k = FK_ADD;
   3404 L_3608EC42:
   3405     eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */
   3406     /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */
   3407     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3408     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3409     _flag_k = FK_CMP;
   3410     edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */
   3411     MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */
   3412     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */
   3413 L_3608EC52:
   3414     PUSH32(esp, eax); /* 0x3608EC52: push eax */
   3415     RECOMP_ICALL(edi); /* 0x3608EC53: call edi */
   3416     RECOMP_FLAGS_IN();
   3417     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3418     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3419     esp = esp + 4; /* 0x3608EC55: add esp, 4 */
   3420     _flag_k = FK_ADD;
   3421     MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */
   3422 L_3608EC5B:
   3423     eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */
   3424     /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */
   3425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3426     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3427     _flag_k = FK_CMP;
   3428     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */
   3429 L_3608EC62:
   3430     PUSH32(esp, eax); /* 0x3608EC62: push eax */
   3431     RECOMP_ICALL(edi); /* 0x3608EC63: call edi */
   3432     RECOMP_FLAGS_IN();
   3433     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3434     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3435     esp = esp + 4; /* 0x3608EC65: add esp, 4 */
   3436     _flag_k = FK_ADD;
   3437     MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */
   3438 L_3608EC6B:
   3439     ecx = esi; /* 0x3608EC6B: mov ecx, esi */
   3440     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   3441     _cf = (ecx) != 0;
   3442     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */
   3443     _flag_k = FK_CMP;
   3444     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */
   3445       ecx = _sc ? 0xFFFFFFFFu : 0;
   3446       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3447       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3448     eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */
   3449     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3450     ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */
   3451     _cf = 0;
   3452     _flag_k = FK_TEST;
   3453     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */
   3454     RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */
   3455     RECOMP_FLAGS_IN();
   3456     ecx = esi; /* 0x3608EC7F: mov ecx, esi */
   3457     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   3458     _cf = (ecx) != 0;
   3459     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */
   3460     _flag_k = FK_CMP;
   3461     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */
   3462       ecx = _sc ? 0xFFFFFFFFu : 0;
   3463       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3464       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3465     eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */
   3466     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3467     ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */
   3468     _cf = 0;
   3469     _flag_k = FK_TEST;
   3470     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */
   3471     RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */
   3472     RECOMP_FLAGS_IN();
   3473     ecx = esi; /* 0x3608EC93: mov ecx, esi */
   3474     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */
   3475     RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */
   3476     RECOMP_FLAGS_IN();
   3477     ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */
   3478     edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */
   3479     esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */
   3480     ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */
   3481     MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */
   3482     esp = ebp; /* 0x3608ECAE: mov esp, ebp */
   3483     ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */
   3484     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret  */
   3485 L_361669D0:
   3486     ecx = MEM32(ebp + (-0x10)); /* 0x361669D0: mov ecx, dword ptr [ebp - 0x10] */
   3487     RECOMP_BACKEDGE();
   3488     goto L_3608EA50; /* 0x361669D3: jmp 0x3608ea50 */
   3489     { RECOMP_REGS_OUT(); return; } /* end of function */
   3490     RECOMP_REGS_OUT();
   3491 }
   3492 
   3493 void sub_361669D8(void) {
   3494     int _fpu_cmp = 0;
   3495     uint32_t _cf = 0;
   3496     int _df = 1;
   3497     uint32_t _flag_k = FK_NONE;
   3498     uint32_t _flag_a = 0, _flag_b = 0;
   3499     uint32_t _itail_tgt = 0;
   3500     RECOMP_REGS_LOCALS
   3501     RECOMP_ENTER(0x361669D8u);
   3502 
   3503 L_361669D8:
   3504     ecx = MEM32(ebp + (-0x10)); /* 0x361669D8: mov ecx, dword ptr [ebp - 0x10] */
   3505     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u);
   3506     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3507     ecx = ecx + 0x80u; /* 0x361669DB: add ecx, 0x80 */
   3508     _flag_k = FK_ADD;
   3509     goto L_36041B60; /* 0x361669E1: jmp 0x36041b60 */
   3510     { RECOMP_REGS_OUT(); return; } /* end of function */
   3511     L_36041B60: RECOMP_ITAIL(0x36041B60u); { RECOMP_REGS_OUT(); return; }
   3512     RECOMP_REGS_OUT();
   3513 }
   3514 
   3515 void sub_361669E6(void) {
   3516     int _fpu_cmp = 0;
   3517     uint32_t _cf = 0;
   3518     int _df = 1;
   3519     uint32_t _flag_k = FK_NONE;
   3520     uint32_t _flag_a = 0, _flag_b = 0;
   3521     uint32_t _itail_tgt = 0;
   3522     RECOMP_REGS_LOCALS
   3523     RECOMP_ENTER(0x361669E6u);
   3524 
   3525 L_361669E6:
   3526     ecx = MEM32(ebp + (-0x10)); /* 0x361669E6: mov ecx, dword ptr [ebp - 0x10] */
   3527 L_361669E9:
   3528     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu);
   3529     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3530     ecx = ecx + 0x8Cu; /* 0x361669E9: add ecx, 0x8c */
   3531     _flag_k = FK_ADD;
   3532 L_361669EF:
   3533     { _itail_tgt = (uint32_t)(MEM32(0x3616FCBC)); goto _ljump; }
   3534     { RECOMP_REGS_OUT(); return; } /* end of function */
   3535   _ljump:
   3536     switch (_itail_tgt) {
   3537       case 0x361669E6u: goto L_361669E6;
   3538       case 0x361669E9u: goto L_361669E9;
   3539       case 0x361669EFu: goto L_361669EF;
   3540       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3541     }
   3542     RECOMP_REGS_OUT();
   3543 }
   3544 
   3545 void sub_361669F5(void) {
   3546     int _fpu_cmp = 0;
   3547     uint32_t _cf = 0;
   3548     int _df = 1;
   3549     uint32_t _flag_k = FK_NONE;
   3550     uint32_t _flag_a = 0, _flag_b = 0;
   3551     uint32_t _itail_tgt = 0;
   3552     RECOMP_REGS_LOCALS
   3553     RECOMP_ENTER(0x361669F5u);
   3554 
   3555     goto L_361669F5;
   3556 L_3615FD76:
   3557     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3558 L_361669F5:
   3559     eax = 0x3618BC90u; /* 0x361669F5: mov eax, 0x3618bc90 */
   3560 L_361669FA:
   3561     RECOMP_BACKEDGE();
   3562     goto L_3615FD76; /* 0x361669FA: jmp 0x3615fd76 */
   3563     { RECOMP_REGS_OUT(); return; } /* end of function */
   3564   _ljump:
   3565     switch (_itail_tgt) {
   3566       case 0x3615FD76u: goto L_3615FD76;
   3567       case 0x361669F5u: goto L_361669F5;
   3568       case 0x361669FAu: goto L_361669FA;
   3569       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3570     }
   3571     RECOMP_REGS_OUT();
   3572 }
   3573 
   3574 void sub_36166A00(void) {
   3575     int _fpu_cmp = 0;
   3576     uint32_t _cf = 0;
   3577     int _df = 1;
   3578     uint32_t _flag_k = FK_NONE;
   3579     uint32_t _flag_a = 0, _flag_b = 0;
   3580     uint32_t _itail_tgt = 0;
   3581     RECOMP_REGS_LOCALS
   3582     RECOMP_ENTER(0x36166A00u);
   3583 
   3584 L_36166A00:
   3585     eax = MEM32(ebp + (-0x14)); /* 0x36166A00: mov eax, dword ptr [ebp - 0x14] */
   3586     PUSH32(esp, eax); /* 0x36166A03: push eax */
   3587     RECOMP_ICALL(0x3615FCC4u); /* 0x36166A04: call 0x3615fcc4 */ /* not lifted */
   3588     RECOMP_FLAGS_IN();
   3589     ecx = POP32_VAL(esp); /* 0x36166A09: pop ecx */
   3590     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166A0A: ret  */
   3591     RECOMP_REGS_OUT();
   3592 }
   3593 
   3594 void sub_36166A0B(void) {
   3595     int _fpu_cmp = 0;
   3596     uint32_t _cf = 0;
   3597     int _df = 1;
   3598     uint32_t _flag_k = FK_NONE;
   3599     uint32_t _flag_a = 0, _flag_b = 0;
   3600     uint32_t _itail_tgt = 0;
   3601     RECOMP_REGS_LOCALS
   3602     RECOMP_ENTER(0x36166A0Bu);
   3603 
   3604 L_36166A0B:
   3605     eax = MEM32(ebp + (-0x14)); /* 0x36166A0B: mov eax, dword ptr [ebp - 0x14] */
   3606     PUSH32(esp, eax); /* 0x36166A0E: push eax */
   3607     RECOMP_ICALL(0x3615FCC4u); /* 0x36166A0F: call 0x3615fcc4 */ /* not lifted */
   3608     RECOMP_FLAGS_IN();
   3609     ecx = POP32_VAL(esp); /* 0x36166A14: pop ecx */
   3610     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166A15: ret  */
   3611     RECOMP_REGS_OUT();
   3612 }
   3613 
   3614 void sub_36166A16(void) {
   3615     int _fpu_cmp = 0;
   3616     uint32_t _cf = 0;
   3617     int _df = 1;
   3618     uint32_t _flag_k = FK_NONE;
   3619     uint32_t _flag_a = 0, _flag_b = 0;
   3620     uint32_t _itail_tgt = 0;
   3621     RECOMP_REGS_LOCALS
   3622     RECOMP_ENTER(0x36166A16u);
   3623 
   3624     goto L_36166A16;
   3625 L_3615FD76:
   3626     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3627 L_36166A16:
   3628     eax = 0x3618BCC8u; /* 0x36166A16: mov eax, 0x3618bcc8 */
   3629 L_36166A1B:
   3630     RECOMP_BACKEDGE();
   3631     goto L_3615FD76; /* 0x36166A1B: jmp 0x3615fd76 */
   3632     { RECOMP_REGS_OUT(); return; } /* end of function */
   3633   _ljump:
   3634     switch (_itail_tgt) {
   3635       case 0x3615FD76u: goto L_3615FD76;
   3636       case 0x36166A16u: goto L_36166A16;
   3637       case 0x36166A1Bu: goto L_36166A1B;
   3638       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3639     }
   3640     RECOMP_REGS_OUT();
   3641 }
   3642 
   3643 void sub_36166A20(void) {
   3644     int _fpu_cmp = 0;
   3645     uint32_t _cf = 0;
   3646     int _df = 1;
   3647     uint32_t _flag_k = FK_NONE;
   3648     uint32_t _flag_a = 0, _flag_b = 0;
   3649     uint32_t _itail_tgt = 0;
   3650     RECOMP_REGS_LOCALS
   3651     RECOMP_ENTER(0x36166A20u);
   3652 
   3653     goto L_36166A20;
   3654 L_3608EA50:
   3655     PUSH32(esp, ebp); /* 0x3608EA50: push ebp */
   3656     ebp = esp; /* 0x3608EA51: mov ebp, esp */
   3657     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608EA53: push -1 */
   3658     PUSH32(esp, 0x36166176u); /* 0x3608EA55: push 0x36166176 */
   3659     eax = MEM32(FS_BASE + (0)); /* 0x3608EA5A: mov eax, dword ptr fs:[0] */
   3660     PUSH32(esp, eax); /* 0x3608EA60: push eax */
   3661     MEM32(FS_BASE + (0)) = esp; /* 0x3608EA61: mov dword ptr fs:[0], esp */
   3662     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   3663     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3664     esp = esp - 0x18u; /* 0x3608EA68: sub esp, 0x18 */
   3665     _flag_k = FK_CMP;
   3666     PUSH32(esp, ebx); /* 0x3608EA6B: push ebx */
   3667     PUSH32(esp, esi); /* 0x3608EA6C: push esi */
   3668     esi = ecx; /* 0x3608EA6D: mov esi, ecx */
   3669     PUSH32(esp, edi); /* 0x3608EA6F: push edi */
   3670     MEM32(ebp + (-0x1C)) = esi; /* 0x3608EA70: mov dword ptr [ebp - 0x1c], esi */
   3671     MEM32(esi) = 0x361729F8u; /* 0x3608EA73: mov dword ptr [esi], 0x361729f8 */
   3672     MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608EA79: mov dword ptr [esi + 8], 0x361729e8 */
   3673     MEM32(esi + 0x40) = 0x361729E0u; /* 0x3608EA80: mov dword ptr [esi + 0x40], 0x361729e0 */
   3674     MEM32(esi + 0x4C) = 0x361729D8u; /* 0x3608EA87: mov dword ptr [esi + 0x4c], 0x361729d8 */
   3675     eax = MEM32(esi + 0x6C); /* 0x3608EA8E: mov eax, dword ptr [esi + 0x6c] */
   3676     ecx = MEM32(eax + 0x4); /* 0x3608EA91: mov ecx, dword ptr [eax + 4] */
   3677     ecx = MEM32(ecx); /* 0x3608EA94: mov ecx, dword ptr [ecx] */
   3678     MEM32(ebp + (-0x10)) = ecx; /* 0x3608EA96: mov dword ptr [ebp - 0x10], ecx */
   3679     eax = MEM32(eax + 0x4); /* 0x3608EA99: mov eax, dword ptr [eax + 4] */
   3680     /* cmp ecx, eax */ /* 0x3608EA9C: cmp ecx, eax */
   3681     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3682     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3683     _flag_k = FK_CMP;
   3684     MEM32(ebp + (-0x4)) = 2; /* 0x3608EA9E: mov dword ptr [ebp - 4], 2 */
   3685     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAD7; /* 0x3608EAA5: je 0x3608ead7 */
   3686 L_3608EAA7:
   3687     edi = MEM32(ecx + 0x10); /* 0x3608EAA7: mov edi, dword ptr [ecx + 0x10] */
   3688     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3689     ebx = 0; /* 0x3608EAAA: xor ebx, ebx */
   3690     _cf = 0;
   3691     _flag_k = FK_TEST;
   3692     /* cmp edi, ebx */ /* 0x3608EAAC: cmp edi, ebx */
   3693     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3694     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3695     _flag_k = FK_CMP;
   3696     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAC0; /* 0x3608EAAE: je 0x3608eac0 */
   3697 L_3608EAB0:
   3698     ecx = edi; /* 0x3608EAB0: mov ecx, edi */
   3699     RECOMP_ICALL(0x360055D0u); /* 0x3608EAB2: call 0x360055d0 */ /* not lifted */
   3700     RECOMP_FLAGS_IN();
   3701     PUSH32(esp, edi); /* 0x3608EAB7: push edi */
   3702     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAB8: call 0x3615fcc4 */ /* not lifted */
   3703     RECOMP_FLAGS_IN();
   3704     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3706     esp = esp + 4; /* 0x3608EABD: add esp, 4 */
   3707     _flag_k = FK_ADD;
   3708 L_3608EAC0:
   3709     ecx = ebp + (-0x10); /* 0x3608EAC0: lea ecx, [ebp - 0x10] */
   3710     RECOMP_ICALL(0x36064140u); /* 0x3608EAC3: call 0x36064140 */ /* not lifted */
   3711     RECOMP_FLAGS_IN();
   3712     eax = MEM32(esi + 0x6C); /* 0x3608EAC8: mov eax, dword ptr [esi + 0x6c] */
   3713     eax = MEM32(eax + 0x4); /* 0x3608EACB: mov eax, dword ptr [eax + 4] */
   3714     ecx = MEM32(ebp + (-0x10)); /* 0x3608EACE: mov ecx, dword ptr [ebp - 0x10] */
   3715     /* cmp ecx, eax */ /* 0x3608EAD1: cmp ecx, eax */
   3716     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3717     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3718     _flag_k = FK_CMP;
   3719     RECOMP_BACKEDGE();
   3720     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EAA7; /* 0x3608EAD3: jne 0x3608eaa7 */
   3721 L_3608EAD5:
   3722     goto L_3608EAD9; /* 0x3608EAD5: jmp 0x3608ead9 */
   3723 L_3608EAD7:
   3724     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3725     ebx = 0; /* 0x3608EAD7: xor ebx, ebx */
   3726     _cf = 0;
   3727     _flag_k = FK_TEST;
   3728 L_3608EAD9:
   3729     edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */
   3730     /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */
   3731     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3733     _flag_k = FK_CMP;
   3734     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */
   3735 L_3608EAE0:
   3736     ecx = edi; /* 0x3608EAE0: mov ecx, edi */
   3737     RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */
   3738     RECOMP_FLAGS_IN();
   3739     PUSH32(esp, edi); /* 0x3608EAE7: push edi */
   3740     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */
   3741     RECOMP_FLAGS_IN();
   3742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3744     esp = esp + 4; /* 0x3608EAED: add esp, 4 */
   3745     _flag_k = FK_ADD;
   3746 L_3608EAF0:
   3747     edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */
   3748     /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */
   3749     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3751     _flag_k = FK_CMP;
   3752     MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */
   3753     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */
   3754 L_3608EAFA:
   3755     ecx = edi; /* 0x3608EAFA: mov ecx, edi */
   3756     RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */
   3757     RECOMP_FLAGS_IN();
   3758     PUSH32(esp, edi); /* 0x3608EB01: push edi */
   3759     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */
   3760     RECOMP_FLAGS_IN();
   3761     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3763     esp = esp + 4; /* 0x3608EB07: add esp, 4 */
   3764     _flag_k = FK_ADD;
   3765 L_3608EB0A:
   3766     edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */
   3767     /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */
   3768     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3770     _flag_k = FK_CMP;
   3771     MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */
   3772     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */
   3773 L_3608EB14:
   3774     ecx = edi; /* 0x3608EB14: mov ecx, edi */
   3775     RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */
   3776     RECOMP_FLAGS_IN();
   3777     PUSH32(esp, edi); /* 0x3608EB1B: push edi */
   3778     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */
   3779     RECOMP_FLAGS_IN();
   3780     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3781     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3782     esp = esp + 4; /* 0x3608EB21: add esp, 4 */
   3783     _flag_k = FK_ADD;
   3784 L_3608EB24:
   3785     edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */
   3786     /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */
   3787     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3789     _flag_k = FK_CMP;
   3790     MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */
   3791     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */
   3792 L_3608EB2E:
   3793     ecx = edi; /* 0x3608EB2E: mov ecx, edi */
   3794     RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */
   3795     RECOMP_FLAGS_IN();
   3796     PUSH32(esp, edi); /* 0x3608EB35: push edi */
   3797     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */
   3798     RECOMP_FLAGS_IN();
   3799     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3801     esp = esp + 4; /* 0x3608EB3B: add esp, 4 */
   3802     _flag_k = FK_ADD;
   3803 L_3608EB3E:
   3804     edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */
   3805     /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */
   3806     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3808     _flag_k = FK_CMP;
   3809     MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */
   3810     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */
   3811 L_3608EB48:
   3812     ecx = edi; /* 0x3608EB48: mov ecx, edi */
   3813     RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */
   3814     RECOMP_FLAGS_IN();
   3815     PUSH32(esp, edi); /* 0x3608EB4F: push edi */
   3816     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */
   3817     RECOMP_FLAGS_IN();
   3818     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3819     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3820     esp = esp + 4; /* 0x3608EB55: add esp, 4 */
   3821     _flag_k = FK_ADD;
   3822 L_3608EB58:
   3823     eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */
   3824     MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */
   3825     ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */
   3826     eax = ecx; /* 0x3608EB61: mov eax, ecx */
   3827     ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */
   3828     /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */
   3829     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx);
   3830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3831     _flag_k = FK_CMP;
   3832     MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */
   3833     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */
   3834 L_3608EB70:
   3835     eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */
   3836     /* test eax, eax */ /* 0x3608EB73: test eax, eax */
   3837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3838     _cf = 0;
   3839     _flag_k = FK_TEST;
   3840     MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */
   3841     if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */
   3842 L_3608EB7A:
   3843     ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */
   3844     edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */
   3845     /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */
   3846     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   3847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3848     _flag_k = FK_CMP;
   3849     MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */
   3850     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */
   3851 L_3608EB87:
   3852     PUSH32(esp, 0); /* 0x3608EB87: push 0 */
   3853     ecx = edi; /* 0x3608EB89: mov ecx, edi */
   3854     RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */
   3855     RECOMP_FLAGS_IN();
   3856     eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */
   3857     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   3858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3859     edi = edi + 8; /* 0x3608EB93: add edi, 8 */
   3860     _flag_k = FK_ADD;
   3861     /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */
   3862     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3864     _flag_k = FK_CMP;
   3865     RECOMP_BACKEDGE();
   3866     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */
   3867 L_3608EB9A:
   3868     eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */
   3869 L_3608EB9D:
   3870     eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */
   3871     PUSH32(esp, eax); /* 0x3608EBA0: push eax */
   3872     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */
   3873     RECOMP_FLAGS_IN();
   3874     eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */
   3875     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3876     ecx = 0; /* 0x3608EBA9: xor ecx, ecx */
   3877     _cf = 0;
   3878     _flag_k = FK_TEST;
   3879     PUSH32(esp, eax); /* 0x3608EBAB: push eax */
   3880     MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */
   3881     MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */
   3882     MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */
   3883     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */
   3884     RECOMP_FLAGS_IN();
   3885     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3886     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3887     esp = esp + 8; /* 0x3608EBBA: add esp, 8 */
   3888     _flag_k = FK_ADD;
   3889 L_3608EBBD:
   3890     eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */
   3891     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */
   3892     /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */
   3893     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3894     _cf = 0;
   3895     _flag_k = FK_NARROW(FK_TEST, 24);
   3896     if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */
   3897 L_3608EBC7:
   3898     PUSH32(esp, eax); /* 0x3608EBC7: push eax */
   3899     RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */
   3900     RECOMP_FLAGS_IN();
   3901     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3902     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3903     esp = esp + 4; /* 0x3608EBCD: add esp, 4 */
   3904     _flag_k = FK_ADD;
   3905     goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */
   3906 L_3608EBD2:
   3907     eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */
   3908     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */
   3909     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3911     _flag_k = FK_CMP;
   3912     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */
   3913 L_3608EBDA:
   3914     ebx = eax; /* 0x3608EBDA: mov ebx, eax */
   3915     eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */
   3916     /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */
   3917     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   3918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3919     _flag_k = FK_CMP;
   3920     RECOMP_BACKEDGE();
   3921     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */
   3922 L_3608EBE4:
   3923     /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */
   3924     _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax);
   3925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3926     _flag_k = FK_CMP;
   3927     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */
   3928 L_3608EBE9:
   3929     ebx = eax; /* 0x3608EBE9: mov ebx, eax */
   3930 L_3608EBEB:
   3931     /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */
   3932     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18)));
   3933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3934     _flag_k = FK_CMP;
   3935     RECOMP_BACKEDGE();
   3936     if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */
   3937 L_3608EBF0:
   3938     ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */
   3939     eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */
   3940     edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */
   3941     PUSH32(esp, eax); /* 0x3608EBF8: push eax */
   3942     PUSH32(esp, edx); /* 0x3608EBF9: push edx */
   3943     eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */
   3944     PUSH32(esp, eax); /* 0x3608EBFD: push eax */
   3945     RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */
   3946     RECOMP_FLAGS_IN();
   3947     edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */
   3948     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3949     ebx = 0; /* 0x3608EC06: xor ebx, ebx */
   3950     _cf = 0;
   3951     _flag_k = FK_TEST;
   3952     /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */
   3953     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   3954     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3955     _flag_k = FK_CMP;
   3956     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */
   3957 L_3608EC0C:
   3958     eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */
   3959     ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */
   3960     PUSH32(esp, eax); /* 0x3608EC11: push eax */
   3961     PUSH32(esp, ecx); /* 0x3608EC12: push ecx */
   3962     ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */
   3963     PUSH32(esp, ecx); /* 0x3608EC16: push ecx */
   3964     ecx = edi; /* 0x3608EC17: mov ecx, edi */
   3965     RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */
   3966     RECOMP_FLAGS_IN();
   3967     eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */
   3968     PUSH32(esp, eax); /* 0x3608EC21: push eax */
   3969     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */
   3970     RECOMP_FLAGS_IN();
   3971     eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */
   3972     PUSH32(esp, eax); /* 0x3608EC2A: push eax */
   3973     MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */
   3974     MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */
   3975     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */
   3976     RECOMP_FLAGS_IN();
   3977     PUSH32(esp, edi); /* 0x3608EC36: push edi */
   3978     MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */
   3979     RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */
   3980     RECOMP_FLAGS_IN();
   3981     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3982     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3983     esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */
   3984     _flag_k = FK_ADD;
   3985 L_3608EC42:
   3986     eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */
   3987     /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */
   3988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3989     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3990     _flag_k = FK_CMP;
   3991     edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */
   3992     MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */
   3993     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */
   3994 L_3608EC52:
   3995     PUSH32(esp, eax); /* 0x3608EC52: push eax */
   3996     RECOMP_ICALL(edi); /* 0x3608EC53: call edi */
   3997     RECOMP_FLAGS_IN();
   3998     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4000     esp = esp + 4; /* 0x3608EC55: add esp, 4 */
   4001     _flag_k = FK_ADD;
   4002     MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */
   4003 L_3608EC5B:
   4004     eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */
   4005     /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */
   4006     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4008     _flag_k = FK_CMP;
   4009     if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */
   4010 L_3608EC62:
   4011     PUSH32(esp, eax); /* 0x3608EC62: push eax */
   4012     RECOMP_ICALL(edi); /* 0x3608EC63: call edi */
   4013     RECOMP_FLAGS_IN();
   4014     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4015     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4016     esp = esp + 4; /* 0x3608EC65: add esp, 4 */
   4017     _flag_k = FK_ADD;
   4018     MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */
   4019 L_3608EC6B:
   4020     ecx = esi; /* 0x3608EC6B: mov ecx, esi */
   4021     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   4022     _cf = (ecx) != 0;
   4023     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */
   4024     _flag_k = FK_CMP;
   4025     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */
   4026       ecx = _sc ? 0xFFFFFFFFu : 0;
   4027       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4028       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4029     eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */
   4030     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4031     ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */
   4032     _cf = 0;
   4033     _flag_k = FK_TEST;
   4034     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */
   4035     RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */
   4036     RECOMP_FLAGS_IN();
   4037     ecx = esi; /* 0x3608EC7F: mov ecx, esi */
   4038     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   4039     _cf = (ecx) != 0;
   4040     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */
   4041     _flag_k = FK_CMP;
   4042     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */
   4043       ecx = _sc ? 0xFFFFFFFFu : 0;
   4044       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   4045       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   4046     eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */
   4047     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   4048     ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */
   4049     _cf = 0;
   4050     _flag_k = FK_TEST;
   4051     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */
   4052     RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */
   4053     RECOMP_FLAGS_IN();
   4054     ecx = esi; /* 0x3608EC93: mov ecx, esi */
   4055     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */
   4056     RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */
   4057     RECOMP_FLAGS_IN();
   4058     ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */
   4059     edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */
   4060     esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */
   4061     ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */
   4062     MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */
   4063     esp = ebp; /* 0x3608ECAE: mov esp, ebp */
   4064     ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */
   4065     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret  */
   4066 L_36166A20:
   4067     ecx = MEM32(ebp + (-0x18)); /* 0x36166A20: mov ecx, dword ptr [ebp - 0x18] */
   4068     RECOMP_BACKEDGE();
   4069     goto L_3608EA50; /* 0x36166A23: jmp 0x3608ea50 */
   4070     { RECOMP_REGS_OUT(); return; } /* end of function */
   4071     RECOMP_REGS_OUT();
   4072 }
   4073 
   4074 void sub_36166A28(void) {
   4075     int _fpu_cmp = 0;
   4076     uint32_t _cf = 0;
   4077     int _df = 1;
   4078     uint32_t _flag_k = FK_NONE;
   4079     uint32_t _flag_a = 0, _flag_b = 0;
   4080     uint32_t _itail_tgt = 0;
   4081     RECOMP_REGS_LOCALS
   4082     RECOMP_ENTER(0x36166A28u);
   4083 
   4084 L_36166A28:
   4085     /* cmp MEM32(ebp + (-0x18)), 0 */ /* 0x36166A28: cmp dword ptr [ebp - 0x18], 0 */
   4086     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(0);
   4087     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4088     _flag_k = FK_CMP;
   4089     if (CMP_EQ(_flag_a, _flag_b)) goto L_36166A42; /* 0x36166A2C: je 0x36166a42 */
   4090 L_36166A32:
   4091     eax = MEM32(ebp + (-0x18)); /* 0x36166A32: mov eax, dword ptr [ebp - 0x18] */
   4092     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
   4093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4094     eax = eax + 0x80u; /* 0x36166A35: add eax, 0x80 */
   4095     _flag_k = FK_ADD;
   4096     MEM32(ebp + (-0x20)) = eax; /* 0x36166A3A: mov dword ptr [ebp - 0x20], eax */
   4097     goto L_36166A49; /* 0x36166A3D: jmp 0x36166a49 */
   4098 L_36166A42:
   4099     MEM32(ebp + (-0x20)) = 0; /* 0x36166A42: mov dword ptr [ebp - 0x20], 0 */
   4100 L_36166A49:
   4101     ecx = MEM32(ebp + (-0x20)); /* 0x36166A49: mov ecx, dword ptr [ebp - 0x20] */
   4102     goto L_36041B60; /* 0x36166A4C: jmp 0x36041b60 */
   4103     { RECOMP_REGS_OUT(); return; } /* end of function */
   4104     L_36041B60: RECOMP_ITAIL(0x36041B60u); { RECOMP_REGS_OUT(); return; }
   4105     RECOMP_REGS_OUT();
   4106 }
   4107 
   4108 void sub_36166A49(void) {
   4109     int _fpu_cmp = 0;
   4110     uint32_t _cf = 0;
   4111     int _df = 1;
   4112     uint32_t _flag_k = FK_NONE;
   4113     uint32_t _flag_a = 0, _flag_b = 0;
   4114     uint32_t _itail_tgt = 0;
   4115     RECOMP_REGS_LOCALS
   4116     RECOMP_ENTER(0x36166A49u);
   4117 
   4118 L_36166A49:
   4119     ecx = MEM32(ebp + (-0x20)); /* 0x36166A49: mov ecx, dword ptr [ebp - 0x20] */
   4120     goto L_36041B60; /* 0x36166A4C: jmp 0x36041b60 */
   4121     { RECOMP_REGS_OUT(); return; } /* end of function */
   4122     L_36041B60: RECOMP_ITAIL(0x36041B60u); { RECOMP_REGS_OUT(); return; }
   4123     RECOMP_REGS_OUT();
   4124 }
   4125 
   4126 void sub_36166A51(void) {
   4127     int _fpu_cmp = 0;
   4128     uint32_t _cf = 0;
   4129     int _df = 1;
   4130     uint32_t _flag_k = FK_NONE;
   4131     uint32_t _flag_a = 0, _flag_b = 0;
   4132     uint32_t _itail_tgt = 0;
   4133     RECOMP_REGS_LOCALS
   4134     RECOMP_ENTER(0x36166A51u);
   4135 
   4136 L_36166A51:
   4137     /* cmp MEM32(ebp + (-0x18)), 0 */ /* 0x36166A51: cmp dword ptr [ebp - 0x18], 0 */
   4138     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(0);
   4139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4140     _flag_k = FK_CMP;
   4141 L_36166A55:
   4142     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166A6B; /* 0x36166A55: je 0x36166a6b */
   4143 L_36166A5B:
   4144     eax = MEM32(ebp + (-0x18)); /* 0x36166A5B: mov eax, dword ptr [ebp - 0x18] */
   4145 L_36166A5E:
   4146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x8Cu);
   4147     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4148     eax = eax + 0x8Cu; /* 0x36166A5E: add eax, 0x8c */
   4149     _flag_k = FK_ADD;
   4150 L_36166A63:
   4151     MEM32(ebp + (-0x24)) = eax; /* 0x36166A63: mov dword ptr [ebp - 0x24], eax */
   4152 L_36166A66:
   4153     goto L_36166A72; /* 0x36166A66: jmp 0x36166a72 */
   4154 L_36166A6B:
   4155     MEM32(ebp + (-0x24)) = 0; /* 0x36166A6B: mov dword ptr [ebp - 0x24], 0 */
   4156 L_36166A72:
   4157     ecx = MEM32(ebp + (-0x24)); /* 0x36166A72: mov ecx, dword ptr [ebp - 0x24] */
   4158 L_36166A75:
   4159     { _itail_tgt = (uint32_t)(MEM32(0x3616FCBC)); goto _ljump; }
   4160     { RECOMP_REGS_OUT(); return; } /* end of function */
   4161   _ljump:
   4162     switch (_itail_tgt) {
   4163       case 0x36166A51u: goto L_36166A51;
   4164       case 0x36166A55u: goto L_36166A55;
   4165       case 0x36166A5Bu: goto L_36166A5B;
   4166       case 0x36166A5Eu: goto L_36166A5E;
   4167       case 0x36166A63u: goto L_36166A63;
   4168       case 0x36166A66u: goto L_36166A66;
   4169       case 0x36166A6Bu: goto L_36166A6B;
   4170       case 0x36166A72u: goto L_36166A72;
   4171       case 0x36166A75u: goto L_36166A75;
   4172       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4173     }
   4174     RECOMP_REGS_OUT();
   4175 }
   4176 
   4177 void sub_36166A72(void) {
   4178     int _fpu_cmp = 0;
   4179     uint32_t _cf = 0;
   4180     int _df = 1;
   4181     uint32_t _flag_k = FK_NONE;
   4182     uint32_t _flag_a = 0, _flag_b = 0;
   4183     uint32_t _itail_tgt = 0;
   4184     RECOMP_REGS_LOCALS
   4185     RECOMP_ENTER(0x36166A72u);
   4186 
   4187 L_36166A72:
   4188     ecx = MEM32(ebp + (-0x24)); /* 0x36166A72: mov ecx, dword ptr [ebp - 0x24] */
   4189 L_36166A75:
   4190     { _itail_tgt = (uint32_t)(MEM32(0x3616FCBC)); goto _ljump; }
   4191     { RECOMP_REGS_OUT(); return; } /* end of function */
   4192   _ljump:
   4193     switch (_itail_tgt) {
   4194       case 0x36166A72u: goto L_36166A72;
   4195       case 0x36166A75u: goto L_36166A75;
   4196       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4197     }
   4198     RECOMP_REGS_OUT();
   4199 }
   4200 
   4201 void sub_36166A7B(void) {
   4202     int _fpu_cmp = 0;
   4203     uint32_t _cf = 0;
   4204     int _df = 1;
   4205     uint32_t _flag_k = FK_NONE;
   4206     uint32_t _flag_a = 0, _flag_b = 0;
   4207     uint32_t _itail_tgt = 0;
   4208     RECOMP_REGS_LOCALS
   4209     RECOMP_ENTER(0x36166A7Bu);
   4210 
   4211     goto L_36166A7B;
   4212 L_3615FD76:
   4213     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   4214 L_36166A7B:
   4215     eax = 0x3618BCF8u; /* 0x36166A7B: mov eax, 0x3618bcf8 */
   4216 L_36166A80:
   4217     RECOMP_BACKEDGE();
   4218     goto L_3615FD76; /* 0x36166A80: jmp 0x3615fd76 */
   4219     { RECOMP_REGS_OUT(); return; } /* end of function */
   4220   _ljump:
   4221     switch (_itail_tgt) {
   4222       case 0x3615FD76u: goto L_3615FD76;
   4223       case 0x36166A7Bu: goto L_36166A7B;
   4224       case 0x36166A80u: goto L_36166A80;
   4225       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4226     }
   4227     RECOMP_REGS_OUT();
   4228 }
   4229 
   4230 void sub_36166A90(void) {
   4231     int _fpu_cmp = 0;
   4232     uint32_t _cf = 0;
   4233     int _df = 1;
   4234     uint32_t _flag_k = FK_NONE;
   4235     uint32_t _flag_a = 0, _flag_b = 0;
   4236     uint32_t _itail_tgt = 0;
   4237     RECOMP_REGS_LOCALS
   4238     RECOMP_ENTER(0x36166A90u);
   4239 
   4240 L_36166A90:
   4241     eax = MEM32(ebp + (-0x14)); /* 0x36166A90: mov eax, dword ptr [ebp - 0x14] */
   4242     PUSH32(esp, eax); /* 0x36166A93: push eax */
   4243     RECOMP_ICALL(0x3615FCC4u); /* 0x36166A94: call 0x3615fcc4 */ /* not lifted */
   4244     RECOMP_FLAGS_IN();
   4245     ecx = POP32_VAL(esp); /* 0x36166A99: pop ecx */
   4246     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166A9A: ret  */
   4247     RECOMP_REGS_OUT();
   4248 }
   4249 
   4250 void sub_36166A9B(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(0x36166A9Bu);
   4259 
   4260 L_36166A9B:
   4261     eax = MEM32(ebp + (-0x18)); /* 0x36166A9B: mov eax, dword ptr [ebp - 0x18] */
   4262 L_36166A9E:
   4263     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   4264     eax = eax & 1; /* 0x36166A9E: and eax, 1 */
   4265     _cf = 0;
   4266     _flag_k = FK_TEST;
   4267 L_36166AA1:
   4268     /* test eax, eax */ /* 0x36166AA1: test eax, eax */
   4269     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4270     _cf = 0;
   4271     _flag_k = FK_TEST;
   4272 L_36166AA3:
   4273     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166AB2; /* 0x36166AA3: je 0x36166ab2 */
   4274 L_36166AA9:
   4275     ecx = ebp + (-0x2C); /* 0x36166AA9: lea ecx, [ebp - 0x2c] */
   4276 L_36166AAC:
   4277     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   4278 L_36166AB2:
   4279     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166AB2: ret  */
   4280   _ljump:
   4281     switch (_itail_tgt) {
   4282       case 0x36166A9Bu: goto L_36166A9B;
   4283       case 0x36166A9Eu: goto L_36166A9E;
   4284       case 0x36166AA1u: goto L_36166AA1;
   4285       case 0x36166AA3u: goto L_36166AA3;
   4286       case 0x36166AA9u: goto L_36166AA9;
   4287       case 0x36166AACu: goto L_36166AAC;
   4288       case 0x36166AB2u: goto L_36166AB2;
   4289       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4290     }
   4291     RECOMP_REGS_OUT();
   4292 }
   4293 
   4294 void sub_36166AB3(void) {
   4295     int _fpu_cmp = 0;
   4296     uint32_t _cf = 0;
   4297     int _df = 1;
   4298     uint32_t _flag_k = FK_NONE;
   4299     uint32_t _flag_a = 0, _flag_b = 0;
   4300     uint32_t _itail_tgt = 0;
   4301     RECOMP_REGS_LOCALS
   4302     RECOMP_ENTER(0x36166AB3u);
   4303 
   4304     goto L_36166AB3;
   4305 L_3615FD76:
   4306     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   4307 L_36166AB3:
   4308     eax = 0x3618BD30u; /* 0x36166AB3: mov eax, 0x3618bd30 */
   4309 L_36166AB8:
   4310     RECOMP_BACKEDGE();
   4311     goto L_3615FD76; /* 0x36166AB8: jmp 0x3615fd76 */
   4312     { RECOMP_REGS_OUT(); return; } /* end of function */
   4313   _ljump:
   4314     switch (_itail_tgt) {
   4315       case 0x3615FD76u: goto L_3615FD76;
   4316       case 0x36166AB3u: goto L_36166AB3;
   4317       case 0x36166AB8u: goto L_36166AB8;
   4318       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4319     }
   4320     RECOMP_REGS_OUT();
   4321 }
   4322 
   4323 void sub_36166AC0(void) {
   4324     int _fpu_cmp = 0;
   4325     uint32_t _cf = 0;
   4326     int _df = 1;
   4327     uint32_t _flag_k = FK_NONE;
   4328     uint32_t _flag_a = 0, _flag_b = 0;
   4329     uint32_t _itail_tgt = 0;
   4330     RECOMP_REGS_LOCALS
   4331     RECOMP_ENTER(0x36166AC0u);
   4332 
   4333 L_36166AC0:
   4334     ecx = ebp + (-0x20); /* 0x36166AC0: lea ecx, [ebp - 0x20] */
   4335 L_36166AC3:
   4336     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   4337     { RECOMP_REGS_OUT(); return; } /* end of function */
   4338   _ljump:
   4339     switch (_itail_tgt) {
   4340       case 0x36166AC0u: goto L_36166AC0;
   4341       case 0x36166AC3u: goto L_36166AC3;
   4342       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4343     }
   4344     RECOMP_REGS_OUT();
   4345 }
   4346 
   4347 void sub_36166AC9(void) {
   4348     int _fpu_cmp = 0;
   4349     uint32_t _cf = 0;
   4350     int _df = 1;
   4351     uint32_t _flag_k = FK_NONE;
   4352     uint32_t _flag_a = 0, _flag_b = 0;
   4353     uint32_t _itail_tgt = 0;
   4354     RECOMP_REGS_LOCALS
   4355     RECOMP_ENTER(0x36166AC9u);
   4356 
   4357     goto L_36166AC9;
   4358 L_3615FD76:
   4359     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   4360 L_36166AC9:
   4361     eax = 0x3618BD68u; /* 0x36166AC9: mov eax, 0x3618bd68 */
   4362 L_36166ACE:
   4363     RECOMP_BACKEDGE();
   4364     goto L_3615FD76; /* 0x36166ACE: jmp 0x3615fd76 */
   4365     { RECOMP_REGS_OUT(); return; } /* end of function */
   4366   _ljump:
   4367     switch (_itail_tgt) {
   4368       case 0x3615FD76u: goto L_3615FD76;
   4369       case 0x36166AC9u: goto L_36166AC9;
   4370       case 0x36166ACEu: goto L_36166ACE;
   4371       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4372     }
   4373     RECOMP_REGS_OUT();
   4374 }
   4375 
   4376 void sub_36166AE0(void) {
   4377     int _fpu_cmp = 0;
   4378     uint32_t _cf = 0;
   4379     int _df = 1;
   4380     uint32_t _flag_k = FK_NONE;
   4381     uint32_t _flag_a = 0, _flag_b = 0;
   4382     uint32_t _itail_tgt = 0;
   4383     RECOMP_REGS_LOCALS
   4384     RECOMP_ENTER(0x36166AE0u);
   4385 
   4386 L_36166AE0:
   4387     ecx = ebp + (-0x5C); /* 0x36166AE0: lea ecx, [ebp - 0x5c] */
   4388 L_36166AE3:
   4389     { _itail_tgt = (uint32_t)(MEM32(0x36170194)); goto _ljump; }
   4390     { RECOMP_REGS_OUT(); return; } /* end of function */
   4391   _ljump:
   4392     switch (_itail_tgt) {
   4393       case 0x36166AE0u: goto L_36166AE0;
   4394       case 0x36166AE3u: goto L_36166AE3;
   4395       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4396     }
   4397     RECOMP_REGS_OUT();
   4398 }
   4399 
   4400 void sub_36166AE9(void) {
   4401     int _fpu_cmp = 0;
   4402     uint32_t _cf = 0;
   4403     int _df = 1;
   4404     uint32_t _flag_k = FK_NONE;
   4405     uint32_t _flag_a = 0, _flag_b = 0;
   4406     uint32_t _itail_tgt = 0;
   4407     RECOMP_REGS_LOCALS
   4408     RECOMP_ENTER(0x36166AE9u);
   4409 
   4410     goto L_36166AE9;
   4411 L_3615FD76:
   4412     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   4413 L_36166AE9:
   4414     eax = 0x3618BD90u; /* 0x36166AE9: mov eax, 0x3618bd90 */
   4415 L_36166AEE:
   4416     RECOMP_BACKEDGE();
   4417     goto L_3615FD76; /* 0x36166AEE: jmp 0x3615fd76 */
   4418     { RECOMP_REGS_OUT(); return; } /* end of function */
   4419   _ljump:
   4420     switch (_itail_tgt) {
   4421       case 0x3615FD76u: goto L_3615FD76;
   4422       case 0x36166AE9u: goto L_36166AE9;
   4423       case 0x36166AEEu: goto L_36166AEE;
   4424       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4425     }
   4426     RECOMP_REGS_OUT();
   4427 }
   4428 
   4429 void sub_36166B00(void) {
   4430     int _fpu_cmp = 0;
   4431     uint32_t _cf = 0;
   4432     int _df = 1;
   4433     uint32_t _flag_k = FK_NONE;
   4434     uint32_t _flag_a = 0, _flag_b = 0;
   4435     uint32_t _itail_tgt = 0;
   4436     RECOMP_REGS_LOCALS
   4437     RECOMP_ENTER(0x36166B00u);
   4438 
   4439 L_36166B00:
   4440     eax = MEM32(ebp + 0xC); /* 0x36166B00: mov eax, dword ptr [ebp + 0xc] */
   4441     PUSH32(esp, eax); /* 0x36166B03: push eax */
   4442     RECOMP_ICALL(0x3615FCC4u); /* 0x36166B04: call 0x3615fcc4 */ /* not lifted */
   4443     RECOMP_FLAGS_IN();
   4444     ecx = POP32_VAL(esp); /* 0x36166B09: pop ecx */
   4445     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166B0A: ret  */
   4446     RECOMP_REGS_OUT();
   4447 }
   4448 
   4449 void sub_36166B0B(void) {
   4450     int _fpu_cmp = 0;
   4451     uint32_t _cf = 0;
   4452     int _df = 1;
   4453     uint32_t _flag_k = FK_NONE;
   4454     uint32_t _flag_a = 0, _flag_b = 0;
   4455     uint32_t _itail_tgt = 0;
   4456     RECOMP_REGS_LOCALS
   4457     RECOMP_ENTER(0x36166B0Bu);
   4458 
   4459     goto L_36166B0B;
   4460 L_3615FD76:
   4461     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   4462 L_36166B0B:
   4463     eax = 0x3618BDB8u; /* 0x36166B0B: mov eax, 0x3618bdb8 */
   4464 L_36166B10:
   4465     RECOMP_BACKEDGE();
   4466     goto L_3615FD76; /* 0x36166B10: jmp 0x3615fd76 */
   4467     { RECOMP_REGS_OUT(); return; } /* end of function */
   4468   _ljump:
   4469     switch (_itail_tgt) {
   4470       case 0x3615FD76u: goto L_3615FD76;
   4471       case 0x36166B0Bu: goto L_36166B0B;
   4472       case 0x36166B10u: goto L_36166B10;
   4473       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4474     }
   4475     RECOMP_REGS_OUT();
   4476 }
   4477 
   4478 void sub_36166B20(void) {
   4479     int _fpu_cmp = 0;
   4480     uint32_t _cf = 0;
   4481     int _df = 1;
   4482     uint32_t _flag_k = FK_NONE;
   4483     uint32_t _flag_a = 0, _flag_b = 0;
   4484     uint32_t _itail_tgt = 0;
   4485     RECOMP_REGS_LOCALS
   4486     RECOMP_ENTER(0x36166B20u);
   4487 
   4488 L_36166B20:
   4489     ecx = MEM32(ebp + (-0x28)); /* 0x36166B20: mov ecx, dword ptr [ebp - 0x28] */
   4490     goto L_36009C90; /* 0x36166B23: jmp 0x36009c90 */
   4491     { RECOMP_REGS_OUT(); return; } /* end of function */
   4492     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4493     RECOMP_REGS_OUT();
   4494 }
   4495 
   4496 void sub_36166B28(void) {
   4497     int _fpu_cmp = 0;
   4498     uint32_t _cf = 0;
   4499     int _df = 1;
   4500     uint32_t _flag_k = FK_NONE;
   4501     uint32_t _flag_a = 0, _flag_b = 0;
   4502     uint32_t _itail_tgt = 0;
   4503     RECOMP_REGS_LOCALS
   4504     RECOMP_ENTER(0x36166B28u);
   4505 
   4506 L_36166B28:
   4507     ecx = MEM32(ebp + (-0x28)); /* 0x36166B28: mov ecx, dword ptr [ebp - 0x28] */
   4508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u);
   4509     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4510     ecx = ecx + 0x14u; /* 0x36166B2B: add ecx, 0x14 */
   4511     _flag_k = FK_ADD;
   4512     goto L_36009C90; /* 0x36166B2E: jmp 0x36009c90 */
   4513     { RECOMP_REGS_OUT(); return; } /* end of function */
   4514     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4515     RECOMP_REGS_OUT();
   4516 }
   4517 
   4518 void sub_36166B33(void) {
   4519     int _fpu_cmp = 0;
   4520     uint32_t _cf = 0;
   4521     int _df = 1;
   4522     uint32_t _flag_k = FK_NONE;
   4523     uint32_t _flag_a = 0, _flag_b = 0;
   4524     uint32_t _itail_tgt = 0;
   4525     RECOMP_REGS_LOCALS
   4526     RECOMP_ENTER(0x36166B33u);
   4527 
   4528 L_36166B33:
   4529     ecx = MEM32(ebp + (-0x28)); /* 0x36166B33: mov ecx, dword ptr [ebp - 0x28] */
   4530     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u);
   4531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4532     ecx = ecx + 0x28u; /* 0x36166B36: add ecx, 0x28 */
   4533     _flag_k = FK_ADD;
   4534     goto L_36009C90; /* 0x36166B39: jmp 0x36009c90 */
   4535     { RECOMP_REGS_OUT(); return; } /* end of function */
   4536     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4537     RECOMP_REGS_OUT();
   4538 }
   4539 
   4540 void sub_36166B3E(void) {
   4541     int _fpu_cmp = 0;
   4542     uint32_t _cf = 0;
   4543     int _df = 1;
   4544     uint32_t _flag_k = FK_NONE;
   4545     uint32_t _flag_a = 0, _flag_b = 0;
   4546     uint32_t _itail_tgt = 0;
   4547     RECOMP_REGS_LOCALS
   4548     RECOMP_ENTER(0x36166B3Eu);
   4549 
   4550 L_36166B3E:
   4551     ecx = MEM32(ebp + (-0x28)); /* 0x36166B3E: mov ecx, dword ptr [ebp - 0x28] */
   4552     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3Cu);
   4553     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4554     ecx = ecx + 0x3Cu; /* 0x36166B41: add ecx, 0x3c */
   4555     _flag_k = FK_ADD;
   4556     goto L_36009C90; /* 0x36166B44: jmp 0x36009c90 */
   4557     { RECOMP_REGS_OUT(); return; } /* end of function */
   4558     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4559     RECOMP_REGS_OUT();
   4560 }
   4561 
   4562 void sub_36166B49(void) {
   4563     int _fpu_cmp = 0;
   4564     uint32_t _cf = 0;
   4565     int _df = 1;
   4566     uint32_t _flag_k = FK_NONE;
   4567     uint32_t _flag_a = 0, _flag_b = 0;
   4568     uint32_t _itail_tgt = 0;
   4569     RECOMP_REGS_LOCALS
   4570     RECOMP_ENTER(0x36166B49u);
   4571 
   4572 L_36166B49:
   4573     ecx = MEM32(ebp + (-0x28)); /* 0x36166B49: mov ecx, dword ptr [ebp - 0x28] */
   4574     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u);
   4575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4576     ecx = ecx + 0x50u; /* 0x36166B4C: add ecx, 0x50 */
   4577     _flag_k = FK_ADD;
   4578     goto L_36009C90; /* 0x36166B4F: jmp 0x36009c90 */
   4579     { RECOMP_REGS_OUT(); return; } /* end of function */
   4580     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4581     RECOMP_REGS_OUT();
   4582 }
   4583 
   4584 void sub_36166B54(void) {
   4585     int _fpu_cmp = 0;
   4586     uint32_t _cf = 0;
   4587     int _df = 1;
   4588     uint32_t _flag_k = FK_NONE;
   4589     uint32_t _flag_a = 0, _flag_b = 0;
   4590     uint32_t _itail_tgt = 0;
   4591     RECOMP_REGS_LOCALS
   4592     RECOMP_ENTER(0x36166B54u);
   4593 
   4594 L_36166B54:
   4595     ecx = MEM32(ebp + (-0x28)); /* 0x36166B54: mov ecx, dword ptr [ebp - 0x28] */
   4596     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x64u);
   4597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4598     ecx = ecx + 0x64u; /* 0x36166B57: add ecx, 0x64 */
   4599     _flag_k = FK_ADD;
   4600     goto L_36009C90; /* 0x36166B5A: jmp 0x36009c90 */
   4601     { RECOMP_REGS_OUT(); return; } /* end of function */
   4602     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4603     RECOMP_REGS_OUT();
   4604 }
   4605 
   4606 void sub_36166B5F(void) {
   4607     int _fpu_cmp = 0;
   4608     uint32_t _cf = 0;
   4609     int _df = 1;
   4610     uint32_t _flag_k = FK_NONE;
   4611     uint32_t _flag_a = 0, _flag_b = 0;
   4612     uint32_t _itail_tgt = 0;
   4613     RECOMP_REGS_LOCALS
   4614     RECOMP_ENTER(0x36166B5Fu);
   4615 
   4616 L_36166B5F:
   4617     ecx = MEM32(ebp + (-0x28)); /* 0x36166B5F: mov ecx, dword ptr [ebp - 0x28] */
   4618     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x78u);
   4619     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4620     ecx = ecx + 0x78u; /* 0x36166B62: add ecx, 0x78 */
   4621     _flag_k = FK_ADD;
   4622     goto L_36009C90; /* 0x36166B65: jmp 0x36009c90 */
   4623     { RECOMP_REGS_OUT(); return; } /* end of function */
   4624     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4625     RECOMP_REGS_OUT();
   4626 }
   4627 
   4628 void sub_36166B6A(void) {
   4629     int _fpu_cmp = 0;
   4630     uint32_t _cf = 0;
   4631     int _df = 1;
   4632     uint32_t _flag_k = FK_NONE;
   4633     uint32_t _flag_a = 0, _flag_b = 0;
   4634     uint32_t _itail_tgt = 0;
   4635     RECOMP_REGS_LOCALS
   4636     RECOMP_ENTER(0x36166B6Au);
   4637 
   4638 L_36166B6A:
   4639     ecx = MEM32(ebp + (-0x28)); /* 0x36166B6A: mov ecx, dword ptr [ebp - 0x28] */
   4640     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu);
   4641     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4642     ecx = ecx + 0x8Cu; /* 0x36166B6D: add ecx, 0x8c */
   4643     _flag_k = FK_ADD;
   4644     goto L_36009C90; /* 0x36166B73: jmp 0x36009c90 */
   4645     { RECOMP_REGS_OUT(); return; } /* end of function */
   4646     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4647     RECOMP_REGS_OUT();
   4648 }
   4649 
   4650 void sub_36166B78(void) {
   4651     int _fpu_cmp = 0;
   4652     uint32_t _cf = 0;
   4653     int _df = 1;
   4654     uint32_t _flag_k = FK_NONE;
   4655     uint32_t _flag_a = 0, _flag_b = 0;
   4656     uint32_t _itail_tgt = 0;
   4657     RECOMP_REGS_LOCALS
   4658     RECOMP_ENTER(0x36166B78u);
   4659 
   4660 L_36166B78:
   4661     ecx = MEM32(ebp + (-0x28)); /* 0x36166B78: mov ecx, dword ptr [ebp - 0x28] */
   4662     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xA0u);
   4663     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4664     ecx = ecx + 0xA0u; /* 0x36166B7B: add ecx, 0xa0 */
   4665     _flag_k = FK_ADD;
   4666     goto L_36009C90; /* 0x36166B81: jmp 0x36009c90 */
   4667     { RECOMP_REGS_OUT(); return; } /* end of function */
   4668     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4669     RECOMP_REGS_OUT();
   4670 }
   4671 
   4672 void sub_36166B86(void) {
   4673     int _fpu_cmp = 0;
   4674     uint32_t _cf = 0;
   4675     int _df = 1;
   4676     uint32_t _flag_k = FK_NONE;
   4677     uint32_t _flag_a = 0, _flag_b = 0;
   4678     uint32_t _itail_tgt = 0;
   4679     RECOMP_REGS_LOCALS
   4680     RECOMP_ENTER(0x36166B86u);
   4681 
   4682 L_36166B86:
   4683     ecx = MEM32(ebp + (-0x28)); /* 0x36166B86: mov ecx, dword ptr [ebp - 0x28] */
   4684     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xB4u);
   4685     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4686     ecx = ecx + 0xB4u; /* 0x36166B89: add ecx, 0xb4 */
   4687     _flag_k = FK_ADD;
   4688     goto L_36009C90; /* 0x36166B8F: jmp 0x36009c90 */
   4689     { RECOMP_REGS_OUT(); return; } /* end of function */
   4690     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4691     RECOMP_REGS_OUT();
   4692 }
   4693 
   4694 void sub_36166B94(void) {
   4695     int _fpu_cmp = 0;
   4696     uint32_t _cf = 0;
   4697     int _df = 1;
   4698     uint32_t _flag_k = FK_NONE;
   4699     uint32_t _flag_a = 0, _flag_b = 0;
   4700     uint32_t _itail_tgt = 0;
   4701     RECOMP_REGS_LOCALS
   4702     RECOMP_ENTER(0x36166B94u);
   4703 
   4704 L_36166B94:
   4705     ecx = MEM32(ebp + (-0x28)); /* 0x36166B94: mov ecx, dword ptr [ebp - 0x28] */
   4706     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC8u);
   4707     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4708     ecx = ecx + 0xC8u; /* 0x36166B97: add ecx, 0xc8 */
   4709     _flag_k = FK_ADD;
   4710     goto L_36009C90; /* 0x36166B9D: jmp 0x36009c90 */
   4711     { RECOMP_REGS_OUT(); return; } /* end of function */
   4712     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
   4713     RECOMP_REGS_OUT();
   4714 }