aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0126.c (156891B)


      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_36166BA2(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(0x36166BA2u);
     17 
     18 L_36166BA2:
     19     ecx = MEM32(ebp + (-0x28)); /* 0x36166BA2: mov ecx, dword ptr [ebp - 0x28] */
     20     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xDCu);
     21     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     22     ecx = ecx + 0xDCu; /* 0x36166BA5: add ecx, 0xdc */
     23     _flag_k = FK_ADD;
     24     goto L_36009C90; /* 0x36166BAB: jmp 0x36009c90 */
     25     { RECOMP_REGS_OUT(); return; } /* end of function */
     26     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
     27     RECOMP_REGS_OUT();
     28 }
     29 
     30 void sub_36166BB0(void) {
     31     int _fpu_cmp = 0;
     32     uint32_t _cf = 0;
     33     int _df = 1;
     34     uint32_t _flag_k = FK_NONE;
     35     uint32_t _flag_a = 0, _flag_b = 0;
     36     uint32_t _itail_tgt = 0;
     37     RECOMP_REGS_LOCALS
     38     RECOMP_ENTER(0x36166BB0u);
     39 
     40 L_36166BB0:
     41     ecx = MEM32(ebp + (-0x28)); /* 0x36166BB0: mov ecx, dword ptr [ebp - 0x28] */
     42     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xF0u);
     43     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     44     ecx = ecx + 0xF0u; /* 0x36166BB3: add ecx, 0xf0 */
     45     _flag_k = FK_ADD;
     46     goto L_36009C90; /* 0x36166BB9: jmp 0x36009c90 */
     47     { RECOMP_REGS_OUT(); return; } /* end of function */
     48     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
     49     RECOMP_REGS_OUT();
     50 }
     51 
     52 void sub_36166BBE(void) {
     53     int _fpu_cmp = 0;
     54     uint32_t _cf = 0;
     55     int _df = 1;
     56     uint32_t _flag_k = FK_NONE;
     57     uint32_t _flag_a = 0, _flag_b = 0;
     58     uint32_t _itail_tgt = 0;
     59     RECOMP_REGS_LOCALS
     60     RECOMP_ENTER(0x36166BBEu);
     61 
     62 L_36166BBE:
     63     ecx = MEM32(ebp + (-0x28)); /* 0x36166BBE: mov ecx, dword ptr [ebp - 0x28] */
     64     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x104u);
     65     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     66     ecx = ecx + 0x104u; /* 0x36166BC1: add ecx, 0x104 */
     67     _flag_k = FK_ADD;
     68     goto L_36009D50; /* 0x36166BC7: jmp 0x36009d50 */
     69     { RECOMP_REGS_OUT(); return; } /* end of function */
     70     L_36009D50: RECOMP_ITAIL(0x36009D50u); { RECOMP_REGS_OUT(); return; }
     71     RECOMP_REGS_OUT();
     72 }
     73 
     74 void sub_36166BCC(void) {
     75     int _fpu_cmp = 0;
     76     uint32_t _cf = 0;
     77     int _df = 1;
     78     uint32_t _flag_k = FK_NONE;
     79     uint32_t _flag_a = 0, _flag_b = 0;
     80     uint32_t _itail_tgt = 0;
     81     RECOMP_REGS_LOCALS
     82     RECOMP_ENTER(0x36166BCCu);
     83 
     84 L_36166BCC:
     85     ecx = MEM32(ebp + (-0x28)); /* 0x36166BCC: mov ecx, dword ptr [ebp - 0x28] */
     86     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x118u);
     87     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     88     ecx = ecx + 0x118u; /* 0x36166BCF: add ecx, 0x118 */
     89     _flag_k = FK_ADD;
     90     goto L_36009C90; /* 0x36166BD5: jmp 0x36009c90 */
     91     { RECOMP_REGS_OUT(); return; } /* end of function */
     92     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
     93     RECOMP_REGS_OUT();
     94 }
     95 
     96 void sub_36166BDA(void) {
     97     int _fpu_cmp = 0;
     98     uint32_t _cf = 0;
     99     int _df = 1;
    100     uint32_t _flag_k = FK_NONE;
    101     uint32_t _flag_a = 0, _flag_b = 0;
    102     uint32_t _itail_tgt = 0;
    103     RECOMP_REGS_LOCALS
    104     RECOMP_ENTER(0x36166BDAu);
    105 
    106 L_36166BDA:
    107     ecx = MEM32(ebp + (-0x28)); /* 0x36166BDA: mov ecx, dword ptr [ebp - 0x28] */
    108     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x12Cu);
    109     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    110     ecx = ecx + 0x12Cu; /* 0x36166BDD: add ecx, 0x12c */
    111     _flag_k = FK_ADD;
    112     goto L_36009C90; /* 0x36166BE3: jmp 0x36009c90 */
    113     { RECOMP_REGS_OUT(); return; } /* end of function */
    114     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    115     RECOMP_REGS_OUT();
    116 }
    117 
    118 void sub_36166BE8(void) {
    119     int _fpu_cmp = 0;
    120     uint32_t _cf = 0;
    121     int _df = 1;
    122     uint32_t _flag_k = FK_NONE;
    123     uint32_t _flag_a = 0, _flag_b = 0;
    124     uint32_t _itail_tgt = 0;
    125     RECOMP_REGS_LOCALS
    126     RECOMP_ENTER(0x36166BE8u);
    127 
    128 L_36166BE8:
    129     ecx = MEM32(ebp + (-0x28)); /* 0x36166BE8: mov ecx, dword ptr [ebp - 0x28] */
    130     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x140u);
    131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    132     ecx = ecx + 0x140u; /* 0x36166BEB: add ecx, 0x140 */
    133     _flag_k = FK_ADD;
    134     goto L_36009C90; /* 0x36166BF1: jmp 0x36009c90 */
    135     { RECOMP_REGS_OUT(); return; } /* end of function */
    136     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    137     RECOMP_REGS_OUT();
    138 }
    139 
    140 void sub_36166BF6(void) {
    141     int _fpu_cmp = 0;
    142     uint32_t _cf = 0;
    143     int _df = 1;
    144     uint32_t _flag_k = FK_NONE;
    145     uint32_t _flag_a = 0, _flag_b = 0;
    146     uint32_t _itail_tgt = 0;
    147     RECOMP_REGS_LOCALS
    148     RECOMP_ENTER(0x36166BF6u);
    149 
    150 L_36166BF6:
    151     ecx = MEM32(ebp + (-0x28)); /* 0x36166BF6: mov ecx, dword ptr [ebp - 0x28] */
    152     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x154u);
    153     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    154     ecx = ecx + 0x154u; /* 0x36166BF9: add ecx, 0x154 */
    155     _flag_k = FK_ADD;
    156     goto L_36009C90; /* 0x36166BFF: jmp 0x36009c90 */
    157     { RECOMP_REGS_OUT(); return; } /* end of function */
    158     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    159     RECOMP_REGS_OUT();
    160 }
    161 
    162 void sub_36166C04(void) {
    163     int _fpu_cmp = 0;
    164     uint32_t _cf = 0;
    165     int _df = 1;
    166     uint32_t _flag_k = FK_NONE;
    167     uint32_t _flag_a = 0, _flag_b = 0;
    168     uint32_t _itail_tgt = 0;
    169     RECOMP_REGS_LOCALS
    170     RECOMP_ENTER(0x36166C04u);
    171 
    172 L_36166C04:
    173     ecx = MEM32(ebp + (-0x28)); /* 0x36166C04: mov ecx, dword ptr [ebp - 0x28] */
    174     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x168u);
    175     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    176     ecx = ecx + 0x168u; /* 0x36166C07: add ecx, 0x168 */
    177     _flag_k = FK_ADD;
    178     goto L_36009C90; /* 0x36166C0D: jmp 0x36009c90 */
    179     { RECOMP_REGS_OUT(); return; } /* end of function */
    180     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    181     RECOMP_REGS_OUT();
    182 }
    183 
    184 void sub_36166C12(void) {
    185     int _fpu_cmp = 0;
    186     uint32_t _cf = 0;
    187     int _df = 1;
    188     uint32_t _flag_k = FK_NONE;
    189     uint32_t _flag_a = 0, _flag_b = 0;
    190     uint32_t _itail_tgt = 0;
    191     RECOMP_REGS_LOCALS
    192     RECOMP_ENTER(0x36166C12u);
    193 
    194 L_36166C12:
    195     ecx = MEM32(ebp + (-0x28)); /* 0x36166C12: mov ecx, dword ptr [ebp - 0x28] */
    196     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x17Cu);
    197     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    198     ecx = ecx + 0x17Cu; /* 0x36166C15: add ecx, 0x17c */
    199     _flag_k = FK_ADD;
    200     goto L_36009C90; /* 0x36166C1B: jmp 0x36009c90 */
    201     { RECOMP_REGS_OUT(); return; } /* end of function */
    202     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    203     RECOMP_REGS_OUT();
    204 }
    205 
    206 void sub_36166C20(void) {
    207     int _fpu_cmp = 0;
    208     uint32_t _cf = 0;
    209     int _df = 1;
    210     uint32_t _flag_k = FK_NONE;
    211     uint32_t _flag_a = 0, _flag_b = 0;
    212     uint32_t _itail_tgt = 0;
    213     RECOMP_REGS_LOCALS
    214     RECOMP_ENTER(0x36166C20u);
    215 
    216 L_36166C20:
    217     ecx = MEM32(ebp + (-0x28)); /* 0x36166C20: mov ecx, dword ptr [ebp - 0x28] */
    218     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x190u);
    219     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    220     ecx = ecx + 0x190u; /* 0x36166C23: add ecx, 0x190 */
    221     _flag_k = FK_ADD;
    222     goto L_36009C90; /* 0x36166C29: jmp 0x36009c90 */
    223     { RECOMP_REGS_OUT(); return; } /* end of function */
    224     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    225     RECOMP_REGS_OUT();
    226 }
    227 
    228 void sub_36166C2E(void) {
    229     int _fpu_cmp = 0;
    230     uint32_t _cf = 0;
    231     int _df = 1;
    232     uint32_t _flag_k = FK_NONE;
    233     uint32_t _flag_a = 0, _flag_b = 0;
    234     uint32_t _itail_tgt = 0;
    235     RECOMP_REGS_LOCALS
    236     RECOMP_ENTER(0x36166C2Eu);
    237 
    238 L_36166C2E:
    239     ecx = MEM32(ebp + (-0x28)); /* 0x36166C2E: mov ecx, dword ptr [ebp - 0x28] */
    240     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1A4u);
    241     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    242     ecx = ecx + 0x1A4u; /* 0x36166C31: add ecx, 0x1a4 */
    243     _flag_k = FK_ADD;
    244     goto L_36009C90; /* 0x36166C37: jmp 0x36009c90 */
    245     { RECOMP_REGS_OUT(); return; } /* end of function */
    246     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    247     RECOMP_REGS_OUT();
    248 }
    249 
    250 void sub_36166C3C(void) {
    251     int _fpu_cmp = 0;
    252     uint32_t _cf = 0;
    253     int _df = 1;
    254     uint32_t _flag_k = FK_NONE;
    255     uint32_t _flag_a = 0, _flag_b = 0;
    256     uint32_t _itail_tgt = 0;
    257     RECOMP_REGS_LOCALS
    258     RECOMP_ENTER(0x36166C3Cu);
    259 
    260 L_36166C3C:
    261     ecx = MEM32(ebp + (-0x28)); /* 0x36166C3C: mov ecx, dword ptr [ebp - 0x28] */
    262     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1B8u);
    263     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    264     ecx = ecx + 0x1B8u; /* 0x36166C3F: add ecx, 0x1b8 */
    265     _flag_k = FK_ADD;
    266     goto L_36009C90; /* 0x36166C45: jmp 0x36009c90 */
    267     { RECOMP_REGS_OUT(); return; } /* end of function */
    268     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    269     RECOMP_REGS_OUT();
    270 }
    271 
    272 void sub_36166C4A(void) {
    273     int _fpu_cmp = 0;
    274     uint32_t _cf = 0;
    275     int _df = 1;
    276     uint32_t _flag_k = FK_NONE;
    277     uint32_t _flag_a = 0, _flag_b = 0;
    278     uint32_t _itail_tgt = 0;
    279     RECOMP_REGS_LOCALS
    280     RECOMP_ENTER(0x36166C4Au);
    281 
    282 L_36166C4A:
    283     ecx = MEM32(ebp + (-0x28)); /* 0x36166C4A: mov ecx, dword ptr [ebp - 0x28] */
    284     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1CCu);
    285     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    286     ecx = ecx + 0x1CCu; /* 0x36166C4D: add ecx, 0x1cc */
    287     _flag_k = FK_ADD;
    288     goto L_36009C90; /* 0x36166C53: jmp 0x36009c90 */
    289     { RECOMP_REGS_OUT(); return; } /* end of function */
    290     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    291     RECOMP_REGS_OUT();
    292 }
    293 
    294 void sub_36166C58(void) {
    295     int _fpu_cmp = 0;
    296     uint32_t _cf = 0;
    297     int _df = 1;
    298     uint32_t _flag_k = FK_NONE;
    299     uint32_t _flag_a = 0, _flag_b = 0;
    300     uint32_t _itail_tgt = 0;
    301     RECOMP_REGS_LOCALS
    302     RECOMP_ENTER(0x36166C58u);
    303 
    304 L_36166C58:
    305     ecx = MEM32(ebp + (-0x28)); /* 0x36166C58: mov ecx, dword ptr [ebp - 0x28] */
    306     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1E0u);
    307     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    308     ecx = ecx + 0x1E0u; /* 0x36166C5B: add ecx, 0x1e0 */
    309     _flag_k = FK_ADD;
    310     goto L_36009C90; /* 0x36166C61: jmp 0x36009c90 */
    311     { RECOMP_REGS_OUT(); return; } /* end of function */
    312     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    313     RECOMP_REGS_OUT();
    314 }
    315 
    316 void sub_36166C66(void) {
    317     int _fpu_cmp = 0;
    318     uint32_t _cf = 0;
    319     int _df = 1;
    320     uint32_t _flag_k = FK_NONE;
    321     uint32_t _flag_a = 0, _flag_b = 0;
    322     uint32_t _itail_tgt = 0;
    323     RECOMP_REGS_LOCALS
    324     RECOMP_ENTER(0x36166C66u);
    325 
    326 L_36166C66:
    327     ecx = MEM32(ebp + (-0x28)); /* 0x36166C66: mov ecx, dword ptr [ebp - 0x28] */
    328     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1F4u);
    329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    330     ecx = ecx + 0x1F4u; /* 0x36166C69: add ecx, 0x1f4 */
    331     _flag_k = FK_ADD;
    332     goto L_36009C90; /* 0x36166C6F: jmp 0x36009c90 */
    333     { RECOMP_REGS_OUT(); return; } /* end of function */
    334     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    335     RECOMP_REGS_OUT();
    336 }
    337 
    338 void sub_36166C74(void) {
    339     int _fpu_cmp = 0;
    340     uint32_t _cf = 0;
    341     int _df = 1;
    342     uint32_t _flag_k = FK_NONE;
    343     uint32_t _flag_a = 0, _flag_b = 0;
    344     uint32_t _itail_tgt = 0;
    345     RECOMP_REGS_LOCALS
    346     RECOMP_ENTER(0x36166C74u);
    347 
    348 L_36166C74:
    349     ecx = MEM32(ebp + (-0x28)); /* 0x36166C74: mov ecx, dword ptr [ebp - 0x28] */
    350     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x208u);
    351     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    352     ecx = ecx + 0x208u; /* 0x36166C77: add ecx, 0x208 */
    353     _flag_k = FK_ADD;
    354     goto L_36009C90; /* 0x36166C7D: jmp 0x36009c90 */
    355     { RECOMP_REGS_OUT(); return; } /* end of function */
    356     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    357     RECOMP_REGS_OUT();
    358 }
    359 
    360 void sub_36166C82(void) {
    361     int _fpu_cmp = 0;
    362     uint32_t _cf = 0;
    363     int _df = 1;
    364     uint32_t _flag_k = FK_NONE;
    365     uint32_t _flag_a = 0, _flag_b = 0;
    366     uint32_t _itail_tgt = 0;
    367     RECOMP_REGS_LOCALS
    368     RECOMP_ENTER(0x36166C82u);
    369 
    370 L_36166C82:
    371     ecx = MEM32(ebp + (-0x28)); /* 0x36166C82: mov ecx, dword ptr [ebp - 0x28] */
    372     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x21Cu);
    373     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    374     ecx = ecx + 0x21Cu; /* 0x36166C85: add ecx, 0x21c */
    375     _flag_k = FK_ADD;
    376     goto L_36009C90; /* 0x36166C8B: jmp 0x36009c90 */
    377     { RECOMP_REGS_OUT(); return; } /* end of function */
    378     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    379     RECOMP_REGS_OUT();
    380 }
    381 
    382 void sub_36166C90(void) {
    383     int _fpu_cmp = 0;
    384     uint32_t _cf = 0;
    385     int _df = 1;
    386     uint32_t _flag_k = FK_NONE;
    387     uint32_t _flag_a = 0, _flag_b = 0;
    388     uint32_t _itail_tgt = 0;
    389     RECOMP_REGS_LOCALS
    390     RECOMP_ENTER(0x36166C90u);
    391 
    392 L_36166C90:
    393     ecx = MEM32(ebp + (-0x28)); /* 0x36166C90: mov ecx, dword ptr [ebp - 0x28] */
    394     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x230u);
    395     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    396     ecx = ecx + 0x230u; /* 0x36166C93: add ecx, 0x230 */
    397     _flag_k = FK_ADD;
    398     goto L_36009C90; /* 0x36166C99: jmp 0x36009c90 */
    399     { RECOMP_REGS_OUT(); return; } /* end of function */
    400     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    401     RECOMP_REGS_OUT();
    402 }
    403 
    404 void sub_36166C9E(void) {
    405     int _fpu_cmp = 0;
    406     uint32_t _cf = 0;
    407     int _df = 1;
    408     uint32_t _flag_k = FK_NONE;
    409     uint32_t _flag_a = 0, _flag_b = 0;
    410     uint32_t _itail_tgt = 0;
    411     RECOMP_REGS_LOCALS
    412     RECOMP_ENTER(0x36166C9Eu);
    413 
    414 L_36166C9E:
    415     ecx = MEM32(ebp + (-0x28)); /* 0x36166C9E: mov ecx, dword ptr [ebp - 0x28] */
    416     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x244u);
    417     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    418     ecx = ecx + 0x244u; /* 0x36166CA1: add ecx, 0x244 */
    419     _flag_k = FK_ADD;
    420     goto L_36009C90; /* 0x36166CA7: jmp 0x36009c90 */
    421     { RECOMP_REGS_OUT(); return; } /* end of function */
    422     L_36009C90: RECOMP_ITAIL(0x36009C90u); { RECOMP_REGS_OUT(); return; }
    423     RECOMP_REGS_OUT();
    424 }
    425 
    426 void sub_36166CAC(void) {
    427     int _fpu_cmp = 0;
    428     uint32_t _cf = 0;
    429     int _df = 1;
    430     uint32_t _flag_k = FK_NONE;
    431     uint32_t _flag_a = 0, _flag_b = 0;
    432     uint32_t _itail_tgt = 0;
    433     RECOMP_REGS_LOCALS
    434     RECOMP_ENTER(0x36166CACu);
    435 
    436     goto L_36166CAC;
    437 L_3615FD76:
    438     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
    439 L_36166CAC:
    440     eax = 0x3618BDE0u; /* 0x36166CAC: mov eax, 0x3618bde0 */
    441 L_36166CB1:
    442     RECOMP_BACKEDGE();
    443     goto L_3615FD76; /* 0x36166CB1: jmp 0x3615fd76 */
    444     { RECOMP_REGS_OUT(); return; } /* end of function */
    445   _ljump:
    446     switch (_itail_tgt) {
    447       case 0x3615FD76u: goto L_3615FD76;
    448       case 0x36166CACu: goto L_36166CAC;
    449       case 0x36166CB1u: goto L_36166CB1;
    450       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    451     }
    452     RECOMP_REGS_OUT();
    453 }
    454 
    455 void sub_36166CC0(void) {
    456     int _fpu_cmp = 0;
    457     uint32_t _cf = 0;
    458     int _df = 1;
    459     uint32_t _flag_k = FK_NONE;
    460     uint32_t _flag_a = 0, _flag_b = 0;
    461     uint32_t _itail_tgt = 0;
    462     RECOMP_REGS_LOCALS
    463     RECOMP_ENTER(0x36166CC0u);
    464 
    465 L_36166CC0:
    466     eax = MEM32(ebp + 0x8); /* 0x36166CC0: mov eax, dword ptr [ebp + 8] */
    467     PUSH32(esp, eax); /* 0x36166CC3: push eax */
    468     RECOMP_ICALL(0x3615FCC4u); /* 0x36166CC4: call 0x3615fcc4 */ /* not lifted */
    469     RECOMP_FLAGS_IN();
    470     ecx = POP32_VAL(esp); /* 0x36166CC9: pop ecx */
    471     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166CCA: ret  */
    472     RECOMP_REGS_OUT();
    473 }
    474 
    475 void sub_36166CCB(void) {
    476     int _fpu_cmp = 0;
    477     uint32_t _cf = 0;
    478     int _df = 1;
    479     uint32_t _flag_k = FK_NONE;
    480     uint32_t _flag_a = 0, _flag_b = 0;
    481     uint32_t _itail_tgt = 0;
    482     RECOMP_REGS_LOCALS
    483     RECOMP_ENTER(0x36166CCBu);
    484 
    485 L_36166CCB:
    486     eax = MEM32(ebp + (-0x2C)); /* 0x36166CCB: mov eax, dword ptr [ebp - 0x2c] */
    487     PUSH32(esp, eax); /* 0x36166CCE: push eax */
    488     RECOMP_ICALL(0x3615FCC4u); /* 0x36166CCF: call 0x3615fcc4 */ /* not lifted */
    489     RECOMP_FLAGS_IN();
    490     ecx = POP32_VAL(esp); /* 0x36166CD4: pop ecx */
    491     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166CD5: ret  */
    492     RECOMP_REGS_OUT();
    493 }
    494 
    495 void sub_36166CD6(void) {
    496     int _fpu_cmp = 0;
    497     uint32_t _cf = 0;
    498     int _df = 1;
    499     uint32_t _flag_k = FK_NONE;
    500     uint32_t _flag_a = 0, _flag_b = 0;
    501     uint32_t _itail_tgt = 0;
    502     RECOMP_REGS_LOCALS
    503     RECOMP_ENTER(0x36166CD6u);
    504 
    505 L_36166CD6:
    506     eax = MEM32(ebp + (-0x2C)); /* 0x36166CD6: mov eax, dword ptr [ebp - 0x2c] */
    507     PUSH32(esp, eax); /* 0x36166CD9: push eax */
    508     RECOMP_ICALL(0x3615FCC4u); /* 0x36166CDA: call 0x3615fcc4 */ /* not lifted */
    509     RECOMP_FLAGS_IN();
    510     ecx = POP32_VAL(esp); /* 0x36166CDF: pop ecx */
    511     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166CE0: ret  */
    512     RECOMP_REGS_OUT();
    513 }
    514 
    515 void sub_36166CE1(void) {
    516     int _fpu_cmp = 0;
    517     uint32_t _cf = 0;
    518     int _df = 1;
    519     uint32_t _flag_k = FK_NONE;
    520     uint32_t _flag_a = 0, _flag_b = 0;
    521     uint32_t _itail_tgt = 0;
    522     RECOMP_REGS_LOCALS
    523     RECOMP_ENTER(0x36166CE1u);
    524 
    525 L_36166CE1:
    526     eax = MEM32(ebp + (-0x2C)); /* 0x36166CE1: mov eax, dword ptr [ebp - 0x2c] */
    527     PUSH32(esp, eax); /* 0x36166CE4: push eax */
    528     RECOMP_ICALL(0x3615FCC4u); /* 0x36166CE5: call 0x3615fcc4 */ /* not lifted */
    529     RECOMP_FLAGS_IN();
    530     ecx = POP32_VAL(esp); /* 0x36166CEA: pop ecx */
    531     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166CEB: ret  */
    532     RECOMP_REGS_OUT();
    533 }
    534 
    535 void sub_36166CEC(void) {
    536     int _fpu_cmp = 0;
    537     uint32_t _cf = 0;
    538     int _df = 1;
    539     uint32_t _flag_k = FK_NONE;
    540     uint32_t _flag_a = 0, _flag_b = 0;
    541     uint32_t _itail_tgt = 0;
    542     RECOMP_REGS_LOCALS
    543     RECOMP_ENTER(0x36166CECu);
    544 
    545 L_36166CEC:
    546     eax = MEM32(ebp + (-0x2C)); /* 0x36166CEC: mov eax, dword ptr [ebp - 0x2c] */
    547     PUSH32(esp, eax); /* 0x36166CEF: push eax */
    548     RECOMP_ICALL(0x3615FCC4u); /* 0x36166CF0: call 0x3615fcc4 */ /* not lifted */
    549     RECOMP_FLAGS_IN();
    550     ecx = POP32_VAL(esp); /* 0x36166CF5: pop ecx */
    551     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166CF6: ret  */
    552     RECOMP_REGS_OUT();
    553 }
    554 
    555 void sub_36166CF7(void) {
    556     int _fpu_cmp = 0;
    557     uint32_t _cf = 0;
    558     int _df = 1;
    559     uint32_t _flag_k = FK_NONE;
    560     uint32_t _flag_a = 0, _flag_b = 0;
    561     uint32_t _itail_tgt = 0;
    562     RECOMP_REGS_LOCALS
    563     RECOMP_ENTER(0x36166CF7u);
    564 
    565 L_36166CF7:
    566     eax = MEM32(ebp + (-0x2C)); /* 0x36166CF7: mov eax, dword ptr [ebp - 0x2c] */
    567     PUSH32(esp, eax); /* 0x36166CFA: push eax */
    568     RECOMP_ICALL(0x3615FCC4u); /* 0x36166CFB: call 0x3615fcc4 */ /* not lifted */
    569     RECOMP_FLAGS_IN();
    570     ecx = POP32_VAL(esp); /* 0x36166D00: pop ecx */
    571     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166D01: ret  */
    572     RECOMP_REGS_OUT();
    573 }
    574 
    575 void sub_36166D02(void) {
    576     int _fpu_cmp = 0;
    577     uint32_t _cf = 0;
    578     int _df = 1;
    579     uint32_t _flag_k = FK_NONE;
    580     uint32_t _flag_a = 0, _flag_b = 0;
    581     uint32_t _itail_tgt = 0;
    582     RECOMP_REGS_LOCALS
    583     RECOMP_ENTER(0x36166D02u);
    584 
    585 L_36166D02:
    586     eax = MEM32(ebp + 0x8); /* 0x36166D02: mov eax, dword ptr [ebp + 8] */
    587     PUSH32(esp, eax); /* 0x36166D05: push eax */
    588     RECOMP_ICALL(0x3615FCC4u); /* 0x36166D06: call 0x3615fcc4 */ /* not lifted */
    589     RECOMP_FLAGS_IN();
    590     ecx = POP32_VAL(esp); /* 0x36166D0B: pop ecx */
    591     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166D0C: ret  */
    592     RECOMP_REGS_OUT();
    593 }
    594 
    595 void sub_36166D0D(void) {
    596     int _fpu_cmp = 0;
    597     uint32_t _cf = 0;
    598     int _df = 1;
    599     uint32_t _flag_k = FK_NONE;
    600     uint32_t _flag_a = 0, _flag_b = 0;
    601     uint32_t _itail_tgt = 0;
    602     RECOMP_REGS_LOCALS
    603     RECOMP_ENTER(0x36166D0Du);
    604 
    605 L_36166D0D:
    606     eax = MEM32(ebp + 0x8); /* 0x36166D0D: mov eax, dword ptr [ebp + 8] */
    607     PUSH32(esp, eax); /* 0x36166D10: push eax */
    608     RECOMP_ICALL(0x3615FCC4u); /* 0x36166D11: call 0x3615fcc4 */ /* not lifted */
    609     RECOMP_FLAGS_IN();
    610     ecx = POP32_VAL(esp); /* 0x36166D16: pop ecx */
    611     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166D17: ret  */
    612     RECOMP_REGS_OUT();
    613 }
    614 
    615 void sub_36166D18(void) {
    616     int _fpu_cmp = 0;
    617     uint32_t _cf = 0;
    618     int _df = 1;
    619     uint32_t _flag_k = FK_NONE;
    620     uint32_t _flag_a = 0, _flag_b = 0;
    621     uint32_t _itail_tgt = 0;
    622     RECOMP_REGS_LOCALS
    623     RECOMP_ENTER(0x36166D18u);
    624 
    625 L_36166D18:
    626     eax = MEM32(ebp + 0x8); /* 0x36166D18: mov eax, dword ptr [ebp + 8] */
    627     PUSH32(esp, eax); /* 0x36166D1B: push eax */
    628     RECOMP_ICALL(0x3615FCC4u); /* 0x36166D1C: call 0x3615fcc4 */ /* not lifted */
    629     RECOMP_FLAGS_IN();
    630     ecx = POP32_VAL(esp); /* 0x36166D21: pop ecx */
    631     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166D22: ret  */
    632     RECOMP_REGS_OUT();
    633 }
    634 
    635 void sub_36166D23(void) {
    636     int _fpu_cmp = 0;
    637     uint32_t _cf = 0;
    638     int _df = 1;
    639     uint32_t _flag_k = FK_NONE;
    640     uint32_t _flag_a = 0, _flag_b = 0;
    641     uint32_t _itail_tgt = 0;
    642     RECOMP_REGS_LOCALS
    643     RECOMP_ENTER(0x36166D23u);
    644 
    645     goto L_36166D23;
    646 L_3615FD76:
    647     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
    648 L_36166D23:
    649     eax = 0x3618BEF0u; /* 0x36166D23: mov eax, 0x3618bef0 */
    650 L_36166D28:
    651     RECOMP_BACKEDGE();
    652     goto L_3615FD76; /* 0x36166D28: jmp 0x3615fd76 */
    653     { RECOMP_REGS_OUT(); return; } /* end of function */
    654   _ljump:
    655     switch (_itail_tgt) {
    656       case 0x3615FD76u: goto L_3615FD76;
    657       case 0x36166D23u: goto L_36166D23;
    658       case 0x36166D28u: goto L_36166D28;
    659       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    660     }
    661     RECOMP_REGS_OUT();
    662 }
    663 
    664 void sub_36166D30(void) {
    665     int _fpu_cmp = 0;
    666     uint32_t _cf = 0;
    667     int _df = 1;
    668     uint32_t _flag_k = FK_NONE;
    669     uint32_t _flag_a = 0, _flag_b = 0;
    670     uint32_t _itail_tgt = 0;
    671     RECOMP_REGS_LOCALS
    672     RECOMP_ENTER(0x36166D30u);
    673 
    674     goto L_36166D30;
    675 L_3609CC20:
    676     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
    677     ebp = esp; /* 0x3609CC21: mov ebp, esp */
    678     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
    679     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
    680     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
    681     PUSH32(esp, eax); /* 0x3609CC30: push eax */
    682     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
    683     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    684     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    685     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
    686     _flag_k = FK_CMP;
    687     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
    688     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
    689     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
    690     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
    691     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
    692     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
    693     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
    694     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
    695     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
    696     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
    697     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
    698     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
    699     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
    700     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
    701     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
    702     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    703     _cf = 0;
    704     _flag_k = FK_TEST;
    705     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
    706     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
    707 L_3609CC97:
    708     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
    709     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
    710     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
    711     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    713     _flag_k = FK_CMP;
    714     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
    715     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
    716 L_3609CCA3:
    717     eax = edi; /* 0x3609CCA3: mov eax, edi */
    718     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
    719     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
    720     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
    721     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
    722     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
    723     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
    724     RECOMP_FLAGS_IN();
    725     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
    726     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
    727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    728     _flag_k = FK_CMP;
    729     RECOMP_BACKEDGE();
    730     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
    731 L_3609CCB8:
    732     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
    733     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
    734     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
    735     RECOMP_FLAGS_IN();
    736     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    737     eax = 0; /* 0x3609CCC1: xor eax, eax */
    738     _cf = 0;
    739     _flag_k = FK_TEST;
    740     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
    741     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
    742     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
    743     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
    744     RECOMP_FLAGS_IN();
    745     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    746     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    747     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
    748     _flag_k = FK_ADD;
    749 L_3609CCD2:
    750     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
    751     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
    752     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
    753     _cf = 0;
    754     _flag_k = FK_TEST;
    755     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
    756     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
    757 L_3609CCE6:
    758     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
    759     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
    760     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
    761     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    763     _flag_k = FK_CMP;
    764     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
    765     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
    766 L_3609CCF2:
    767     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
    768     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
    769     eax = edi; /* 0x3609CCF7: mov eax, edi */
    770     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
    771     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
    772     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
    773     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
    774     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
    775     RECOMP_FLAGS_IN();
    776     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
    777     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
    778     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
    779     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
    780     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
    781     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
    782     PUSH32(esp, eax); /* 0x3609CD15: push eax */
    783     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
    784     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
    785     RECOMP_FLAGS_IN();
    786     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
    787     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
    788     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    790     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
    791     _flag_k = FK_ADD;
    792     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    793     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
    794     _flag_k = FK_DEC;
    795     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
    796     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    797     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    798     _flag_k = FK_CMP;
    799     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
    800     RECOMP_BACKEDGE();
    801     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
    802 L_3609CD2F:
    803     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
    804     PUSH32(esp, eax); /* 0x3609CD32: push eax */
    805     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
    806     RECOMP_FLAGS_IN();
    807     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    808     eax = 0; /* 0x3609CD38: xor eax, eax */
    809     _cf = 0;
    810     _flag_k = FK_TEST;
    811     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
    812     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
    813     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
    814     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
    815     RECOMP_FLAGS_IN();
    816     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    817     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    818     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
    819     _flag_k = FK_ADD;
    820 L_3609CD49:
    821     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
    822     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
    823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    824     _cf = 0;
    825     _flag_k = FK_TEST;
    826     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
    827     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
    828 L_3609CD5D:
    829     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
    830     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
    831     RECOMP_FLAGS_IN();
    832     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    833     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    834     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
    835     _flag_k = FK_ADD;
    836 L_3609CD66:
    837     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
    838     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
    839     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    840     _cf = 0;
    841     _flag_k = FK_TEST;
    842     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
    843     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
    844 L_3609CD7A:
    845     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
    846     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
    847     RECOMP_FLAGS_IN();
    848     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    849     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    850     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
    851     _flag_k = FK_ADD;
    852 L_3609CD83:
    853     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
    854     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
    855     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    856     _cf = 0;
    857     _flag_k = FK_TEST;
    858     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
    859     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
    860 L_3609CD97:
    861     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
    862     RECOMP_FLAGS_IN();
    863     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
    864 L_3609CDA6:
    865     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
    866     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    867     _cf = (ecx) != 0;
    868     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
    869     _flag_k = FK_CMP;
    870     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
    871       ecx = _sc ? 0xFFFFFFFFu : 0;
    872       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    873       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    874     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
    875     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    876     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
    877     _cf = 0;
    878     _flag_k = FK_TEST;
    879     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
    880     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
    881     RECOMP_FLAGS_IN();
    882     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
    883     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
    884     _cf = (ecx) != 0;
    885     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
    886     _flag_k = FK_CMP;
    887     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
    888       ecx = _sc ? 0xFFFFFFFFu : 0;
    889       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    890       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    891     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
    892     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
    893     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
    894     _cf = 0;
    895     _flag_k = FK_TEST;
    896     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
    897     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
    898     RECOMP_FLAGS_IN();
    899     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
    900     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
    901     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
    902     RECOMP_FLAGS_IN();
    903     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
    904     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
    905     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
    906     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
    907     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
    908     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
    909     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
    910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
    911 L_36166D30:
    912     ecx = MEM32(ebp + (-0x10)); /* 0x36166D30: mov ecx, dword ptr [ebp - 0x10] */
    913     RECOMP_BACKEDGE();
    914     goto L_3609CC20; /* 0x36166D33: jmp 0x3609cc20 */
    915     { RECOMP_REGS_OUT(); return; } /* end of function */
    916     RECOMP_REGS_OUT();
    917 }
    918 
    919 void sub_36166D38(void) {
    920     int _fpu_cmp = 0;
    921     uint32_t _cf = 0;
    922     int _df = 1;
    923     uint32_t _flag_k = FK_NONE;
    924     uint32_t _flag_a = 0, _flag_b = 0;
    925     uint32_t _itail_tgt = 0;
    926     RECOMP_REGS_LOCALS
    927     RECOMP_ENTER(0x36166D38u);
    928 
    929     goto L_36166D38;
    930 L_3615FD76:
    931     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
    932 L_36166D38:
    933     eax = 0x3618BF58u; /* 0x36166D38: mov eax, 0x3618bf58 */
    934 L_36166D3D:
    935     RECOMP_BACKEDGE();
    936     goto L_3615FD76; /* 0x36166D3D: jmp 0x3615fd76 */
    937     { RECOMP_REGS_OUT(); return; } /* end of function */
    938   _ljump:
    939     switch (_itail_tgt) {
    940       case 0x3615FD76u: goto L_3615FD76;
    941       case 0x36166D38u: goto L_36166D38;
    942       case 0x36166D3Du: goto L_36166D3D;
    943       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    944     }
    945     RECOMP_REGS_OUT();
    946 }
    947 
    948 void sub_36166D50(void) {
    949     int _fpu_cmp = 0;
    950     uint32_t _cf = 0;
    951     int _df = 1;
    952     uint32_t _flag_k = FK_NONE;
    953     uint32_t _flag_a = 0, _flag_b = 0;
    954     uint32_t _itail_tgt = 0;
    955     RECOMP_REGS_LOCALS
    956     RECOMP_ENTER(0x36166D50u);
    957 
    958 L_36166D50:
    959     eax = MEM32(ebp + (-0x14)); /* 0x36166D50: mov eax, dword ptr [ebp - 0x14] */
    960     PUSH32(esp, eax); /* 0x36166D53: push eax */
    961     RECOMP_ICALL(0x3615FCC4u); /* 0x36166D54: call 0x3615fcc4 */ /* not lifted */
    962     RECOMP_FLAGS_IN();
    963     ecx = POP32_VAL(esp); /* 0x36166D59: pop ecx */
    964     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166D5A: ret  */
    965     RECOMP_REGS_OUT();
    966 }
    967 
    968 void sub_36166D5B(void) {
    969     int _fpu_cmp = 0;
    970     uint32_t _cf = 0;
    971     int _df = 1;
    972     uint32_t _flag_k = FK_NONE;
    973     uint32_t _flag_a = 0, _flag_b = 0;
    974     uint32_t _itail_tgt = 0;
    975     RECOMP_REGS_LOCALS
    976     RECOMP_ENTER(0x36166D5Bu);
    977 
    978 L_36166D5B:
    979     eax = MEM32(ebp + (-0x18)); /* 0x36166D5B: mov eax, dword ptr [ebp - 0x18] */
    980 L_36166D5E:
    981     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    982     eax = eax & 1; /* 0x36166D5E: and eax, 1 */
    983     _cf = 0;
    984     _flag_k = FK_TEST;
    985 L_36166D61:
    986     /* test eax, eax */ /* 0x36166D61: test eax, eax */
    987     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    988     _cf = 0;
    989     _flag_k = FK_TEST;
    990 L_36166D63:
    991     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166D72; /* 0x36166D63: je 0x36166d72 */
    992 L_36166D69:
    993     ecx = ebp + (-0x2C); /* 0x36166D69: lea ecx, [ebp - 0x2c] */
    994 L_36166D6C:
    995     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
    996 L_36166D72:
    997     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166D72: ret  */
    998   _ljump:
    999     switch (_itail_tgt) {
   1000       case 0x36166D5Bu: goto L_36166D5B;
   1001       case 0x36166D5Eu: goto L_36166D5E;
   1002       case 0x36166D61u: goto L_36166D61;
   1003       case 0x36166D63u: goto L_36166D63;
   1004       case 0x36166D69u: goto L_36166D69;
   1005       case 0x36166D6Cu: goto L_36166D6C;
   1006       case 0x36166D72u: goto L_36166D72;
   1007       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1008     }
   1009     RECOMP_REGS_OUT();
   1010 }
   1011 
   1012 void sub_36166D73(void) {
   1013     int _fpu_cmp = 0;
   1014     uint32_t _cf = 0;
   1015     int _df = 1;
   1016     uint32_t _flag_k = FK_NONE;
   1017     uint32_t _flag_a = 0, _flag_b = 0;
   1018     uint32_t _itail_tgt = 0;
   1019     RECOMP_REGS_LOCALS
   1020     RECOMP_ENTER(0x36166D73u);
   1021 
   1022     goto L_36166D73;
   1023 L_3615FD76:
   1024     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1025 L_36166D73:
   1026     eax = 0x3618BF80u; /* 0x36166D73: mov eax, 0x3618bf80 */
   1027 L_36166D78:
   1028     RECOMP_BACKEDGE();
   1029     goto L_3615FD76; /* 0x36166D78: jmp 0x3615fd76 */
   1030     { RECOMP_REGS_OUT(); return; } /* end of function */
   1031   _ljump:
   1032     switch (_itail_tgt) {
   1033       case 0x3615FD76u: goto L_3615FD76;
   1034       case 0x36166D73u: goto L_36166D73;
   1035       case 0x36166D78u: goto L_36166D78;
   1036       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1037     }
   1038     RECOMP_REGS_OUT();
   1039 }
   1040 
   1041 void sub_36166D80(void) {
   1042     int _fpu_cmp = 0;
   1043     uint32_t _cf = 0;
   1044     int _df = 1;
   1045     uint32_t _flag_k = FK_NONE;
   1046     uint32_t _flag_a = 0, _flag_b = 0;
   1047     uint32_t _itail_tgt = 0;
   1048     RECOMP_REGS_LOCALS
   1049     RECOMP_ENTER(0x36166D80u);
   1050 
   1051     goto L_36166D80;
   1052 L_3608B5C0:
   1053     PUSH32(esp, ebp); /* 0x3608B5C0: push ebp */
   1054     ebp = esp; /* 0x3608B5C1: mov ebp, esp */
   1055     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608B5C3: push -1 */
   1056     PUSH32(esp, 0x36165EF8u); /* 0x3608B5C5: push 0x36165ef8 */
   1057     eax = MEM32(FS_BASE + (0)); /* 0x3608B5CA: mov eax, dword ptr fs:[0] */
   1058     PUSH32(esp, eax); /* 0x3608B5D0: push eax */
   1059     MEM32(FS_BASE + (0)) = esp; /* 0x3608B5D1: mov dword ptr fs:[0], esp */
   1060     PUSH32(esp, ecx); /* 0x3608B5D8: push ecx */
   1061     PUSH32(esp, esi); /* 0x3608B5D9: push esi */
   1062     esi = ecx; /* 0x3608B5DA: mov esi, ecx */
   1063     PUSH32(esp, edi); /* 0x3608B5DC: push edi */
   1064     MEM32(ebp + (-0x10)) = esi; /* 0x3608B5DD: mov dword ptr [ebp - 0x10], esi */
   1065     MEM32(esi) = 0x36172438u; /* 0x3608B5E0: mov dword ptr [esi], 0x36172438 */
   1066     MEM32(esi + 0x8) = 0x36172428u; /* 0x3608B5E6: mov dword ptr [esi + 8], 0x36172428 */
   1067     MEM32(esi + 0x40) = 0x36172420u; /* 0x3608B5ED: mov dword ptr [esi + 0x40], 0x36172420 */
   1068     MEM32(esi + 0x4C) = 0x36172418u; /* 0x3608B5F4: mov dword ptr [esi + 0x4c], 0x36172418 */
   1069     MEM32(esi + 0x80) = 0x36172404u; /* 0x3608B5FB: mov dword ptr [esi + 0x80], 0x36172404 */
   1070     MEM32(esi + 0x8C) = 0x36172360u; /* 0x3608B605: mov dword ptr [esi + 0x8c], 0x36172360 */
   1071     MEM32(esi + 0xA8) = 0x36172348u; /* 0x3608B60F: mov dword ptr [esi + 0xa8], 0x36172348 */
   1072     MEM32(esi + 0xAC) = 0x36172340u; /* 0x3608B619: mov dword ptr [esi + 0xac], 0x36172340 */
   1073     edi = MEM32(esi + 0x1AC); /* 0x3608B623: mov edi, dword ptr [esi + 0x1ac] */
   1074     /* test edi, edi */ /* 0x3608B629: test edi, edi */
   1075     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1076     _cf = 0;
   1077     _flag_k = FK_TEST;
   1078     MEM32(ebp + (-0x4)) = 0; /* 0x3608B62B: mov dword ptr [ebp - 4], 0 */
   1079     if (TEST_Z(_flag_a, _flag_b)) goto L_3608B644; /* 0x3608B632: je 0x3608b644 */
   1080 L_3608B634:
   1081     ecx = edi; /* 0x3608B634: mov ecx, edi */
   1082     RECOMP_ICALL(0x3601E1B0u); /* 0x3608B636: call 0x3601e1b0 */ /* not lifted */
   1083     RECOMP_FLAGS_IN();
   1084     PUSH32(esp, edi); /* 0x3608B63B: push edi */
   1085     RECOMP_ICALL(0x3615FCC4u); /* 0x3608B63C: call 0x3615fcc4 */ /* not lifted */
   1086     RECOMP_FLAGS_IN();
   1087     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1088     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1089     esp = esp + 4; /* 0x3608B641: add esp, 4 */
   1090     _flag_k = FK_ADD;
   1091 L_3608B644:
   1092     MEM32(esi + 0x1AC) = 0; /* 0x3608B644: mov dword ptr [esi + 0x1ac], 0 */
   1093     _flag_a = (uint32_t)(MEM32(0x36306B18)); _flag_b = (uint32_t)(1);
   1094     MEM32(0x36306B18) = MEM32(0x36306B18) + 1; /* 0x3608B64E: inc dword ptr [0x36306b18] */
   1095     _flag_k = FK_INC;
   1096     ecx = MEM32(esi + 0x1B0); /* 0x3608B654: mov ecx, dword ptr [esi + 0x1b0] */
   1097     /* test ecx, ecx */ /* 0x3608B65A: test ecx, ecx */
   1098     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1099     _cf = 0;
   1100     _flag_k = FK_TEST;
   1101     if (TEST_Z(_flag_a, _flag_b)) goto L_3608B664; /* 0x3608B65C: je 0x3608b664 */
   1102 L_3608B65E:
   1103     eax = MEM32(ecx); /* 0x3608B65E: mov eax, dword ptr [ecx] */
   1104     PUSH32(esp, 1); /* 0x3608B660: push 1 */
   1105     RECOMP_ICALL(MEM32(eax)); /* 0x3608B662: call dword ptr [eax] */
   1106     RECOMP_FLAGS_IN();
   1107 L_3608B664:
   1108     ecx = esi; /* 0x3608B664: mov ecx, esi */
   1109     MEM32(esi + 0x1B0) = 0; /* 0x3608B666: mov dword ptr [esi + 0x1b0], 0 */
   1110     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608B670: mov dword ptr [ebp - 4], 0xffffffff */
   1111     RECOMP_ICALL(0x36097440u); /* 0x3608B677: call 0x36097440 */ /* not lifted */
   1112     RECOMP_FLAGS_IN();
   1113     ecx = MEM32(ebp + (-0xC)); /* 0x3608B67C: mov ecx, dword ptr [ebp - 0xc] */
   1114     edi = POP32_VAL(esp); /* 0x3608B67F: pop edi */
   1115     esi = POP32_VAL(esp); /* 0x3608B680: pop esi */
   1116     MEM32(FS_BASE + (0)) = ecx; /* 0x3608B681: mov dword ptr fs:[0], ecx */
   1117     esp = ebp; /* 0x3608B688: mov esp, ebp */
   1118     ebp = POP32_VAL(esp); /* 0x3608B68A: pop ebp */
   1119     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608B68B: ret  */
   1120 L_36166D80:
   1121     ecx = MEM32(ebp + (-0x10)); /* 0x36166D80: mov ecx, dword ptr [ebp - 0x10] */
   1122     RECOMP_BACKEDGE();
   1123     goto L_3608B5C0; /* 0x36166D83: jmp 0x3608b5c0 */
   1124     { RECOMP_REGS_OUT(); return; } /* end of function */
   1125     RECOMP_REGS_OUT();
   1126 }
   1127 
   1128 void sub_36166D88(void) {
   1129     int _fpu_cmp = 0;
   1130     uint32_t _cf = 0;
   1131     int _df = 1;
   1132     uint32_t _flag_k = FK_NONE;
   1133     uint32_t _flag_a = 0, _flag_b = 0;
   1134     uint32_t _itail_tgt = 0;
   1135     RECOMP_REGS_LOCALS
   1136     RECOMP_ENTER(0x36166D88u);
   1137 
   1138     goto L_36166D88;
   1139 L_3615FD76:
   1140     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1141 L_36166D88:
   1142     eax = 0x3618BFB8u; /* 0x36166D88: mov eax, 0x3618bfb8 */
   1143 L_36166D8D:
   1144     RECOMP_BACKEDGE();
   1145     goto L_3615FD76; /* 0x36166D8D: jmp 0x3615fd76 */
   1146     { RECOMP_REGS_OUT(); return; } /* end of function */
   1147   _ljump:
   1148     switch (_itail_tgt) {
   1149       case 0x3615FD76u: goto L_3615FD76;
   1150       case 0x36166D88u: goto L_36166D88;
   1151       case 0x36166D8Du: goto L_36166D8D;
   1152       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1153     }
   1154     RECOMP_REGS_OUT();
   1155 }
   1156 
   1157 void sub_36166DA0(void) {
   1158     int _fpu_cmp = 0;
   1159     uint32_t _cf = 0;
   1160     int _df = 1;
   1161     uint32_t _flag_k = FK_NONE;
   1162     uint32_t _flag_a = 0, _flag_b = 0;
   1163     uint32_t _itail_tgt = 0;
   1164     RECOMP_REGS_LOCALS
   1165     RECOMP_ENTER(0x36166DA0u);
   1166 
   1167 L_36166DA0:
   1168     eax = MEM32(ebp + (-0x14)); /* 0x36166DA0: mov eax, dword ptr [ebp - 0x14] */
   1169     PUSH32(esp, eax); /* 0x36166DA3: push eax */
   1170     RECOMP_ICALL(0x3615FCC4u); /* 0x36166DA4: call 0x3615fcc4 */ /* not lifted */
   1171     RECOMP_FLAGS_IN();
   1172     ecx = POP32_VAL(esp); /* 0x36166DA9: pop ecx */
   1173     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166DAA: ret  */
   1174     RECOMP_REGS_OUT();
   1175 }
   1176 
   1177 void sub_36166DAB(void) {
   1178     int _fpu_cmp = 0;
   1179     uint32_t _cf = 0;
   1180     int _df = 1;
   1181     uint32_t _flag_k = FK_NONE;
   1182     uint32_t _flag_a = 0, _flag_b = 0;
   1183     uint32_t _itail_tgt = 0;
   1184     RECOMP_REGS_LOCALS
   1185     RECOMP_ENTER(0x36166DABu);
   1186 
   1187 L_36166DAB:
   1188     eax = MEM32(ebp + (-0x14)); /* 0x36166DAB: mov eax, dword ptr [ebp - 0x14] */
   1189     PUSH32(esp, eax); /* 0x36166DAE: push eax */
   1190     RECOMP_ICALL(0x3615FCC4u); /* 0x36166DAF: call 0x3615fcc4 */ /* not lifted */
   1191     RECOMP_FLAGS_IN();
   1192     ecx = POP32_VAL(esp); /* 0x36166DB4: pop ecx */
   1193     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166DB5: ret  */
   1194     RECOMP_REGS_OUT();
   1195 }
   1196 
   1197 void sub_36166DB6(void) {
   1198     int _fpu_cmp = 0;
   1199     uint32_t _cf = 0;
   1200     int _df = 1;
   1201     uint32_t _flag_k = FK_NONE;
   1202     uint32_t _flag_a = 0, _flag_b = 0;
   1203     uint32_t _itail_tgt = 0;
   1204     RECOMP_REGS_LOCALS
   1205     RECOMP_ENTER(0x36166DB6u);
   1206 
   1207     goto L_36166DB6;
   1208 L_3615FD76:
   1209     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1210 L_36166DB6:
   1211     eax = 0x3618BFE0u; /* 0x36166DB6: mov eax, 0x3618bfe0 */
   1212 L_36166DBB:
   1213     RECOMP_BACKEDGE();
   1214     goto L_3615FD76; /* 0x36166DBB: jmp 0x3615fd76 */
   1215     { RECOMP_REGS_OUT(); return; } /* end of function */
   1216   _ljump:
   1217     switch (_itail_tgt) {
   1218       case 0x3615FD76u: goto L_3615FD76;
   1219       case 0x36166DB6u: goto L_36166DB6;
   1220       case 0x36166DBBu: goto L_36166DBB;
   1221       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1222     }
   1223     RECOMP_REGS_OUT();
   1224 }
   1225 
   1226 void sub_36166DC0(void) {
   1227     int _fpu_cmp = 0;
   1228     uint32_t _cf = 0;
   1229     int _df = 1;
   1230     uint32_t _flag_k = FK_NONE;
   1231     uint32_t _flag_a = 0, _flag_b = 0;
   1232     uint32_t _itail_tgt = 0;
   1233     RECOMP_REGS_LOCALS
   1234     RECOMP_ENTER(0x36166DC0u);
   1235 
   1236     goto L_36166DC0;
   1237 L_3608B5C0:
   1238     PUSH32(esp, ebp); /* 0x3608B5C0: push ebp */
   1239     ebp = esp; /* 0x3608B5C1: mov ebp, esp */
   1240     PUSH32(esp, 0xFFFFFFFFu); /* 0x3608B5C3: push -1 */
   1241     PUSH32(esp, 0x36165EF8u); /* 0x3608B5C5: push 0x36165ef8 */
   1242     eax = MEM32(FS_BASE + (0)); /* 0x3608B5CA: mov eax, dword ptr fs:[0] */
   1243     PUSH32(esp, eax); /* 0x3608B5D0: push eax */
   1244     MEM32(FS_BASE + (0)) = esp; /* 0x3608B5D1: mov dword ptr fs:[0], esp */
   1245     PUSH32(esp, ecx); /* 0x3608B5D8: push ecx */
   1246     PUSH32(esp, esi); /* 0x3608B5D9: push esi */
   1247     esi = ecx; /* 0x3608B5DA: mov esi, ecx */
   1248     PUSH32(esp, edi); /* 0x3608B5DC: push edi */
   1249     MEM32(ebp + (-0x10)) = esi; /* 0x3608B5DD: mov dword ptr [ebp - 0x10], esi */
   1250     MEM32(esi) = 0x36172438u; /* 0x3608B5E0: mov dword ptr [esi], 0x36172438 */
   1251     MEM32(esi + 0x8) = 0x36172428u; /* 0x3608B5E6: mov dword ptr [esi + 8], 0x36172428 */
   1252     MEM32(esi + 0x40) = 0x36172420u; /* 0x3608B5ED: mov dword ptr [esi + 0x40], 0x36172420 */
   1253     MEM32(esi + 0x4C) = 0x36172418u; /* 0x3608B5F4: mov dword ptr [esi + 0x4c], 0x36172418 */
   1254     MEM32(esi + 0x80) = 0x36172404u; /* 0x3608B5FB: mov dword ptr [esi + 0x80], 0x36172404 */
   1255     MEM32(esi + 0x8C) = 0x36172360u; /* 0x3608B605: mov dword ptr [esi + 0x8c], 0x36172360 */
   1256     MEM32(esi + 0xA8) = 0x36172348u; /* 0x3608B60F: mov dword ptr [esi + 0xa8], 0x36172348 */
   1257     MEM32(esi + 0xAC) = 0x36172340u; /* 0x3608B619: mov dword ptr [esi + 0xac], 0x36172340 */
   1258     edi = MEM32(esi + 0x1AC); /* 0x3608B623: mov edi, dword ptr [esi + 0x1ac] */
   1259     /* test edi, edi */ /* 0x3608B629: test edi, edi */
   1260     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1261     _cf = 0;
   1262     _flag_k = FK_TEST;
   1263     MEM32(ebp + (-0x4)) = 0; /* 0x3608B62B: mov dword ptr [ebp - 4], 0 */
   1264     if (TEST_Z(_flag_a, _flag_b)) goto L_3608B644; /* 0x3608B632: je 0x3608b644 */
   1265 L_3608B634:
   1266     ecx = edi; /* 0x3608B634: mov ecx, edi */
   1267     RECOMP_ICALL(0x3601E1B0u); /* 0x3608B636: call 0x3601e1b0 */ /* not lifted */
   1268     RECOMP_FLAGS_IN();
   1269     PUSH32(esp, edi); /* 0x3608B63B: push edi */
   1270     RECOMP_ICALL(0x3615FCC4u); /* 0x3608B63C: call 0x3615fcc4 */ /* not lifted */
   1271     RECOMP_FLAGS_IN();
   1272     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1273     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1274     esp = esp + 4; /* 0x3608B641: add esp, 4 */
   1275     _flag_k = FK_ADD;
   1276 L_3608B644:
   1277     MEM32(esi + 0x1AC) = 0; /* 0x3608B644: mov dword ptr [esi + 0x1ac], 0 */
   1278     _flag_a = (uint32_t)(MEM32(0x36306B18)); _flag_b = (uint32_t)(1);
   1279     MEM32(0x36306B18) = MEM32(0x36306B18) + 1; /* 0x3608B64E: inc dword ptr [0x36306b18] */
   1280     _flag_k = FK_INC;
   1281     ecx = MEM32(esi + 0x1B0); /* 0x3608B654: mov ecx, dword ptr [esi + 0x1b0] */
   1282     /* test ecx, ecx */ /* 0x3608B65A: test ecx, ecx */
   1283     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1284     _cf = 0;
   1285     _flag_k = FK_TEST;
   1286     if (TEST_Z(_flag_a, _flag_b)) goto L_3608B664; /* 0x3608B65C: je 0x3608b664 */
   1287 L_3608B65E:
   1288     eax = MEM32(ecx); /* 0x3608B65E: mov eax, dword ptr [ecx] */
   1289     PUSH32(esp, 1); /* 0x3608B660: push 1 */
   1290     RECOMP_ICALL(MEM32(eax)); /* 0x3608B662: call dword ptr [eax] */
   1291     RECOMP_FLAGS_IN();
   1292 L_3608B664:
   1293     ecx = esi; /* 0x3608B664: mov ecx, esi */
   1294     MEM32(esi + 0x1B0) = 0; /* 0x3608B666: mov dword ptr [esi + 0x1b0], 0 */
   1295     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608B670: mov dword ptr [ebp - 4], 0xffffffff */
   1296     RECOMP_ICALL(0x36097440u); /* 0x3608B677: call 0x36097440 */ /* not lifted */
   1297     RECOMP_FLAGS_IN();
   1298     ecx = MEM32(ebp + (-0xC)); /* 0x3608B67C: mov ecx, dword ptr [ebp - 0xc] */
   1299     edi = POP32_VAL(esp); /* 0x3608B67F: pop edi */
   1300     esi = POP32_VAL(esp); /* 0x3608B680: pop esi */
   1301     MEM32(FS_BASE + (0)) = ecx; /* 0x3608B681: mov dword ptr fs:[0], ecx */
   1302     esp = ebp; /* 0x3608B688: mov esp, ebp */
   1303     ebp = POP32_VAL(esp); /* 0x3608B68A: pop ebp */
   1304     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608B68B: ret  */
   1305 L_36166DC0:
   1306     ecx = MEM32(ebp + (-0x18)); /* 0x36166DC0: mov ecx, dword ptr [ebp - 0x18] */
   1307     RECOMP_BACKEDGE();
   1308     goto L_3608B5C0; /* 0x36166DC3: jmp 0x3608b5c0 */
   1309     { RECOMP_REGS_OUT(); return; } /* end of function */
   1310     RECOMP_REGS_OUT();
   1311 }
   1312 
   1313 void sub_36166DC8(void) {
   1314     int _fpu_cmp = 0;
   1315     uint32_t _cf = 0;
   1316     int _df = 1;
   1317     uint32_t _flag_k = FK_NONE;
   1318     uint32_t _flag_a = 0, _flag_b = 0;
   1319     uint32_t _itail_tgt = 0;
   1320     RECOMP_REGS_LOCALS
   1321     RECOMP_ENTER(0x36166DC8u);
   1322 
   1323     goto L_36166DC8;
   1324 L_3615FD76:
   1325     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1326 L_36166DC8:
   1327     eax = 0x3618C010u; /* 0x36166DC8: mov eax, 0x3618c010 */
   1328 L_36166DCD:
   1329     RECOMP_BACKEDGE();
   1330     goto L_3615FD76; /* 0x36166DCD: jmp 0x3615fd76 */
   1331     { RECOMP_REGS_OUT(); return; } /* end of function */
   1332   _ljump:
   1333     switch (_itail_tgt) {
   1334       case 0x3615FD76u: goto L_3615FD76;
   1335       case 0x36166DC8u: goto L_36166DC8;
   1336       case 0x36166DCDu: goto L_36166DCD;
   1337       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1338     }
   1339     RECOMP_REGS_OUT();
   1340 }
   1341 
   1342 void sub_36166DE0(void) {
   1343     int _fpu_cmp = 0;
   1344     uint32_t _cf = 0;
   1345     int _df = 1;
   1346     uint32_t _flag_k = FK_NONE;
   1347     uint32_t _flag_a = 0, _flag_b = 0;
   1348     uint32_t _itail_tgt = 0;
   1349     RECOMP_REGS_LOCALS
   1350     RECOMP_ENTER(0x36166DE0u);
   1351 
   1352 L_36166DE0:
   1353     ecx = ebp + (-0x20); /* 0x36166DE0: lea ecx, [ebp - 0x20] */
   1354 L_36166DE3:
   1355     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   1356     { RECOMP_REGS_OUT(); return; } /* end of function */
   1357   _ljump:
   1358     switch (_itail_tgt) {
   1359       case 0x36166DE0u: goto L_36166DE0;
   1360       case 0x36166DE3u: goto L_36166DE3;
   1361       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1362     }
   1363     RECOMP_REGS_OUT();
   1364 }
   1365 
   1366 void sub_36166DE9(void) {
   1367     int _fpu_cmp = 0;
   1368     uint32_t _cf = 0;
   1369     int _df = 1;
   1370     uint32_t _flag_k = FK_NONE;
   1371     uint32_t _flag_a = 0, _flag_b = 0;
   1372     uint32_t _itail_tgt = 0;
   1373     RECOMP_REGS_LOCALS
   1374     RECOMP_ENTER(0x36166DE9u);
   1375 
   1376     goto L_36166DE9;
   1377 L_3615FD76:
   1378     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1379 L_36166DE9:
   1380     eax = 0x3618C038u; /* 0x36166DE9: mov eax, 0x3618c038 */
   1381 L_36166DEE:
   1382     RECOMP_BACKEDGE();
   1383     goto L_3615FD76; /* 0x36166DEE: jmp 0x3615fd76 */
   1384     { RECOMP_REGS_OUT(); return; } /* end of function */
   1385   _ljump:
   1386     switch (_itail_tgt) {
   1387       case 0x3615FD76u: goto L_3615FD76;
   1388       case 0x36166DE9u: goto L_36166DE9;
   1389       case 0x36166DEEu: goto L_36166DEE;
   1390       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1391     }
   1392     RECOMP_REGS_OUT();
   1393 }
   1394 
   1395 void sub_36166E00(void) {
   1396     int _fpu_cmp = 0;
   1397     uint32_t _cf = 0;
   1398     int _df = 1;
   1399     uint32_t _flag_k = FK_NONE;
   1400     uint32_t _flag_a = 0, _flag_b = 0;
   1401     uint32_t _itail_tgt = 0;
   1402     RECOMP_REGS_LOCALS
   1403     RECOMP_ENTER(0x36166E00u);
   1404 
   1405 L_36166E00:
   1406     ecx = ebp + (-0x1C); /* 0x36166E00: lea ecx, [ebp - 0x1c] */
   1407 L_36166E03:
   1408     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   1409     { RECOMP_REGS_OUT(); return; } /* end of function */
   1410   _ljump:
   1411     switch (_itail_tgt) {
   1412       case 0x36166E00u: goto L_36166E00;
   1413       case 0x36166E03u: goto L_36166E03;
   1414       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1415     }
   1416     RECOMP_REGS_OUT();
   1417 }
   1418 
   1419 void sub_36166E09(void) {
   1420     int _fpu_cmp = 0;
   1421     uint32_t _cf = 0;
   1422     int _df = 1;
   1423     uint32_t _flag_k = FK_NONE;
   1424     uint32_t _flag_a = 0, _flag_b = 0;
   1425     uint32_t _itail_tgt = 0;
   1426     RECOMP_REGS_LOCALS
   1427     RECOMP_ENTER(0x36166E09u);
   1428 
   1429     goto L_36166E09;
   1430 L_3615FD76:
   1431     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1432 L_36166E09:
   1433     eax = 0x3618C060u; /* 0x36166E09: mov eax, 0x3618c060 */
   1434 L_36166E0E:
   1435     RECOMP_BACKEDGE();
   1436     goto L_3615FD76; /* 0x36166E0E: jmp 0x3615fd76 */
   1437     { RECOMP_REGS_OUT(); return; } /* end of function */
   1438   _ljump:
   1439     switch (_itail_tgt) {
   1440       case 0x3615FD76u: goto L_3615FD76;
   1441       case 0x36166E09u: goto L_36166E09;
   1442       case 0x36166E0Eu: goto L_36166E0E;
   1443       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1444     }
   1445     RECOMP_REGS_OUT();
   1446 }
   1447 
   1448 void sub_36166E20(void) {
   1449     int _fpu_cmp = 0;
   1450     uint32_t _cf = 0;
   1451     int _df = 1;
   1452     uint32_t _flag_k = FK_NONE;
   1453     uint32_t _flag_a = 0, _flag_b = 0;
   1454     uint32_t _itail_tgt = 0;
   1455     RECOMP_REGS_LOCALS
   1456     RECOMP_ENTER(0x36166E20u);
   1457 
   1458 L_36166E20:
   1459     eax = MEM32(ebp + (-0x14)); /* 0x36166E20: mov eax, dword ptr [ebp - 0x14] */
   1460     PUSH32(esp, eax); /* 0x36166E23: push eax */
   1461     RECOMP_ICALL(0x3615FCC4u); /* 0x36166E24: call 0x3615fcc4 */ /* not lifted */
   1462     RECOMP_FLAGS_IN();
   1463     ecx = POP32_VAL(esp); /* 0x36166E29: pop ecx */
   1464     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166E2A: ret  */
   1465     RECOMP_REGS_OUT();
   1466 }
   1467 
   1468 void sub_36166E2B(void) {
   1469     int _fpu_cmp = 0;
   1470     uint32_t _cf = 0;
   1471     int _df = 1;
   1472     uint32_t _flag_k = FK_NONE;
   1473     uint32_t _flag_a = 0, _flag_b = 0;
   1474     uint32_t _itail_tgt = 0;
   1475     RECOMP_REGS_LOCALS
   1476     RECOMP_ENTER(0x36166E2Bu);
   1477 
   1478 L_36166E2B:
   1479     eax = MEM32(ebp + (-0x18)); /* 0x36166E2B: mov eax, dword ptr [ebp - 0x18] */
   1480 L_36166E2E:
   1481     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1482     eax = eax & 1; /* 0x36166E2E: and eax, 1 */
   1483     _cf = 0;
   1484     _flag_k = FK_TEST;
   1485 L_36166E31:
   1486     /* test eax, eax */ /* 0x36166E31: test eax, eax */
   1487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1488     _cf = 0;
   1489     _flag_k = FK_TEST;
   1490 L_36166E33:
   1491     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166E42; /* 0x36166E33: je 0x36166e42 */
   1492 L_36166E39:
   1493     ecx = ebp + (-0x2C); /* 0x36166E39: lea ecx, [ebp - 0x2c] */
   1494 L_36166E3C:
   1495     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   1496 L_36166E42:
   1497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166E42: ret  */
   1498   _ljump:
   1499     switch (_itail_tgt) {
   1500       case 0x36166E2Bu: goto L_36166E2B;
   1501       case 0x36166E2Eu: goto L_36166E2E;
   1502       case 0x36166E31u: goto L_36166E31;
   1503       case 0x36166E33u: goto L_36166E33;
   1504       case 0x36166E39u: goto L_36166E39;
   1505       case 0x36166E3Cu: goto L_36166E3C;
   1506       case 0x36166E42u: goto L_36166E42;
   1507       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1508     }
   1509     RECOMP_REGS_OUT();
   1510 }
   1511 
   1512 void sub_36166E43(void) {
   1513     int _fpu_cmp = 0;
   1514     uint32_t _cf = 0;
   1515     int _df = 1;
   1516     uint32_t _flag_k = FK_NONE;
   1517     uint32_t _flag_a = 0, _flag_b = 0;
   1518     uint32_t _itail_tgt = 0;
   1519     RECOMP_REGS_LOCALS
   1520     RECOMP_ENTER(0x36166E43u);
   1521 
   1522     goto L_36166E43;
   1523 L_3615FD76:
   1524     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1525 L_36166E43:
   1526     eax = 0x3618C088u; /* 0x36166E43: mov eax, 0x3618c088 */
   1527 L_36166E48:
   1528     RECOMP_BACKEDGE();
   1529     goto L_3615FD76; /* 0x36166E48: jmp 0x3615fd76 */
   1530     { RECOMP_REGS_OUT(); return; } /* end of function */
   1531   _ljump:
   1532     switch (_itail_tgt) {
   1533       case 0x3615FD76u: goto L_3615FD76;
   1534       case 0x36166E43u: goto L_36166E43;
   1535       case 0x36166E48u: goto L_36166E48;
   1536       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1537     }
   1538     RECOMP_REGS_OUT();
   1539 }
   1540 
   1541 void sub_36166E50(void) {
   1542     int _fpu_cmp = 0;
   1543     uint32_t _cf = 0;
   1544     int _df = 1;
   1545     uint32_t _flag_k = FK_NONE;
   1546     uint32_t _flag_a = 0, _flag_b = 0;
   1547     uint32_t _itail_tgt = 0;
   1548     RECOMP_REGS_LOCALS
   1549     RECOMP_ENTER(0x36166E50u);
   1550 
   1551 L_36166E50:
   1552     eax = MEM32(ebp + 0x8); /* 0x36166E50: mov eax, dword ptr [ebp + 8] */
   1553     PUSH32(esp, eax); /* 0x36166E53: push eax */
   1554     RECOMP_ICALL(0x3615FCC4u); /* 0x36166E54: call 0x3615fcc4 */ /* not lifted */
   1555     RECOMP_FLAGS_IN();
   1556     ecx = POP32_VAL(esp); /* 0x36166E59: pop ecx */
   1557     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166E5A: ret  */
   1558     RECOMP_REGS_OUT();
   1559 }
   1560 
   1561 void sub_36166E5B(void) {
   1562     int _fpu_cmp = 0;
   1563     uint32_t _cf = 0;
   1564     int _df = 1;
   1565     uint32_t _flag_k = FK_NONE;
   1566     uint32_t _flag_a = 0, _flag_b = 0;
   1567     uint32_t _itail_tgt = 0;
   1568     RECOMP_REGS_LOCALS
   1569     RECOMP_ENTER(0x36166E5Bu);
   1570 
   1571 L_36166E5B:
   1572     eax = MEM32(ebp + 0xC); /* 0x36166E5B: mov eax, dword ptr [ebp + 0xc] */
   1573     PUSH32(esp, eax); /* 0x36166E5E: push eax */
   1574     RECOMP_ICALL(0x3615FCC4u); /* 0x36166E5F: call 0x3615fcc4 */ /* not lifted */
   1575     RECOMP_FLAGS_IN();
   1576     ecx = POP32_VAL(esp); /* 0x36166E64: pop ecx */
   1577     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166E65: ret  */
   1578     RECOMP_REGS_OUT();
   1579 }
   1580 
   1581 void sub_36166E66(void) {
   1582     int _fpu_cmp = 0;
   1583     uint32_t _cf = 0;
   1584     int _df = 1;
   1585     uint32_t _flag_k = FK_NONE;
   1586     uint32_t _flag_a = 0, _flag_b = 0;
   1587     uint32_t _itail_tgt = 0;
   1588     RECOMP_REGS_LOCALS
   1589     RECOMP_ENTER(0x36166E66u);
   1590 
   1591     goto L_36166E66;
   1592 L_3615FD76:
   1593     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1594 L_36166E66:
   1595     eax = 0x3618C0C0u; /* 0x36166E66: mov eax, 0x3618c0c0 */
   1596 L_36166E6B:
   1597     RECOMP_BACKEDGE();
   1598     goto L_3615FD76; /* 0x36166E6B: jmp 0x3615fd76 */
   1599     { RECOMP_REGS_OUT(); return; } /* end of function */
   1600   _ljump:
   1601     switch (_itail_tgt) {
   1602       case 0x3615FD76u: goto L_3615FD76;
   1603       case 0x36166E66u: goto L_36166E66;
   1604       case 0x36166E6Bu: goto L_36166E6B;
   1605       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1606     }
   1607     RECOMP_REGS_OUT();
   1608 }
   1609 
   1610 void sub_36166E70(void) {
   1611     int _fpu_cmp = 0;
   1612     uint32_t _cf = 0;
   1613     int _df = 1;
   1614     uint32_t _flag_k = FK_NONE;
   1615     uint32_t _flag_a = 0, _flag_b = 0;
   1616     uint32_t _itail_tgt = 0;
   1617     RECOMP_REGS_LOCALS
   1618     RECOMP_ENTER(0x36166E70u);
   1619 
   1620 L_36166E70:
   1621     eax = MEM32(ebp + 0x8); /* 0x36166E70: mov eax, dword ptr [ebp + 8] */
   1622     PUSH32(esp, eax); /* 0x36166E73: push eax */
   1623     RECOMP_ICALL(0x3615FCC4u); /* 0x36166E74: call 0x3615fcc4 */ /* not lifted */
   1624     RECOMP_FLAGS_IN();
   1625     ecx = POP32_VAL(esp); /* 0x36166E79: pop ecx */
   1626     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166E7A: ret  */
   1627     RECOMP_REGS_OUT();
   1628 }
   1629 
   1630 void sub_36166E7B(void) {
   1631     int _fpu_cmp = 0;
   1632     uint32_t _cf = 0;
   1633     int _df = 1;
   1634     uint32_t _flag_k = FK_NONE;
   1635     uint32_t _flag_a = 0, _flag_b = 0;
   1636     uint32_t _itail_tgt = 0;
   1637     RECOMP_REGS_LOCALS
   1638     RECOMP_ENTER(0x36166E7Bu);
   1639 
   1640 L_36166E7B:
   1641     eax = MEM32(ebp + 0x8); /* 0x36166E7B: mov eax, dword ptr [ebp + 8] */
   1642     PUSH32(esp, eax); /* 0x36166E7E: push eax */
   1643     RECOMP_ICALL(0x3615FCC4u); /* 0x36166E7F: call 0x3615fcc4 */ /* not lifted */
   1644     RECOMP_FLAGS_IN();
   1645     ecx = POP32_VAL(esp); /* 0x36166E84: pop ecx */
   1646     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166E85: ret  */
   1647     RECOMP_REGS_OUT();
   1648 }
   1649 
   1650 void sub_36166E86(void) {
   1651     int _fpu_cmp = 0;
   1652     uint32_t _cf = 0;
   1653     int _df = 1;
   1654     uint32_t _flag_k = FK_NONE;
   1655     uint32_t _flag_a = 0, _flag_b = 0;
   1656     uint32_t _itail_tgt = 0;
   1657     RECOMP_REGS_LOCALS
   1658     RECOMP_ENTER(0x36166E86u);
   1659 
   1660     goto L_36166E86;
   1661 L_3615FD76:
   1662     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1663 L_36166E86:
   1664     eax = 0x3618C0F0u; /* 0x36166E86: mov eax, 0x3618c0f0 */
   1665 L_36166E8B:
   1666     RECOMP_BACKEDGE();
   1667     goto L_3615FD76; /* 0x36166E8B: jmp 0x3615fd76 */
   1668     { RECOMP_REGS_OUT(); return; } /* end of function */
   1669   _ljump:
   1670     switch (_itail_tgt) {
   1671       case 0x3615FD76u: goto L_3615FD76;
   1672       case 0x36166E86u: goto L_36166E86;
   1673       case 0x36166E8Bu: goto L_36166E8B;
   1674       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1675     }
   1676     RECOMP_REGS_OUT();
   1677 }
   1678 
   1679 void sub_36166E90(void) {
   1680     int _fpu_cmp = 0;
   1681     uint32_t _cf = 0;
   1682     int _df = 1;
   1683     uint32_t _flag_k = FK_NONE;
   1684     uint32_t _flag_a = 0, _flag_b = 0;
   1685     uint32_t _itail_tgt = 0;
   1686     RECOMP_REGS_LOCALS
   1687     RECOMP_ENTER(0x36166E90u);
   1688 
   1689     goto L_36166E90;
   1690 L_36092640:
   1691     MEM32(ecx) = 0x36172E88u; /* 0x36092640: mov dword ptr [ecx], 0x36172e88 */
   1692     MEM32(ecx + 0x8) = 0x36172E78u; /* 0x36092646: mov dword ptr [ecx + 8], 0x36172e78 */
   1693     MEM32(ecx + 0x40) = 0x36172E70u; /* 0x3609264D: mov dword ptr [ecx + 0x40], 0x36172e70 */
   1694     MEM32(ecx + 0x4C) = 0x36172E68u; /* 0x36092654: mov dword ptr [ecx + 0x4c], 0x36172e68 */
   1695     MEM32(ecx + 0x80) = 0x36172E54u; /* 0x3609265B: mov dword ptr [ecx + 0x80], 0x36172e54 */
   1696     MEM32(ecx + 0x8C) = 0x36172DB0u; /* 0x36092665: mov dword ptr [ecx + 0x8c], 0x36172db0 */
   1697     MEM32(ecx + 0xA8) = 0x36172D98u; /* 0x3609266F: mov dword ptr [ecx + 0xa8], 0x36172d98 */
   1698     MEM32(ecx + 0xAC) = 0x36172D90u; /* 0x36092679: mov dword ptr [ecx + 0xac], 0x36172d90 */
   1699     goto L_3609CC20; /* 0x36092683: jmp 0x3609cc20 */
   1700 L_3609CC20:
   1701     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
   1702     ebp = esp; /* 0x3609CC21: mov ebp, esp */
   1703     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
   1704     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
   1705     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
   1706     PUSH32(esp, eax); /* 0x3609CC30: push eax */
   1707     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
   1708     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1709     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1710     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
   1711     _flag_k = FK_CMP;
   1712     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
   1713     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
   1714     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
   1715     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
   1716     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
   1717     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
   1718     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
   1719     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
   1720     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
   1721     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
   1722     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
   1723     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
   1724     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
   1725     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
   1726     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
   1727     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1728     _cf = 0;
   1729     _flag_k = FK_TEST;
   1730     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
   1731     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
   1732 L_3609CC97:
   1733     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
   1734     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
   1735     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
   1736     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1738     _flag_k = FK_CMP;
   1739     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
   1740     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
   1741 L_3609CCA3:
   1742     eax = edi; /* 0x3609CCA3: mov eax, edi */
   1743     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
   1744     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
   1745     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
   1746     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
   1747     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
   1748     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
   1749     RECOMP_FLAGS_IN();
   1750     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
   1751     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
   1752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1753     _flag_k = FK_CMP;
   1754     RECOMP_BACKEDGE();
   1755     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
   1756 L_3609CCB8:
   1757     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
   1758     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
   1759     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
   1760     RECOMP_FLAGS_IN();
   1761     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1762     eax = 0; /* 0x3609CCC1: xor eax, eax */
   1763     _cf = 0;
   1764     _flag_k = FK_TEST;
   1765     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
   1766     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
   1767     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
   1768     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
   1769     RECOMP_FLAGS_IN();
   1770     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1771     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1772     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
   1773     _flag_k = FK_ADD;
   1774 L_3609CCD2:
   1775     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
   1776     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
   1777     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1778     _cf = 0;
   1779     _flag_k = FK_TEST;
   1780     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
   1781     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
   1782 L_3609CCE6:
   1783     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
   1784     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
   1785     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
   1786     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1787     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1788     _flag_k = FK_CMP;
   1789     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
   1790     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
   1791 L_3609CCF2:
   1792     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
   1793     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
   1794     eax = edi; /* 0x3609CCF7: mov eax, edi */
   1795     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
   1796     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
   1797     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
   1798     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
   1799     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
   1800     RECOMP_FLAGS_IN();
   1801     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
   1802     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
   1803     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
   1804     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
   1805     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
   1806     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
   1807     PUSH32(esp, eax); /* 0x3609CD15: push eax */
   1808     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
   1809     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
   1810     RECOMP_FLAGS_IN();
   1811     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
   1812     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
   1813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1815     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
   1816     _flag_k = FK_ADD;
   1817     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1818     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
   1819     _flag_k = FK_DEC;
   1820     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
   1821     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1823     _flag_k = FK_CMP;
   1824     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
   1825     RECOMP_BACKEDGE();
   1826     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
   1827 L_3609CD2F:
   1828     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
   1829     PUSH32(esp, eax); /* 0x3609CD32: push eax */
   1830     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
   1831     RECOMP_FLAGS_IN();
   1832     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1833     eax = 0; /* 0x3609CD38: xor eax, eax */
   1834     _cf = 0;
   1835     _flag_k = FK_TEST;
   1836     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
   1837     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
   1838     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
   1839     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
   1840     RECOMP_FLAGS_IN();
   1841     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1842     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1843     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
   1844     _flag_k = FK_ADD;
   1845 L_3609CD49:
   1846     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
   1847     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
   1848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1849     _cf = 0;
   1850     _flag_k = FK_TEST;
   1851     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
   1852     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
   1853 L_3609CD5D:
   1854     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
   1855     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
   1856     RECOMP_FLAGS_IN();
   1857     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1859     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
   1860     _flag_k = FK_ADD;
   1861 L_3609CD66:
   1862     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
   1863     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
   1864     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1865     _cf = 0;
   1866     _flag_k = FK_TEST;
   1867     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
   1868     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
   1869 L_3609CD7A:
   1870     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
   1871     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
   1872     RECOMP_FLAGS_IN();
   1873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1875     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
   1876     _flag_k = FK_ADD;
   1877 L_3609CD83:
   1878     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
   1879     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
   1880     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1881     _cf = 0;
   1882     _flag_k = FK_TEST;
   1883     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
   1884     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
   1885 L_3609CD97:
   1886     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
   1887     RECOMP_FLAGS_IN();
   1888     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
   1889 L_3609CDA6:
   1890     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
   1891     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1892     _cf = (ecx) != 0;
   1893     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
   1894     _flag_k = FK_CMP;
   1895     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
   1896       ecx = _sc ? 0xFFFFFFFFu : 0;
   1897       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1898       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1899     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
   1900     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1901     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
   1902     _cf = 0;
   1903     _flag_k = FK_TEST;
   1904     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
   1905     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
   1906     RECOMP_FLAGS_IN();
   1907     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
   1908     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1909     _cf = (ecx) != 0;
   1910     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
   1911     _flag_k = FK_CMP;
   1912     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
   1913       ecx = _sc ? 0xFFFFFFFFu : 0;
   1914       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1915       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1916     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
   1917     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1918     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
   1919     _cf = 0;
   1920     _flag_k = FK_TEST;
   1921     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
   1922     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
   1923     RECOMP_FLAGS_IN();
   1924     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
   1925     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
   1926     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
   1927     RECOMP_FLAGS_IN();
   1928     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
   1929     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
   1930     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
   1931     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
   1932     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
   1933     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
   1934     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
   1935     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
   1936 L_36166E90:
   1937     ecx = MEM32(ebp + (-0x10)); /* 0x36166E90: mov ecx, dword ptr [ebp - 0x10] */
   1938     RECOMP_BACKEDGE();
   1939     goto L_36092640; /* 0x36166E93: jmp 0x36092640 */
   1940     { RECOMP_REGS_OUT(); return; } /* end of function */
   1941     RECOMP_REGS_OUT();
   1942 }
   1943 
   1944 void sub_36166E98(void) {
   1945     int _fpu_cmp = 0;
   1946     uint32_t _cf = 0;
   1947     int _df = 1;
   1948     uint32_t _flag_k = FK_NONE;
   1949     uint32_t _flag_a = 0, _flag_b = 0;
   1950     uint32_t _itail_tgt = 0;
   1951     RECOMP_REGS_LOCALS
   1952     RECOMP_ENTER(0x36166E98u);
   1953 
   1954 L_36166E98:
   1955     eax = MEM32(ebp + 0xC); /* 0x36166E98: mov eax, dword ptr [ebp + 0xc] */
   1956     PUSH32(esp, eax); /* 0x36166E9B: push eax */
   1957     RECOMP_ICALL(0x3615FCC4u); /* 0x36166E9C: call 0x3615fcc4 */ /* not lifted */
   1958     RECOMP_FLAGS_IN();
   1959     ecx = POP32_VAL(esp); /* 0x36166EA1: pop ecx */
   1960     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166EA2: ret  */
   1961     RECOMP_REGS_OUT();
   1962 }
   1963 
   1964 void sub_36166EA3(void) {
   1965     int _fpu_cmp = 0;
   1966     uint32_t _cf = 0;
   1967     int _df = 1;
   1968     uint32_t _flag_k = FK_NONE;
   1969     uint32_t _flag_a = 0, _flag_b = 0;
   1970     uint32_t _itail_tgt = 0;
   1971     RECOMP_REGS_LOCALS
   1972     RECOMP_ENTER(0x36166EA3u);
   1973 
   1974     goto L_36166EA3;
   1975 L_3615FD76:
   1976     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   1977 L_36166EA3:
   1978     eax = 0x3618C120u; /* 0x36166EA3: mov eax, 0x3618c120 */
   1979 L_36166EA8:
   1980     RECOMP_BACKEDGE();
   1981     goto L_3615FD76; /* 0x36166EA8: jmp 0x3615fd76 */
   1982     { RECOMP_REGS_OUT(); return; } /* end of function */
   1983   _ljump:
   1984     switch (_itail_tgt) {
   1985       case 0x3615FD76u: goto L_3615FD76;
   1986       case 0x36166EA3u: goto L_36166EA3;
   1987       case 0x36166EA8u: goto L_36166EA8;
   1988       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1989     }
   1990     RECOMP_REGS_OUT();
   1991 }
   1992 
   1993 void sub_36166EB0(void) {
   1994     int _fpu_cmp = 0;
   1995     uint32_t _cf = 0;
   1996     int _df = 1;
   1997     uint32_t _flag_k = FK_NONE;
   1998     uint32_t _flag_a = 0, _flag_b = 0;
   1999     uint32_t _itail_tgt = 0;
   2000     RECOMP_REGS_LOCALS
   2001     RECOMP_ENTER(0x36166EB0u);
   2002 
   2003     goto L_36166EB0;
   2004 L_36092640:
   2005     MEM32(ecx) = 0x36172E88u; /* 0x36092640: mov dword ptr [ecx], 0x36172e88 */
   2006     MEM32(ecx + 0x8) = 0x36172E78u; /* 0x36092646: mov dword ptr [ecx + 8], 0x36172e78 */
   2007     MEM32(ecx + 0x40) = 0x36172E70u; /* 0x3609264D: mov dword ptr [ecx + 0x40], 0x36172e70 */
   2008     MEM32(ecx + 0x4C) = 0x36172E68u; /* 0x36092654: mov dword ptr [ecx + 0x4c], 0x36172e68 */
   2009     MEM32(ecx + 0x80) = 0x36172E54u; /* 0x3609265B: mov dword ptr [ecx + 0x80], 0x36172e54 */
   2010     MEM32(ecx + 0x8C) = 0x36172DB0u; /* 0x36092665: mov dword ptr [ecx + 0x8c], 0x36172db0 */
   2011     MEM32(ecx + 0xA8) = 0x36172D98u; /* 0x3609266F: mov dword ptr [ecx + 0xa8], 0x36172d98 */
   2012     MEM32(ecx + 0xAC) = 0x36172D90u; /* 0x36092679: mov dword ptr [ecx + 0xac], 0x36172d90 */
   2013     goto L_3609CC20; /* 0x36092683: jmp 0x3609cc20 */
   2014 L_3609CC20:
   2015     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
   2016     ebp = esp; /* 0x3609CC21: mov ebp, esp */
   2017     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
   2018     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
   2019     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
   2020     PUSH32(esp, eax); /* 0x3609CC30: push eax */
   2021     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
   2022     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2024     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
   2025     _flag_k = FK_CMP;
   2026     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
   2027     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
   2028     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
   2029     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
   2030     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
   2031     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
   2032     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
   2033     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
   2034     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
   2035     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
   2036     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
   2037     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
   2038     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
   2039     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
   2040     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
   2041     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2042     _cf = 0;
   2043     _flag_k = FK_TEST;
   2044     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
   2045     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
   2046 L_3609CC97:
   2047     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
   2048     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
   2049     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
   2050     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2052     _flag_k = FK_CMP;
   2053     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
   2054     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
   2055 L_3609CCA3:
   2056     eax = edi; /* 0x3609CCA3: mov eax, edi */
   2057     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
   2058     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
   2059     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
   2060     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
   2061     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
   2062     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
   2063     RECOMP_FLAGS_IN();
   2064     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
   2065     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
   2066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2067     _flag_k = FK_CMP;
   2068     RECOMP_BACKEDGE();
   2069     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
   2070 L_3609CCB8:
   2071     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
   2072     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
   2073     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
   2074     RECOMP_FLAGS_IN();
   2075     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2076     eax = 0; /* 0x3609CCC1: xor eax, eax */
   2077     _cf = 0;
   2078     _flag_k = FK_TEST;
   2079     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
   2080     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
   2081     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
   2082     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
   2083     RECOMP_FLAGS_IN();
   2084     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2085     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2086     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
   2087     _flag_k = FK_ADD;
   2088 L_3609CCD2:
   2089     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
   2090     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
   2091     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2092     _cf = 0;
   2093     _flag_k = FK_TEST;
   2094     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
   2095     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
   2096 L_3609CCE6:
   2097     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
   2098     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
   2099     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
   2100     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2102     _flag_k = FK_CMP;
   2103     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
   2104     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
   2105 L_3609CCF2:
   2106     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
   2107     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
   2108     eax = edi; /* 0x3609CCF7: mov eax, edi */
   2109     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
   2110     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
   2111     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
   2112     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
   2113     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
   2114     RECOMP_FLAGS_IN();
   2115     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
   2116     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
   2117     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
   2118     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
   2119     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
   2120     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
   2121     PUSH32(esp, eax); /* 0x3609CD15: push eax */
   2122     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
   2123     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
   2124     RECOMP_FLAGS_IN();
   2125     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
   2126     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
   2127     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2128     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2129     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
   2130     _flag_k = FK_ADD;
   2131     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2132     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
   2133     _flag_k = FK_DEC;
   2134     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
   2135     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2136     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2137     _flag_k = FK_CMP;
   2138     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
   2139     RECOMP_BACKEDGE();
   2140     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
   2141 L_3609CD2F:
   2142     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
   2143     PUSH32(esp, eax); /* 0x3609CD32: push eax */
   2144     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
   2145     RECOMP_FLAGS_IN();
   2146     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2147     eax = 0; /* 0x3609CD38: xor eax, eax */
   2148     _cf = 0;
   2149     _flag_k = FK_TEST;
   2150     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
   2151     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
   2152     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
   2153     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
   2154     RECOMP_FLAGS_IN();
   2155     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2156     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2157     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
   2158     _flag_k = FK_ADD;
   2159 L_3609CD49:
   2160     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
   2161     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
   2162     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2163     _cf = 0;
   2164     _flag_k = FK_TEST;
   2165     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
   2166     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
   2167 L_3609CD5D:
   2168     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
   2169     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
   2170     RECOMP_FLAGS_IN();
   2171     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2172     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2173     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
   2174     _flag_k = FK_ADD;
   2175 L_3609CD66:
   2176     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
   2177     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
   2178     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2179     _cf = 0;
   2180     _flag_k = FK_TEST;
   2181     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
   2182     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
   2183 L_3609CD7A:
   2184     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
   2185     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
   2186     RECOMP_FLAGS_IN();
   2187     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2189     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
   2190     _flag_k = FK_ADD;
   2191 L_3609CD83:
   2192     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
   2193     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
   2194     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2195     _cf = 0;
   2196     _flag_k = FK_TEST;
   2197     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
   2198     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
   2199 L_3609CD97:
   2200     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
   2201     RECOMP_FLAGS_IN();
   2202     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
   2203 L_3609CDA6:
   2204     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
   2205     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2206     _cf = (ecx) != 0;
   2207     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
   2208     _flag_k = FK_CMP;
   2209     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
   2210       ecx = _sc ? 0xFFFFFFFFu : 0;
   2211       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2212       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2213     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
   2214     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2215     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
   2216     _cf = 0;
   2217     _flag_k = FK_TEST;
   2218     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
   2219     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
   2220     RECOMP_FLAGS_IN();
   2221     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
   2222     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2223     _cf = (ecx) != 0;
   2224     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
   2225     _flag_k = FK_CMP;
   2226     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
   2227       ecx = _sc ? 0xFFFFFFFFu : 0;
   2228       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2229       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2230     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
   2231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2232     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
   2233     _cf = 0;
   2234     _flag_k = FK_TEST;
   2235     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
   2236     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
   2237     RECOMP_FLAGS_IN();
   2238     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
   2239     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
   2240     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
   2241     RECOMP_FLAGS_IN();
   2242     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
   2243     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
   2244     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
   2245     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
   2246     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
   2247     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
   2248     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
   2249     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
   2250 L_36166EB0:
   2251     ecx = MEM32(ebp + (-0x10)); /* 0x36166EB0: mov ecx, dword ptr [ebp - 0x10] */
   2252     RECOMP_BACKEDGE();
   2253     goto L_36092640; /* 0x36166EB3: jmp 0x36092640 */
   2254     { RECOMP_REGS_OUT(); return; } /* end of function */
   2255     RECOMP_REGS_OUT();
   2256 }
   2257 
   2258 void sub_36166EB8(void) {
   2259     int _fpu_cmp = 0;
   2260     uint32_t _cf = 0;
   2261     int _df = 1;
   2262     uint32_t _flag_k = FK_NONE;
   2263     uint32_t _flag_a = 0, _flag_b = 0;
   2264     uint32_t _itail_tgt = 0;
   2265     RECOMP_REGS_LOCALS
   2266     RECOMP_ENTER(0x36166EB8u);
   2267 
   2268     goto L_36166EB8;
   2269 L_3615FD76:
   2270     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2271 L_36166EB8:
   2272     eax = 0x3618C150u; /* 0x36166EB8: mov eax, 0x3618c150 */
   2273 L_36166EBD:
   2274     RECOMP_BACKEDGE();
   2275     goto L_3615FD76; /* 0x36166EBD: jmp 0x3615fd76 */
   2276     { RECOMP_REGS_OUT(); return; } /* end of function */
   2277   _ljump:
   2278     switch (_itail_tgt) {
   2279       case 0x3615FD76u: goto L_3615FD76;
   2280       case 0x36166EB8u: goto L_36166EB8;
   2281       case 0x36166EBDu: goto L_36166EBD;
   2282       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2283     }
   2284     RECOMP_REGS_OUT();
   2285 }
   2286 
   2287 void sub_36166ED0(void) {
   2288     int _fpu_cmp = 0;
   2289     uint32_t _cf = 0;
   2290     int _df = 1;
   2291     uint32_t _flag_k = FK_NONE;
   2292     uint32_t _flag_a = 0, _flag_b = 0;
   2293     uint32_t _itail_tgt = 0;
   2294     RECOMP_REGS_LOCALS
   2295     RECOMP_ENTER(0x36166ED0u);
   2296 
   2297 L_36166ED0:
   2298     ecx = ebp + (-0x4C); /* 0x36166ED0: lea ecx, [ebp - 0x4c] */
   2299 L_36166ED3:
   2300     { _itail_tgt = (uint32_t)(MEM32(0x36170194)); goto _ljump; }
   2301     { RECOMP_REGS_OUT(); return; } /* end of function */
   2302   _ljump:
   2303     switch (_itail_tgt) {
   2304       case 0x36166ED0u: goto L_36166ED0;
   2305       case 0x36166ED3u: goto L_36166ED3;
   2306       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2307     }
   2308     RECOMP_REGS_OUT();
   2309 }
   2310 
   2311 void sub_36166ED9(void) {
   2312     int _fpu_cmp = 0;
   2313     uint32_t _cf = 0;
   2314     int _df = 1;
   2315     uint32_t _flag_k = FK_NONE;
   2316     uint32_t _flag_a = 0, _flag_b = 0;
   2317     uint32_t _itail_tgt = 0;
   2318     RECOMP_REGS_LOCALS
   2319     RECOMP_ENTER(0x36166ED9u);
   2320 
   2321 L_36166ED9:
   2322     ecx = ebp + (-0x8C); /* 0x36166ED9: lea ecx, [ebp - 0x8c] */
   2323 L_36166EDF:
   2324     { _itail_tgt = (uint32_t)(MEM32(0x36170194)); goto _ljump; }
   2325     { RECOMP_REGS_OUT(); return; } /* end of function */
   2326   _ljump:
   2327     switch (_itail_tgt) {
   2328       case 0x36166ED9u: goto L_36166ED9;
   2329       case 0x36166EDFu: goto L_36166EDF;
   2330       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2331     }
   2332     RECOMP_REGS_OUT();
   2333 }
   2334 
   2335 void sub_36166EE5(void) {
   2336     int _fpu_cmp = 0;
   2337     uint32_t _cf = 0;
   2338     int _df = 1;
   2339     uint32_t _flag_k = FK_NONE;
   2340     uint32_t _flag_a = 0, _flag_b = 0;
   2341     uint32_t _itail_tgt = 0;
   2342     RECOMP_REGS_LOCALS
   2343     RECOMP_ENTER(0x36166EE5u);
   2344 
   2345     goto L_36166EE5;
   2346 L_3615FD76:
   2347     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2348 L_36166EE5:
   2349     eax = 0x3618C178u; /* 0x36166EE5: mov eax, 0x3618c178 */
   2350 L_36166EEA:
   2351     RECOMP_BACKEDGE();
   2352     goto L_3615FD76; /* 0x36166EEA: jmp 0x3615fd76 */
   2353     { RECOMP_REGS_OUT(); return; } /* end of function */
   2354   _ljump:
   2355     switch (_itail_tgt) {
   2356       case 0x3615FD76u: goto L_3615FD76;
   2357       case 0x36166EE5u: goto L_36166EE5;
   2358       case 0x36166EEAu: goto L_36166EEA;
   2359       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2360     }
   2361     RECOMP_REGS_OUT();
   2362 }
   2363 
   2364 void sub_36166EF0(void) {
   2365     int _fpu_cmp = 0;
   2366     uint32_t _cf = 0;
   2367     int _df = 1;
   2368     uint32_t _flag_k = FK_NONE;
   2369     uint32_t _flag_a = 0, _flag_b = 0;
   2370     uint32_t _itail_tgt = 0;
   2371     RECOMP_REGS_LOCALS
   2372     RECOMP_ENTER(0x36166EF0u);
   2373 
   2374 L_36166EF0:
   2375     ecx = ebp + (-0x20); /* 0x36166EF0: lea ecx, [ebp - 0x20] */
   2376 L_36166EF3:
   2377     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2378     { RECOMP_REGS_OUT(); return; } /* end of function */
   2379   _ljump:
   2380     switch (_itail_tgt) {
   2381       case 0x36166EF0u: goto L_36166EF0;
   2382       case 0x36166EF3u: goto L_36166EF3;
   2383       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2384     }
   2385     RECOMP_REGS_OUT();
   2386 }
   2387 
   2388 void sub_36166EF9(void) {
   2389     int _fpu_cmp = 0;
   2390     uint32_t _cf = 0;
   2391     int _df = 1;
   2392     uint32_t _flag_k = FK_NONE;
   2393     uint32_t _flag_a = 0, _flag_b = 0;
   2394     uint32_t _itail_tgt = 0;
   2395     RECOMP_REGS_LOCALS
   2396     RECOMP_ENTER(0x36166EF9u);
   2397 
   2398     goto L_36166EF9;
   2399 L_3615FD76:
   2400     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2401 L_36166EF9:
   2402     eax = 0x3618C1A8u; /* 0x36166EF9: mov eax, 0x3618c1a8 */
   2403 L_36166EFE:
   2404     RECOMP_BACKEDGE();
   2405     goto L_3615FD76; /* 0x36166EFE: jmp 0x3615fd76 */
   2406     { RECOMP_REGS_OUT(); return; } /* end of function */
   2407   _ljump:
   2408     switch (_itail_tgt) {
   2409       case 0x3615FD76u: goto L_3615FD76;
   2410       case 0x36166EF9u: goto L_36166EF9;
   2411       case 0x36166EFEu: goto L_36166EFE;
   2412       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2413     }
   2414     RECOMP_REGS_OUT();
   2415 }
   2416 
   2417 void sub_36166F10(void) {
   2418     int _fpu_cmp = 0;
   2419     uint32_t _cf = 0;
   2420     int _df = 1;
   2421     uint32_t _flag_k = FK_NONE;
   2422     uint32_t _flag_a = 0, _flag_b = 0;
   2423     uint32_t _itail_tgt = 0;
   2424     RECOMP_REGS_LOCALS
   2425     RECOMP_ENTER(0x36166F10u);
   2426 
   2427 L_36166F10:
   2428     ecx = ebp + (-0x1C); /* 0x36166F10: lea ecx, [ebp - 0x1c] */
   2429 L_36166F13:
   2430     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2431     { RECOMP_REGS_OUT(); return; } /* end of function */
   2432   _ljump:
   2433     switch (_itail_tgt) {
   2434       case 0x36166F10u: goto L_36166F10;
   2435       case 0x36166F13u: goto L_36166F13;
   2436       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2437     }
   2438     RECOMP_REGS_OUT();
   2439 }
   2440 
   2441 void sub_36166F19(void) {
   2442     int _fpu_cmp = 0;
   2443     uint32_t _cf = 0;
   2444     int _df = 1;
   2445     uint32_t _flag_k = FK_NONE;
   2446     uint32_t _flag_a = 0, _flag_b = 0;
   2447     uint32_t _itail_tgt = 0;
   2448     RECOMP_REGS_LOCALS
   2449     RECOMP_ENTER(0x36166F19u);
   2450 
   2451     goto L_36166F19;
   2452 L_3615FD76:
   2453     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2454 L_36166F19:
   2455     eax = 0x3618C1D0u; /* 0x36166F19: mov eax, 0x3618c1d0 */
   2456 L_36166F1E:
   2457     RECOMP_BACKEDGE();
   2458     goto L_3615FD76; /* 0x36166F1E: jmp 0x3615fd76 */
   2459     { RECOMP_REGS_OUT(); return; } /* end of function */
   2460   _ljump:
   2461     switch (_itail_tgt) {
   2462       case 0x3615FD76u: goto L_3615FD76;
   2463       case 0x36166F19u: goto L_36166F19;
   2464       case 0x36166F1Eu: goto L_36166F1E;
   2465       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2466     }
   2467     RECOMP_REGS_OUT();
   2468 }
   2469 
   2470 void sub_36166F30(void) {
   2471     int _fpu_cmp = 0;
   2472     uint32_t _cf = 0;
   2473     int _df = 1;
   2474     uint32_t _flag_k = FK_NONE;
   2475     uint32_t _flag_a = 0, _flag_b = 0;
   2476     uint32_t _itail_tgt = 0;
   2477     RECOMP_REGS_LOCALS
   2478     RECOMP_ENTER(0x36166F30u);
   2479 
   2480 L_36166F30:
   2481     eax = MEM32(ebp + (-0x14)); /* 0x36166F30: mov eax, dword ptr [ebp - 0x14] */
   2482     PUSH32(esp, eax); /* 0x36166F33: push eax */
   2483     RECOMP_ICALL(0x3615FCC4u); /* 0x36166F34: call 0x3615fcc4 */ /* not lifted */
   2484     RECOMP_FLAGS_IN();
   2485     ecx = POP32_VAL(esp); /* 0x36166F39: pop ecx */
   2486     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166F3A: ret  */
   2487     RECOMP_REGS_OUT();
   2488 }
   2489 
   2490 void sub_36166F3B(void) {
   2491     int _fpu_cmp = 0;
   2492     uint32_t _cf = 0;
   2493     int _df = 1;
   2494     uint32_t _flag_k = FK_NONE;
   2495     uint32_t _flag_a = 0, _flag_b = 0;
   2496     uint32_t _itail_tgt = 0;
   2497     RECOMP_REGS_LOCALS
   2498     RECOMP_ENTER(0x36166F3Bu);
   2499 
   2500 L_36166F3B:
   2501     eax = MEM32(ebp + (-0x18)); /* 0x36166F3B: mov eax, dword ptr [ebp - 0x18] */
   2502 L_36166F3E:
   2503     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2504     eax = eax & 1; /* 0x36166F3E: and eax, 1 */
   2505     _cf = 0;
   2506     _flag_k = FK_TEST;
   2507 L_36166F41:
   2508     /* test eax, eax */ /* 0x36166F41: test eax, eax */
   2509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2510     _cf = 0;
   2511     _flag_k = FK_TEST;
   2512 L_36166F43:
   2513     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166F52; /* 0x36166F43: je 0x36166f52 */
   2514 L_36166F49:
   2515     ecx = ebp + (-0x2C); /* 0x36166F49: lea ecx, [ebp - 0x2c] */
   2516 L_36166F4C:
   2517     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2518 L_36166F52:
   2519     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166F52: ret  */
   2520   _ljump:
   2521     switch (_itail_tgt) {
   2522       case 0x36166F3Bu: goto L_36166F3B;
   2523       case 0x36166F3Eu: goto L_36166F3E;
   2524       case 0x36166F41u: goto L_36166F41;
   2525       case 0x36166F43u: goto L_36166F43;
   2526       case 0x36166F49u: goto L_36166F49;
   2527       case 0x36166F4Cu: goto L_36166F4C;
   2528       case 0x36166F52u: goto L_36166F52;
   2529       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2530     }
   2531     RECOMP_REGS_OUT();
   2532 }
   2533 
   2534 void sub_36166F53(void) {
   2535     int _fpu_cmp = 0;
   2536     uint32_t _cf = 0;
   2537     int _df = 1;
   2538     uint32_t _flag_k = FK_NONE;
   2539     uint32_t _flag_a = 0, _flag_b = 0;
   2540     uint32_t _itail_tgt = 0;
   2541     RECOMP_REGS_LOCALS
   2542     RECOMP_ENTER(0x36166F53u);
   2543 
   2544     goto L_36166F53;
   2545 L_3615FD76:
   2546     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2547 L_36166F53:
   2548     eax = 0x3618C1F8u; /* 0x36166F53: mov eax, 0x3618c1f8 */
   2549 L_36166F58:
   2550     RECOMP_BACKEDGE();
   2551     goto L_3615FD76; /* 0x36166F58: jmp 0x3615fd76 */
   2552     { RECOMP_REGS_OUT(); return; } /* end of function */
   2553   _ljump:
   2554     switch (_itail_tgt) {
   2555       case 0x3615FD76u: goto L_3615FD76;
   2556       case 0x36166F53u: goto L_36166F53;
   2557       case 0x36166F58u: goto L_36166F58;
   2558       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2559     }
   2560     RECOMP_REGS_OUT();
   2561 }
   2562 
   2563 void sub_36166F60(void) {
   2564     int _fpu_cmp = 0;
   2565     uint32_t _cf = 0;
   2566     int _df = 1;
   2567     uint32_t _flag_k = FK_NONE;
   2568     uint32_t _flag_a = 0, _flag_b = 0;
   2569     uint32_t _itail_tgt = 0;
   2570     RECOMP_REGS_LOCALS
   2571     RECOMP_ENTER(0x36166F60u);
   2572 
   2573     goto L_36166F60;
   2574 L_3606C6E0:
   2575     PUSH32(esp, ebp); /* 0x3606C6E0: push ebp */
   2576     ebp = esp; /* 0x3606C6E1: mov ebp, esp */
   2577     PUSH32(esp, ecx); /* 0x3606C6E3: push ecx */
   2578     PUSH32(esp, esi); /* 0x3606C6E4: push esi */
   2579     esi = ecx; /* 0x3606C6E5: mov esi, ecx */
   2580     eax = MEM32(esi + 0x4); /* 0x3606C6E7: mov eax, dword ptr [esi + 4] */
   2581     PUSH32(esp, eax); /* 0x3606C6EA: push eax */
   2582     MEM32(ebp + (-0x4)) = eax; /* 0x3606C6EB: mov dword ptr [ebp - 4], eax */
   2583     RECOMP_ICALL(0x3615FCC4u); /* 0x3606C6EE: call 0x3615fcc4 */ /* not lifted */
   2584     RECOMP_FLAGS_IN();
   2585     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2586     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2587     esp = esp + 4; /* 0x3606C6F3: add esp, 4 */
   2588     _flag_k = FK_ADD;
   2589     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2590     eax = 0; /* 0x3606C6F6: xor eax, eax */
   2591     _cf = 0;
   2592     _flag_k = FK_TEST;
   2593     MEM32(esi + 0x4) = eax; /* 0x3606C6F8: mov dword ptr [esi + 4], eax */
   2594     MEM32(esi + 0x8) = eax; /* 0x3606C6FB: mov dword ptr [esi + 8], eax */
   2595     MEM32(esi + 0xC) = eax; /* 0x3606C6FE: mov dword ptr [esi + 0xc], eax */
   2596     esi = POP32_VAL(esp); /* 0x3606C701: pop esi */
   2597     esp = ebp; /* 0x3606C702: mov esp, ebp */
   2598     ebp = POP32_VAL(esp); /* 0x3606C704: pop ebp */
   2599     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606C705: ret  */
   2600 L_36166F60:
   2601     ecx = ebp + (-0x38); /* 0x36166F60: lea ecx, [ebp - 0x38] */
   2602     RECOMP_BACKEDGE();
   2603     goto L_3606C6E0; /* 0x36166F63: jmp 0x3606c6e0 */
   2604     { RECOMP_REGS_OUT(); return; } /* end of function */
   2605     RECOMP_REGS_OUT();
   2606 }
   2607 
   2608 void sub_36166F68(void) {
   2609     int _fpu_cmp = 0;
   2610     uint32_t _cf = 0;
   2611     int _df = 1;
   2612     uint32_t _flag_k = FK_NONE;
   2613     uint32_t _flag_a = 0, _flag_b = 0;
   2614     uint32_t _itail_tgt = 0;
   2615     RECOMP_REGS_LOCALS
   2616     RECOMP_ENTER(0x36166F68u);
   2617 
   2618     goto L_36166F68;
   2619 L_3615FD76:
   2620     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2621 L_36166F68:
   2622     eax = 0x3618C230u; /* 0x36166F68: mov eax, 0x3618c230 */
   2623 L_36166F6D:
   2624     RECOMP_BACKEDGE();
   2625     goto L_3615FD76; /* 0x36166F6D: jmp 0x3615fd76 */
   2626     { RECOMP_REGS_OUT(); return; } /* end of function */
   2627   _ljump:
   2628     switch (_itail_tgt) {
   2629       case 0x3615FD76u: goto L_3615FD76;
   2630       case 0x36166F68u: goto L_36166F68;
   2631       case 0x36166F6Du: goto L_36166F6D;
   2632       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2633     }
   2634     RECOMP_REGS_OUT();
   2635 }
   2636 
   2637 void sub_36166F80(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(0x36166F80u);
   2646 
   2647 L_36166F80:
   2648     ecx = ebp + (-0x50); /* 0x36166F80: lea ecx, [ebp - 0x50] */
   2649 L_36166F83:
   2650     { _itail_tgt = (uint32_t)(MEM32(0x36170194)); goto _ljump; }
   2651     { RECOMP_REGS_OUT(); return; } /* end of function */
   2652   _ljump:
   2653     switch (_itail_tgt) {
   2654       case 0x36166F80u: goto L_36166F80;
   2655       case 0x36166F83u: goto L_36166F83;
   2656       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2657     }
   2658     RECOMP_REGS_OUT();
   2659 }
   2660 
   2661 void sub_36166F89(void) {
   2662     int _fpu_cmp = 0;
   2663     uint32_t _cf = 0;
   2664     int _df = 1;
   2665     uint32_t _flag_k = FK_NONE;
   2666     uint32_t _flag_a = 0, _flag_b = 0;
   2667     uint32_t _itail_tgt = 0;
   2668     RECOMP_REGS_LOCALS
   2669     RECOMP_ENTER(0x36166F89u);
   2670 
   2671     goto L_36166F89;
   2672 L_3615FD76:
   2673     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2674 L_36166F89:
   2675     eax = 0x3618C258u; /* 0x36166F89: mov eax, 0x3618c258 */
   2676 L_36166F8E:
   2677     RECOMP_BACKEDGE();
   2678     goto L_3615FD76; /* 0x36166F8E: jmp 0x3615fd76 */
   2679     { RECOMP_REGS_OUT(); return; } /* end of function */
   2680   _ljump:
   2681     switch (_itail_tgt) {
   2682       case 0x3615FD76u: goto L_3615FD76;
   2683       case 0x36166F89u: goto L_36166F89;
   2684       case 0x36166F8Eu: goto L_36166F8E;
   2685       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2686     }
   2687     RECOMP_REGS_OUT();
   2688 }
   2689 
   2690 void sub_36166FA0(void) {
   2691     int _fpu_cmp = 0;
   2692     uint32_t _cf = 0;
   2693     int _df = 1;
   2694     uint32_t _flag_k = FK_NONE;
   2695     uint32_t _flag_a = 0, _flag_b = 0;
   2696     uint32_t _itail_tgt = 0;
   2697     RECOMP_REGS_LOCALS
   2698     RECOMP_ENTER(0x36166FA0u);
   2699 
   2700     goto L_36166FA0;
   2701 L_3609CC20:
   2702     PUSH32(esp, ebp); /* 0x3609CC20: push ebp */
   2703     ebp = esp; /* 0x3609CC21: mov ebp, esp */
   2704     PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */
   2705     PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */
   2706     eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */
   2707     PUSH32(esp, eax); /* 0x3609CC30: push eax */
   2708     MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */
   2709     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   2710     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2711     esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */
   2712     _flag_k = FK_CMP;
   2713     PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */
   2714     PUSH32(esp, esi); /* 0x3609CC3C: push esi */
   2715     esi = ecx; /* 0x3609CC3D: mov esi, ecx */
   2716     PUSH32(esp, edi); /* 0x3609CC3F: push edi */
   2717     MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */
   2718     MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */
   2719     MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */
   2720     MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */
   2721     MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */
   2722     MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */
   2723     MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */
   2724     MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */
   2725     MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */
   2726     ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */
   2727     /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */
   2728     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2729     _cf = 0;
   2730     _flag_k = FK_TEST;
   2731     MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */
   2732     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */
   2733 L_3609CC97:
   2734     eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */
   2735     edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */
   2736     /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */
   2737     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2738     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2739     _flag_k = FK_CMP;
   2740     MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */
   2741     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */
   2742 L_3609CCA3:
   2743     eax = edi; /* 0x3609CCA3: mov eax, edi */
   2744     edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */
   2745     PUSH32(esp, eax); /* 0x3609CCA7: push eax */
   2746     eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */
   2747     PUSH32(esp, eax); /* 0x3609CCAB: push eax */
   2748     ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */
   2749     RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */
   2750     RECOMP_FLAGS_IN();
   2751     /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */
   2752     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10)));
   2753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2754     _flag_k = FK_CMP;
   2755     RECOMP_BACKEDGE();
   2756     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */
   2757 L_3609CCB8:
   2758     eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */
   2759     PUSH32(esp, eax); /* 0x3609CCBB: push eax */
   2760     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */
   2761     RECOMP_FLAGS_IN();
   2762     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2763     eax = 0; /* 0x3609CCC1: xor eax, eax */
   2764     _cf = 0;
   2765     _flag_k = FK_TEST;
   2766     PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */
   2767     MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */
   2768     MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */
   2769     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */
   2770     RECOMP_FLAGS_IN();
   2771     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2773     esp = esp + 8; /* 0x3609CCCF: add esp, 8 */
   2774     _flag_k = FK_ADD;
   2775 L_3609CCD2:
   2776     ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */
   2777     /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */
   2778     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   2779     _cf = 0;
   2780     _flag_k = FK_TEST;
   2781     MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */
   2782     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */
   2783 L_3609CCE6:
   2784     eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */
   2785     edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */
   2786     /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */
   2787     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2789     _flag_k = FK_CMP;
   2790     MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */
   2791     if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */
   2792 L_3609CCF2:
   2793     PUSH32(esp, 0); /* 0x3609CCF2: push 0 */
   2794     ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */
   2795     eax = edi; /* 0x3609CCF7: mov eax, edi */
   2796     edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */
   2797     PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */
   2798     ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */
   2799     MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */
   2800     RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */
   2801     RECOMP_FLAGS_IN();
   2802     eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */
   2803     ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */
   2804     edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */
   2805     MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */
   2806     ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */
   2807     edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */
   2808     PUSH32(esp, eax); /* 0x3609CD15: push eax */
   2809     MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */
   2810     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */
   2811     RECOMP_FLAGS_IN();
   2812     ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */
   2813     eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */
   2814     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2816     esp = esp + 4; /* 0x3609CD24: add esp, 4 */
   2817     _flag_k = FK_ADD;
   2818     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2819     ecx = ecx - 1; /* 0x3609CD27: dec ecx */
   2820     _flag_k = FK_DEC;
   2821     /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */
   2822     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2823     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2824     _flag_k = FK_CMP;
   2825     MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */
   2826     RECOMP_BACKEDGE();
   2827     if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */
   2828 L_3609CD2F:
   2829     eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */
   2830     PUSH32(esp, eax); /* 0x3609CD32: push eax */
   2831     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */
   2832     RECOMP_FLAGS_IN();
   2833     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2834     eax = 0; /* 0x3609CD38: xor eax, eax */
   2835     _cf = 0;
   2836     _flag_k = FK_TEST;
   2837     PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */
   2838     MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */
   2839     MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */
   2840     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */
   2841     RECOMP_FLAGS_IN();
   2842     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2843     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2844     esp = esp + 8; /* 0x3609CD46: add esp, 8 */
   2845     _flag_k = FK_ADD;
   2846 L_3609CD49:
   2847     eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */
   2848     /* test eax, eax */ /* 0x3609CD4F: test eax, eax */
   2849     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2850     _cf = 0;
   2851     _flag_k = FK_TEST;
   2852     MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */
   2853     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */
   2854 L_3609CD5D:
   2855     PUSH32(esp, eax); /* 0x3609CD5D: push eax */
   2856     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */
   2857     RECOMP_FLAGS_IN();
   2858     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2859     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2860     esp = esp + 4; /* 0x3609CD63: add esp, 4 */
   2861     _flag_k = FK_ADD;
   2862 L_3609CD66:
   2863     eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */
   2864     /* test eax, eax */ /* 0x3609CD6C: test eax, eax */
   2865     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2866     _cf = 0;
   2867     _flag_k = FK_TEST;
   2868     MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */
   2869     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */
   2870 L_3609CD7A:
   2871     PUSH32(esp, eax); /* 0x3609CD7A: push eax */
   2872     RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */
   2873     RECOMP_FLAGS_IN();
   2874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2876     esp = esp + 4; /* 0x3609CD80: add esp, 4 */
   2877     _flag_k = FK_ADD;
   2878 L_3609CD83:
   2879     ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */
   2880     /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */
   2881     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2882     _cf = 0;
   2883     _flag_k = FK_TEST;
   2884     MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */
   2885     if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */
   2886 L_3609CD97:
   2887     RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */
   2888     RECOMP_FLAGS_IN();
   2889     MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */
   2890 L_3609CDA6:
   2891     ecx = esi; /* 0x3609CDA6: mov ecx, esi */
   2892     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2893     _cf = (ecx) != 0;
   2894     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */
   2895     _flag_k = FK_CMP;
   2896     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */
   2897       ecx = _sc ? 0xFFFFFFFFu : 0;
   2898       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2899       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2900     eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */
   2901     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2902     ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */
   2903     _cf = 0;
   2904     _flag_k = FK_TEST;
   2905     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */
   2906     RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */
   2907     RECOMP_FLAGS_IN();
   2908     ecx = esi; /* 0x3609CDBE: mov ecx, esi */
   2909     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2910     _cf = (ecx) != 0;
   2911     ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */
   2912     _flag_k = FK_CMP;
   2913     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */
   2914       ecx = _sc ? 0xFFFFFFFFu : 0;
   2915       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2916       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2917     eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */
   2918     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   2919     ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */
   2920     _cf = 0;
   2921     _flag_k = FK_TEST;
   2922     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */
   2923     RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */
   2924     RECOMP_FLAGS_IN();
   2925     ecx = esi; /* 0x3609CDD5: mov ecx, esi */
   2926     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */
   2927     RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */
   2928     RECOMP_FLAGS_IN();
   2929     ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */
   2930     edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */
   2931     esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */
   2932     ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */
   2933     MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */
   2934     esp = ebp; /* 0x3609CDF0: mov esp, ebp */
   2935     ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */
   2936     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret  */
   2937 L_36166FA0:
   2938     ecx = MEM32(ebp + (-0x10)); /* 0x36166FA0: mov ecx, dword ptr [ebp - 0x10] */
   2939     RECOMP_BACKEDGE();
   2940     goto L_3609CC20; /* 0x36166FA3: jmp 0x3609cc20 */
   2941     { RECOMP_REGS_OUT(); return; } /* end of function */
   2942     RECOMP_REGS_OUT();
   2943 }
   2944 
   2945 void sub_36166FA8(void) {
   2946     int _fpu_cmp = 0;
   2947     uint32_t _cf = 0;
   2948     int _df = 1;
   2949     uint32_t _flag_k = FK_NONE;
   2950     uint32_t _flag_a = 0, _flag_b = 0;
   2951     uint32_t _itail_tgt = 0;
   2952     RECOMP_REGS_LOCALS
   2953     RECOMP_ENTER(0x36166FA8u);
   2954 
   2955     goto L_36166FA8;
   2956 L_3615FD76:
   2957     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   2958 L_36166FA8:
   2959     eax = 0x3618C280u; /* 0x36166FA8: mov eax, 0x3618c280 */
   2960 L_36166FAD:
   2961     RECOMP_BACKEDGE();
   2962     goto L_3615FD76; /* 0x36166FAD: jmp 0x3615fd76 */
   2963     { RECOMP_REGS_OUT(); return; } /* end of function */
   2964   _ljump:
   2965     switch (_itail_tgt) {
   2966       case 0x3615FD76u: goto L_3615FD76;
   2967       case 0x36166FA8u: goto L_36166FA8;
   2968       case 0x36166FADu: goto L_36166FAD;
   2969       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2970     }
   2971     RECOMP_REGS_OUT();
   2972 }
   2973 
   2974 void sub_36166FC0(void) {
   2975     int _fpu_cmp = 0;
   2976     uint32_t _cf = 0;
   2977     int _df = 1;
   2978     uint32_t _flag_k = FK_NONE;
   2979     uint32_t _flag_a = 0, _flag_b = 0;
   2980     uint32_t _itail_tgt = 0;
   2981     RECOMP_REGS_LOCALS
   2982     RECOMP_ENTER(0x36166FC0u);
   2983 
   2984 L_36166FC0:
   2985     ecx = ebp + (-0x1C); /* 0x36166FC0: lea ecx, [ebp - 0x1c] */
   2986 L_36166FC3:
   2987     { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; }
   2988     { RECOMP_REGS_OUT(); return; } /* end of function */
   2989   _ljump:
   2990     switch (_itail_tgt) {
   2991       case 0x36166FC0u: goto L_36166FC0;
   2992       case 0x36166FC3u: goto L_36166FC3;
   2993       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2994     }
   2995     RECOMP_REGS_OUT();
   2996 }
   2997 
   2998 void sub_36166FC9(void) {
   2999     int _fpu_cmp = 0;
   3000     uint32_t _cf = 0;
   3001     int _df = 1;
   3002     uint32_t _flag_k = FK_NONE;
   3003     uint32_t _flag_a = 0, _flag_b = 0;
   3004     uint32_t _itail_tgt = 0;
   3005     RECOMP_REGS_LOCALS
   3006     RECOMP_ENTER(0x36166FC9u);
   3007 
   3008     goto L_36166FC9;
   3009 L_3615FD76:
   3010     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3011 L_36166FC9:
   3012     eax = 0x3618C2A8u; /* 0x36166FC9: mov eax, 0x3618c2a8 */
   3013 L_36166FCE:
   3014     RECOMP_BACKEDGE();
   3015     goto L_3615FD76; /* 0x36166FCE: jmp 0x3615fd76 */
   3016     { RECOMP_REGS_OUT(); return; } /* end of function */
   3017   _ljump:
   3018     switch (_itail_tgt) {
   3019       case 0x3615FD76u: goto L_3615FD76;
   3020       case 0x36166FC9u: goto L_36166FC9;
   3021       case 0x36166FCEu: goto L_36166FCE;
   3022       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3023     }
   3024     RECOMP_REGS_OUT();
   3025 }
   3026 
   3027 void sub_36166FE0(void) {
   3028     int _fpu_cmp = 0;
   3029     uint32_t _cf = 0;
   3030     int _df = 1;
   3031     uint32_t _flag_k = FK_NONE;
   3032     uint32_t _flag_a = 0, _flag_b = 0;
   3033     uint32_t _itail_tgt = 0;
   3034     RECOMP_REGS_LOCALS
   3035     RECOMP_ENTER(0x36166FE0u);
   3036 
   3037     goto L_36166FE0;
   3038 L_360B2340:
   3039     PUSH32(esp, ebp); /* 0x360B2340: push ebp */
   3040     ebp = esp; /* 0x360B2341: mov ebp, esp */
   3041     PUSH32(esp, 0xFFFFFFFFu); /* 0x360B2343: push -1 */
   3042     PUSH32(esp, 0x361672C0u); /* 0x360B2345: push 0x361672c0 */
   3043     eax = MEM32(FS_BASE + (0)); /* 0x360B234A: mov eax, dword ptr fs:[0] */
   3044     PUSH32(esp, eax); /* 0x360B2350: push eax */
   3045     MEM32(FS_BASE + (0)) = esp; /* 0x360B2351: mov dword ptr fs:[0], esp */
   3046     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3047     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3048     esp = esp - 8; /* 0x360B2358: sub esp, 8 */
   3049     _flag_k = FK_CMP;
   3050     PUSH32(esp, ebx); /* 0x360B235B: push ebx */
   3051     PUSH32(esp, esi); /* 0x360B235C: push esi */
   3052     esi = ecx; /* 0x360B235D: mov esi, ecx */
   3053     PUSH32(esp, edi); /* 0x360B235F: push edi */
   3054     MEM32(ebp + (-0x14)) = esi; /* 0x360B2360: mov dword ptr [ebp - 0x14], esi */
   3055     MEM32(esi) = 0x36174D28u; /* 0x360B2363: mov dword ptr [esi], 0x36174d28 */
   3056     MEM32(esi + 0x20) = 0x36174D0Cu; /* 0x360B2369: mov dword ptr [esi + 0x20], 0x36174d0c */
   3057     ebx = MEM32(esi + 0x68); /* 0x360B2370: mov ebx, dword ptr [esi + 0x68] */
   3058     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3059     edi = 0; /* 0x360B2373: xor edi, edi */
   3060     _cf = 0;
   3061     _flag_k = FK_TEST;
   3062     /* cmp ebx, edi */ /* 0x360B2375: cmp ebx, edi */
   3063     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   3064     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3065     _flag_k = FK_CMP;
   3066     MEM32(ebp + (-0x4)) = 1; /* 0x360B2377: mov dword ptr [ebp - 4], 1 */
   3067     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B239E; /* 0x360B237E: je 0x360b239e */
   3068 L_360B2380:
   3069     eax = MEM32(ebx + 0x4); /* 0x360B2380: mov eax, dword ptr [ebx + 4] */
   3070     PUSH32(esp, eax); /* 0x360B2383: push eax */
   3071     MEM32(ebp + (-0x10)) = eax; /* 0x360B2384: mov dword ptr [ebp - 0x10], eax */
   3072     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2387: call 0x3615fcc4 */ /* not lifted */
   3073     RECOMP_FLAGS_IN();
   3074     PUSH32(esp, ebx); /* 0x360B238C: push ebx */
   3075     MEM32(ebx + 0x4) = edi; /* 0x360B238D: mov dword ptr [ebx + 4], edi */
   3076     MEM32(ebx + 0x8) = edi; /* 0x360B2390: mov dword ptr [ebx + 8], edi */
   3077     MEM32(ebx + 0xC) = edi; /* 0x360B2393: mov dword ptr [ebx + 0xc], edi */
   3078     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2396: call 0x3615fcc4 */ /* not lifted */
   3079     RECOMP_FLAGS_IN();
   3080     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3081     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3082     esp = esp + 8; /* 0x360B239B: add esp, 8 */
   3083     _flag_k = FK_ADD;
   3084 L_360B239E:
   3085     ebx = MEM32(esi + 0x64); /* 0x360B239E: mov ebx, dword ptr [esi + 0x64] */
   3086     /* cmp ebx, edi */ /* 0x360B23A1: cmp ebx, edi */
   3087     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   3088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3089     _flag_k = FK_CMP;
   3090     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B23E2; /* 0x360B23A3: je 0x360b23e2 */
   3091 L_360B23A5:
   3092     eax = MEM32(ebx + 0x8); /* 0x360B23A5: mov eax, dword ptr [ebx + 8] */
   3093     edi = MEM32(ebx + 0x4); /* 0x360B23A8: mov edi, dword ptr [ebx + 4] */
   3094     /* cmp edi, eax */ /* 0x360B23AB: cmp edi, eax */
   3095     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3096     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3097     _flag_k = FK_CMP;
   3098     MEM32(ebp + (-0x10)) = eax; /* 0x360B23AD: mov dword ptr [ebp - 0x10], eax */
   3099     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B23C3; /* 0x360B23B0: je 0x360b23c3 */
   3100 L_360B23B2:
   3101     ecx = edi; /* 0x360B23B2: mov ecx, edi */
   3102     RECOMP_ICALL(0x360E2940u); /* 0x360B23B4: call 0x360e2940 */ /* not lifted */
   3103     RECOMP_FLAGS_IN();
   3104     eax = MEM32(ebp + (-0x10)); /* 0x360B23B9: mov eax, dword ptr [ebp - 0x10] */
   3105     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   3106     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3107     edi = edi + 8; /* 0x360B23BC: add edi, 8 */
   3108     _flag_k = FK_ADD;
   3109     /* cmp edi, eax */ /* 0x360B23BF: cmp edi, eax */
   3110     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3112     _flag_k = FK_CMP;
   3113     RECOMP_BACKEDGE();
   3114     if (CMP_NE(_flag_a, _flag_b)) goto L_360B23B2; /* 0x360B23C1: jne 0x360b23b2 */
   3115 L_360B23C3:
   3116     eax = MEM32(ebx + 0x4); /* 0x360B23C3: mov eax, dword ptr [ebx + 4] */
   3117     PUSH32(esp, eax); /* 0x360B23C6: push eax */
   3118     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23C7: call 0x3615fcc4 */ /* not lifted */
   3119     RECOMP_FLAGS_IN();
   3120     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3121     eax = 0; /* 0x360B23CC: xor eax, eax */
   3122     _cf = 0;
   3123     _flag_k = FK_TEST;
   3124     PUSH32(esp, ebx); /* 0x360B23CE: push ebx */
   3125     MEM32(ebx + 0x4) = eax; /* 0x360B23CF: mov dword ptr [ebx + 4], eax */
   3126     MEM32(ebx + 0x8) = eax; /* 0x360B23D2: mov dword ptr [ebx + 8], eax */
   3127     MEM32(ebx + 0xC) = eax; /* 0x360B23D5: mov dword ptr [ebx + 0xc], eax */
   3128     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23D8: call 0x3615fcc4 */ /* not lifted */
   3129     RECOMP_FLAGS_IN();
   3130     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3131     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3132     esp = esp + 8; /* 0x360B23DD: add esp, 8 */
   3133     _flag_k = FK_ADD;
   3134     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3135     edi = 0; /* 0x360B23E0: xor edi, edi */
   3136     _cf = 0;
   3137     _flag_k = FK_TEST;
   3138 L_360B23E2:
   3139     ebx = MEM32(esi + 0x60); /* 0x360B23E2: mov ebx, dword ptr [esi + 0x60] */
   3140     /* cmp ebx, edi */ /* 0x360B23E5: cmp ebx, edi */
   3141     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi);
   3142     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3143     _flag_k = FK_CMP;
   3144     MEM32(esi + 0x64) = edi; /* 0x360B23E7: mov dword ptr [esi + 0x64], edi */
   3145     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B240A; /* 0x360B23EA: je 0x360b240a */
   3146 L_360B23EC:
   3147     eax = MEM32(ebx + 0x4); /* 0x360B23EC: mov eax, dword ptr [ebx + 4] */
   3148     PUSH32(esp, eax); /* 0x360B23EF: push eax */
   3149     MEM32(ebp + (-0x14)) = eax; /* 0x360B23F0: mov dword ptr [ebp - 0x14], eax */
   3150     RECOMP_ICALL(0x3615FCC4u); /* 0x360B23F3: call 0x3615fcc4 */ /* not lifted */
   3151     RECOMP_FLAGS_IN();
   3152     PUSH32(esp, ebx); /* 0x360B23F8: push ebx */
   3153     MEM32(ebx + 0x4) = edi; /* 0x360B23F9: mov dword ptr [ebx + 4], edi */
   3154     MEM32(ebx + 0x8) = edi; /* 0x360B23FC: mov dword ptr [ebx + 8], edi */
   3155     MEM32(ebx + 0xC) = edi; /* 0x360B23FF: mov dword ptr [ebx + 0xc], edi */
   3156     RECOMP_ICALL(0x3615FCC4u); /* 0x360B2402: call 0x3615fcc4 */ /* not lifted */
   3157     RECOMP_FLAGS_IN();
   3158     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3159     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3160     esp = esp + 8; /* 0x360B2407: add esp, 8 */
   3161     _flag_k = FK_ADD;
   3162 L_360B240A:
   3163     eax = esi; /* 0x360B240A: mov eax, esi */
   3164     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   3165     _cf = (eax) != 0;
   3166     eax = (uint32_t)(-(int32_t)eax); /* 0x360B240C: neg eax */
   3167     _flag_k = FK_CMP;
   3168     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360B240E: sbb eax, eax */
   3169       eax = _sc ? 0xFFFFFFFFu : 0;
   3170       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   3171       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   3172     ecx = esi + 0x20; /* 0x360B2410: lea ecx, [esi + 0x20] */
   3173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3174     eax = eax & ecx; /* 0x360B2413: and eax, ecx */
   3175     _cf = 0;
   3176     _flag_k = FK_TEST;
   3177     MEM32(esi + 0x60) = edi; /* 0x360B2415: mov dword ptr [esi + 0x60], edi */
   3178     ecx = esi; /* 0x360B2418: mov ecx, esi */
   3179     MEM32(eax) = 0x361719E8u; /* 0x360B241A: mov dword ptr [eax], 0x361719e8 */
   3180     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360B2420: mov dword ptr [ebp - 4], 0xffffffff */
   3181     RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x360B2427: call dword ptr [0x3616ffd4] */
   3182     RECOMP_FLAGS_IN();
   3183     ecx = MEM32(ebp + (-0xC)); /* 0x360B242D: mov ecx, dword ptr [ebp - 0xc] */
   3184     edi = POP32_VAL(esp); /* 0x360B2430: pop edi */
   3185     esi = POP32_VAL(esp); /* 0x360B2431: pop esi */
   3186     ebx = POP32_VAL(esp); /* 0x360B2432: pop ebx */
   3187     MEM32(FS_BASE + (0)) = ecx; /* 0x360B2433: mov dword ptr fs:[0], ecx */
   3188     esp = ebp; /* 0x360B243A: mov esp, ebp */
   3189     ebp = POP32_VAL(esp); /* 0x360B243C: pop ebp */
   3190     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B243D: ret  */
   3191 L_36166FE0:
   3192     ecx = MEM32(ebp + (-0x10)); /* 0x36166FE0: mov ecx, dword ptr [ebp - 0x10] */
   3193     RECOMP_BACKEDGE();
   3194     goto L_360B2340; /* 0x36166FE3: jmp 0x360b2340 */
   3195     { RECOMP_REGS_OUT(); return; } /* end of function */
   3196     RECOMP_REGS_OUT();
   3197 }
   3198 
   3199 void sub_36166FE8(void) {
   3200     int _fpu_cmp = 0;
   3201     uint32_t _cf = 0;
   3202     int _df = 1;
   3203     uint32_t _flag_k = FK_NONE;
   3204     uint32_t _flag_a = 0, _flag_b = 0;
   3205     uint32_t _itail_tgt = 0;
   3206     RECOMP_REGS_LOCALS
   3207     RECOMP_ENTER(0x36166FE8u);
   3208 
   3209     goto L_36166FE8;
   3210 L_3615FD76:
   3211     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3212 L_36166FE8:
   3213     eax = 0x3618C2D0u; /* 0x36166FE8: mov eax, 0x3618c2d0 */
   3214 L_36166FED:
   3215     RECOMP_BACKEDGE();
   3216     goto L_3615FD76; /* 0x36166FED: jmp 0x3615fd76 */
   3217     { RECOMP_REGS_OUT(); return; } /* end of function */
   3218   _ljump:
   3219     switch (_itail_tgt) {
   3220       case 0x3615FD76u: goto L_3615FD76;
   3221       case 0x36166FE8u: goto L_36166FE8;
   3222       case 0x36166FEDu: goto L_36166FED;
   3223       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3224     }
   3225     RECOMP_REGS_OUT();
   3226 }
   3227 
   3228 void sub_36167000(void) {
   3229     int _fpu_cmp = 0;
   3230     uint32_t _cf = 0;
   3231     int _df = 1;
   3232     uint32_t _flag_k = FK_NONE;
   3233     uint32_t _flag_a = 0, _flag_b = 0;
   3234     uint32_t _itail_tgt = 0;
   3235     RECOMP_REGS_LOCALS
   3236     RECOMP_ENTER(0x36167000u);
   3237 
   3238 L_36167000:
   3239     eax = MEM32(ebp + (-0x10)); /* 0x36167000: mov eax, dword ptr [ebp - 0x10] */
   3240     PUSH32(esp, eax); /* 0x36167003: push eax */
   3241     RECOMP_ICALL(0x3615FCC4u); /* 0x36167004: call 0x3615fcc4 */ /* not lifted */
   3242     RECOMP_FLAGS_IN();
   3243     ecx = POP32_VAL(esp); /* 0x36167009: pop ecx */
   3244     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616700A: ret  */
   3245     RECOMP_REGS_OUT();
   3246 }
   3247 
   3248 void sub_3616700B(void) {
   3249     int _fpu_cmp = 0;
   3250     uint32_t _cf = 0;
   3251     int _df = 1;
   3252     uint32_t _flag_k = FK_NONE;
   3253     uint32_t _flag_a = 0, _flag_b = 0;
   3254     uint32_t _itail_tgt = 0;
   3255     RECOMP_REGS_LOCALS
   3256     RECOMP_ENTER(0x3616700Bu);
   3257 
   3258     goto L_3616700B;
   3259 L_3615FD76:
   3260     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3261 L_3616700B:
   3262     eax = 0x3618C2F8u; /* 0x3616700B: mov eax, 0x3618c2f8 */
   3263 L_36167010:
   3264     RECOMP_BACKEDGE();
   3265     goto L_3615FD76; /* 0x36167010: jmp 0x3615fd76 */
   3266     { RECOMP_REGS_OUT(); return; } /* end of function */
   3267   _ljump:
   3268     switch (_itail_tgt) {
   3269       case 0x3615FD76u: goto L_3615FD76;
   3270       case 0x3616700Bu: goto L_3616700B;
   3271       case 0x36167010u: goto L_36167010;
   3272       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3273     }
   3274     RECOMP_REGS_OUT();
   3275 }
   3276 
   3277 void sub_36167020(void) {
   3278     int _fpu_cmp = 0;
   3279     uint32_t _cf = 0;
   3280     int _df = 1;
   3281     uint32_t _flag_k = FK_NONE;
   3282     uint32_t _flag_a = 0, _flag_b = 0;
   3283     uint32_t _itail_tgt = 0;
   3284     RECOMP_REGS_LOCALS
   3285     RECOMP_ENTER(0x36167020u);
   3286 
   3287 L_36167020:
   3288     ecx = MEM32(ebp + (-0x10)); /* 0x36167020: mov ecx, dword ptr [ebp - 0x10] */
   3289 L_36167023:
   3290     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   3291     { RECOMP_REGS_OUT(); return; } /* end of function */
   3292   _ljump:
   3293     switch (_itail_tgt) {
   3294       case 0x36167020u: goto L_36167020;
   3295       case 0x36167023u: goto L_36167023;
   3296       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3297     }
   3298     RECOMP_REGS_OUT();
   3299 }
   3300 
   3301 void sub_36167029(void) {
   3302     int _fpu_cmp = 0;
   3303     uint32_t _cf = 0;
   3304     int _df = 1;
   3305     uint32_t _flag_k = FK_NONE;
   3306     uint32_t _flag_a = 0, _flag_b = 0;
   3307     uint32_t _itail_tgt = 0;
   3308     RECOMP_REGS_LOCALS
   3309     RECOMP_ENTER(0x36167029u);
   3310 
   3311     goto L_36167029;
   3312 L_3615FD76:
   3313     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3314 L_36167029:
   3315     eax = 0x3618C320u; /* 0x36167029: mov eax, 0x3618c320 */
   3316 L_3616702E:
   3317     RECOMP_BACKEDGE();
   3318     goto L_3615FD76; /* 0x3616702E: jmp 0x3615fd76 */
   3319     { RECOMP_REGS_OUT(); return; } /* end of function */
   3320   _ljump:
   3321     switch (_itail_tgt) {
   3322       case 0x3615FD76u: goto L_3615FD76;
   3323       case 0x36167029u: goto L_36167029;
   3324       case 0x3616702Eu: goto L_3616702E;
   3325       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3326     }
   3327     RECOMP_REGS_OUT();
   3328 }
   3329 
   3330 void sub_36167040(void) {
   3331     int _fpu_cmp = 0;
   3332     uint32_t _cf = 0;
   3333     int _df = 1;
   3334     uint32_t _flag_k = FK_NONE;
   3335     uint32_t _flag_a = 0, _flag_b = 0;
   3336     uint32_t _itail_tgt = 0;
   3337     RECOMP_REGS_LOCALS
   3338     RECOMP_ENTER(0x36167040u);
   3339 
   3340 L_36167040:
   3341     eax = MEM32(ebp + (-0x10)); /* 0x36167040: mov eax, dword ptr [ebp - 0x10] */
   3342     PUSH32(esp, eax); /* 0x36167043: push eax */
   3343     RECOMP_ICALL(0x3615FCC4u); /* 0x36167044: call 0x3615fcc4 */ /* not lifted */
   3344     RECOMP_FLAGS_IN();
   3345     ecx = POP32_VAL(esp); /* 0x36167049: pop ecx */
   3346     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616704A: ret  */
   3347     RECOMP_REGS_OUT();
   3348 }
   3349 
   3350 void sub_3616704B(void) {
   3351     int _fpu_cmp = 0;
   3352     uint32_t _cf = 0;
   3353     int _df = 1;
   3354     uint32_t _flag_k = FK_NONE;
   3355     uint32_t _flag_a = 0, _flag_b = 0;
   3356     uint32_t _itail_tgt = 0;
   3357     RECOMP_REGS_LOCALS
   3358     RECOMP_ENTER(0x3616704Bu);
   3359 
   3360     goto L_3616704B;
   3361 L_3615FD76:
   3362     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3363 L_3616704B:
   3364     eax = 0x3618C348u; /* 0x3616704B: mov eax, 0x3618c348 */
   3365 L_36167050:
   3366     RECOMP_BACKEDGE();
   3367     goto L_3615FD76; /* 0x36167050: jmp 0x3615fd76 */
   3368     { RECOMP_REGS_OUT(); return; } /* end of function */
   3369   _ljump:
   3370     switch (_itail_tgt) {
   3371       case 0x3615FD76u: goto L_3615FD76;
   3372       case 0x3616704Bu: goto L_3616704B;
   3373       case 0x36167050u: goto L_36167050;
   3374       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3375     }
   3376     RECOMP_REGS_OUT();
   3377 }
   3378 
   3379 void sub_36167060(void) {
   3380     int _fpu_cmp = 0;
   3381     uint32_t _cf = 0;
   3382     int _df = 1;
   3383     uint32_t _flag_k = FK_NONE;
   3384     uint32_t _flag_a = 0, _flag_b = 0;
   3385     uint32_t _itail_tgt = 0;
   3386     RECOMP_REGS_LOCALS
   3387     RECOMP_ENTER(0x36167060u);
   3388 
   3389     goto L_36167060;
   3390 L_360AF170:
   3391     MEM32(ecx) = 0x36174A1Cu; /* 0x360AF170: mov dword ptr [ecx], 0x36174a1c */
   3392     MEM32(ecx + 0x20) = 0x36174A00u; /* 0x360AF176: mov dword ptr [ecx + 0x20], 0x36174a00 */
   3393     goto L_360B0F30; /* 0x360AF17D: jmp 0x360b0f30 */
   3394 L_360B0F30:
   3395     PUSH32(esp, ebp); /* 0x360B0F30: push ebp */
   3396     ebp = esp; /* 0x360B0F31: mov ebp, esp */
   3397     PUSH32(esp, ecx); /* 0x360B0F33: push ecx */
   3398     PUSH32(esp, edi); /* 0x360B0F34: push edi */
   3399     edi = MEM32(ecx + 0x7C); /* 0x360B0F35: mov edi, dword ptr [ecx + 0x7c] */
   3400     /* test edi, edi */ /* 0x360B0F38: test edi, edi */
   3401     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3402     _cf = 0;
   3403     _flag_k = FK_TEST;
   3404     MEM32(ebp + (-0x4)) = ecx; /* 0x360B0F3A: mov dword ptr [ebp - 4], ecx */
   3405     MEM32(ecx) = 0x36174B94u; /* 0x360B0F3D: mov dword ptr [ecx], 0x36174b94 */
   3406     MEM32(ecx + 0x20) = 0x36174B78u; /* 0x360B0F43: mov dword ptr [ecx + 0x20], 0x36174b78 */
   3407     if (TEST_Z(_flag_a, _flag_b)) goto L_360B0F9D; /* 0x360B0F4A: je 0x360b0f9d */
   3408 L_360B0F4C:
   3409     PUSH32(esp, ebx); /* 0x360B0F4C: push ebx */
   3410     ebx = MEM32(edi + 0x4); /* 0x360B0F4D: mov ebx, dword ptr [edi + 4] */
   3411     PUSH32(esp, esi); /* 0x360B0F50: push esi */
   3412     esi = MEM32(ebx); /* 0x360B0F51: mov esi, dword ptr [ebx] */
   3413     /* cmp esi, ebx */ /* 0x360B0F53: cmp esi, ebx */
   3414     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3416     _flag_k = FK_CMP;
   3417     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B0F7E; /* 0x360B0F55: je 0x360b0f7e */
   3418 L_360B0F57:
   3419     eax = esi; /* 0x360B0F57: mov eax, esi */
   3420     ecx = MEM32(eax + 0x4); /* 0x360B0F59: mov ecx, dword ptr [eax + 4] */
   3421     edx = MEM32(eax); /* 0x360B0F5C: mov edx, dword ptr [eax] */
   3422     esi = MEM32(esi); /* 0x360B0F5E: mov esi, dword ptr [esi] */
   3423     MEM32(ecx) = edx; /* 0x360B0F60: mov dword ptr [ecx], edx */
   3424     ecx = MEM32(eax); /* 0x360B0F62: mov ecx, dword ptr [eax] */
   3425     edx = MEM32(eax + 0x4); /* 0x360B0F64: mov edx, dword ptr [eax + 4] */
   3426     PUSH32(esp, eax); /* 0x360B0F67: push eax */
   3427     MEM32(ecx + 0x4) = edx; /* 0x360B0F68: mov dword ptr [ecx + 4], edx */
   3428     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F6B: call 0x3615fcc4 */ /* not lifted */
   3429     RECOMP_FLAGS_IN();
   3430     ecx = MEM32(edi + 0x8); /* 0x360B0F70: mov ecx, dword ptr [edi + 8] */
   3431     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3432     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3433     esp = esp + 4; /* 0x360B0F73: add esp, 4 */
   3434     _flag_k = FK_ADD;
   3435     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3436     ecx = ecx - 1; /* 0x360B0F76: dec ecx */
   3437     _flag_k = FK_DEC;
   3438     /* cmp esi, ebx */ /* 0x360B0F77: cmp esi, ebx */
   3439     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3440     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3441     _flag_k = FK_CMP;
   3442     MEM32(edi + 0x8) = ecx; /* 0x360B0F79: mov dword ptr [edi + 8], ecx */
   3443     RECOMP_BACKEDGE();
   3444     if (CMP_NE(_flag_a, _flag_b)) goto L_360B0F57; /* 0x360B0F7C: jne 0x360b0f57 */
   3445 L_360B0F7E:
   3446     eax = MEM32(edi + 0x4); /* 0x360B0F7E: mov eax, dword ptr [edi + 4] */
   3447     PUSH32(esp, eax); /* 0x360B0F81: push eax */
   3448     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F82: call 0x3615fcc4 */ /* not lifted */
   3449     RECOMP_FLAGS_IN();
   3450     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3451     eax = 0; /* 0x360B0F87: xor eax, eax */
   3452     _cf = 0;
   3453     _flag_k = FK_TEST;
   3454     PUSH32(esp, edi); /* 0x360B0F89: push edi */
   3455     MEM32(edi + 0x4) = eax; /* 0x360B0F8A: mov dword ptr [edi + 4], eax */
   3456     MEM32(edi + 0x8) = eax; /* 0x360B0F8D: mov dword ptr [edi + 8], eax */
   3457     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F90: call 0x3615fcc4 */ /* not lifted */
   3458     RECOMP_FLAGS_IN();
   3459     ecx = MEM32(ebp + (-0x4)); /* 0x360B0F95: mov ecx, dword ptr [ebp - 4] */
   3460     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3462     esp = esp + 8; /* 0x360B0F98: add esp, 8 */
   3463     _flag_k = FK_ADD;
   3464     esi = POP32_VAL(esp); /* 0x360B0F9B: pop esi */
   3465     ebx = POP32_VAL(esp); /* 0x360B0F9C: pop ebx */
   3466 L_360B0F9D:
   3467     RECOMP_ICALL(0x360B2340u); /* 0x360B0F9D: call 0x360b2340 */ /* not lifted */
   3468     RECOMP_FLAGS_IN();
   3469     edi = POP32_VAL(esp); /* 0x360B0FA2: pop edi */
   3470     esp = ebp; /* 0x360B0FA3: mov esp, ebp */
   3471     ebp = POP32_VAL(esp); /* 0x360B0FA5: pop ebp */
   3472     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B0FA6: ret  */
   3473 L_36167060:
   3474     ecx = MEM32(ebp + (-0x14)); /* 0x36167060: mov ecx, dword ptr [ebp - 0x14] */
   3475     RECOMP_BACKEDGE();
   3476     goto L_360AF170; /* 0x36167063: jmp 0x360af170 */
   3477     { RECOMP_REGS_OUT(); return; } /* end of function */
   3478     RECOMP_REGS_OUT();
   3479 }
   3480 
   3481 void sub_36167068(void) {
   3482     int _fpu_cmp = 0;
   3483     uint32_t _cf = 0;
   3484     int _df = 1;
   3485     uint32_t _flag_k = FK_NONE;
   3486     uint32_t _flag_a = 0, _flag_b = 0;
   3487     uint32_t _itail_tgt = 0;
   3488     RECOMP_REGS_LOCALS
   3489     RECOMP_ENTER(0x36167068u);
   3490 
   3491 L_36167068:
   3492     eax = MEM32(ebp + (-0x18)); /* 0x36167068: mov eax, dword ptr [ebp - 0x18] */
   3493     PUSH32(esp, eax); /* 0x3616706B: push eax */
   3494     RECOMP_ICALL(0x3615FCC4u); /* 0x3616706C: call 0x3615fcc4 */ /* not lifted */
   3495     RECOMP_FLAGS_IN();
   3496     ecx = POP32_VAL(esp); /* 0x36167071: pop ecx */
   3497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36167072: ret  */
   3498     RECOMP_REGS_OUT();
   3499 }
   3500 
   3501 void sub_36167073(void) {
   3502     int _fpu_cmp = 0;
   3503     uint32_t _cf = 0;
   3504     int _df = 1;
   3505     uint32_t _flag_k = FK_NONE;
   3506     uint32_t _flag_a = 0, _flag_b = 0;
   3507     uint32_t _itail_tgt = 0;
   3508     RECOMP_REGS_LOCALS
   3509     RECOMP_ENTER(0x36167073u);
   3510 
   3511 L_36167073:
   3512     eax = MEM32(ebp + (-0x18)); /* 0x36167073: mov eax, dword ptr [ebp - 0x18] */
   3513     PUSH32(esp, eax); /* 0x36167076: push eax */
   3514     RECOMP_ICALL(0x3615FCC4u); /* 0x36167077: call 0x3615fcc4 */ /* not lifted */
   3515     RECOMP_FLAGS_IN();
   3516     ecx = POP32_VAL(esp); /* 0x3616707C: pop ecx */
   3517     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616707D: ret  */
   3518     RECOMP_REGS_OUT();
   3519 }
   3520 
   3521 void sub_3616707E(void) {
   3522     int _fpu_cmp = 0;
   3523     uint32_t _cf = 0;
   3524     int _df = 1;
   3525     uint32_t _flag_k = FK_NONE;
   3526     uint32_t _flag_a = 0, _flag_b = 0;
   3527     uint32_t _itail_tgt = 0;
   3528     RECOMP_REGS_LOCALS
   3529     RECOMP_ENTER(0x3616707Eu);
   3530 
   3531     goto L_3616707E;
   3532 L_3615FD76:
   3533     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3534 L_3616707E:
   3535     eax = 0x3618C370u; /* 0x3616707E: mov eax, 0x3618c370 */
   3536 L_36167083:
   3537     RECOMP_BACKEDGE();
   3538     goto L_3615FD76; /* 0x36167083: jmp 0x3615fd76 */
   3539     { RECOMP_REGS_OUT(); return; } /* end of function */
   3540   _ljump:
   3541     switch (_itail_tgt) {
   3542       case 0x3615FD76u: goto L_3615FD76;
   3543       case 0x3616707Eu: goto L_3616707E;
   3544       case 0x36167083u: goto L_36167083;
   3545       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3546     }
   3547     RECOMP_REGS_OUT();
   3548 }
   3549 
   3550 void sub_36167090(void) {
   3551     int _fpu_cmp = 0;
   3552     uint32_t _cf = 0;
   3553     int _df = 1;
   3554     uint32_t _flag_k = FK_NONE;
   3555     uint32_t _flag_a = 0, _flag_b = 0;
   3556     uint32_t _itail_tgt = 0;
   3557     RECOMP_REGS_LOCALS
   3558     RECOMP_ENTER(0x36167090u);
   3559 
   3560     goto L_36167090;
   3561 L_360AF170:
   3562     MEM32(ecx) = 0x36174A1Cu; /* 0x360AF170: mov dword ptr [ecx], 0x36174a1c */
   3563     MEM32(ecx + 0x20) = 0x36174A00u; /* 0x360AF176: mov dword ptr [ecx + 0x20], 0x36174a00 */
   3564     goto L_360B0F30; /* 0x360AF17D: jmp 0x360b0f30 */
   3565 L_360B0F30:
   3566     PUSH32(esp, ebp); /* 0x360B0F30: push ebp */
   3567     ebp = esp; /* 0x360B0F31: mov ebp, esp */
   3568     PUSH32(esp, ecx); /* 0x360B0F33: push ecx */
   3569     PUSH32(esp, edi); /* 0x360B0F34: push edi */
   3570     edi = MEM32(ecx + 0x7C); /* 0x360B0F35: mov edi, dword ptr [ecx + 0x7c] */
   3571     /* test edi, edi */ /* 0x360B0F38: test edi, edi */
   3572     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3573     _cf = 0;
   3574     _flag_k = FK_TEST;
   3575     MEM32(ebp + (-0x4)) = ecx; /* 0x360B0F3A: mov dword ptr [ebp - 4], ecx */
   3576     MEM32(ecx) = 0x36174B94u; /* 0x360B0F3D: mov dword ptr [ecx], 0x36174b94 */
   3577     MEM32(ecx + 0x20) = 0x36174B78u; /* 0x360B0F43: mov dword ptr [ecx + 0x20], 0x36174b78 */
   3578     if (TEST_Z(_flag_a, _flag_b)) goto L_360B0F9D; /* 0x360B0F4A: je 0x360b0f9d */
   3579 L_360B0F4C:
   3580     PUSH32(esp, ebx); /* 0x360B0F4C: push ebx */
   3581     ebx = MEM32(edi + 0x4); /* 0x360B0F4D: mov ebx, dword ptr [edi + 4] */
   3582     PUSH32(esp, esi); /* 0x360B0F50: push esi */
   3583     esi = MEM32(ebx); /* 0x360B0F51: mov esi, dword ptr [ebx] */
   3584     /* cmp esi, ebx */ /* 0x360B0F53: cmp esi, ebx */
   3585     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3587     _flag_k = FK_CMP;
   3588     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B0F7E; /* 0x360B0F55: je 0x360b0f7e */
   3589 L_360B0F57:
   3590     eax = esi; /* 0x360B0F57: mov eax, esi */
   3591     ecx = MEM32(eax + 0x4); /* 0x360B0F59: mov ecx, dword ptr [eax + 4] */
   3592     edx = MEM32(eax); /* 0x360B0F5C: mov edx, dword ptr [eax] */
   3593     esi = MEM32(esi); /* 0x360B0F5E: mov esi, dword ptr [esi] */
   3594     MEM32(ecx) = edx; /* 0x360B0F60: mov dword ptr [ecx], edx */
   3595     ecx = MEM32(eax); /* 0x360B0F62: mov ecx, dword ptr [eax] */
   3596     edx = MEM32(eax + 0x4); /* 0x360B0F64: mov edx, dword ptr [eax + 4] */
   3597     PUSH32(esp, eax); /* 0x360B0F67: push eax */
   3598     MEM32(ecx + 0x4) = edx; /* 0x360B0F68: mov dword ptr [ecx + 4], edx */
   3599     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F6B: call 0x3615fcc4 */ /* not lifted */
   3600     RECOMP_FLAGS_IN();
   3601     ecx = MEM32(edi + 0x8); /* 0x360B0F70: mov ecx, dword ptr [edi + 8] */
   3602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3604     esp = esp + 4; /* 0x360B0F73: add esp, 4 */
   3605     _flag_k = FK_ADD;
   3606     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3607     ecx = ecx - 1; /* 0x360B0F76: dec ecx */
   3608     _flag_k = FK_DEC;
   3609     /* cmp esi, ebx */ /* 0x360B0F77: cmp esi, ebx */
   3610     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3612     _flag_k = FK_CMP;
   3613     MEM32(edi + 0x8) = ecx; /* 0x360B0F79: mov dword ptr [edi + 8], ecx */
   3614     RECOMP_BACKEDGE();
   3615     if (CMP_NE(_flag_a, _flag_b)) goto L_360B0F57; /* 0x360B0F7C: jne 0x360b0f57 */
   3616 L_360B0F7E:
   3617     eax = MEM32(edi + 0x4); /* 0x360B0F7E: mov eax, dword ptr [edi + 4] */
   3618     PUSH32(esp, eax); /* 0x360B0F81: push eax */
   3619     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F82: call 0x3615fcc4 */ /* not lifted */
   3620     RECOMP_FLAGS_IN();
   3621     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3622     eax = 0; /* 0x360B0F87: xor eax, eax */
   3623     _cf = 0;
   3624     _flag_k = FK_TEST;
   3625     PUSH32(esp, edi); /* 0x360B0F89: push edi */
   3626     MEM32(edi + 0x4) = eax; /* 0x360B0F8A: mov dword ptr [edi + 4], eax */
   3627     MEM32(edi + 0x8) = eax; /* 0x360B0F8D: mov dword ptr [edi + 8], eax */
   3628     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F90: call 0x3615fcc4 */ /* not lifted */
   3629     RECOMP_FLAGS_IN();
   3630     ecx = MEM32(ebp + (-0x4)); /* 0x360B0F95: mov ecx, dword ptr [ebp - 4] */
   3631     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3632     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3633     esp = esp + 8; /* 0x360B0F98: add esp, 8 */
   3634     _flag_k = FK_ADD;
   3635     esi = POP32_VAL(esp); /* 0x360B0F9B: pop esi */
   3636     ebx = POP32_VAL(esp); /* 0x360B0F9C: pop ebx */
   3637 L_360B0F9D:
   3638     RECOMP_ICALL(0x360B2340u); /* 0x360B0F9D: call 0x360b2340 */ /* not lifted */
   3639     RECOMP_FLAGS_IN();
   3640     edi = POP32_VAL(esp); /* 0x360B0FA2: pop edi */
   3641     esp = ebp; /* 0x360B0FA3: mov esp, ebp */
   3642     ebp = POP32_VAL(esp); /* 0x360B0FA5: pop ebp */
   3643     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B0FA6: ret  */
   3644 L_36167090:
   3645     ecx = MEM32(ebp + (-0x18)); /* 0x36167090: mov ecx, dword ptr [ebp - 0x18] */
   3646     RECOMP_BACKEDGE();
   3647     goto L_360AF170; /* 0x36167093: jmp 0x360af170 */
   3648     { RECOMP_REGS_OUT(); return; } /* end of function */
   3649     RECOMP_REGS_OUT();
   3650 }
   3651 
   3652 void sub_36167098(void) {
   3653     int _fpu_cmp = 0;
   3654     uint32_t _cf = 0;
   3655     int _df = 1;
   3656     uint32_t _flag_k = FK_NONE;
   3657     uint32_t _flag_a = 0, _flag_b = 0;
   3658     uint32_t _itail_tgt = 0;
   3659     RECOMP_REGS_LOCALS
   3660     RECOMP_ENTER(0x36167098u);
   3661 
   3662 L_36167098:
   3663     eax = MEM32(ebp + (-0x14)); /* 0x36167098: mov eax, dword ptr [ebp - 0x14] */
   3664     PUSH32(esp, eax); /* 0x3616709B: push eax */
   3665     RECOMP_ICALL(0x3615FCC4u); /* 0x3616709C: call 0x3615fcc4 */ /* not lifted */
   3666     RECOMP_FLAGS_IN();
   3667     ecx = POP32_VAL(esp); /* 0x361670A1: pop ecx */
   3668     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361670A2: ret  */
   3669     RECOMP_REGS_OUT();
   3670 }
   3671 
   3672 void sub_361670A3(void) {
   3673     int _fpu_cmp = 0;
   3674     uint32_t _cf = 0;
   3675     int _df = 1;
   3676     uint32_t _flag_k = FK_NONE;
   3677     uint32_t _flag_a = 0, _flag_b = 0;
   3678     uint32_t _itail_tgt = 0;
   3679     RECOMP_REGS_LOCALS
   3680     RECOMP_ENTER(0x361670A3u);
   3681 
   3682     goto L_361670A3;
   3683 L_3606C6E0:
   3684     PUSH32(esp, ebp); /* 0x3606C6E0: push ebp */
   3685     ebp = esp; /* 0x3606C6E1: mov ebp, esp */
   3686     PUSH32(esp, ecx); /* 0x3606C6E3: push ecx */
   3687     PUSH32(esp, esi); /* 0x3606C6E4: push esi */
   3688     esi = ecx; /* 0x3606C6E5: mov esi, ecx */
   3689     eax = MEM32(esi + 0x4); /* 0x3606C6E7: mov eax, dword ptr [esi + 4] */
   3690     PUSH32(esp, eax); /* 0x3606C6EA: push eax */
   3691     MEM32(ebp + (-0x4)) = eax; /* 0x3606C6EB: mov dword ptr [ebp - 4], eax */
   3692     RECOMP_ICALL(0x3615FCC4u); /* 0x3606C6EE: call 0x3615fcc4 */ /* not lifted */
   3693     RECOMP_FLAGS_IN();
   3694     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3695     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3696     esp = esp + 4; /* 0x3606C6F3: add esp, 4 */
   3697     _flag_k = FK_ADD;
   3698     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3699     eax = 0; /* 0x3606C6F6: xor eax, eax */
   3700     _cf = 0;
   3701     _flag_k = FK_TEST;
   3702     MEM32(esi + 0x4) = eax; /* 0x3606C6F8: mov dword ptr [esi + 4], eax */
   3703     MEM32(esi + 0x8) = eax; /* 0x3606C6FB: mov dword ptr [esi + 8], eax */
   3704     MEM32(esi + 0xC) = eax; /* 0x3606C6FE: mov dword ptr [esi + 0xc], eax */
   3705     esi = POP32_VAL(esp); /* 0x3606C701: pop esi */
   3706     esp = ebp; /* 0x3606C702: mov esp, ebp */
   3707     ebp = POP32_VAL(esp); /* 0x3606C704: pop ebp */
   3708     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606C705: ret  */
   3709 L_361670A3:
   3710     ecx = MEM32(ebp + (-0x14)); /* 0x361670A3: mov ecx, dword ptr [ebp - 0x14] */
   3711     RECOMP_BACKEDGE();
   3712     goto L_3606C6E0; /* 0x361670A6: jmp 0x3606c6e0 */
   3713     { RECOMP_REGS_OUT(); return; } /* end of function */
   3714     RECOMP_REGS_OUT();
   3715 }
   3716 
   3717 void sub_361670AB(void) {
   3718     int _fpu_cmp = 0;
   3719     uint32_t _cf = 0;
   3720     int _df = 1;
   3721     uint32_t _flag_k = FK_NONE;
   3722     uint32_t _flag_a = 0, _flag_b = 0;
   3723     uint32_t _itail_tgt = 0;
   3724     RECOMP_REGS_LOCALS
   3725     RECOMP_ENTER(0x361670ABu);
   3726 
   3727 L_361670AB:
   3728     eax = MEM32(ebp + (-0x1C)); /* 0x361670AB: mov eax, dword ptr [ebp - 0x1c] */
   3729     PUSH32(esp, eax); /* 0x361670AE: push eax */
   3730     RECOMP_ICALL(0x3615FCC4u); /* 0x361670AF: call 0x3615fcc4 */ /* not lifted */
   3731     RECOMP_FLAGS_IN();
   3732     ecx = POP32_VAL(esp); /* 0x361670B4: pop ecx */
   3733     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361670B5: ret  */
   3734     RECOMP_REGS_OUT();
   3735 }
   3736 
   3737 void sub_361670B6(void) {
   3738     int _fpu_cmp = 0;
   3739     uint32_t _cf = 0;
   3740     int _df = 1;
   3741     uint32_t _flag_k = FK_NONE;
   3742     uint32_t _flag_a = 0, _flag_b = 0;
   3743     uint32_t _itail_tgt = 0;
   3744     RECOMP_REGS_LOCALS
   3745     RECOMP_ENTER(0x361670B6u);
   3746 
   3747 L_361670B6:
   3748     eax = MEM32(ebp + 0xC); /* 0x361670B6: mov eax, dword ptr [ebp + 0xc] */
   3749     PUSH32(esp, eax); /* 0x361670B9: push eax */
   3750     RECOMP_ICALL(0x3615FCC4u); /* 0x361670BA: call 0x3615fcc4 */ /* not lifted */
   3751     RECOMP_FLAGS_IN();
   3752     ecx = POP32_VAL(esp); /* 0x361670BF: pop ecx */
   3753     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361670C0: ret  */
   3754     RECOMP_REGS_OUT();
   3755 }
   3756 
   3757 void sub_361670C1(void) {
   3758     int _fpu_cmp = 0;
   3759     uint32_t _cf = 0;
   3760     int _df = 1;
   3761     uint32_t _flag_k = FK_NONE;
   3762     uint32_t _flag_a = 0, _flag_b = 0;
   3763     uint32_t _itail_tgt = 0;
   3764     RECOMP_REGS_LOCALS
   3765     RECOMP_ENTER(0x361670C1u);
   3766 
   3767     goto L_361670C1;
   3768 L_3615FD76:
   3769     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3770 L_361670C1:
   3771     eax = 0x3618C3A8u; /* 0x361670C1: mov eax, 0x3618c3a8 */
   3772 L_361670C6:
   3773     RECOMP_BACKEDGE();
   3774     goto L_3615FD76; /* 0x361670C6: jmp 0x3615fd76 */
   3775     { RECOMP_REGS_OUT(); return; } /* end of function */
   3776   _ljump:
   3777     switch (_itail_tgt) {
   3778       case 0x3615FD76u: goto L_3615FD76;
   3779       case 0x361670C1u: goto L_361670C1;
   3780       case 0x361670C6u: goto L_361670C6;
   3781       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3782     }
   3783     RECOMP_REGS_OUT();
   3784 }
   3785 
   3786 void sub_361670D0(void) {
   3787     int _fpu_cmp = 0;
   3788     uint32_t _cf = 0;
   3789     int _df = 1;
   3790     uint32_t _flag_k = FK_NONE;
   3791     uint32_t _flag_a = 0, _flag_b = 0;
   3792     uint32_t _itail_tgt = 0;
   3793     RECOMP_REGS_LOCALS
   3794     RECOMP_ENTER(0x361670D0u);
   3795 
   3796     goto L_361670D0;
   3797 L_360AF170:
   3798     MEM32(ecx) = 0x36174A1Cu; /* 0x360AF170: mov dword ptr [ecx], 0x36174a1c */
   3799     MEM32(ecx + 0x20) = 0x36174A00u; /* 0x360AF176: mov dword ptr [ecx + 0x20], 0x36174a00 */
   3800     goto L_360B0F30; /* 0x360AF17D: jmp 0x360b0f30 */
   3801 L_360B0F30:
   3802     PUSH32(esp, ebp); /* 0x360B0F30: push ebp */
   3803     ebp = esp; /* 0x360B0F31: mov ebp, esp */
   3804     PUSH32(esp, ecx); /* 0x360B0F33: push ecx */
   3805     PUSH32(esp, edi); /* 0x360B0F34: push edi */
   3806     edi = MEM32(ecx + 0x7C); /* 0x360B0F35: mov edi, dword ptr [ecx + 0x7c] */
   3807     /* test edi, edi */ /* 0x360B0F38: test edi, edi */
   3808     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3809     _cf = 0;
   3810     _flag_k = FK_TEST;
   3811     MEM32(ebp + (-0x4)) = ecx; /* 0x360B0F3A: mov dword ptr [ebp - 4], ecx */
   3812     MEM32(ecx) = 0x36174B94u; /* 0x360B0F3D: mov dword ptr [ecx], 0x36174b94 */
   3813     MEM32(ecx + 0x20) = 0x36174B78u; /* 0x360B0F43: mov dword ptr [ecx + 0x20], 0x36174b78 */
   3814     if (TEST_Z(_flag_a, _flag_b)) goto L_360B0F9D; /* 0x360B0F4A: je 0x360b0f9d */
   3815 L_360B0F4C:
   3816     PUSH32(esp, ebx); /* 0x360B0F4C: push ebx */
   3817     ebx = MEM32(edi + 0x4); /* 0x360B0F4D: mov ebx, dword ptr [edi + 4] */
   3818     PUSH32(esp, esi); /* 0x360B0F50: push esi */
   3819     esi = MEM32(ebx); /* 0x360B0F51: mov esi, dword ptr [ebx] */
   3820     /* cmp esi, ebx */ /* 0x360B0F53: cmp esi, ebx */
   3821     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3823     _flag_k = FK_CMP;
   3824     if (CMP_EQ(_flag_a, _flag_b)) goto L_360B0F7E; /* 0x360B0F55: je 0x360b0f7e */
   3825 L_360B0F57:
   3826     eax = esi; /* 0x360B0F57: mov eax, esi */
   3827     ecx = MEM32(eax + 0x4); /* 0x360B0F59: mov ecx, dword ptr [eax + 4] */
   3828     edx = MEM32(eax); /* 0x360B0F5C: mov edx, dword ptr [eax] */
   3829     esi = MEM32(esi); /* 0x360B0F5E: mov esi, dword ptr [esi] */
   3830     MEM32(ecx) = edx; /* 0x360B0F60: mov dword ptr [ecx], edx */
   3831     ecx = MEM32(eax); /* 0x360B0F62: mov ecx, dword ptr [eax] */
   3832     edx = MEM32(eax + 0x4); /* 0x360B0F64: mov edx, dword ptr [eax + 4] */
   3833     PUSH32(esp, eax); /* 0x360B0F67: push eax */
   3834     MEM32(ecx + 0x4) = edx; /* 0x360B0F68: mov dword ptr [ecx + 4], edx */
   3835     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F6B: call 0x3615fcc4 */ /* not lifted */
   3836     RECOMP_FLAGS_IN();
   3837     ecx = MEM32(edi + 0x8); /* 0x360B0F70: mov ecx, dword ptr [edi + 8] */
   3838     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3839     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3840     esp = esp + 4; /* 0x360B0F73: add esp, 4 */
   3841     _flag_k = FK_ADD;
   3842     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3843     ecx = ecx - 1; /* 0x360B0F76: dec ecx */
   3844     _flag_k = FK_DEC;
   3845     /* cmp esi, ebx */ /* 0x360B0F77: cmp esi, ebx */
   3846     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   3847     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3848     _flag_k = FK_CMP;
   3849     MEM32(edi + 0x8) = ecx; /* 0x360B0F79: mov dword ptr [edi + 8], ecx */
   3850     RECOMP_BACKEDGE();
   3851     if (CMP_NE(_flag_a, _flag_b)) goto L_360B0F57; /* 0x360B0F7C: jne 0x360b0f57 */
   3852 L_360B0F7E:
   3853     eax = MEM32(edi + 0x4); /* 0x360B0F7E: mov eax, dword ptr [edi + 4] */
   3854     PUSH32(esp, eax); /* 0x360B0F81: push eax */
   3855     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F82: call 0x3615fcc4 */ /* not lifted */
   3856     RECOMP_FLAGS_IN();
   3857     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3858     eax = 0; /* 0x360B0F87: xor eax, eax */
   3859     _cf = 0;
   3860     _flag_k = FK_TEST;
   3861     PUSH32(esp, edi); /* 0x360B0F89: push edi */
   3862     MEM32(edi + 0x4) = eax; /* 0x360B0F8A: mov dword ptr [edi + 4], eax */
   3863     MEM32(edi + 0x8) = eax; /* 0x360B0F8D: mov dword ptr [edi + 8], eax */
   3864     RECOMP_ICALL(0x3615FCC4u); /* 0x360B0F90: call 0x3615fcc4 */ /* not lifted */
   3865     RECOMP_FLAGS_IN();
   3866     ecx = MEM32(ebp + (-0x4)); /* 0x360B0F95: mov ecx, dword ptr [ebp - 4] */
   3867     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3868     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3869     esp = esp + 8; /* 0x360B0F98: add esp, 8 */
   3870     _flag_k = FK_ADD;
   3871     esi = POP32_VAL(esp); /* 0x360B0F9B: pop esi */
   3872     ebx = POP32_VAL(esp); /* 0x360B0F9C: pop ebx */
   3873 L_360B0F9D:
   3874     RECOMP_ICALL(0x360B2340u); /* 0x360B0F9D: call 0x360b2340 */ /* not lifted */
   3875     RECOMP_FLAGS_IN();
   3876     edi = POP32_VAL(esp); /* 0x360B0FA2: pop edi */
   3877     esp = ebp; /* 0x360B0FA3: mov esp, ebp */
   3878     ebp = POP32_VAL(esp); /* 0x360B0FA5: pop ebp */
   3879     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360B0FA6: ret  */
   3880 L_361670D0:
   3881     ecx = MEM32(ebp + (-0x10)); /* 0x361670D0: mov ecx, dword ptr [ebp - 0x10] */
   3882     RECOMP_BACKEDGE();
   3883     goto L_360AF170; /* 0x361670D3: jmp 0x360af170 */
   3884     { RECOMP_REGS_OUT(); return; } /* end of function */
   3885     RECOMP_REGS_OUT();
   3886 }
   3887 
   3888 void sub_361670D8(void) {
   3889     int _fpu_cmp = 0;
   3890     uint32_t _cf = 0;
   3891     int _df = 1;
   3892     uint32_t _flag_k = FK_NONE;
   3893     uint32_t _flag_a = 0, _flag_b = 0;
   3894     uint32_t _itail_tgt = 0;
   3895     RECOMP_REGS_LOCALS
   3896     RECOMP_ENTER(0x361670D8u);
   3897 
   3898     goto L_361670D8;
   3899 L_3615FD76:
   3900     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3901 L_361670D8:
   3902     eax = 0x3618C3F0u; /* 0x361670D8: mov eax, 0x3618c3f0 */
   3903 L_361670DD:
   3904     RECOMP_BACKEDGE();
   3905     goto L_3615FD76; /* 0x361670DD: jmp 0x3615fd76 */
   3906     { RECOMP_REGS_OUT(); return; } /* end of function */
   3907   _ljump:
   3908     switch (_itail_tgt) {
   3909       case 0x3615FD76u: goto L_3615FD76;
   3910       case 0x361670D8u: goto L_361670D8;
   3911       case 0x361670DDu: goto L_361670DD;
   3912       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3913     }
   3914     RECOMP_REGS_OUT();
   3915 }
   3916 
   3917 void sub_361670F0(void) {
   3918     int _fpu_cmp = 0;
   3919     uint32_t _cf = 0;
   3920     int _df = 1;
   3921     uint32_t _flag_k = FK_NONE;
   3922     uint32_t _flag_a = 0, _flag_b = 0;
   3923     uint32_t _itail_tgt = 0;
   3924     RECOMP_REGS_LOCALS
   3925     RECOMP_ENTER(0x361670F0u);
   3926 
   3927 L_361670F0:
   3928     eax = MEM32(ebp + (-0x10)); /* 0x361670F0: mov eax, dword ptr [ebp - 0x10] */
   3929     PUSH32(esp, eax); /* 0x361670F3: push eax */
   3930     RECOMP_ICALL(0x3615FCC4u); /* 0x361670F4: call 0x3615fcc4 */ /* not lifted */
   3931     RECOMP_FLAGS_IN();
   3932     ecx = POP32_VAL(esp); /* 0x361670F9: pop ecx */
   3933     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361670FA: ret  */
   3934     RECOMP_REGS_OUT();
   3935 }
   3936 
   3937 void sub_361670FB(void) {
   3938     int _fpu_cmp = 0;
   3939     uint32_t _cf = 0;
   3940     int _df = 1;
   3941     uint32_t _flag_k = FK_NONE;
   3942     uint32_t _flag_a = 0, _flag_b = 0;
   3943     uint32_t _itail_tgt = 0;
   3944     RECOMP_REGS_LOCALS
   3945     RECOMP_ENTER(0x361670FBu);
   3946 
   3947     goto L_361670FB;
   3948 L_3615FD76:
   3949     { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; }
   3950 L_361670FB:
   3951     eax = 0x3618C418u; /* 0x361670FB: mov eax, 0x3618c418 */
   3952 L_36167100:
   3953     RECOMP_BACKEDGE();
   3954     goto L_3615FD76; /* 0x36167100: jmp 0x3615fd76 */
   3955     { RECOMP_REGS_OUT(); return; } /* end of function */
   3956   _ljump:
   3957     switch (_itail_tgt) {
   3958       case 0x3615FD76u: goto L_3615FD76;
   3959       case 0x361670FBu: goto L_361670FB;
   3960       case 0x36167100u: goto L_36167100;
   3961       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3962     }
   3963     RECOMP_REGS_OUT();
   3964 }