aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0030.c (616873B)


      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_360637E0(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(0x360637E0u);
     17 
     18 L_360637E0:
     19     MEM32(0x363067DC) = 0x361B3100u; /* 0x360637E0: mov dword ptr [0x363067dc], 0x361b3100 */
     20     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360637EA: ret  */
     21     RECOMP_REGS_OUT();
     22 }
     23 
     24 void sub_360637F0(void) {
     25     int _fpu_cmp = 0;
     26     uint32_t _cf = 0;
     27     int _df = 1;
     28     uint32_t _flag_k = FK_NONE;
     29     uint32_t _flag_a = 0, _flag_b = 0;
     30     uint32_t _itail_tgt = 0;
     31     RECOMP_REGS_LOCALS
     32     RECOMP_ENTER(0x360637F0u);
     33 
     34 L_360637F0:
     35     goto L_36063800; /* 0x360637F0: jmp 0x36063800 */
     36 L_36063800:
     37     MEM32(0x363067D8) = 0x361B3138u; /* 0x36063800: mov dword ptr [0x363067d8], 0x361b3138 */
     38     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606380A: ret  */
     39     RECOMP_REGS_OUT();
     40 }
     41 
     42 void sub_36063800(void) {
     43     int _fpu_cmp = 0;
     44     uint32_t _cf = 0;
     45     int _df = 1;
     46     uint32_t _flag_k = FK_NONE;
     47     uint32_t _flag_a = 0, _flag_b = 0;
     48     uint32_t _itail_tgt = 0;
     49     RECOMP_REGS_LOCALS
     50     RECOMP_ENTER(0x36063800u);
     51 
     52 L_36063800:
     53     MEM32(0x363067D8) = 0x361B3138u; /* 0x36063800: mov dword ptr [0x363067d8], 0x361b3138 */
     54     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606380A: ret  */
     55     RECOMP_REGS_OUT();
     56 }
     57 
     58 void sub_36063810(void) {
     59     int _fpu_cmp = 0;
     60     uint32_t _cf = 0;
     61     int _df = 1;
     62     uint32_t _flag_k = FK_NONE;
     63     uint32_t _flag_a = 0, _flag_b = 0;
     64     uint32_t _itail_tgt = 0;
     65     RECOMP_REGS_LOCALS
     66     RECOMP_ENTER(0x36063810u);
     67 
     68 L_36063810:
     69     goto L_36063820; /* 0x36063810: jmp 0x36063820 */
     70 L_36063820:
     71     MEM32(0x363067D4) = 0x361B57A8u; /* 0x36063820: mov dword ptr [0x363067d4], 0x361b57a8 */
     72     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606382A: ret  */
     73     RECOMP_REGS_OUT();
     74 }
     75 
     76 void sub_36063820(void) {
     77     int _fpu_cmp = 0;
     78     uint32_t _cf = 0;
     79     int _df = 1;
     80     uint32_t _flag_k = FK_NONE;
     81     uint32_t _flag_a = 0, _flag_b = 0;
     82     uint32_t _itail_tgt = 0;
     83     RECOMP_REGS_LOCALS
     84     RECOMP_ENTER(0x36063820u);
     85 
     86 L_36063820:
     87     MEM32(0x363067D4) = 0x361B57A8u; /* 0x36063820: mov dword ptr [0x363067d4], 0x361b57a8 */
     88     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606382A: ret  */
     89     RECOMP_REGS_OUT();
     90 }
     91 
     92 void sub_36063830(void) {
     93     int _fpu_cmp = 0;
     94     uint32_t _cf = 0;
     95     int _df = 1;
     96     uint32_t _flag_k = FK_NONE;
     97     uint32_t _flag_a = 0, _flag_b = 0;
     98     uint32_t _itail_tgt = 0;
     99     RECOMP_REGS_LOCALS
    100     RECOMP_ENTER(0x36063830u);
    101 
    102 L_36063830:
    103     goto L_36063840; /* 0x36063830: jmp 0x36063840 */
    104 L_36063840:
    105     MEM32(0x363067D0) = 0x361B57E0u; /* 0x36063840: mov dword ptr [0x363067d0], 0x361b57e0 */
    106     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606384A: ret  */
    107     RECOMP_REGS_OUT();
    108 }
    109 
    110 void sub_36063840(void) {
    111     int _fpu_cmp = 0;
    112     uint32_t _cf = 0;
    113     int _df = 1;
    114     uint32_t _flag_k = FK_NONE;
    115     uint32_t _flag_a = 0, _flag_b = 0;
    116     uint32_t _itail_tgt = 0;
    117     RECOMP_REGS_LOCALS
    118     RECOMP_ENTER(0x36063840u);
    119 
    120 L_36063840:
    121     MEM32(0x363067D0) = 0x361B57E0u; /* 0x36063840: mov dword ptr [0x363067d0], 0x361b57e0 */
    122     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606384A: ret  */
    123     RECOMP_REGS_OUT();
    124 }
    125 
    126 void sub_36063850(void) {
    127     int _fpu_cmp = 0;
    128     uint32_t _cf = 0;
    129     int _df = 1;
    130     uint32_t _flag_k = FK_NONE;
    131     uint32_t _flag_a = 0, _flag_b = 0;
    132     uint32_t _itail_tgt = 0;
    133     RECOMP_REGS_LOCALS
    134     RECOMP_ENTER(0x36063850u);
    135 
    136 L_36063850:
    137     goto L_36063860; /* 0x36063850: jmp 0x36063860 */
    138 L_36063860:
    139     MEM32(0x363067CC) = 0x361B5814u; /* 0x36063860: mov dword ptr [0x363067cc], 0x361b5814 */
    140     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606386A: ret  */
    141     RECOMP_REGS_OUT();
    142 }
    143 
    144 void sub_36063860(void) {
    145     int _fpu_cmp = 0;
    146     uint32_t _cf = 0;
    147     int _df = 1;
    148     uint32_t _flag_k = FK_NONE;
    149     uint32_t _flag_a = 0, _flag_b = 0;
    150     uint32_t _itail_tgt = 0;
    151     RECOMP_REGS_LOCALS
    152     RECOMP_ENTER(0x36063860u);
    153 
    154 L_36063860:
    155     MEM32(0x363067CC) = 0x361B5814u; /* 0x36063860: mov dword ptr [0x363067cc], 0x361b5814 */
    156     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606386A: ret  */
    157     RECOMP_REGS_OUT();
    158 }
    159 
    160 void sub_36063870(void) {
    161     int _fpu_cmp = 0;
    162     uint32_t _cf = 0;
    163     int _df = 1;
    164     uint32_t _flag_k = FK_NONE;
    165     uint32_t _flag_a = 0, _flag_b = 0;
    166     uint32_t _itail_tgt = 0;
    167     RECOMP_REGS_LOCALS
    168     RECOMP_ENTER(0x36063870u);
    169 
    170 L_36063870:
    171     goto L_36063880; /* 0x36063870: jmp 0x36063880 */
    172 L_36063880:
    173     MEM32(0x363067C8) = 0x361B5850u; /* 0x36063880: mov dword ptr [0x363067c8], 0x361b5850 */
    174     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606388A: ret  */
    175     RECOMP_REGS_OUT();
    176 }
    177 
    178 void sub_36063880(void) {
    179     int _fpu_cmp = 0;
    180     uint32_t _cf = 0;
    181     int _df = 1;
    182     uint32_t _flag_k = FK_NONE;
    183     uint32_t _flag_a = 0, _flag_b = 0;
    184     uint32_t _itail_tgt = 0;
    185     RECOMP_REGS_LOCALS
    186     RECOMP_ENTER(0x36063880u);
    187 
    188 L_36063880:
    189     MEM32(0x363067C8) = 0x361B5850u; /* 0x36063880: mov dword ptr [0x363067c8], 0x361b5850 */
    190     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606388A: ret  */
    191     RECOMP_REGS_OUT();
    192 }
    193 
    194 void sub_36063890(void) {
    195     int _fpu_cmp = 0;
    196     uint32_t _cf = 0;
    197     int _df = 1;
    198     uint32_t _flag_k = FK_NONE;
    199     uint32_t _flag_a = 0, _flag_b = 0;
    200     uint32_t _itail_tgt = 0;
    201     RECOMP_REGS_LOCALS
    202     RECOMP_ENTER(0x36063890u);
    203 
    204 L_36063890:
    205     goto L_360638A0; /* 0x36063890: jmp 0x360638a0 */
    206 L_360638A0:
    207     MEM32(0x363067C4) = 0x361B5888u; /* 0x360638A0: mov dword ptr [0x363067c4], 0x361b5888 */
    208     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360638AA: ret  */
    209     RECOMP_REGS_OUT();
    210 }
    211 
    212 void sub_360638A0(void) {
    213     int _fpu_cmp = 0;
    214     uint32_t _cf = 0;
    215     int _df = 1;
    216     uint32_t _flag_k = FK_NONE;
    217     uint32_t _flag_a = 0, _flag_b = 0;
    218     uint32_t _itail_tgt = 0;
    219     RECOMP_REGS_LOCALS
    220     RECOMP_ENTER(0x360638A0u);
    221 
    222 L_360638A0:
    223     MEM32(0x363067C4) = 0x361B5888u; /* 0x360638A0: mov dword ptr [0x363067c4], 0x361b5888 */
    224     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360638AA: ret  */
    225     RECOMP_REGS_OUT();
    226 }
    227 
    228 void sub_360638B0(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(0x360638B0u);
    237 
    238 L_360638B0:
    239     goto L_360638C0; /* 0x360638B0: jmp 0x360638c0 */
    240 L_360638C0:
    241     MEM32(0x363067C0) = 0x361B5908u; /* 0x360638C0: mov dword ptr [0x363067c0], 0x361b5908 */
    242     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360638CA: ret  */
    243     RECOMP_REGS_OUT();
    244 }
    245 
    246 void sub_360638C0(void) {
    247     int _fpu_cmp = 0;
    248     uint32_t _cf = 0;
    249     int _df = 1;
    250     uint32_t _flag_k = FK_NONE;
    251     uint32_t _flag_a = 0, _flag_b = 0;
    252     uint32_t _itail_tgt = 0;
    253     RECOMP_REGS_LOCALS
    254     RECOMP_ENTER(0x360638C0u);
    255 
    256 L_360638C0:
    257     MEM32(0x363067C0) = 0x361B5908u; /* 0x360638C0: mov dword ptr [0x363067c0], 0x361b5908 */
    258     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360638CA: ret  */
    259     RECOMP_REGS_OUT();
    260 }
    261 
    262 void sub_360638D0(void) {
    263     int _fpu_cmp = 0;
    264     uint32_t _cf = 0;
    265     int _df = 1;
    266     uint32_t _flag_k = FK_NONE;
    267     uint32_t _flag_a = 0, _flag_b = 0;
    268     uint32_t _itail_tgt = 0;
    269     RECOMP_REGS_LOCALS
    270     RECOMP_ENTER(0x360638D0u);
    271 
    272 L_360638D0:
    273     goto L_360638E0; /* 0x360638D0: jmp 0x360638e0 */
    274 L_360638E0:
    275     MEM32(0x363067BC) = 0x361B5944u; /* 0x360638E0: mov dword ptr [0x363067bc], 0x361b5944 */
    276     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360638EA: ret  */
    277     RECOMP_REGS_OUT();
    278 }
    279 
    280 void sub_360638E0(void) {
    281     int _fpu_cmp = 0;
    282     uint32_t _cf = 0;
    283     int _df = 1;
    284     uint32_t _flag_k = FK_NONE;
    285     uint32_t _flag_a = 0, _flag_b = 0;
    286     uint32_t _itail_tgt = 0;
    287     RECOMP_REGS_LOCALS
    288     RECOMP_ENTER(0x360638E0u);
    289 
    290 L_360638E0:
    291     MEM32(0x363067BC) = 0x361B5944u; /* 0x360638E0: mov dword ptr [0x363067bc], 0x361b5944 */
    292     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360638EA: ret  */
    293     RECOMP_REGS_OUT();
    294 }
    295 
    296 void sub_360638F0(void) {
    297     int _fpu_cmp = 0;
    298     uint32_t _cf = 0;
    299     int _df = 1;
    300     uint32_t _flag_k = FK_NONE;
    301     uint32_t _flag_a = 0, _flag_b = 0;
    302     uint32_t _itail_tgt = 0;
    303     RECOMP_REGS_LOCALS
    304     RECOMP_ENTER(0x360638F0u);
    305 
    306 L_360638F0:
    307     goto L_36063900; /* 0x360638F0: jmp 0x36063900 */
    308 L_36063900:
    309     MEM32(0x363067B8) = 0x361B5978u; /* 0x36063900: mov dword ptr [0x363067b8], 0x361b5978 */
    310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606390A: ret  */
    311     RECOMP_REGS_OUT();
    312 }
    313 
    314 void sub_36063900(void) {
    315     int _fpu_cmp = 0;
    316     uint32_t _cf = 0;
    317     int _df = 1;
    318     uint32_t _flag_k = FK_NONE;
    319     uint32_t _flag_a = 0, _flag_b = 0;
    320     uint32_t _itail_tgt = 0;
    321     RECOMP_REGS_LOCALS
    322     RECOMP_ENTER(0x36063900u);
    323 
    324 L_36063900:
    325     MEM32(0x363067B8) = 0x361B5978u; /* 0x36063900: mov dword ptr [0x363067b8], 0x361b5978 */
    326     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606390A: ret  */
    327     RECOMP_REGS_OUT();
    328 }
    329 
    330 void sub_36063910(void) {
    331     int _fpu_cmp = 0;
    332     uint32_t _cf = 0;
    333     int _df = 1;
    334     uint32_t _flag_k = FK_NONE;
    335     uint32_t _flag_a = 0, _flag_b = 0;
    336     uint32_t _itail_tgt = 0;
    337     RECOMP_REGS_LOCALS
    338     RECOMP_ENTER(0x36063910u);
    339 
    340 L_36063910:
    341     goto L_36063920; /* 0x36063910: jmp 0x36063920 */
    342 L_36063920:
    343     MEM32(0x363067B4) = 0x361B59ACu; /* 0x36063920: mov dword ptr [0x363067b4], 0x361b59ac */
    344     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606392A: ret  */
    345     RECOMP_REGS_OUT();
    346 }
    347 
    348 void sub_36063920(void) {
    349     int _fpu_cmp = 0;
    350     uint32_t _cf = 0;
    351     int _df = 1;
    352     uint32_t _flag_k = FK_NONE;
    353     uint32_t _flag_a = 0, _flag_b = 0;
    354     uint32_t _itail_tgt = 0;
    355     RECOMP_REGS_LOCALS
    356     RECOMP_ENTER(0x36063920u);
    357 
    358 L_36063920:
    359     MEM32(0x363067B4) = 0x361B59ACu; /* 0x36063920: mov dword ptr [0x363067b4], 0x361b59ac */
    360     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606392A: ret  */
    361     RECOMP_REGS_OUT();
    362 }
    363 
    364 void sub_36063930(void) {
    365     int _fpu_cmp = 0;
    366     uint32_t _cf = 0;
    367     int _df = 1;
    368     uint32_t _flag_k = FK_NONE;
    369     uint32_t _flag_a = 0, _flag_b = 0;
    370     uint32_t _itail_tgt = 0;
    371     RECOMP_REGS_LOCALS
    372     RECOMP_ENTER(0x36063930u);
    373 
    374 L_36063930:
    375     RECOMP_ICALL(0x36063940u); /* 0x36063930: call 0x36063940 */ /* not lifted */
    376     RECOMP_FLAGS_IN();
    377     goto L_36063960; /* 0x36063935: jmp 0x36063960 */
    378 L_36063960:
    379     PUSH32(esp, 0x36063970u); /* 0x36063960: push 0x36063970 */
    380     RECOMP_ICALL(0x3615FEB2u); /* 0x36063965: call 0x3615feb2 */ /* not lifted */
    381     RECOMP_FLAGS_IN();
    382     ecx = POP32_VAL(esp); /* 0x3606396A: pop ecx */
    383     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606396B: ret  */
    384     RECOMP_REGS_OUT();
    385 }
    386 
    387 void sub_36063940(void) {
    388     int _fpu_cmp = 0;
    389     uint32_t _cf = 0;
    390     int _df = 1;
    391     uint32_t _flag_k = FK_NONE;
    392     uint32_t _flag_a = 0, _flag_b = 0;
    393     uint32_t _itail_tgt = 0;
    394     RECOMP_REGS_LOCALS
    395     RECOMP_ENTER(0x36063940u);
    396 
    397 L_36063940:
    398     PUSH32(esp, ebp); /* 0x36063940: push ebp */
    399     ebp = esp; /* 0x36063941: mov ebp, esp */
    400     PUSH32(esp, ecx); /* 0x36063943: push ecx */
    401     eax = ebp + (-0x1); /* 0x36063944: lea eax, [ebp - 1] */
    402     PUSH32(esp, eax); /* 0x36063947: push eax */
    403     ecx = ebp + (-0x2); /* 0x36063948: lea ecx, [ebp - 2] */
    404     PUSH32(esp, ecx); /* 0x3606394B: push ecx */
    405     ecx = 0x363067A0u; /* 0x3606394C: mov ecx, 0x363067a0 */
    406     RECOMP_ICALL(0x36096250u); /* 0x36063951: call 0x36096250 */ /* not lifted */
    407     RECOMP_FLAGS_IN();
    408     esp = ebp; /* 0x36063956: mov esp, ebp */
    409     ebp = POP32_VAL(esp); /* 0x36063958: pop ebp */
    410     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063959: ret  */
    411     RECOMP_REGS_OUT();
    412 }
    413 
    414 void sub_36063960(void) {
    415     int _fpu_cmp = 0;
    416     uint32_t _cf = 0;
    417     int _df = 1;
    418     uint32_t _flag_k = FK_NONE;
    419     uint32_t _flag_a = 0, _flag_b = 0;
    420     uint32_t _itail_tgt = 0;
    421     RECOMP_REGS_LOCALS
    422     RECOMP_ENTER(0x36063960u);
    423 
    424 L_36063960:
    425     PUSH32(esp, 0x36063970u); /* 0x36063960: push 0x36063970 */
    426     RECOMP_ICALL(0x3615FEB2u); /* 0x36063965: call 0x3615feb2 */ /* not lifted */
    427     RECOMP_FLAGS_IN();
    428     ecx = POP32_VAL(esp); /* 0x3606396A: pop ecx */
    429     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606396B: ret  */
    430     RECOMP_REGS_OUT();
    431 }
    432 
    433 void sub_36063970(void) {
    434     int _fpu_cmp = 0;
    435     uint32_t _cf = 0;
    436     int _df = 1;
    437     uint32_t _flag_k = FK_NONE;
    438     uint32_t _flag_a = 0, _flag_b = 0;
    439     uint32_t _itail_tgt = 0;
    440     RECOMP_REGS_LOCALS
    441     RECOMP_ENTER(0x36063970u);
    442 
    443 L_36063970:
    444     ecx = 0x363067A0u; /* 0x36063970: mov ecx, 0x363067a0 */
    445     goto L_36063980; /* 0x36063975: jmp 0x36063980 */
    446 L_36063980:
    447     PUSH32(esp, ebp); /* 0x36063980: push ebp */
    448     ebp = esp; /* 0x36063981: mov ebp, esp */
    449     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    450     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    451     esp = esp - 8; /* 0x36063983: sub esp, 8 */
    452     _flag_k = FK_CMP;
    453     PUSH32(esp, ebx); /* 0x36063986: push ebx */
    454     PUSH32(esp, esi); /* 0x36063987: push esi */
    455     esi = ecx; /* 0x36063988: mov esi, ecx */
    456     ecx = MEM32(esi + 0x10); /* 0x3606398A: mov ecx, dword ptr [esi + 0x10] */
    457     /* test ecx, ecx */ /* 0x3606398D: test ecx, ecx */
    458     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    459     _cf = 0;
    460     _flag_k = FK_TEST;
    461     PUSH32(esp, edi); /* 0x3606398F: push edi */
    462     edi = MEM32(esi + 0x4); /* 0x36063990: mov edi, dword ptr [esi + 4] */
    463     eax = MEM32(edi); /* 0x36063993: mov eax, dword ptr [edi] */
    464     MEM32(ebp + (-0x4)) = eax; /* 0x36063995: mov dword ptr [ebp - 4], eax */
    465     if (TEST_Z(_flag_a, _flag_b)) goto L_360639F5; /* 0x36063998: je 0x360639f5 */
    466 L_3606399A:
    467     ecx = eax; /* 0x3606399A: mov ecx, eax */
    468     /* cmp eax, ecx */ /* 0x3606399C: cmp eax, ecx */
    469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    471     _flag_k = FK_CMP;
    472     if (CMP_NE(_flag_a, _flag_b)) goto L_360639F5; /* 0x3606399E: jne 0x360639f5 */
    473 L_360639A0:
    474     /* cmp edi, edi */ /* 0x360639A0: cmp edi, edi */
    475     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    477     _flag_k = FK_CMP;
    478     if (CMP_NE(_flag_a, _flag_b)) goto L_360639F5; /* 0x360639A2: jne 0x360639f5 */
    479 L_360639A4:
    480     ebx = MEM32(edi + 0x4); /* 0x360639A4: mov ebx, dword ptr [edi + 4] */
    481     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360639A7: cmp ebx, dword ptr [esi + 8] */
    482     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    484     _flag_k = FK_CMP;
    485     edi = ebx; /* 0x360639AA: mov edi, ebx */
    486     if (CMP_EQ(_flag_a, _flag_b)) goto L_360639CD; /* 0x360639AC: je 0x360639cd */
    487 L_360639AE:
    488     eax = MEM32(edi + 0x8); /* 0x360639AE: mov eax, dword ptr [edi + 8] */
    489     PUSH32(esp, eax); /* 0x360639B1: push eax */
    490     ecx = esi; /* 0x360639B2: mov ecx, esi */
    491     RECOMP_ICALL(0x36064190u); /* 0x360639B4: call 0x36064190 */ /* not lifted */
    492     RECOMP_FLAGS_IN();
    493     edi = MEM32(edi); /* 0x360639B9: mov edi, dword ptr [edi] */
    494     PUSH32(esp, ebx); /* 0x360639BB: push ebx */
    495     RECOMP_ICALL(0x3615FCC4u); /* 0x360639BC: call 0x3615fcc4 */ /* not lifted */
    496     RECOMP_FLAGS_IN();
    497     eax = MEM32(esi + 0x8); /* 0x360639C1: mov eax, dword ptr [esi + 8] */
    498     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    499     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    500     esp = esp + 4; /* 0x360639C4: add esp, 4 */
    501     _flag_k = FK_ADD;
    502     /* cmp edi, eax */ /* 0x360639C7: cmp edi, eax */
    503     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    504     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    505     _flag_k = FK_CMP;
    506     ebx = edi; /* 0x360639C9: mov ebx, edi */
    507     RECOMP_BACKEDGE();
    508     if (CMP_NE(_flag_a, _flag_b)) goto L_360639AE; /* 0x360639CB: jne 0x360639ae */
    509 L_360639CD:
    510     ecx = MEM32(esi + 0x4); /* 0x360639CD: mov ecx, dword ptr [esi + 4] */
    511     edx = MEM32(esi + 0x8); /* 0x360639D0: mov edx, dword ptr [esi + 8] */
    512     MEM32(ecx + 0x4) = edx; /* 0x360639D3: mov dword ptr [ecx + 4], edx */
    513     eax = MEM32(esi + 0x4); /* 0x360639D6: mov eax, dword ptr [esi + 4] */
    514     MEM32(esi + 0x10) = 0; /* 0x360639D9: mov dword ptr [esi + 0x10], 0 */
    515     MEM32(eax) = eax; /* 0x360639E0: mov dword ptr [eax], eax */
    516     eax = MEM32(esi + 0x4); /* 0x360639E2: mov eax, dword ptr [esi + 4] */
    517     MEM32(eax + 0x8) = eax; /* 0x360639E5: mov dword ptr [eax + 8], eax */
    518     eax = ebp + (-0x8); /* 0x360639E8: lea eax, [ebp - 8] */
    519     PUSH32(esp, eax); /* 0x360639EB: push eax */
    520     ecx = esi; /* 0x360639EC: mov ecx, esi */
    521     RECOMP_ICALL(0x3614FC30u); /* 0x360639EE: call 0x3614fc30 */ /* not lifted */
    522     RECOMP_FLAGS_IN();
    523     goto L_36063A16; /* 0x360639F3: jmp 0x36063a16 */
    524 L_360639F5:
    525     /* cmp eax, edi */ /* 0x360639F5: cmp eax, edi */
    526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    528     _flag_k = FK_CMP;
    529     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063A16; /* 0x360639F7: je 0x36063a16 */
    530 L_360639F9:
    531     ecx = ebp + (-0x4); /* 0x360639F9: lea ecx, [ebp - 4] */
    532     ebx = eax; /* 0x360639FC: mov ebx, eax */
    533     RECOMP_ICALL(0x36064140u); /* 0x360639FE: call 0x36064140 */ /* not lifted */
    534     RECOMP_FLAGS_IN();
    535     PUSH32(esp, ebx); /* 0x36063A03: push ebx */
    536     ecx = ebp + (-0x8); /* 0x36063A04: lea ecx, [ebp - 8] */
    537     PUSH32(esp, ecx); /* 0x36063A07: push ecx */
    538     ecx = esi; /* 0x36063A08: mov ecx, esi */
    539     RECOMP_ICALL(0x360588E0u); /* 0x36063A0A: call 0x360588e0 */ /* not lifted */
    540     RECOMP_FLAGS_IN();
    541     eax = MEM32(ebp + (-0x4)); /* 0x36063A0F: mov eax, dword ptr [ebp - 4] */
    542     /* cmp eax, edi */ /* 0x36063A12: cmp eax, edi */
    543     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    545     _flag_k = FK_CMP;
    546     RECOMP_BACKEDGE();
    547     if (CMP_NE(_flag_a, _flag_b)) goto L_360639F9; /* 0x36063A14: jne 0x360639f9 */
    548 L_36063A16:
    549     edx = MEM32(esi + 0x4); /* 0x36063A16: mov edx, dword ptr [esi + 4] */
    550     PUSH32(esp, edx); /* 0x36063A19: push edx */
    551     RECOMP_ICALL(0x3615FCC4u); /* 0x36063A1A: call 0x3615fcc4 */ /* not lifted */
    552     RECOMP_FLAGS_IN();
    553     eax = MEM32(esi + 0x8); /* 0x36063A1F: mov eax, dword ptr [esi + 8] */
    554     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    555     edi = 0; /* 0x36063A22: xor edi, edi */
    556     _cf = 0;
    557     _flag_k = FK_TEST;
    558     PUSH32(esp, eax); /* 0x36063A24: push eax */
    559     MEM32(esi + 0x4) = edi; /* 0x36063A25: mov dword ptr [esi + 4], edi */
    560     MEM32(esi + 0x10) = edi; /* 0x36063A28: mov dword ptr [esi + 0x10], edi */
    561     RECOMP_ICALL(0x3615FCC4u); /* 0x36063A2B: call 0x3615fcc4 */ /* not lifted */
    562     RECOMP_FLAGS_IN();
    563     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    564     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    565     esp = esp + 8; /* 0x36063A30: add esp, 8 */
    566     _flag_k = FK_ADD;
    567     MEM32(esi + 0x8) = edi; /* 0x36063A33: mov dword ptr [esi + 8], edi */
    568     edi = POP32_VAL(esp); /* 0x36063A36: pop edi */
    569     esi = POP32_VAL(esp); /* 0x36063A37: pop esi */
    570     ebx = POP32_VAL(esp); /* 0x36063A38: pop ebx */
    571     esp = ebp; /* 0x36063A39: mov esp, ebp */
    572     ebp = POP32_VAL(esp); /* 0x36063A3B: pop ebp */
    573     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063A3C: ret  */
    574     RECOMP_REGS_OUT();
    575 }
    576 
    577 void sub_36063980(void) {
    578     int _fpu_cmp = 0;
    579     uint32_t _cf = 0;
    580     int _df = 1;
    581     uint32_t _flag_k = FK_NONE;
    582     uint32_t _flag_a = 0, _flag_b = 0;
    583     uint32_t _itail_tgt = 0;
    584     RECOMP_REGS_LOCALS
    585     RECOMP_ENTER(0x36063980u);
    586 
    587 L_36063980:
    588     PUSH32(esp, ebp); /* 0x36063980: push ebp */
    589     ebp = esp; /* 0x36063981: mov ebp, esp */
    590     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    591     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    592     esp = esp - 8; /* 0x36063983: sub esp, 8 */
    593     _flag_k = FK_CMP;
    594     PUSH32(esp, ebx); /* 0x36063986: push ebx */
    595     PUSH32(esp, esi); /* 0x36063987: push esi */
    596     esi = ecx; /* 0x36063988: mov esi, ecx */
    597     ecx = MEM32(esi + 0x10); /* 0x3606398A: mov ecx, dword ptr [esi + 0x10] */
    598     /* test ecx, ecx */ /* 0x3606398D: test ecx, ecx */
    599     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    600     _cf = 0;
    601     _flag_k = FK_TEST;
    602     PUSH32(esp, edi); /* 0x3606398F: push edi */
    603     edi = MEM32(esi + 0x4); /* 0x36063990: mov edi, dword ptr [esi + 4] */
    604     eax = MEM32(edi); /* 0x36063993: mov eax, dword ptr [edi] */
    605     MEM32(ebp + (-0x4)) = eax; /* 0x36063995: mov dword ptr [ebp - 4], eax */
    606     if (TEST_Z(_flag_a, _flag_b)) goto L_360639F5; /* 0x36063998: je 0x360639f5 */
    607 L_3606399A:
    608     ecx = eax; /* 0x3606399A: mov ecx, eax */
    609     /* cmp eax, ecx */ /* 0x3606399C: cmp eax, ecx */
    610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    612     _flag_k = FK_CMP;
    613     if (CMP_NE(_flag_a, _flag_b)) goto L_360639F5; /* 0x3606399E: jne 0x360639f5 */
    614 L_360639A0:
    615     /* cmp edi, edi */ /* 0x360639A0: cmp edi, edi */
    616     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    618     _flag_k = FK_CMP;
    619     if (CMP_NE(_flag_a, _flag_b)) goto L_360639F5; /* 0x360639A2: jne 0x360639f5 */
    620 L_360639A4:
    621     ebx = MEM32(edi + 0x4); /* 0x360639A4: mov ebx, dword ptr [edi + 4] */
    622     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360639A7: cmp ebx, dword ptr [esi + 8] */
    623     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    625     _flag_k = FK_CMP;
    626     edi = ebx; /* 0x360639AA: mov edi, ebx */
    627     if (CMP_EQ(_flag_a, _flag_b)) goto L_360639CD; /* 0x360639AC: je 0x360639cd */
    628 L_360639AE:
    629     eax = MEM32(edi + 0x8); /* 0x360639AE: mov eax, dword ptr [edi + 8] */
    630     PUSH32(esp, eax); /* 0x360639B1: push eax */
    631     ecx = esi; /* 0x360639B2: mov ecx, esi */
    632     RECOMP_ICALL(0x36064190u); /* 0x360639B4: call 0x36064190 */ /* not lifted */
    633     RECOMP_FLAGS_IN();
    634     edi = MEM32(edi); /* 0x360639B9: mov edi, dword ptr [edi] */
    635     PUSH32(esp, ebx); /* 0x360639BB: push ebx */
    636     RECOMP_ICALL(0x3615FCC4u); /* 0x360639BC: call 0x3615fcc4 */ /* not lifted */
    637     RECOMP_FLAGS_IN();
    638     eax = MEM32(esi + 0x8); /* 0x360639C1: mov eax, dword ptr [esi + 8] */
    639     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    640     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    641     esp = esp + 4; /* 0x360639C4: add esp, 4 */
    642     _flag_k = FK_ADD;
    643     /* cmp edi, eax */ /* 0x360639C7: cmp edi, eax */
    644     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    646     _flag_k = FK_CMP;
    647     ebx = edi; /* 0x360639C9: mov ebx, edi */
    648     RECOMP_BACKEDGE();
    649     if (CMP_NE(_flag_a, _flag_b)) goto L_360639AE; /* 0x360639CB: jne 0x360639ae */
    650 L_360639CD:
    651     ecx = MEM32(esi + 0x4); /* 0x360639CD: mov ecx, dword ptr [esi + 4] */
    652     edx = MEM32(esi + 0x8); /* 0x360639D0: mov edx, dword ptr [esi + 8] */
    653     MEM32(ecx + 0x4) = edx; /* 0x360639D3: mov dword ptr [ecx + 4], edx */
    654     eax = MEM32(esi + 0x4); /* 0x360639D6: mov eax, dword ptr [esi + 4] */
    655     MEM32(esi + 0x10) = 0; /* 0x360639D9: mov dword ptr [esi + 0x10], 0 */
    656     MEM32(eax) = eax; /* 0x360639E0: mov dword ptr [eax], eax */
    657     eax = MEM32(esi + 0x4); /* 0x360639E2: mov eax, dword ptr [esi + 4] */
    658     MEM32(eax + 0x8) = eax; /* 0x360639E5: mov dword ptr [eax + 8], eax */
    659     eax = ebp + (-0x8); /* 0x360639E8: lea eax, [ebp - 8] */
    660     PUSH32(esp, eax); /* 0x360639EB: push eax */
    661     ecx = esi; /* 0x360639EC: mov ecx, esi */
    662     RECOMP_ICALL(0x3614FC30u); /* 0x360639EE: call 0x3614fc30 */ /* not lifted */
    663     RECOMP_FLAGS_IN();
    664     goto L_36063A16; /* 0x360639F3: jmp 0x36063a16 */
    665 L_360639F5:
    666     /* cmp eax, edi */ /* 0x360639F5: cmp eax, edi */
    667     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    669     _flag_k = FK_CMP;
    670     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063A16; /* 0x360639F7: je 0x36063a16 */
    671 L_360639F9:
    672     ecx = ebp + (-0x4); /* 0x360639F9: lea ecx, [ebp - 4] */
    673     ebx = eax; /* 0x360639FC: mov ebx, eax */
    674     RECOMP_ICALL(0x36064140u); /* 0x360639FE: call 0x36064140 */ /* not lifted */
    675     RECOMP_FLAGS_IN();
    676     PUSH32(esp, ebx); /* 0x36063A03: push ebx */
    677     ecx = ebp + (-0x8); /* 0x36063A04: lea ecx, [ebp - 8] */
    678     PUSH32(esp, ecx); /* 0x36063A07: push ecx */
    679     ecx = esi; /* 0x36063A08: mov ecx, esi */
    680     RECOMP_ICALL(0x360588E0u); /* 0x36063A0A: call 0x360588e0 */ /* not lifted */
    681     RECOMP_FLAGS_IN();
    682     eax = MEM32(ebp + (-0x4)); /* 0x36063A0F: mov eax, dword ptr [ebp - 4] */
    683     /* cmp eax, edi */ /* 0x36063A12: cmp eax, edi */
    684     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    685     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    686     _flag_k = FK_CMP;
    687     RECOMP_BACKEDGE();
    688     if (CMP_NE(_flag_a, _flag_b)) goto L_360639F9; /* 0x36063A14: jne 0x360639f9 */
    689 L_36063A16:
    690     edx = MEM32(esi + 0x4); /* 0x36063A16: mov edx, dword ptr [esi + 4] */
    691     PUSH32(esp, edx); /* 0x36063A19: push edx */
    692     RECOMP_ICALL(0x3615FCC4u); /* 0x36063A1A: call 0x3615fcc4 */ /* not lifted */
    693     RECOMP_FLAGS_IN();
    694     eax = MEM32(esi + 0x8); /* 0x36063A1F: mov eax, dword ptr [esi + 8] */
    695     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    696     edi = 0; /* 0x36063A22: xor edi, edi */
    697     _cf = 0;
    698     _flag_k = FK_TEST;
    699     PUSH32(esp, eax); /* 0x36063A24: push eax */
    700     MEM32(esi + 0x4) = edi; /* 0x36063A25: mov dword ptr [esi + 4], edi */
    701     MEM32(esi + 0x10) = edi; /* 0x36063A28: mov dword ptr [esi + 0x10], edi */
    702     RECOMP_ICALL(0x3615FCC4u); /* 0x36063A2B: call 0x3615fcc4 */ /* not lifted */
    703     RECOMP_FLAGS_IN();
    704     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    705     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    706     esp = esp + 8; /* 0x36063A30: add esp, 8 */
    707     _flag_k = FK_ADD;
    708     MEM32(esi + 0x8) = edi; /* 0x36063A33: mov dword ptr [esi + 8], edi */
    709     edi = POP32_VAL(esp); /* 0x36063A36: pop edi */
    710     esi = POP32_VAL(esp); /* 0x36063A37: pop esi */
    711     ebx = POP32_VAL(esp); /* 0x36063A38: pop ebx */
    712     esp = ebp; /* 0x36063A39: mov esp, ebp */
    713     ebp = POP32_VAL(esp); /* 0x36063A3B: pop ebp */
    714     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063A3C: ret  */
    715     RECOMP_REGS_OUT();
    716 }
    717 
    718 void sub_36063A16(void) {
    719     int _fpu_cmp = 0;
    720     uint32_t _cf = 0;
    721     int _df = 1;
    722     uint32_t _flag_k = FK_NONE;
    723     uint32_t _flag_a = 0, _flag_b = 0;
    724     uint32_t _itail_tgt = 0;
    725     RECOMP_REGS_LOCALS
    726     RECOMP_ENTER(0x36063A16u);
    727 
    728 L_36063A16:
    729     edx = MEM32(esi + 0x4); /* 0x36063A16: mov edx, dword ptr [esi + 4] */
    730     PUSH32(esp, edx); /* 0x36063A19: push edx */
    731     RECOMP_ICALL(0x3615FCC4u); /* 0x36063A1A: call 0x3615fcc4 */ /* not lifted */
    732     RECOMP_FLAGS_IN();
    733     eax = MEM32(esi + 0x8); /* 0x36063A1F: mov eax, dword ptr [esi + 8] */
    734     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    735     edi = 0; /* 0x36063A22: xor edi, edi */
    736     _cf = 0;
    737     _flag_k = FK_TEST;
    738     PUSH32(esp, eax); /* 0x36063A24: push eax */
    739     MEM32(esi + 0x4) = edi; /* 0x36063A25: mov dword ptr [esi + 4], edi */
    740     MEM32(esi + 0x10) = edi; /* 0x36063A28: mov dword ptr [esi + 0x10], edi */
    741     RECOMP_ICALL(0x3615FCC4u); /* 0x36063A2B: call 0x3615fcc4 */ /* not lifted */
    742     RECOMP_FLAGS_IN();
    743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    744     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    745     esp = esp + 8; /* 0x36063A30: add esp, 8 */
    746     _flag_k = FK_ADD;
    747     MEM32(esi + 0x8) = edi; /* 0x36063A33: mov dword ptr [esi + 8], edi */
    748     edi = POP32_VAL(esp); /* 0x36063A36: pop edi */
    749     esi = POP32_VAL(esp); /* 0x36063A37: pop esi */
    750     ebx = POP32_VAL(esp); /* 0x36063A38: pop ebx */
    751     esp = ebp; /* 0x36063A39: mov esp, ebp */
    752     ebp = POP32_VAL(esp); /* 0x36063A3B: pop ebp */
    753     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063A3C: ret  */
    754     RECOMP_REGS_OUT();
    755 }
    756 
    757 void sub_36063A40(void) {
    758     int _fpu_cmp = 0;
    759     uint32_t _cf = 0;
    760     int _df = 1;
    761     uint32_t _flag_k = FK_NONE;
    762     uint32_t _flag_a = 0, _flag_b = 0;
    763     uint32_t _itail_tgt = 0;
    764     RECOMP_REGS_LOCALS
    765     RECOMP_ENTER(0x36063A40u);
    766 
    767 L_36063A40:
    768     PUSH32(esp, ebp); /* 0x36063A40: push ebp */
    769     ebp = esp; /* 0x36063A41: mov ebp, esp */
    770     PUSH32(esp, 0xFFFFFFFFu); /* 0x36063A43: push -1 */
    771     PUSH32(esp, 0x36164A4Eu); /* 0x36063A45: push 0x36164a4e */
    772     eax = MEM32(FS_BASE + (0)); /* 0x36063A4A: mov eax, dword ptr fs:[0] */
    773     PUSH32(esp, eax); /* 0x36063A50: push eax */
    774     MEM32(FS_BASE + (0)) = esp; /* 0x36063A51: mov dword ptr fs:[0], esp */
    775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    777     esp = esp - 0xCu; /* 0x36063A58: sub esp, 0xc */
    778     _flag_k = FK_CMP;
    779     PUSH32(esp, ebx); /* 0x36063A5B: push ebx */
    780     PUSH32(esp, esi); /* 0x36063A5C: push esi */
    781     esi = ecx; /* 0x36063A5D: mov esi, ecx */
    782     PUSH32(esp, edi); /* 0x36063A5F: push edi */
    783     MEM32(ebp + (-0x14)) = esi; /* 0x36063A60: mov dword ptr [ebp - 0x14], esi */
    784     RECOMP_ICALL(0x3608A3D0u); /* 0x36063A63: call 0x3608a3d0 */ /* not lifted */
    785     RECOMP_FLAGS_IN();
    786     edi = esi + 0xC; /* 0x36063A68: lea edi, [esi + 0xc] */
    787     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    788     ebx = 0; /* 0x36063A6B: xor ebx, ebx */
    789     _cf = 0;
    790     _flag_k = FK_TEST;
    791     ecx = edi; /* 0x36063A6D: mov ecx, edi */
    792     MEM32(ebp + (-0x4)) = ebx; /* 0x36063A6F: mov dword ptr [ebp - 4], ebx */
    793     RECOMP_ICALL(0x3608AA50u); /* 0x36063A72: call 0x3608aa50 */ /* not lifted */
    794     RECOMP_FLAGS_IN();
    795     PUSH32(esp, 0x10u); /* 0x36063A77: push 0x10 */
    796     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36063A79: mov byte ptr [ebp - 4], 1 */
    797     MEM32(esi) = 0x3617117Cu; /* 0x36063A7D: mov dword ptr [esi], 0x3617117c */
    798     MEM32(edi) = 0x36171174u; /* 0x36063A83: mov dword ptr [edi], 0x36171174 */
    799     RECOMP_ICALL(0x3615FD6Au); /* 0x36063A89: call 0x3615fd6a */ /* not lifted */
    800     RECOMP_FLAGS_IN();
    801     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    802     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    803     esp = esp + 4; /* 0x36063A8E: add esp, 4 */
    804     _flag_k = FK_ADD;
    805     /* cmp eax, ebx */ /* 0x36063A91: cmp eax, ebx */
    806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    808     _flag_k = FK_CMP;
    809     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063AA5; /* 0x36063A93: je 0x36063aa5 */
    810 L_36063A95:
    811     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36063A95: mov cl, byte ptr [ebp - 0xd] */
    812     MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x36063A98: mov byte ptr [eax], cl */
    813     MEM32(eax + 0x4) = ebx; /* 0x36063A9A: mov dword ptr [eax + 4], ebx */
    814     MEM32(eax + 0x8) = ebx; /* 0x36063A9D: mov dword ptr [eax + 8], ebx */
    815     MEM32(eax + 0xC) = ebx; /* 0x36063AA0: mov dword ptr [eax + 0xc], ebx */
    816     goto L_36063AA7; /* 0x36063AA3: jmp 0x36063aa7 */
    817 L_36063AA5:
    818     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    819     eax = 0; /* 0x36063AA5: xor eax, eax */
    820     _cf = 0;
    821     _flag_k = FK_TEST;
    822 L_36063AA7:
    823     PUSH32(esp, 0x10u); /* 0x36063AA7: push 0x10 */
    824     MEM32(esi + 0x14) = eax; /* 0x36063AA9: mov dword ptr [esi + 0x14], eax */
    825     RECOMP_ICALL(0x3615FD6Au); /* 0x36063AAC: call 0x3615fd6a */ /* not lifted */
    826     RECOMP_FLAGS_IN();
    827     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    828     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    829     esp = esp + 4; /* 0x36063AB1: add esp, 4 */
    830     _flag_k = FK_ADD;
    831     /* cmp eax, ebx */ /* 0x36063AB4: cmp eax, ebx */
    832     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
    833     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    834     _flag_k = FK_CMP;
    835     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063AC8; /* 0x36063AB6: je 0x36063ac8 */
    836 L_36063AB8:
    837     SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x36063AB8: mov dl, byte ptr [ebp - 0xd] */
    838     MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x36063ABB: mov byte ptr [eax], dl */
    839     MEM32(eax + 0x4) = ebx; /* 0x36063ABD: mov dword ptr [eax + 4], ebx */
    840     MEM32(eax + 0x8) = ebx; /* 0x36063AC0: mov dword ptr [eax + 8], ebx */
    841     MEM32(eax + 0xC) = ebx; /* 0x36063AC3: mov dword ptr [eax + 0xc], ebx */
    842     goto L_36063ACA; /* 0x36063AC6: jmp 0x36063aca */
    843 L_36063AC8:
    844     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    845     eax = 0; /* 0x36063AC8: xor eax, eax */
    846     _cf = 0;
    847     _flag_k = FK_TEST;
    848 L_36063ACA:
    849     PUSH32(esp, 0xCu); /* 0x36063ACA: push 0xc */
    850     MEM32(esi + 0x18) = eax; /* 0x36063ACC: mov dword ptr [esi + 0x18], eax */
    851     RECOMP_ICALL(0x3615FD6Au); /* 0x36063ACF: call 0x3615fd6a */ /* not lifted */
    852     RECOMP_FLAGS_IN();
    853     edi = eax; /* 0x36063AD4: mov edi, eax */
    854     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    855     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    856     esp = esp + 4; /* 0x36063AD6: add esp, 4 */
    857     _flag_k = FK_ADD;
    858     MEM32(ebp + (-0x18)) = edi; /* 0x36063AD9: mov dword ptr [ebp - 0x18], edi */
    859     /* cmp edi, ebx */ /* 0x36063ADC: cmp edi, ebx */
    860     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
    861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    862     _flag_k = FK_CMP;
    863     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36063ADE: mov byte ptr [ebp - 4], 2 */
    864     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063B00; /* 0x36063AE2: je 0x36063b00 */
    865 L_36063AE4:
    866     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36063AE4: mov al, byte ptr [ebp - 0xd] */
    867     PUSH32(esp, 0x10u); /* 0x36063AE7: push 0x10 */
    868     MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x36063AE9: mov byte ptr [edi], al */
    869     RECOMP_ICALL(0x3615FD6Au); /* 0x36063AEB: call 0x3615fd6a */ /* not lifted */
    870     RECOMP_FLAGS_IN();
    871     MEM32(eax) = eax; /* 0x36063AF0: mov dword ptr [eax], eax */
    872     MEM32(eax + 0x4) = eax; /* 0x36063AF2: mov dword ptr [eax + 4], eax */
    873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    875     esp = esp + 4; /* 0x36063AF5: add esp, 4 */
    876     _flag_k = FK_ADD;
    877     MEM32(edi + 0x4) = eax; /* 0x36063AF8: mov dword ptr [edi + 4], eax */
    878     MEM32(edi + 0x8) = ebx; /* 0x36063AFB: mov dword ptr [edi + 8], ebx */
    879     goto L_36063B02; /* 0x36063AFE: jmp 0x36063b02 */
    880 L_36063B00:
    881     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    882     edi = 0; /* 0x36063B00: xor edi, edi */
    883     _cf = 0;
    884     _flag_k = FK_TEST;
    885 L_36063B02:
    886     ecx = MEM32(ebp + (-0xC)); /* 0x36063B02: mov ecx, dword ptr [ebp - 0xc] */
    887     MEM32(esi + 0x1C) = edi; /* 0x36063B05: mov dword ptr [esi + 0x1c], edi */
    888     MEM32(esi + 0x20) = ebx; /* 0x36063B08: mov dword ptr [esi + 0x20], ebx */
    889     edi = POP32_VAL(esp); /* 0x36063B0B: pop edi */
    890     eax = esi; /* 0x36063B0C: mov eax, esi */
    891     esi = POP32_VAL(esp); /* 0x36063B0E: pop esi */
    892     ebx = POP32_VAL(esp); /* 0x36063B0F: pop ebx */
    893     MEM32(FS_BASE + (0)) = ecx; /* 0x36063B10: mov dword ptr fs:[0], ecx */
    894     esp = ebp; /* 0x36063B17: mov esp, ebp */
    895     ebp = POP32_VAL(esp); /* 0x36063B19: pop ebp */
    896     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063B1A: ret  */
    897     RECOMP_REGS_OUT();
    898 }
    899 
    900 void sub_36063B20(void) {
    901     int _fpu_cmp = 0;
    902     uint32_t _cf = 0;
    903     int _df = 1;
    904     uint32_t _flag_k = FK_NONE;
    905     uint32_t _flag_a = 0, _flag_b = 0;
    906     uint32_t _itail_tgt = 0;
    907     RECOMP_REGS_LOCALS
    908     RECOMP_ENTER(0x36063B20u);
    909 
    910 L_36063B20:
    911     PUSH32(esp, ebp); /* 0x36063B20: push ebp */
    912     ebp = esp; /* 0x36063B21: mov ebp, esp */
    913     PUSH32(esp, esi); /* 0x36063B23: push esi */
    914     esi = ecx; /* 0x36063B24: mov esi, ecx */
    915     RECOMP_ICALL(0x36063B50u); /* 0x36063B26: call 0x36063b50 */ /* not lifted */
    916     RECOMP_FLAGS_IN();
    917     /* test MEM8(ebp + 0x8), 1 */ /* 0x36063B2B: test byte ptr [ebp + 8], 1 */
    918     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    919     _cf = 0;
    920     _flag_k = FK_NARROW(FK_TEST, 24);
    921     if (TEST_Z(_flag_a, _flag_b)) goto L_36063B3A; /* 0x36063B2F: je 0x36063b3a */
    922 L_36063B31:
    923     PUSH32(esp, esi); /* 0x36063B31: push esi */
    924     RECOMP_ICALL(0x3615FCC4u); /* 0x36063B32: call 0x3615fcc4 */ /* not lifted */
    925     RECOMP_FLAGS_IN();
    926     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    927     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    928     esp = esp + 4; /* 0x36063B37: add esp, 4 */
    929     _flag_k = FK_ADD;
    930 L_36063B3A:
    931     eax = esi; /* 0x36063B3A: mov eax, esi */
    932     esi = POP32_VAL(esp); /* 0x36063B3C: pop esi */
    933     ebp = POP32_VAL(esp); /* 0x36063B3D: pop ebp */
    934     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36063B3E: ret 4 */
    935     RECOMP_REGS_OUT();
    936 }
    937 
    938 void sub_36063B50(void) {
    939     int _fpu_cmp = 0;
    940     uint32_t _cf = 0;
    941     int _df = 1;
    942     uint32_t _flag_k = FK_NONE;
    943     uint32_t _flag_a = 0, _flag_b = 0;
    944     uint32_t _itail_tgt = 0;
    945     RECOMP_REGS_LOCALS
    946     RECOMP_ENTER(0x36063B50u);
    947 
    948 L_36063B50:
    949     PUSH32(esp, ebp); /* 0x36063B50: push ebp */
    950     ebp = esp; /* 0x36063B51: mov ebp, esp */
    951     PUSH32(esp, 0xFFFFFFFFu); /* 0x36063B53: push -1 */
    952     PUSH32(esp, 0x36164A8Fu); /* 0x36063B55: push 0x36164a8f */
    953     eax = MEM32(FS_BASE + (0)); /* 0x36063B5A: mov eax, dword ptr fs:[0] */
    954     PUSH32(esp, eax); /* 0x36063B60: push eax */
    955     MEM32(FS_BASE + (0)) = esp; /* 0x36063B61: mov dword ptr fs:[0], esp */
    956     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    958     esp = esp - 0x18u; /* 0x36063B68: sub esp, 0x18 */
    959     _flag_k = FK_CMP;
    960     PUSH32(esp, ebx); /* 0x36063B6B: push ebx */
    961     PUSH32(esp, esi); /* 0x36063B6C: push esi */
    962     PUSH32(esp, edi); /* 0x36063B6D: push edi */
    963     edi = ecx; /* 0x36063B6E: mov edi, ecx */
    964     MEM32(ebp + (-0x18)) = edi; /* 0x36063B70: mov dword ptr [ebp - 0x18], edi */
    965     MEM32(edi) = 0x3617117Cu; /* 0x36063B73: mov dword ptr [edi], 0x3617117c */
    966     MEM32(edi + 0xC) = 0x36171174u; /* 0x36063B79: mov dword ptr [edi + 0xc], 0x36171174 */
    967     ecx = MEM32(edi + 0x1C); /* 0x36063B80: mov ecx, dword ptr [edi + 0x1c] */
    968     ebx = MEM32(ecx + 0x4); /* 0x36063B83: mov ebx, dword ptr [ecx + 4] */
    969     esi = MEM32(ebx); /* 0x36063B86: mov esi, dword ptr [ebx] */
    970     /* cmp esi, ebx */ /* 0x36063B88: cmp esi, ebx */
    971     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    973     _flag_k = FK_CMP;
    974     MEM32(ebp + (-0x4)) = 1; /* 0x36063B8A: mov dword ptr [ebp - 4], 1 */
    975     MEM32(ebp + (-0x10)) = ecx; /* 0x36063B91: mov dword ptr [ebp - 0x10], ecx */
    976     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063BAD; /* 0x36063B94: je 0x36063bad */
    977 L_36063B96:
    978     goto L_36063B9B; /* 0x36063B96: jmp 0x36063b9b */
    979 L_36063B98:
    980     ecx = MEM32(ebp + (-0x10)); /* 0x36063B98: mov ecx, dword ptr [ebp - 0x10] */
    981 L_36063B9B:
    982     eax = esi; /* 0x36063B9B: mov eax, esi */
    983     esi = MEM32(esi); /* 0x36063B9D: mov esi, dword ptr [esi] */
    984     PUSH32(esp, eax); /* 0x36063B9F: push eax */
    985     eax = ebp + (-0x14); /* 0x36063BA0: lea eax, [ebp - 0x14] */
    986     PUSH32(esp, eax); /* 0x36063BA3: push eax */
    987     RECOMP_ICALL(0x360C86A0u); /* 0x36063BA4: call 0x360c86a0 */ /* not lifted */
    988     RECOMP_FLAGS_IN();
    989     /* cmp esi, ebx */ /* 0x36063BA9: cmp esi, ebx */
    990     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    992     _flag_k = FK_CMP;
    993     RECOMP_BACKEDGE();
    994     if (CMP_NE(_flag_a, _flag_b)) goto L_36063B98; /* 0x36063BAB: jne 0x36063b98 */
    995 L_36063BAD:
    996     esi = MEM32(edi + 0x1C); /* 0x36063BAD: mov esi, dword ptr [edi + 0x1c] */
    997     /* test esi, esi */ /* 0x36063BB0: test esi, esi */
    998     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    999     _cf = 0;
   1000     _flag_k = FK_TEST;
   1001     if (TEST_Z(_flag_a, _flag_b)) goto L_36063BFB; /* 0x36063BB2: je 0x36063bfb */
   1002 L_36063BB4:
   1003     ebx = MEM32(esi + 0x4); /* 0x36063BB4: mov ebx, dword ptr [esi + 4] */
   1004     eax = MEM32(ebx); /* 0x36063BB7: mov eax, dword ptr [ebx] */
   1005     /* cmp eax, ebx */ /* 0x36063BB9: cmp eax, ebx */
   1006     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1007     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1008     _flag_k = FK_CMP;
   1009     MEM32(ebp + (-0x10)) = eax; /* 0x36063BBB: mov dword ptr [ebp - 0x10], eax */
   1010     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063BE1; /* 0x36063BBE: je 0x36063be1 */
   1011 L_36063BC0:
   1012     PUSH32(esp, 0); /* 0x36063BC0: push 0 */
   1013     ecx = ebp + (-0x1C); /* 0x36063BC2: lea ecx, [ebp - 0x1c] */
   1014     PUSH32(esp, ecx); /* 0x36063BC5: push ecx */
   1015     ecx = ebp + (-0x10); /* 0x36063BC6: lea ecx, [ebp - 0x10] */
   1016     RECOMP_ICALL(0x360641D0u); /* 0x36063BC9: call 0x360641d0 */ /* not lifted */
   1017     RECOMP_FLAGS_IN();
   1018     edx = MEM32(eax); /* 0x36063BCE: mov edx, dword ptr [eax] */
   1019     PUSH32(esp, edx); /* 0x36063BD0: push edx */
   1020     eax = ebp + (-0x20); /* 0x36063BD1: lea eax, [ebp - 0x20] */
   1021     PUSH32(esp, eax); /* 0x36063BD4: push eax */
   1022     ecx = esi; /* 0x36063BD5: mov ecx, esi */
   1023     RECOMP_ICALL(0x360C86A0u); /* 0x36063BD7: call 0x360c86a0 */ /* not lifted */
   1024     RECOMP_FLAGS_IN();
   1025     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x36063BDC: cmp dword ptr [ebp - 0x10], ebx */
   1026     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   1027     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1028     _flag_k = FK_CMP;
   1029     RECOMP_BACKEDGE();
   1030     if (CMP_NE(_flag_a, _flag_b)) goto L_36063BC0; /* 0x36063BDF: jne 0x36063bc0 */
   1031 L_36063BE1:
   1032     eax = MEM32(esi + 0x4); /* 0x36063BE1: mov eax, dword ptr [esi + 4] */
   1033     PUSH32(esp, eax); /* 0x36063BE4: push eax */
   1034     RECOMP_ICALL(0x3615FCC4u); /* 0x36063BE5: call 0x3615fcc4 */ /* not lifted */
   1035     RECOMP_FLAGS_IN();
   1036     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1037     eax = 0; /* 0x36063BEA: xor eax, eax */
   1038     _cf = 0;
   1039     _flag_k = FK_TEST;
   1040     PUSH32(esp, esi); /* 0x36063BEC: push esi */
   1041     MEM32(esi + 0x4) = eax; /* 0x36063BED: mov dword ptr [esi + 4], eax */
   1042     MEM32(esi + 0x8) = eax; /* 0x36063BF0: mov dword ptr [esi + 8], eax */
   1043     RECOMP_ICALL(0x3615FCC4u); /* 0x36063BF3: call 0x3615fcc4 */ /* not lifted */
   1044     RECOMP_FLAGS_IN();
   1045     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1046     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1047     esp = esp + 8; /* 0x36063BF8: add esp, 8 */
   1048     _flag_k = FK_ADD;
   1049 L_36063BFB:
   1050     ebx = MEM32(edi + 0x14); /* 0x36063BFB: mov ebx, dword ptr [edi + 0x14] */
   1051     /* test ebx, ebx */ /* 0x36063BFE: test ebx, ebx */
   1052     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1053     _cf = 0;
   1054     _flag_k = FK_TEST;
   1055     MEM32(edi + 0x1C) = 0; /* 0x36063C00: mov dword ptr [edi + 0x1c], 0 */
   1056     if (TEST_Z(_flag_a, _flag_b)) goto L_36063C46; /* 0x36063C07: je 0x36063c46 */
   1057 L_36063C09:
   1058     eax = MEM32(ebx + 0x8); /* 0x36063C09: mov eax, dword ptr [ebx + 8] */
   1059     esi = MEM32(ebx + 0x4); /* 0x36063C0C: mov esi, dword ptr [ebx + 4] */
   1060     /* cmp esi, eax */ /* 0x36063C0F: cmp esi, eax */
   1061     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1063     _flag_k = FK_CMP;
   1064     MEM32(ebp + (-0x14)) = eax; /* 0x36063C11: mov dword ptr [ebp - 0x14], eax */
   1065     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063C29; /* 0x36063C14: je 0x36063c29 */
   1066 L_36063C16:
   1067     PUSH32(esp, 0); /* 0x36063C16: push 0 */
   1068     ecx = esi; /* 0x36063C18: mov ecx, esi */
   1069     RECOMP_ICALL(0x36091500u); /* 0x36063C1A: call 0x36091500 */ /* not lifted */
   1070     RECOMP_FLAGS_IN();
   1071     eax = MEM32(ebp + (-0x14)); /* 0x36063C1F: mov eax, dword ptr [ebp - 0x14] */
   1072     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1073     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1074     esi = esi + 8; /* 0x36063C22: add esi, 8 */
   1075     _flag_k = FK_ADD;
   1076     /* cmp esi, eax */ /* 0x36063C25: cmp esi, eax */
   1077     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1078     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1079     _flag_k = FK_CMP;
   1080     RECOMP_BACKEDGE();
   1081     if (CMP_NE(_flag_a, _flag_b)) goto L_36063C16; /* 0x36063C27: jne 0x36063c16 */
   1082 L_36063C29:
   1083     eax = MEM32(ebx + 0x4); /* 0x36063C29: mov eax, dword ptr [ebx + 4] */
   1084     PUSH32(esp, eax); /* 0x36063C2C: push eax */
   1085     RECOMP_ICALL(0x3615FCC4u); /* 0x36063C2D: call 0x3615fcc4 */ /* not lifted */
   1086     RECOMP_FLAGS_IN();
   1087     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1088     eax = 0; /* 0x36063C32: xor eax, eax */
   1089     _cf = 0;
   1090     _flag_k = FK_TEST;
   1091     PUSH32(esp, ebx); /* 0x36063C34: push ebx */
   1092     MEM32(ebx + 0x4) = eax; /* 0x36063C35: mov dword ptr [ebx + 4], eax */
   1093     MEM32(ebx + 0x8) = eax; /* 0x36063C38: mov dword ptr [ebx + 8], eax */
   1094     MEM32(ebx + 0xC) = eax; /* 0x36063C3B: mov dword ptr [ebx + 0xc], eax */
   1095     RECOMP_ICALL(0x3615FCC4u); /* 0x36063C3E: call 0x3615fcc4 */ /* not lifted */
   1096     RECOMP_FLAGS_IN();
   1097     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1098     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1099     esp = esp + 8; /* 0x36063C43: add esp, 8 */
   1100     _flag_k = FK_ADD;
   1101 L_36063C46:
   1102     ebx = MEM32(edi + 0x18); /* 0x36063C46: mov ebx, dword ptr [edi + 0x18] */
   1103     /* test ebx, ebx */ /* 0x36063C49: test ebx, ebx */
   1104     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1105     _cf = 0;
   1106     _flag_k = FK_TEST;
   1107     MEM32(edi + 0x14) = 0; /* 0x36063C4B: mov dword ptr [edi + 0x14], 0 */
   1108     if (TEST_Z(_flag_a, _flag_b)) goto L_36063C8F; /* 0x36063C52: je 0x36063c8f */
   1109 L_36063C54:
   1110     eax = MEM32(ebx + 0x8); /* 0x36063C54: mov eax, dword ptr [ebx + 8] */
   1111     esi = MEM32(ebx + 0x4); /* 0x36063C57: mov esi, dword ptr [ebx + 4] */
   1112     /* cmp esi, eax */ /* 0x36063C5A: cmp esi, eax */
   1113     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1115     _flag_k = FK_CMP;
   1116     MEM32(ebp + (-0x14)) = eax; /* 0x36063C5C: mov dword ptr [ebp - 0x14], eax */
   1117     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063C72; /* 0x36063C5F: je 0x36063c72 */
   1118 L_36063C61:
   1119     ecx = esi; /* 0x36063C61: mov ecx, esi */
   1120     RECOMP_ICALL(0x360E2940u); /* 0x36063C63: call 0x360e2940 */ /* not lifted */
   1121     RECOMP_FLAGS_IN();
   1122     eax = MEM32(ebp + (-0x14)); /* 0x36063C68: mov eax, dword ptr [ebp - 0x14] */
   1123     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8);
   1124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1125     esi = esi + 8; /* 0x36063C6B: add esi, 8 */
   1126     _flag_k = FK_ADD;
   1127     /* cmp esi, eax */ /* 0x36063C6E: cmp esi, eax */
   1128     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1129     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1130     _flag_k = FK_CMP;
   1131     RECOMP_BACKEDGE();
   1132     if (CMP_NE(_flag_a, _flag_b)) goto L_36063C61; /* 0x36063C70: jne 0x36063c61 */
   1133 L_36063C72:
   1134     eax = MEM32(ebx + 0x4); /* 0x36063C72: mov eax, dword ptr [ebx + 4] */
   1135     PUSH32(esp, eax); /* 0x36063C75: push eax */
   1136     RECOMP_ICALL(0x3615FCC4u); /* 0x36063C76: call 0x3615fcc4 */ /* not lifted */
   1137     RECOMP_FLAGS_IN();
   1138     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1139     eax = 0; /* 0x36063C7B: xor eax, eax */
   1140     _cf = 0;
   1141     _flag_k = FK_TEST;
   1142     PUSH32(esp, ebx); /* 0x36063C7D: push ebx */
   1143     MEM32(ebx + 0x4) = eax; /* 0x36063C7E: mov dword ptr [ebx + 4], eax */
   1144     MEM32(ebx + 0x8) = eax; /* 0x36063C81: mov dword ptr [ebx + 8], eax */
   1145     MEM32(ebx + 0xC) = eax; /* 0x36063C84: mov dword ptr [ebx + 0xc], eax */
   1146     RECOMP_ICALL(0x3615FCC4u); /* 0x36063C87: call 0x3615fcc4 */ /* not lifted */
   1147     RECOMP_FLAGS_IN();
   1148     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1149     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1150     esp = esp + 8; /* 0x36063C8C: add esp, 8 */
   1151     _flag_k = FK_ADD;
   1152 L_36063C8F:
   1153     ecx = MEM32(edi + 0x20); /* 0x36063C8F: mov ecx, dword ptr [edi + 0x20] */
   1154     PUSH32(esp, ecx); /* 0x36063C92: push ecx */
   1155     MEM32(edi + 0x18) = 0; /* 0x36063C93: mov dword ptr [edi + 0x18], 0 */
   1156     RECOMP_ICALL(MEM32(0x3616F1A4)); /* 0x36063C9A: call dword ptr [0x3616f1a4] */
   1157     RECOMP_FLAGS_IN();
   1158     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1159     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1160     esp = esp + 4; /* 0x36063CA0: add esp, 4 */
   1161     _flag_k = FK_ADD;
   1162     ecx = edi; /* 0x36063CA3: mov ecx, edi */
   1163     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   1164     _cf = (ecx) != 0;
   1165     ecx = (uint32_t)(-(int32_t)ecx); /* 0x36063CA5: neg ecx */
   1166     _flag_k = FK_CMP;
   1167     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x36063CA7: sbb ecx, ecx */
   1168       ecx = _sc ? 0xFFFFFFFFu : 0;
   1169       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1170       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1171     eax = edi + 0xC; /* 0x36063CA9: lea eax, [edi + 0xc] */
   1172     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   1173     ecx = ecx & eax; /* 0x36063CAC: and ecx, eax */
   1174     _cf = 0;
   1175     _flag_k = FK_TEST;
   1176     MEM32(edi + 0x20) = 0; /* 0x36063CAE: mov dword ptr [edi + 0x20], 0 */
   1177     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36063CB5: mov byte ptr [ebp - 4], 0 */
   1178     RECOMP_ICALL(0x3608AB50u); /* 0x36063CB9: call 0x3608ab50 */ /* not lifted */
   1179     RECOMP_FLAGS_IN();
   1180     ecx = edi; /* 0x36063CBE: mov ecx, edi */
   1181     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36063CC0: mov dword ptr [ebp - 4], 0xffffffff */
   1182     RECOMP_ICALL(0x3608A4D0u); /* 0x36063CC7: call 0x3608a4d0 */ /* not lifted */
   1183     RECOMP_FLAGS_IN();
   1184     ecx = MEM32(ebp + (-0xC)); /* 0x36063CCC: mov ecx, dword ptr [ebp - 0xc] */
   1185     edi = POP32_VAL(esp); /* 0x36063CCF: pop edi */
   1186     esi = POP32_VAL(esp); /* 0x36063CD0: pop esi */
   1187     ebx = POP32_VAL(esp); /* 0x36063CD1: pop ebx */
   1188     MEM32(FS_BASE + (0)) = ecx; /* 0x36063CD2: mov dword ptr fs:[0], ecx */
   1189     esp = ebp; /* 0x36063CD9: mov esp, ebp */
   1190     ebp = POP32_VAL(esp); /* 0x36063CDB: pop ebp */
   1191     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063CDC: ret  */
   1192     RECOMP_REGS_OUT();
   1193 }
   1194 
   1195 void sub_36063CE0(void) {
   1196     int _fpu_cmp = 0;
   1197     uint32_t _cf = 0;
   1198     int _df = 1;
   1199     uint32_t _flag_k = FK_NONE;
   1200     uint32_t _flag_a = 0, _flag_b = 0;
   1201     uint32_t _itail_tgt = 0;
   1202     RECOMP_REGS_LOCALS
   1203     RECOMP_ENTER(0x36063CE0u);
   1204 
   1205 L_36063CE0:
   1206     PUSH32(esp, ebp); /* 0x36063CE0: push ebp */
   1207     ebp = esp; /* 0x36063CE1: mov ebp, esp */
   1208     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1209     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1210     esp = esp - 8; /* 0x36063CE3: sub esp, 8 */
   1211     _flag_k = FK_CMP;
   1212     PUSH32(esp, ebx); /* 0x36063CE6: push ebx */
   1213     PUSH32(esp, esi); /* 0x36063CE7: push esi */
   1214     esi = MEM32(ebp + 0x8); /* 0x36063CE8: mov esi, dword ptr [ebp + 8] */
   1215     PUSH32(esp, edi); /* 0x36063CEB: push edi */
   1216     edi = MEM32(0x3616FA8C); /* 0x36063CEC: mov edi, dword ptr [0x3616fa8c] */
   1217     eax = ebp + 0x8; /* 0x36063CF2: lea eax, [ebp + 8] */
   1218     PUSH32(esp, eax); /* 0x36063CF5: push eax */
   1219     ecx = ebp + (-0x4); /* 0x36063CF6: lea ecx, [ebp - 4] */
   1220     PUSH32(esp, ecx); /* 0x36063CF9: push ecx */
   1221     ecx = esi; /* 0x36063CFA: mov ecx, esi */
   1222     RECOMP_ICALL(edi); /* 0x36063CFC: call edi */
   1223     RECOMP_FLAGS_IN();
   1224     ecx = eax; /* 0x36063CFE: mov ecx, eax */
   1225     RECOMP_ICALL(edi); /* 0x36063D00: call edi */
   1226     RECOMP_FLAGS_IN();
   1227     ebx = MEM32(ebp + 0xC); /* 0x36063D02: mov ebx, dword ptr [ebp + 0xc] */
   1228     edx = MEM32(ebx + 0x14); /* 0x36063D05: mov edx, dword ptr [ebx + 0x14] */
   1229     PUSH32(esp, edx); /* 0x36063D08: push edx */
   1230     PUSH32(esp, esi); /* 0x36063D09: push esi */
   1231     RECOMP_ICALL(0x36030100u); /* 0x36063D0A: call 0x36030100 */ /* not lifted */
   1232     RECOMP_FLAGS_IN();
   1233     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1234     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1235     esp = esp + 8; /* 0x36063D0F: add esp, 8 */
   1236     _flag_k = FK_ADD;
   1237     eax = ebp + 0x8; /* 0x36063D12: lea eax, [ebp + 8] */
   1238     PUSH32(esp, eax); /* 0x36063D15: push eax */
   1239     ecx = ebp + (-0x4); /* 0x36063D16: lea ecx, [ebp - 4] */
   1240     PUSH32(esp, ecx); /* 0x36063D19: push ecx */
   1241     ecx = esi; /* 0x36063D1A: mov ecx, esi */
   1242     RECOMP_ICALL(edi); /* 0x36063D1C: call edi */
   1243     RECOMP_FLAGS_IN();
   1244     ecx = eax; /* 0x36063D1E: mov ecx, eax */
   1245     RECOMP_ICALL(edi); /* 0x36063D20: call edi */
   1246     RECOMP_FLAGS_IN();
   1247     edx = MEM32(ebx + 0x4); /* 0x36063D22: mov edx, dword ptr [ebx + 4] */
   1248     PUSH32(esp, edx); /* 0x36063D25: push edx */
   1249     PUSH32(esp, esi); /* 0x36063D26: push esi */
   1250     RECOMP_ICALL(0x3608A820u); /* 0x36063D27: call 0x3608a820 */ /* not lifted */
   1251     RECOMP_FLAGS_IN();
   1252     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1253     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1254     esp = esp + 8; /* 0x36063D2C: add esp, 8 */
   1255     _flag_k = FK_ADD;
   1256     eax = ebp + 0x8; /* 0x36063D2F: lea eax, [ebp + 8] */
   1257     PUSH32(esp, eax); /* 0x36063D32: push eax */
   1258     ecx = ebp + (-0x4); /* 0x36063D33: lea ecx, [ebp - 4] */
   1259     PUSH32(esp, ecx); /* 0x36063D36: push ecx */
   1260     ecx = esi; /* 0x36063D37: mov ecx, esi */
   1261     RECOMP_ICALL(edi); /* 0x36063D39: call edi */
   1262     RECOMP_FLAGS_IN();
   1263     ecx = eax; /* 0x36063D3B: mov ecx, eax */
   1264     RECOMP_ICALL(edi); /* 0x36063D3D: call edi */
   1265     RECOMP_FLAGS_IN();
   1266     edx = MEM32(ebx + 0x10); /* 0x36063D3F: mov edx, dword ptr [ebx + 0x10] */
   1267     PUSH32(esp, edx); /* 0x36063D42: push edx */
   1268     PUSH32(esp, esi); /* 0x36063D43: push esi */
   1269     RECOMP_ICALL(0x3608A820u); /* 0x36063D44: call 0x3608a820 */ /* not lifted */
   1270     RECOMP_FLAGS_IN();
   1271     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1272     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1273     esp = esp + 8; /* 0x36063D49: add esp, 8 */
   1274     _flag_k = FK_ADD;
   1275     eax = ebp + 0x8; /* 0x36063D4C: lea eax, [ebp + 8] */
   1276     PUSH32(esp, eax); /* 0x36063D4F: push eax */
   1277     ecx = ebp + (-0x4); /* 0x36063D50: lea ecx, [ebp - 4] */
   1278     PUSH32(esp, ecx); /* 0x36063D53: push ecx */
   1279     ecx = esi; /* 0x36063D54: mov ecx, esi */
   1280     RECOMP_ICALL(edi); /* 0x36063D56: call edi */
   1281     RECOMP_FLAGS_IN();
   1282     ecx = eax; /* 0x36063D58: mov ecx, eax */
   1283     RECOMP_ICALL(edi); /* 0x36063D5A: call edi */
   1284     RECOMP_FLAGS_IN();
   1285     edx = MEM32(ebx + 0x1C); /* 0x36063D5C: mov edx, dword ptr [ebx + 0x1c] */
   1286     PUSH32(esp, edx); /* 0x36063D5F: push edx */
   1287     PUSH32(esp, esi); /* 0x36063D60: push esi */
   1288     RECOMP_ICALL(0x3601DD60u); /* 0x36063D61: call 0x3601dd60 */ /* not lifted */
   1289     RECOMP_FLAGS_IN();
   1290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1291     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1292     esp = esp + 8; /* 0x36063D66: add esp, 8 */
   1293     _flag_k = FK_ADD;
   1294     eax = ebp + (-0x8); /* 0x36063D69: lea eax, [ebp - 8] */
   1295     PUSH32(esp, eax); /* 0x36063D6C: push eax */
   1296     ecx = esi; /* 0x36063D6D: mov ecx, esi */
   1297     RECOMP_ICALL(edi); /* 0x36063D6F: call edi */
   1298     RECOMP_FLAGS_IN();
   1299     ecx = MEM32(ebp + (-0x8)); /* 0x36063D71: mov ecx, dword ptr [ebp - 8] */
   1300     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   1301     ecx = ecx + 1; /* 0x36063D74: inc ecx */
   1302     _flag_k = FK_INC;
   1303     PUSH32(esp, ecx); /* 0x36063D75: push ecx */
   1304     RECOMP_ICALL(MEM32(0x3616F1A0)); /* 0x36063D76: call dword ptr [0x3616f1a0] */
   1305     RECOMP_FLAGS_IN();
   1306     edx = MEM32(ebp + (-0x8)); /* 0x36063D7C: mov edx, dword ptr [ebp - 8] */
   1307     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1309     esp = esp + 4; /* 0x36063D7F: add esp, 4 */
   1310     _flag_k = FK_ADD;
   1311     PUSH32(esp, edx); /* 0x36063D82: push edx */
   1312     PUSH32(esp, eax); /* 0x36063D83: push eax */
   1313     ecx = esi; /* 0x36063D84: mov ecx, esi */
   1314     MEM32(ebx + 0x20) = eax; /* 0x36063D86: mov dword ptr [ebx + 0x20], eax */
   1315     RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36063D89: call dword ptr [0x3616fac4] */
   1316     RECOMP_FLAGS_IN();
   1317     eax = MEM32(ebx + 0x20); /* 0x36063D8F: mov eax, dword ptr [ebx + 0x20] */
   1318     ecx = MEM32(ebp + (-0x8)); /* 0x36063D92: mov ecx, dword ptr [ebp - 8] */
   1319     edi = POP32_VAL(esp); /* 0x36063D95: pop edi */
   1320     MEM8(eax + ecx) = (uint8_t)(0); /* 0x36063D96: mov byte ptr [eax + ecx], 0 */
   1321     eax = esi; /* 0x36063D9A: mov eax, esi */
   1322     esi = POP32_VAL(esp); /* 0x36063D9C: pop esi */
   1323     ebx = POP32_VAL(esp); /* 0x36063D9D: pop ebx */
   1324     esp = ebp; /* 0x36063D9E: mov esp, ebp */
   1325     ebp = POP32_VAL(esp); /* 0x36063DA0: pop ebp */
   1326     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063DA1: ret  */
   1327     RECOMP_REGS_OUT();
   1328 }
   1329 
   1330 void sub_36063DB0(void) {
   1331     int _fpu_cmp = 0;
   1332     uint32_t _cf = 0;
   1333     int _df = 1;
   1334     uint32_t _flag_k = FK_NONE;
   1335     uint32_t _flag_a = 0, _flag_b = 0;
   1336     uint32_t _itail_tgt = 0;
   1337     RECOMP_REGS_LOCALS
   1338     RECOMP_ENTER(0x36063DB0u);
   1339 
   1340 L_36063DB0:
   1341     PUSH32(esp, ebp); /* 0x36063DB0: push ebp */
   1342     ebp = esp; /* 0x36063DB1: mov ebp, esp */
   1343     PUSH32(esp, 0xFFFFFFFFu); /* 0x36063DB3: push -1 */
   1344     PUSH32(esp, 0x36164AABu); /* 0x36063DB5: push 0x36164aab */
   1345     eax = MEM32(FS_BASE + (0)); /* 0x36063DBA: mov eax, dword ptr fs:[0] */
   1346     PUSH32(esp, eax); /* 0x36063DC0: push eax */
   1347     MEM32(FS_BASE + (0)) = esp; /* 0x36063DC1: mov dword ptr fs:[0], esp */
   1348     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1350     esp = esp - 8; /* 0x36063DC8: sub esp, 8 */
   1351     _flag_k = FK_CMP;
   1352     eax = MEM32(0x3616FF74); /* 0x36063DCB: mov eax, dword ptr [0x3616ff74] */
   1353     eax = MEM32(eax); /* 0x36063DD0: mov eax, dword ptr [eax] */
   1354     PUSH32(esp, ebx); /* 0x36063DD2: push ebx */
   1355     ebx = MEM32(ebp + 0x8); /* 0x36063DD3: mov ebx, dword ptr [ebp + 8] */
   1356     PUSH32(esp, esi); /* 0x36063DD6: push esi */
   1357     PUSH32(esp, edi); /* 0x36063DD7: push edi */
   1358     MEM32(ebp + (-0x14)) = 0x000FDE97u; /* 0x36063DD8: mov dword ptr [ebp - 0x14], 0xfde97 */
   1359     MEM32(ebp + (-0x10)) = ebx; /* 0x36063DDF: mov dword ptr [ebp - 0x10], ebx */
   1360     esi = MEM32(eax + 0x60); /* 0x36063DE2: mov esi, dword ptr [eax + 0x60] */
   1361     PUSH32(esp, 0x24u); /* 0x36063DE5: push 0x24 */
   1362     RECOMP_ICALL(0x3615FD6Au); /* 0x36063DE7: call 0x3615fd6a */ /* not lifted */
   1363     RECOMP_FLAGS_IN();
   1364     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1365     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1366     esp = esp + 4; /* 0x36063DEC: add esp, 4 */
   1367     _flag_k = FK_ADD;
   1368     MEM32(ebp + 0x8) = eax; /* 0x36063DEF: mov dword ptr [ebp + 8], eax */
   1369     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1370     edi = 0; /* 0x36063DF2: xor edi, edi */
   1371     _cf = 0;
   1372     _flag_k = FK_TEST;
   1373     /* cmp eax, edi */ /* 0x36063DF4: cmp eax, edi */
   1374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1376     _flag_k = FK_CMP;
   1377     MEM32(ebp + (-0x4)) = edi; /* 0x36063DF6: mov dword ptr [ebp - 4], edi */
   1378     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063E04; /* 0x36063DF9: je 0x36063e04 */
   1379 L_36063DFB:
   1380     ecx = eax; /* 0x36063DFB: mov ecx, eax */
   1381     RECOMP_ICALL(0x36063A40u); /* 0x36063DFD: call 0x36063a40 */ /* not lifted */
   1382     RECOMP_FLAGS_IN();
   1383     edi = eax; /* 0x36063E02: mov edi, eax */
   1384 L_36063E04:
   1385     /* test esi, esi */ /* 0x36063E04: test esi, esi */
   1386     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1387     _cf = 0;
   1388     _flag_k = FK_TEST;
   1389     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36063E06: mov dword ptr [ebp - 4], 0xffffffff */
   1390     if (TEST_Z(_flag_a, _flag_b)) goto L_36063E3C; /* 0x36063E0D: je 0x36063e3c */
   1391 L_36063E0F:
   1392     ecx = ebp + (-0x14); /* 0x36063E0F: lea ecx, [ebp - 0x14] */
   1393     PUSH32(esp, ecx); /* 0x36063E12: push ecx */
   1394     ecx = esi; /* 0x36063E13: mov ecx, esi */
   1395     RECOMP_ICALL(MEM32(0x3616FB18)); /* 0x36063E15: call dword ptr [0x3616fb18] */
   1396     RECOMP_FLAGS_IN();
   1397     esi = eax; /* 0x36063E1B: mov esi, eax */
   1398     /* test esi, esi */ /* 0x36063E1D: test esi, esi */
   1399     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1400     _cf = 0;
   1401     _flag_k = FK_TEST;
   1402     if (TEST_Z(_flag_a, _flag_b)) goto L_36063E59; /* 0x36063E1F: je 0x36063e59 */
   1403 L_36063E21:
   1404     PUSH32(esp, edi); /* 0x36063E21: push edi */
   1405     PUSH32(esp, esi); /* 0x36063E22: push esi */
   1406     RECOMP_ICALL(0x36063CE0u); /* 0x36063E23: call 0x36063ce0 */ /* not lifted */
   1407     RECOMP_FLAGS_IN();
   1408     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1410     esp = esp + 8; /* 0x36063E28: add esp, 8 */
   1411     _flag_k = FK_ADD;
   1412     ecx = esi; /* 0x36063E2B: mov ecx, esi */
   1413     RECOMP_ICALL(MEM32(0x3616FAB4)); /* 0x36063E2D: call dword ptr [0x3616fab4] */
   1414     RECOMP_FLAGS_IN();
   1415     PUSH32(esp, esi); /* 0x36063E33: push esi */
   1416     RECOMP_ICALL(0x3615FCC4u); /* 0x36063E34: call 0x3615fcc4 */ /* not lifted */
   1417     RECOMP_FLAGS_IN();
   1418     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1419     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1420     esp = esp + 4; /* 0x36063E39: add esp, 4 */
   1421     _flag_k = FK_ADD;
   1422 L_36063E3C:
   1423     PUSH32(esp, edi); /* 0x36063E3C: push edi */
   1424     PUSH32(esp, ebx); /* 0x36063E3D: push ebx */
   1425     RECOMP_ICALL(0x36063F10u); /* 0x36063E3E: call 0x36063f10 */ /* not lifted */
   1426     RECOMP_FLAGS_IN();
   1427     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1428     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1429     esp = esp + 8; /* 0x36063E43: add esp, 8 */
   1430     _flag_k = FK_ADD;
   1431     edi = POP32_VAL(esp); /* 0x36063E46: pop edi */
   1432     esi = POP32_VAL(esp); /* 0x36063E47: pop esi */
   1433     SET_LO8(eax, 1); /* 0x36063E48: mov al, 1 */
   1434     ebx = POP32_VAL(esp); /* 0x36063E4A: pop ebx */
   1435     ecx = MEM32(ebp + (-0xC)); /* 0x36063E4B: mov ecx, dword ptr [ebp - 0xc] */
   1436     MEM32(FS_BASE + (0)) = ecx; /* 0x36063E4E: mov dword ptr fs:[0], ecx */
   1437     esp = ebp; /* 0x36063E55: mov esp, ebp */
   1438     ebp = POP32_VAL(esp); /* 0x36063E57: pop ebp */
   1439     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063E58: ret  */
   1440 L_36063E59:
   1441     /* test edi, edi */ /* 0x36063E59: test edi, edi */
   1442     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1443     _cf = 0;
   1444     _flag_k = FK_TEST;
   1445     if (TEST_Z(_flag_a, _flag_b)) goto L_36063E65; /* 0x36063E5B: je 0x36063e65 */
   1446 L_36063E5D:
   1447     edx = MEM32(edi); /* 0x36063E5D: mov edx, dword ptr [edi] */
   1448     PUSH32(esp, 1); /* 0x36063E5F: push 1 */
   1449     ecx = edi; /* 0x36063E61: mov ecx, edi */
   1450     RECOMP_ICALL(MEM32(edx)); /* 0x36063E63: call dword ptr [edx] */
   1451     RECOMP_FLAGS_IN();
   1452 L_36063E65:
   1453     ecx = MEM32(ebp + (-0xC)); /* 0x36063E65: mov ecx, dword ptr [ebp - 0xc] */
   1454     edi = POP32_VAL(esp); /* 0x36063E68: pop edi */
   1455     esi = POP32_VAL(esp); /* 0x36063E69: pop esi */
   1456     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   1457     SET_LO8(eax, 0); /* 0x36063E6A: xor al, al */
   1458     _cf = 0;
   1459     _flag_k = FK_NARROW(FK_TEST, 24);
   1460     ebx = POP32_VAL(esp); /* 0x36063E6C: pop ebx */
   1461     MEM32(FS_BASE + (0)) = ecx; /* 0x36063E6D: mov dword ptr fs:[0], ecx */
   1462     esp = ebp; /* 0x36063E74: mov esp, ebp */
   1463     ebp = POP32_VAL(esp); /* 0x36063E76: pop ebp */
   1464     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063E77: ret  */
   1465     RECOMP_REGS_OUT();
   1466 }
   1467 
   1468 void sub_36063E80(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(0x36063E80u);
   1477 
   1478 L_36063E80:
   1479     PUSH32(esp, ebp); /* 0x36063E80: push ebp */
   1480     ebp = esp; /* 0x36063E81: mov ebp, esp */
   1481     eax = MEM32(ebp + 0x8); /* 0x36063E83: mov eax, dword ptr [ebp + 8] */
   1482     ecx = MEM32(ecx + 0x14); /* 0x36063E86: mov ecx, dword ptr [ecx + 0x14] */
   1483     PUSH32(esp, 0); /* 0x36063E89: push 0 */
   1484     PUSH32(esp, eax); /* 0x36063E8B: push eax */
   1485     RECOMP_ICALL(0x360300A0u); /* 0x36063E8C: call 0x360300a0 */ /* not lifted */
   1486     RECOMP_FLAGS_IN();
   1487     ebp = POP32_VAL(esp); /* 0x36063E91: pop ebp */
   1488     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36063E92: ret 4 */
   1489     RECOMP_REGS_OUT();
   1490 }
   1491 
   1492 void sub_36063EA0(void) {
   1493     int _fpu_cmp = 0;
   1494     uint32_t _cf = 0;
   1495     int _df = 1;
   1496     uint32_t _flag_k = FK_NONE;
   1497     uint32_t _flag_a = 0, _flag_b = 0;
   1498     uint32_t _itail_tgt = 0;
   1499     RECOMP_REGS_LOCALS
   1500     RECOMP_ENTER(0x36063EA0u);
   1501 
   1502 L_36063EA0:
   1503     PUSH32(esp, ebp); /* 0x36063EA0: push ebp */
   1504     ebp = esp; /* 0x36063EA1: mov ebp, esp */
   1505     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1507     esp = esp - 8; /* 0x36063EA3: sub esp, 8 */
   1508     _flag_k = FK_CMP;
   1509     PUSH32(esp, esi); /* 0x36063EA6: push esi */
   1510     esi = MEM32(0x361C2D2C); /* 0x36063EA7: mov esi, dword ptr [0x361c2d2c] */
   1511     eax = ebp + 0x8; /* 0x36063EAD: lea eax, [ebp + 8] */
   1512     PUSH32(esp, eax); /* 0x36063EB0: push eax */
   1513     ecx = esi; /* 0x36063EB1: mov ecx, esi */
   1514     RECOMP_ICALL(0x360E39D0u); /* 0x36063EB3: call 0x360e39d0 */ /* not lifted */
   1515     RECOMP_FLAGS_IN();
   1516     esi = MEM32(esi + 0x4); /* 0x36063EB8: mov esi, dword ptr [esi + 4] */
   1517     /* cmp eax, esi */ /* 0x36063EBB: cmp eax, esi */
   1518     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1520     _flag_k = FK_CMP;
   1521     ecx = MEM32(ebp + 0x8); /* 0x36063EBD: mov ecx, dword ptr [ebp + 8] */
   1522     MEM32(ebp + (-0x4)) = eax; /* 0x36063EC0: mov dword ptr [ebp - 4], eax */
   1523     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063ECF; /* 0x36063EC3: je 0x36063ecf */
   1524 L_36063EC5:
   1525     /* cmp ecx, MEM32(eax + 0xC) */ /* 0x36063EC5: cmp ecx, dword ptr [eax + 0xc] */
   1526     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   1527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1528     _flag_k = FK_CMP;
   1529     if (CMP_B(_flag_a, _flag_b)) goto L_36063ECF; /* 0x36063EC8: jb 0x36063ecf */
   1530 L_36063ECA:
   1531     eax = ebp + (-0x4); /* 0x36063ECA: lea eax, [ebp - 4] */
   1532     goto L_36063ED5; /* 0x36063ECD: jmp 0x36063ed5 */
   1533 L_36063ECF:
   1534     MEM32(ebp + (-0x8)) = esi; /* 0x36063ECF: mov dword ptr [ebp - 8], esi */
   1535     eax = ebp + (-0x8); /* 0x36063ED2: lea eax, [ebp - 8] */
   1536 L_36063ED5:
   1537     edx = MEM32(0x361C2D2C); /* 0x36063ED5: mov edx, dword ptr [0x361c2d2c] */
   1538     esi = MEM32(edx + 0x4); /* 0x36063EDB: mov esi, dword ptr [edx + 4] */
   1539     eax = MEM32(eax); /* 0x36063EDE: mov eax, dword ptr [eax] */
   1540     /* cmp eax, esi */ /* 0x36063EE0: cmp eax, esi */
   1541     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1543     _flag_k = FK_CMP;
   1544     esi = POP32_VAL(esp); /* 0x36063EE2: pop esi */
   1545     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063EEC; /* 0x36063EE3: je 0x36063eec */
   1546 L_36063EE5:
   1547     eax = MEM32(eax + 0x10); /* 0x36063EE5: mov eax, dword ptr [eax + 0x10] */
   1548     esp = ebp; /* 0x36063EE8: mov esp, ebp */
   1549     ebp = POP32_VAL(esp); /* 0x36063EEA: pop ebp */
   1550     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063EEB: ret  */
   1551 L_36063EEC:
   1552     PUSH32(esp, ecx); /* 0x36063EEC: push ecx */
   1553     RECOMP_ICALL(0x36063DB0u); /* 0x36063EED: call 0x36063db0 */ /* not lifted */
   1554     RECOMP_FLAGS_IN();
   1555     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1556     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1557     esp = esp + 4; /* 0x36063EF2: add esp, 4 */
   1558     _flag_k = FK_ADD;
   1559     /* test LO8(eax), LO8(eax) */ /* 0x36063EF5: test al, al */
   1560     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1561     _cf = 0;
   1562     _flag_k = FK_NARROW(FK_TEST, 24);
   1563     if (TEST_Z(_flag_a, _flag_b)) goto L_36063F09; /* 0x36063EF7: je 0x36063f09 */
   1564 L_36063EF9:
   1565     eax = MEM32(ebp + 0x8); /* 0x36063EF9: mov eax, dword ptr [ebp + 8] */
   1566     PUSH32(esp, eax); /* 0x36063EFC: push eax */
   1567     RECOMP_ICALL(0x36063EA0u); /* 0x36063EFD: call 0x36063ea0 */ /* not lifted */
   1568     RECOMP_FLAGS_IN();
   1569     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1570     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1571     esp = esp + 4; /* 0x36063F02: add esp, 4 */
   1572     _flag_k = FK_ADD;
   1573     esp = ebp; /* 0x36063F05: mov esp, ebp */
   1574     ebp = POP32_VAL(esp); /* 0x36063F07: pop ebp */
   1575     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063F08: ret  */
   1576 L_36063F09:
   1577     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1578     eax = 0; /* 0x36063F09: xor eax, eax */
   1579     _cf = 0;
   1580     _flag_k = FK_TEST;
   1581     esp = ebp; /* 0x36063F0B: mov esp, ebp */
   1582     ebp = POP32_VAL(esp); /* 0x36063F0D: pop ebp */
   1583     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063F0E: ret  */
   1584     RECOMP_REGS_OUT();
   1585 }
   1586 
   1587 void sub_36063F10(void) {
   1588     int _fpu_cmp = 0;
   1589     uint32_t _cf = 0;
   1590     int _df = 1;
   1591     uint32_t _flag_k = FK_NONE;
   1592     uint32_t _flag_a = 0, _flag_b = 0;
   1593     uint32_t _itail_tgt = 0;
   1594     RECOMP_REGS_LOCALS
   1595     RECOMP_ENTER(0x36063F10u);
   1596 
   1597 L_36063F10:
   1598     PUSH32(esp, ebp); /* 0x36063F10: push ebp */
   1599     ebp = esp; /* 0x36063F11: mov ebp, esp */
   1600     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1602     esp = esp - 0x18u; /* 0x36063F13: sub esp, 0x18 */
   1603     _flag_k = FK_CMP;
   1604     PUSH32(esp, esi); /* 0x36063F16: push esi */
   1605     esi = MEM32(0x361C2D2C); /* 0x36063F17: mov esi, dword ptr [0x361c2d2c] */
   1606     PUSH32(esp, edi); /* 0x36063F1D: push edi */
   1607     edi = MEM32(esi + 0x4); /* 0x36063F1E: mov edi, dword ptr [esi + 4] */
   1608     eax = ebp + 0x8; /* 0x36063F21: lea eax, [ebp + 8] */
   1609     PUSH32(esp, eax); /* 0x36063F24: push eax */
   1610     ecx = esi; /* 0x36063F25: mov ecx, esi */
   1611     RECOMP_ICALL(0x360E39D0u); /* 0x36063F27: call 0x360e39d0 */ /* not lifted */
   1612     RECOMP_FLAGS_IN();
   1613     esi = MEM32(esi + 0x4); /* 0x36063F2C: mov esi, dword ptr [esi + 4] */
   1614     /* cmp eax, esi */ /* 0x36063F2F: cmp eax, esi */
   1615     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   1616     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1617     _flag_k = FK_CMP;
   1618     edx = MEM32(ebp + 0x8); /* 0x36063F31: mov edx, dword ptr [ebp + 8] */
   1619     MEM32(ebp + (-0x4)) = eax; /* 0x36063F34: mov dword ptr [ebp - 4], eax */
   1620     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063F43; /* 0x36063F37: je 0x36063f43 */
   1621 L_36063F39:
   1622     /* cmp edx, MEM32(eax + 0xC) */ /* 0x36063F39: cmp edx, dword ptr [eax + 0xc] */
   1623     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   1624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1625     _flag_k = FK_CMP;
   1626     if (CMP_B(_flag_a, _flag_b)) goto L_36063F43; /* 0x36063F3C: jb 0x36063f43 */
   1627 L_36063F3E:
   1628     eax = ebp + (-0x4); /* 0x36063F3E: lea eax, [ebp - 4] */
   1629     goto L_36063F49; /* 0x36063F41: jmp 0x36063f49 */
   1630 L_36063F43:
   1631     MEM32(ebp + (-0xC)) = esi; /* 0x36063F43: mov dword ptr [ebp - 0xc], esi */
   1632     eax = ebp + (-0xC); /* 0x36063F46: lea eax, [ebp - 0xc] */
   1633 L_36063F49:
   1634     /* cmp MEM32(eax), edi */ /* 0x36063F49: cmp dword ptr [eax], edi */
   1635     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(edi);
   1636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1637     _flag_k = FK_CMP;
   1638     edi = POP32_VAL(esp); /* 0x36063F4B: pop edi */
   1639     esi = POP32_VAL(esp); /* 0x36063F4C: pop esi */
   1640     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063F60; /* 0x36063F4D: je 0x36063f60 */
   1641 L_36063F4F:
   1642     ecx = MEM32(ebp + 0xC); /* 0x36063F4F: mov ecx, dword ptr [ebp + 0xc] */
   1643     /* test ecx, ecx */ /* 0x36063F52: test ecx, ecx */
   1644     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1645     _cf = 0;
   1646     _flag_k = FK_TEST;
   1647     if (TEST_Z(_flag_a, _flag_b)) goto L_36063F8D; /* 0x36063F54: je 0x36063f8d */
   1648 L_36063F56:
   1649     edx = MEM32(ecx); /* 0x36063F56: mov edx, dword ptr [ecx] */
   1650     PUSH32(esp, 1); /* 0x36063F58: push 1 */
   1651     RECOMP_ICALL(MEM32(edx)); /* 0x36063F5A: call dword ptr [edx] */
   1652     RECOMP_FLAGS_IN();
   1653     esp = ebp; /* 0x36063F5C: mov esp, ebp */
   1654     ebp = POP32_VAL(esp); /* 0x36063F5E: pop ebp */
   1655     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063F5F: ret  */
   1656 L_36063F60:
   1657     ecx = MEM32(0x361C2D2C); /* 0x36063F60: mov ecx, dword ptr [0x361c2d2c] */
   1658     eax = ebp + (-0x10); /* 0x36063F66: lea eax, [ebp - 0x10] */
   1659     MEM32(ebp + (-0x10)) = edx; /* 0x36063F69: mov dword ptr [ebp - 0x10], edx */
   1660     PUSH32(esp, eax); /* 0x36063F6C: push eax */
   1661     edx = ebp + (-0x8); /* 0x36063F6D: lea edx, [ebp - 8] */
   1662     PUSH32(esp, edx); /* 0x36063F70: push edx */
   1663     MEM32(ebp + (-0xC)) = 0; /* 0x36063F71: mov dword ptr [ebp - 0xc], 0 */
   1664     RECOMP_ICALL(0x361481F0u); /* 0x36063F78: call 0x361481f0 */ /* not lifted */
   1665     RECOMP_FLAGS_IN();
   1666     ecx = eax; /* 0x36063F7D: mov ecx, eax */
   1667     eax = MEM32(ecx); /* 0x36063F7F: mov eax, dword ptr [ecx] */
   1668     edx = MEM32(ecx + 0x4); /* 0x36063F81: mov edx, dword ptr [ecx + 4] */
   1669     ecx = MEM32(ebp + 0xC); /* 0x36063F84: mov ecx, dword ptr [ebp + 0xc] */
   1670     MEM32(ebp + (-0x14)) = edx; /* 0x36063F87: mov dword ptr [ebp - 0x14], edx */
   1671     MEM32(eax + 0x10) = ecx; /* 0x36063F8A: mov dword ptr [eax + 0x10], ecx */
   1672 L_36063F8D:
   1673     esp = ebp; /* 0x36063F8D: mov esp, ebp */
   1674     ebp = POP32_VAL(esp); /* 0x36063F8F: pop ebp */
   1675     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36063F90: ret  */
   1676     RECOMP_REGS_OUT();
   1677 }
   1678 
   1679 void sub_36063FA0(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(0x36063FA0u);
   1688 
   1689 L_36063FA0:
   1690     PUSH32(esp, ebp); /* 0x36063FA0: push ebp */
   1691     ebp = esp; /* 0x36063FA1: mov ebp, esp */
   1692     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1694     esp = esp - 8; /* 0x36063FA3: sub esp, 8 */
   1695     _flag_k = FK_CMP;
   1696     PUSH32(esp, ebx); /* 0x36063FA6: push ebx */
   1697     PUSH32(esp, esi); /* 0x36063FA7: push esi */
   1698     esi = MEM32(0x361C2D2C); /* 0x36063FA8: mov esi, dword ptr [0x361c2d2c] */
   1699     eax = MEM32(esi + 0x4); /* 0x36063FAE: mov eax, dword ptr [esi + 4] */
   1700     PUSH32(esp, edi); /* 0x36063FB1: push edi */
   1701     edi = MEM32(eax); /* 0x36063FB2: mov edi, dword ptr [eax] */
   1702     /* cmp edi, eax */ /* 0x36063FB4: cmp edi, eax */
   1703     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1705     _flag_k = FK_CMP;
   1706     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606400B; /* 0x36063FB6: je 0x3606400b */
   1707 L_36063FB8:
   1708     ecx = MEM32(edi + 0x10); /* 0x36063FB8: mov ecx, dword ptr [edi + 0x10] */
   1709     /* test ecx, ecx */ /* 0x36063FBB: test ecx, ecx */
   1710     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1711     _cf = 0;
   1712     _flag_k = FK_TEST;
   1713     if (TEST_Z(_flag_a, _flag_b)) goto L_36063FCB; /* 0x36063FBD: je 0x36063fcb */
   1714 L_36063FBF:
   1715     eax = MEM32(ecx); /* 0x36063FBF: mov eax, dword ptr [ecx] */
   1716     PUSH32(esp, 1); /* 0x36063FC1: push 1 */
   1717     RECOMP_ICALL(MEM32(eax)); /* 0x36063FC3: call dword ptr [eax] */
   1718     RECOMP_FLAGS_IN();
   1719     esi = MEM32(0x361C2D2C); /* 0x36063FC5: mov esi, dword ptr [0x361c2d2c] */
   1720 L_36063FCB:
   1721     eax = MEM32(edi + 0x8); /* 0x36063FCB: mov eax, dword ptr [edi + 8] */
   1722     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x36063FCE: mov cl, byte ptr [eax + 0x15] */
   1723     /* test LO8(ecx), LO8(ecx) */ /* 0x36063FD1: test cl, cl */
   1724     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1725     _cf = 0;
   1726     _flag_k = FK_NARROW(FK_TEST, 24);
   1727     if (TEST_NZ(_flag_a, _flag_b)) goto L_36063FED; /* 0x36063FD3: jne 0x36063fed */
   1728 L_36063FD5:
   1729     edi = eax; /* 0x36063FD5: mov edi, eax */
   1730     eax = MEM32(edi); /* 0x36063FD7: mov eax, dword ptr [edi] */
   1731     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x36063FD9: mov cl, byte ptr [eax + 0x15] */
   1732     /* test LO8(ecx), LO8(ecx) */ /* 0x36063FDC: test cl, cl */
   1733     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1734     _cf = 0;
   1735     _flag_k = FK_NARROW(FK_TEST, 24);
   1736     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064006; /* 0x36063FDE: jne 0x36064006 */
   1737 L_36063FE0:
   1738     edi = eax; /* 0x36063FE0: mov edi, eax */
   1739     eax = MEM32(edi); /* 0x36063FE2: mov eax, dword ptr [edi] */
   1740     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x36063FE4: mov cl, byte ptr [eax + 0x15] */
   1741     /* test LO8(ecx), LO8(ecx) */ /* 0x36063FE7: test cl, cl */
   1742     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1743     _cf = 0;
   1744     _flag_k = FK_NARROW(FK_TEST, 24);
   1745     RECOMP_BACKEDGE();
   1746     if (TEST_Z(_flag_a, _flag_b)) goto L_36063FE0; /* 0x36063FE9: je 0x36063fe0 */
   1747 L_36063FEB:
   1748     goto L_36064006; /* 0x36063FEB: jmp 0x36064006 */
   1749 L_36063FED:
   1750     eax = MEM32(edi + 0x4); /* 0x36063FED: mov eax, dword ptr [edi + 4] */
   1751     /* cmp edi, MEM32(eax + 0x8) */ /* 0x36063FF0: cmp edi, dword ptr [eax + 8] */
   1752     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1753     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1754     _flag_k = FK_CMP;
   1755     if (CMP_NE(_flag_a, _flag_b)) goto L_36063FFF; /* 0x36063FF3: jne 0x36063fff */
   1756 L_36063FF5:
   1757     edi = eax; /* 0x36063FF5: mov edi, eax */
   1758     eax = MEM32(eax + 0x4); /* 0x36063FF7: mov eax, dword ptr [eax + 4] */
   1759     /* cmp edi, MEM32(eax + 0x8) */ /* 0x36063FFA: cmp edi, dword ptr [eax + 8] */
   1760     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1762     _flag_k = FK_CMP;
   1763     RECOMP_BACKEDGE();
   1764     if (CMP_EQ(_flag_a, _flag_b)) goto L_36063FF5; /* 0x36063FFD: je 0x36063ff5 */
   1765 L_36063FFF:
   1766     /* cmp MEM32(edi + 0x8), eax */ /* 0x36063FFF: cmp dword ptr [edi + 8], eax */
   1767     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(eax);
   1768     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1769     _flag_k = FK_CMP;
   1770     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064006; /* 0x36064002: je 0x36064006 */
   1771 L_36064004:
   1772     edi = eax; /* 0x36064004: mov edi, eax */
   1773 L_36064006:
   1774     /* cmp edi, MEM32(esi + 0x4) */ /* 0x36064006: cmp edi, dword ptr [esi + 4] */
   1775     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x4));
   1776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1777     _flag_k = FK_CMP;
   1778     RECOMP_BACKEDGE();
   1779     if (CMP_NE(_flag_a, _flag_b)) goto L_36063FB8; /* 0x36064009: jne 0x36063fb8 */
   1780 L_3606400B:
   1781     edi = MEM32(esi + 0x4); /* 0x3606400B: mov edi, dword ptr [esi + 4] */
   1782     ecx = MEM32(esi + 0x10); /* 0x3606400E: mov ecx, dword ptr [esi + 0x10] */
   1783     /* test ecx, ecx */ /* 0x36064011: test ecx, ecx */
   1784     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1785     _cf = 0;
   1786     _flag_k = FK_TEST;
   1787     eax = MEM32(edi); /* 0x36064013: mov eax, dword ptr [edi] */
   1788     MEM32(ebp + (-0x4)) = eax; /* 0x36064015: mov dword ptr [ebp - 4], eax */
   1789     if (TEST_Z(_flag_a, _flag_b)) goto L_3606406F; /* 0x36064018: je 0x3606406f */
   1790 L_3606401A:
   1791     ecx = eax; /* 0x3606401A: mov ecx, eax */
   1792     /* cmp eax, ecx */ /* 0x3606401C: cmp eax, ecx */
   1793     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1794     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1795     _flag_k = FK_CMP;
   1796     if (CMP_NE(_flag_a, _flag_b)) goto L_3606406F; /* 0x3606401E: jne 0x3606406f */
   1797 L_36064020:
   1798     /* cmp edi, edi */ /* 0x36064020: cmp edi, edi */
   1799     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1800     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1801     _flag_k = FK_CMP;
   1802     if (CMP_NE(_flag_a, _flag_b)) goto L_3606406F; /* 0x36064022: jne 0x3606406f */
   1803 L_36064024:
   1804     ebx = MEM32(edi + 0x4); /* 0x36064024: mov ebx, dword ptr [edi + 4] */
   1805     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36064027: cmp ebx, dword ptr [esi + 8] */
   1806     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1807     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1808     _flag_k = FK_CMP;
   1809     edi = ebx; /* 0x3606402A: mov edi, ebx */
   1810     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606404D; /* 0x3606402C: je 0x3606404d */
   1811 L_3606402E:
   1812     ecx = MEM32(edi + 0x8); /* 0x3606402E: mov ecx, dword ptr [edi + 8] */
   1813     PUSH32(esp, ecx); /* 0x36064031: push ecx */
   1814     ecx = esi; /* 0x36064032: mov ecx, esi */
   1815     RECOMP_ICALL(0x36064190u); /* 0x36064034: call 0x36064190 */ /* not lifted */
   1816     RECOMP_FLAGS_IN();
   1817     edi = MEM32(edi); /* 0x36064039: mov edi, dword ptr [edi] */
   1818     PUSH32(esp, ebx); /* 0x3606403B: push ebx */
   1819     RECOMP_ICALL(0x3615FCC4u); /* 0x3606403C: call 0x3615fcc4 */ /* not lifted */
   1820     RECOMP_FLAGS_IN();
   1821     eax = MEM32(esi + 0x8); /* 0x36064041: mov eax, dword ptr [esi + 8] */
   1822     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1823     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1824     esp = esp + 4; /* 0x36064044: add esp, 4 */
   1825     _flag_k = FK_ADD;
   1826     /* cmp edi, eax */ /* 0x36064047: cmp edi, eax */
   1827     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1829     _flag_k = FK_CMP;
   1830     ebx = edi; /* 0x36064049: mov ebx, edi */
   1831     RECOMP_BACKEDGE();
   1832     if (CMP_NE(_flag_a, _flag_b)) goto L_3606402E; /* 0x3606404B: jne 0x3606402e */
   1833 L_3606404D:
   1834     eax = MEM32(esi + 0x8); /* 0x3606404D: mov eax, dword ptr [esi + 8] */
   1835     edx = MEM32(esi + 0x4); /* 0x36064050: mov edx, dword ptr [esi + 4] */
   1836     MEM32(edx + 0x4) = eax; /* 0x36064053: mov dword ptr [edx + 4], eax */
   1837     eax = MEM32(esi + 0x4); /* 0x36064056: mov eax, dword ptr [esi + 4] */
   1838     MEM32(esi + 0x10) = 0; /* 0x36064059: mov dword ptr [esi + 0x10], 0 */
   1839     MEM32(eax) = eax; /* 0x36064060: mov dword ptr [eax], eax */
   1840     esi = MEM32(esi + 0x4); /* 0x36064062: mov esi, dword ptr [esi + 4] */
   1841     edi = POP32_VAL(esp); /* 0x36064065: pop edi */
   1842     MEM32(esi + 0x8) = esi; /* 0x36064066: mov dword ptr [esi + 8], esi */
   1843     esi = POP32_VAL(esp); /* 0x36064069: pop esi */
   1844     ebx = POP32_VAL(esp); /* 0x3606406A: pop ebx */
   1845     esp = ebp; /* 0x3606406B: mov esp, ebp */
   1846     ebp = POP32_VAL(esp); /* 0x3606406D: pop ebp */
   1847     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606406E: ret  */
   1848 L_3606406F:
   1849     /* cmp eax, edi */ /* 0x3606406F: cmp eax, edi */
   1850     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1851     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1852     _flag_k = FK_CMP;
   1853     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064090; /* 0x36064071: je 0x36064090 */
   1854 L_36064073:
   1855     ecx = ebp + (-0x4); /* 0x36064073: lea ecx, [ebp - 4] */
   1856     ebx = eax; /* 0x36064076: mov ebx, eax */
   1857     RECOMP_ICALL(0x36064140u); /* 0x36064078: call 0x36064140 */ /* not lifted */
   1858     RECOMP_FLAGS_IN();
   1859     PUSH32(esp, ebx); /* 0x3606407D: push ebx */
   1860     ecx = ebp + (-0x8); /* 0x3606407E: lea ecx, [ebp - 8] */
   1861     PUSH32(esp, ecx); /* 0x36064081: push ecx */
   1862     ecx = esi; /* 0x36064082: mov ecx, esi */
   1863     RECOMP_ICALL(0x360588E0u); /* 0x36064084: call 0x360588e0 */ /* not lifted */
   1864     RECOMP_FLAGS_IN();
   1865     eax = MEM32(ebp + (-0x4)); /* 0x36064089: mov eax, dword ptr [ebp - 4] */
   1866     /* cmp eax, edi */ /* 0x3606408C: cmp eax, edi */
   1867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1869     _flag_k = FK_CMP;
   1870     RECOMP_BACKEDGE();
   1871     if (CMP_NE(_flag_a, _flag_b)) goto L_36064073; /* 0x3606408E: jne 0x36064073 */
   1872 L_36064090:
   1873     edi = POP32_VAL(esp); /* 0x36064090: pop edi */
   1874     esi = POP32_VAL(esp); /* 0x36064091: pop esi */
   1875     ebx = POP32_VAL(esp); /* 0x36064092: pop ebx */
   1876     esp = ebp; /* 0x36064093: mov esp, ebp */
   1877     ebp = POP32_VAL(esp); /* 0x36064095: pop ebp */
   1878     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36064096: ret  */
   1879     RECOMP_REGS_OUT();
   1880 }
   1881 
   1882 void sub_360640A0(void) {
   1883     int _fpu_cmp = 0;
   1884     uint32_t _cf = 0;
   1885     int _df = 1;
   1886     uint32_t _flag_k = FK_NONE;
   1887     uint32_t _flag_a = 0, _flag_b = 0;
   1888     uint32_t _itail_tgt = 0;
   1889     RECOMP_REGS_LOCALS
   1890     RECOMP_ENTER(0x360640A0u);
   1891 
   1892 L_360640A0:
   1893     PUSH32(esp, ebp); /* 0x360640A0: push ebp */
   1894     ebp = esp; /* 0x360640A1: mov ebp, esp */
   1895     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1897     esp = esp - 8; /* 0x360640A3: sub esp, 8 */
   1898     _flag_k = FK_CMP;
   1899     PUSH32(esp, ebx); /* 0x360640A6: push ebx */
   1900     PUSH32(esp, esi); /* 0x360640A7: push esi */
   1901     esi = MEM32(0x361C2D2C); /* 0x360640A8: mov esi, dword ptr [0x361c2d2c] */
   1902     ecx = MEM32(esi + 0x10); /* 0x360640AE: mov ecx, dword ptr [esi + 0x10] */
   1903     /* test ecx, ecx */ /* 0x360640B1: test ecx, ecx */
   1904     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1905     _cf = 0;
   1906     _flag_k = FK_TEST;
   1907     PUSH32(esp, edi); /* 0x360640B3: push edi */
   1908     edi = MEM32(esi + 0x4); /* 0x360640B4: mov edi, dword ptr [esi + 4] */
   1909     eax = MEM32(edi); /* 0x360640B7: mov eax, dword ptr [edi] */
   1910     MEM32(ebp + (-0x4)) = eax; /* 0x360640B9: mov dword ptr [ebp - 4], eax */
   1911     if (TEST_Z(_flag_a, _flag_b)) goto L_36064113; /* 0x360640BC: je 0x36064113 */
   1912 L_360640BE:
   1913     ecx = eax; /* 0x360640BE: mov ecx, eax */
   1914     /* cmp eax, ecx */ /* 0x360640C0: cmp eax, ecx */
   1915     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1917     _flag_k = FK_CMP;
   1918     if (CMP_NE(_flag_a, _flag_b)) goto L_36064113; /* 0x360640C2: jne 0x36064113 */
   1919 L_360640C4:
   1920     /* cmp edi, edi */ /* 0x360640C4: cmp edi, edi */
   1921     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1923     _flag_k = FK_CMP;
   1924     if (CMP_NE(_flag_a, _flag_b)) goto L_36064113; /* 0x360640C6: jne 0x36064113 */
   1925 L_360640C8:
   1926     ebx = MEM32(edi + 0x4); /* 0x360640C8: mov ebx, dword ptr [edi + 4] */
   1927     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360640CB: cmp ebx, dword ptr [esi + 8] */
   1928     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1929     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1930     _flag_k = FK_CMP;
   1931     edi = ebx; /* 0x360640CE: mov edi, ebx */
   1932     if (CMP_EQ(_flag_a, _flag_b)) goto L_360640F1; /* 0x360640D0: je 0x360640f1 */
   1933 L_360640D2:
   1934     eax = MEM32(edi + 0x8); /* 0x360640D2: mov eax, dword ptr [edi + 8] */
   1935     PUSH32(esp, eax); /* 0x360640D5: push eax */
   1936     ecx = esi; /* 0x360640D6: mov ecx, esi */
   1937     RECOMP_ICALL(0x36064190u); /* 0x360640D8: call 0x36064190 */ /* not lifted */
   1938     RECOMP_FLAGS_IN();
   1939     edi = MEM32(edi); /* 0x360640DD: mov edi, dword ptr [edi] */
   1940     PUSH32(esp, ebx); /* 0x360640DF: push ebx */
   1941     RECOMP_ICALL(0x3615FCC4u); /* 0x360640E0: call 0x3615fcc4 */ /* not lifted */
   1942     RECOMP_FLAGS_IN();
   1943     eax = MEM32(esi + 0x8); /* 0x360640E5: mov eax, dword ptr [esi + 8] */
   1944     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1945     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1946     esp = esp + 4; /* 0x360640E8: add esp, 4 */
   1947     _flag_k = FK_ADD;
   1948     /* cmp edi, eax */ /* 0x360640EB: cmp edi, eax */
   1949     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1950     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1951     _flag_k = FK_CMP;
   1952     ebx = edi; /* 0x360640ED: mov ebx, edi */
   1953     RECOMP_BACKEDGE();
   1954     if (CMP_NE(_flag_a, _flag_b)) goto L_360640D2; /* 0x360640EF: jne 0x360640d2 */
   1955 L_360640F1:
   1956     ecx = MEM32(esi + 0x4); /* 0x360640F1: mov ecx, dword ptr [esi + 4] */
   1957     edx = MEM32(esi + 0x8); /* 0x360640F4: mov edx, dword ptr [esi + 8] */
   1958     MEM32(ecx + 0x4) = edx; /* 0x360640F7: mov dword ptr [ecx + 4], edx */
   1959     eax = MEM32(esi + 0x4); /* 0x360640FA: mov eax, dword ptr [esi + 4] */
   1960     MEM32(esi + 0x10) = 0; /* 0x360640FD: mov dword ptr [esi + 0x10], 0 */
   1961     MEM32(eax) = eax; /* 0x36064104: mov dword ptr [eax], eax */
   1962     esi = MEM32(esi + 0x4); /* 0x36064106: mov esi, dword ptr [esi + 4] */
   1963     edi = POP32_VAL(esp); /* 0x36064109: pop edi */
   1964     MEM32(esi + 0x8) = esi; /* 0x3606410A: mov dword ptr [esi + 8], esi */
   1965     esi = POP32_VAL(esp); /* 0x3606410D: pop esi */
   1966     ebx = POP32_VAL(esp); /* 0x3606410E: pop ebx */
   1967     esp = ebp; /* 0x3606410F: mov esp, ebp */
   1968     ebp = POP32_VAL(esp); /* 0x36064111: pop ebp */
   1969     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36064112: ret  */
   1970 L_36064113:
   1971     /* cmp eax, edi */ /* 0x36064113: cmp eax, edi */
   1972     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1973     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1974     _flag_k = FK_CMP;
   1975     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064134; /* 0x36064115: je 0x36064134 */
   1976 L_36064117:
   1977     ecx = ebp + (-0x4); /* 0x36064117: lea ecx, [ebp - 4] */
   1978     ebx = eax; /* 0x3606411A: mov ebx, eax */
   1979     RECOMP_ICALL(0x36064140u); /* 0x3606411C: call 0x36064140 */ /* not lifted */
   1980     RECOMP_FLAGS_IN();
   1981     PUSH32(esp, ebx); /* 0x36064121: push ebx */
   1982     eax = ebp + (-0x8); /* 0x36064122: lea eax, [ebp - 8] */
   1983     PUSH32(esp, eax); /* 0x36064125: push eax */
   1984     ecx = esi; /* 0x36064126: mov ecx, esi */
   1985     RECOMP_ICALL(0x360588E0u); /* 0x36064128: call 0x360588e0 */ /* not lifted */
   1986     RECOMP_FLAGS_IN();
   1987     eax = MEM32(ebp + (-0x4)); /* 0x3606412D: mov eax, dword ptr [ebp - 4] */
   1988     /* cmp eax, edi */ /* 0x36064130: cmp eax, edi */
   1989     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1991     _flag_k = FK_CMP;
   1992     RECOMP_BACKEDGE();
   1993     if (CMP_NE(_flag_a, _flag_b)) goto L_36064117; /* 0x36064132: jne 0x36064117 */
   1994 L_36064134:
   1995     edi = POP32_VAL(esp); /* 0x36064134: pop edi */
   1996     esi = POP32_VAL(esp); /* 0x36064135: pop esi */
   1997     ebx = POP32_VAL(esp); /* 0x36064136: pop ebx */
   1998     esp = ebp; /* 0x36064137: mov esp, ebp */
   1999     ebp = POP32_VAL(esp); /* 0x36064139: pop ebp */
   2000     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606413A: ret  */
   2001     RECOMP_REGS_OUT();
   2002 }
   2003 
   2004 void sub_36064140(void) {
   2005     int _fpu_cmp = 0;
   2006     uint32_t _cf = 0;
   2007     int _df = 1;
   2008     uint32_t _flag_k = FK_NONE;
   2009     uint32_t _flag_a = 0, _flag_b = 0;
   2010     uint32_t _itail_tgt = 0;
   2011     RECOMP_REGS_LOCALS
   2012     RECOMP_ENTER(0x36064140u);
   2013 
   2014 L_36064140:
   2015     eax = MEM32(ecx); /* 0x36064140: mov eax, dword ptr [ecx] */
   2016     edx = MEM32(eax + 0x8); /* 0x36064142: mov edx, dword ptr [eax + 8] */
   2017     PUSH32(esp, ebx); /* 0x36064145: push ebx */
   2018     SET_LO8(ebx, MEM8(edx + 0x15)); /* 0x36064146: mov bl, byte ptr [edx + 0x15] */
   2019     /* test LO8(ebx), LO8(ebx) */ /* 0x36064149: test bl, bl */
   2020     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2021     _cf = 0;
   2022     _flag_k = FK_NARROW(FK_TEST, 24);
   2023     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064165; /* 0x3606414B: jne 0x36064165 */
   2024 L_3606414D:
   2025     eax = MEM32(edx); /* 0x3606414D: mov eax, dword ptr [edx] */
   2026     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3606414F: mov bl, byte ptr [eax + 0x15] */
   2027     /* test LO8(ebx), LO8(ebx) */ /* 0x36064152: test bl, bl */
   2028     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2029     _cf = 0;
   2030     _flag_k = FK_NARROW(FK_TEST, 24);
   2031     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064161; /* 0x36064154: jne 0x36064161 */
   2032 L_36064156:
   2033     edx = eax; /* 0x36064156: mov edx, eax */
   2034     eax = MEM32(edx); /* 0x36064158: mov eax, dword ptr [edx] */
   2035     SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3606415A: mov bl, byte ptr [eax + 0x15] */
   2036     /* test LO8(ebx), LO8(ebx) */ /* 0x3606415D: test bl, bl */
   2037     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   2038     _cf = 0;
   2039     _flag_k = FK_NARROW(FK_TEST, 24);
   2040     RECOMP_BACKEDGE();
   2041     if (TEST_Z(_flag_a, _flag_b)) goto L_36064156; /* 0x3606415F: je 0x36064156 */
   2042 L_36064161:
   2043     MEM32(ecx) = edx; /* 0x36064161: mov dword ptr [ecx], edx */
   2044     ebx = POP32_VAL(esp); /* 0x36064163: pop ebx */
   2045     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36064164: ret  */
   2046 L_36064165:
   2047     eax = MEM32(eax + 0x4); /* 0x36064165: mov eax, dword ptr [eax + 4] */
   2048     edx = MEM32(ecx); /* 0x36064168: mov edx, dword ptr [ecx] */
   2049     /* cmp edx, MEM32(eax + 0x8) */ /* 0x3606416A: cmp edx, dword ptr [eax + 8] */
   2050     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2052     _flag_k = FK_CMP;
   2053     if (CMP_NE(_flag_a, _flag_b)) goto L_3606417B; /* 0x3606416D: jne 0x3606417b */
   2054 L_3606416F:
   2055     MEM32(ecx) = eax; /* 0x3606416F: mov dword ptr [ecx], eax */
   2056     eax = MEM32(eax + 0x4); /* 0x36064171: mov eax, dword ptr [eax + 4] */
   2057     edx = MEM32(ecx); /* 0x36064174: mov edx, dword ptr [ecx] */
   2058     /* cmp edx, MEM32(eax + 0x8) */ /* 0x36064176: cmp edx, dword ptr [eax + 8] */
   2059     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2060     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2061     _flag_k = FK_CMP;
   2062     RECOMP_BACKEDGE();
   2063     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606416F; /* 0x36064179: je 0x3606416f */
   2064 L_3606417B:
   2065     edx = MEM32(ecx); /* 0x3606417B: mov edx, dword ptr [ecx] */
   2066     /* cmp MEM32(edx + 0x8), eax */ /* 0x3606417D: cmp dword ptr [edx + 8], eax */
   2067     _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax);
   2068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2069     _flag_k = FK_CMP;
   2070     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064184; /* 0x36064180: je 0x36064184 */
   2071 L_36064182:
   2072     MEM32(ecx) = eax; /* 0x36064182: mov dword ptr [ecx], eax */
   2073 L_36064184:
   2074     ebx = POP32_VAL(esp); /* 0x36064184: pop ebx */
   2075     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36064185: ret  */
   2076     RECOMP_REGS_OUT();
   2077 }
   2078 
   2079 void sub_36064190(void) {
   2080     int _fpu_cmp = 0;
   2081     uint32_t _cf = 0;
   2082     int _df = 1;
   2083     uint32_t _flag_k = FK_NONE;
   2084     uint32_t _flag_a = 0, _flag_b = 0;
   2085     uint32_t _itail_tgt = 0;
   2086     RECOMP_REGS_LOCALS
   2087     RECOMP_ENTER(0x36064190u);
   2088 
   2089 L_36064190:
   2090     PUSH32(esp, ebp); /* 0x36064190: push ebp */
   2091     ebp = esp; /* 0x36064191: mov ebp, esp */
   2092     PUSH32(esp, ebx); /* 0x36064193: push ebx */
   2093     PUSH32(esp, esi); /* 0x36064194: push esi */
   2094     ebx = ecx; /* 0x36064195: mov ebx, ecx */
   2095     eax = MEM32(ebx + 0x8); /* 0x36064197: mov eax, dword ptr [ebx + 8] */
   2096     PUSH32(esp, edi); /* 0x3606419A: push edi */
   2097     edi = MEM32(ebp + 0x8); /* 0x3606419B: mov edi, dword ptr [ebp + 8] */
   2098     /* cmp edi, eax */ /* 0x3606419E: cmp edi, eax */
   2099     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2101     _flag_k = FK_CMP;
   2102     esi = edi; /* 0x360641A0: mov esi, edi */
   2103     if (CMP_EQ(_flag_a, _flag_b)) goto L_360641C3; /* 0x360641A2: je 0x360641c3 */
   2104 L_360641A4:
   2105     eax = MEM32(esi + 0x8); /* 0x360641A4: mov eax, dword ptr [esi + 8] */
   2106     PUSH32(esp, eax); /* 0x360641A7: push eax */
   2107     ecx = ebx; /* 0x360641A8: mov ecx, ebx */
   2108     RECOMP_ICALL(0x36064190u); /* 0x360641AA: call 0x36064190 */ /* not lifted */
   2109     RECOMP_FLAGS_IN();
   2110     esi = MEM32(esi); /* 0x360641AF: mov esi, dword ptr [esi] */
   2111     PUSH32(esp, edi); /* 0x360641B1: push edi */
   2112     RECOMP_ICALL(0x3615FCC4u); /* 0x360641B2: call 0x3615fcc4 */ /* not lifted */
   2113     RECOMP_FLAGS_IN();
   2114     eax = MEM32(ebx + 0x8); /* 0x360641B7: mov eax, dword ptr [ebx + 8] */
   2115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2117     esp = esp + 4; /* 0x360641BA: add esp, 4 */
   2118     _flag_k = FK_ADD;
   2119     /* cmp esi, eax */ /* 0x360641BD: cmp esi, eax */
   2120     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2121     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2122     _flag_k = FK_CMP;
   2123     edi = esi; /* 0x360641BF: mov edi, esi */
   2124     RECOMP_BACKEDGE();
   2125     if (CMP_NE(_flag_a, _flag_b)) goto L_360641A4; /* 0x360641C1: jne 0x360641a4 */
   2126 L_360641C3:
   2127     edi = POP32_VAL(esp); /* 0x360641C3: pop edi */
   2128     esi = POP32_VAL(esp); /* 0x360641C4: pop esi */
   2129     ebx = POP32_VAL(esp); /* 0x360641C5: pop ebx */
   2130     ebp = POP32_VAL(esp); /* 0x360641C6: pop ebp */
   2131     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360641C7: ret 4 */
   2132     RECOMP_REGS_OUT();
   2133 }
   2134 
   2135 void sub_360641D0(void) {
   2136     int _fpu_cmp = 0;
   2137     uint32_t _cf = 0;
   2138     int _df = 1;
   2139     uint32_t _flag_k = FK_NONE;
   2140     uint32_t _flag_a = 0, _flag_b = 0;
   2141     uint32_t _itail_tgt = 0;
   2142     RECOMP_REGS_LOCALS
   2143     RECOMP_ENTER(0x360641D0u);
   2144 
   2145 L_360641D0:
   2146     PUSH32(esp, ebp); /* 0x360641D0: push ebp */
   2147     ebp = esp; /* 0x360641D1: mov ebp, esp */
   2148     edx = MEM32(ecx); /* 0x360641D3: mov edx, dword ptr [ecx] */
   2149     eax = MEM32(edx); /* 0x360641D5: mov eax, dword ptr [edx] */
   2150     MEM32(ecx) = eax; /* 0x360641D7: mov dword ptr [ecx], eax */
   2151     eax = MEM32(ebp + 0x8); /* 0x360641D9: mov eax, dword ptr [ebp + 8] */
   2152     MEM32(eax) = edx; /* 0x360641DC: mov dword ptr [eax], edx */
   2153     ebp = POP32_VAL(esp); /* 0x360641DE: pop ebp */
   2154     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360641DF: ret 8 */
   2155     RECOMP_REGS_OUT();
   2156 }
   2157 
   2158 void sub_360641F0(void) {
   2159     int _fpu_cmp = 0;
   2160     uint32_t _cf = 0;
   2161     int _df = 1;
   2162     uint32_t _flag_k = FK_NONE;
   2163     uint32_t _flag_a = 0, _flag_b = 0;
   2164     uint32_t _itail_tgt = 0;
   2165     RECOMP_REGS_LOCALS
   2166     RECOMP_ENTER(0x360641F0u);
   2167 
   2168 L_360641F0:
   2169     PUSH32(esp, ebp); /* 0x360641F0: push ebp */
   2170     ebp = esp; /* 0x360641F1: mov ebp, esp */
   2171     PUSH32(esp, ecx); /* 0x360641F3: push ecx */
   2172     PUSH32(esp, ebx); /* 0x360641F4: push ebx */
   2173     PUSH32(esp, esi); /* 0x360641F5: push esi */
   2174     PUSH32(esp, edi); /* 0x360641F6: push edi */
   2175     PUSH32(esp, 0x18u); /* 0x360641F7: push 0x18 */
   2176     esi = ecx; /* 0x360641F9: mov esi, ecx */
   2177     RECOMP_ICALL(0x3615FD6Au); /* 0x360641FB: call 0x3615fd6a */ /* not lifted */
   2178     RECOMP_FLAGS_IN();
   2179     edi = MEM32(ebp + 0x10); /* 0x36064200: mov edi, dword ptr [ebp + 0x10] */
   2180     ebx = MEM32(ebp + 0x14); /* 0x36064203: mov ebx, dword ptr [ebp + 0x14] */
   2181     MEM32(eax + 0x4) = edi; /* 0x36064206: mov dword ptr [eax + 4], edi */
   2182     MEM8(eax + 0x14) = (uint8_t)(0); /* 0x36064209: mov byte ptr [eax + 0x14], 0 */
   2183     MEM8(eax + 0x15) = (uint8_t)(0); /* 0x3606420D: mov byte ptr [eax + 0x15], 0 */
   2184     ecx = MEM32(esi + 0x8); /* 0x36064211: mov ecx, dword ptr [esi + 8] */
   2185     MEM32(eax) = ecx; /* 0x36064214: mov dword ptr [eax], ecx */
   2186     edx = MEM32(esi + 0x8); /* 0x36064216: mov edx, dword ptr [esi + 8] */
   2187     MEM32(ebp + (-0x4)) = eax; /* 0x36064219: mov dword ptr [ebp - 4], eax */
   2188     MEM32(eax + 0x8) = edx; /* 0x3606421C: mov dword ptr [eax + 8], edx */
   2189     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu);
   2190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2191     eax = eax + 0xCu; /* 0x3606421F: add eax, 0xc */
   2192     _flag_k = FK_ADD;
   2193     PUSH32(esp, ebx); /* 0x36064222: push ebx */
   2194     PUSH32(esp, eax); /* 0x36064223: push eax */
   2195     RECOMP_ICALL(0x36059750u); /* 0x36064224: call 0x36059750 */ /* not lifted */
   2196     RECOMP_FLAGS_IN();
   2197     ecx = MEM32(esi + 0x10); /* 0x36064229: mov ecx, dword ptr [esi + 0x10] */
   2198     eax = MEM32(esi + 0x4); /* 0x3606422C: mov eax, dword ptr [esi + 4] */
   2199     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2200     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2201     esp = esp + 0xCu; /* 0x3606422F: add esp, 0xc */
   2202     _flag_k = FK_ADD;
   2203     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   2204     ecx = ecx + 1; /* 0x36064232: inc ecx */
   2205     _flag_k = FK_INC;
   2206     /* cmp edi, eax */ /* 0x36064233: cmp edi, eax */
   2207     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2209     _flag_k = FK_CMP;
   2210     MEM32(esi + 0x10) = ecx; /* 0x36064235: mov dword ptr [esi + 0x10], ecx */
   2211     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606425C; /* 0x36064238: je 0x3606425c */
   2212 L_3606423A:
   2213     eax = MEM32(ebp + 0xC); /* 0x3606423A: mov eax, dword ptr [ebp + 0xc] */
   2214     /* cmp eax, MEM32(esi + 0x8) */ /* 0x3606423D: cmp eax, dword ptr [esi + 8] */
   2215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2217     _flag_k = FK_CMP;
   2218     if (CMP_NE(_flag_a, _flag_b)) goto L_3606425C; /* 0x36064240: jne 0x3606425c */
   2219 L_36064242:
   2220     ecx = MEM32(ebx); /* 0x36064242: mov ecx, dword ptr [ebx] */
   2221     /* cmp ecx, MEM32(edi + 0xC) */ /* 0x36064244: cmp ecx, dword ptr [edi + 0xc] */
   2222     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC));
   2223     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2224     _flag_k = FK_CMP;
   2225     if (CMP_B(_flag_a, _flag_b)) goto L_3606425C; /* 0x36064247: jb 0x3606425c */
   2226 L_36064249:
   2227     ecx = MEM32(ebp + (-0x4)); /* 0x36064249: mov ecx, dword ptr [ebp - 4] */
   2228     MEM32(edi + 0x8) = ecx; /* 0x3606424C: mov dword ptr [edi + 8], ecx */
   2229     eax = MEM32(esi + 0x4); /* 0x3606424F: mov eax, dword ptr [esi + 4] */
   2230     /* cmp edi, MEM32(eax + 0x8) */ /* 0x36064252: cmp edi, dword ptr [eax + 8] */
   2231     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   2232     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2233     _flag_k = FK_CMP;
   2234     if (CMP_NE(_flag_a, _flag_b)) goto L_3606427C; /* 0x36064255: jne 0x3606427c */
   2235 L_36064257:
   2236     MEM32(eax + 0x8) = ecx; /* 0x36064257: mov dword ptr [eax + 8], ecx */
   2237     goto L_3606427C; /* 0x3606425A: jmp 0x3606427c */
   2238 L_3606425C:
   2239     ecx = MEM32(ebp + (-0x4)); /* 0x3606425C: mov ecx, dword ptr [ebp - 4] */
   2240     MEM32(edi) = ecx; /* 0x3606425F: mov dword ptr [edi], ecx */
   2241     eax = MEM32(esi + 0x4); /* 0x36064261: mov eax, dword ptr [esi + 4] */
   2242     /* cmp edi, eax */ /* 0x36064264: cmp edi, eax */
   2243     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2244     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2245     _flag_k = FK_CMP;
   2246     if (CMP_NE(_flag_a, _flag_b)) goto L_36064273; /* 0x36064266: jne 0x36064273 */
   2247 L_36064268:
   2248     MEM32(eax + 0x4) = ecx; /* 0x36064268: mov dword ptr [eax + 4], ecx */
   2249     edx = MEM32(esi + 0x4); /* 0x3606426B: mov edx, dword ptr [esi + 4] */
   2250     MEM32(edx + 0x8) = ecx; /* 0x3606426E: mov dword ptr [edx + 8], ecx */
   2251     goto L_3606427C; /* 0x36064271: jmp 0x3606427c */
   2252 L_36064273:
   2253     /* cmp edi, MEM32(eax) */ /* 0x36064273: cmp edi, dword ptr [eax] */
   2254     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax));
   2255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2256     _flag_k = FK_CMP;
   2257     if (CMP_NE(_flag_a, _flag_b)) goto L_3606427C; /* 0x36064275: jne 0x3606427c */
   2258 L_36064277:
   2259     ecx = MEM32(ebp + (-0x4)); /* 0x36064277: mov ecx, dword ptr [ebp - 4] */
   2260     MEM32(eax) = ecx; /* 0x3606427A: mov dword ptr [eax], ecx */
   2261 L_3606427C:
   2262     edx = MEM32(esi + 0x4); /* 0x3606427C: mov edx, dword ptr [esi + 4] */
   2263     eax = MEM32(ebp + (-0x4)); /* 0x3606427F: mov eax, dword ptr [ebp - 4] */
   2264     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064282: cmp eax, dword ptr [edx + 4] */
   2265     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2266     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2267     _flag_k = FK_CMP;
   2268     SET_LO8(ebx, 1); /* 0x36064285: mov bl, 1 */
   2269     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064287: je 0x3606440d */
   2270 L_3606428D:
   2271     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   2272     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   2273     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   2274     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2275     _cf = 0;
   2276     _flag_k = FK_NARROW(FK_TEST, 24);
   2277     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   2278 L_3606429B:
   2279     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   2280     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   2281     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   2282     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2283     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2284     _flag_k = FK_CMP;
   2285     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   2286 L_360642A8:
   2287     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   2288     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   2289     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2290     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2291     _flag_k = FK_NARROW(FK_CMP, 24);
   2292     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   2293 L_360642B1:
   2294     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   2295     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   2296     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   2297     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   2298     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   2299     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   2300     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   2301     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   2302 L_360642CC:
   2303     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   2304     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2305     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2306     _flag_k = FK_CMP;
   2307     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   2308 L_360642D1:
   2309     eax = ecx; /* 0x360642D1: mov eax, ecx */
   2310     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   2311     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   2312     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   2313     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   2314     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   2315     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2317     _flag_k = FK_CMP;
   2318     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   2319 L_360642E2:
   2320     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   2321 L_360642E5:
   2322     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   2323     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   2324     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   2325     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   2326     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2327     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2328     _flag_k = FK_CMP;
   2329     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   2330 L_360642F3:
   2331     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   2332     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   2333 L_360642F8:
   2334     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   2335     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   2336     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2337     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2338     _flag_k = FK_CMP;
   2339     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   2340 L_360642FF:
   2341     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   2342     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   2343 L_36064303:
   2344     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   2345 L_36064306:
   2346     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   2347     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   2348 L_3606430B:
   2349     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   2350     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   2351     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   2352     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   2353     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   2354     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   2355     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   2356     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   2357     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   2358     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   2359     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   2360     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   2361     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2363     _flag_k = FK_CMP;
   2364     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   2365 L_36064330:
   2366     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   2367 L_36064333:
   2368     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   2369     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   2370     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   2371     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   2372     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2374     _flag_k = FK_CMP;
   2375     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   2376 L_36064341:
   2377     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   2378     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   2379     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   2380 L_3606434C:
   2381     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   2382     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   2383     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2385     _flag_k = FK_CMP;
   2386     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   2387 L_36064354:
   2388     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   2389     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   2390     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   2391 L_3606435F:
   2392     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   2393     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   2394     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   2395 L_36064369:
   2396     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   2397     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2399     _flag_k = FK_NARROW(FK_CMP, 24);
   2400     RECOMP_BACKEDGE();
   2401     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   2402 L_36064373:
   2403     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   2404     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2405     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2406     _flag_k = FK_CMP;
   2407     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   2408 L_36064377:
   2409     eax = ecx; /* 0x36064377: mov eax, ecx */
   2410     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   2411     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   2412     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   2413     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   2414     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   2415     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2417     _flag_k = FK_CMP;
   2418     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   2419 L_36064388:
   2420     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   2421 L_3606438B:
   2422     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   2423     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   2424     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   2425     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   2426     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2428     _flag_k = FK_CMP;
   2429     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   2430 L_36064399:
   2431     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   2432     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   2433 L_3606439E:
   2434     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   2435     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   2436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2438     _flag_k = FK_CMP;
   2439     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   2440 L_360643A6:
   2441     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   2442     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   2443 L_360643AB:
   2444     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   2445 L_360643AD:
   2446     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   2447     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   2448 L_360643B3:
   2449     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   2450     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   2451     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   2452     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   2453     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   2454     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   2455     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   2456     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   2457     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   2458     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   2459     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   2460     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   2461     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2462     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2463     _flag_k = FK_CMP;
   2464     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   2465 L_360643D8:
   2466     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   2467 L_360643DB:
   2468     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   2469     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   2470     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   2471     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   2472     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2473     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2474     _flag_k = FK_CMP;
   2475     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   2476 L_360643E9:
   2477     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   2478     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   2479 L_360643EE:
   2480     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   2481     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   2482     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2483     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2484     _flag_k = FK_CMP;
   2485     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   2486 L_360643F5:
   2487     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   2488     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   2489 L_360643F9:
   2490     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   2491 L_360643FC:
   2492     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   2493 L_360643FE:
   2494     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   2495 L_36064401:
   2496     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   2497     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   2498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2500     _flag_k = FK_CMP;
   2501     RECOMP_BACKEDGE();
   2502     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   2503 L_3606440D:
   2504     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   2505     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   2506     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   2507     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   2508     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   2509     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   2510     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   2511     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   2512     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   2513     esp = ebp; /* 0x36064421: mov esp, ebp */
   2514     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   2515     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   2516     RECOMP_REGS_OUT();
   2517 }
   2518 
   2519 void sub_3606428D(void) {
   2520     int _fpu_cmp = 0;
   2521     uint32_t _cf = 0;
   2522     int _df = 1;
   2523     uint32_t _flag_k = FK_NONE;
   2524     uint32_t _flag_a = 0, _flag_b = 0;
   2525     uint32_t _itail_tgt = 0;
   2526     RECOMP_REGS_LOCALS
   2527     RECOMP_ENTER(0x3606428Du);
   2528 
   2529 L_3606428D:
   2530     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   2531     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   2532     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   2533     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2534     _cf = 0;
   2535     _flag_k = FK_NARROW(FK_TEST, 24);
   2536     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   2537 L_3606429B:
   2538     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   2539     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   2540     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   2541     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2542     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2543     _flag_k = FK_CMP;
   2544     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   2545 L_360642A8:
   2546     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   2547     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   2548     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2550     _flag_k = FK_NARROW(FK_CMP, 24);
   2551     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   2552 L_360642B1:
   2553     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   2554     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   2555     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   2556     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   2557     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   2558     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   2559     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   2560     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   2561 L_360642CC:
   2562     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   2563     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2565     _flag_k = FK_CMP;
   2566     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   2567 L_360642D1:
   2568     eax = ecx; /* 0x360642D1: mov eax, ecx */
   2569     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   2570     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   2571     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   2572     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   2573     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   2574     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2576     _flag_k = FK_CMP;
   2577     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   2578 L_360642E2:
   2579     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   2580 L_360642E5:
   2581     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   2582     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   2583     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   2584     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   2585     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2587     _flag_k = FK_CMP;
   2588     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   2589 L_360642F3:
   2590     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   2591     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   2592 L_360642F8:
   2593     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   2594     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   2595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2597     _flag_k = FK_CMP;
   2598     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   2599 L_360642FF:
   2600     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   2601     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   2602 L_36064303:
   2603     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   2604 L_36064306:
   2605     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   2606     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   2607 L_3606430B:
   2608     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   2609     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   2610     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   2611     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   2612     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   2613     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   2614     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   2615     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   2616     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   2617     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   2618     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   2619     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   2620     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2622     _flag_k = FK_CMP;
   2623     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   2624 L_36064330:
   2625     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   2626 L_36064333:
   2627     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   2628     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   2629     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   2630     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   2631     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2632     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2633     _flag_k = FK_CMP;
   2634     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   2635 L_36064341:
   2636     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   2637     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   2638     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   2639 L_3606434C:
   2640     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   2641     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   2642     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2644     _flag_k = FK_CMP;
   2645     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   2646 L_36064354:
   2647     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   2648     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   2649     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   2650 L_3606435F:
   2651     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   2652     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   2653     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   2654 L_36064369:
   2655     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   2656     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2658     _flag_k = FK_NARROW(FK_CMP, 24);
   2659     RECOMP_BACKEDGE();
   2660     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   2661 L_36064373:
   2662     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   2663     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2664     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2665     _flag_k = FK_CMP;
   2666     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   2667 L_36064377:
   2668     eax = ecx; /* 0x36064377: mov eax, ecx */
   2669     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   2670     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   2671     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   2672     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   2673     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   2674     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2676     _flag_k = FK_CMP;
   2677     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   2678 L_36064388:
   2679     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   2680 L_3606438B:
   2681     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   2682     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   2683     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   2684     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   2685     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2686     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2687     _flag_k = FK_CMP;
   2688     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   2689 L_36064399:
   2690     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   2691     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   2692 L_3606439E:
   2693     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   2694     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   2695     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2696     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2697     _flag_k = FK_CMP;
   2698     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   2699 L_360643A6:
   2700     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   2701     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   2702 L_360643AB:
   2703     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   2704 L_360643AD:
   2705     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   2706     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   2707 L_360643B3:
   2708     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   2709     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   2710     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   2711     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   2712     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   2713     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   2714     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   2715     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   2716     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   2717     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   2718     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   2719     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   2720     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2721     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2722     _flag_k = FK_CMP;
   2723     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   2724 L_360643D8:
   2725     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   2726 L_360643DB:
   2727     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   2728     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   2729     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   2730     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   2731     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2733     _flag_k = FK_CMP;
   2734     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   2735 L_360643E9:
   2736     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   2737     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   2738 L_360643EE:
   2739     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   2740     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   2741     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   2742     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2743     _flag_k = FK_CMP;
   2744     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   2745 L_360643F5:
   2746     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   2747     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   2748 L_360643F9:
   2749     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   2750 L_360643FC:
   2751     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   2752 L_360643FE:
   2753     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   2754 L_36064401:
   2755     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   2756     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   2757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   2758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2759     _flag_k = FK_CMP;
   2760     RECOMP_BACKEDGE();
   2761     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   2762 L_3606440D:
   2763     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   2764     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   2765     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   2766     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   2767     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   2768     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   2769     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   2770     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   2771     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   2772     esp = ebp; /* 0x36064421: mov esp, ebp */
   2773     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   2774     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   2775     RECOMP_REGS_OUT();
   2776 }
   2777 
   2778 void sub_360642B1(void) {
   2779     int _fpu_cmp = 0;
   2780     uint32_t _cf = 0;
   2781     int _df = 1;
   2782     uint32_t _flag_k = FK_NONE;
   2783     uint32_t _flag_a = 0, _flag_b = 0;
   2784     uint32_t _itail_tgt = 0;
   2785     RECOMP_REGS_LOCALS
   2786     RECOMP_ENTER(0x360642B1u);
   2787 
   2788     goto L_360642B1;
   2789 L_3606428D:
   2790     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   2791     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   2792     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   2793     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   2794     _cf = 0;
   2795     _flag_k = FK_NARROW(FK_TEST, 24);
   2796     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   2797 L_3606429B:
   2798     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   2799     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   2800     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   2801     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2803     _flag_k = FK_CMP;
   2804     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   2805 L_360642A8:
   2806     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   2807     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   2808     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2809     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2810     _flag_k = FK_NARROW(FK_CMP, 24);
   2811     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   2812 L_360642B1:
   2813     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   2814     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   2815     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   2816     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   2817     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   2818     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   2819     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   2820     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   2821 L_360642CC:
   2822     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   2823     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   2824     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2825     _flag_k = FK_CMP;
   2826     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   2827 L_360642D1:
   2828     eax = ecx; /* 0x360642D1: mov eax, ecx */
   2829     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   2830     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   2831     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   2832     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   2833     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   2834     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2835     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2836     _flag_k = FK_CMP;
   2837     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   2838 L_360642E2:
   2839     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   2840 L_360642E5:
   2841     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   2842     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   2843     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   2844     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   2845     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2847     _flag_k = FK_CMP;
   2848     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   2849 L_360642F3:
   2850     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   2851     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   2852 L_360642F8:
   2853     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   2854     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   2855     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   2856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2857     _flag_k = FK_CMP;
   2858     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   2859 L_360642FF:
   2860     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   2861     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   2862 L_36064303:
   2863     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   2864 L_36064306:
   2865     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   2866     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   2867 L_3606430B:
   2868     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   2869     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   2870     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   2871     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   2872     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   2873     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   2874     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   2875     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   2876     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   2877     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   2878     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   2879     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   2880     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2882     _flag_k = FK_CMP;
   2883     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   2884 L_36064330:
   2885     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   2886 L_36064333:
   2887     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   2888     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   2889     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   2890     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   2891     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2892     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2893     _flag_k = FK_CMP;
   2894     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   2895 L_36064341:
   2896     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   2897     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   2898     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   2899 L_3606434C:
   2900     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   2901     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   2902     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   2903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2904     _flag_k = FK_CMP;
   2905     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   2906 L_36064354:
   2907     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   2908     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   2909     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   2910 L_3606435F:
   2911     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   2912     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   2913     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   2914 L_36064369:
   2915     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   2916     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   2917     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2918     _flag_k = FK_NARROW(FK_CMP, 24);
   2919     RECOMP_BACKEDGE();
   2920     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   2921 L_36064373:
   2922     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   2923     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   2924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2925     _flag_k = FK_CMP;
   2926     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   2927 L_36064377:
   2928     eax = ecx; /* 0x36064377: mov eax, ecx */
   2929     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   2930     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   2931     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   2932     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   2933     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   2934     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2935     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2936     _flag_k = FK_CMP;
   2937     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   2938 L_36064388:
   2939     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   2940 L_3606438B:
   2941     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   2942     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   2943     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   2944     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   2945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   2946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2947     _flag_k = FK_CMP;
   2948     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   2949 L_36064399:
   2950     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   2951     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   2952 L_3606439E:
   2953     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   2954     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   2955     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   2956     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2957     _flag_k = FK_CMP;
   2958     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   2959 L_360643A6:
   2960     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   2961     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   2962 L_360643AB:
   2963     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   2964 L_360643AD:
   2965     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   2966     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   2967 L_360643B3:
   2968     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   2969     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   2970     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   2971     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   2972     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   2973     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   2974     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   2975     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   2976     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   2977     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   2978     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   2979     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   2980     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2981     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2982     _flag_k = FK_CMP;
   2983     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   2984 L_360643D8:
   2985     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   2986 L_360643DB:
   2987     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   2988     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   2989     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   2990     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   2991     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   2992     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2993     _flag_k = FK_CMP;
   2994     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   2995 L_360643E9:
   2996     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   2997     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   2998 L_360643EE:
   2999     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   3000     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   3001     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3003     _flag_k = FK_CMP;
   3004     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   3005 L_360643F5:
   3006     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   3007     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   3008 L_360643F9:
   3009     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   3010 L_360643FC:
   3011     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   3012 L_360643FE:
   3013     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   3014 L_36064401:
   3015     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   3016     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   3017     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3018     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3019     _flag_k = FK_CMP;
   3020     RECOMP_BACKEDGE();
   3021     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   3022 L_3606440D:
   3023     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   3024     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   3025     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   3026     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   3027     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   3028     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   3029     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   3030     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   3031     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   3032     esp = ebp; /* 0x36064421: mov esp, ebp */
   3033     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   3034     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   3035     RECOMP_REGS_OUT();
   3036 }
   3037 
   3038 void sub_36064306(void) {
   3039     int _fpu_cmp = 0;
   3040     uint32_t _cf = 0;
   3041     int _df = 1;
   3042     uint32_t _flag_k = FK_NONE;
   3043     uint32_t _flag_a = 0, _flag_b = 0;
   3044     uint32_t _itail_tgt = 0;
   3045     RECOMP_REGS_LOCALS
   3046     RECOMP_ENTER(0x36064306u);
   3047 
   3048     goto L_36064306;
   3049 L_3606428D:
   3050     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   3051     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   3052     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   3053     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3054     _cf = 0;
   3055     _flag_k = FK_NARROW(FK_TEST, 24);
   3056     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   3057 L_3606429B:
   3058     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   3059     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   3060     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   3061     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3063     _flag_k = FK_CMP;
   3064     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   3065 L_360642A8:
   3066     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   3067     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   3068     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3069     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3070     _flag_k = FK_NARROW(FK_CMP, 24);
   3071     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   3072 L_360642B1:
   3073     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   3074     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   3075     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   3076     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   3077     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   3078     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   3079     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   3080     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   3081 L_360642CC:
   3082     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   3083     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3084     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3085     _flag_k = FK_CMP;
   3086     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   3087 L_360642D1:
   3088     eax = ecx; /* 0x360642D1: mov eax, ecx */
   3089     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   3090     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   3091     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   3092     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   3093     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   3094     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3096     _flag_k = FK_CMP;
   3097     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   3098 L_360642E2:
   3099     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   3100 L_360642E5:
   3101     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   3102     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   3103     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   3104     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   3105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3107     _flag_k = FK_CMP;
   3108     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   3109 L_360642F3:
   3110     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   3111     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   3112 L_360642F8:
   3113     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   3114     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   3115     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3116     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3117     _flag_k = FK_CMP;
   3118     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   3119 L_360642FF:
   3120     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   3121     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   3122 L_36064303:
   3123     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   3124 L_36064306:
   3125     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   3126     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   3127 L_3606430B:
   3128     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   3129     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   3130     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   3131     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   3132     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   3133     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   3134     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   3135     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   3136     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   3137     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   3138     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   3139     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   3140     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3141     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3142     _flag_k = FK_CMP;
   3143     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   3144 L_36064330:
   3145     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   3146 L_36064333:
   3147     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   3148     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   3149     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   3150     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   3151     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3153     _flag_k = FK_CMP;
   3154     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   3155 L_36064341:
   3156     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   3157     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   3158     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   3159 L_3606434C:
   3160     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   3161     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   3162     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3163     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3164     _flag_k = FK_CMP;
   3165     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   3166 L_36064354:
   3167     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   3168     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   3169     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   3170 L_3606435F:
   3171     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   3172     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   3173     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   3174 L_36064369:
   3175     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   3176     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3177     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3178     _flag_k = FK_NARROW(FK_CMP, 24);
   3179     RECOMP_BACKEDGE();
   3180     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   3181 L_36064373:
   3182     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   3183     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3184     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3185     _flag_k = FK_CMP;
   3186     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   3187 L_36064377:
   3188     eax = ecx; /* 0x36064377: mov eax, ecx */
   3189     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   3190     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   3191     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   3192     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   3193     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   3194     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3196     _flag_k = FK_CMP;
   3197     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   3198 L_36064388:
   3199     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   3200 L_3606438B:
   3201     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   3202     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   3203     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   3204     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   3205     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3206     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3207     _flag_k = FK_CMP;
   3208     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   3209 L_36064399:
   3210     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   3211     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   3212 L_3606439E:
   3213     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   3214     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   3215     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3216     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3217     _flag_k = FK_CMP;
   3218     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   3219 L_360643A6:
   3220     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   3221     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   3222 L_360643AB:
   3223     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   3224 L_360643AD:
   3225     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   3226     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   3227 L_360643B3:
   3228     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   3229     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   3230     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   3231     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   3232     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   3233     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   3234     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   3235     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   3236     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   3237     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   3238     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   3239     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   3240     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3241     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3242     _flag_k = FK_CMP;
   3243     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   3244 L_360643D8:
   3245     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   3246 L_360643DB:
   3247     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   3248     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   3249     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   3250     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   3251     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3253     _flag_k = FK_CMP;
   3254     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   3255 L_360643E9:
   3256     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   3257     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   3258 L_360643EE:
   3259     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   3260     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   3261     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3263     _flag_k = FK_CMP;
   3264     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   3265 L_360643F5:
   3266     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   3267     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   3268 L_360643F9:
   3269     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   3270 L_360643FC:
   3271     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   3272 L_360643FE:
   3273     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   3274 L_36064401:
   3275     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   3276     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   3277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3278     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3279     _flag_k = FK_CMP;
   3280     RECOMP_BACKEDGE();
   3281     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   3282 L_3606440D:
   3283     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   3284     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   3285     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   3286     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   3287     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   3288     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   3289     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   3290     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   3291     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   3292     esp = ebp; /* 0x36064421: mov esp, ebp */
   3293     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   3294     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   3295     RECOMP_REGS_OUT();
   3296 }
   3297 
   3298 void sub_3606430B(void) {
   3299     int _fpu_cmp = 0;
   3300     uint32_t _cf = 0;
   3301     int _df = 1;
   3302     uint32_t _flag_k = FK_NONE;
   3303     uint32_t _flag_a = 0, _flag_b = 0;
   3304     uint32_t _itail_tgt = 0;
   3305     RECOMP_REGS_LOCALS
   3306     RECOMP_ENTER(0x3606430Bu);
   3307 
   3308     goto L_3606430B;
   3309 L_3606428D:
   3310     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   3311     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   3312     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   3313     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3314     _cf = 0;
   3315     _flag_k = FK_NARROW(FK_TEST, 24);
   3316     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   3317 L_3606429B:
   3318     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   3319     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   3320     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   3321     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3322     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3323     _flag_k = FK_CMP;
   3324     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   3325 L_360642A8:
   3326     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   3327     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   3328     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3330     _flag_k = FK_NARROW(FK_CMP, 24);
   3331     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   3332 L_360642B1:
   3333     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   3334     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   3335     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   3336     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   3337     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   3338     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   3339     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   3340     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   3341 L_360642CC:
   3342     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   3343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3344     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3345     _flag_k = FK_CMP;
   3346     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   3347 L_360642D1:
   3348     eax = ecx; /* 0x360642D1: mov eax, ecx */
   3349     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   3350     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   3351     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   3352     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   3353     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   3354     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3355     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3356     _flag_k = FK_CMP;
   3357     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   3358 L_360642E2:
   3359     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   3360 L_360642E5:
   3361     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   3362     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   3363     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   3364     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   3365     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3366     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3367     _flag_k = FK_CMP;
   3368     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   3369 L_360642F3:
   3370     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   3371     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   3372 L_360642F8:
   3373     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   3374     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   3375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3377     _flag_k = FK_CMP;
   3378     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   3379 L_360642FF:
   3380     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   3381     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   3382 L_36064303:
   3383     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   3384 L_36064306:
   3385     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   3386     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   3387 L_3606430B:
   3388     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   3389     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   3390     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   3391     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   3392     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   3393     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   3394     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   3395     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   3396     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   3397     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   3398     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   3399     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   3400     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3401     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3402     _flag_k = FK_CMP;
   3403     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   3404 L_36064330:
   3405     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   3406 L_36064333:
   3407     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   3408     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   3409     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   3410     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   3411     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3412     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3413     _flag_k = FK_CMP;
   3414     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   3415 L_36064341:
   3416     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   3417     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   3418     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   3419 L_3606434C:
   3420     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   3421     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   3422     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3423     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3424     _flag_k = FK_CMP;
   3425     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   3426 L_36064354:
   3427     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   3428     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   3429     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   3430 L_3606435F:
   3431     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   3432     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   3433     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   3434 L_36064369:
   3435     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   3436     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3438     _flag_k = FK_NARROW(FK_CMP, 24);
   3439     RECOMP_BACKEDGE();
   3440     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   3441 L_36064373:
   3442     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   3443     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3445     _flag_k = FK_CMP;
   3446     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   3447 L_36064377:
   3448     eax = ecx; /* 0x36064377: mov eax, ecx */
   3449     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   3450     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   3451     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   3452     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   3453     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   3454     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3456     _flag_k = FK_CMP;
   3457     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   3458 L_36064388:
   3459     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   3460 L_3606438B:
   3461     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   3462     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   3463     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   3464     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   3465     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3466     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3467     _flag_k = FK_CMP;
   3468     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   3469 L_36064399:
   3470     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   3471     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   3472 L_3606439E:
   3473     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   3474     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   3475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3476     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3477     _flag_k = FK_CMP;
   3478     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   3479 L_360643A6:
   3480     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   3481     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   3482 L_360643AB:
   3483     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   3484 L_360643AD:
   3485     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   3486     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   3487 L_360643B3:
   3488     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   3489     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   3490     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   3491     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   3492     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   3493     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   3494     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   3495     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   3496     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   3497     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   3498     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   3499     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   3500     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3502     _flag_k = FK_CMP;
   3503     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   3504 L_360643D8:
   3505     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   3506 L_360643DB:
   3507     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   3508     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   3509     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   3510     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   3511     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3513     _flag_k = FK_CMP;
   3514     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   3515 L_360643E9:
   3516     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   3517     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   3518 L_360643EE:
   3519     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   3520     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   3521     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3523     _flag_k = FK_CMP;
   3524     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   3525 L_360643F5:
   3526     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   3527     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   3528 L_360643F9:
   3529     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   3530 L_360643FC:
   3531     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   3532 L_360643FE:
   3533     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   3534 L_36064401:
   3535     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   3536     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   3537     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3538     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3539     _flag_k = FK_CMP;
   3540     RECOMP_BACKEDGE();
   3541     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   3542 L_3606440D:
   3543     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   3544     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   3545     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   3546     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   3547     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   3548     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   3549     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   3550     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   3551     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   3552     esp = ebp; /* 0x36064421: mov esp, ebp */
   3553     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   3554     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   3555     RECOMP_REGS_OUT();
   3556 }
   3557 
   3558 void sub_36064369(void) {
   3559     int _fpu_cmp = 0;
   3560     uint32_t _cf = 0;
   3561     int _df = 1;
   3562     uint32_t _flag_k = FK_NONE;
   3563     uint32_t _flag_a = 0, _flag_b = 0;
   3564     uint32_t _itail_tgt = 0;
   3565     RECOMP_REGS_LOCALS
   3566     RECOMP_ENTER(0x36064369u);
   3567 
   3568     goto L_36064369;
   3569 L_3606428D:
   3570     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   3571     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   3572     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   3573     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3574     _cf = 0;
   3575     _flag_k = FK_NARROW(FK_TEST, 24);
   3576     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   3577 L_3606429B:
   3578     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   3579     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   3580     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   3581     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3583     _flag_k = FK_CMP;
   3584     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   3585 L_360642A8:
   3586     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   3587     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   3588     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3590     _flag_k = FK_NARROW(FK_CMP, 24);
   3591     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   3592 L_360642B1:
   3593     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   3594     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   3595     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   3596     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   3597     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   3598     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   3599     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   3600     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   3601 L_360642CC:
   3602     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   3603     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3605     _flag_k = FK_CMP;
   3606     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   3607 L_360642D1:
   3608     eax = ecx; /* 0x360642D1: mov eax, ecx */
   3609     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   3610     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   3611     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   3612     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   3613     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   3614     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3616     _flag_k = FK_CMP;
   3617     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   3618 L_360642E2:
   3619     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   3620 L_360642E5:
   3621     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   3622     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   3623     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   3624     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   3625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3627     _flag_k = FK_CMP;
   3628     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   3629 L_360642F3:
   3630     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   3631     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   3632 L_360642F8:
   3633     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   3634     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   3635     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3637     _flag_k = FK_CMP;
   3638     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   3639 L_360642FF:
   3640     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   3641     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   3642 L_36064303:
   3643     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   3644 L_36064306:
   3645     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   3646     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   3647 L_3606430B:
   3648     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   3649     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   3650     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   3651     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   3652     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   3653     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   3654     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   3655     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   3656     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   3657     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   3658     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   3659     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   3660     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3662     _flag_k = FK_CMP;
   3663     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   3664 L_36064330:
   3665     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   3666 L_36064333:
   3667     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   3668     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   3669     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   3670     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   3671     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3672     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3673     _flag_k = FK_CMP;
   3674     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   3675 L_36064341:
   3676     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   3677     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   3678     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   3679 L_3606434C:
   3680     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   3681     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   3682     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3684     _flag_k = FK_CMP;
   3685     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   3686 L_36064354:
   3687     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   3688     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   3689     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   3690 L_3606435F:
   3691     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   3692     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   3693     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   3694 L_36064369:
   3695     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   3696     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3697     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3698     _flag_k = FK_NARROW(FK_CMP, 24);
   3699     RECOMP_BACKEDGE();
   3700     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   3701 L_36064373:
   3702     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   3703     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3704     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3705     _flag_k = FK_CMP;
   3706     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   3707 L_36064377:
   3708     eax = ecx; /* 0x36064377: mov eax, ecx */
   3709     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   3710     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   3711     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   3712     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   3713     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   3714     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3716     _flag_k = FK_CMP;
   3717     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   3718 L_36064388:
   3719     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   3720 L_3606438B:
   3721     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   3722     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   3723     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   3724     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   3725     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3726     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3727     _flag_k = FK_CMP;
   3728     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   3729 L_36064399:
   3730     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   3731     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   3732 L_3606439E:
   3733     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   3734     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   3735     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3736     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3737     _flag_k = FK_CMP;
   3738     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   3739 L_360643A6:
   3740     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   3741     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   3742 L_360643AB:
   3743     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   3744 L_360643AD:
   3745     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   3746     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   3747 L_360643B3:
   3748     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   3749     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   3750     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   3751     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   3752     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   3753     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   3754     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   3755     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   3756     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   3757     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   3758     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   3759     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   3760     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3762     _flag_k = FK_CMP;
   3763     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   3764 L_360643D8:
   3765     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   3766 L_360643DB:
   3767     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   3768     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   3769     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   3770     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   3771     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3772     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3773     _flag_k = FK_CMP;
   3774     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   3775 L_360643E9:
   3776     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   3777     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   3778 L_360643EE:
   3779     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   3780     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   3781     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   3782     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3783     _flag_k = FK_CMP;
   3784     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   3785 L_360643F5:
   3786     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   3787     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   3788 L_360643F9:
   3789     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   3790 L_360643FC:
   3791     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   3792 L_360643FE:
   3793     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   3794 L_36064401:
   3795     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   3796     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   3797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   3798     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3799     _flag_k = FK_CMP;
   3800     RECOMP_BACKEDGE();
   3801     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   3802 L_3606440D:
   3803     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   3804     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   3805     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   3806     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   3807     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   3808     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   3809     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   3810     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   3811     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   3812     esp = ebp; /* 0x36064421: mov esp, ebp */
   3813     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   3814     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   3815     RECOMP_REGS_OUT();
   3816 }
   3817 
   3818 void sub_360643AD(void) {
   3819     int _fpu_cmp = 0;
   3820     uint32_t _cf = 0;
   3821     int _df = 1;
   3822     uint32_t _flag_k = FK_NONE;
   3823     uint32_t _flag_a = 0, _flag_b = 0;
   3824     uint32_t _itail_tgt = 0;
   3825     RECOMP_REGS_LOCALS
   3826     RECOMP_ENTER(0x360643ADu);
   3827 
   3828     goto L_360643AD;
   3829 L_3606428D:
   3830     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   3831     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   3832     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   3833     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   3834     _cf = 0;
   3835     _flag_k = FK_NARROW(FK_TEST, 24);
   3836     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   3837 L_3606429B:
   3838     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   3839     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   3840     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   3841     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   3842     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3843     _flag_k = FK_CMP;
   3844     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   3845 L_360642A8:
   3846     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   3847     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   3848     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3850     _flag_k = FK_NARROW(FK_CMP, 24);
   3851     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   3852 L_360642B1:
   3853     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   3854     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   3855     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   3856     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   3857     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   3858     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   3859     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   3860     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   3861 L_360642CC:
   3862     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   3863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   3864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3865     _flag_k = FK_CMP;
   3866     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   3867 L_360642D1:
   3868     eax = ecx; /* 0x360642D1: mov eax, ecx */
   3869     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   3870     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   3871     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   3872     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   3873     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   3874     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3875     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3876     _flag_k = FK_CMP;
   3877     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   3878 L_360642E2:
   3879     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   3880 L_360642E5:
   3881     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   3882     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   3883     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   3884     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   3885     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3886     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3887     _flag_k = FK_CMP;
   3888     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   3889 L_360642F3:
   3890     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   3891     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   3892 L_360642F8:
   3893     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   3894     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   3895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   3896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3897     _flag_k = FK_CMP;
   3898     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   3899 L_360642FF:
   3900     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   3901     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   3902 L_36064303:
   3903     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   3904 L_36064306:
   3905     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   3906     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   3907 L_3606430B:
   3908     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   3909     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   3910     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   3911     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   3912     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   3913     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   3914     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   3915     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   3916     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   3917     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   3918     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   3919     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   3920     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3921     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3922     _flag_k = FK_CMP;
   3923     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   3924 L_36064330:
   3925     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   3926 L_36064333:
   3927     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   3928     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   3929     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   3930     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   3931     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   3932     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3933     _flag_k = FK_CMP;
   3934     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   3935 L_36064341:
   3936     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   3937     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   3938     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   3939 L_3606434C:
   3940     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   3941     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   3942     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   3943     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3944     _flag_k = FK_CMP;
   3945     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   3946 L_36064354:
   3947     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   3948     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   3949     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   3950 L_3606435F:
   3951     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   3952     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   3953     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   3954 L_36064369:
   3955     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   3956     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   3957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3958     _flag_k = FK_NARROW(FK_CMP, 24);
   3959     RECOMP_BACKEDGE();
   3960     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   3961 L_36064373:
   3962     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   3963     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   3964     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3965     _flag_k = FK_CMP;
   3966     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   3967 L_36064377:
   3968     eax = ecx; /* 0x36064377: mov eax, ecx */
   3969     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   3970     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   3971     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   3972     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   3973     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   3974     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3975     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3976     _flag_k = FK_CMP;
   3977     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   3978 L_36064388:
   3979     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   3980 L_3606438B:
   3981     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   3982     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   3983     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   3984     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   3985     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   3986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3987     _flag_k = FK_CMP;
   3988     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   3989 L_36064399:
   3990     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   3991     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   3992 L_3606439E:
   3993     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   3994     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   3995     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   3996     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3997     _flag_k = FK_CMP;
   3998     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   3999 L_360643A6:
   4000     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   4001     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   4002 L_360643AB:
   4003     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   4004 L_360643AD:
   4005     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   4006     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   4007 L_360643B3:
   4008     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   4009     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   4010     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   4011     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   4012     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   4013     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   4014     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   4015     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   4016     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   4017     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   4018     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   4019     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   4020     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4021     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4022     _flag_k = FK_CMP;
   4023     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   4024 L_360643D8:
   4025     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   4026 L_360643DB:
   4027     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   4028     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   4029     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   4030     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   4031     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4033     _flag_k = FK_CMP;
   4034     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   4035 L_360643E9:
   4036     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   4037     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   4038 L_360643EE:
   4039     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   4040     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   4041     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4043     _flag_k = FK_CMP;
   4044     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   4045 L_360643F5:
   4046     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   4047     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   4048 L_360643F9:
   4049     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   4050 L_360643FC:
   4051     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   4052 L_360643FE:
   4053     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   4054 L_36064401:
   4055     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   4056     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   4057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4059     _flag_k = FK_CMP;
   4060     RECOMP_BACKEDGE();
   4061     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   4062 L_3606440D:
   4063     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   4064     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   4065     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   4066     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   4067     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   4068     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   4069     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   4070     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   4071     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   4072     esp = ebp; /* 0x36064421: mov esp, ebp */
   4073     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   4074     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   4075     RECOMP_REGS_OUT();
   4076 }
   4077 
   4078 void sub_360643B3(void) {
   4079     int _fpu_cmp = 0;
   4080     uint32_t _cf = 0;
   4081     int _df = 1;
   4082     uint32_t _flag_k = FK_NONE;
   4083     uint32_t _flag_a = 0, _flag_b = 0;
   4084     uint32_t _itail_tgt = 0;
   4085     RECOMP_REGS_LOCALS
   4086     RECOMP_ENTER(0x360643B3u);
   4087 
   4088     goto L_360643B3;
   4089 L_3606428D:
   4090     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   4091     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   4092     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   4093     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4094     _cf = 0;
   4095     _flag_k = FK_NARROW(FK_TEST, 24);
   4096     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   4097 L_3606429B:
   4098     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   4099     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   4100     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   4101     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4103     _flag_k = FK_CMP;
   4104     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   4105 L_360642A8:
   4106     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   4107     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   4108     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4109     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4110     _flag_k = FK_NARROW(FK_CMP, 24);
   4111     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   4112 L_360642B1:
   4113     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   4114     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   4115     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   4116     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   4117     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   4118     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   4119     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   4120     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   4121 L_360642CC:
   4122     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   4123     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4124     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4125     _flag_k = FK_CMP;
   4126     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   4127 L_360642D1:
   4128     eax = ecx; /* 0x360642D1: mov eax, ecx */
   4129     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   4130     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   4131     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   4132     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   4133     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   4134     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4136     _flag_k = FK_CMP;
   4137     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   4138 L_360642E2:
   4139     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   4140 L_360642E5:
   4141     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   4142     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   4143     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   4144     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   4145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4147     _flag_k = FK_CMP;
   4148     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   4149 L_360642F3:
   4150     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   4151     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   4152 L_360642F8:
   4153     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   4154     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   4155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4157     _flag_k = FK_CMP;
   4158     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   4159 L_360642FF:
   4160     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   4161     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   4162 L_36064303:
   4163     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   4164 L_36064306:
   4165     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   4166     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   4167 L_3606430B:
   4168     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   4169     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   4170     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   4171     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   4172     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   4173     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   4174     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   4175     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   4176     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   4177     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   4178     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   4179     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   4180     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4181     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4182     _flag_k = FK_CMP;
   4183     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   4184 L_36064330:
   4185     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   4186 L_36064333:
   4187     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   4188     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   4189     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   4190     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   4191     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4192     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4193     _flag_k = FK_CMP;
   4194     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   4195 L_36064341:
   4196     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   4197     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   4198     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   4199 L_3606434C:
   4200     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   4201     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   4202     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4203     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4204     _flag_k = FK_CMP;
   4205     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   4206 L_36064354:
   4207     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   4208     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   4209     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   4210 L_3606435F:
   4211     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   4212     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   4213     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   4214 L_36064369:
   4215     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   4216     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4217     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4218     _flag_k = FK_NARROW(FK_CMP, 24);
   4219     RECOMP_BACKEDGE();
   4220     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   4221 L_36064373:
   4222     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   4223     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4224     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4225     _flag_k = FK_CMP;
   4226     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   4227 L_36064377:
   4228     eax = ecx; /* 0x36064377: mov eax, ecx */
   4229     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   4230     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   4231     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   4232     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   4233     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   4234     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4236     _flag_k = FK_CMP;
   4237     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   4238 L_36064388:
   4239     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   4240 L_3606438B:
   4241     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   4242     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   4243     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   4244     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   4245     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4246     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4247     _flag_k = FK_CMP;
   4248     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   4249 L_36064399:
   4250     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   4251     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   4252 L_3606439E:
   4253     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   4254     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   4255     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4257     _flag_k = FK_CMP;
   4258     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   4259 L_360643A6:
   4260     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   4261     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   4262 L_360643AB:
   4263     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   4264 L_360643AD:
   4265     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   4266     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   4267 L_360643B3:
   4268     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   4269     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   4270     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   4271     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   4272     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   4273     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   4274     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   4275     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   4276     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   4277     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   4278     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   4279     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   4280     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4281     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4282     _flag_k = FK_CMP;
   4283     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   4284 L_360643D8:
   4285     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   4286 L_360643DB:
   4287     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   4288     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   4289     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   4290     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   4291     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4292     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4293     _flag_k = FK_CMP;
   4294     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   4295 L_360643E9:
   4296     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   4297     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   4298 L_360643EE:
   4299     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   4300     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   4301     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4303     _flag_k = FK_CMP;
   4304     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   4305 L_360643F5:
   4306     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   4307     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   4308 L_360643F9:
   4309     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   4310 L_360643FC:
   4311     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   4312 L_360643FE:
   4313     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   4314 L_36064401:
   4315     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   4316     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   4317     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4319     _flag_k = FK_CMP;
   4320     RECOMP_BACKEDGE();
   4321     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   4322 L_3606440D:
   4323     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   4324     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   4325     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   4326     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   4327     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   4328     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   4329     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   4330     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   4331     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   4332     esp = ebp; /* 0x36064421: mov esp, ebp */
   4333     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   4334     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   4335     RECOMP_REGS_OUT();
   4336 }
   4337 
   4338 void sub_360643FC(void) {
   4339     int _fpu_cmp = 0;
   4340     uint32_t _cf = 0;
   4341     int _df = 1;
   4342     uint32_t _flag_k = FK_NONE;
   4343     uint32_t _flag_a = 0, _flag_b = 0;
   4344     uint32_t _itail_tgt = 0;
   4345     RECOMP_REGS_LOCALS
   4346     RECOMP_ENTER(0x360643FCu);
   4347 
   4348     goto L_360643FC;
   4349 L_3606428D:
   4350     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   4351     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   4352     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   4353     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4354     _cf = 0;
   4355     _flag_k = FK_NARROW(FK_TEST, 24);
   4356     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   4357 L_3606429B:
   4358     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   4359     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   4360     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   4361     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4362     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4363     _flag_k = FK_CMP;
   4364     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   4365 L_360642A8:
   4366     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   4367     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   4368     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4370     _flag_k = FK_NARROW(FK_CMP, 24);
   4371     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   4372 L_360642B1:
   4373     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   4374     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   4375     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   4376     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   4377     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   4378     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   4379     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   4380     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   4381 L_360642CC:
   4382     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   4383     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4384     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4385     _flag_k = FK_CMP;
   4386     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   4387 L_360642D1:
   4388     eax = ecx; /* 0x360642D1: mov eax, ecx */
   4389     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   4390     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   4391     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   4392     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   4393     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   4394     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4395     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4396     _flag_k = FK_CMP;
   4397     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   4398 L_360642E2:
   4399     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   4400 L_360642E5:
   4401     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   4402     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   4403     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   4404     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   4405     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4407     _flag_k = FK_CMP;
   4408     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   4409 L_360642F3:
   4410     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   4411     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   4412 L_360642F8:
   4413     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   4414     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   4415     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4416     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4417     _flag_k = FK_CMP;
   4418     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   4419 L_360642FF:
   4420     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   4421     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   4422 L_36064303:
   4423     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   4424 L_36064306:
   4425     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   4426     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   4427 L_3606430B:
   4428     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   4429     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   4430     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   4431     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   4432     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   4433     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   4434     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   4435     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   4436     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   4437     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   4438     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   4439     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   4440     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4441     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4442     _flag_k = FK_CMP;
   4443     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   4444 L_36064330:
   4445     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   4446 L_36064333:
   4447     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   4448     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   4449     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   4450     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   4451     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4453     _flag_k = FK_CMP;
   4454     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   4455 L_36064341:
   4456     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   4457     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   4458     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   4459 L_3606434C:
   4460     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   4461     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   4462     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4463     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4464     _flag_k = FK_CMP;
   4465     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   4466 L_36064354:
   4467     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   4468     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   4469     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   4470 L_3606435F:
   4471     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   4472     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   4473     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   4474 L_36064369:
   4475     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   4476     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4477     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4478     _flag_k = FK_NARROW(FK_CMP, 24);
   4479     RECOMP_BACKEDGE();
   4480     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   4481 L_36064373:
   4482     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   4483     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4484     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4485     _flag_k = FK_CMP;
   4486     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   4487 L_36064377:
   4488     eax = ecx; /* 0x36064377: mov eax, ecx */
   4489     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   4490     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   4491     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   4492     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   4493     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   4494     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4495     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4496     _flag_k = FK_CMP;
   4497     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   4498 L_36064388:
   4499     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   4500 L_3606438B:
   4501     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   4502     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   4503     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   4504     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   4505     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4507     _flag_k = FK_CMP;
   4508     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   4509 L_36064399:
   4510     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   4511     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   4512 L_3606439E:
   4513     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   4514     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   4515     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4516     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4517     _flag_k = FK_CMP;
   4518     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   4519 L_360643A6:
   4520     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   4521     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   4522 L_360643AB:
   4523     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   4524 L_360643AD:
   4525     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   4526     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   4527 L_360643B3:
   4528     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   4529     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   4530     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   4531     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   4532     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   4533     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   4534     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   4535     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   4536     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   4537     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   4538     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   4539     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   4540     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4541     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4542     _flag_k = FK_CMP;
   4543     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   4544 L_360643D8:
   4545     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   4546 L_360643DB:
   4547     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   4548     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   4549     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   4550     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   4551     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4552     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4553     _flag_k = FK_CMP;
   4554     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   4555 L_360643E9:
   4556     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   4557     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   4558 L_360643EE:
   4559     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   4560     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   4561     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4563     _flag_k = FK_CMP;
   4564     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   4565 L_360643F5:
   4566     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   4567     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   4568 L_360643F9:
   4569     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   4570 L_360643FC:
   4571     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   4572 L_360643FE:
   4573     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   4574 L_36064401:
   4575     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   4576     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   4577     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4578     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4579     _flag_k = FK_CMP;
   4580     RECOMP_BACKEDGE();
   4581     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   4582 L_3606440D:
   4583     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   4584     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   4585     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   4586     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   4587     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   4588     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   4589     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   4590     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   4591     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   4592     esp = ebp; /* 0x36064421: mov esp, ebp */
   4593     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   4594     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   4595     RECOMP_REGS_OUT();
   4596 }
   4597 
   4598 void sub_360643FE(void) {
   4599     int _fpu_cmp = 0;
   4600     uint32_t _cf = 0;
   4601     int _df = 1;
   4602     uint32_t _flag_k = FK_NONE;
   4603     uint32_t _flag_a = 0, _flag_b = 0;
   4604     uint32_t _itail_tgt = 0;
   4605     RECOMP_REGS_LOCALS
   4606     RECOMP_ENTER(0x360643FEu);
   4607 
   4608     goto L_360643FE;
   4609 L_3606428D:
   4610     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   4611     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   4612     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   4613     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4614     _cf = 0;
   4615     _flag_k = FK_NARROW(FK_TEST, 24);
   4616     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   4617 L_3606429B:
   4618     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   4619     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   4620     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   4621     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4623     _flag_k = FK_CMP;
   4624     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   4625 L_360642A8:
   4626     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   4627     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   4628     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4630     _flag_k = FK_NARROW(FK_CMP, 24);
   4631     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   4632 L_360642B1:
   4633     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   4634     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   4635     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   4636     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   4637     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   4638     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   4639     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   4640     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   4641 L_360642CC:
   4642     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   4643     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4644     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4645     _flag_k = FK_CMP;
   4646     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   4647 L_360642D1:
   4648     eax = ecx; /* 0x360642D1: mov eax, ecx */
   4649     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   4650     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   4651     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   4652     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   4653     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   4654     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4655     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4656     _flag_k = FK_CMP;
   4657     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   4658 L_360642E2:
   4659     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   4660 L_360642E5:
   4661     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   4662     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   4663     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   4664     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   4665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4667     _flag_k = FK_CMP;
   4668     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   4669 L_360642F3:
   4670     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   4671     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   4672 L_360642F8:
   4673     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   4674     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   4675     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4677     _flag_k = FK_CMP;
   4678     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   4679 L_360642FF:
   4680     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   4681     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   4682 L_36064303:
   4683     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   4684 L_36064306:
   4685     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   4686     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   4687 L_3606430B:
   4688     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   4689     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   4690     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   4691     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   4692     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   4693     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   4694     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   4695     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   4696     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   4697     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   4698     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   4699     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   4700     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4702     _flag_k = FK_CMP;
   4703     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   4704 L_36064330:
   4705     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   4706 L_36064333:
   4707     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   4708     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   4709     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   4710     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   4711     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4712     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4713     _flag_k = FK_CMP;
   4714     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   4715 L_36064341:
   4716     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   4717     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   4718     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   4719 L_3606434C:
   4720     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   4721     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   4722     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4724     _flag_k = FK_CMP;
   4725     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   4726 L_36064354:
   4727     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   4728     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   4729     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   4730 L_3606435F:
   4731     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   4732     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   4733     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   4734 L_36064369:
   4735     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   4736     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4738     _flag_k = FK_NARROW(FK_CMP, 24);
   4739     RECOMP_BACKEDGE();
   4740     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   4741 L_36064373:
   4742     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   4743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   4744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4745     _flag_k = FK_CMP;
   4746     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   4747 L_36064377:
   4748     eax = ecx; /* 0x36064377: mov eax, ecx */
   4749     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   4750     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   4751     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   4752     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   4753     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   4754     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4755     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4756     _flag_k = FK_CMP;
   4757     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   4758 L_36064388:
   4759     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   4760 L_3606438B:
   4761     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   4762     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   4763     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   4764     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   4765     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4766     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4767     _flag_k = FK_CMP;
   4768     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   4769 L_36064399:
   4770     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   4771     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   4772 L_3606439E:
   4773     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   4774     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   4775     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   4776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4777     _flag_k = FK_CMP;
   4778     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   4779 L_360643A6:
   4780     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   4781     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   4782 L_360643AB:
   4783     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   4784 L_360643AD:
   4785     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   4786     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   4787 L_360643B3:
   4788     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   4789     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   4790     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   4791     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   4792     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   4793     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   4794     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   4795     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   4796     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   4797     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   4798     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   4799     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   4800     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4801     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4802     _flag_k = FK_CMP;
   4803     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   4804 L_360643D8:
   4805     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   4806 L_360643DB:
   4807     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   4808     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   4809     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   4810     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   4811     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4813     _flag_k = FK_CMP;
   4814     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   4815 L_360643E9:
   4816     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   4817     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   4818 L_360643EE:
   4819     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   4820     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   4821     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   4822     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4823     _flag_k = FK_CMP;
   4824     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   4825 L_360643F5:
   4826     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   4827     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   4828 L_360643F9:
   4829     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   4830 L_360643FC:
   4831     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   4832 L_360643FE:
   4833     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   4834 L_36064401:
   4835     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   4836     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   4837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   4838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4839     _flag_k = FK_CMP;
   4840     RECOMP_BACKEDGE();
   4841     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   4842 L_3606440D:
   4843     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   4844     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   4845     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   4846     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   4847     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   4848     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   4849     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   4850     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   4851     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   4852     esp = ebp; /* 0x36064421: mov esp, ebp */
   4853     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   4854     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   4855     RECOMP_REGS_OUT();
   4856 }
   4857 
   4858 void sub_36064401(void) {
   4859     int _fpu_cmp = 0;
   4860     uint32_t _cf = 0;
   4861     int _df = 1;
   4862     uint32_t _flag_k = FK_NONE;
   4863     uint32_t _flag_a = 0, _flag_b = 0;
   4864     uint32_t _itail_tgt = 0;
   4865     RECOMP_REGS_LOCALS
   4866     RECOMP_ENTER(0x36064401u);
   4867 
   4868     goto L_36064401;
   4869 L_3606428D:
   4870     ecx = MEM32(eax + 0x4); /* 0x3606428D: mov ecx, dword ptr [eax + 4] */
   4871     SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36064290: mov dl, byte ptr [ecx + 0x14] */
   4872     /* test LO8(edx), LO8(edx) */ /* 0x36064293: test dl, dl */
   4873     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   4874     _cf = 0;
   4875     _flag_k = FK_NARROW(FK_TEST, 24);
   4876     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606440D; /* 0x36064295: jne 0x3606440d */
   4877 L_3606429B:
   4878     edi = MEM32(ecx + 0x4); /* 0x3606429B: mov edi, dword ptr [ecx + 4] */
   4879     edx = MEM32(edi); /* 0x3606429E: mov edx, dword ptr [edi] */
   4880     /* cmp ecx, edx */ /* 0x360642A0: cmp ecx, edx */
   4881     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   4882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4883     _flag_k = FK_CMP;
   4884     if (CMP_NE(_flag_a, _flag_b)) goto L_36064369; /* 0x360642A2: jne 0x36064369 */
   4885 L_360642A8:
   4886     edx = MEM32(edi + 0x8); /* 0x360642A8: mov edx, dword ptr [edi + 8] */
   4887     /* cmp MEM8(edx + 0x14), 0 */ /* 0x360642AB: cmp byte ptr [edx + 0x14], 0 */
   4888     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4889     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4890     _flag_k = FK_NARROW(FK_CMP, 24);
   4891     if (CMP_NE(_flag_a, _flag_b)) goto L_360642CC; /* 0x360642AF: jne 0x360642cc */
   4892 L_360642B1:
   4893     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B1: mov byte ptr [ecx + 0x14], bl */
   4894     MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360642B4: mov byte ptr [edx + 0x14], bl */
   4895     ecx = MEM32(eax + 0x4); /* 0x360642B7: mov ecx, dword ptr [eax + 4] */
   4896     edx = MEM32(ecx + 0x4); /* 0x360642BA: mov edx, dword ptr [ecx + 4] */
   4897     MEM8(edx + 0x14) = (uint8_t)(0); /* 0x360642BD: mov byte ptr [edx + 0x14], 0 */
   4898     eax = MEM32(eax + 0x4); /* 0x360642C1: mov eax, dword ptr [eax + 4] */
   4899     eax = MEM32(eax + 0x4); /* 0x360642C4: mov eax, dword ptr [eax + 4] */
   4900     goto L_36064401; /* 0x360642C7: jmp 0x36064401 */
   4901 L_360642CC:
   4902     /* cmp eax, MEM32(ecx + 0x8) */ /* 0x360642CC: cmp eax, dword ptr [ecx + 8] */
   4903     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8));
   4904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4905     _flag_k = FK_CMP;
   4906     if (CMP_NE(_flag_a, _flag_b)) goto L_3606430B; /* 0x360642CF: jne 0x3606430b */
   4907 L_360642D1:
   4908     eax = ecx; /* 0x360642D1: mov eax, ecx */
   4909     ecx = MEM32(eax + 0x8); /* 0x360642D3: mov ecx, dword ptr [eax + 8] */
   4910     edx = MEM32(ecx); /* 0x360642D6: mov edx, dword ptr [ecx] */
   4911     MEM32(eax + 0x8) = edx; /* 0x360642D8: mov dword ptr [eax + 8], edx */
   4912     edx = MEM32(ecx); /* 0x360642DB: mov edx, dword ptr [ecx] */
   4913     /* cmp edx, MEM32(esi + 0x8) */ /* 0x360642DD: cmp edx, dword ptr [esi + 8] */
   4914     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4916     _flag_k = FK_CMP;
   4917     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642E5; /* 0x360642E0: je 0x360642e5 */
   4918 L_360642E2:
   4919     MEM32(edx + 0x4) = eax; /* 0x360642E2: mov dword ptr [edx + 4], eax */
   4920 L_360642E5:
   4921     edx = MEM32(eax + 0x4); /* 0x360642E5: mov edx, dword ptr [eax + 4] */
   4922     MEM32(ecx + 0x4) = edx; /* 0x360642E8: mov dword ptr [ecx + 4], edx */
   4923     edx = MEM32(esi + 0x4); /* 0x360642EB: mov edx, dword ptr [esi + 4] */
   4924     /* cmp eax, MEM32(edx + 0x4) */ /* 0x360642EE: cmp eax, dword ptr [edx + 4] */
   4925     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   4926     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4927     _flag_k = FK_CMP;
   4928     if (CMP_NE(_flag_a, _flag_b)) goto L_360642F8; /* 0x360642F1: jne 0x360642f8 */
   4929 L_360642F3:
   4930     MEM32(edx + 0x4) = ecx; /* 0x360642F3: mov dword ptr [edx + 4], ecx */
   4931     goto L_36064306; /* 0x360642F6: jmp 0x36064306 */
   4932 L_360642F8:
   4933     edx = MEM32(eax + 0x4); /* 0x360642F8: mov edx, dword ptr [eax + 4] */
   4934     /* cmp eax, MEM32(edx) */ /* 0x360642FB: cmp eax, dword ptr [edx] */
   4935     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx));
   4936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4937     _flag_k = FK_CMP;
   4938     if (CMP_NE(_flag_a, _flag_b)) goto L_36064303; /* 0x360642FD: jne 0x36064303 */
   4939 L_360642FF:
   4940     MEM32(edx) = ecx; /* 0x360642FF: mov dword ptr [edx], ecx */
   4941     goto L_36064306; /* 0x36064301: jmp 0x36064306 */
   4942 L_36064303:
   4943     MEM32(edx + 0x8) = ecx; /* 0x36064303: mov dword ptr [edx + 8], ecx */
   4944 L_36064306:
   4945     MEM32(ecx) = eax; /* 0x36064306: mov dword ptr [ecx], eax */
   4946     MEM32(eax + 0x4) = ecx; /* 0x36064308: mov dword ptr [eax + 4], ecx */
   4947 L_3606430B:
   4948     ecx = MEM32(eax + 0x4); /* 0x3606430B: mov ecx, dword ptr [eax + 4] */
   4949     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x3606430E: mov byte ptr [ecx + 0x14], bl */
   4950     edx = MEM32(eax + 0x4); /* 0x36064311: mov edx, dword ptr [eax + 4] */
   4951     ecx = MEM32(edx + 0x4); /* 0x36064314: mov ecx, dword ptr [edx + 4] */
   4952     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x36064317: mov byte ptr [ecx + 0x14], 0 */
   4953     edx = MEM32(eax + 0x4); /* 0x3606431B: mov edx, dword ptr [eax + 4] */
   4954     ecx = MEM32(edx + 0x4); /* 0x3606431E: mov ecx, dword ptr [edx + 4] */
   4955     edx = MEM32(ecx); /* 0x36064321: mov edx, dword ptr [ecx] */
   4956     edi = MEM32(edx + 0x8); /* 0x36064323: mov edi, dword ptr [edx + 8] */
   4957     MEM32(ecx) = edi; /* 0x36064326: mov dword ptr [ecx], edi */
   4958     edi = MEM32(edx + 0x8); /* 0x36064328: mov edi, dword ptr [edx + 8] */
   4959     /* cmp edi, MEM32(esi + 0x8) */ /* 0x3606432B: cmp edi, dword ptr [esi + 8] */
   4960     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   4961     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4962     _flag_k = FK_CMP;
   4963     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064333; /* 0x3606432E: je 0x36064333 */
   4964 L_36064330:
   4965     MEM32(edi + 0x4) = ecx; /* 0x36064330: mov dword ptr [edi + 4], ecx */
   4966 L_36064333:
   4967     edi = MEM32(ecx + 0x4); /* 0x36064333: mov edi, dword ptr [ecx + 4] */
   4968     MEM32(edx + 0x4) = edi; /* 0x36064336: mov dword ptr [edx + 4], edi */
   4969     edi = MEM32(esi + 0x4); /* 0x36064339: mov edi, dword ptr [esi + 4] */
   4970     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3606433C: cmp ecx, dword ptr [edi + 4] */
   4971     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   4972     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4973     _flag_k = FK_CMP;
   4974     if (CMP_NE(_flag_a, _flag_b)) goto L_3606434C; /* 0x3606433F: jne 0x3606434c */
   4975 L_36064341:
   4976     MEM32(edi + 0x4) = edx; /* 0x36064341: mov dword ptr [edi + 4], edx */
   4977     MEM32(edx + 0x8) = ecx; /* 0x36064344: mov dword ptr [edx + 8], ecx */
   4978     goto L_360643FE; /* 0x36064347: jmp 0x360643fe */
   4979 L_3606434C:
   4980     edi = MEM32(ecx + 0x4); /* 0x3606434C: mov edi, dword ptr [ecx + 4] */
   4981     /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3606434F: cmp ecx, dword ptr [edi + 8] */
   4982     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8));
   4983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4984     _flag_k = FK_CMP;
   4985     if (CMP_NE(_flag_a, _flag_b)) goto L_3606435F; /* 0x36064352: jne 0x3606435f */
   4986 L_36064354:
   4987     MEM32(edi + 0x8) = edx; /* 0x36064354: mov dword ptr [edi + 8], edx */
   4988     MEM32(edx + 0x8) = ecx; /* 0x36064357: mov dword ptr [edx + 8], ecx */
   4989     goto L_360643FE; /* 0x3606435A: jmp 0x360643fe */
   4990 L_3606435F:
   4991     MEM32(edi) = edx; /* 0x3606435F: mov dword ptr [edi], edx */
   4992     MEM32(edx + 0x8) = ecx; /* 0x36064361: mov dword ptr [edx + 8], ecx */
   4993     goto L_360643FE; /* 0x36064364: jmp 0x360643fe */
   4994 L_36064369:
   4995     /* cmp MEM8(edx + 0x14), 0 */ /* 0x36064369: cmp byte ptr [edx + 0x14], 0 */
   4996     _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24;
   4997     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4998     _flag_k = FK_NARROW(FK_CMP, 24);
   4999     RECOMP_BACKEDGE();
   5000     if (CMP_EQ(_flag_a, _flag_b)) goto L_360642B1; /* 0x3606436D: je 0x360642b1 */
   5001 L_36064373:
   5002     /* cmp eax, MEM32(ecx) */ /* 0x36064373: cmp eax, dword ptr [ecx] */
   5003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx));
   5004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5005     _flag_k = FK_CMP;
   5006     if (CMP_NE(_flag_a, _flag_b)) goto L_360643B3; /* 0x36064375: jne 0x360643b3 */
   5007 L_36064377:
   5008     eax = ecx; /* 0x36064377: mov eax, ecx */
   5009     ecx = MEM32(eax); /* 0x36064379: mov ecx, dword ptr [eax] */
   5010     edx = MEM32(ecx + 0x8); /* 0x3606437B: mov edx, dword ptr [ecx + 8] */
   5011     MEM32(eax) = edx; /* 0x3606437E: mov dword ptr [eax], edx */
   5012     edx = MEM32(ecx + 0x8); /* 0x36064380: mov edx, dword ptr [ecx + 8] */
   5013     /* cmp edx, MEM32(esi + 0x8) */ /* 0x36064383: cmp edx, dword ptr [esi + 8] */
   5014     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5015     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5016     _flag_k = FK_CMP;
   5017     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606438B; /* 0x36064386: je 0x3606438b */
   5018 L_36064388:
   5019     MEM32(edx + 0x4) = eax; /* 0x36064388: mov dword ptr [edx + 4], eax */
   5020 L_3606438B:
   5021     edx = MEM32(eax + 0x4); /* 0x3606438B: mov edx, dword ptr [eax + 4] */
   5022     MEM32(ecx + 0x4) = edx; /* 0x3606438E: mov dword ptr [ecx + 4], edx */
   5023     edx = MEM32(esi + 0x4); /* 0x36064391: mov edx, dword ptr [esi + 4] */
   5024     /* cmp eax, MEM32(edx + 0x4) */ /* 0x36064394: cmp eax, dword ptr [edx + 4] */
   5025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   5026     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5027     _flag_k = FK_CMP;
   5028     if (CMP_NE(_flag_a, _flag_b)) goto L_3606439E; /* 0x36064397: jne 0x3606439e */
   5029 L_36064399:
   5030     MEM32(edx + 0x4) = ecx; /* 0x36064399: mov dword ptr [edx + 4], ecx */
   5031     goto L_360643AD; /* 0x3606439C: jmp 0x360643ad */
   5032 L_3606439E:
   5033     edx = MEM32(eax + 0x4); /* 0x3606439E: mov edx, dword ptr [eax + 4] */
   5034     /* cmp eax, MEM32(edx + 0x8) */ /* 0x360643A1: cmp eax, dword ptr [edx + 8] */
   5035     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8));
   5036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5037     _flag_k = FK_CMP;
   5038     if (CMP_NE(_flag_a, _flag_b)) goto L_360643AB; /* 0x360643A4: jne 0x360643ab */
   5039 L_360643A6:
   5040     MEM32(edx + 0x8) = ecx; /* 0x360643A6: mov dword ptr [edx + 8], ecx */
   5041     goto L_360643AD; /* 0x360643A9: jmp 0x360643ad */
   5042 L_360643AB:
   5043     MEM32(edx) = ecx; /* 0x360643AB: mov dword ptr [edx], ecx */
   5044 L_360643AD:
   5045     MEM32(ecx + 0x8) = eax; /* 0x360643AD: mov dword ptr [ecx + 8], eax */
   5046     MEM32(eax + 0x4) = ecx; /* 0x360643B0: mov dword ptr [eax + 4], ecx */
   5047 L_360643B3:
   5048     ecx = MEM32(eax + 0x4); /* 0x360643B3: mov ecx, dword ptr [eax + 4] */
   5049     MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360643B6: mov byte ptr [ecx + 0x14], bl */
   5050     edx = MEM32(eax + 0x4); /* 0x360643B9: mov edx, dword ptr [eax + 4] */
   5051     ecx = MEM32(edx + 0x4); /* 0x360643BC: mov ecx, dword ptr [edx + 4] */
   5052     MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360643BF: mov byte ptr [ecx + 0x14], 0 */
   5053     edx = MEM32(eax + 0x4); /* 0x360643C3: mov edx, dword ptr [eax + 4] */
   5054     ecx = MEM32(edx + 0x4); /* 0x360643C6: mov ecx, dword ptr [edx + 4] */
   5055     edx = MEM32(ecx + 0x8); /* 0x360643C9: mov edx, dword ptr [ecx + 8] */
   5056     edi = MEM32(edx); /* 0x360643CC: mov edi, dword ptr [edx] */
   5057     MEM32(ecx + 0x8) = edi; /* 0x360643CE: mov dword ptr [ecx + 8], edi */
   5058     edi = MEM32(edx); /* 0x360643D1: mov edi, dword ptr [edx] */
   5059     /* cmp edi, MEM32(esi + 0x8) */ /* 0x360643D3: cmp edi, dword ptr [esi + 8] */
   5060     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   5061     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5062     _flag_k = FK_CMP;
   5063     if (CMP_EQ(_flag_a, _flag_b)) goto L_360643DB; /* 0x360643D6: je 0x360643db */
   5064 L_360643D8:
   5065     MEM32(edi + 0x4) = ecx; /* 0x360643D8: mov dword ptr [edi + 4], ecx */
   5066 L_360643DB:
   5067     edi = MEM32(ecx + 0x4); /* 0x360643DB: mov edi, dword ptr [ecx + 4] */
   5068     MEM32(edx + 0x4) = edi; /* 0x360643DE: mov dword ptr [edx + 4], edi */
   5069     edi = MEM32(esi + 0x4); /* 0x360643E1: mov edi, dword ptr [esi + 4] */
   5070     /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360643E4: cmp ecx, dword ptr [edi + 4] */
   5071     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   5072     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5073     _flag_k = FK_CMP;
   5074     if (CMP_NE(_flag_a, _flag_b)) goto L_360643EE; /* 0x360643E7: jne 0x360643ee */
   5075 L_360643E9:
   5076     MEM32(edi + 0x4) = edx; /* 0x360643E9: mov dword ptr [edi + 4], edx */
   5077     goto L_360643FC; /* 0x360643EC: jmp 0x360643fc */
   5078 L_360643EE:
   5079     edi = MEM32(ecx + 0x4); /* 0x360643EE: mov edi, dword ptr [ecx + 4] */
   5080     /* cmp ecx, MEM32(edi) */ /* 0x360643F1: cmp ecx, dword ptr [edi] */
   5081     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   5082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5083     _flag_k = FK_CMP;
   5084     if (CMP_NE(_flag_a, _flag_b)) goto L_360643F9; /* 0x360643F3: jne 0x360643f9 */
   5085 L_360643F5:
   5086     MEM32(edi) = edx; /* 0x360643F5: mov dword ptr [edi], edx */
   5087     goto L_360643FC; /* 0x360643F7: jmp 0x360643fc */
   5088 L_360643F9:
   5089     MEM32(edi + 0x8) = edx; /* 0x360643F9: mov dword ptr [edi + 8], edx */
   5090 L_360643FC:
   5091     MEM32(edx) = ecx; /* 0x360643FC: mov dword ptr [edx], ecx */
   5092 L_360643FE:
   5093     MEM32(ecx + 0x4) = edx; /* 0x360643FE: mov dword ptr [ecx + 4], edx */
   5094 L_36064401:
   5095     ecx = MEM32(esi + 0x4); /* 0x36064401: mov ecx, dword ptr [esi + 4] */
   5096     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36064404: cmp eax, dword ptr [ecx + 4] */
   5097     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   5098     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5099     _flag_k = FK_CMP;
   5100     RECOMP_BACKEDGE();
   5101     if (CMP_NE(_flag_a, _flag_b)) goto L_3606428D; /* 0x36064407: jne 0x3606428d */
   5102 L_3606440D:
   5103     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   5104     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   5105     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   5106     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   5107     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   5108     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   5109     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   5110     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   5111     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   5112     esp = ebp; /* 0x36064421: mov esp, ebp */
   5113     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   5114     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   5115     RECOMP_REGS_OUT();
   5116 }
   5117 
   5118 void sub_3606440D(void) {
   5119     int _fpu_cmp = 0;
   5120     uint32_t _cf = 0;
   5121     int _df = 1;
   5122     uint32_t _flag_k = FK_NONE;
   5123     uint32_t _flag_a = 0, _flag_b = 0;
   5124     uint32_t _itail_tgt = 0;
   5125     RECOMP_REGS_LOCALS
   5126     RECOMP_ENTER(0x3606440Du);
   5127 
   5128 L_3606440D:
   5129     edx = MEM32(esi + 0x4); /* 0x3606440D: mov edx, dword ptr [esi + 4] */
   5130     eax = MEM32(edx + 0x4); /* 0x36064410: mov eax, dword ptr [edx + 4] */
   5131     ecx = MEM32(ebp + (-0x4)); /* 0x36064413: mov ecx, dword ptr [ebp - 4] */
   5132     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36064416: mov byte ptr [eax + 0x14], bl */
   5133     eax = MEM32(ebp + 0x8); /* 0x36064419: mov eax, dword ptr [ebp + 8] */
   5134     edi = POP32_VAL(esp); /* 0x3606441C: pop edi */
   5135     esi = POP32_VAL(esp); /* 0x3606441D: pop esi */
   5136     MEM32(eax) = ecx; /* 0x3606441E: mov dword ptr [eax], ecx */
   5137     ebx = POP32_VAL(esp); /* 0x36064420: pop ebx */
   5138     esp = ebp; /* 0x36064421: mov esp, ebp */
   5139     ebp = POP32_VAL(esp); /* 0x36064423: pop ebp */
   5140     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36064424: ret 0x10 */
   5141     RECOMP_REGS_OUT();
   5142 }
   5143 
   5144 void sub_36064430(void) {
   5145     int _fpu_cmp = 0;
   5146     uint32_t _cf = 0;
   5147     int _df = 1;
   5148     uint32_t _flag_k = FK_NONE;
   5149     uint32_t _flag_a = 0, _flag_b = 0;
   5150     uint32_t _itail_tgt = 0;
   5151     RECOMP_REGS_LOCALS
   5152     RECOMP_ENTER(0x36064430u);
   5153 
   5154     goto L_36064430;
   5155 L_36063B20:
   5156     PUSH32(esp, ebp); /* 0x36063B20: push ebp */
   5157     ebp = esp; /* 0x36063B21: mov ebp, esp */
   5158     PUSH32(esp, esi); /* 0x36063B23: push esi */
   5159     esi = ecx; /* 0x36063B24: mov esi, ecx */
   5160     RECOMP_ICALL(0x36063B50u); /* 0x36063B26: call 0x36063b50 */ /* not lifted */
   5161     RECOMP_FLAGS_IN();
   5162     /* test MEM8(ebp + 0x8), 1 */ /* 0x36063B2B: test byte ptr [ebp + 8], 1 */
   5163     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   5164     _cf = 0;
   5165     _flag_k = FK_NARROW(FK_TEST, 24);
   5166     if (TEST_Z(_flag_a, _flag_b)) goto L_36063B3A; /* 0x36063B2F: je 0x36063b3a */
   5167 L_36063B31:
   5168     PUSH32(esp, esi); /* 0x36063B31: push esi */
   5169     RECOMP_ICALL(0x3615FCC4u); /* 0x36063B32: call 0x3615fcc4 */ /* not lifted */
   5170     RECOMP_FLAGS_IN();
   5171     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5172     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5173     esp = esp + 4; /* 0x36063B37: add esp, 4 */
   5174     _flag_k = FK_ADD;
   5175 L_36063B3A:
   5176     eax = esi; /* 0x36063B3A: mov eax, esi */
   5177     esi = POP32_VAL(esp); /* 0x36063B3C: pop esi */
   5178     ebp = POP32_VAL(esp); /* 0x36063B3D: pop ebp */
   5179     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36063B3E: ret 4 */
   5180 L_36064430:
   5181     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   5182     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5183     ecx = ecx - 0xCu; /* 0x36064430: sub ecx, 0xc */
   5184     _flag_k = FK_CMP;
   5185     RECOMP_BACKEDGE();
   5186     goto L_36063B20; /* 0x36064433: jmp 0x36063b20 */
   5187     { RECOMP_REGS_OUT(); return; } /* end of function */
   5188     RECOMP_REGS_OUT();
   5189 }
   5190 
   5191 void sub_36064440(void) {
   5192     int _fpu_cmp = 0;
   5193     uint32_t _cf = 0;
   5194     int _df = 1;
   5195     uint32_t _flag_k = FK_NONE;
   5196     uint32_t _flag_a = 0, _flag_b = 0;
   5197     uint32_t _itail_tgt = 0;
   5198     RECOMP_REGS_LOCALS
   5199     RECOMP_ENTER(0x36064440u);
   5200 
   5201 L_36064440:
   5202     PUSH32(esp, ebp); /* 0x36064440: push ebp */
   5203     ebp = esp; /* 0x36064441: mov ebp, esp */
   5204     eax = MEM32(FS_BASE + (0)); /* 0x36064443: mov eax, dword ptr fs:[0] */
   5205     PUSH32(esp, 0xFFFFFFFFu); /* 0x36064449: push -1 */
   5206     PUSH32(esp, 0x36164AE1u); /* 0x3606444B: push 0x36164ae1 */
   5207     PUSH32(esp, eax); /* 0x36064450: push eax */
   5208     eax = MEM32(ebp + 0x8); /* 0x36064451: mov eax, dword ptr [ebp + 8] */
   5209     MEM32(FS_BASE + (0)) = esp; /* 0x36064454: mov dword ptr fs:[0], esp */
   5210     PUSH32(esp, ebx); /* 0x3606445B: push ebx */
   5211     PUSH32(esp, esi); /* 0x3606445C: push esi */
   5212     PUSH32(esp, edi); /* 0x3606445D: push edi */
   5213     edi = ecx; /* 0x3606445E: mov edi, ecx */
   5214     PUSH32(esp, 0xCu); /* 0x36064460: push 0xc */
   5215     MEM32(edi) = eax; /* 0x36064462: mov dword ptr [edi], eax */
   5216     RECOMP_ICALL(0x3615FD6Au); /* 0x36064464: call 0x3615fd6a */ /* not lifted */
   5217     RECOMP_FLAGS_IN();
   5218     esi = eax; /* 0x36064469: mov esi, eax */
   5219     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5220     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5221     esp = esp + 4; /* 0x3606446B: add esp, 4 */
   5222     _flag_k = FK_ADD;
   5223     MEM32(ebp + 0x8) = esi; /* 0x3606446E: mov dword ptr [ebp + 8], esi */
   5224     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5225     ebx = 0; /* 0x36064471: xor ebx, ebx */
   5226     _cf = 0;
   5227     _flag_k = FK_TEST;
   5228     /* cmp esi, ebx */ /* 0x36064473: cmp esi, ebx */
   5229     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5230     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5231     _flag_k = FK_CMP;
   5232     MEM32(ebp + (-0x4)) = ebx; /* 0x36064475: mov dword ptr [ebp - 4], ebx */
   5233     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064496; /* 0x36064478: je 0x36064496 */
   5234 L_3606447A:
   5235     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3606447A: mov cl, byte ptr [ebp + 0xb] */
   5236     PUSH32(esp, 0xCu); /* 0x3606447D: push 0xc */
   5237     MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3606447F: mov byte ptr [esi], cl */
   5238     RECOMP_ICALL(0x3615FD6Au); /* 0x36064481: call 0x3615fd6a */ /* not lifted */
   5239     RECOMP_FLAGS_IN();
   5240     MEM32(eax) = eax; /* 0x36064486: mov dword ptr [eax], eax */
   5241     MEM32(eax + 0x4) = eax; /* 0x36064488: mov dword ptr [eax + 4], eax */
   5242     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5243     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5244     esp = esp + 4; /* 0x3606448B: add esp, 4 */
   5245     _flag_k = FK_ADD;
   5246     MEM32(esi + 0x4) = eax; /* 0x3606448E: mov dword ptr [esi + 4], eax */
   5247     MEM32(esi + 0x8) = ebx; /* 0x36064491: mov dword ptr [esi + 8], ebx */
   5248     goto L_36064498; /* 0x36064494: jmp 0x36064498 */
   5249 L_36064496:
   5250     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5251     esi = 0; /* 0x36064496: xor esi, esi */
   5252     _cf = 0;
   5253     _flag_k = FK_TEST;
   5254 L_36064498:
   5255     PUSH32(esp, 0xCu); /* 0x36064498: push 0xc */
   5256     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3606449A: mov dword ptr [ebp - 4], 0xffffffff */
   5257     MEM32(edi + 0x10) = esi; /* 0x360644A1: mov dword ptr [edi + 0x10], esi */
   5258     MEM32(edi + 0x4) = ebx; /* 0x360644A4: mov dword ptr [edi + 4], ebx */
   5259     RECOMP_ICALL(0x3615FD6Au); /* 0x360644A7: call 0x3615fd6a */ /* not lifted */
   5260     RECOMP_FLAGS_IN();
   5261     esi = eax; /* 0x360644AC: mov esi, eax */
   5262     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5263     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5264     esp = esp + 4; /* 0x360644AE: add esp, 4 */
   5265     _flag_k = FK_ADD;
   5266     MEM32(ebp + 0x8) = esi; /* 0x360644B1: mov dword ptr [ebp + 8], esi */
   5267     /* cmp esi, ebx */ /* 0x360644B4: cmp esi, ebx */
   5268     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5270     _flag_k = FK_CMP;
   5271     MEM32(ebp + (-0x4)) = 1; /* 0x360644B6: mov dword ptr [ebp - 4], 1 */
   5272     if (CMP_EQ(_flag_a, _flag_b)) goto L_360644DB; /* 0x360644BD: je 0x360644db */
   5273 L_360644BF:
   5274     SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x360644BF: mov dl, byte ptr [ebp + 0xb] */
   5275     PUSH32(esp, 0xCu); /* 0x360644C2: push 0xc */
   5276     MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x360644C4: mov byte ptr [esi], dl */
   5277     RECOMP_ICALL(0x3615FD6Au); /* 0x360644C6: call 0x3615fd6a */ /* not lifted */
   5278     RECOMP_FLAGS_IN();
   5279     MEM32(eax) = eax; /* 0x360644CB: mov dword ptr [eax], eax */
   5280     MEM32(eax + 0x4) = eax; /* 0x360644CD: mov dword ptr [eax + 4], eax */
   5281     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5282     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5283     esp = esp + 4; /* 0x360644D0: add esp, 4 */
   5284     _flag_k = FK_ADD;
   5285     MEM32(esi + 0x4) = eax; /* 0x360644D3: mov dword ptr [esi + 4], eax */
   5286     MEM32(esi + 0x8) = ebx; /* 0x360644D6: mov dword ptr [esi + 8], ebx */
   5287     goto L_360644DD; /* 0x360644D9: jmp 0x360644dd */
   5288 L_360644DB:
   5289     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5290     esi = 0; /* 0x360644DB: xor esi, esi */
   5291     _cf = 0;
   5292     _flag_k = FK_TEST;
   5293 L_360644DD:
   5294     PUSH32(esp, 0xCu); /* 0x360644DD: push 0xc */
   5295     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360644DF: mov dword ptr [ebp - 4], 0xffffffff */
   5296     MEM32(edi + 0x14) = esi; /* 0x360644E6: mov dword ptr [edi + 0x14], esi */
   5297     RECOMP_ICALL(0x3615FD6Au); /* 0x360644E9: call 0x3615fd6a */ /* not lifted */
   5298     RECOMP_FLAGS_IN();
   5299     esi = eax; /* 0x360644EE: mov esi, eax */
   5300     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5301     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5302     esp = esp + 4; /* 0x360644F0: add esp, 4 */
   5303     _flag_k = FK_ADD;
   5304     MEM32(ebp + 0x8) = esi; /* 0x360644F3: mov dword ptr [ebp + 8], esi */
   5305     /* cmp esi, ebx */ /* 0x360644F6: cmp esi, ebx */
   5306     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   5307     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5308     _flag_k = FK_CMP;
   5309     MEM32(ebp + (-0x4)) = 2; /* 0x360644F8: mov dword ptr [ebp - 4], 2 */
   5310     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606451D; /* 0x360644FF: je 0x3606451d */
   5311 L_36064501:
   5312     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36064501: mov al, byte ptr [ebp + 0xb] */
   5313     PUSH32(esp, 0xCu); /* 0x36064504: push 0xc */
   5314     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36064506: mov byte ptr [esi], al */
   5315     RECOMP_ICALL(0x3615FD6Au); /* 0x36064508: call 0x3615fd6a */ /* not lifted */
   5316     RECOMP_FLAGS_IN();
   5317     MEM32(eax) = eax; /* 0x3606450D: mov dword ptr [eax], eax */
   5318     MEM32(eax + 0x4) = eax; /* 0x3606450F: mov dword ptr [eax + 4], eax */
   5319     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5320     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5321     esp = esp + 4; /* 0x36064512: add esp, 4 */
   5322     _flag_k = FK_ADD;
   5323     MEM32(esi + 0x4) = eax; /* 0x36064515: mov dword ptr [esi + 4], eax */
   5324     MEM32(esi + 0x8) = ebx; /* 0x36064518: mov dword ptr [esi + 8], ebx */
   5325     goto L_3606451F; /* 0x3606451B: jmp 0x3606451f */
   5326 L_3606451D:
   5327     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5328     esi = 0; /* 0x3606451D: xor esi, esi */
   5329     _cf = 0;
   5330     _flag_k = FK_TEST;
   5331 L_3606451F:
   5332     ecx = MEM32(ebp + (-0xC)); /* 0x3606451F: mov ecx, dword ptr [ebp - 0xc] */
   5333     MEM32(edi + 0x18) = esi; /* 0x36064522: mov dword ptr [edi + 0x18], esi */
   5334     MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36064525: mov byte ptr [edi + 0xc], bl */
   5335     eax = edi; /* 0x36064528: mov eax, edi */
   5336     edi = POP32_VAL(esp); /* 0x3606452A: pop edi */
   5337     esi = POP32_VAL(esp); /* 0x3606452B: pop esi */
   5338     MEM32(FS_BASE + (0)) = ecx; /* 0x3606452C: mov dword ptr fs:[0], ecx */
   5339     ebx = POP32_VAL(esp); /* 0x36064533: pop ebx */
   5340     esp = ebp; /* 0x36064534: mov esp, ebp */
   5341     ebp = POP32_VAL(esp); /* 0x36064536: pop ebp */
   5342     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36064537: ret 4 */
   5343     RECOMP_REGS_OUT();
   5344 }
   5345 
   5346 void sub_36064540(void) {
   5347     int _fpu_cmp = 0;
   5348     uint32_t _cf = 0;
   5349     int _df = 1;
   5350     uint32_t _flag_k = FK_NONE;
   5351     uint32_t _flag_a = 0, _flag_b = 0;
   5352     uint32_t _itail_tgt = 0;
   5353     RECOMP_REGS_LOCALS
   5354     RECOMP_ENTER(0x36064540u);
   5355 
   5356 L_36064540:
   5357     PUSH32(esp, ebp); /* 0x36064540: push ebp */
   5358     ebp = esp; /* 0x36064541: mov ebp, esp */
   5359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5361     esp = esp - 0x10u; /* 0x36064543: sub esp, 0x10 */
   5362     _flag_k = FK_CMP;
   5363     PUSH32(esp, ebx); /* 0x36064546: push ebx */
   5364     PUSH32(esp, esi); /* 0x36064547: push esi */
   5365     ebx = ecx; /* 0x36064548: mov ebx, ecx */
   5366     ecx = MEM32(ebx + 0x10); /* 0x3606454A: mov ecx, dword ptr [ebx + 0x10] */
   5367     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5368     esi = 0; /* 0x3606454D: xor esi, esi */
   5369     _cf = 0;
   5370     _flag_k = FK_TEST;
   5371     /* cmp ecx, esi */ /* 0x3606454F: cmp ecx, esi */
   5372     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi);
   5373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5374     _flag_k = FK_CMP;
   5375     PUSH32(esp, edi); /* 0x36064551: push edi */
   5376     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606457B; /* 0x36064552: je 0x3606457b */
   5377 L_36064554:
   5378     eax = MEM32(ecx + 0x4); /* 0x36064554: mov eax, dword ptr [ecx + 4] */
   5379     edx = MEM32(eax); /* 0x36064557: mov edx, dword ptr [eax] */
   5380     PUSH32(esp, eax); /* 0x36064559: push eax */
   5381     PUSH32(esp, edx); /* 0x3606455A: push edx */
   5382     eax = ebp + (-0x8); /* 0x3606455B: lea eax, [ebp - 8] */
   5383     PUSH32(esp, eax); /* 0x3606455E: push eax */
   5384     RECOMP_ICALL(0x360AA870u); /* 0x3606455F: call 0x360aa870 */ /* not lifted */
   5385     RECOMP_FLAGS_IN();
   5386     edi = MEM32(ebx + 0x10); /* 0x36064564: mov edi, dword ptr [ebx + 0x10] */
   5387     /* cmp edi, esi */ /* 0x36064567: cmp edi, esi */
   5388     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   5389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5390     _flag_k = FK_CMP;
   5391     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606457B; /* 0x36064569: je 0x3606457b */
   5392 L_3606456B:
   5393     ecx = edi; /* 0x3606456B: mov ecx, edi */
   5394     RECOMP_ICALL(0x36096200u); /* 0x3606456D: call 0x36096200 */ /* not lifted */
   5395     RECOMP_FLAGS_IN();
   5396     PUSH32(esp, edi); /* 0x36064572: push edi */
   5397     RECOMP_ICALL(0x3615FCC4u); /* 0x36064573: call 0x3615fcc4 */ /* not lifted */
   5398     RECOMP_FLAGS_IN();
   5399     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5400     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5401     esp = esp + 4; /* 0x36064578: add esp, 4 */
   5402     _flag_k = FK_ADD;
   5403 L_3606457B:
   5404     ecx = MEM32(ebx + 0x14); /* 0x3606457B: mov ecx, dword ptr [ebx + 0x14] */
   5405     MEM32(ebx + 0x10) = esi; /* 0x3606457E: mov dword ptr [ebx + 0x10], esi */
   5406     eax = MEM32(ecx + 0x4); /* 0x36064581: mov eax, dword ptr [ecx + 4] */
   5407     edi = MEM32(eax); /* 0x36064584: mov edi, dword ptr [eax] */
   5408     /* cmp edi, eax */ /* 0x36064586: cmp edi, eax */
   5409     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5411     _flag_k = FK_CMP;
   5412     if (CMP_EQ(_flag_a, _flag_b)) goto L_360645A2; /* 0x36064588: je 0x360645a2 */
   5413 L_3606458A:
   5414     edx = MEM32(edi + 0x8); /* 0x3606458A: mov edx, dword ptr [edi + 8] */
   5415     PUSH32(esp, edx); /* 0x3606458D: push edx */
   5416     RECOMP_ICALL(0x3615FCC4u); /* 0x3606458E: call 0x3615fcc4 */ /* not lifted */
   5417     RECOMP_FLAGS_IN();
   5418     eax = MEM32(ebx + 0x14); /* 0x36064593: mov eax, dword ptr [ebx + 0x14] */
   5419     edi = MEM32(edi); /* 0x36064596: mov edi, dword ptr [edi] */
   5420     ecx = MEM32(eax + 0x4); /* 0x36064598: mov ecx, dword ptr [eax + 4] */
   5421     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5422     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5423     esp = esp + 4; /* 0x3606459B: add esp, 4 */
   5424     _flag_k = FK_ADD;
   5425     /* cmp edi, ecx */ /* 0x3606459E: cmp edi, ecx */
   5426     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5427     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5428     _flag_k = FK_CMP;
   5429     RECOMP_BACKEDGE();
   5430     if (CMP_NE(_flag_a, _flag_b)) goto L_3606458A; /* 0x360645A0: jne 0x3606458a */
   5431 L_360645A2:
   5432     edi = MEM32(ebx + 0x14); /* 0x360645A2: mov edi, dword ptr [ebx + 0x14] */
   5433     /* cmp edi, esi */ /* 0x360645A5: cmp edi, esi */
   5434     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   5435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5436     _flag_k = FK_CMP;
   5437     if (CMP_EQ(_flag_a, _flag_b)) goto L_360645B9; /* 0x360645A7: je 0x360645b9 */
   5438 L_360645A9:
   5439     ecx = edi; /* 0x360645A9: mov ecx, edi */
   5440     RECOMP_ICALL(0x36096200u); /* 0x360645AB: call 0x36096200 */ /* not lifted */
   5441     RECOMP_FLAGS_IN();
   5442     PUSH32(esp, edi); /* 0x360645B0: push edi */
   5443     RECOMP_ICALL(0x3615FCC4u); /* 0x360645B1: call 0x3615fcc4 */ /* not lifted */
   5444     RECOMP_FLAGS_IN();
   5445     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5446     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5447     esp = esp + 4; /* 0x360645B6: add esp, 4 */
   5448     _flag_k = FK_ADD;
   5449 L_360645B9:
   5450     ecx = MEM32(ebx + 0x18); /* 0x360645B9: mov ecx, dword ptr [ebx + 0x18] */
   5451     MEM32(ebx + 0x14) = esi; /* 0x360645BC: mov dword ptr [ebx + 0x14], esi */
   5452     eax = MEM32(ecx + 0x4); /* 0x360645BF: mov eax, dword ptr [ecx + 4] */
   5453     edi = MEM32(eax); /* 0x360645C2: mov edi, dword ptr [eax] */
   5454     /* cmp edi, eax */ /* 0x360645C4: cmp edi, eax */
   5455     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   5456     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5457     _flag_k = FK_CMP;
   5458     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064627; /* 0x360645C6: je 0x36064627 */
   5459 L_360645C8:
   5460     esi = MEM32(edi + 0x8); /* 0x360645C8: mov esi, dword ptr [edi + 8] */
   5461     eax = MEM32(esi + 0x18); /* 0x360645CB: mov eax, dword ptr [esi + 0x18] */
   5462     /* cmp eax, 0xFFFFFFFFu */ /* 0x360645CE: cmp eax, -1 */
   5463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   5464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5465     _flag_k = FK_CMP;
   5466     if (CMP_EQ(_flag_a, _flag_b)) goto L_360645E4; /* 0x360645D1: je 0x360645e4 */
   5467 L_360645D3:
   5468     ecx = MEM32(ebx); /* 0x360645D3: mov ecx, dword ptr [ebx] */
   5469     PUSH32(esp, 1); /* 0x360645D5: push 1 */
   5470     PUSH32(esp, eax); /* 0x360645D7: push eax */
   5471     RECOMP_ICALL(0x36071D60u); /* 0x360645D8: call 0x36071d60 */ /* not lifted */
   5472     RECOMP_FLAGS_IN();
   5473     ecx = eax; /* 0x360645DD: mov ecx, eax */
   5474     RECOMP_ICALL(0x360526A0u); /* 0x360645DF: call 0x360526a0 */ /* not lifted */
   5475     RECOMP_FLAGS_IN();
   5476 L_360645E4:
   5477     edx = MEM32(ebx); /* 0x360645E4: mov edx, dword ptr [ebx] */
   5478     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x360645E6: mov al, byte ptr [edx + 0x128] */
   5479     /* test LO8(eax), LO8(eax) */ /* 0x360645EC: test al, al */
   5480     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5481     _cf = 0;
   5482     _flag_k = FK_NARROW(FK_TEST, 24);
   5483     if (TEST_Z(_flag_a, _flag_b)) goto L_3606460D; /* 0x360645EE: je 0x3606460d */
   5484 L_360645F0:
   5485     eax = MEM32(esi + 0x4); /* 0x360645F0: mov eax, dword ptr [esi + 4] */
   5486     ecx = ebp + (-0x10); /* 0x360645F3: lea ecx, [ebp - 0x10] */
   5487     PUSH32(esp, ecx); /* 0x360645F6: push ecx */
   5488     MEM32(ebp + (-0x10)) = 0xCF1Bu; /* 0x360645F7: mov dword ptr [ebp - 0x10], 0xcf1b */
   5489     MEM32(ebp + (-0xC)) = eax; /* 0x360645FE: mov dword ptr [ebp - 0xc], eax */
   5490     RECOMP_ICALL(0x3601C590u); /* 0x36064601: call 0x3601c590 */ /* not lifted */
   5491     RECOMP_FLAGS_IN();
   5492     ecx = eax; /* 0x36064606: mov ecx, eax */
   5493     RECOMP_ICALL(0x3601CFD0u); /* 0x36064608: call 0x3601cfd0 */ /* not lifted */
   5494     RECOMP_FLAGS_IN();
   5495 L_3606460D:
   5496     edx = MEM32(edi + 0x8); /* 0x3606460D: mov edx, dword ptr [edi + 8] */
   5497     PUSH32(esp, edx); /* 0x36064610: push edx */
   5498     RECOMP_ICALL(0x3615FCC4u); /* 0x36064611: call 0x3615fcc4 */ /* not lifted */
   5499     RECOMP_FLAGS_IN();
   5500     eax = MEM32(ebx + 0x18); /* 0x36064616: mov eax, dword ptr [ebx + 0x18] */
   5501     edi = MEM32(edi); /* 0x36064619: mov edi, dword ptr [edi] */
   5502     ecx = MEM32(eax + 0x4); /* 0x3606461B: mov ecx, dword ptr [eax + 4] */
   5503     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5504     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5505     esp = esp + 4; /* 0x3606461E: add esp, 4 */
   5506     _flag_k = FK_ADD;
   5507     /* cmp edi, ecx */ /* 0x36064621: cmp edi, ecx */
   5508     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx);
   5509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5510     _flag_k = FK_CMP;
   5511     RECOMP_BACKEDGE();
   5512     if (CMP_NE(_flag_a, _flag_b)) goto L_360645C8; /* 0x36064623: jne 0x360645c8 */
   5513 L_36064625:
   5514     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5515     esi = 0; /* 0x36064625: xor esi, esi */
   5516     _cf = 0;
   5517     _flag_k = FK_TEST;
   5518 L_36064627:
   5519     edi = MEM32(ebx + 0x18); /* 0x36064627: mov edi, dword ptr [ebx + 0x18] */
   5520     /* cmp edi, esi */ /* 0x3606462A: cmp edi, esi */
   5521     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi);
   5522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5523     _flag_k = FK_CMP;
   5524     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064691; /* 0x3606462C: je 0x36064691 */
   5525 L_3606462E:
   5526     eax = MEM32(edi + 0x4); /* 0x3606462E: mov eax, dword ptr [edi + 4] */
   5527     esi = MEM32(eax); /* 0x36064631: mov esi, dword ptr [eax] */
   5528     /* cmp esi, eax */ /* 0x36064633: cmp esi, eax */
   5529     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5530     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5531     _flag_k = FK_CMP;
   5532     MEM32(ebp + (-0x8)) = eax; /* 0x36064635: mov dword ptr [ebp - 8], eax */
   5533     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064677; /* 0x36064638: je 0x36064677 */
   5534 L_3606463A:
   5535     PUSH32(esp, 0); /* 0x3606463A: push 0 */
   5536     ecx = ebp + (-0xC); /* 0x3606463C: lea ecx, [ebp - 0xc] */
   5537     eax = esi; /* 0x3606463F: mov eax, esi */
   5538     esi = MEM32(esi); /* 0x36064641: mov esi, dword ptr [esi] */
   5539     PUSH32(esp, ecx); /* 0x36064643: push ecx */
   5540     ecx = ebp + (-0x4); /* 0x36064644: lea ecx, [ebp - 4] */
   5541     MEM32(ebp + (-0x4)) = eax; /* 0x36064647: mov dword ptr [ebp - 4], eax */
   5542     RECOMP_ICALL(0x360641D0u); /* 0x3606464A: call 0x360641d0 */ /* not lifted */
   5543     RECOMP_FLAGS_IN();
   5544     eax = MEM32(eax); /* 0x3606464F: mov eax, dword ptr [eax] */
   5545     edx = MEM32(eax + 0x4); /* 0x36064651: mov edx, dword ptr [eax + 4] */
   5546     ecx = MEM32(eax); /* 0x36064654: mov ecx, dword ptr [eax] */
   5547     MEM32(edx) = ecx; /* 0x36064656: mov dword ptr [edx], ecx */
   5548     edx = MEM32(eax); /* 0x36064658: mov edx, dword ptr [eax] */
   5549     ecx = MEM32(eax + 0x4); /* 0x3606465A: mov ecx, dword ptr [eax + 4] */
   5550     PUSH32(esp, eax); /* 0x3606465D: push eax */
   5551     MEM32(edx + 0x4) = ecx; /* 0x3606465E: mov dword ptr [edx + 4], ecx */
   5552     RECOMP_ICALL(0x3615FCC4u); /* 0x36064661: call 0x3615fcc4 */ /* not lifted */
   5553     RECOMP_FLAGS_IN();
   5554     ecx = MEM32(edi + 0x8); /* 0x36064666: mov ecx, dword ptr [edi + 8] */
   5555     eax = MEM32(ebp + (-0x8)); /* 0x36064669: mov eax, dword ptr [ebp - 8] */
   5556     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5557     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5558     esp = esp + 4; /* 0x3606466C: add esp, 4 */
   5559     _flag_k = FK_ADD;
   5560     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5561     ecx = ecx - 1; /* 0x3606466F: dec ecx */
   5562     _flag_k = FK_DEC;
   5563     /* cmp esi, eax */ /* 0x36064670: cmp esi, eax */
   5564     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   5565     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5566     _flag_k = FK_CMP;
   5567     MEM32(edi + 0x8) = ecx; /* 0x36064672: mov dword ptr [edi + 8], ecx */
   5568     RECOMP_BACKEDGE();
   5569     if (CMP_NE(_flag_a, _flag_b)) goto L_3606463A; /* 0x36064675: jne 0x3606463a */
   5570 L_36064677:
   5571     edx = MEM32(edi + 0x4); /* 0x36064677: mov edx, dword ptr [edi + 4] */
   5572     PUSH32(esp, edx); /* 0x3606467A: push edx */
   5573     RECOMP_ICALL(0x3615FCC4u); /* 0x3606467B: call 0x3615fcc4 */ /* not lifted */
   5574     RECOMP_FLAGS_IN();
   5575     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5576     esi = 0; /* 0x36064680: xor esi, esi */
   5577     _cf = 0;
   5578     _flag_k = FK_TEST;
   5579     PUSH32(esp, edi); /* 0x36064682: push edi */
   5580     MEM32(edi + 0x4) = esi; /* 0x36064683: mov dword ptr [edi + 4], esi */
   5581     MEM32(edi + 0x8) = esi; /* 0x36064686: mov dword ptr [edi + 8], esi */
   5582     RECOMP_ICALL(0x3615FCC4u); /* 0x36064689: call 0x3615fcc4 */ /* not lifted */
   5583     RECOMP_FLAGS_IN();
   5584     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5585     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5586     esp = esp + 8; /* 0x3606468E: add esp, 8 */
   5587     _flag_k = FK_ADD;
   5588 L_36064691:
   5589     edi = POP32_VAL(esp); /* 0x36064691: pop edi */
   5590     MEM32(ebx + 0x18) = esi; /* 0x36064692: mov dword ptr [ebx + 0x18], esi */
   5591     esi = POP32_VAL(esp); /* 0x36064695: pop esi */
   5592     ebx = POP32_VAL(esp); /* 0x36064696: pop ebx */
   5593     esp = ebp; /* 0x36064697: mov esp, ebp */
   5594     ebp = POP32_VAL(esp); /* 0x36064699: pop ebp */
   5595     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606469A: ret  */
   5596     RECOMP_REGS_OUT();
   5597 }
   5598 
   5599 void sub_360646A0(void) {
   5600     int _fpu_cmp = 0;
   5601     uint32_t _cf = 0;
   5602     int _df = 1;
   5603     uint32_t _flag_k = FK_NONE;
   5604     uint32_t _flag_a = 0, _flag_b = 0;
   5605     uint32_t _itail_tgt = 0;
   5606     RECOMP_REGS_LOCALS
   5607     RECOMP_ENTER(0x360646A0u);
   5608 
   5609 L_360646A0:
   5610     PUSH32(esp, ebp); /* 0x360646A0: push ebp */
   5611     ebp = esp; /* 0x360646A1: mov ebp, esp */
   5612     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x114u);
   5613     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5614     esp = esp - 0x114u; /* 0x360646A3: sub esp, 0x114 */
   5615     _flag_k = FK_CMP;
   5616     PUSH32(esp, ebx); /* 0x360646A9: push ebx */
   5617     PUSH32(esp, esi); /* 0x360646AA: push esi */
   5618     esi = ecx; /* 0x360646AB: mov esi, ecx */
   5619     eax = MEM32(esi); /* 0x360646AD: mov eax, dword ptr [esi] */
   5620     ecx = MEM32(eax + 0x188); /* 0x360646AF: mov ecx, dword ptr [eax + 0x188] */
   5621     PUSH32(esp, edi); /* 0x360646B5: push edi */
   5622     PUSH32(esp, 0x800u); /* 0x360646B6: push 0x800 */
   5623     RECOMP_ICALL(0x36059BA0u); /* 0x360646BB: call 0x36059ba0 */ /* not lifted */
   5624     RECOMP_FLAGS_IN();
   5625     /* test LO8(eax), LO8(eax) */ /* 0x360646C0: test al, al */
   5626     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5627     _cf = 0;
   5628     _flag_k = FK_NARROW(FK_TEST, 24);
   5629     if (TEST_Z(_flag_a, _flag_b)) goto L_360646E0; /* 0x360646C2: je 0x360646e0 */
   5630 L_360646C4:
   5631     ecx = MEM32(esi); /* 0x360646C4: mov ecx, dword ptr [esi] */
   5632     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x360646C6: mov al, byte ptr [ecx + 0x128] */
   5633     /* test LO8(eax), LO8(eax) */ /* 0x360646CC: test al, al */
   5634     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5635     _cf = 0;
   5636     _flag_k = FK_NARROW(FK_TEST, 24);
   5637     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x360646CE: je 0x36064bad */
   5638 L_360646D4:
   5639     PUSH32(esp, 0); /* 0x360646D4: push 0 */
   5640     PUSH32(esp, 0x361C30A0u); /* 0x360646D6: push 0x361c30a0 */
   5641     goto L_36064BA1; /* 0x360646DB: jmp 0x36064ba1 */
   5642 L_360646E0:
   5643     edx = MEM32(esi); /* 0x360646E0: mov edx, dword ptr [esi] */
   5644     ecx = MEM32(edx + 0x188); /* 0x360646E2: mov ecx, dword ptr [edx + 0x188] */
   5645     PUSH32(esp, 2); /* 0x360646E8: push 2 */
   5646     RECOMP_ICALL(0x36059BA0u); /* 0x360646EA: call 0x36059ba0 */ /* not lifted */
   5647     RECOMP_FLAGS_IN();
   5648     /* test LO8(eax), LO8(eax) */ /* 0x360646EF: test al, al */
   5649     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5650     _cf = 0;
   5651     _flag_k = FK_NARROW(FK_TEST, 24);
   5652     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606470F; /* 0x360646F1: jne 0x3606470f */
   5653 L_360646F3:
   5654     eax = MEM32(esi); /* 0x360646F3: mov eax, dword ptr [esi] */
   5655     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360646F5: mov cl, byte ptr [eax + 0x128] */
   5656     /* test LO8(ecx), LO8(ecx) */ /* 0x360646FB: test cl, cl */
   5657     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5658     _cf = 0;
   5659     _flag_k = FK_NARROW(FK_TEST, 24);
   5660     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x360646FD: je 0x36064bad */
   5661 L_36064703:
   5662     PUSH32(esp, 0); /* 0x36064703: push 0 */
   5663     PUSH32(esp, 0x361C3070u); /* 0x36064705: push 0x361c3070 */
   5664     goto L_36064BA1; /* 0x3606470A: jmp 0x36064ba1 */
   5665 L_3606470F:
   5666     SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x3606470F: mov al, byte ptr [ebp + 0x14] */
   5667     /* test LO8(eax), LO8(eax) */ /* 0x36064712: test al, al */
   5668     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5669     _cf = 0;
   5670     _flag_k = FK_NARROW(FK_TEST, 24);
   5671     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606473D; /* 0x36064714: jne 0x3606473d */
   5672 L_36064716:
   5673     ecx = MEM32(esi); /* 0x36064716: mov ecx, dword ptr [esi] */
   5674     RECOMP_ICALL(0x36071430u); /* 0x36064718: call 0x36071430 */ /* not lifted */
   5675     RECOMP_FLAGS_IN();
   5676     /* test LO8(eax), LO8(eax) */ /* 0x3606471D: test al, al */
   5677     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5678     _cf = 0;
   5679     _flag_k = FK_NARROW(FK_TEST, 24);
   5680     if (TEST_Z(_flag_a, _flag_b)) goto L_3606473D; /* 0x3606471F: je 0x3606473d */
   5681 L_36064721:
   5682     ecx = MEM32(esi); /* 0x36064721: mov ecx, dword ptr [esi] */
   5683     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x36064723: mov al, byte ptr [ecx + 0x128] */
   5684     /* test LO8(eax), LO8(eax) */ /* 0x36064729: test al, al */
   5685     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5686     _cf = 0;
   5687     _flag_k = FK_NARROW(FK_TEST, 24);
   5688     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x3606472B: je 0x36064bad */
   5689 L_36064731:
   5690     PUSH32(esp, 0); /* 0x36064731: push 0 */
   5691     PUSH32(esp, 0x361C3038u); /* 0x36064733: push 0x361c3038 */
   5692     goto L_36064BA1; /* 0x36064738: jmp 0x36064ba1 */
   5693 L_3606473D:
   5694     ecx = MEM32(esi); /* 0x3606473D: mov ecx, dword ptr [esi] */
   5695     RECOMP_ICALL(0x36071AD0u); /* 0x3606473F: call 0x36071ad0 */ /* not lifted */
   5696     RECOMP_FLAGS_IN();
   5697     /* cmp eax, 5 */ /* 0x36064744: cmp eax, 5 */
   5698     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
   5699     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5700     _flag_k = FK_CMP;
   5701     if (CMP_NE(_flag_a, _flag_b)) goto L_36064765; /* 0x36064747: jne 0x36064765 */
   5702 L_36064749:
   5703     edx = MEM32(esi); /* 0x36064749: mov edx, dword ptr [esi] */
   5704     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x3606474B: mov al, byte ptr [edx + 0x128] */
   5705     /* test LO8(eax), LO8(eax) */ /* 0x36064751: test al, al */
   5706     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5707     _cf = 0;
   5708     _flag_k = FK_NARROW(FK_TEST, 24);
   5709     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064753: je 0x36064bad */
   5710 L_36064759:
   5711     PUSH32(esp, 0); /* 0x36064759: push 0 */
   5712     PUSH32(esp, 0x361C3004u); /* 0x3606475B: push 0x361c3004 */
   5713     goto L_36064BA1; /* 0x36064760: jmp 0x36064ba1 */
   5714 L_36064765:
   5715     ecx = MEM32(esi); /* 0x36064765: mov ecx, dword ptr [esi] */
   5716     RECOMP_ICALL(0x3606D5A0u); /* 0x36064767: call 0x3606d5a0 */ /* not lifted */
   5717     RECOMP_FLAGS_IN();
   5718     ecx = eax; /* 0x3606476C: mov ecx, eax */
   5719     RECOMP_ICALL(0x36047900u); /* 0x3606476E: call 0x36047900 */ /* not lifted */
   5720     RECOMP_FLAGS_IN();
   5721     ecx = eax; /* 0x36064773: mov ecx, eax */
   5722     RECOMP_ICALL(0x36008320u); /* 0x36064775: call 0x36008320 */ /* not lifted */
   5723     RECOMP_FLAGS_IN();
   5724     edi = eax; /* 0x3606477A: mov edi, eax */
   5725     /* cmp edi, 4 */ /* 0x3606477C: cmp edi, 4 */
   5726     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
   5727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5728     _flag_k = FK_CMP;
   5729     if (CMP_NE(_flag_a, _flag_b)) goto L_3606479D; /* 0x3606477F: jne 0x3606479d */
   5730 L_36064781:
   5731     eax = MEM32(esi); /* 0x36064781: mov eax, dword ptr [esi] */
   5732     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36064783: mov cl, byte ptr [eax + 0x128] */
   5733     /* test LO8(ecx), LO8(ecx) */ /* 0x36064789: test cl, cl */
   5734     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5735     _cf = 0;
   5736     _flag_k = FK_NARROW(FK_TEST, 24);
   5737     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x3606478B: je 0x36064bad */
   5738 L_36064791:
   5739     PUSH32(esp, 0); /* 0x36064791: push 0 */
   5740     PUSH32(esp, 0x361C2FD4u); /* 0x36064793: push 0x361c2fd4 */
   5741     goto L_36064BA1; /* 0x36064798: jmp 0x36064ba1 */
   5742 L_3606479D:
   5743     ecx = MEM32(esi); /* 0x3606479D: mov ecx, dword ptr [esi] */
   5744     RECOMP_ICALL(0x3606D5A0u); /* 0x3606479F: call 0x3606d5a0 */ /* not lifted */
   5745     RECOMP_FLAGS_IN();
   5746     SET_LO8(ecx, MEM8(eax + 0x4E)); /* 0x360647A4: mov cl, byte ptr [eax + 0x4e] */
   5747     /* test LO8(ecx), LO8(ecx) */ /* 0x360647A7: test cl, cl */
   5748     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5749     _cf = 0;
   5750     _flag_k = FK_NARROW(FK_TEST, 24);
   5751     if (TEST_Z(_flag_a, _flag_b)) goto L_360647C7; /* 0x360647A9: je 0x360647c7 */
   5752 L_360647AB:
   5753     ecx = MEM32(esi); /* 0x360647AB: mov ecx, dword ptr [esi] */
   5754     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x360647AD: mov al, byte ptr [ecx + 0x128] */
   5755     /* test LO8(eax), LO8(eax) */ /* 0x360647B3: test al, al */
   5756     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5757     _cf = 0;
   5758     _flag_k = FK_NARROW(FK_TEST, 24);
   5759     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x360647B5: je 0x36064bad */
   5760 L_360647BB:
   5761     PUSH32(esp, 0); /* 0x360647BB: push 0 */
   5762     PUSH32(esp, 0x361C2FA4u); /* 0x360647BD: push 0x361c2fa4 */
   5763     goto L_36064BA1; /* 0x360647C2: jmp 0x36064ba1 */
   5764 L_360647C7:
   5765     /* cmp edi, 8 */ /* 0x360647C7: cmp edi, 8 */
   5766     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8);
   5767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5768     _flag_k = FK_CMP;
   5769     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064B8E; /* 0x360647CA: je 0x36064b8e */
   5770 L_360647D0:
   5771     /* cmp edi, 9 */ /* 0x360647D0: cmp edi, 9 */
   5772     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(9);
   5773     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5774     _flag_k = FK_CMP;
   5775     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064B8E; /* 0x360647D3: je 0x36064b8e */
   5776 L_360647D9:
   5777     edi = MEM32(ebp + 0x18); /* 0x360647D9: mov edi, dword ptr [ebp + 0x18] */
   5778     /* test edi, edi */ /* 0x360647DC: test edi, edi */
   5779     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5780     _cf = 0;
   5781     _flag_k = FK_TEST;
   5782     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606480C; /* 0x360647DE: jne 0x3606480c */
   5783 L_360647E0:
   5784     edx = MEM32(ebp + 0x8); /* 0x360647E0: mov edx, dword ptr [ebp + 8] */
   5785     PUSH32(esp, edx); /* 0x360647E3: push edx */
   5786     ecx = esi; /* 0x360647E4: mov ecx, esi */
   5787     RECOMP_ICALL(0x36064EB0u); /* 0x360647E6: call 0x36064eb0 */ /* not lifted */
   5788     RECOMP_FLAGS_IN();
   5789     edi = eax; /* 0x360647EB: mov edi, eax */
   5790     /* test edi, edi */ /* 0x360647ED: test edi, edi */
   5791     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   5792     _cf = 0;
   5793     _flag_k = FK_TEST;
   5794     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606480C; /* 0x360647EF: jne 0x3606480c */
   5795 L_360647F1:
   5796     eax = MEM32(esi); /* 0x360647F1: mov eax, dword ptr [esi] */
   5797     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360647F3: mov cl, byte ptr [eax + 0x128] */
   5798     /* test LO8(ecx), LO8(ecx) */ /* 0x360647F9: test cl, cl */
   5799     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   5800     _cf = 0;
   5801     _flag_k = FK_NARROW(FK_TEST, 24);
   5802     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x360647FB: je 0x36064bad */
   5803 L_36064801:
   5804     PUSH32(esp, edi); /* 0x36064801: push edi */
   5805     PUSH32(esp, 0x361C2F70u); /* 0x36064802: push 0x361c2f70 */
   5806     goto L_36064BA1; /* 0x36064807: jmp 0x36064ba1 */
   5807 L_3606480C:
   5808     eax = MEM32(ebp + 0xC); /* 0x3606480C: mov eax, dword ptr [ebp + 0xc] */
   5809     ecx = ebp + (-0x14); /* 0x3606480F: lea ecx, [ebp - 0x14] */
   5810     /* cmp ecx, eax */ /* 0x36064812: cmp ecx, eax */
   5811     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5812     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5813     _flag_k = FK_CMP;
   5814     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064821; /* 0x36064814: je 0x36064821 */
   5815 L_36064816:
   5816     edx = MEM32(eax); /* 0x36064816: mov edx, dword ptr [eax] */
   5817     eax = MEM32(eax + 0x4); /* 0x36064818: mov eax, dword ptr [eax + 4] */
   5818     MEM32(ebp + (-0x14)) = edx; /* 0x3606481B: mov dword ptr [ebp - 0x14], edx */
   5819     MEM32(ebp + (-0x10)) = eax; /* 0x3606481E: mov dword ptr [ebp - 0x10], eax */
   5820 L_36064821:
   5821     SET_LO8(eax, MEM8(edi + 0x98)); /* 0x36064821: mov al, byte ptr [edi + 0x98] */
   5822     /* test LO8(eax), LO8(eax) */ /* 0x36064827: test al, al */
   5823     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5824     _cf = 0;
   5825     _flag_k = FK_NARROW(FK_TEST, 24);
   5826     if (TEST_Z(_flag_a, _flag_b)) goto L_36064839; /* 0x36064829: je 0x36064839 */
   5827 L_3606482B:
   5828     ecx = MEM32(esi); /* 0x3606482B: mov ecx, dword ptr [esi] */
   5829     edx = MEM32(ecx + 0x4); /* 0x3606482D: mov edx, dword ptr [ecx + 4] */
   5830     MEM32(ebp + (-0x14)) = edx; /* 0x36064830: mov dword ptr [ebp - 0x14], edx */
   5831     eax = MEM32(ecx + 0x8); /* 0x36064833: mov eax, dword ptr [ecx + 8] */
   5832     MEM32(ebp + (-0x10)) = eax; /* 0x36064836: mov dword ptr [ebp - 0x10], eax */
   5833 L_36064839:
   5834     ecx = MEM32(esi); /* 0x36064839: mov ecx, dword ptr [esi] */
   5835     edx = MEM32(ecx + 0xE4); /* 0x3606483B: mov edx, dword ptr [ecx + 0xe4] */
   5836     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   5837     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5838     ecx = ecx + 0xE4u; /* 0x36064841: add ecx, 0xe4 */
   5839     _flag_k = FK_ADD;
   5840     PUSH32(esp, 0); /* 0x36064847: push 0 */
   5841     PUSH32(esp, 0x13Eu); /* 0x36064849: push 0x13e */
   5842     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3606484E: call dword ptr [edx + 4] */
   5843     RECOMP_FLAGS_IN();
   5844     MEM32(ebp + 0x14) = eax; /* 0x36064851: mov dword ptr [ebp + 0x14], eax */
   5845     fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x36064854: fild dword ptr [ebp + 0x14] */
   5846     ecx = edi; /* 0x36064857: mov ecx, edi */
   5847     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x18) = _v; } /* 0x36064859: fstp dword ptr [ebp + 0x18] */
   5848     RECOMP_ICALL(0x36098BD0u); /* 0x3606485C: call 0x36098bd0 */ /* not lifted */
   5849     RECOMP_FLAGS_IN();
   5850     MEM32(ebp + 0x14) = eax; /* 0x36064861: mov dword ptr [ebp + 0x14], eax */
   5851     fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x36064864: fild dword ptr [ebp + 0x14] */
   5852     _st[0] *= (double)*(float*)ADDR(ebp + 0x18); /* 0x36064867: fmul dword ptr [ebp + 0x18] */
   5853     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x3606486A: fmul dword ptr [0x36170894] */
   5854     RECOMP_ICALL(0x3615FD8Cu); /* 0x36064870: call 0x3615fd8c */ /* not lifted */
   5855     RECOMP_FLAGS_IN();
   5856     ecx = MEM32(esi); /* 0x36064875: mov ecx, dword ptr [esi] */
   5857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   5858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5859     ecx = ecx + 0xE4u; /* 0x36064877: add ecx, 0xe4 */
   5860     _flag_k = FK_ADD;
   5861     PUSH32(esp, 2); /* 0x3606487D: push 2 */
   5862     ebx = eax; /* 0x3606487F: mov ebx, eax */
   5863     eax = MEM32(ecx); /* 0x36064881: mov eax, dword ptr [ecx] */
   5864     PUSH32(esp, 0xD6u); /* 0x36064883: push 0xd6 */
   5865     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36064888: call dword ptr [eax + 4] */
   5866     RECOMP_FLAGS_IN();
   5867     /* cmp eax, ebx */ /* 0x3606488B: cmp eax, ebx */
   5868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5870     _flag_k = FK_CMP;
   5871     if (CMP_GE(_flag_a, _flag_b)) goto L_360648CE; /* 0x3606488D: jge 0x360648ce */
   5872 L_3606488F:
   5873     ecx = MEM32(esi); /* 0x3606488F: mov ecx, dword ptr [esi] */
   5874     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x36064891: mov al, byte ptr [ecx + 0x128] */
   5875     /* test LO8(eax), LO8(eax) */ /* 0x36064897: test al, al */
   5876     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5877     _cf = 0;
   5878     _flag_k = FK_NARROW(FK_TEST, 24);
   5879     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064899: je 0x36064bad */
   5880 L_3606489F:
   5881     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x3606489F: mov al, byte ptr [ebp + 0x10] */
   5882     /* test LO8(eax), LO8(eax) */ /* 0x360648A2: test al, al */
   5883     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5884     _cf = 0;
   5885     _flag_k = FK_NARROW(FK_TEST, 24);
   5886     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x360648A4: je 0x36064bad */
   5887 L_360648AA:
   5888     PUSH32(esp, ebx); /* 0x360648AA: push ebx */
   5889     edx = ebp + (-0x114); /* 0x360648AB: lea edx, [ebp - 0x114] */
   5890     PUSH32(esp, 0x361C2F2Cu); /* 0x360648B1: push 0x361c2f2c */
   5891     PUSH32(esp, edx); /* 0x360648B6: push edx */
   5892     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x360648B7: call dword ptr [0x3616f25c] */
   5893     RECOMP_FLAGS_IN();
   5894     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5895     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5896     esp = esp + 0xCu; /* 0x360648BD: add esp, 0xc */
   5897     _flag_k = FK_ADD;
   5898     PUSH32(esp, 0); /* 0x360648C0: push 0 */
   5899     eax = ebp + (-0x114); /* 0x360648C2: lea eax, [ebp - 0x114] */
   5900     PUSH32(esp, eax); /* 0x360648C8: push eax */
   5901     goto L_36064BA1; /* 0x360648C9: jmp 0x36064ba1 */
   5902 L_360648CE:
   5903     eax = MEM32(esi); /* 0x360648CE: mov eax, dword ptr [esi] */
   5904     /* test eax, eax */ /* 0x360648D0: test eax, eax */
   5905     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5906     _cf = 0;
   5907     _flag_k = FK_TEST;
   5908     SET_LO8(ecx, MEM8(eax + 0x1B4)); /* 0x360648D2: mov cl, byte ptr [eax + 0x1b4] */
   5909     MEM8(ebp + 0x14) = (uint8_t)(LO8(ecx)); /* 0x360648D8: mov byte ptr [ebp + 0x14], cl */
   5910     if (TEST_Z(_flag_a, _flag_b)) goto L_360648E4; /* 0x360648DB: je 0x360648e4 */
   5911 L_360648DD:
   5912     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   5913     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5914     eax = eax + 0xE4u; /* 0x360648DD: add eax, 0xe4 */
   5915     _flag_k = FK_ADD;
   5916     goto L_360648E6; /* 0x360648E2: jmp 0x360648e6 */
   5917 L_360648E4:
   5918     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5919     eax = 0; /* 0x360648E4: xor eax, eax */
   5920     _cf = 0;
   5921     _flag_k = FK_TEST;
   5922 L_360648E6:
   5923     edx = MEM32(ebp + 0x14); /* 0x360648E6: mov edx, dword ptr [ebp + 0x14] */
   5924     PUSH32(esp, edx); /* 0x360648E9: push edx */
   5925     PUSH32(esp, eax); /* 0x360648EA: push eax */
   5926     PUSH32(esp, 3); /* 0x360648EB: push 3 */
   5927     ecx = edi; /* 0x360648ED: mov ecx, edi */
   5928     RECOMP_ICALL(0x3608FC40u); /* 0x360648EF: call 0x3608fc40 */ /* not lifted */
   5929     RECOMP_FLAGS_IN();
   5930     /* test LO8(eax), LO8(eax) */ /* 0x360648F4: test al, al */
   5931     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5932     _cf = 0;
   5933     _flag_k = FK_NARROW(FK_TEST, 24);
   5934     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x360648F6: je 0x36064bad */
   5935 L_360648FC:
   5936     ebx = MEM32(0x3616FF70); /* 0x360648FC: mov ebx, dword ptr [0x3616ff70] */
   5937     PUSH32(esp, 0); /* 0x36064902: push 0 */
   5938     PUSH32(esp, 0x361B2CF8u); /* 0x36064904: push 0x361b2cf8 */
   5939     PUSH32(esp, 0x361B2CC0u); /* 0x36064909: push 0x361b2cc0 */
   5940     eax = ebp + (-0x14); /* 0x3606490E: lea eax, [ebp - 0x14] */
   5941     PUSH32(esp, 0); /* 0x36064911: push 0 */
   5942     PUSH32(esp, eax); /* 0x36064913: push eax */
   5943     RECOMP_ICALL(ebx); /* 0x36064914: call ebx */
   5944     RECOMP_FLAGS_IN();
   5945     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5946     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5947     esp = esp + 4; /* 0x36064916: add esp, 4 */
   5948     _flag_k = FK_ADD;
   5949     PUSH32(esp, eax); /* 0x36064919: push eax */
   5950     RECOMP_ICALL(0x3615FD86u); /* 0x3606491A: call 0x3615fd86 */ /* not lifted */
   5951     RECOMP_FLAGS_IN();
   5952     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5953     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5954     esp = esp + 0x14u; /* 0x3606491F: add esp, 0x14 */
   5955     _flag_k = FK_ADD;
   5956     /* test eax, eax */ /* 0x36064922: test eax, eax */
   5957     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5958     _cf = 0;
   5959     _flag_k = FK_TEST;
   5960     if (TEST_Z(_flag_a, _flag_b)) goto L_3606494D; /* 0x36064924: je 0x3606494d */
   5961 L_36064926:
   5962     ecx = MEM32(esi); /* 0x36064926: mov ecx, dword ptr [esi] */
   5963     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x36064928: mov al, byte ptr [ecx + 0x128] */
   5964     /* test LO8(eax), LO8(eax) */ /* 0x3606492E: test al, al */
   5965     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5966     _cf = 0;
   5967     _flag_k = FK_NARROW(FK_TEST, 24);
   5968     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064930: je 0x36064bad */
   5969 L_36064936:
   5970     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x36064936: mov al, byte ptr [ebp + 0x10] */
   5971     /* test LO8(eax), LO8(eax) */ /* 0x36064939: test al, al */
   5972     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5973     _cf = 0;
   5974     _flag_k = FK_NARROW(FK_TEST, 24);
   5975     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x3606493B: je 0x36064bad */
   5976 L_36064941:
   5977     PUSH32(esp, 0); /* 0x36064941: push 0 */
   5978     PUSH32(esp, 0x361C2F00u); /* 0x36064943: push 0x361c2f00 */
   5979     goto L_36064BA1; /* 0x36064948: jmp 0x36064ba1 */
   5980 L_3606494D:
   5981     PUSH32(esp, 0); /* 0x3606494D: push 0 */
   5982     PUSH32(esp, 0x361B2CD8u); /* 0x3606494F: push 0x361b2cd8 */
   5983     PUSH32(esp, 0x361B2CC0u); /* 0x36064954: push 0x361b2cc0 */
   5984     edx = ebp + (-0x14); /* 0x36064959: lea edx, [ebp - 0x14] */
   5985     PUSH32(esp, 0); /* 0x3606495C: push 0 */
   5986     PUSH32(esp, edx); /* 0x3606495E: push edx */
   5987     RECOMP_ICALL(ebx); /* 0x3606495F: call ebx */
   5988     RECOMP_FLAGS_IN();
   5989     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5990     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5991     esp = esp + 4; /* 0x36064961: add esp, 4 */
   5992     _flag_k = FK_ADD;
   5993     PUSH32(esp, eax); /* 0x36064964: push eax */
   5994     RECOMP_ICALL(0x3615FD86u); /* 0x36064965: call 0x3615fd86 */ /* not lifted */
   5995     RECOMP_FLAGS_IN();
   5996     ebx = eax; /* 0x3606496A: mov ebx, eax */
   5997     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5999     esp = esp + 0x14u; /* 0x3606496C: add esp, 0x14 */
   6000     _flag_k = FK_ADD;
   6001     /* test ebx, ebx */ /* 0x3606496F: test ebx, ebx */
   6002     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6003     _cf = 0;
   6004     _flag_k = FK_TEST;
   6005     MEM32(ebp + 0x18) = ebx; /* 0x36064971: mov dword ptr [ebp + 0x18], ebx */
   6006     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064991; /* 0x36064974: jne 0x36064991 */
   6007 L_36064976:
   6008     eax = MEM32(esi); /* 0x36064976: mov eax, dword ptr [esi] */
   6009     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36064978: mov cl, byte ptr [eax + 0x128] */
   6010     /* test LO8(ecx), LO8(ecx) */ /* 0x3606497E: test cl, cl */
   6011     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6012     _cf = 0;
   6013     _flag_k = FK_NARROW(FK_TEST, 24);
   6014     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064980: je 0x36064bad */
   6015 L_36064986:
   6016     PUSH32(esp, ebx); /* 0x36064986: push ebx */
   6017     PUSH32(esp, 0x361C2ECCu); /* 0x36064987: push 0x361c2ecc */
   6018     goto L_36064BA1; /* 0x3606498C: jmp 0x36064ba1 */
   6019 L_36064991:
   6020     edx = MEM32(edi); /* 0x36064991: mov edx, dword ptr [edi] */
   6021     PUSH32(esp, 0x8000u); /* 0x36064993: push 0x8000 */
   6022     ecx = edi; /* 0x36064998: mov ecx, edi */
   6023     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3606499A: call dword ptr [edx + 0x1c] */
   6024     RECOMP_FLAGS_IN();
   6025     /* test LO8(eax), LO8(eax) */ /* 0x3606499D: test al, al */
   6026     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6027     _cf = 0;
   6028     _flag_k = FK_NARROW(FK_TEST, 24);
   6029     if (TEST_NZ(_flag_a, _flag_b)) goto L_360649E8; /* 0x3606499F: jne 0x360649e8 */
   6030 L_360649A1:
   6031     SET_LO8(eax, MEM8(ebx + 0x1B4)); /* 0x360649A1: mov al, byte ptr [ebx + 0x1b4] */
   6032     /* test LO8(eax), LO8(eax) */ /* 0x360649A7: test al, al */
   6033     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6034     _cf = 0;
   6035     _flag_k = FK_NARROW(FK_TEST, 24);
   6036     if (TEST_Z(_flag_a, _flag_b)) goto L_360649E8; /* 0x360649A9: je 0x360649e8 */
   6037 L_360649AB:
   6038     eax = MEM32(esi); /* 0x360649AB: mov eax, dword ptr [esi] */
   6039     SET_LO8(ecx, MEM8(eax + 0x1B4)); /* 0x360649AD: mov cl, byte ptr [eax + 0x1b4] */
   6040     /* test LO8(ecx), LO8(ecx) */ /* 0x360649B3: test cl, cl */
   6041     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6042     _cf = 0;
   6043     _flag_k = FK_NARROW(FK_TEST, 24);
   6044     if (TEST_NZ(_flag_a, _flag_b)) goto L_360649E8; /* 0x360649B5: jne 0x360649e8 */
   6045 L_360649B7:
   6046     eax = MEM32(eax + 0x170); /* 0x360649B7: mov eax, dword ptr [eax + 0x170] */
   6047     ecx = ebx + 0x4; /* 0x360649BD: lea ecx, [ebx + 4] */
   6048     PUSH32(esp, ecx); /* 0x360649C0: push ecx */
   6049     ecx = eax; /* 0x360649C1: mov ecx, eax */
   6050     RECOMP_ICALL(0x36067C20u); /* 0x360649C3: call 0x36067c20 */ /* not lifted */
   6051     RECOMP_FLAGS_IN();
   6052     /* test LO8(eax), LO8(eax) */ /* 0x360649C8: test al, al */
   6053     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6054     _cf = 0;
   6055     _flag_k = FK_NARROW(FK_TEST, 24);
   6056     if (TEST_NZ(_flag_a, _flag_b)) goto L_360649E8; /* 0x360649CA: jne 0x360649e8 */
   6057 L_360649CC:
   6058     edx = MEM32(esi); /* 0x360649CC: mov edx, dword ptr [esi] */
   6059     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x360649CE: mov al, byte ptr [edx + 0x128] */
   6060     /* test LO8(eax), LO8(eax) */ /* 0x360649D4: test al, al */
   6061     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6062     _cf = 0;
   6063     _flag_k = FK_NARROW(FK_TEST, 24);
   6064     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x360649D6: je 0x36064bad */
   6065 L_360649DC:
   6066     PUSH32(esp, 0); /* 0x360649DC: push 0 */
   6067     PUSH32(esp, 0x361C2E78u); /* 0x360649DE: push 0x361c2e78 */
   6068     goto L_36064BA1; /* 0x360649E3: jmp 0x36064ba1 */
   6069 L_360649E8:
   6070     eax = MEM32(edi); /* 0x360649E8: mov eax, dword ptr [edi] */
   6071     PUSH32(esp, 2); /* 0x360649EA: push 2 */
   6072     PUSH32(esp, 0x195u); /* 0x360649EC: push 0x195 */
   6073     ecx = edi; /* 0x360649F1: mov ecx, edi */
   6074     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360649F3: call dword ptr [eax + 4] */
   6075     RECOMP_FLAGS_IN();
   6076     PUSH32(esp, eax); /* 0x360649F6: push eax */
   6077     ecx = esi; /* 0x360649F7: mov ecx, esi */
   6078     RECOMP_ICALL(0x360668A0u); /* 0x360649F9: call 0x360668a0 */ /* not lifted */
   6079     RECOMP_FLAGS_IN();
   6080     /* test LO8(eax), LO8(eax) */ /* 0x360649FE: test al, al */
   6081     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6082     _cf = 0;
   6083     _flag_k = FK_NARROW(FK_TEST, 24);
   6084     if (TEST_Z(_flag_a, _flag_b)) goto L_36064A58; /* 0x36064A00: je 0x36064a58 */
   6085 L_36064A02:
   6086     ecx = MEM32(esi); /* 0x36064A02: mov ecx, dword ptr [esi] */
   6087     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x36064A04: mov al, byte ptr [ecx + 0x128] */
   6088     /* test LO8(eax), LO8(eax) */ /* 0x36064A0A: test al, al */
   6089     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6090     _cf = 0;
   6091     _flag_k = FK_NARROW(FK_TEST, 24);
   6092     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064A0C: je 0x36064bad */
   6093 L_36064A12:
   6094     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x36064A12: mov al, byte ptr [ebp + 0x10] */
   6095     /* test LO8(eax), LO8(eax) */ /* 0x36064A15: test al, al */
   6096     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6097     _cf = 0;
   6098     _flag_k = FK_NARROW(FK_TEST, 24);
   6099     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064A17: je 0x36064bad */
   6100 L_36064A1D:
   6101     ecx = esi; /* 0x36064A1D: mov ecx, esi */
   6102     RECOMP_ICALL(0x36066880u); /* 0x36064A1F: call 0x36066880 */ /* not lifted */
   6103     RECOMP_FLAGS_IN();
   6104     /* cmp eax, 1 */ /* 0x36064A24: cmp eax, 1 */
   6105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6107     _flag_k = FK_CMP;
   6108     PUSH32(esp, 0); /* 0x36064A27: push 0 */
   6109     if (CMP_NE(_flag_a, _flag_b)) goto L_36064A4E; /* 0x36064A29: jne 0x36064a4e */
   6110 L_36064A2B:
   6111     PUSH32(esp, 0x361C2E44u); /* 0x36064A2B: push 0x361c2e44 */
   6112     RECOMP_ICALL(0x3601C590u); /* 0x36064A30: call 0x3601c590 */ /* not lifted */
   6113     RECOMP_FLAGS_IN();
   6114     ecx = eax; /* 0x36064A35: mov ecx, eax */
   6115     RECOMP_ICALL(0x3601C8C0u); /* 0x36064A37: call 0x3601c8c0 */ /* not lifted */
   6116     RECOMP_FLAGS_IN();
   6117     ecx = esi; /* 0x36064A3C: mov ecx, esi */
   6118     RECOMP_ICALL(0x360667B0u); /* 0x36064A3E: call 0x360667b0 */ /* not lifted */
   6119     RECOMP_FLAGS_IN();
   6120     edi = POP32_VAL(esp); /* 0x36064A43: pop edi */
   6121     esi = POP32_VAL(esp); /* 0x36064A44: pop esi */
   6122     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6123     SET_LO8(eax, 0); /* 0x36064A45: xor al, al */
   6124     _cf = 0;
   6125     _flag_k = FK_NARROW(FK_TEST, 24);
   6126     ebx = POP32_VAL(esp); /* 0x36064A47: pop ebx */
   6127     esp = ebp; /* 0x36064A48: mov esp, ebp */
   6128     ebp = POP32_VAL(esp); /* 0x36064A4A: pop ebp */
   6129     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36064A4B: ret 0x14 */
   6130 L_36064A4E:
   6131     PUSH32(esp, 0x361C2E1Cu); /* 0x36064A4E: push 0x361c2e1c */
   6132     goto L_36064BA1; /* 0x36064A53: jmp 0x36064ba1 */
   6133 L_36064A58:
   6134     edx = MEM32(edi); /* 0x36064A58: mov edx, dword ptr [edi] */
   6135     PUSH32(esp, 2); /* 0x36064A5A: push 2 */
   6136     PUSH32(esp, 0x4Bu); /* 0x36064A5C: push 0x4b */
   6137     ecx = edi; /* 0x36064A5E: mov ecx, edi */
   6138     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36064A60: call dword ptr [edx + 4] */
   6139     RECOMP_FLAGS_IN();
   6140     PUSH32(esp, 2); /* 0x36064A63: push 2 */
   6141     MEM32(ebp + 0x14) = eax; /* 0x36064A65: mov dword ptr [ebp + 0x14], eax */
   6142     eax = MEM32(edi); /* 0x36064A68: mov eax, dword ptr [edi] */
   6143     PUSH32(esp, 0x36u); /* 0x36064A6A: push 0x36 */
   6144     ecx = edi; /* 0x36064A6C: mov ecx, edi */
   6145     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36064A6E: call dword ptr [eax + 4] */
   6146     RECOMP_FLAGS_IN();
   6147     edx = MEM32(ebp + 0x14); /* 0x36064A71: mov edx, dword ptr [ebp + 0x14] */
   6148     ecx = MEM32(ebx + 0x158); /* 0x36064A74: mov ecx, dword ptr [ebx + 0x158] */
   6149     PUSH32(esp, eax); /* 0x36064A7A: push eax */
   6150     PUSH32(esp, edx); /* 0x36064A7B: push edx */
   6151     RECOMP_ICALL(0x36066D40u); /* 0x36064A7C: call 0x36066d40 */ /* not lifted */
   6152     RECOMP_FLAGS_IN();
   6153     /* test LO8(eax), LO8(eax) */ /* 0x36064A81: test al, al */
   6154     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6155     _cf = 0;
   6156     _flag_k = FK_NARROW(FK_TEST, 24);
   6157     if (TEST_Z(_flag_a, _flag_b)) goto L_36064AA1; /* 0x36064A83: je 0x36064aa1 */
   6158 L_36064A85:
   6159     eax = MEM32(esi); /* 0x36064A85: mov eax, dword ptr [esi] */
   6160     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36064A87: mov cl, byte ptr [eax + 0x128] */
   6161     /* test LO8(ecx), LO8(ecx) */ /* 0x36064A8D: test cl, cl */
   6162     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6163     _cf = 0;
   6164     _flag_k = FK_NARROW(FK_TEST, 24);
   6165     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064A8F: je 0x36064bad */
   6166 L_36064A95:
   6167     PUSH32(esp, 0); /* 0x36064A95: push 0 */
   6168     PUSH32(esp, 0x361C2DE8u); /* 0x36064A97: push 0x361c2de8 */
   6169     goto L_36064BA1; /* 0x36064A9C: jmp 0x36064ba1 */
   6170 L_36064AA1:
   6171     PUSH32(esp, edi); /* 0x36064AA1: push edi */
   6172     ecx = esi; /* 0x36064AA2: mov ecx, esi */
   6173     RECOMP_ICALL(0x36066F40u); /* 0x36064AA4: call 0x36066f40 */ /* not lifted */
   6174     RECOMP_FLAGS_IN();
   6175     /* test LO8(eax), LO8(eax) */ /* 0x36064AA9: test al, al */
   6176     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6177     _cf = 0;
   6178     _flag_k = FK_NARROW(FK_TEST, 24);
   6179     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064AAB: je 0x36064bad */
   6180 L_36064AB1:
   6181     ecx = ebx; /* 0x36064AB1: mov ecx, ebx */
   6182     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36064AB3: call dword ptr [0x3616ffb0] */
   6183     RECOMP_FLAGS_IN();
   6184     ecx = MEM32(esi); /* 0x36064AB9: mov ecx, dword ptr [esi] */
   6185     ebx = eax; /* 0x36064ABB: mov ebx, eax */
   6186     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36064ABD: call dword ptr [0x3616ffb0] */
   6187     RECOMP_FLAGS_IN();
   6188     ecx = MEM32(eax); /* 0x36064AC3: mov ecx, dword ptr [eax] */
   6189     edx = MEM32(eax + 0x4); /* 0x36064AC5: mov edx, dword ptr [eax + 4] */
   6190     eax = MEM32(eax + 0x8); /* 0x36064AC8: mov eax, dword ptr [eax + 8] */
   6191     MEM32(ebp + (-0xC)) = ecx; /* 0x36064ACB: mov dword ptr [ebp - 0xc], ecx */
   6192     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36064ACE: fld dword ptr [ebp - 0xc] */
   6193     _st[0] -= (double)*(float*)ADDR(ebx); /* 0x36064AD1: fsub dword ptr [ebx] */
   6194     ecx = MEM32(esi); /* 0x36064AD3: mov ecx, dword ptr [esi] */
   6195     MEM32(ebp + (-0x8)) = edx; /* 0x36064AD5: mov dword ptr [ebp - 8], edx */
   6196     MEM32(ebp + (-0x4)) = eax; /* 0x36064AD8: mov dword ptr [ebp - 4], eax */
   6197     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36064ADB: fstp dword ptr [ebp - 0xc] */
   6198     PUSH32(esp, ecx); /* 0x36064ADE: push ecx */
   6199     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36064ADF: fld dword ptr [ebp - 8] */
   6200     ecx = edi; /* 0x36064AE2: mov ecx, edi */
   6201     _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x36064AE4: fsub dword ptr [ebx + 4] */
   6202     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36064AE7: fstp dword ptr [ebp - 8] */
   6203     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36064AEA: fld dword ptr [ebp - 4] */
   6204     _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x36064AED: fsub dword ptr [ebx + 8] */
   6205     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36064AF0: fstp dword ptr [ebp - 4] */
   6206     RECOMP_ICALL(0x36098C10u); /* 0x36064AF3: call 0x36098c10 */ /* not lifted */
   6207     RECOMP_FLAGS_IN();
   6208     fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36064AF8: fld dword ptr [ebp - 4] */
   6209     ebx = eax; /* 0x36064AFB: mov ebx, eax */
   6210     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36064AFD: fmul dword ptr [ebp - 4] */
   6211     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36064B00: fld dword ptr [ebp - 8] */
   6212     _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36064B03: fmul dword ptr [ebp - 8] */
   6213     { double _v = fp_pop(); _st[0] += _v; } /* 0x36064B06: faddp st(1) */
   6214     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36064B08: fld dword ptr [ebp - 0xc] */
   6215     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36064B0B: fmul dword ptr [ebp - 0xc] */
   6216     { double _v = fp_pop(); _st[0] += _v; } /* 0x36064B0E: faddp st(1) */
   6217     _st[0] = sqrt(_st[0]); /* 0x36064B10: fsqrt  */
   6218     RECOMP_ICALL(0x3615FD8Cu); /* 0x36064B12: call 0x3615fd8c */ /* not lifted */
   6219     RECOMP_FLAGS_IN();
   6220     /* cmp eax, ebx */ /* 0x36064B17: cmp eax, ebx */
   6221     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   6222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6223     _flag_k = FK_CMP;
   6224     if (CMP_LE(_flag_a, _flag_b)) goto L_36064B34; /* 0x36064B19: jle 0x36064b34 */
   6225 L_36064B1B:
   6226     edx = MEM32(esi); /* 0x36064B1B: mov edx, dword ptr [esi] */
   6227     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x36064B1D: mov al, byte ptr [edx + 0x128] */
   6228     /* test LO8(eax), LO8(eax) */ /* 0x36064B23: test al, al */
   6229     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6230     _cf = 0;
   6231     _flag_k = FK_NARROW(FK_TEST, 24);
   6232     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064B25: je 0x36064bad */
   6233 L_36064B2B:
   6234     PUSH32(esp, 0); /* 0x36064B2B: push 0 */
   6235     PUSH32(esp, 0x361C2DC0u); /* 0x36064B2D: push 0x361c2dc0 */
   6236     goto L_36064BA1; /* 0x36064B32: jmp 0x36064ba1 */
   6237 L_36064B34:
   6238     ebx = MEM32(ebp + 0x18); /* 0x36064B34: mov ebx, dword ptr [ebp + 0x18] */
   6239     ecx = MEM32(esi); /* 0x36064B37: mov ecx, dword ptr [esi] */
   6240     PUSH32(esp, ebx); /* 0x36064B39: push ebx */
   6241     RECOMP_ICALL(0x360721D0u); /* 0x36064B3A: call 0x360721d0 */ /* not lifted */
   6242     RECOMP_FLAGS_IN();
   6243     /* test LO8(eax), LO8(eax) */ /* 0x36064B3F: test al, al */
   6244     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6245     _cf = 0;
   6246     _flag_k = FK_NARROW(FK_TEST, 24);
   6247     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064B64; /* 0x36064B41: jne 0x36064b64 */
   6248 L_36064B43:
   6249     eax = MEM32(esi); /* 0x36064B43: mov eax, dword ptr [esi] */
   6250     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36064B45: mov cl, byte ptr [eax + 0x128] */
   6251     /* test LO8(ecx), LO8(ecx) */ /* 0x36064B4B: test cl, cl */
   6252     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6253     _cf = 0;
   6254     _flag_k = FK_NARROW(FK_TEST, 24);
   6255     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064B4D: je 0x36064bad */
   6256 L_36064B4F:
   6257     PUSH32(esp, 0x46u); /* 0x36064B4F: push 0x46 */
   6258     RECOMP_ICALL(0x360418D0u); /* 0x36064B51: call 0x360418d0 */ /* not lifted */
   6259     RECOMP_FLAGS_IN();
   6260     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6261     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6262     esp = esp + 4; /* 0x36064B56: add esp, 4 */
   6263     _flag_k = FK_ADD;
   6264     edi = POP32_VAL(esp); /* 0x36064B59: pop edi */
   6265     esi = POP32_VAL(esp); /* 0x36064B5A: pop esi */
   6266     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6267     SET_LO8(eax, 0); /* 0x36064B5B: xor al, al */
   6268     _cf = 0;
   6269     _flag_k = FK_NARROW(FK_TEST, 24);
   6270     ebx = POP32_VAL(esp); /* 0x36064B5D: pop ebx */
   6271     esp = ebp; /* 0x36064B5E: mov esp, ebp */
   6272     ebp = POP32_VAL(esp); /* 0x36064B60: pop ebp */
   6273     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36064B61: ret 0x14 */
   6274 L_36064B64:
   6275     edx = MEM32(ebp + 0x10); /* 0x36064B64: mov edx, dword ptr [ebp + 0x10] */
   6276     ecx = MEM32(esi); /* 0x36064B67: mov ecx, dword ptr [esi] */
   6277     ecx = MEM32(ecx + 0x158); /* 0x36064B69: mov ecx, dword ptr [ecx + 0x158] */
   6278     PUSH32(esp, edx); /* 0x36064B6F: push edx */
   6279     PUSH32(esp, ebx); /* 0x36064B70: push ebx */
   6280     PUSH32(esp, edi); /* 0x36064B71: push edi */
   6281     RECOMP_ICALL(0x36066310u); /* 0x36064B72: call 0x36066310 */ /* not lifted */
   6282     RECOMP_FLAGS_IN();
   6283     /* test LO8(eax), LO8(eax) */ /* 0x36064B77: test al, al */
   6284     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6285     _cf = 0;
   6286     _flag_k = FK_NARROW(FK_TEST, 24);
   6287     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064B79: je 0x36064bad */
   6288 L_36064B7B:
   6289     PUSH32(esp, edi); /* 0x36064B7B: push edi */
   6290     ecx = esi; /* 0x36064B7C: mov ecx, esi */
   6291     RECOMP_ICALL(0x360668F0u); /* 0x36064B7E: call 0x360668f0 */ /* not lifted */
   6292     RECOMP_FLAGS_IN();
   6293     edi = POP32_VAL(esp); /* 0x36064B83: pop edi */
   6294     esi = POP32_VAL(esp); /* 0x36064B84: pop esi */
   6295     SET_LO8(eax, 1); /* 0x36064B85: mov al, 1 */
   6296     ebx = POP32_VAL(esp); /* 0x36064B87: pop ebx */
   6297     esp = ebp; /* 0x36064B88: mov esp, ebp */
   6298     ebp = POP32_VAL(esp); /* 0x36064B8A: pop ebp */
   6299     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36064B8B: ret 0x14 */
   6300 L_36064B8E:
   6301     eax = MEM32(esi); /* 0x36064B8E: mov eax, dword ptr [esi] */
   6302     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36064B90: mov cl, byte ptr [eax + 0x128] */
   6303     /* test LO8(ecx), LO8(ecx) */ /* 0x36064B96: test cl, cl */
   6304     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   6305     _cf = 0;
   6306     _flag_k = FK_NARROW(FK_TEST, 24);
   6307     if (TEST_Z(_flag_a, _flag_b)) goto L_36064BAD; /* 0x36064B98: je 0x36064bad */
   6308 L_36064B9A:
   6309     PUSH32(esp, 0); /* 0x36064B9A: push 0 */
   6310     PUSH32(esp, 0x361C2D8Cu); /* 0x36064B9C: push 0x361c2d8c */
   6311 L_36064BA1:
   6312     RECOMP_ICALL(0x3601C590u); /* 0x36064BA1: call 0x3601c590 */ /* not lifted */
   6313     RECOMP_FLAGS_IN();
   6314     ecx = eax; /* 0x36064BA6: mov ecx, eax */
   6315     RECOMP_ICALL(0x3601C8C0u); /* 0x36064BA8: call 0x3601c8c0 */ /* not lifted */
   6316     RECOMP_FLAGS_IN();
   6317 L_36064BAD:
   6318     edi = POP32_VAL(esp); /* 0x36064BAD: pop edi */
   6319     esi = POP32_VAL(esp); /* 0x36064BAE: pop esi */
   6320     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6321     SET_LO8(eax, 0); /* 0x36064BAF: xor al, al */
   6322     _cf = 0;
   6323     _flag_k = FK_NARROW(FK_TEST, 24);
   6324     ebx = POP32_VAL(esp); /* 0x36064BB1: pop ebx */
   6325     esp = ebp; /* 0x36064BB2: mov esp, ebp */
   6326     ebp = POP32_VAL(esp); /* 0x36064BB4: pop ebp */
   6327     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36064BB5: ret 0x14 */
   6328     RECOMP_REGS_OUT();
   6329 }
   6330 
   6331 void sub_36064BA1(void) {
   6332     int _fpu_cmp = 0;
   6333     uint32_t _cf = 0;
   6334     int _df = 1;
   6335     uint32_t _flag_k = FK_NONE;
   6336     uint32_t _flag_a = 0, _flag_b = 0;
   6337     uint32_t _itail_tgt = 0;
   6338     RECOMP_REGS_LOCALS
   6339     RECOMP_ENTER(0x36064BA1u);
   6340 
   6341 L_36064BA1:
   6342     RECOMP_ICALL(0x3601C590u); /* 0x36064BA1: call 0x3601c590 */ /* not lifted */
   6343     RECOMP_FLAGS_IN();
   6344     ecx = eax; /* 0x36064BA6: mov ecx, eax */
   6345     RECOMP_ICALL(0x3601C8C0u); /* 0x36064BA8: call 0x3601c8c0 */ /* not lifted */
   6346     RECOMP_FLAGS_IN();
   6347     edi = POP32_VAL(esp); /* 0x36064BAD: pop edi */
   6348     esi = POP32_VAL(esp); /* 0x36064BAE: pop esi */
   6349     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   6350     SET_LO8(eax, 0); /* 0x36064BAF: xor al, al */
   6351     _cf = 0;
   6352     _flag_k = FK_NARROW(FK_TEST, 24);
   6353     ebx = POP32_VAL(esp); /* 0x36064BB1: pop ebx */
   6354     esp = ebp; /* 0x36064BB2: mov esp, ebp */
   6355     ebp = POP32_VAL(esp); /* 0x36064BB4: pop ebp */
   6356     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36064BB5: ret 0x14 */
   6357     RECOMP_REGS_OUT();
   6358 }
   6359 
   6360 void sub_36064BC0(void) {
   6361     int _fpu_cmp = 0;
   6362     uint32_t _cf = 0;
   6363     int _df = 1;
   6364     uint32_t _flag_k = FK_NONE;
   6365     uint32_t _flag_a = 0, _flag_b = 0;
   6366     uint32_t _itail_tgt = 0;
   6367     RECOMP_REGS_LOCALS
   6368     RECOMP_ENTER(0x36064BC0u);
   6369 
   6370 L_36064BC0:
   6371     PUSH32(esp, ebp); /* 0x36064BC0: push ebp */
   6372     ebp = esp; /* 0x36064BC1: mov ebp, esp */
   6373     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6374     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6375     esp = esp - 0xCu; /* 0x36064BC3: sub esp, 0xc */
   6376     _flag_k = FK_CMP;
   6377     eax = MEM32(ebp + 0x8); /* 0x36064BC6: mov eax, dword ptr [ebp + 8] */
   6378     PUSH32(esp, ebx); /* 0x36064BC9: push ebx */
   6379     PUSH32(esp, esi); /* 0x36064BCA: push esi */
   6380     PUSH32(esp, edi); /* 0x36064BCB: push edi */
   6381     edi = ecx; /* 0x36064BCC: mov edi, ecx */
   6382     PUSH32(esp, eax); /* 0x36064BCE: push eax */
   6383     MEM32(ebp + (-0x4)) = edi; /* 0x36064BCF: mov dword ptr [ebp - 4], edi */
   6384     MEM8(edi + 0xC) = (uint8_t)(0); /* 0x36064BD2: mov byte ptr [edi + 0xc], 0 */
   6385     RECOMP_ICALL(0x360B4000u); /* 0x36064BD6: call 0x360b4000 */ /* not lifted */
   6386     RECOMP_FLAGS_IN();
   6387     esi = eax; /* 0x36064BDB: mov esi, eax */
   6388     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6389     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6390     esp = esp + 4; /* 0x36064BDD: add esp, 4 */
   6391     _flag_k = FK_ADD;
   6392     /* test esi, esi */ /* 0x36064BE0: test esi, esi */
   6393     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6394     _cf = 0;
   6395     _flag_k = FK_TEST;
   6396     if (TEST_Z(_flag_a, _flag_b)) goto L_36064D58; /* 0x36064BE2: je 0x36064d58 */
   6397 L_36064BE8:
   6398     eax = MEM32(ebp + 0xC); /* 0x36064BE8: mov eax, dword ptr [ebp + 0xc] */
   6399     ecx = ebp + (-0xC); /* 0x36064BEB: lea ecx, [ebp - 0xc] */
   6400     /* cmp ecx, eax */ /* 0x36064BEE: cmp ecx, eax */
   6401     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6402     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6403     _flag_k = FK_CMP;
   6404     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064BFD; /* 0x36064BF0: je 0x36064bfd */
   6405 L_36064BF2:
   6406     edx = MEM32(eax); /* 0x36064BF2: mov edx, dword ptr [eax] */
   6407     eax = MEM32(eax + 0x4); /* 0x36064BF4: mov eax, dword ptr [eax + 4] */
   6408     MEM32(ebp + (-0xC)) = edx; /* 0x36064BF7: mov dword ptr [ebp - 0xc], edx */
   6409     MEM32(ebp + (-0x8)) = eax; /* 0x36064BFA: mov dword ptr [ebp - 8], eax */
   6410 L_36064BFD:
   6411     SET_LO8(eax, MEM8(esi + 0x98)); /* 0x36064BFD: mov al, byte ptr [esi + 0x98] */
   6412     /* test LO8(eax), LO8(eax) */ /* 0x36064C03: test al, al */
   6413     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6414     _cf = 0;
   6415     _flag_k = FK_NARROW(FK_TEST, 24);
   6416     if (TEST_Z(_flag_a, _flag_b)) goto L_36064C15; /* 0x36064C05: je 0x36064c15 */
   6417 L_36064C07:
   6418     ecx = MEM32(edi); /* 0x36064C07: mov ecx, dword ptr [edi] */
   6419     edx = MEM32(ecx + 0x4); /* 0x36064C09: mov edx, dword ptr [ecx + 4] */
   6420     MEM32(ebp + (-0xC)) = edx; /* 0x36064C0C: mov dword ptr [ebp - 0xc], edx */
   6421     eax = MEM32(ecx + 0x8); /* 0x36064C0F: mov eax, dword ptr [ecx + 8] */
   6422     MEM32(ebp + (-0x8)) = eax; /* 0x36064C12: mov dword ptr [ebp - 8], eax */
   6423 L_36064C15:
   6424     ecx = ebp + (-0xC); /* 0x36064C15: lea ecx, [ebp - 0xc] */
   6425     PUSH32(esp, ecx); /* 0x36064C18: push ecx */
   6426     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36064C19: call dword ptr [0x3616ff70] */
   6427     RECOMP_FLAGS_IN();
   6428     PUSH32(esp, 0); /* 0x36064C1F: push 0 */
   6429     PUSH32(esp, 0x361B2CD8u); /* 0x36064C21: push 0x361b2cd8 */
   6430     PUSH32(esp, 0x361B2CC0u); /* 0x36064C26: push 0x361b2cc0 */
   6431     ebx = eax; /* 0x36064C2B: mov ebx, eax */
   6432     PUSH32(esp, 0); /* 0x36064C2D: push 0 */
   6433     PUSH32(esp, ebx); /* 0x36064C2F: push ebx */
   6434     RECOMP_ICALL(0x3615FD86u); /* 0x36064C30: call 0x3615fd86 */ /* not lifted */
   6435     RECOMP_FLAGS_IN();
   6436     edi = eax; /* 0x36064C35: mov edi, eax */
   6437     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   6438     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6439     esp = esp + 0x18u; /* 0x36064C37: add esp, 0x18 */
   6440     _flag_k = FK_ADD;
   6441     /* test edi, edi */ /* 0x36064C3A: test edi, edi */
   6442     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6443     _cf = 0;
   6444     _flag_k = FK_TEST;
   6445     if (TEST_Z(_flag_a, _flag_b)) goto L_36064C5E; /* 0x36064C3C: je 0x36064c5e */
   6446 L_36064C3E:
   6447     edx = MEM32(ebp + (-0x4)); /* 0x36064C3E: mov edx, dword ptr [ebp - 4] */
   6448     eax = MEM32(edx); /* 0x36064C41: mov eax, dword ptr [edx] */
   6449     edx = MEM32(eax + 0xE4); /* 0x36064C43: mov edx, dword ptr [eax + 0xe4] */
   6450     ecx = eax + 0xE4; /* 0x36064C49: lea ecx, [eax + 0xe4] */
   6451     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6452     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6453     eax = eax + 4; /* 0x36064C4F: add eax, 4 */
   6454     _flag_k = FK_ADD;
   6455     PUSH32(esp, eax); /* 0x36064C52: push eax */
   6456     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x36064C53: call dword ptr [edx + 0x24] */
   6457     RECOMP_FLAGS_IN();
   6458     eax = edi + 0xE4; /* 0x36064C56: lea eax, [edi + 0xe4] */
   6459     goto L_36064C98; /* 0x36064C5C: jmp 0x36064c98 */
   6460 L_36064C5E:
   6461     PUSH32(esp, 0); /* 0x36064C5E: push 0 */
   6462     PUSH32(esp, 0x361B2CF8u); /* 0x36064C60: push 0x361b2cf8 */
   6463     PUSH32(esp, 0x361B2CC0u); /* 0x36064C65: push 0x361b2cc0 */
   6464     PUSH32(esp, 0); /* 0x36064C6A: push 0 */
   6465     PUSH32(esp, ebx); /* 0x36064C6C: push ebx */
   6466     RECOMP_ICALL(0x3615FD86u); /* 0x36064C6D: call 0x3615fd86 */ /* not lifted */
   6467     RECOMP_FLAGS_IN();
   6468     ebx = eax; /* 0x36064C72: mov ebx, eax */
   6469     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6470     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6471     esp = esp + 0x14u; /* 0x36064C74: add esp, 0x14 */
   6472     _flag_k = FK_ADD;
   6473     /* test ebx, ebx */ /* 0x36064C77: test ebx, ebx */
   6474     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6475     _cf = 0;
   6476     _flag_k = FK_TEST;
   6477     if (TEST_Z(_flag_a, _flag_b)) goto L_36064C9C; /* 0x36064C79: je 0x36064c9c */
   6478 L_36064C7B:
   6479     eax = MEM32(ebp + (-0x4)); /* 0x36064C7B: mov eax, dword ptr [ebp - 4] */
   6480     eax = MEM32(eax); /* 0x36064C7E: mov eax, dword ptr [eax] */
   6481     edx = MEM32(eax + 0xE4); /* 0x36064C80: mov edx, dword ptr [eax + 0xe4] */
   6482     ecx = eax + 0xE4; /* 0x36064C86: lea ecx, [eax + 0xe4] */
   6483     eax = ebx + 0x90; /* 0x36064C8C: lea eax, [ebx + 0x90] */
   6484     PUSH32(esp, eax); /* 0x36064C92: push eax */
   6485     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x36064C93: call dword ptr [edx + 0x24] */
   6486     RECOMP_FLAGS_IN();
   6487     eax = ebx; /* 0x36064C96: mov eax, ebx */
   6488 L_36064C98:
   6489     /* test eax, eax */ /* 0x36064C98: test eax, eax */
   6490     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6491     _cf = 0;
   6492     _flag_k = FK_TEST;
   6493     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064CAE; /* 0x36064C9A: jne 0x36064cae */
   6494 L_36064C9C:
   6495     ecx = MEM32(ebp + (-0x4)); /* 0x36064C9C: mov ecx, dword ptr [ebp - 4] */
   6496     eax = MEM32(ecx); /* 0x36064C9F: mov eax, dword ptr [ecx] */
   6497     /* test eax, eax */ /* 0x36064CA1: test eax, eax */
   6498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6499     _cf = 0;
   6500     _flag_k = FK_TEST;
   6501     if (TEST_Z(_flag_a, _flag_b)) goto L_36064CAC; /* 0x36064CA3: je 0x36064cac */
   6502 L_36064CA5:
   6503     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   6504     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6505     eax = eax + 0xE4u; /* 0x36064CA5: add eax, 0xe4 */
   6506     _flag_k = FK_ADD;
   6507     goto L_36064CAE; /* 0x36064CAA: jmp 0x36064cae */
   6508 L_36064CAC:
   6509     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6510     eax = 0; /* 0x36064CAC: xor eax, eax */
   6511     _cf = 0;
   6512     _flag_k = FK_TEST;
   6513 L_36064CAE:
   6514     PUSH32(esp, 0); /* 0x36064CAE: push 0 */
   6515     PUSH32(esp, 0x361B2CD8u); /* 0x36064CB0: push 0x361b2cd8 */
   6516     PUSH32(esp, 0x361B2CA0u); /* 0x36064CB5: push 0x361b2ca0 */
   6517     PUSH32(esp, 0); /* 0x36064CBA: push 0 */
   6518     PUSH32(esp, eax); /* 0x36064CBC: push eax */
   6519     RECOMP_ICALL(0x3615FD86u); /* 0x36064CBD: call 0x3615fd86 */ /* not lifted */
   6520     RECOMP_FLAGS_IN();
   6521     edx = MEM32(ebp + 0x20); /* 0x36064CC2: mov edx, dword ptr [ebp + 0x20] */
   6522     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6524     esp = esp + 0x14u; /* 0x36064CC5: add esp, 0x14 */
   6525     _flag_k = FK_ADD;
   6526     PUSH32(esp, 0); /* 0x36064CC8: push 0 */
   6527     PUSH32(esp, 0x361B2CD8u); /* 0x36064CCA: push 0x361b2cd8 */
   6528     PUSH32(esp, 0x361B2CC0u); /* 0x36064CCF: push 0x361b2cc0 */
   6529     PUSH32(esp, 0); /* 0x36064CD4: push 0 */
   6530     PUSH32(esp, edx); /* 0x36064CD6: push edx */
   6531     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36064CD7: call dword ptr [0x3616ff70] */
   6532     RECOMP_FLAGS_IN();
   6533     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6534     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6535     esp = esp + 4; /* 0x36064CDD: add esp, 4 */
   6536     _flag_k = FK_ADD;
   6537     PUSH32(esp, eax); /* 0x36064CE0: push eax */
   6538     RECOMP_ICALL(0x3615FD86u); /* 0x36064CE1: call 0x3615fd86 */ /* not lifted */
   6539     RECOMP_FLAGS_IN();
   6540     eax = MEM32(esi); /* 0x36064CE6: mov eax, dword ptr [esi] */
   6541     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6542     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6543     esp = esp + 0x14u; /* 0x36064CE8: add esp, 0x14 */
   6544     _flag_k = FK_ADD;
   6545     PUSH32(esp, 2); /* 0x36064CEB: push 2 */
   6546     PUSH32(esp, 0x4Bu); /* 0x36064CED: push 0x4b */
   6547     ecx = esi; /* 0x36064CEF: mov ecx, esi */
   6548     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36064CF1: call dword ptr [eax + 4] */
   6549     RECOMP_FLAGS_IN();
   6550     edx = MEM32(esi); /* 0x36064CF4: mov edx, dword ptr [esi] */
   6551     PUSH32(esp, 2); /* 0x36064CF6: push 2 */
   6552     PUSH32(esp, 0x36u); /* 0x36064CF8: push 0x36 */
   6553     ecx = esi; /* 0x36064CFA: mov ecx, esi */
   6554     ebx = eax; /* 0x36064CFC: mov ebx, eax */
   6555     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36064CFE: call dword ptr [edx + 4] */
   6556     RECOMP_FLAGS_IN();
   6557     /* test edi, edi */ /* 0x36064D01: test edi, edi */
   6558     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6559     _cf = 0;
   6560     _flag_k = FK_TEST;
   6561     if (TEST_Z(_flag_a, _flag_b)) goto L_36064D3D; /* 0x36064D03: je 0x36064d3d */
   6562 L_36064D05:
   6563     ecx = MEM32(edi + 0x158); /* 0x36064D05: mov ecx, dword ptr [edi + 0x158] */
   6564     PUSH32(esp, eax); /* 0x36064D0B: push eax */
   6565     PUSH32(esp, ebx); /* 0x36064D0C: push ebx */
   6566     RECOMP_ICALL(0x36066D40u); /* 0x36064D0D: call 0x36066d40 */ /* not lifted */
   6567     RECOMP_FLAGS_IN();
   6568     /* test LO8(eax), LO8(eax) */ /* 0x36064D12: test al, al */
   6569     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6570     _cf = 0;
   6571     _flag_k = FK_NARROW(FK_TEST, 24);
   6572     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064D58; /* 0x36064D14: jne 0x36064d58 */
   6573 L_36064D16:
   6574     eax = MEM32(esi); /* 0x36064D16: mov eax, dword ptr [esi] */
   6575     PUSH32(esp, 0x8000u); /* 0x36064D18: push 0x8000 */
   6576     ecx = esi; /* 0x36064D1D: mov ecx, esi */
   6577     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x36064D1F: call dword ptr [eax + 0x1c] */
   6578     RECOMP_FLAGS_IN();
   6579     /* test LO8(eax), LO8(eax) */ /* 0x36064D22: test al, al */
   6580     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6581     _cf = 0;
   6582     _flag_k = FK_NARROW(FK_TEST, 24);
   6583     if (TEST_Z(_flag_a, _flag_b)) goto L_36064D3D; /* 0x36064D24: je 0x36064d3d */
   6584 L_36064D26:
   6585     ecx = MEM32(ebp + (-0x4)); /* 0x36064D26: mov ecx, dword ptr [ebp - 4] */
   6586     ecx = MEM32(ecx); /* 0x36064D29: mov ecx, dword ptr [ecx] */
   6587     /* cmp ecx, edi */ /* 0x36064D2B: cmp ecx, edi */
   6588     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   6589     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6590     _flag_k = FK_CMP;
   6591     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064D3D; /* 0x36064D2D: je 0x36064d3d */
   6592 L_36064D2F:
   6593     PUSH32(esp, 0); /* 0x36064D2F: push 0 */
   6594     RECOMP_ICALL(0x36072000u); /* 0x36064D31: call 0x36072000 */ /* not lifted */
   6595     RECOMP_FLAGS_IN();
   6596     ecx = eax; /* 0x36064D36: mov ecx, eax */
   6597     RECOMP_ICALL(0x36057EF0u); /* 0x36064D38: call 0x36057ef0 */ /* not lifted */
   6598     RECOMP_FLAGS_IN();
   6599 L_36064D3D:
   6600     edx = MEM32(ebp + 0x20); /* 0x36064D3D: mov edx, dword ptr [ebp + 0x20] */
   6601     eax = MEM32(ebp + 0x1C); /* 0x36064D40: mov eax, dword ptr [ebp + 0x1c] */
   6602     ecx = MEM32(ebp + 0x14); /* 0x36064D43: mov ecx, dword ptr [ebp + 0x14] */
   6603     PUSH32(esp, edx); /* 0x36064D46: push edx */
   6604     PUSH32(esp, eax); /* 0x36064D47: push eax */
   6605     PUSH32(esp, ecx); /* 0x36064D48: push ecx */
   6606     ecx = MEM32(ebp + (-0x4)); /* 0x36064D49: mov ecx, dword ptr [ebp - 4] */
   6607     edx = ebp + (-0xC); /* 0x36064D4C: lea edx, [ebp - 0xc] */
   6608     PUSH32(esp, edx); /* 0x36064D4F: push edx */
   6609     PUSH32(esp, 1); /* 0x36064D50: push 1 */
   6610     PUSH32(esp, esi); /* 0x36064D52: push esi */
   6611     RECOMP_ICALL(0x360650F0u); /* 0x36064D53: call 0x360650f0 */ /* not lifted */
   6612     RECOMP_FLAGS_IN();
   6613 L_36064D58:
   6614     edi = POP32_VAL(esp); /* 0x36064D58: pop edi */
   6615     esi = POP32_VAL(esp); /* 0x36064D59: pop esi */
   6616     ebx = POP32_VAL(esp); /* 0x36064D5A: pop ebx */
   6617     esp = ebp; /* 0x36064D5B: mov esp, ebp */
   6618     ebp = POP32_VAL(esp); /* 0x36064D5D: pop ebp */
   6619     RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x36064D5E: ret 0x1c */
   6620     RECOMP_REGS_OUT();
   6621 }
   6622 
   6623 void sub_36064D70(void) {
   6624     int _fpu_cmp = 0;
   6625     uint32_t _cf = 0;
   6626     int _df = 1;
   6627     uint32_t _flag_k = FK_NONE;
   6628     uint32_t _flag_a = 0, _flag_b = 0;
   6629     uint32_t _itail_tgt = 0;
   6630     RECOMP_REGS_LOCALS
   6631     RECOMP_ENTER(0x36064D70u);
   6632 
   6633 L_36064D70:
   6634     PUSH32(esp, ebp); /* 0x36064D70: push ebp */
   6635     ebp = esp; /* 0x36064D71: mov ebp, esp */
   6636     eax = MEM32(ebp + 0x8); /* 0x36064D73: mov eax, dword ptr [ebp + 8] */
   6637     PUSH32(esp, esi); /* 0x36064D76: push esi */
   6638     PUSH32(esp, eax); /* 0x36064D77: push eax */
   6639     esi = ecx; /* 0x36064D78: mov esi, ecx */
   6640     RECOMP_ICALL(0x360B4000u); /* 0x36064D7A: call 0x360b4000 */ /* not lifted */
   6641     RECOMP_FLAGS_IN();
   6642     ecx = MEM32(ebp + 0xC); /* 0x36064D7F: mov ecx, dword ptr [ebp + 0xc] */
   6643     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6644     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6645     esp = esp + 4; /* 0x36064D82: add esp, 4 */
   6646     _flag_k = FK_ADD;
   6647     PUSH32(esp, 0x362EA510u); /* 0x36064D85: push 0x362ea510 */
   6648     PUSH32(esp, 1); /* 0x36064D8A: push 1 */
   6649     PUSH32(esp, 0); /* 0x36064D8C: push 0 */
   6650     PUSH32(esp, ecx); /* 0x36064D8E: push ecx */
   6651     PUSH32(esp, 3); /* 0x36064D8F: push 3 */
   6652     PUSH32(esp, eax); /* 0x36064D91: push eax */
   6653     ecx = esi; /* 0x36064D92: mov ecx, esi */
   6654     RECOMP_ICALL(0x360650F0u); /* 0x36064D94: call 0x360650f0 */ /* not lifted */
   6655     RECOMP_FLAGS_IN();
   6656     esi = POP32_VAL(esp); /* 0x36064D99: pop esi */
   6657     ebp = POP32_VAL(esp); /* 0x36064D9A: pop ebp */
   6658     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36064D9B: ret 8 */
   6659     RECOMP_REGS_OUT();
   6660 }
   6661 
   6662 void sub_36064DA0(void) {
   6663     int _fpu_cmp = 0;
   6664     uint32_t _cf = 0;
   6665     int _df = 1;
   6666     uint32_t _flag_k = FK_NONE;
   6667     uint32_t _flag_a = 0, _flag_b = 0;
   6668     uint32_t _itail_tgt = 0;
   6669     RECOMP_REGS_LOCALS
   6670     RECOMP_ENTER(0x36064DA0u);
   6671 
   6672 L_36064DA0:
   6673     PUSH32(esp, ebp); /* 0x36064DA0: push ebp */
   6674     ebp = esp; /* 0x36064DA1: mov ebp, esp */
   6675     eax = MEM32(ebp + 0x8); /* 0x36064DA3: mov eax, dword ptr [ebp + 8] */
   6676     PUSH32(esp, esi); /* 0x36064DA6: push esi */
   6677     PUSH32(esp, eax); /* 0x36064DA7: push eax */
   6678     esi = ecx; /* 0x36064DA8: mov esi, ecx */
   6679     RECOMP_ICALL(0x360B4000u); /* 0x36064DAA: call 0x360b4000 */ /* not lifted */
   6680     RECOMP_FLAGS_IN();
   6681     ecx = MEM32(ebp + 0xC); /* 0x36064DAF: mov ecx, dword ptr [ebp + 0xc] */
   6682     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6683     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6684     esp = esp + 4; /* 0x36064DB2: add esp, 4 */
   6685     _flag_k = FK_ADD;
   6686     PUSH32(esp, 0x362EA510u); /* 0x36064DB5: push 0x362ea510 */
   6687     PUSH32(esp, 1); /* 0x36064DBA: push 1 */
   6688     PUSH32(esp, 0); /* 0x36064DBC: push 0 */
   6689     PUSH32(esp, ecx); /* 0x36064DBE: push ecx */
   6690     PUSH32(esp, 4); /* 0x36064DBF: push 4 */
   6691     PUSH32(esp, eax); /* 0x36064DC1: push eax */
   6692     ecx = esi; /* 0x36064DC2: mov ecx, esi */
   6693     RECOMP_ICALL(0x360650F0u); /* 0x36064DC4: call 0x360650f0 */ /* not lifted */
   6694     RECOMP_FLAGS_IN();
   6695     esi = POP32_VAL(esp); /* 0x36064DC9: pop esi */
   6696     ebp = POP32_VAL(esp); /* 0x36064DCA: pop ebp */
   6697     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36064DCB: ret 8 */
   6698     RECOMP_REGS_OUT();
   6699 }
   6700 
   6701 void sub_36064DD0(void) {
   6702     int _fpu_cmp = 0;
   6703     uint32_t _cf = 0;
   6704     int _df = 1;
   6705     uint32_t _flag_k = FK_NONE;
   6706     uint32_t _flag_a = 0, _flag_b = 0;
   6707     uint32_t _itail_tgt = 0;
   6708     RECOMP_REGS_LOCALS
   6709     RECOMP_ENTER(0x36064DD0u);
   6710 
   6711 L_36064DD0:
   6712     PUSH32(esp, ebp); /* 0x36064DD0: push ebp */
   6713     ebp = esp; /* 0x36064DD1: mov ebp, esp */
   6714     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   6715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6716     esp = esp - 8; /* 0x36064DD3: sub esp, 8 */
   6717     _flag_k = FK_CMP;
   6718     PUSH32(esp, ebx); /* 0x36064DD6: push ebx */
   6719     PUSH32(esp, esi); /* 0x36064DD7: push esi */
   6720     PUSH32(esp, edi); /* 0x36064DD8: push edi */
   6721     edi = MEM32(ebp + 0x8); /* 0x36064DD9: mov edi, dword ptr [ebp + 8] */
   6722     esi = ecx; /* 0x36064DDC: mov esi, ecx */
   6723     PUSH32(esp, edi); /* 0x36064DDE: push edi */
   6724     MEM32(ebp + (-0x8)) = esi; /* 0x36064DDF: mov dword ptr [ebp - 8], esi */
   6725     RECOMP_ICALL(0x360B4000u); /* 0x36064DE2: call 0x360b4000 */ /* not lifted */
   6726     RECOMP_FLAGS_IN();
   6727     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6728     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6729     esp = esp + 4; /* 0x36064DE7: add esp, 4 */
   6730     _flag_k = FK_ADD;
   6731     ebx = eax; /* 0x36064DEA: mov ebx, eax */
   6732     PUSH32(esp, edi); /* 0x36064DEC: push edi */
   6733     ecx = esi; /* 0x36064DED: mov ecx, esi */
   6734     MEM32(ebp + (-0x4)) = ebx; /* 0x36064DEF: mov dword ptr [ebp - 4], ebx */
   6735     RECOMP_ICALL(0x36064EB0u); /* 0x36064DF2: call 0x36064eb0 */ /* not lifted */
   6736     RECOMP_FLAGS_IN();
   6737     /* test eax, eax */ /* 0x36064DF7: test eax, eax */
   6738     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6739     _cf = 0;
   6740     _flag_k = FK_TEST;
   6741     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064E52; /* 0x36064DF9: jne 0x36064e52 */
   6742 L_36064DFB:
   6743     /* test ebx, ebx */ /* 0x36064DFB: test ebx, ebx */
   6744     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   6745     _cf = 0;
   6746     _flag_k = FK_TEST;
   6747     if (TEST_Z(_flag_a, _flag_b)) goto L_36064E48; /* 0x36064DFD: je 0x36064e48 */
   6748 L_36064DFF:
   6749     ebx = MEM32(esi + 0x10); /* 0x36064DFF: mov ebx, dword ptr [esi + 0x10] */
   6750     eax = MEM32(ebx + 0x4); /* 0x36064E02: mov eax, dword ptr [ebx + 4] */
   6751     esi = MEM32(eax); /* 0x36064E05: mov esi, dword ptr [eax] */
   6752     edi = MEM32(esi + 0x4); /* 0x36064E07: mov edi, dword ptr [esi + 4] */
   6753     PUSH32(esp, 0xCu); /* 0x36064E0A: push 0xc */
   6754     RECOMP_ICALL(0x3615FD6Au); /* 0x36064E0C: call 0x3615fd6a */ /* not lifted */
   6755     RECOMP_FLAGS_IN();
   6756     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6757     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6758     esp = esp + 4; /* 0x36064E11: add esp, 4 */
   6759     _flag_k = FK_ADD;
   6760     /* test esi, esi */ /* 0x36064E14: test esi, esi */
   6761     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6762     _cf = 0;
   6763     _flag_k = FK_TEST;
   6764     ecx = esi; /* 0x36064E16: mov ecx, esi */
   6765     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064E1C; /* 0x36064E18: jne 0x36064e1c */
   6766 L_36064E1A:
   6767     ecx = eax; /* 0x36064E1A: mov ecx, eax */
   6768 L_36064E1C:
   6769     /* test edi, edi */ /* 0x36064E1C: test edi, edi */
   6770     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6771     _cf = 0;
   6772     _flag_k = FK_TEST;
   6773     MEM32(eax) = ecx; /* 0x36064E1E: mov dword ptr [eax], ecx */
   6774     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064E24; /* 0x36064E20: jne 0x36064e24 */
   6775 L_36064E22:
   6776     edi = eax; /* 0x36064E22: mov edi, eax */
   6777 L_36064E24:
   6778     MEM32(eax + 0x4) = edi; /* 0x36064E24: mov dword ptr [eax + 4], edi */
   6779     MEM32(esi + 0x4) = eax; /* 0x36064E27: mov dword ptr [esi + 4], eax */
   6780     ecx = MEM32(eax + 0x4); /* 0x36064E2A: mov ecx, dword ptr [eax + 4] */
   6781     MEM32(ecx) = eax; /* 0x36064E2D: mov dword ptr [ecx], eax */
   6782     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   6783     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6784     eax = eax + 8; /* 0x36064E2F: add eax, 8 */
   6785     _flag_k = FK_ADD;
   6786     /* test eax, eax */ /* 0x36064E32: test eax, eax */
   6787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6788     _cf = 0;
   6789     _flag_k = FK_TEST;
   6790     if (TEST_Z(_flag_a, _flag_b)) goto L_36064E3B; /* 0x36064E34: je 0x36064e3b */
   6791 L_36064E36:
   6792     edx = MEM32(ebp + 0x8); /* 0x36064E36: mov edx, dword ptr [ebp + 8] */
   6793     MEM32(eax) = edx; /* 0x36064E39: mov dword ptr [eax], edx */
   6794 L_36064E3B:
   6795     eax = MEM32(ebx + 0x8); /* 0x36064E3B: mov eax, dword ptr [ebx + 8] */
   6796     esi = MEM32(ebp + (-0x8)); /* 0x36064E3E: mov esi, dword ptr [ebp - 8] */
   6797     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6798     eax = eax + 1; /* 0x36064E41: inc eax */
   6799     _flag_k = FK_INC;
   6800     MEM32(ebx + 0x8) = eax; /* 0x36064E42: mov dword ptr [ebx + 8], eax */
   6801     ebx = MEM32(ebp + (-0x4)); /* 0x36064E45: mov ebx, dword ptr [ebp - 4] */
   6802 L_36064E48:
   6803     eax = MEM32(esi); /* 0x36064E48: mov eax, dword ptr [esi] */
   6804     PUSH32(esp, eax); /* 0x36064E4A: push eax */
   6805     ecx = ebx; /* 0x36064E4B: mov ecx, ebx */
   6806     RECOMP_ICALL(0x36098B10u); /* 0x36064E4D: call 0x36098b10 */ /* not lifted */
   6807     RECOMP_FLAGS_IN();
   6808 L_36064E52:
   6809     edi = POP32_VAL(esp); /* 0x36064E52: pop edi */
   6810     esi = POP32_VAL(esp); /* 0x36064E53: pop esi */
   6811     ebx = POP32_VAL(esp); /* 0x36064E54: pop ebx */
   6812     esp = ebp; /* 0x36064E55: mov esp, ebp */
   6813     ebp = POP32_VAL(esp); /* 0x36064E57: pop ebp */
   6814     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36064E58: ret 4 */
   6815     RECOMP_REGS_OUT();
   6816 }
   6817 
   6818 void sub_36064E60(void) {
   6819     int _fpu_cmp = 0;
   6820     uint32_t _cf = 0;
   6821     int _df = 1;
   6822     uint32_t _flag_k = FK_NONE;
   6823     uint32_t _flag_a = 0, _flag_b = 0;
   6824     uint32_t _itail_tgt = 0;
   6825     RECOMP_REGS_LOCALS
   6826     RECOMP_ENTER(0x36064E60u);
   6827 
   6828 L_36064E60:
   6829     PUSH32(esp, ebp); /* 0x36064E60: push ebp */
   6830     ebp = esp; /* 0x36064E61: mov ebp, esp */
   6831     PUSH32(esp, esi); /* 0x36064E63: push esi */
   6832     esi = MEM32(ecx + 0x10); /* 0x36064E64: mov esi, dword ptr [ecx + 0x10] */
   6833     ecx = MEM32(esi + 0x4); /* 0x36064E67: mov ecx, dword ptr [esi + 4] */
   6834     eax = MEM32(ecx); /* 0x36064E6A: mov eax, dword ptr [ecx] */
   6835     /* cmp eax, ecx */ /* 0x36064E6C: cmp eax, ecx */
   6836     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6837     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6838     _flag_k = FK_CMP;
   6839     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064EA2; /* 0x36064E6E: je 0x36064ea2 */
   6840 L_36064E70:
   6841     edx = MEM32(ebp + 0x8); /* 0x36064E70: mov edx, dword ptr [ebp + 8] */
   6842 L_36064E73:
   6843     /* cmp MEM32(eax + 0x8), edx */ /* 0x36064E73: cmp dword ptr [eax + 8], edx */
   6844     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edx);
   6845     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6846     _flag_k = FK_CMP;
   6847     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064E83; /* 0x36064E76: je 0x36064e83 */
   6848 L_36064E78:
   6849     eax = MEM32(eax); /* 0x36064E78: mov eax, dword ptr [eax] */
   6850     /* cmp eax, ecx */ /* 0x36064E7A: cmp eax, ecx */
   6851     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6852     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6853     _flag_k = FK_CMP;
   6854     RECOMP_BACKEDGE();
   6855     if (CMP_NE(_flag_a, _flag_b)) goto L_36064E73; /* 0x36064E7C: jne 0x36064e73 */
   6856 L_36064E7E:
   6857     esi = POP32_VAL(esp); /* 0x36064E7E: pop esi */
   6858     ebp = POP32_VAL(esp); /* 0x36064E7F: pop ebp */
   6859     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36064E80: ret 4 */
   6860 L_36064E83:
   6861     ecx = MEM32(eax + 0x4); /* 0x36064E83: mov ecx, dword ptr [eax + 4] */
   6862     edx = MEM32(eax); /* 0x36064E86: mov edx, dword ptr [eax] */
   6863     MEM32(ecx) = edx; /* 0x36064E88: mov dword ptr [ecx], edx */
   6864     ecx = MEM32(eax); /* 0x36064E8A: mov ecx, dword ptr [eax] */
   6865     edx = MEM32(eax + 0x4); /* 0x36064E8C: mov edx, dword ptr [eax + 4] */
   6866     PUSH32(esp, eax); /* 0x36064E8F: push eax */
   6867     MEM32(ecx + 0x4) = edx; /* 0x36064E90: mov dword ptr [ecx + 4], edx */
   6868     RECOMP_ICALL(0x3615FCC4u); /* 0x36064E93: call 0x3615fcc4 */ /* not lifted */
   6869     RECOMP_FLAGS_IN();
   6870     eax = MEM32(esi + 0x8); /* 0x36064E98: mov eax, dword ptr [esi + 8] */
   6871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6872     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6873     esp = esp + 4; /* 0x36064E9B: add esp, 4 */
   6874     _flag_k = FK_ADD;
   6875     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6876     eax = eax - 1; /* 0x36064E9E: dec eax */
   6877     _flag_k = FK_DEC;
   6878     MEM32(esi + 0x8) = eax; /* 0x36064E9F: mov dword ptr [esi + 8], eax */
   6879 L_36064EA2:
   6880     esi = POP32_VAL(esp); /* 0x36064EA2: pop esi */
   6881     ebp = POP32_VAL(esp); /* 0x36064EA3: pop ebp */
   6882     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36064EA4: ret 4 */
   6883     RECOMP_REGS_OUT();
   6884 }
   6885 
   6886 void sub_36064EB0(void) {
   6887     int _fpu_cmp = 0;
   6888     uint32_t _cf = 0;
   6889     int _df = 1;
   6890     uint32_t _flag_k = FK_NONE;
   6891     uint32_t _flag_a = 0, _flag_b = 0;
   6892     uint32_t _itail_tgt = 0;
   6893     RECOMP_REGS_LOCALS
   6894     RECOMP_ENTER(0x36064EB0u);
   6895 
   6896 L_36064EB0:
   6897     PUSH32(esp, ebp); /* 0x36064EB0: push ebp */
   6898     ebp = esp; /* 0x36064EB1: mov ebp, esp */
   6899     eax = MEM32(ecx + 0x10); /* 0x36064EB3: mov eax, dword ptr [ecx + 0x10] */
   6900     ecx = MEM32(eax + 0x4); /* 0x36064EB6: mov ecx, dword ptr [eax + 4] */
   6901     eax = MEM32(ecx); /* 0x36064EB9: mov eax, dword ptr [ecx] */
   6902     /* cmp eax, ecx */ /* 0x36064EBB: cmp eax, ecx */
   6903     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6904     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6905     _flag_k = FK_CMP;
   6906     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064ECD; /* 0x36064EBD: je 0x36064ecd */
   6907 L_36064EBF:
   6908     edx = MEM32(ebp + 0x8); /* 0x36064EBF: mov edx, dword ptr [ebp + 8] */
   6909 L_36064EC2:
   6910     /* cmp MEM32(eax + 0x8), edx */ /* 0x36064EC2: cmp dword ptr [eax + 8], edx */
   6911     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(edx);
   6912     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6913     _flag_k = FK_CMP;
   6914     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064ED3; /* 0x36064EC5: je 0x36064ed3 */
   6915 L_36064EC7:
   6916     eax = MEM32(eax); /* 0x36064EC7: mov eax, dword ptr [eax] */
   6917     /* cmp eax, ecx */ /* 0x36064EC9: cmp eax, ecx */
   6918     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6919     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6920     _flag_k = FK_CMP;
   6921     RECOMP_BACKEDGE();
   6922     if (CMP_NE(_flag_a, _flag_b)) goto L_36064EC2; /* 0x36064ECB: jne 0x36064ec2 */
   6923 L_36064ECD:
   6924     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6925     eax = 0; /* 0x36064ECD: xor eax, eax */
   6926     _cf = 0;
   6927     _flag_k = FK_TEST;
   6928     ebp = POP32_VAL(esp); /* 0x36064ECF: pop ebp */
   6929     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36064ED0: ret 4 */
   6930 L_36064ED3:
   6931     PUSH32(esp, edx); /* 0x36064ED3: push edx */
   6932     RECOMP_ICALL(0x360B4000u); /* 0x36064ED4: call 0x360b4000 */ /* not lifted */
   6933     RECOMP_FLAGS_IN();
   6934     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6936     esp = esp + 4; /* 0x36064ED9: add esp, 4 */
   6937     _flag_k = FK_ADD;
   6938     ebp = POP32_VAL(esp); /* 0x36064EDC: pop ebp */
   6939     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36064EDD: ret 4 */
   6940     RECOMP_REGS_OUT();
   6941 }
   6942 
   6943 void sub_36064EE0(void) {
   6944     int _fpu_cmp = 0;
   6945     uint32_t _cf = 0;
   6946     int _df = 1;
   6947     uint32_t _flag_k = FK_NONE;
   6948     uint32_t _flag_a = 0, _flag_b = 0;
   6949     uint32_t _itail_tgt = 0;
   6950     RECOMP_REGS_LOCALS
   6951     RECOMP_ENTER(0x36064EE0u);
   6952 
   6953 L_36064EE0:
   6954     PUSH32(esp, ebp); /* 0x36064EE0: push ebp */
   6955     ebp = esp; /* 0x36064EE1: mov ebp, esp */
   6956     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x118u);
   6957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6958     esp = esp - 0x118u; /* 0x36064EE3: sub esp, 0x118 */
   6959     _flag_k = FK_CMP;
   6960     PUSH32(esp, ebx); /* 0x36064EE9: push ebx */
   6961     ebx = MEM32(ebp + 0x8); /* 0x36064EEA: mov ebx, dword ptr [ebp + 8] */
   6962     eax = MEM32(ebx + 0x4); /* 0x36064EED: mov eax, dword ptr [ebx + 4] */
   6963     PUSH32(esp, esi); /* 0x36064EF0: push esi */
   6964     PUSH32(esp, edi); /* 0x36064EF1: push edi */
   6965     PUSH32(esp, eax); /* 0x36064EF2: push eax */
   6966     edi = ecx; /* 0x36064EF3: mov edi, ecx */
   6967     RECOMP_ICALL(0x360B4000u); /* 0x36064EF5: call 0x360b4000 */ /* not lifted */
   6968     RECOMP_FLAGS_IN();
   6969     esi = eax; /* 0x36064EFA: mov esi, eax */
   6970     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6971     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6972     esp = esp + 4; /* 0x36064EFC: add esp, 4 */
   6973     _flag_k = FK_ADD;
   6974     /* test esi, esi */ /* 0x36064EFF: test esi, esi */
   6975     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   6976     _cf = 0;
   6977     _flag_k = FK_TEST;
   6978     if (TEST_Z(_flag_a, _flag_b)) goto L_360650DD; /* 0x36064F01: je 0x360650dd */
   6979 L_36064F07:
   6980     eax = MEM32(ebx + 0x4); /* 0x36064F07: mov eax, dword ptr [ebx + 4] */
   6981     ebx = MEM32(ebx); /* 0x36064F0A: mov ebx, dword ptr [ebx] */
   6982     PUSH32(esp, 0); /* 0x36064F0C: push 0 */
   6983     PUSH32(esp, 0x361B2CD8u); /* 0x36064F0E: push 0x361b2cd8 */
   6984     PUSH32(esp, 0x361B2CC0u); /* 0x36064F13: push 0x361b2cc0 */
   6985     MEM32(ebp + (-0x4)) = eax; /* 0x36064F18: mov dword ptr [ebp - 4], eax */
   6986     eax = ebp + (-0x10); /* 0x36064F1B: lea eax, [ebp - 0x10] */
   6987     PUSH32(esp, 0); /* 0x36064F1E: push 0 */
   6988     PUSH32(esp, eax); /* 0x36064F20: push eax */
   6989     MEM32(ebp + (-0x8)) = 0xCF1Bu; /* 0x36064F21: mov dword ptr [ebp - 8], 0xcf1b */
   6990     MEM32(ebp + (-0x10)) = 0xC350u; /* 0x36064F28: mov dword ptr [ebp - 0x10], 0xc350 */
   6991     MEM32(ebp + (-0xC)) = ebx; /* 0x36064F2F: mov dword ptr [ebp - 0xc], ebx */
   6992     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36064F32: call dword ptr [0x3616ff70] */
   6993     RECOMP_FLAGS_IN();
   6994     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6995     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6996     esp = esp + 4; /* 0x36064F38: add esp, 4 */
   6997     _flag_k = FK_ADD;
   6998     PUSH32(esp, eax); /* 0x36064F3B: push eax */
   6999     RECOMP_ICALL(0x3615FD86u); /* 0x36064F3C: call 0x3615fd86 */ /* not lifted */
   7000     RECOMP_FLAGS_IN();
   7001     ebx = eax; /* 0x36064F41: mov ebx, eax */
   7002     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   7003     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7004     esp = esp + 0x14u; /* 0x36064F43: add esp, 0x14 */
   7005     _flag_k = FK_ADD;
   7006     /* test ebx, ebx */ /* 0x36064F46: test ebx, ebx */
   7007     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   7008     _cf = 0;
   7009     _flag_k = FK_TEST;
   7010     if (TEST_Z(_flag_a, _flag_b)) goto L_36064FB4; /* 0x36064F48: je 0x36064fb4 */
   7011 L_36064F4A:
   7012     SET_LO8(eax, MEM8(ebx + 0x128)); /* 0x36064F4A: mov al, byte ptr [ebx + 0x128] */
   7013     /* test LO8(eax), LO8(eax) */ /* 0x36064F50: test al, al */
   7014     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7015     _cf = 0;
   7016     _flag_k = FK_NARROW(FK_TEST, 24);
   7017     if (TEST_Z(_flag_a, _flag_b)) goto L_36064FB4; /* 0x36064F52: je 0x36064fb4 */
   7018 L_36064F54:
   7019     edx = MEM32(esi); /* 0x36064F54: mov edx, dword ptr [esi] */
   7020     PUSH32(esp, 0x00080000u); /* 0x36064F56: push 0x80000 */
   7021     ecx = esi; /* 0x36064F5B: mov ecx, esi */
   7022     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36064F5D: call dword ptr [edx + 0x1c] */
   7023     RECOMP_FLAGS_IN();
   7024     /* test LO8(eax), LO8(eax) */ /* 0x36064F60: test al, al */
   7025     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7026     _cf = 0;
   7027     _flag_k = FK_NARROW(FK_TEST, 24);
   7028     if (TEST_NZ(_flag_a, _flag_b)) goto L_36064FB4; /* 0x36064F62: jne 0x36064fb4 */
   7029 L_36064F64:
   7030     eax = MEM32(edi); /* 0x36064F64: mov eax, dword ptr [edi] */
   7031     ecx = MEM32(eax + 0x8); /* 0x36064F66: mov ecx, dword ptr [eax + 8] */
   7032     /* cmp ecx, MEM32(ebx + 0x8) */ /* 0x36064F69: cmp ecx, dword ptr [ebx + 8] */
   7033     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebx + 0x8));
   7034     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7035     _flag_k = FK_CMP;
   7036     if (CMP_NE(_flag_a, _flag_b)) goto L_36064F76; /* 0x36064F6C: jne 0x36064f76 */
   7037 L_36064F6E:
   7038     edx = MEM32(eax + 0x4); /* 0x36064F6E: mov edx, dword ptr [eax + 4] */
   7039     /* cmp edx, MEM32(ebx + 0x4) */ /* 0x36064F71: cmp edx, dword ptr [ebx + 4] */
   7040     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebx + 0x4));
   7041     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7042     _flag_k = FK_CMP;
   7043     if (CMP_EQ(_flag_a, _flag_b)) goto L_36064FB4; /* 0x36064F74: je 0x36064fb4 */
   7044 L_36064F76:
   7045     ecx = eax + 0xE4; /* 0x36064F76: lea ecx, [eax + 0xe4] */
   7046     eax = MEM32(ecx); /* 0x36064F7C: mov eax, dword ptr [ecx] */
   7047     RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x36064F7E: call dword ptr [eax + 0x3c] */
   7048     RECOMP_FLAGS_IN();
   7049     edx = MEM32(esi); /* 0x36064F81: mov edx, dword ptr [esi] */
   7050     PUSH32(esp, eax); /* 0x36064F83: push eax */
   7051     ecx = esi; /* 0x36064F84: mov ecx, esi */
   7052     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x36064F86: call dword ptr [edx + 0x3c] */
   7053     RECOMP_FLAGS_IN();
   7054     PUSH32(esp, eax); /* 0x36064F89: push eax */
   7055     eax = ebp + (-0x118); /* 0x36064F8A: lea eax, [ebp - 0x118] */
   7056     PUSH32(esp, 0x361C30E8u); /* 0x36064F90: push 0x361c30e8 */
   7057     PUSH32(esp, eax); /* 0x36064F95: push eax */
   7058     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36064F96: call dword ptr [0x3616f25c] */
   7059     RECOMP_FLAGS_IN();
   7060     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7061     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7062     esp = esp + 0x10u; /* 0x36064F9C: add esp, 0x10 */
   7063     _flag_k = FK_ADD;
   7064     ecx = ebp + (-0x118); /* 0x36064F9F: lea ecx, [ebp - 0x118] */
   7065     PUSH32(esp, 0); /* 0x36064FA5: push 0 */
   7066     PUSH32(esp, ecx); /* 0x36064FA7: push ecx */
   7067     RECOMP_ICALL(0x3601C590u); /* 0x36064FA8: call 0x3601c590 */ /* not lifted */
   7068     RECOMP_FLAGS_IN();
   7069     ecx = eax; /* 0x36064FAD: mov ecx, eax */
   7070     RECOMP_ICALL(0x3601C8C0u); /* 0x36064FAF: call 0x3601c8c0 */ /* not lifted */
   7071     RECOMP_FLAGS_IN();
   7072 L_36064FB4:
   7073     edx = MEM32(esi); /* 0x36064FB4: mov edx, dword ptr [esi] */
   7074     PUSH32(esp, 0x00010000u); /* 0x36064FB6: push 0x10000 */
   7075     ecx = esi; /* 0x36064FBB: mov ecx, esi */
   7076     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36064FBD: call dword ptr [edx + 0x1c] */
   7077     RECOMP_FLAGS_IN();
   7078     /* test LO8(eax), LO8(eax) */ /* 0x36064FC0: test al, al */
   7079     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7080     _cf = 0;
   7081     _flag_k = FK_NARROW(FK_TEST, 24);
   7082     if (TEST_Z(_flag_a, _flag_b)) goto L_360650DD; /* 0x36064FC2: je 0x360650dd */
   7083 L_36064FC8:
   7084     eax = MEM32(edi); /* 0x36064FC8: mov eax, dword ptr [edi] */
   7085     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36064FCA: mov cl, byte ptr [eax + 0x128] */
   7086     /* test LO8(ecx), LO8(ecx) */ /* 0x36064FD0: test cl, cl */
   7087     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7088     _cf = 0;
   7089     _flag_k = FK_NARROW(FK_TEST, 24);
   7090     if (TEST_Z(_flag_a, _flag_b)) goto L_3606501D; /* 0x36064FD2: je 0x3606501d */
   7091 L_36064FD4:
   7092     edx = MEM32(esi); /* 0x36064FD4: mov edx, dword ptr [esi] */
   7093     PUSH32(esp, 0x00080000u); /* 0x36064FD6: push 0x80000 */
   7094     ecx = esi; /* 0x36064FDB: mov ecx, esi */
   7095     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36064FDD: call dword ptr [edx + 0x1c] */
   7096     RECOMP_FLAGS_IN();
   7097     /* test LO8(eax), LO8(eax) */ /* 0x36064FE0: test al, al */
   7098     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7099     _cf = 0;
   7100     _flag_k = FK_NARROW(FK_TEST, 24);
   7101     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606501D; /* 0x36064FE2: jne 0x3606501d */
   7102 L_36064FE4:
   7103     SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x36064FE4: mov al, byte ptr [ebp + 0x14] */
   7104     /* test LO8(eax), LO8(eax) */ /* 0x36064FE7: test al, al */
   7105     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7106     _cf = 0;
   7107     _flag_k = FK_NARROW(FK_TEST, 24);
   7108     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606501D; /* 0x36064FE9: jne 0x3606501d */
   7109 L_36064FEB:
   7110     eax = MEM32(esi); /* 0x36064FEB: mov eax, dword ptr [esi] */
   7111     ecx = esi; /* 0x36064FED: mov ecx, esi */
   7112     RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x36064FEF: call dword ptr [eax + 0x3c] */
   7113     RECOMP_FLAGS_IN();
   7114     PUSH32(esp, eax); /* 0x36064FF2: push eax */
   7115     ecx = ebp + (-0x118); /* 0x36064FF3: lea ecx, [ebp - 0x118] */
   7116     PUSH32(esp, 0x361C30C8u); /* 0x36064FF9: push 0x361c30c8 */
   7117     PUSH32(esp, ecx); /* 0x36064FFE: push ecx */
   7118     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36064FFF: call dword ptr [0x3616f25c] */
   7119     RECOMP_FLAGS_IN();
   7120     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7122     esp = esp + 0xCu; /* 0x36065005: add esp, 0xc */
   7123     _flag_k = FK_ADD;
   7124     edx = ebp + (-0x118); /* 0x36065008: lea edx, [ebp - 0x118] */
   7125     PUSH32(esp, 0); /* 0x3606500E: push 0 */
   7126     PUSH32(esp, edx); /* 0x36065010: push edx */
   7127     RECOMP_ICALL(0x3601C590u); /* 0x36065011: call 0x3601c590 */ /* not lifted */
   7128     RECOMP_FLAGS_IN();
   7129     ecx = eax; /* 0x36065016: mov ecx, eax */
   7130     RECOMP_ICALL(0x3601C8C0u); /* 0x36065018: call 0x3601c8c0 */ /* not lifted */
   7131     RECOMP_FLAGS_IN();
   7132 L_3606501D:
   7133     eax = ebp + (-0x8); /* 0x3606501D: lea eax, [ebp - 8] */
   7134     PUSH32(esp, eax); /* 0x36065020: push eax */
   7135     ecx = edi; /* 0x36065021: mov ecx, edi */
   7136     RECOMP_ICALL(0x36065E70u); /* 0x36065023: call 0x36065e70 */ /* not lifted */
   7137     RECOMP_FLAGS_IN();
   7138     /* test LO8(eax), LO8(eax) */ /* 0x36065028: test al, al */
   7139     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7140     _cf = 0;
   7141     _flag_k = FK_NARROW(FK_TEST, 24);
   7142     if (TEST_Z(_flag_a, _flag_b)) goto L_360650DD; /* 0x3606502A: je 0x360650dd */
   7143 L_36065030:
   7144     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x36065030: mov al, byte ptr [ebp + 0x10] */
   7145     /* test LO8(eax), LO8(eax) */ /* 0x36065033: test al, al */
   7146     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7147     _cf = 0;
   7148     _flag_k = FK_NARROW(FK_TEST, 24);
   7149     if (TEST_Z(_flag_a, _flag_b)) goto L_3606508D; /* 0x36065035: je 0x3606508d */
   7150 L_36065037:
   7151     edx = MEM32(esi); /* 0x36065037: mov edx, dword ptr [esi] */
   7152     PUSH32(esp, 0x8000u); /* 0x36065039: push 0x8000 */
   7153     ecx = esi; /* 0x3606503E: mov ecx, esi */
   7154     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36065040: call dword ptr [edx + 0x1c] */
   7155     RECOMP_FLAGS_IN();
   7156     /* test LO8(eax), LO8(eax) */ /* 0x36065043: test al, al */
   7157     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7158     _cf = 0;
   7159     _flag_k = FK_NARROW(FK_TEST, 24);
   7160     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606508D; /* 0x36065045: jne 0x3606508d */
   7161 L_36065047:
   7162     ebx = MEM32(edi); /* 0x36065047: mov ebx, dword ptr [edi] */
   7163     eax = MEM32(ebx + 0xE4); /* 0x36065049: mov eax, dword ptr [ebx + 0xe4] */
   7164     edx = MEM32(esi); /* 0x3606504F: mov edx, dword ptr [esi] */
   7165     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xE4u);
   7166     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7167     ebx = ebx + 0xE4u; /* 0x36065051: add ebx, 0xe4 */
   7168     _flag_k = FK_ADD;
   7169     PUSH32(esp, 2); /* 0x36065057: push 2 */
   7170     PUSH32(esp, 0x36u); /* 0x36065059: push 0x36 */
   7171     ecx = esi; /* 0x3606505B: mov ecx, esi */
   7172     MEM32(ebp + 0x14) = eax; /* 0x3606505D: mov dword ptr [ebp + 0x14], eax */
   7173     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36065060: call dword ptr [edx + 4] */
   7174     RECOMP_FLAGS_IN();
   7175     esi = MEM32(ebp + 0x14); /* 0x36065063: mov esi, dword ptr [ebp + 0x14] */
   7176     PUSH32(esp, 2); /* 0x36065066: push 2 */
   7177     edx = eax; /* 0x36065068: mov edx, eax */
   7178     PUSH32(esp, 0xB4u); /* 0x3606506A: push 0xb4 */
   7179     ecx = ebx; /* 0x3606506F: mov ecx, ebx */
   7180     MEM32(ebp + 0x14) = edx; /* 0x36065071: mov dword ptr [ebp + 0x14], edx */
   7181     RECOMP_ICALL(MEM32(esi + 0x4)); /* 0x36065074: call dword ptr [esi + 4] */
   7182     RECOMP_FLAGS_IN();
   7183     ecx = MEM32(ebp + 0x14); /* 0x36065077: mov ecx, dword ptr [ebp + 0x14] */
   7184     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7185     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7186     eax = eax - ecx; /* 0x3606507A: sub eax, ecx */
   7187     _flag_k = FK_CMP;
   7188     ecx = MEM32(edi); /* 0x3606507C: mov ecx, dword ptr [edi] */
   7189     PUSH32(esp, eax); /* 0x3606507E: push eax */
   7190     PUSH32(esp, 0xB4u); /* 0x3606507F: push 0xb4 */
   7191     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   7192     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7193     ecx = ecx + 0xE4u; /* 0x36065084: add ecx, 0xe4 */
   7194     _flag_k = FK_ADD;
   7195     RECOMP_ICALL(MEM32(esi + 0x8)); /* 0x3606508A: call dword ptr [esi + 8] */
   7196     RECOMP_FLAGS_IN();
   7197 L_3606508D:
   7198     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7199     eax = 0; /* 0x3606508D: xor eax, eax */
   7200     _cf = 0;
   7201     _flag_k = FK_TEST;
   7202     edx = ebp + (-0x18); /* 0x3606508F: lea edx, [ebp - 0x18] */
   7203     PUSH32(esp, edx); /* 0x36065092: push edx */
   7204     MEM32(ebp + (-0x18)) = eax; /* 0x36065093: mov dword ptr [ebp - 0x18], eax */
   7205     MEM32(ebp + (-0x14)) = eax; /* 0x36065096: mov dword ptr [ebp - 0x14], eax */
   7206     eax = MEM32(edi); /* 0x36065099: mov eax, dword ptr [edi] */
   7207     ecx = eax + 0x4; /* 0x3606509B: lea ecx, [eax + 4] */
   7208     PUSH32(esp, 2); /* 0x3606509E: push 2 */
   7209     PUSH32(esp, ecx); /* 0x360650A0: push ecx */
   7210     PUSH32(esp, 0x100u); /* 0x360650A1: push 0x100 */
   7211     PUSH32(esp, ecx); /* 0x360650A6: push ecx */
   7212     ecx = eax + 0xEC; /* 0x360650A7: lea ecx, [eax + 0xec] */
   7213     RECOMP_ICALL(0x3602EE20u); /* 0x360650AD: call 0x3602ee20 */ /* not lifted */
   7214     RECOMP_FLAGS_IN();
   7215     eax = MEM32(edi); /* 0x360650B2: mov eax, dword ptr [edi] */
   7216     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360650B4: mov cl, byte ptr [eax + 0x128] */
   7217     /* test LO8(ecx), LO8(ecx) */ /* 0x360650BA: test cl, cl */
   7218     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7219     _cf = 0;
   7220     _flag_k = FK_NARROW(FK_TEST, 24);
   7221     if (TEST_Z(_flag_a, _flag_b)) goto L_360650CE; /* 0x360650BC: je 0x360650ce */
   7222 L_360650BE:
   7223     ecx = ebp + (-0x8); /* 0x360650BE: lea ecx, [ebp - 8] */
   7224     PUSH32(esp, ecx); /* 0x360650C1: push ecx */
   7225     RECOMP_ICALL(0x3601C590u); /* 0x360650C2: call 0x3601c590 */ /* not lifted */
   7226     RECOMP_FLAGS_IN();
   7227     ecx = eax; /* 0x360650C7: mov ecx, eax */
   7228     RECOMP_ICALL(0x3601CF90u); /* 0x360650C9: call 0x3601cf90 */ /* not lifted */
   7229     RECOMP_FLAGS_IN();
   7230 L_360650CE:
   7231     edx = MEM32(ebp + 0x10); /* 0x360650CE: mov edx, dword ptr [ebp + 0x10] */
   7232     PUSH32(esp, edx); /* 0x360650D1: push edx */
   7233     eax = ebp + (-0x8); /* 0x360650D2: lea eax, [ebp - 8] */
   7234     PUSH32(esp, eax); /* 0x360650D5: push eax */
   7235     ecx = edi; /* 0x360650D6: mov ecx, edi */
   7236     RECOMP_ICALL(0x36065B90u); /* 0x360650D8: call 0x36065b90 */ /* not lifted */
   7237     RECOMP_FLAGS_IN();
   7238 L_360650DD:
   7239     edi = POP32_VAL(esp); /* 0x360650DD: pop edi */
   7240     esi = POP32_VAL(esp); /* 0x360650DE: pop esi */
   7241     ebx = POP32_VAL(esp); /* 0x360650DF: pop ebx */
   7242     esp = ebp; /* 0x360650E0: mov esp, ebp */
   7243     ebp = POP32_VAL(esp); /* 0x360650E2: pop ebp */
   7244     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360650E3: ret 0x10 */
   7245     RECOMP_REGS_OUT();
   7246 }
   7247 
   7248 void sub_360650F0(void) {
   7249     int _fpu_cmp = 0;
   7250     uint32_t _cf = 0;
   7251     int _df = 1;
   7252     uint32_t _flag_k = FK_NONE;
   7253     uint32_t _flag_a = 0, _flag_b = 0;
   7254     uint32_t _itail_tgt = 0;
   7255     RECOMP_REGS_LOCALS
   7256     RECOMP_ENTER(0x360650F0u);
   7257 
   7258 L_360650F0:
   7259     PUSH32(esp, ebp); /* 0x360650F0: push ebp */
   7260     ebp = esp; /* 0x360650F1: mov ebp, esp */
   7261     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   7262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7263     esp = esp - 0xCu; /* 0x360650F3: sub esp, 0xc */
   7264     _flag_k = FK_CMP;
   7265     PUSH32(esp, esi); /* 0x360650F6: push esi */
   7266     PUSH32(esp, 0x38u); /* 0x360650F7: push 0x38 */
   7267     esi = ecx; /* 0x360650F9: mov esi, ecx */
   7268     RECOMP_ICALL(0x3615FD6Au); /* 0x360650FB: call 0x3615fd6a */ /* not lifted */
   7269     RECOMP_FLAGS_IN();
   7270     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7271     ecx = 0; /* 0x36065100: xor ecx, ecx */
   7272     _cf = 0;
   7273     _flag_k = FK_TEST;
   7274     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7275     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7276     esp = esp + 4; /* 0x36065102: add esp, 4 */
   7277     _flag_k = FK_ADD;
   7278     /* cmp eax, ecx */ /* 0x36065105: cmp eax, ecx */
   7279     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   7280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7281     _flag_k = FK_CMP;
   7282     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065117; /* 0x36065107: je 0x36065117 */
   7283 L_36065109:
   7284     MEM32(eax + 0x24) = ecx; /* 0x36065109: mov dword ptr [eax + 0x24], ecx */
   7285     MEM32(eax + 0x28) = ecx; /* 0x3606510C: mov dword ptr [eax + 0x28], ecx */
   7286     MEM32(eax + 0x30) = ecx; /* 0x3606510F: mov dword ptr [eax + 0x30], ecx */
   7287     MEM32(eax + 0x34) = ecx; /* 0x36065112: mov dword ptr [eax + 0x34], ecx */
   7288     goto L_36065119; /* 0x36065115: jmp 0x36065119 */
   7289 L_36065117:
   7290     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7291     eax = 0; /* 0x36065117: xor eax, eax */
   7292     _cf = 0;
   7293     _flag_k = FK_TEST;
   7294 L_36065119:
   7295     edx = MEM32(ebp + 0xC); /* 0x36065119: mov edx, dword ptr [ebp + 0xc] */
   7296     MEM32(ebp + (-0x4)) = eax; /* 0x3606511C: mov dword ptr [ebp - 4], eax */
   7297     MEM32(eax + 0xC) = 1; /* 0x3606511F: mov dword ptr [eax + 0xc], 1 */
   7298     eax = MEM32(ebp + (-0x4)); /* 0x36065126: mov eax, dword ptr [ebp - 4] */
   7299     MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x36065129: mov byte ptr [eax + 0x1c], 1 */
   7300     ecx = MEM32(ebp + (-0x4)); /* 0x3606512D: mov ecx, dword ptr [ebp - 4] */
   7301     MEM32(ecx + 0x20) = edx; /* 0x36065130: mov dword ptr [ecx + 0x20], edx */
   7302     ecx = MEM32(ebp + (-0x4)); /* 0x36065133: mov ecx, dword ptr [ebp - 4] */
   7303     PUSH32(esp, ebx); /* 0x36065136: push ebx */
   7304     PUSH32(esp, edi); /* 0x36065137: push edi */
   7305     edi = MEM32(ebp + 0x8); /* 0x36065138: mov edi, dword ptr [ebp + 8] */
   7306     eax = MEM32(edi + 0x84); /* 0x3606513B: mov eax, dword ptr [edi + 0x84] */
   7307     MEM32(ecx + 0x4) = eax; /* 0x36065141: mov dword ptr [ecx + 4], eax */
   7308     edx = MEM32(ebp + (-0x4)); /* 0x36065144: mov edx, dword ptr [ebp - 4] */
   7309     MEM32(edx) = edi; /* 0x36065147: mov dword ptr [edx], edi */
   7310     eax = MEM32(ebp + (-0x4)); /* 0x36065149: mov eax, dword ptr [ebp - 4] */
   7311     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   7312     ecx = ecx | 0xFFFFFFFFu; /* 0x3606514C: or ecx, 0xffffffff */
   7313     _cf = 0;
   7314     _flag_k = FK_TEST;
   7315     MEM32(eax + 0x18) = ecx; /* 0x3606514F: mov dword ptr [eax + 0x18], ecx */
   7316     ebx = MEM32(ebp + (-0x4)); /* 0x36065152: mov ebx, dword ptr [ebp - 4] */
   7317     eax = MEM32(ebp + 0x10); /* 0x36065155: mov eax, dword ptr [ebp + 0x10] */
   7318     edx = MEM32(eax); /* 0x36065158: mov edx, dword ptr [eax] */
   7319     MEM32(ebx + 0x24) = edx; /* 0x3606515A: mov dword ptr [ebx + 0x24], edx */
   7320     eax = MEM32(eax + 0x4); /* 0x3606515D: mov eax, dword ptr [eax + 4] */
   7321     edx = MEM32(ebp + (-0x4)); /* 0x36065160: mov edx, dword ptr [ebp - 4] */
   7322     MEM32(edx + 0x28) = eax; /* 0x36065163: mov dword ptr [edx + 0x28], eax */
   7323     eax = MEM32(ebp + (-0x4)); /* 0x36065166: mov eax, dword ptr [ebp - 4] */
   7324     SET_LO8(edx, MEM8(ebp + 0x14)); /* 0x36065169: mov dl, byte ptr [ebp + 0x14] */
   7325     MEM32(eax + 0x8) = ecx; /* 0x3606516C: mov dword ptr [eax + 8], ecx */
   7326     ecx = MEM32(ebp + (-0x4)); /* 0x3606516F: mov ecx, dword ptr [ebp - 4] */
   7327     SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x36065172: mov al, byte ptr [ebp + 0x18] */
   7328     MEM8(ecx + 0x2C) = (uint8_t)(LO8(edx)); /* 0x36065175: mov byte ptr [ecx + 0x2c], dl */
   7329     ecx = MEM32(ebp + (-0x4)); /* 0x36065178: mov ecx, dword ptr [ebp - 4] */
   7330     MEM8(ecx + 0x2D) = (uint8_t)(LO8(eax)); /* 0x3606517B: mov byte ptr [ecx + 0x2d], al */
   7331     eax = MEM32(ebp + 0x1C); /* 0x3606517E: mov eax, dword ptr [ebp + 0x1c] */
   7332     /* cmp MEM32(eax), 0 */ /* 0x36065181: cmp dword ptr [eax], 0 */
   7333     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
   7334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7335     _flag_k = FK_CMP;
   7336     if (CMP_NE(_flag_a, _flag_b)) goto L_360651A3; /* 0x36065184: jne 0x360651a3 */
   7337 L_36065186:
   7338     ecx = MEM32(eax + 0x4); /* 0x36065186: mov ecx, dword ptr [eax + 4] */
   7339     /* test ecx, ecx */ /* 0x36065189: test ecx, ecx */
   7340     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7341     _cf = 0;
   7342     _flag_k = FK_TEST;
   7343     if (TEST_NZ(_flag_a, _flag_b)) goto L_360651A3; /* 0x3606518B: jne 0x360651a3 */
   7344 L_3606518D:
   7345     edx = MEM32(esi); /* 0x3606518D: mov edx, dword ptr [esi] */
   7346     eax = MEM32(edx + 0x4); /* 0x3606518F: mov eax, dword ptr [edx + 4] */
   7347     ecx = MEM32(ebp + (-0x4)); /* 0x36065192: mov ecx, dword ptr [ebp - 4] */
   7348     MEM32(ecx + 0x30) = eax; /* 0x36065195: mov dword ptr [ecx + 0x30], eax */
   7349     edx = MEM32(edx + 0x8); /* 0x36065198: mov edx, dword ptr [edx + 8] */
   7350     eax = MEM32(ebp + (-0x4)); /* 0x3606519B: mov eax, dword ptr [ebp - 4] */
   7351     MEM32(eax + 0x34) = edx; /* 0x3606519E: mov dword ptr [eax + 0x34], edx */
   7352     goto L_360651B4; /* 0x360651A1: jmp 0x360651b4 */
   7353 L_360651A3:
   7354     ecx = MEM32(eax); /* 0x360651A3: mov ecx, dword ptr [eax] */
   7355     edx = MEM32(ebp + (-0x4)); /* 0x360651A5: mov edx, dword ptr [ebp - 4] */
   7356     MEM32(edx + 0x30) = ecx; /* 0x360651A8: mov dword ptr [edx + 0x30], ecx */
   7357     eax = MEM32(eax + 0x4); /* 0x360651AB: mov eax, dword ptr [eax + 4] */
   7358     ecx = MEM32(ebp + (-0x4)); /* 0x360651AE: mov ecx, dword ptr [ebp - 4] */
   7359     MEM32(ecx + 0x34) = eax; /* 0x360651B1: mov dword ptr [ecx + 0x34], eax */
   7360 L_360651B4:
   7361     eax = MEM32(esi); /* 0x360651B4: mov eax, dword ptr [esi] */
   7362     edx = MEM32(eax + 0xE4); /* 0x360651B6: mov edx, dword ptr [eax + 0xe4] */
   7363     ecx = eax + 0xE4; /* 0x360651BC: lea ecx, [eax + 0xe4] */
   7364     PUSH32(esp, 0); /* 0x360651C2: push 0 */
   7365     PUSH32(esp, 0x95u); /* 0x360651C4: push 0x95 */
   7366     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360651C9: call dword ptr [edx + 4] */
   7367     RECOMP_FLAGS_IN();
   7368     /* cmp eax, 0x4B0u */ /* 0x360651CC: cmp eax, 0x4b0 */
   7369     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4B0u);
   7370     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7371     _flag_k = FK_CMP;
   7372     MEM32(ebp + 0x18) = eax; /* 0x360651D1: mov dword ptr [ebp + 0x18], eax */
   7373     if (CMP_LE(_flag_a, _flag_b)) goto L_360651EF; /* 0x360651D4: jle 0x360651ef */
   7374 L_360651D6:
   7375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFB50u);
   7376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7377     eax = eax + 0xFFFFFB50u; /* 0x360651D6: add eax, 0xfffffb50 */
   7378     _flag_k = FK_ADD;
   7379     MEM32(ebp + 0x18) = eax; /* 0x360651DB: mov dword ptr [ebp + 0x18], eax */
   7380     fp_push((double)(int32_t)MEM32(ebp + 0x18)); /* 0x360651DE: fild dword ptr [ebp + 0x18] */
   7381     _st[0] *= (double)*(float*)ADDR(0x36171184); /* 0x360651E1: fmul dword ptr [0x36171184] */
   7382     _st[0] += (double)*(float*)ADDR(0x36171180); /* 0x360651E7: fadd dword ptr [0x36171180] */
   7383     goto L_360651F8; /* 0x360651ED: jmp 0x360651f8 */
   7384 L_360651EF:
   7385     fp_push((double)(int32_t)MEM32(ebp + 0x18)); /* 0x360651EF: fild dword ptr [ebp + 0x18] */
   7386     _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x360651F2: fmul dword ptr [0x36170464] */
   7387 L_360651F8:
   7388     ecx = MEM32(esi); /* 0x360651F8: mov ecx, dword ptr [esi] */
   7389     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x18) = _v; } /* 0x360651FA: fstp dword ptr [ebp + 0x18] */
   7390     eax = MEM32(ecx + 0xE4); /* 0x360651FD: mov eax, dword ptr [ecx + 0xe4] */
   7391     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   7392     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7393     ecx = ecx + 0xE4u; /* 0x36065203: add ecx, 0xe4 */
   7394     _flag_k = FK_ADD;
   7395     PUSH32(esp, 2); /* 0x36065209: push 2 */
   7396     PUSH32(esp, 0x33u); /* 0x3606520B: push 0x33 */
   7397     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3606520D: call dword ptr [eax + 4] */
   7398     RECOMP_FLAGS_IN();
   7399     ecx = MEM32(ebp + (-0x4)); /* 0x36065210: mov ecx, dword ptr [ebp - 4] */
   7400     ecx = MEM32(ecx); /* 0x36065213: mov ecx, dword ptr [ecx] */
   7401     edx = MEM32(ecx); /* 0x36065215: mov edx, dword ptr [ecx] */
   7402     PUSH32(esp, 2); /* 0x36065217: push 2 */
   7403     PUSH32(esp, 0x126u); /* 0x36065219: push 0x126 */
   7404     ebx = eax; /* 0x3606521E: mov ebx, eax */
   7405     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36065220: call dword ptr [edx + 4] */
   7406     RECOMP_FLAGS_IN();
   7407     MEM32(ebp + 0xC) = eax; /* 0x36065223: mov dword ptr [ebp + 0xc], eax */
   7408     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x36065226: fild dword ptr [ebp + 0xc] */
   7409     eax = 0x51EB851Fu; /* 0x36065229: mov eax, 0x51eb851f */
   7410     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ebx); /* 0x3606522E: imul ebx */
   7411       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   7412       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   7413     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x36065230: fmul dword ptr [0x36170894] */
   7414     fp_push(*(float*)&MEM32(ebp + 0x18)); /* 0x36065236: fld dword ptr [ebp + 0x18] */
   7415     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x36065239: fmul dword ptr [0x36170894] */
   7416     { double _v = fp_pop(); _st[0] -= _v; } /* 0x3606523F: fsubp st(1) */
   7417     if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36065241: sar edx, 5 */
   7418     if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7419     edx = (uint32_t)((int32_t)edx >> 5u);
   7420     eax = edx; /* 0x36065244: mov eax, edx */
   7421     if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36065246: shr eax, 0x1f */
   7422     if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   7423     eax = eax >> 31u; /* 0x36065246: shr eax, 0x1f */
   7424     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   7425     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7426     edx = edx + eax; /* 0x36065249: add edx, eax */
   7427     _flag_k = FK_ADD;
   7428     MEM32(ebp + 0xC) = edx; /* 0x3606524B: mov dword ptr [ebp + 0xc], edx */
   7429     _st[0] = _st[0] - (double)(int32_t)MEM32(ebp + 0xC); /* 0x3606524E: fisub dword ptr [ebp + 0xc] */
   7430     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x36065251: fstp dword ptr [ebp + 0xc] */
   7431     RECOMP_ICALL(0x3600C230u); /* 0x36065254: call 0x3600c230 */ /* not lifted */
   7432     RECOMP_FLAGS_IN();
   7433     ecx = eax; /* 0x36065259: mov ecx, eax */
   7434     RECOMP_ICALL(0x3600C7C0u); /* 0x3606525B: call 0x3600c7c0 */ /* not lifted */
   7435     RECOMP_FLAGS_IN();
   7436     _st[0] += (double)*(float*)ADDR(ebp + 0xC); /* 0x36065260: fadd dword ptr [ebp + 0xc] */
   7437     ecx = MEM32(ebp + (-0x4)); /* 0x36065263: mov ecx, dword ptr [ebp - 4] */
   7438     PUSH32(esp, 0x00080000u); /* 0x36065266: push 0x80000 */
   7439     { double _v = fp_pop(); *(double*)ADDR(ecx + 0x10) = _v; } /* 0x3606526B: fstp qword ptr [ecx + 0x10] */
   7440     edx = MEM32(edi); /* 0x3606526E: mov edx, dword ptr [edi] */
   7441     ecx = edi; /* 0x36065270: mov ecx, edi */
   7442     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36065272: call dword ptr [edx + 0x1c] */
   7443     RECOMP_FLAGS_IN();
   7444     /* test LO8(eax), LO8(eax) */ /* 0x36065275: test al, al */
   7445     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7446     _cf = 0;
   7447     _flag_k = FK_NARROW(FK_TEST, 24);
   7448     if (TEST_Z(_flag_a, _flag_b)) goto L_3606528E; /* 0x36065277: je 0x3606528e */
   7449 L_36065279:
   7450     ecx = MEM32(ebp + (-0x4)); /* 0x36065279: mov ecx, dword ptr [ebp - 4] */
   7451     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7452     eax = 0; /* 0x3606527C: xor eax, eax */
   7453     _cf = 0;
   7454     _flag_k = FK_TEST;
   7455     MEM32(ecx + 0x10) = eax; /* 0x3606527E: mov dword ptr [ecx + 0x10], eax */
   7456     edx = MEM32(ebp + (-0x4)); /* 0x36065281: mov edx, dword ptr [ebp - 4] */
   7457     MEM32(ebp + 0xC) = 0; /* 0x36065284: mov dword ptr [ebp + 0xc], 0 */
   7458     MEM32(edx + 0x14) = eax; /* 0x3606528B: mov dword ptr [edx + 0x14], eax */
   7459 L_3606528E:
   7460     eax = MEM32(esi + 0x18); /* 0x3606528E: mov eax, dword ptr [esi + 0x18] */
   7461     ecx = MEM32(eax + 0x8); /* 0x36065291: mov ecx, dword ptr [eax + 8] */
   7462     /* test ecx, ecx */ /* 0x36065294: test ecx, ecx */
   7463     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7464     _cf = 0;
   7465     _flag_k = FK_TEST;
   7466     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065321; /* 0x36065296: jne 0x36065321 */
   7467 L_3606529C:
   7468     SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x3606529C: mov al, byte ptr [ebp + 0x14] */
   7469     /* test LO8(eax), LO8(eax) */ /* 0x3606529F: test al, al */
   7470     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7471     _cf = 0;
   7472     _flag_k = FK_NARROW(FK_TEST, 24);
   7473     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065321; /* 0x360652A1: jne 0x36065321 */
   7474 L_360652A3:
   7475     ecx = MEM32(ebp + (-0x4)); /* 0x360652A3: mov ecx, dword ptr [ebp - 4] */
   7476     fp_push(*(double*)ADDR(ecx + 0x10)); /* 0x360652A6: fld qword ptr [ecx + 0x10] */
   7477     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x360652A9: fcomp qword ptr [0x36170430] */
   7478     fp_pop();
   7479     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360652AF: fnstsw ax */
   7480     /* test HI8(eax), 0x41u */ /* 0x360652B1: test ah, 0x41 */
   7481     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7482     _cf = 0;
   7483     _flag_k = FK_NARROW(FK_TEST, 24);
   7484     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065321; /* 0x360652B4: jne 0x36065321 */
   7485 L_360652B6:
   7486     edx = MEM32(esi); /* 0x360652B6: mov edx, dword ptr [esi] */
   7487     eax = MEM32(edx + 0x178); /* 0x360652B8: mov eax, dword ptr [edx + 0x178] */
   7488     MEM8(eax + 0x5) = (uint8_t)(1); /* 0x360652BE: mov byte ptr [eax + 5], 1 */
   7489     eax = MEM32(ebp + (-0x4)); /* 0x360652C2: mov eax, dword ptr [ebp - 4] */
   7490     ecx = MEM32(eax); /* 0x360652C5: mov ecx, dword ptr [eax] */
   7491     PUSH32(esp, 3); /* 0x360652C7: push 3 */
   7492     edi = ecx; /* 0x360652C9: mov edi, ecx */
   7493     edx = MEM32(edi); /* 0x360652CB: mov edx, dword ptr [edi] */
   7494     PUSH32(esp, 2); /* 0x360652CD: push 2 */
   7495     PUSH32(esp, 0xD2u); /* 0x360652CF: push 0xd2 */
   7496     MEM32(ebp + 0x14) = ecx; /* 0x360652D4: mov dword ptr [ebp + 0x14], ecx */
   7497     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360652D7: call dword ptr [edx + 4] */
   7498     RECOMP_FLAGS_IN();
   7499     PUSH32(esp, eax); /* 0x360652DA: push eax */
   7500     eax = MEM32(edi); /* 0x360652DB: mov eax, dword ptr [edi] */
   7501     PUSH32(esp, 2); /* 0x360652DD: push 2 */
   7502     PUSH32(esp, 0x126u); /* 0x360652DF: push 0x126 */
   7503     ecx = edi; /* 0x360652E4: mov ecx, edi */
   7504     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360652E6: call dword ptr [eax + 4] */
   7505     RECOMP_FLAGS_IN();
   7506     MEM32(ebp + 0x14) = eax; /* 0x360652E9: mov dword ptr [ebp + 0x14], eax */
   7507     fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x360652EC: fild dword ptr [ebp + 0x14] */
   7508     _st[0] -= (double)*(float*)ADDR(ebp + 0x18); /* 0x360652EF: fsub dword ptr [ebp + 0x18] */
   7509     RECOMP_ICALL(0x3615FD8Cu); /* 0x360652F2: call 0x3615fd8c */ /* not lifted */
   7510     RECOMP_FLAGS_IN();
   7511     ecx = MEM32(esi); /* 0x360652F7: mov ecx, dword ptr [esi] */
   7512     PUSH32(esp, eax); /* 0x360652F9: push eax */
   7513     RECOMP_ICALL(0x36071D60u); /* 0x360652FA: call 0x36071d60 */ /* not lifted */
   7514     RECOMP_FLAGS_IN();
   7515     ecx = eax; /* 0x360652FF: mov ecx, eax */
   7516     RECOMP_ICALL(0x36052630u); /* 0x36065301: call 0x36052630 */ /* not lifted */
   7517     RECOMP_FLAGS_IN();
   7518     ecx = MEM32(ebp + (-0x4)); /* 0x36065306: mov ecx, dword ptr [ebp - 4] */
   7519     MEM32(ecx + 0x18) = eax; /* 0x36065309: mov dword ptr [ecx + 0x18], eax */
   7520     edx = MEM32(ebp + (-0x4)); /* 0x3606530C: mov edx, dword ptr [ebp - 4] */
   7521     eax = MEM32(edx + 0x18); /* 0x3606530F: mov eax, dword ptr [edx + 0x18] */
   7522     ecx = MEM32(esi); /* 0x36065312: mov ecx, dword ptr [esi] */
   7523     PUSH32(esp, eax); /* 0x36065314: push eax */
   7524     RECOMP_ICALL(0x36071D60u); /* 0x36065315: call 0x36071d60 */ /* not lifted */
   7525     RECOMP_FLAGS_IN();
   7526     ecx = eax; /* 0x3606531A: mov ecx, eax */
   7527     RECOMP_ICALL(0x360529A0u); /* 0x3606531C: call 0x360529a0 */ /* not lifted */
   7528     RECOMP_FLAGS_IN();
   7529 L_36065321:
   7530     ebx = MEM32(esi + 0x18); /* 0x36065321: mov ebx, dword ptr [esi + 0x18] */
   7531     edi = MEM32(ebx + 0x4); /* 0x36065324: mov edi, dword ptr [ebx + 4] */
   7532     ecx = MEM32(edi + 0x4); /* 0x36065327: mov ecx, dword ptr [edi + 4] */
   7533     PUSH32(esp, 0xCu); /* 0x3606532A: push 0xc */
   7534     MEM32(ebp + 0x14) = ecx; /* 0x3606532C: mov dword ptr [ebp + 0x14], ecx */
   7535     RECOMP_ICALL(0x3615FD6Au); /* 0x3606532F: call 0x3615fd6a */ /* not lifted */
   7536     RECOMP_FLAGS_IN();
   7537     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7538     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7539     esp = esp + 4; /* 0x36065334: add esp, 4 */
   7540     _flag_k = FK_ADD;
   7541     /* test edi, edi */ /* 0x36065337: test edi, edi */
   7542     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7543     _cf = 0;
   7544     _flag_k = FK_TEST;
   7545     ecx = edi; /* 0x36065339: mov ecx, edi */
   7546     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606533F; /* 0x3606533B: jne 0x3606533f */
   7547 L_3606533D:
   7548     ecx = eax; /* 0x3606533D: mov ecx, eax */
   7549 L_3606533F:
   7550     MEM32(eax) = ecx; /* 0x3606533F: mov dword ptr [eax], ecx */
   7551     ecx = MEM32(ebp + 0x14); /* 0x36065341: mov ecx, dword ptr [ebp + 0x14] */
   7552     /* test ecx, ecx */ /* 0x36065344: test ecx, ecx */
   7553     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   7554     _cf = 0;
   7555     _flag_k = FK_TEST;
   7556     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606534A; /* 0x36065346: jne 0x3606534a */
   7557 L_36065348:
   7558     ecx = eax; /* 0x36065348: mov ecx, eax */
   7559 L_3606534A:
   7560     MEM32(eax + 0x4) = ecx; /* 0x3606534A: mov dword ptr [eax + 4], ecx */
   7561     MEM32(edi + 0x4) = eax; /* 0x3606534D: mov dword ptr [edi + 4], eax */
   7562     edx = MEM32(eax + 0x4); /* 0x36065350: mov edx, dword ptr [eax + 4] */
   7563     ecx = ebp + (-0x4); /* 0x36065353: lea ecx, [ebp - 4] */
   7564     MEM32(edx) = eax; /* 0x36065356: mov dword ptr [edx], eax */
   7565     PUSH32(esp, ecx); /* 0x36065358: push ecx */
   7566     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   7567     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7568     eax = eax + 8; /* 0x36065359: add eax, 8 */
   7569     _flag_k = FK_ADD;
   7570     PUSH32(esp, eax); /* 0x3606535C: push eax */
   7571     RECOMP_ICALL(0x3614F850u); /* 0x3606535D: call 0x3614f850 */ /* not lifted */
   7572     RECOMP_FLAGS_IN();
   7573     ecx = MEM32(ebx + 0x8); /* 0x36065362: mov ecx, dword ptr [ebx + 8] */
   7574     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7575     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7576     esp = esp + 8; /* 0x36065365: add esp, 8 */
   7577     _flag_k = FK_ADD;
   7578     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   7579     ecx = ecx + 1; /* 0x36065368: inc ecx */
   7580     _flag_k = FK_INC;
   7581     MEM32(ebx + 0x8) = ecx; /* 0x36065369: mov dword ptr [ebx + 8], ecx */
   7582     eax = MEM32(esi); /* 0x3606536C: mov eax, dword ptr [esi] */
   7583     edx = MEM32(eax + 0xE4); /* 0x3606536E: mov edx, dword ptr [eax + 0xe4] */
   7584     ecx = eax + 0xE4; /* 0x36065374: lea ecx, [eax + 0xe4] */
   7585     PUSH32(esp, 0x80u); /* 0x3606537A: push 0x80 */
   7586     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3606537F: call dword ptr [edx + 0x18] */
   7587     RECOMP_FLAGS_IN();
   7588     ecx = MEM32(ebp + (-0x4)); /* 0x36065382: mov ecx, dword ptr [ebp - 4] */
   7589     fp_push(*(double*)ADDR(ecx + 0x10)); /* 0x36065385: fld qword ptr [ecx + 0x10] */
   7590     edi = POP32_VAL(esp); /* 0x36065388: pop edi */
   7591     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x36065389: fcomp qword ptr [0x36170430] */
   7592     fp_pop();
   7593     ebx = POP32_VAL(esp); /* 0x3606538F: pop ebx */
   7594     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36065390: fnstsw ax */
   7595     /* test HI8(eax), 0x41u */ /* 0x36065392: test ah, 0x41 */
   7596     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7597     _cf = 0;
   7598     _flag_k = FK_NARROW(FK_TEST, 24);
   7599     if (TEST_NZ(_flag_a, _flag_b)) goto L_360653E6; /* 0x36065395: jne 0x360653e6 */
   7600 L_36065397:
   7601     eax = MEM32(esi); /* 0x36065397: mov eax, dword ptr [esi] */
   7602     SET_LO8(edx, MEM8(eax + 0x128)); /* 0x36065399: mov dl, byte ptr [eax + 0x128] */
   7603     /* test LO8(edx), LO8(edx) */ /* 0x3606539F: test dl, dl */
   7604     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   7605     _cf = 0;
   7606     _flag_k = FK_NARROW(FK_TEST, 24);
   7607     if (TEST_Z(_flag_a, _flag_b)) goto L_360653E6; /* 0x360653A1: je 0x360653e6 */
   7608 L_360653A3:
   7609     ecx = MEM32(ecx + 0x4); /* 0x360653A3: mov ecx, dword ptr [ecx + 4] */
   7610     MEM32(ebp + (-0x8)) = ecx; /* 0x360653A6: mov dword ptr [ebp - 8], ecx */
   7611     ecx = ebp + (-0xC); /* 0x360653A9: lea ecx, [ebp - 0xc] */
   7612     PUSH32(esp, ecx); /* 0x360653AC: push ecx */
   7613     MEM32(ebp + (-0xC)) = 0xCF1Bu; /* 0x360653AD: mov dword ptr [ebp - 0xc], 0xcf1b */
   7614     RECOMP_ICALL(0x3601C590u); /* 0x360653B4: call 0x3601c590 */ /* not lifted */
   7615     RECOMP_FLAGS_IN();
   7616     ecx = eax; /* 0x360653B9: mov ecx, eax */
   7617     RECOMP_ICALL(0x3601CFB0u); /* 0x360653BB: call 0x3601cfb0 */ /* not lifted */
   7618     RECOMP_FLAGS_IN();
   7619     edx = MEM32(ebp + (-0x4)); /* 0x360653C0: mov edx, dword ptr [ebp - 4] */
   7620     eax = MEM32(edx + 0x4); /* 0x360653C3: mov eax, dword ptr [edx + 4] */
   7621     MEM32(ebp + (-0x8)) = eax; /* 0x360653C6: mov dword ptr [ebp - 8], eax */
   7622     eax = MEM32(ebp + 0xC); /* 0x360653C9: mov eax, dword ptr [ebp + 0xc] */
   7623     PUSH32(esp, 1); /* 0x360653CC: push 1 */
   7624     PUSH32(esp, eax); /* 0x360653CE: push eax */
   7625     ecx = ebp + (-0xC); /* 0x360653CF: lea ecx, [ebp - 0xc] */
   7626     PUSH32(esp, ecx); /* 0x360653D2: push ecx */
   7627     MEM32(ebp + (-0xC)) = 3; /* 0x360653D3: mov dword ptr [ebp - 0xc], 3 */
   7628     RECOMP_ICALL(0x3601C590u); /* 0x360653DA: call 0x3601c590 */ /* not lifted */
   7629     RECOMP_FLAGS_IN();
   7630     ecx = eax; /* 0x360653DF: mov ecx, eax */
   7631     RECOMP_ICALL(0x3601CFF0u); /* 0x360653E1: call 0x3601cff0 */ /* not lifted */
   7632     RECOMP_FLAGS_IN();
   7633 L_360653E6:
   7634     esi = POP32_VAL(esp); /* 0x360653E6: pop esi */
   7635     esp = ebp; /* 0x360653E7: mov esp, ebp */
   7636     ebp = POP32_VAL(esp); /* 0x360653E9: pop ebp */
   7637     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x360653EA: ret 0x18 */
   7638     RECOMP_REGS_OUT();
   7639 }
   7640 
   7641 void sub_360653F0(void) {
   7642     int _fpu_cmp = 0;
   7643     uint32_t _cf = 0;
   7644     int _df = 1;
   7645     uint32_t _flag_k = FK_NONE;
   7646     uint32_t _flag_a = 0, _flag_b = 0;
   7647     uint32_t _itail_tgt = 0;
   7648     RECOMP_REGS_LOCALS
   7649     RECOMP_ENTER(0x360653F0u);
   7650 
   7651 L_360653F0:
   7652     eax = MEM32(ecx + 0x18); /* 0x360653F0: mov eax, dword ptr [ecx + 0x18] */
   7653     edx = MEM32(eax + 0x4); /* 0x360653F3: mov edx, dword ptr [eax + 4] */
   7654     ecx = MEM32(edx); /* 0x360653F6: mov ecx, dword ptr [edx] */
   7655     /* cmp ecx, edx */ /* 0x360653F8: cmp ecx, edx */
   7656     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7658     _flag_k = FK_CMP;
   7659     PUSH32(esp, ebx); /* 0x360653FA: push ebx */
   7660     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606540D; /* 0x360653FB: je 0x3606540d */
   7661 L_360653FD:
   7662     eax = MEM32(ecx + 0x8); /* 0x360653FD: mov eax, dword ptr [ecx + 8] */
   7663     SET_LO8(ebx, MEM8(eax + 0x2C)); /* 0x36065400: mov bl, byte ptr [eax + 0x2c] */
   7664     /* test LO8(ebx), LO8(ebx) */ /* 0x36065403: test bl, bl */
   7665     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
   7666     _cf = 0;
   7667     _flag_k = FK_NARROW(FK_TEST, 24);
   7668     if (TEST_Z(_flag_a, _flag_b)) goto L_3606540F; /* 0x36065405: je 0x3606540f */
   7669 L_36065407:
   7670     ecx = MEM32(ecx); /* 0x36065407: mov ecx, dword ptr [ecx] */
   7671     /* cmp ecx, edx */ /* 0x36065409: cmp ecx, edx */
   7672     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   7673     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7674     _flag_k = FK_CMP;
   7675     RECOMP_BACKEDGE();
   7676     if (CMP_NE(_flag_a, _flag_b)) goto L_360653FD; /* 0x3606540B: jne 0x360653fd */
   7677 L_3606540D:
   7678     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7679     eax = 0; /* 0x3606540D: xor eax, eax */
   7680     _cf = 0;
   7681     _flag_k = FK_TEST;
   7682 L_3606540F:
   7683     ebx = POP32_VAL(esp); /* 0x3606540F: pop ebx */
   7684     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36065410: ret  */
   7685     RECOMP_REGS_OUT();
   7686 }
   7687 
   7688 void sub_36065420(void) {
   7689     int _fpu_cmp = 0;
   7690     uint32_t _cf = 0;
   7691     int _df = 1;
   7692     uint32_t _flag_k = FK_NONE;
   7693     uint32_t _flag_a = 0, _flag_b = 0;
   7694     uint32_t _itail_tgt = 0;
   7695     RECOMP_REGS_LOCALS
   7696     RECOMP_ENTER(0x36065420u);
   7697 
   7698 L_36065420:
   7699     PUSH32(esp, ebp); /* 0x36065420: push ebp */
   7700     ebp = esp; /* 0x36065421: mov ebp, esp */
   7701     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7702     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7703     esp = esp - 8; /* 0x36065423: sub esp, 8 */
   7704     _flag_k = FK_CMP;
   7705     PUSH32(esp, esi); /* 0x36065426: push esi */
   7706     PUSH32(esp, edi); /* 0x36065427: push edi */
   7707     edi = MEM32(ebp + 0x8); /* 0x36065428: mov edi, dword ptr [ebp + 8] */
   7708     eax = MEM32(edi + 0x18); /* 0x3606542B: mov eax, dword ptr [edi + 0x18] */
   7709     /* cmp eax, 0xFFFFFFFFu */ /* 0x3606542E: cmp eax, -1 */
   7710     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7711     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7712     _flag_k = FK_CMP;
   7713     esi = ecx; /* 0x36065431: mov esi, ecx */
   7714     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065493; /* 0x36065433: je 0x36065493 */
   7715 L_36065435:
   7716     ecx = MEM32(esi); /* 0x36065435: mov ecx, dword ptr [esi] */
   7717     PUSH32(esp, 1); /* 0x36065437: push 1 */
   7718     PUSH32(esp, eax); /* 0x36065439: push eax */
   7719     RECOMP_ICALL(0x36071D60u); /* 0x3606543A: call 0x36071d60 */ /* not lifted */
   7720     RECOMP_FLAGS_IN();
   7721     ecx = eax; /* 0x3606543F: mov ecx, eax */
   7722     RECOMP_ICALL(0x360526A0u); /* 0x36065441: call 0x360526a0 */ /* not lifted */
   7723     RECOMP_FLAGS_IN();
   7724     MEM32(edi + 0x18) = 0xFFFFFFFFu; /* 0x36065446: mov dword ptr [edi + 0x18], 0xffffffff */
   7725     eax = MEM32(esi); /* 0x3606544D: mov eax, dword ptr [esi] */
   7726     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x3606544F: mov cl, byte ptr [eax + 0x128] */
   7727     /* test LO8(ecx), LO8(ecx) */ /* 0x36065455: test cl, cl */
   7728     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   7729     _cf = 0;
   7730     _flag_k = FK_NARROW(FK_TEST, 24);
   7731     if (TEST_Z(_flag_a, _flag_b)) goto L_36065493; /* 0x36065457: je 0x36065493 */
   7732 L_36065459:
   7733     ecx = MEM32(edi + 0x4); /* 0x36065459: mov ecx, dword ptr [edi + 4] */
   7734     edx = ebp + (-0x8); /* 0x3606545C: lea edx, [ebp - 8] */
   7735     PUSH32(esp, edx); /* 0x3606545F: push edx */
   7736     MEM32(ebp + (-0x8)) = 0xCF1Bu; /* 0x36065460: mov dword ptr [ebp - 8], 0xcf1b */
   7737     MEM32(ebp + (-0x4)) = ecx; /* 0x36065467: mov dword ptr [ebp - 4], ecx */
   7738     RECOMP_ICALL(0x3601C590u); /* 0x3606546A: call 0x3601c590 */ /* not lifted */
   7739     RECOMP_FLAGS_IN();
   7740     ecx = eax; /* 0x3606546F: mov ecx, eax */
   7741     RECOMP_ICALL(0x3601CFD0u); /* 0x36065471: call 0x3601cfd0 */ /* not lifted */
   7742     RECOMP_FLAGS_IN();
   7743     eax = MEM32(edi + 0x4); /* 0x36065476: mov eax, dword ptr [edi + 4] */
   7744     ecx = ebp + (-0x8); /* 0x36065479: lea ecx, [ebp - 8] */
   7745     PUSH32(esp, ecx); /* 0x3606547C: push ecx */
   7746     MEM32(ebp + (-0x8)) = 3; /* 0x3606547D: mov dword ptr [ebp - 8], 3 */
   7747     MEM32(ebp + (-0x4)) = eax; /* 0x36065484: mov dword ptr [ebp - 4], eax */
   7748     RECOMP_ICALL(0x3601C590u); /* 0x36065487: call 0x3601c590 */ /* not lifted */
   7749     RECOMP_FLAGS_IN();
   7750     ecx = eax; /* 0x3606548C: mov ecx, eax */
   7751     RECOMP_ICALL(0x3601D020u); /* 0x3606548E: call 0x3601d020 */ /* not lifted */
   7752     RECOMP_FLAGS_IN();
   7753 L_36065493:
   7754     edi = POP32_VAL(esp); /* 0x36065493: pop edi */
   7755     esi = POP32_VAL(esp); /* 0x36065494: pop esi */
   7756     esp = ebp; /* 0x36065495: mov esp, ebp */
   7757     ebp = POP32_VAL(esp); /* 0x36065497: pop ebp */
   7758     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36065498: ret 4 */
   7759     RECOMP_REGS_OUT();
   7760 }
   7761 
   7762 void sub_360654A0(void) {
   7763     int _fpu_cmp = 0;
   7764     uint32_t _cf = 0;
   7765     int _df = 1;
   7766     uint32_t _flag_k = FK_NONE;
   7767     uint32_t _flag_a = 0, _flag_b = 0;
   7768     uint32_t _itail_tgt = 0;
   7769     RECOMP_REGS_LOCALS
   7770     RECOMP_ENTER(0x360654A0u);
   7771 
   7772 L_360654A0:
   7773     PUSH32(esp, ebp); /* 0x360654A0: push ebp */
   7774     ebp = esp; /* 0x360654A1: mov ebp, esp */
   7775     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x118u);
   7776     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7777     esp = esp - 0x118u; /* 0x360654A3: sub esp, 0x118 */
   7778     _flag_k = FK_CMP;
   7779     PUSH32(esp, ebx); /* 0x360654A9: push ebx */
   7780     PUSH32(esp, esi); /* 0x360654AA: push esi */
   7781     esi = MEM32(ebp + 0x8); /* 0x360654AB: mov esi, dword ptr [ebp + 8] */
   7782     ebx = ecx; /* 0x360654AE: mov ebx, ecx */
   7783     ecx = MEM32(esi); /* 0x360654B0: mov ecx, dword ptr [esi] */
   7784     eax = MEM32(ecx); /* 0x360654B2: mov eax, dword ptr [ecx] */
   7785     PUSH32(esp, edi); /* 0x360654B4: push edi */
   7786     PUSH32(esp, 0x00080000u); /* 0x360654B5: push 0x80000 */
   7787     MEM32(ebp + (-0x8)) = ebx; /* 0x360654BA: mov dword ptr [ebp - 8], ebx */
   7788     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x360654BD: call dword ptr [eax + 0x1c] */
   7789     RECOMP_FLAGS_IN();
   7790     MEM8(ebp + 0xB) = (uint8_t)(LO8(eax)); /* 0x360654C0: mov byte ptr [ebp + 0xb], al */
   7791     RECOMP_ICALL(0x3600C230u); /* 0x360654C3: call 0x3600c230 */ /* not lifted */
   7792     RECOMP_FLAGS_IN();
   7793     ecx = eax; /* 0x360654C8: mov ecx, eax */
   7794     RECOMP_ICALL(0x3600C7C0u); /* 0x360654CA: call 0x3600c7c0 */ /* not lifted */
   7795     RECOMP_FLAGS_IN();
   7796     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(esi + 0x10)); /* 0x360654CF: fcomp qword ptr [esi + 0x10] */
   7797     fp_pop();
   7798     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360654D2: fnstsw ax */
   7799     /* test HI8(eax), 0x41u */ /* 0x360654D4: test ah, 0x41 */
   7800     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   7801     _cf = 0;
   7802     _flag_k = FK_NARROW(FK_TEST, 24);
   7803     if (TEST_NZ(_flag_a, _flag_b)) goto L_360658CD; /* 0x360654D7: jne 0x360658cd */
   7804 L_360654DD:
   7805     SET_LO8(eax, MEM8(esi + 0x1C)); /* 0x360654DD: mov al, byte ptr [esi + 0x1c] */
   7806     /* test LO8(eax), LO8(eax) */ /* 0x360654E0: test al, al */
   7807     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7808     _cf = 0;
   7809     _flag_k = FK_NARROW(FK_TEST, 24);
   7810     if (TEST_Z(_flag_a, _flag_b)) goto L_360654EF; /* 0x360654E2: je 0x360654ef */
   7811 L_360654E4:
   7812     edi = POP32_VAL(esp); /* 0x360654E4: pop edi */
   7813     esi = POP32_VAL(esp); /* 0x360654E5: pop esi */
   7814     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   7815     SET_LO8(eax, 0); /* 0x360654E6: xor al, al */
   7816     _cf = 0;
   7817     _flag_k = FK_NARROW(FK_TEST, 24);
   7818     ebx = POP32_VAL(esp); /* 0x360654E8: pop ebx */
   7819     esp = ebp; /* 0x360654E9: mov esp, ebp */
   7820     ebp = POP32_VAL(esp); /* 0x360654EB: pop ebp */
   7821     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360654EC: ret 4 */
   7822 L_360654EF:
   7823     ecx = MEM32(esi); /* 0x360654EF: mov ecx, dword ptr [esi] */
   7824     edx = MEM32(ecx); /* 0x360654F1: mov edx, dword ptr [ecx] */
   7825     PUSH32(esp, 2); /* 0x360654F3: push 2 */
   7826     PUSH32(esp, 0xD2u); /* 0x360654F5: push 0xd2 */
   7827     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360654FA: call dword ptr [edx + 4] */
   7828     RECOMP_FLAGS_IN();
   7829     MEM32(ebp + (-0x4)) = eax; /* 0x360654FD: mov dword ptr [ebp - 4], eax */
   7830     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x36065500: fild dword ptr [ebp - 4] */
   7831     MEM32(esi + 0xC) = 2; /* 0x36065503: mov dword ptr [esi + 0xc], 2 */
   7832     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x3606550A: fmul dword ptr [0x36170894] */
   7833     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36065510: fstp dword ptr [ebp - 4] */
   7834     RECOMP_ICALL(0x3600C230u); /* 0x36065513: call 0x3600c230 */ /* not lifted */
   7835     RECOMP_FLAGS_IN();
   7836     ecx = eax; /* 0x36065518: mov ecx, eax */
   7837     RECOMP_ICALL(0x3600C7C0u); /* 0x3606551A: call 0x3600c7c0 */ /* not lifted */
   7838     RECOMP_FLAGS_IN();
   7839     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3606551F: fadd dword ptr [ebp - 4] */
   7840     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36065522: mov al, byte ptr [ebp + 0xb] */
   7841     /* test LO8(eax), LO8(eax) */ /* 0x36065525: test al, al */
   7842     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7843     _cf = 0;
   7844     _flag_k = FK_NARROW(FK_TEST, 24);
   7845     { double _v = fp_pop(); *(double*)ADDR(esi + 0x10) = _v; } /* 0x36065527: fstp qword ptr [esi + 0x10] */
   7846     if (TEST_Z(_flag_a, _flag_b)) goto L_36065536; /* 0x3606552A: je 0x36065536 */
   7847 L_3606552C:
   7848     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7849     edi = 0; /* 0x3606552C: xor edi, edi */
   7850     _cf = 0;
   7851     _flag_k = FK_TEST;
   7852     MEM32(esi + 0x10) = edi; /* 0x3606552E: mov dword ptr [esi + 0x10], edi */
   7853     MEM32(esi + 0x14) = edi; /* 0x36065531: mov dword ptr [esi + 0x14], edi */
   7854     goto L_36065538; /* 0x36065534: jmp 0x36065538 */
   7855 L_36065536:
   7856     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7857     edi = 0; /* 0x36065536: xor edi, edi */
   7858     _cf = 0;
   7859     _flag_k = FK_TEST;
   7860 L_36065538:
   7861     eax = esi + 0x24; /* 0x36065538: lea eax, [esi + 0x24] */
   7862     PUSH32(esp, eax); /* 0x3606553B: push eax */
   7863     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3606553C: call dword ptr [0x3616ff70] */
   7864     RECOMP_FLAGS_IN();
   7865     PUSH32(esp, edi); /* 0x36065542: push edi */
   7866     PUSH32(esp, 0x361B2CD8u); /* 0x36065543: push 0x361b2cd8 */
   7867     PUSH32(esp, 0x361B2CC0u); /* 0x36065548: push 0x361b2cc0 */
   7868     PUSH32(esp, edi); /* 0x3606554D: push edi */
   7869     PUSH32(esp, eax); /* 0x3606554E: push eax */
   7870     MEM32(ebp + (-0x18)) = eax; /* 0x3606554F: mov dword ptr [ebp - 0x18], eax */
   7871     MEM32(ebp + (-0x4)) = edi; /* 0x36065552: mov dword ptr [ebp - 4], edi */
   7872     RECOMP_ICALL(0x3615FD86u); /* 0x36065555: call 0x3615fd86 */ /* not lifted */
   7873     RECOMP_FLAGS_IN();
   7874     edi = eax; /* 0x3606555A: mov edi, eax */
   7875     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   7876     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7877     esp = esp + 0x18u; /* 0x3606555C: add esp, 0x18 */
   7878     _flag_k = FK_ADD;
   7879     /* test edi, edi */ /* 0x3606555F: test edi, edi */
   7880     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7881     _cf = 0;
   7882     _flag_k = FK_TEST;
   7883     MEM32(ebp + (-0x14)) = edi; /* 0x36065561: mov dword ptr [ebp - 0x14], edi */
   7884     if (TEST_Z(_flag_a, _flag_b)) goto L_360655FB; /* 0x36065564: je 0x360655fb */
   7885 L_3606556A:
   7886     SET_LO8(eax, MEM8(edi + 0x128)); /* 0x3606556A: mov al, byte ptr [edi + 0x128] */
   7887     /* test LO8(eax), LO8(eax) */ /* 0x36065570: test al, al */
   7888     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7889     _cf = 0;
   7890     _flag_k = FK_NARROW(FK_TEST, 24);
   7891     ecx = edi + 0xE4; /* 0x36065572: lea ecx, [edi + 0xe4] */
   7892     MEM32(ebp + (-0x4)) = ecx; /* 0x36065578: mov dword ptr [ebp - 4], ecx */
   7893     if (TEST_Z(_flag_a, _flag_b)) goto L_360655FB; /* 0x3606557B: je 0x360655fb */
   7894 L_3606557D:
   7895     /* cmp edi, MEM32(ebx) */ /* 0x3606557D: cmp edi, dword ptr [ebx] */
   7896     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebx));
   7897     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7898     _flag_k = FK_CMP;
   7899     if (CMP_EQ(_flag_a, _flag_b)) goto L_360655FB; /* 0x3606557F: je 0x360655fb */
   7900 L_36065581:
   7901     ecx = MEM32(esi); /* 0x36065581: mov ecx, dword ptr [esi] */
   7902     edx = MEM32(ecx); /* 0x36065583: mov edx, dword ptr [ecx] */
   7903     PUSH32(esp, 0x8000u); /* 0x36065585: push 0x8000 */
   7904     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3606558A: call dword ptr [edx + 0x1c] */
   7905     RECOMP_FLAGS_IN();
   7906     ecx = MEM32(esi); /* 0x3606558D: mov ecx, dword ptr [esi] */
   7907     /* test LO8(eax), LO8(eax) */ /* 0x3606558F: test al, al */
   7908     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7909     _cf = 0;
   7910     _flag_k = FK_NARROW(FK_TEST, 24);
   7911     eax = MEM32(ebx); /* 0x36065591: mov eax, dword ptr [ebx] */
   7912     if (TEST_Z(_flag_a, _flag_b)) goto L_360655BA; /* 0x36065593: je 0x360655ba */
   7913 L_36065595:
   7914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   7915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7916     eax = eax + 0xE4u; /* 0x36065595: add eax, 0xe4 */
   7917     _flag_k = FK_ADD;
   7918     MEM32(ebp + (-0x10)) = eax; /* 0x3606559A: mov dword ptr [ebp - 0x10], eax */
   7919     eax = MEM32(ecx); /* 0x3606559D: mov eax, dword ptr [ecx] */
   7920     RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x3606559F: call dword ptr [eax + 0x3c] */
   7921     RECOMP_FLAGS_IN();
   7922     ecx = MEM32(ebp + (-0x10)); /* 0x360655A2: mov ecx, dword ptr [ebp - 0x10] */
   7923     edx = MEM32(ecx); /* 0x360655A5: mov edx, dword ptr [ecx] */
   7924     PUSH32(esp, eax); /* 0x360655A7: push eax */
   7925     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x360655A8: call dword ptr [edx + 0x3c] */
   7926     RECOMP_FLAGS_IN();
   7927     PUSH32(esp, eax); /* 0x360655AB: push eax */
   7928     PUSH32(esp, 0x361C3198u); /* 0x360655AC: push 0x361c3198 */
   7929     eax = ebp + (-0x118); /* 0x360655B1: lea eax, [ebp - 0x118] */
   7930     PUSH32(esp, eax); /* 0x360655B7: push eax */
   7931     goto L_360655DD; /* 0x360655B8: jmp 0x360655dd */
   7932 L_360655BA:
   7933     edx = MEM32(ecx); /* 0x360655BA: mov edx, dword ptr [ecx] */
   7934     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u);
   7935     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7936     eax = eax + 0xE4u; /* 0x360655BC: add eax, 0xe4 */
   7937     _flag_k = FK_ADD;
   7938     MEM32(ebp + (-0x10)) = eax; /* 0x360655C1: mov dword ptr [ebp - 0x10], eax */
   7939     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x360655C4: call dword ptr [edx + 0x3c] */
   7940     RECOMP_FLAGS_IN();
   7941     ecx = MEM32(ebp + (-0x10)); /* 0x360655C7: mov ecx, dword ptr [ebp - 0x10] */
   7942     PUSH32(esp, eax); /* 0x360655CA: push eax */
   7943     eax = MEM32(ecx); /* 0x360655CB: mov eax, dword ptr [ecx] */
   7944     RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x360655CD: call dword ptr [eax + 0x3c] */
   7945     RECOMP_FLAGS_IN();
   7946     PUSH32(esp, eax); /* 0x360655D0: push eax */
   7947     PUSH32(esp, 0x361C3174u); /* 0x360655D1: push 0x361c3174 */
   7948     ecx = ebp + (-0x118); /* 0x360655D6: lea ecx, [ebp - 0x118] */
   7949     PUSH32(esp, ecx); /* 0x360655DC: push ecx */
   7950 L_360655DD:
   7951     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x360655DD: call dword ptr [0x3616f25c] */
   7952     RECOMP_FLAGS_IN();
   7953     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7954     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7955     esp = esp + 0x10u; /* 0x360655E3: add esp, 0x10 */
   7956     _flag_k = FK_ADD;
   7957     edx = ebp + (-0x118); /* 0x360655E6: lea edx, [ebp - 0x118] */
   7958     PUSH32(esp, 0); /* 0x360655EC: push 0 */
   7959     PUSH32(esp, edx); /* 0x360655EE: push edx */
   7960     RECOMP_ICALL(0x3601C590u); /* 0x360655EF: call 0x3601c590 */ /* not lifted */
   7961     RECOMP_FLAGS_IN();
   7962     ecx = eax; /* 0x360655F4: mov ecx, eax */
   7963     RECOMP_ICALL(0x3601C8C0u); /* 0x360655F6: call 0x3601c8c0 */ /* not lifted */
   7964     RECOMP_FLAGS_IN();
   7965 L_360655FB:
   7966     ecx = MEM32(esi); /* 0x360655FB: mov ecx, dword ptr [esi] */
   7967     eax = MEM32(ecx); /* 0x360655FD: mov eax, dword ptr [ecx] */
   7968     PUSH32(esp, 2); /* 0x360655FF: push 2 */
   7969     PUSH32(esp, 0x4Bu); /* 0x36065601: push 0x4b */
   7970     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36065603: call dword ptr [eax + 4] */
   7971     RECOMP_FLAGS_IN();
   7972     ecx = MEM32(esi); /* 0x36065606: mov ecx, dword ptr [esi] */
   7973     edx = MEM32(ecx); /* 0x36065608: mov edx, dword ptr [ecx] */
   7974     PUSH32(esp, 2); /* 0x3606560A: push 2 */
   7975     PUSH32(esp, 0x36u); /* 0x3606560C: push 0x36 */
   7976     MEM32(ebp + (-0x10)) = eax; /* 0x3606560E: mov dword ptr [ebp - 0x10], eax */
   7977     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36065611: call dword ptr [edx + 4] */
   7978     RECOMP_FLAGS_IN();
   7979     /* test edi, edi */ /* 0x36065614: test edi, edi */
   7980     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7981     _cf = 0;
   7982     _flag_k = FK_TEST;
   7983     if (TEST_Z(_flag_a, _flag_b)) goto L_36065640; /* 0x36065616: je 0x36065640 */
   7984 L_36065618:
   7985     ecx = MEM32(edi + 0x158); /* 0x36065618: mov ecx, dword ptr [edi + 0x158] */
   7986     PUSH32(esp, eax); /* 0x3606561E: push eax */
   7987     eax = MEM32(ebp + (-0x10)); /* 0x3606561F: mov eax, dword ptr [ebp - 0x10] */
   7988     PUSH32(esp, eax); /* 0x36065622: push eax */
   7989     RECOMP_ICALL(0x36066D40u); /* 0x36065623: call 0x36066d40 */ /* not lifted */
   7990     RECOMP_FLAGS_IN();
   7991     /* test LO8(eax), LO8(eax) */ /* 0x36065628: test al, al */
   7992     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7993     _cf = 0;
   7994     _flag_k = FK_NARROW(FK_TEST, 24);
   7995     if (TEST_Z(_flag_a, _flag_b)) goto L_36065640; /* 0x3606562A: je 0x36065640 */
   7996 L_3606562C:
   7997     PUSH32(esp, 0); /* 0x3606562C: push 0 */
   7998     ecx = ebx; /* 0x3606562E: mov ecx, ebx */
   7999     RECOMP_ICALL(0x36066690u); /* 0x36065630: call 0x36066690 */ /* not lifted */
   8000     RECOMP_FLAGS_IN();
   8001     edi = POP32_VAL(esp); /* 0x36065635: pop edi */
   8002     esi = POP32_VAL(esp); /* 0x36065636: pop esi */
   8003     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8004     SET_LO8(eax, 0); /* 0x36065637: xor al, al */
   8005     _cf = 0;
   8006     _flag_k = FK_NARROW(FK_TEST, 24);
   8007     ebx = POP32_VAL(esp); /* 0x36065639: pop ebx */
   8008     esp = ebp; /* 0x3606563A: mov esp, ebp */
   8009     ebp = POP32_VAL(esp); /* 0x3606563C: pop ebp */
   8010     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3606563D: ret 4 */
   8011 L_36065640:
   8012     SET_LO8(eax, MEM8(esi + 0x2C)); /* 0x36065640: mov al, byte ptr [esi + 0x2c] */
   8013     /* test LO8(eax), LO8(eax) */ /* 0x36065643: test al, al */
   8014     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8015     _cf = 0;
   8016     _flag_k = FK_NARROW(FK_TEST, 24);
   8017     if (TEST_Z(_flag_a, _flag_b)) goto L_360656A6; /* 0x36065645: je 0x360656a6 */
   8018 L_36065647:
   8019     eax = MEM32(ebp + (-0x18)); /* 0x36065647: mov eax, dword ptr [ebp - 0x18] */
   8020     /* test eax, eax */ /* 0x3606564A: test eax, eax */
   8021     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8022     _cf = 0;
   8023     _flag_k = FK_TEST;
   8024     if (TEST_Z(_flag_a, _flag_b)) goto L_360656A6; /* 0x3606564C: je 0x360656a6 */
   8025 L_3606564E:
   8026     RECOMP_ICALL(0x360F7B00u); /* 0x3606564E: call 0x360f7b00 */ /* not lifted */
   8027     RECOMP_FLAGS_IN();
   8028     ecx = MEM32(esi); /* 0x36065653: mov ecx, dword ptr [esi] */
   8029     edx = MEM32(ecx); /* 0x36065655: mov edx, dword ptr [ecx] */
   8030     PUSH32(esp, 2); /* 0x36065657: push 2 */
   8031     PUSH32(esp, 0x19Eu); /* 0x36065659: push 0x19e */
   8032     edi = eax; /* 0x3606565E: mov edi, eax */
   8033     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36065660: call dword ptr [edx + 4] */
   8034     RECOMP_FLAGS_IN();
   8035     /* test eax, eax */ /* 0x36065663: test eax, eax */
   8036     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8037     _cf = 0;
   8038     _flag_k = FK_TEST;
   8039     if (TEST_Z(_flag_a, _flag_b)) goto L_3606567C; /* 0x36065665: je 0x3606567c */
   8040 L_36065667:
   8041     ecx = MEM32(ebp + (-0x18)); /* 0x36065667: mov ecx, dword ptr [ebp - 0x18] */
   8042     PUSH32(esp, 0); /* 0x3606566A: push 0 */
   8043     PUSH32(esp, ecx); /* 0x3606566C: push ecx */
   8044     PUSH32(esp, eax); /* 0x3606566D: push eax */
   8045     ecx = edi; /* 0x3606566E: mov ecx, edi */
   8046     MEM32(edi + 0x54) = 4; /* 0x36065670: mov dword ptr [edi + 0x54], 4 */
   8047     RECOMP_ICALL(0x360F81E0u); /* 0x36065677: call 0x360f81e0 */ /* not lifted */
   8048     RECOMP_FLAGS_IN();
   8049 L_3606567C:
   8050     ecx = MEM32(esi); /* 0x3606567C: mov ecx, dword ptr [esi] */
   8051     edx = MEM32(ecx); /* 0x3606567E: mov edx, dword ptr [ecx] */
   8052     PUSH32(esp, 2); /* 0x36065680: push 2 */
   8053     PUSH32(esp, 0x169u); /* 0x36065682: push 0x169 */
   8054     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36065687: call dword ptr [edx + 4] */
   8055     RECOMP_FLAGS_IN();
   8056     /* test eax, eax */ /* 0x3606568A: test eax, eax */
   8057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8058     _cf = 0;
   8059     _flag_k = FK_TEST;
   8060     if (TEST_Z(_flag_a, _flag_b)) goto L_360656A3; /* 0x3606568C: je 0x360656a3 */
   8061 L_3606568E:
   8062     ecx = MEM32(ebp + (-0x18)); /* 0x3606568E: mov ecx, dword ptr [ebp - 0x18] */
   8063     PUSH32(esp, 0); /* 0x36065691: push 0 */
   8064     PUSH32(esp, ecx); /* 0x36065693: push ecx */
   8065     PUSH32(esp, eax); /* 0x36065694: push eax */
   8066     ecx = edi; /* 0x36065695: mov ecx, edi */
   8067     MEM32(edi + 0x54) = 4; /* 0x36065697: mov dword ptr [edi + 0x54], 4 */
   8068     RECOMP_ICALL(0x360F81E0u); /* 0x3606569E: call 0x360f81e0 */ /* not lifted */
   8069     RECOMP_FLAGS_IN();
   8070 L_360656A3:
   8071     edi = MEM32(ebp + (-0x14)); /* 0x360656A3: mov edi, dword ptr [ebp - 0x14] */
   8072 L_360656A6:
   8073     ecx = MEM32(esi); /* 0x360656A6: mov ecx, dword ptr [esi] */
   8074     edx = MEM32(ecx); /* 0x360656A8: mov edx, dword ptr [ecx] */
   8075     PUSH32(esp, 0x00080000u); /* 0x360656AA: push 0x80000 */
   8076     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360656AF: call dword ptr [edx + 0x1c] */
   8077     RECOMP_FLAGS_IN();
   8078     /* test LO8(eax), LO8(eax) */ /* 0x360656B2: test al, al */
   8079     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8080     _cf = 0;
   8081     _flag_k = FK_NARROW(FK_TEST, 24);
   8082     if (TEST_NZ(_flag_a, _flag_b)) goto L_360656C4; /* 0x360656B4: jne 0x360656c4 */
   8083 L_360656B6:
   8084     ecx = MEM32(ebx); /* 0x360656B6: mov ecx, dword ptr [ebx] */
   8085     RECOMP_ICALL(0x36071DD0u); /* 0x360656B8: call 0x36071dd0 */ /* not lifted */
   8086     RECOMP_FLAGS_IN();
   8087     ecx = eax; /* 0x360656BD: mov ecx, eax */
   8088     RECOMP_ICALL(0x3604D970u); /* 0x360656BF: call 0x3604d970 */ /* not lifted */
   8089     RECOMP_FLAGS_IN();
   8090 L_360656C4:
   8091     eax = MEM32(esi + 0x20); /* 0x360656C4: mov eax, dword ptr [esi + 0x20] */
   8092     /* cmp eax, 1 */ /* 0x360656C7: cmp eax, 1 */
   8093     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8095     _flag_k = FK_CMP;
   8096     if (CMP_NE(_flag_a, _flag_b)) goto L_36065810; /* 0x360656CA: jne 0x36065810 */
   8097 L_360656D0:
   8098     /* test edi, edi */ /* 0x360656D0: test edi, edi */
   8099     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8100     _cf = 0;
   8101     _flag_k = FK_TEST;
   8102     if (TEST_Z(_flag_a, _flag_b)) goto L_360656FB; /* 0x360656D2: je 0x360656fb */
   8103 L_360656D4:
   8104     ecx = MEM32(esi); /* 0x360656D4: mov ecx, dword ptr [esi] */
   8105     eax = MEM32(ecx); /* 0x360656D6: mov eax, dword ptr [ecx] */
   8106     PUSH32(esp, 0x00010000u); /* 0x360656D8: push 0x10000 */
   8107     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x360656DD: call dword ptr [eax + 0x1c] */
   8108     RECOMP_FLAGS_IN();
   8109     /* test LO8(eax), LO8(eax) */ /* 0x360656E0: test al, al */
   8110     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8111     _cf = 0;
   8112     _flag_k = FK_NARROW(FK_TEST, 24);
   8113     if (TEST_Z(_flag_a, _flag_b)) goto L_360656FB; /* 0x360656E2: je 0x360656fb */
   8114 L_360656E4:
   8115     eax = MEM32(esi); /* 0x360656E4: mov eax, dword ptr [esi] */
   8116     /* test eax, eax */ /* 0x360656E6: test eax, eax */
   8117     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8118     _cf = 0;
   8119     _flag_k = FK_TEST;
   8120     if (TEST_Z(_flag_a, _flag_b)) goto L_360656F4; /* 0x360656E8: je 0x360656f4 */
   8121 L_360656EA:
   8122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u);
   8123     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8124     eax = eax + 0x80u; /* 0x360656EA: add eax, 0x80 */
   8125     _flag_k = FK_ADD;
   8126     MEM32(ebp + (-0x14)) = eax; /* 0x360656EF: mov dword ptr [ebp - 0x14], eax */
   8127     goto L_360656FB; /* 0x360656F2: jmp 0x360656fb */
   8128 L_360656F4:
   8129     MEM32(ebp + (-0x14)) = 0; /* 0x360656F4: mov dword ptr [ebp - 0x14], 0 */
   8130 L_360656FB:
   8131     eax = MEM32(ebp + (-0x4)); /* 0x360656FB: mov eax, dword ptr [ebp - 4] */
   8132     /* test eax, eax */ /* 0x360656FE: test eax, eax */
   8133     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8134     _cf = 0;
   8135     _flag_k = FK_TEST;
   8136     if (TEST_Z(_flag_a, _flag_b)) goto L_36065713; /* 0x36065700: je 0x36065713 */
   8137 L_36065702:
   8138     ecx = MEM32(esi); /* 0x36065702: mov ecx, dword ptr [esi] */
   8139     edx = MEM32(ecx); /* 0x36065704: mov edx, dword ptr [ecx] */
   8140     PUSH32(esp, 0x8000u); /* 0x36065706: push 0x8000 */
   8141     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3606570B: call dword ptr [edx + 0x1c] */
   8142     RECOMP_FLAGS_IN();
   8143     goto L_360657A2; /* 0x3606570E: jmp 0x360657a2 */
   8144 L_36065713:
   8145     eax = MEM32(ebp + (-0x18)); /* 0x36065713: mov eax, dword ptr [ebp - 0x18] */
   8146     PUSH32(esp, 0); /* 0x36065716: push 0 */
   8147     PUSH32(esp, 0x361B2CF8u); /* 0x36065718: push 0x361b2cf8 */
   8148     PUSH32(esp, 0x361B2CC0u); /* 0x3606571D: push 0x361b2cc0 */
   8149     PUSH32(esp, 0); /* 0x36065722: push 0 */
   8150     PUSH32(esp, eax); /* 0x36065724: push eax */
   8151     RECOMP_ICALL(0x3615FD86u); /* 0x36065725: call 0x3615fd86 */ /* not lifted */
   8152     RECOMP_FLAGS_IN();
   8153     edi = eax; /* 0x3606572A: mov edi, eax */
   8154     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8155     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8156     esp = esp + 0x14u; /* 0x3606572C: add esp, 0x14 */
   8157     _flag_k = FK_ADD;
   8158     /* test edi, edi */ /* 0x3606572F: test edi, edi */
   8159     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   8160     _cf = 0;
   8161     _flag_k = FK_TEST;
   8162     if (TEST_Z(_flag_a, _flag_b)) goto L_360657A2; /* 0x36065731: je 0x360657a2 */
   8163 L_36065733:
   8164     ecx = MEM32(esi); /* 0x36065733: mov ecx, dword ptr [esi] */
   8165     PUSH32(esp, 4); /* 0x36065735: push 4 */
   8166     RECOMP_ICALL(0x36002180u); /* 0x36065737: call 0x36002180 */ /* not lifted */
   8167     RECOMP_FLAGS_IN();
   8168     /* test LO8(eax), LO8(eax) */ /* 0x3606573C: test al, al */
   8169     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8170     _cf = 0;
   8171     _flag_k = FK_NARROW(FK_TEST, 24);
   8172     if (TEST_Z(_flag_a, _flag_b)) goto L_3606576A; /* 0x3606573E: je 0x3606576a */
   8173 L_36065740:
   8174     ecx = MEM32(ebx); /* 0x36065740: mov ecx, dword ptr [ebx] */
   8175     ebx = MEM32(ecx + 0xE4); /* 0x36065742: mov ebx, dword ptr [ecx + 0xe4] */
   8176     ecx = MEM32(esi); /* 0x36065748: mov ecx, dword ptr [esi] */
   8177     PUSH32(esp, 0x362EA510u); /* 0x3606574A: push 0x362ea510 */
   8178     PUSH32(esp, 0); /* 0x3606574F: push 0 */
   8179     PUSH32(esp, edi); /* 0x36065751: push edi */
   8180     PUSH32(esp, 4); /* 0x36065752: push 4 */
   8181     RECOMP_ICALL(0x360020C0u); /* 0x36065754: call 0x360020c0 */ /* not lifted */
   8182     RECOMP_FLAGS_IN();
   8183     edx = ebx; /* 0x36065759: mov edx, ebx */
   8184     ebx = MEM32(ebp + (-0x8)); /* 0x3606575B: mov ebx, dword ptr [ebp - 8] */
   8185     ecx = MEM32(ebx); /* 0x3606575E: mov ecx, dword ptr [ebx] */
   8186     PUSH32(esp, eax); /* 0x36065760: push eax */
   8187     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   8188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8189     ecx = ecx + 0xE4u; /* 0x36065761: add ecx, 0xe4 */
   8190     _flag_k = FK_ADD;
   8191     RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x36065767: call dword ptr [edx + 0x34] */
   8192     RECOMP_FLAGS_IN();
   8193 L_3606576A:
   8194     ecx = MEM32(esi); /* 0x3606576A: mov ecx, dword ptr [esi] */
   8195     PUSH32(esp, 0); /* 0x3606576C: push 0 */
   8196     RECOMP_ICALL(0x36002180u); /* 0x3606576E: call 0x36002180 */ /* not lifted */
   8197     RECOMP_FLAGS_IN();
   8198     /* test LO8(eax), LO8(eax) */ /* 0x36065773: test al, al */
   8199     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8200     _cf = 0;
   8201     _flag_k = FK_NARROW(FK_TEST, 24);
   8202     if (TEST_Z(_flag_a, _flag_b)) goto L_360657A2; /* 0x36065775: je 0x360657a2 */
   8203 L_36065777:
   8204     eax = MEM32(ebx); /* 0x36065777: mov eax, dword ptr [ebx] */
   8205     edx = MEM32(eax + 0xE4); /* 0x36065779: mov edx, dword ptr [eax + 0xe4] */
   8206     ecx = MEM32(esi); /* 0x3606577F: mov ecx, dword ptr [esi] */
   8207     PUSH32(esp, 0x362EA510u); /* 0x36065781: push 0x362ea510 */
   8208     PUSH32(esp, 0); /* 0x36065786: push 0 */
   8209     PUSH32(esp, edi); /* 0x36065788: push edi */
   8210     PUSH32(esp, 0); /* 0x36065789: push 0 */
   8211     MEM32(ebp + (-0x8)) = edx; /* 0x3606578B: mov dword ptr [ebp - 8], edx */
   8212     RECOMP_ICALL(0x360020C0u); /* 0x3606578E: call 0x360020c0 */ /* not lifted */
   8213     RECOMP_FLAGS_IN();
   8214     ecx = MEM32(ebx); /* 0x36065793: mov ecx, dword ptr [ebx] */
   8215     edx = MEM32(ebp + (-0x8)); /* 0x36065795: mov edx, dword ptr [ebp - 8] */
   8216     PUSH32(esp, eax); /* 0x36065798: push eax */
   8217     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   8218     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8219     ecx = ecx + 0xE4u; /* 0x36065799: add ecx, 0xe4 */
   8220     _flag_k = FK_ADD;
   8221     RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3606579F: call dword ptr [edx + 0x34] */
   8222     RECOMP_FLAGS_IN();
   8223 L_360657A2:
   8224     eax = MEM32(ebx); /* 0x360657A2: mov eax, dword ptr [ebx] */
   8225     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360657A4: mov cl, byte ptr [eax + 0x128] */
   8226     /* test LO8(ecx), LO8(ecx) */ /* 0x360657AA: test cl, cl */
   8227     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8228     _cf = 0;
   8229     _flag_k = FK_NARROW(FK_TEST, 24);
   8230     if (TEST_Z(_flag_a, _flag_b)) goto L_360657E9; /* 0x360657AC: je 0x360657e9 */
   8231 L_360657AE:
   8232     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360657AE: mov al, byte ptr [ebp + 0xb] */
   8233     /* test LO8(eax), LO8(eax) */ /* 0x360657B1: test al, al */
   8234     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8235     _cf = 0;
   8236     _flag_k = FK_NARROW(FK_TEST, 24);
   8237     if (TEST_NZ(_flag_a, _flag_b)) goto L_360657E9; /* 0x360657B3: jne 0x360657e9 */
   8238 L_360657B5:
   8239     PUSH32(esp, 0); /* 0x360657B5: push 0 */
   8240     PUSH32(esp, 0x361C314Cu); /* 0x360657B7: push 0x361c314c */
   8241     RECOMP_ICALL(0x3601C590u); /* 0x360657BC: call 0x3601c590 */ /* not lifted */
   8242     RECOMP_FLAGS_IN();
   8243     ecx = eax; /* 0x360657C1: mov ecx, eax */
   8244     RECOMP_ICALL(0x3601C8C0u); /* 0x360657C3: call 0x3601c8c0 */ /* not lifted */
   8245     RECOMP_FLAGS_IN();
   8246     ecx = MEM32(esi + 0x4); /* 0x360657C8: mov ecx, dword ptr [esi + 4] */
   8247     PUSH32(esp, 0); /* 0x360657CB: push 0 */
   8248     edx = ebp + (-0xC); /* 0x360657CD: lea edx, [ebp - 0xc] */
   8249     PUSH32(esp, edx); /* 0x360657D0: push edx */
   8250     PUSH32(esp, 0x3Du); /* 0x360657D1: push 0x3d */
   8251     MEM32(ebp + (-0xC)) = 0xCF1Bu; /* 0x360657D3: mov dword ptr [ebp - 0xc], 0xcf1b */
   8252     MEM32(ebp + (-0x8)) = ecx; /* 0x360657DA: mov dword ptr [ebp - 8], ecx */
   8253     RECOMP_ICALL(0x3601C590u); /* 0x360657DD: call 0x3601c590 */ /* not lifted */
   8254     RECOMP_FLAGS_IN();
   8255     ecx = eax; /* 0x360657E2: mov ecx, eax */
   8256     RECOMP_ICALL(0x3601D080u); /* 0x360657E4: call 0x3601d080 */ /* not lifted */
   8257     RECOMP_FLAGS_IN();
   8258 L_360657E9:
   8259     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8260     eax = 0; /* 0x360657E9: xor eax, eax */
   8261     _cf = 0;
   8262     _flag_k = FK_TEST;
   8263     edx = ebp + (-0xC); /* 0x360657EB: lea edx, [ebp - 0xc] */
   8264     PUSH32(esp, edx); /* 0x360657EE: push edx */
   8265     MEM32(ebp + (-0xC)) = eax; /* 0x360657EF: mov dword ptr [ebp - 0xc], eax */
   8266     MEM32(ebp + (-0x8)) = eax; /* 0x360657F2: mov dword ptr [ebp - 8], eax */
   8267     eax = MEM32(ebx); /* 0x360657F5: mov eax, dword ptr [ebx] */
   8268     ecx = eax + 0x4; /* 0x360657F7: lea ecx, [eax + 4] */
   8269     PUSH32(esp, 2); /* 0x360657FA: push 2 */
   8270     PUSH32(esp, ecx); /* 0x360657FC: push ecx */
   8271     PUSH32(esp, 0x100u); /* 0x360657FD: push 0x100 */
   8272     PUSH32(esp, ecx); /* 0x36065802: push ecx */
   8273     ecx = eax + 0xEC; /* 0x36065803: lea ecx, [eax + 0xec] */
   8274     RECOMP_ICALL(0x3602EE20u); /* 0x36065809: call 0x3602ee20 */ /* not lifted */
   8275     RECOMP_FLAGS_IN();
   8276     goto L_36065842; /* 0x3606580E: jmp 0x36065842 */
   8277 L_36065810:
   8278     /* cmp eax, 4 */ /* 0x36065810: cmp eax, 4 */
   8279     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   8280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8281     _flag_k = FK_CMP;
   8282     if (CMP_NE(_flag_a, _flag_b)) goto L_36065842; /* 0x36065813: jne 0x36065842 */
   8283 L_36065815:
   8284     eax = MEM32(ebx); /* 0x36065815: mov eax, dword ptr [ebx] */
   8285     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36065817: mov cl, byte ptr [eax + 0x128] */
   8286     /* test LO8(ecx), LO8(ecx) */ /* 0x3606581D: test cl, cl */
   8287     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8288     _cf = 0;
   8289     _flag_k = FK_NARROW(FK_TEST, 24);
   8290     if (TEST_Z(_flag_a, _flag_b)) goto L_3606583B; /* 0x3606581F: je 0x3606583b */
   8291 L_36065821:
   8292     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36065821: mov al, byte ptr [ebp + 0xb] */
   8293     /* test LO8(eax), LO8(eax) */ /* 0x36065824: test al, al */
   8294     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8295     _cf = 0;
   8296     _flag_k = FK_NARROW(FK_TEST, 24);
   8297     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606583B; /* 0x36065826: jne 0x3606583b */
   8298 L_36065828:
   8299     PUSH32(esp, 0); /* 0x36065828: push 0 */
   8300     PUSH32(esp, 0x361C311Cu); /* 0x3606582A: push 0x361c311c */
   8301     RECOMP_ICALL(0x3601C590u); /* 0x3606582F: call 0x3601c590 */ /* not lifted */
   8302     RECOMP_FLAGS_IN();
   8303     ecx = eax; /* 0x36065834: mov ecx, eax */
   8304     RECOMP_ICALL(0x3601C8C0u); /* 0x36065836: call 0x3601c8c0 */ /* not lifted */
   8305     RECOMP_FLAGS_IN();
   8306 L_3606583B:
   8307     ecx = ebx; /* 0x3606583B: mov ecx, ebx */
   8308     RECOMP_ICALL(0x36066940u); /* 0x3606583D: call 0x36066940 */ /* not lifted */
   8309     RECOMP_FLAGS_IN();
   8310 L_36065842:
   8311     ecx = MEM32(esi); /* 0x36065842: mov ecx, dword ptr [esi] */
   8312     edx = MEM32(ecx); /* 0x36065844: mov edx, dword ptr [ecx] */
   8313     PUSH32(esp, 2); /* 0x36065846: push 2 */
   8314     PUSH32(esp, 0xD2u); /* 0x36065848: push 0xd2 */
   8315     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3606584D: call dword ptr [edx + 4] */
   8316     RECOMP_FLAGS_IN();
   8317     MEM32(ebp + 0x8) = eax; /* 0x36065850: mov dword ptr [ebp + 8], eax */
   8318     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36065853: fild dword ptr [ebp + 8] */
   8319     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36065856: fstp dword ptr [ebp + 8] */
   8320     RECOMP_ICALL(0x3600C230u); /* 0x36065859: call 0x3600c230 */ /* not lifted */
   8321     RECOMP_FLAGS_IN();
   8322     ecx = eax; /* 0x3606585E: mov ecx, eax */
   8323     RECOMP_ICALL(0x3600C7C0u); /* 0x36065860: call 0x3600c7c0 */ /* not lifted */
   8324     RECOMP_FLAGS_IN();
   8325     RECOMP_ICALL(0x3615FD8Cu); /* 0x36065865: call 0x3615fd8c */ /* not lifted */
   8326     RECOMP_FLAGS_IN();
   8327     MEM32(ebp + (-0x8)) = eax; /* 0x3606586A: mov dword ptr [ebp - 8], eax */
   8328     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3606586D: fild dword ptr [ebp - 8] */
   8329     eax = MEM32(esi); /* 0x36065870: mov eax, dword ptr [esi] */
   8330     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x36065872: fadd dword ptr [ebp + 8] */
   8331     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x88) = _v; } /* 0x36065875: fstp dword ptr [eax + 0x88] */
   8332     RECOMP_ICALL(0x3600C230u); /* 0x3606587B: call 0x3600c230 */ /* not lifted */
   8333     RECOMP_FLAGS_IN();
   8334     ecx = eax; /* 0x36065880: mov ecx, eax */
   8335     RECOMP_ICALL(0x3600C7C0u); /* 0x36065882: call 0x3600c7c0 */ /* not lifted */
   8336     RECOMP_FLAGS_IN();
   8337     _st[0] *= *(double*)ADDR(0x36171188); /* 0x36065887: fmul qword ptr [0x36171188] */
   8338     ecx = MEM32(esi); /* 0x3606588D: mov ecx, dword ptr [esi] */
   8339     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x90) = _v; } /* 0x3606588F: fstp dword ptr [ecx + 0x90] */
   8340     edx = MEM32(ebx); /* 0x36065895: mov edx, dword ptr [ebx] */
   8341     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x36065897: mov al, byte ptr [edx + 0x128] */
   8342     /* test LO8(eax), LO8(eax) */ /* 0x3606589D: test al, al */
   8343     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8344     _cf = 0;
   8345     _flag_k = FK_NARROW(FK_TEST, 24);
   8346     if (TEST_Z(_flag_a, _flag_b)) goto L_360658CD; /* 0x3606589F: je 0x360658cd */
   8347 L_360658A1:
   8348     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360658A1: fld dword ptr [ebp + 8] */
   8349     eax = MEM32(esi + 0x4); /* 0x360658A4: mov eax, dword ptr [esi + 4] */
   8350     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x360658A7: fmul dword ptr [0x36170894] */
   8351     PUSH32(esp, 0); /* 0x360658AD: push 0 */
   8352     PUSH32(esp, ecx); /* 0x360658AF: push ecx */
   8353     ecx = ebp + (-0xC); /* 0x360658B0: lea ecx, [ebp - 0xc] */
   8354     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x360658B3: fstp dword ptr [esp] */
   8355     PUSH32(esp, ecx); /* 0x360658B6: push ecx */
   8356     MEM32(ebp + (-0xC)) = 3; /* 0x360658B7: mov dword ptr [ebp - 0xc], 3 */
   8357     MEM32(ebp + (-0x8)) = eax; /* 0x360658BE: mov dword ptr [ebp - 8], eax */
   8358     RECOMP_ICALL(0x3601C590u); /* 0x360658C1: call 0x3601c590 */ /* not lifted */
   8359     RECOMP_FLAGS_IN();
   8360     ecx = eax; /* 0x360658C6: mov ecx, eax */
   8361     RECOMP_ICALL(0x3601CFF0u); /* 0x360658C8: call 0x3601cff0 */ /* not lifted */
   8362     RECOMP_FLAGS_IN();
   8363 L_360658CD:
   8364     edi = POP32_VAL(esp); /* 0x360658CD: pop edi */
   8365     esi = POP32_VAL(esp); /* 0x360658CE: pop esi */
   8366     SET_LO8(eax, 1); /* 0x360658CF: mov al, 1 */
   8367     ebx = POP32_VAL(esp); /* 0x360658D1: pop ebx */
   8368     esp = ebp; /* 0x360658D2: mov esp, ebp */
   8369     ebp = POP32_VAL(esp); /* 0x360658D4: pop ebp */
   8370     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360658D5: ret 4 */
   8371     RECOMP_REGS_OUT();
   8372 }
   8373 
   8374 void sub_360657A2(void) {
   8375     int _fpu_cmp = 0;
   8376     uint32_t _cf = 0;
   8377     int _df = 1;
   8378     uint32_t _flag_k = FK_NONE;
   8379     uint32_t _flag_a = 0, _flag_b = 0;
   8380     uint32_t _itail_tgt = 0;
   8381     RECOMP_REGS_LOCALS
   8382     RECOMP_ENTER(0x360657A2u);
   8383 
   8384 L_360657A2:
   8385     eax = MEM32(ebx); /* 0x360657A2: mov eax, dword ptr [ebx] */
   8386     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360657A4: mov cl, byte ptr [eax + 0x128] */
   8387     /* test LO8(ecx), LO8(ecx) */ /* 0x360657AA: test cl, cl */
   8388     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   8389     _cf = 0;
   8390     _flag_k = FK_NARROW(FK_TEST, 24);
   8391     if (TEST_Z(_flag_a, _flag_b)) goto L_360657E9; /* 0x360657AC: je 0x360657e9 */
   8392 L_360657AE:
   8393     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360657AE: mov al, byte ptr [ebp + 0xb] */
   8394     /* test LO8(eax), LO8(eax) */ /* 0x360657B1: test al, al */
   8395     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8396     _cf = 0;
   8397     _flag_k = FK_NARROW(FK_TEST, 24);
   8398     if (TEST_NZ(_flag_a, _flag_b)) goto L_360657E9; /* 0x360657B3: jne 0x360657e9 */
   8399 L_360657B5:
   8400     PUSH32(esp, 0); /* 0x360657B5: push 0 */
   8401     PUSH32(esp, 0x361C314Cu); /* 0x360657B7: push 0x361c314c */
   8402     RECOMP_ICALL(0x3601C590u); /* 0x360657BC: call 0x3601c590 */ /* not lifted */
   8403     RECOMP_FLAGS_IN();
   8404     ecx = eax; /* 0x360657C1: mov ecx, eax */
   8405     RECOMP_ICALL(0x3601C8C0u); /* 0x360657C3: call 0x3601c8c0 */ /* not lifted */
   8406     RECOMP_FLAGS_IN();
   8407     ecx = MEM32(esi + 0x4); /* 0x360657C8: mov ecx, dword ptr [esi + 4] */
   8408     PUSH32(esp, 0); /* 0x360657CB: push 0 */
   8409     edx = ebp + (-0xC); /* 0x360657CD: lea edx, [ebp - 0xc] */
   8410     PUSH32(esp, edx); /* 0x360657D0: push edx */
   8411     PUSH32(esp, 0x3Du); /* 0x360657D1: push 0x3d */
   8412     MEM32(ebp + (-0xC)) = 0xCF1Bu; /* 0x360657D3: mov dword ptr [ebp - 0xc], 0xcf1b */
   8413     MEM32(ebp + (-0x8)) = ecx; /* 0x360657DA: mov dword ptr [ebp - 8], ecx */
   8414     RECOMP_ICALL(0x3601C590u); /* 0x360657DD: call 0x3601c590 */ /* not lifted */
   8415     RECOMP_FLAGS_IN();
   8416     ecx = eax; /* 0x360657E2: mov ecx, eax */
   8417     RECOMP_ICALL(0x3601D080u); /* 0x360657E4: call 0x3601d080 */ /* not lifted */
   8418     RECOMP_FLAGS_IN();
   8419 L_360657E9:
   8420     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8421     eax = 0; /* 0x360657E9: xor eax, eax */
   8422     _cf = 0;
   8423     _flag_k = FK_TEST;
   8424     edx = ebp + (-0xC); /* 0x360657EB: lea edx, [ebp - 0xc] */
   8425     PUSH32(esp, edx); /* 0x360657EE: push edx */
   8426     MEM32(ebp + (-0xC)) = eax; /* 0x360657EF: mov dword ptr [ebp - 0xc], eax */
   8427     MEM32(ebp + (-0x8)) = eax; /* 0x360657F2: mov dword ptr [ebp - 8], eax */
   8428     eax = MEM32(ebx); /* 0x360657F5: mov eax, dword ptr [ebx] */
   8429     ecx = eax + 0x4; /* 0x360657F7: lea ecx, [eax + 4] */
   8430     PUSH32(esp, 2); /* 0x360657FA: push 2 */
   8431     PUSH32(esp, ecx); /* 0x360657FC: push ecx */
   8432     PUSH32(esp, 0x100u); /* 0x360657FD: push 0x100 */
   8433     PUSH32(esp, ecx); /* 0x36065802: push ecx */
   8434     ecx = eax + 0xEC; /* 0x36065803: lea ecx, [eax + 0xec] */
   8435     RECOMP_ICALL(0x3602EE20u); /* 0x36065809: call 0x3602ee20 */ /* not lifted */
   8436     RECOMP_FLAGS_IN();
   8437     goto L_36065842; /* 0x3606580E: jmp 0x36065842 */
   8438 L_36065842:
   8439     ecx = MEM32(esi); /* 0x36065842: mov ecx, dword ptr [esi] */
   8440     edx = MEM32(ecx); /* 0x36065844: mov edx, dword ptr [ecx] */
   8441     PUSH32(esp, 2); /* 0x36065846: push 2 */
   8442     PUSH32(esp, 0xD2u); /* 0x36065848: push 0xd2 */
   8443     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3606584D: call dword ptr [edx + 4] */
   8444     RECOMP_FLAGS_IN();
   8445     MEM32(ebp + 0x8) = eax; /* 0x36065850: mov dword ptr [ebp + 8], eax */
   8446     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36065853: fild dword ptr [ebp + 8] */
   8447     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36065856: fstp dword ptr [ebp + 8] */
   8448     RECOMP_ICALL(0x3600C230u); /* 0x36065859: call 0x3600c230 */ /* not lifted */
   8449     RECOMP_FLAGS_IN();
   8450     ecx = eax; /* 0x3606585E: mov ecx, eax */
   8451     RECOMP_ICALL(0x3600C7C0u); /* 0x36065860: call 0x3600c7c0 */ /* not lifted */
   8452     RECOMP_FLAGS_IN();
   8453     RECOMP_ICALL(0x3615FD8Cu); /* 0x36065865: call 0x3615fd8c */ /* not lifted */
   8454     RECOMP_FLAGS_IN();
   8455     MEM32(ebp + (-0x8)) = eax; /* 0x3606586A: mov dword ptr [ebp - 8], eax */
   8456     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3606586D: fild dword ptr [ebp - 8] */
   8457     eax = MEM32(esi); /* 0x36065870: mov eax, dword ptr [esi] */
   8458     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x36065872: fadd dword ptr [ebp + 8] */
   8459     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x88) = _v; } /* 0x36065875: fstp dword ptr [eax + 0x88] */
   8460     RECOMP_ICALL(0x3600C230u); /* 0x3606587B: call 0x3600c230 */ /* not lifted */
   8461     RECOMP_FLAGS_IN();
   8462     ecx = eax; /* 0x36065880: mov ecx, eax */
   8463     RECOMP_ICALL(0x3600C7C0u); /* 0x36065882: call 0x3600c7c0 */ /* not lifted */
   8464     RECOMP_FLAGS_IN();
   8465     _st[0] *= *(double*)ADDR(0x36171188); /* 0x36065887: fmul qword ptr [0x36171188] */
   8466     ecx = MEM32(esi); /* 0x3606588D: mov ecx, dword ptr [esi] */
   8467     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x90) = _v; } /* 0x3606588F: fstp dword ptr [ecx + 0x90] */
   8468     edx = MEM32(ebx); /* 0x36065895: mov edx, dword ptr [ebx] */
   8469     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x36065897: mov al, byte ptr [edx + 0x128] */
   8470     /* test LO8(eax), LO8(eax) */ /* 0x3606589D: test al, al */
   8471     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8472     _cf = 0;
   8473     _flag_k = FK_NARROW(FK_TEST, 24);
   8474     if (TEST_Z(_flag_a, _flag_b)) goto L_360658CD; /* 0x3606589F: je 0x360658cd */
   8475 L_360658A1:
   8476     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360658A1: fld dword ptr [ebp + 8] */
   8477     eax = MEM32(esi + 0x4); /* 0x360658A4: mov eax, dword ptr [esi + 4] */
   8478     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x360658A7: fmul dword ptr [0x36170894] */
   8479     PUSH32(esp, 0); /* 0x360658AD: push 0 */
   8480     PUSH32(esp, ecx); /* 0x360658AF: push ecx */
   8481     ecx = ebp + (-0xC); /* 0x360658B0: lea ecx, [ebp - 0xc] */
   8482     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x360658B3: fstp dword ptr [esp] */
   8483     PUSH32(esp, ecx); /* 0x360658B6: push ecx */
   8484     MEM32(ebp + (-0xC)) = 3; /* 0x360658B7: mov dword ptr [ebp - 0xc], 3 */
   8485     MEM32(ebp + (-0x8)) = eax; /* 0x360658BE: mov dword ptr [ebp - 8], eax */
   8486     RECOMP_ICALL(0x3601C590u); /* 0x360658C1: call 0x3601c590 */ /* not lifted */
   8487     RECOMP_FLAGS_IN();
   8488     ecx = eax; /* 0x360658C6: mov ecx, eax */
   8489     RECOMP_ICALL(0x3601CFF0u); /* 0x360658C8: call 0x3601cff0 */ /* not lifted */
   8490     RECOMP_FLAGS_IN();
   8491 L_360658CD:
   8492     edi = POP32_VAL(esp); /* 0x360658CD: pop edi */
   8493     esi = POP32_VAL(esp); /* 0x360658CE: pop esi */
   8494     SET_LO8(eax, 1); /* 0x360658CF: mov al, 1 */
   8495     ebx = POP32_VAL(esp); /* 0x360658D1: pop ebx */
   8496     esp = ebp; /* 0x360658D2: mov esp, ebp */
   8497     ebp = POP32_VAL(esp); /* 0x360658D4: pop ebp */
   8498     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360658D5: ret 4 */
   8499     RECOMP_REGS_OUT();
   8500 }
   8501 
   8502 void sub_36065842(void) {
   8503     int _fpu_cmp = 0;
   8504     uint32_t _cf = 0;
   8505     int _df = 1;
   8506     uint32_t _flag_k = FK_NONE;
   8507     uint32_t _flag_a = 0, _flag_b = 0;
   8508     uint32_t _itail_tgt = 0;
   8509     RECOMP_REGS_LOCALS
   8510     RECOMP_ENTER(0x36065842u);
   8511 
   8512 L_36065842:
   8513     ecx = MEM32(esi); /* 0x36065842: mov ecx, dword ptr [esi] */
   8514     edx = MEM32(ecx); /* 0x36065844: mov edx, dword ptr [ecx] */
   8515     PUSH32(esp, 2); /* 0x36065846: push 2 */
   8516     PUSH32(esp, 0xD2u); /* 0x36065848: push 0xd2 */
   8517     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3606584D: call dword ptr [edx + 4] */
   8518     RECOMP_FLAGS_IN();
   8519     MEM32(ebp + 0x8) = eax; /* 0x36065850: mov dword ptr [ebp + 8], eax */
   8520     fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36065853: fild dword ptr [ebp + 8] */
   8521     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x36065856: fstp dword ptr [ebp + 8] */
   8522     RECOMP_ICALL(0x3600C230u); /* 0x36065859: call 0x3600c230 */ /* not lifted */
   8523     RECOMP_FLAGS_IN();
   8524     ecx = eax; /* 0x3606585E: mov ecx, eax */
   8525     RECOMP_ICALL(0x3600C7C0u); /* 0x36065860: call 0x3600c7c0 */ /* not lifted */
   8526     RECOMP_FLAGS_IN();
   8527     RECOMP_ICALL(0x3615FD8Cu); /* 0x36065865: call 0x3615fd8c */ /* not lifted */
   8528     RECOMP_FLAGS_IN();
   8529     MEM32(ebp + (-0x8)) = eax; /* 0x3606586A: mov dword ptr [ebp - 8], eax */
   8530     fp_push((double)(int32_t)MEM32(ebp + (-0x8))); /* 0x3606586D: fild dword ptr [ebp - 8] */
   8531     eax = MEM32(esi); /* 0x36065870: mov eax, dword ptr [esi] */
   8532     _st[0] += (double)*(float*)ADDR(ebp + 0x8); /* 0x36065872: fadd dword ptr [ebp + 8] */
   8533     { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x88) = _v; } /* 0x36065875: fstp dword ptr [eax + 0x88] */
   8534     RECOMP_ICALL(0x3600C230u); /* 0x3606587B: call 0x3600c230 */ /* not lifted */
   8535     RECOMP_FLAGS_IN();
   8536     ecx = eax; /* 0x36065880: mov ecx, eax */
   8537     RECOMP_ICALL(0x3600C7C0u); /* 0x36065882: call 0x3600c7c0 */ /* not lifted */
   8538     RECOMP_FLAGS_IN();
   8539     _st[0] *= *(double*)ADDR(0x36171188); /* 0x36065887: fmul qword ptr [0x36171188] */
   8540     ecx = MEM32(esi); /* 0x3606588D: mov ecx, dword ptr [esi] */
   8541     { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x90) = _v; } /* 0x3606588F: fstp dword ptr [ecx + 0x90] */
   8542     edx = MEM32(ebx); /* 0x36065895: mov edx, dword ptr [ebx] */
   8543     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x36065897: mov al, byte ptr [edx + 0x128] */
   8544     /* test LO8(eax), LO8(eax) */ /* 0x3606589D: test al, al */
   8545     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8546     _cf = 0;
   8547     _flag_k = FK_NARROW(FK_TEST, 24);
   8548     if (TEST_Z(_flag_a, _flag_b)) goto L_360658CD; /* 0x3606589F: je 0x360658cd */
   8549 L_360658A1:
   8550     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x360658A1: fld dword ptr [ebp + 8] */
   8551     eax = MEM32(esi + 0x4); /* 0x360658A4: mov eax, dword ptr [esi + 4] */
   8552     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x360658A7: fmul dword ptr [0x36170894] */
   8553     PUSH32(esp, 0); /* 0x360658AD: push 0 */
   8554     PUSH32(esp, ecx); /* 0x360658AF: push ecx */
   8555     ecx = ebp + (-0xC); /* 0x360658B0: lea ecx, [ebp - 0xc] */
   8556     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x360658B3: fstp dword ptr [esp] */
   8557     PUSH32(esp, ecx); /* 0x360658B6: push ecx */
   8558     MEM32(ebp + (-0xC)) = 3; /* 0x360658B7: mov dword ptr [ebp - 0xc], 3 */
   8559     MEM32(ebp + (-0x8)) = eax; /* 0x360658BE: mov dword ptr [ebp - 8], eax */
   8560     RECOMP_ICALL(0x3601C590u); /* 0x360658C1: call 0x3601c590 */ /* not lifted */
   8561     RECOMP_FLAGS_IN();
   8562     ecx = eax; /* 0x360658C6: mov ecx, eax */
   8563     RECOMP_ICALL(0x3601CFF0u); /* 0x360658C8: call 0x3601cff0 */ /* not lifted */
   8564     RECOMP_FLAGS_IN();
   8565 L_360658CD:
   8566     edi = POP32_VAL(esp); /* 0x360658CD: pop edi */
   8567     esi = POP32_VAL(esp); /* 0x360658CE: pop esi */
   8568     SET_LO8(eax, 1); /* 0x360658CF: mov al, 1 */
   8569     ebx = POP32_VAL(esp); /* 0x360658D1: pop ebx */
   8570     esp = ebp; /* 0x360658D2: mov esp, ebp */
   8571     ebp = POP32_VAL(esp); /* 0x360658D4: pop ebp */
   8572     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360658D5: ret 4 */
   8573     RECOMP_REGS_OUT();
   8574 }
   8575 
   8576 void sub_360658E0(void) {
   8577     int _fpu_cmp = 0;
   8578     uint32_t _cf = 0;
   8579     int _df = 1;
   8580     uint32_t _flag_k = FK_NONE;
   8581     uint32_t _flag_a = 0, _flag_b = 0;
   8582     uint32_t _itail_tgt = 0;
   8583     RECOMP_REGS_LOCALS
   8584     RECOMP_ENTER(0x360658E0u);
   8585 
   8586 L_360658E0:
   8587     PUSH32(esp, ebp); /* 0x360658E0: push ebp */
   8588     ebp = esp; /* 0x360658E1: mov ebp, esp */
   8589     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8591     esp = esp - 8; /* 0x360658E3: sub esp, 8 */
   8592     _flag_k = FK_CMP;
   8593     PUSH32(esp, esi); /* 0x360658E6: push esi */
   8594     esi = ecx; /* 0x360658E7: mov esi, ecx */
   8595     RECOMP_ICALL(0x3600C230u); /* 0x360658E9: call 0x3600c230 */ /* not lifted */
   8596     RECOMP_FLAGS_IN();
   8597     ecx = eax; /* 0x360658EE: mov ecx, eax */
   8598     RECOMP_ICALL(0x3600C7C0u); /* 0x360658F0: call 0x3600c7c0 */ /* not lifted */
   8599     RECOMP_FLAGS_IN();
   8600     ecx = MEM32(ebp + 0x8); /* 0x360658F5: mov ecx, dword ptr [ebp + 8] */
   8601     _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(ecx + 0x10)); /* 0x360658F8: fcomp qword ptr [ecx + 0x10] */
   8602     fp_pop();
   8603     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360658FB: fnstsw ax */
   8604     /* test HI8(eax), 0x41u */ /* 0x360658FD: test ah, 0x41 */
   8605     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   8606     _cf = 0;
   8607     _flag_k = FK_NARROW(FK_TEST, 24);
   8608     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065934; /* 0x36065900: jne 0x36065934 */
   8609 L_36065902:
   8610     eax = MEM32(esi); /* 0x36065902: mov eax, dword ptr [esi] */
   8611     SET_LO8(edx, MEM8(eax + 0x128)); /* 0x36065904: mov dl, byte ptr [eax + 0x128] */
   8612     /* test LO8(edx), LO8(edx) */ /* 0x3606590A: test dl, dl */
   8613     _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24;
   8614     _cf = 0;
   8615     _flag_k = FK_NARROW(FK_TEST, 24);
   8616     if (TEST_Z(_flag_a, _flag_b)) goto L_3606592B; /* 0x3606590C: je 0x3606592b */
   8617 L_3606590E:
   8618     ecx = MEM32(ecx + 0x4); /* 0x3606590E: mov ecx, dword ptr [ecx + 4] */
   8619     edx = ebp + (-0x8); /* 0x36065911: lea edx, [ebp - 8] */
   8620     PUSH32(esp, edx); /* 0x36065914: push edx */
   8621     MEM32(ebp + (-0x8)) = 0xCF1Bu; /* 0x36065915: mov dword ptr [ebp - 8], 0xcf1b */
   8622     MEM32(ebp + (-0x4)) = ecx; /* 0x3606591C: mov dword ptr [ebp - 4], ecx */
   8623     RECOMP_ICALL(0x3601C590u); /* 0x3606591F: call 0x3601c590 */ /* not lifted */
   8624     RECOMP_FLAGS_IN();
   8625     ecx = eax; /* 0x36065924: mov ecx, eax */
   8626     RECOMP_ICALL(0x3601CFD0u); /* 0x36065926: call 0x3601cfd0 */ /* not lifted */
   8627     RECOMP_FLAGS_IN();
   8628 L_3606592B:
   8629     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8630     SET_LO8(eax, 0); /* 0x3606592B: xor al, al */
   8631     _cf = 0;
   8632     _flag_k = FK_NARROW(FK_TEST, 24);
   8633     esi = POP32_VAL(esp); /* 0x3606592D: pop esi */
   8634     esp = ebp; /* 0x3606592E: mov esp, ebp */
   8635     ebp = POP32_VAL(esp); /* 0x36065930: pop ebp */
   8636     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36065931: ret 4 */
   8637 L_36065934:
   8638     SET_LO8(eax, 1); /* 0x36065934: mov al, 1 */
   8639     esi = POP32_VAL(esp); /* 0x36065936: pop esi */
   8640     esp = ebp; /* 0x36065937: mov esp, ebp */
   8641     ebp = POP32_VAL(esp); /* 0x36065939: pop ebp */
   8642     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3606593A: ret 4 */
   8643     RECOMP_REGS_OUT();
   8644 }
   8645 
   8646 void sub_36065940(void) {
   8647     int _fpu_cmp = 0;
   8648     uint32_t _cf = 0;
   8649     int _df = 1;
   8650     uint32_t _flag_k = FK_NONE;
   8651     uint32_t _flag_a = 0, _flag_b = 0;
   8652     uint32_t _itail_tgt = 0;
   8653     RECOMP_REGS_LOCALS
   8654     RECOMP_ENTER(0x36065940u);
   8655 
   8656 L_36065940:
   8657     PUSH32(esp, ebp); /* 0x36065940: push ebp */
   8658     ebp = esp; /* 0x36065941: mov ebp, esp */
   8659     eax = MEM32(0x3616FF74); /* 0x36065943: mov eax, dword ptr [0x3616ff74] */
   8660     eax = MEM32(eax); /* 0x36065948: mov eax, dword ptr [eax] */
   8661     PUSH32(esp, esi); /* 0x3606594A: push esi */
   8662     PUSH32(esp, edi); /* 0x3606594B: push edi */
   8663     PUSH32(esp, 0); /* 0x3606594C: push 0 */
   8664     PUSH32(esp, 0x361B2D38u); /* 0x3606594E: push 0x361b2d38 */
   8665     PUSH32(esp, 0x361B2D18u); /* 0x36065953: push 0x361b2d18 */
   8666     PUSH32(esp, 0); /* 0x36065958: push 0 */
   8667     PUSH32(esp, eax); /* 0x3606595A: push eax */
   8668     esi = ecx; /* 0x3606595B: mov esi, ecx */
   8669     RECOMP_ICALL(0x3615FD86u); /* 0x3606595D: call 0x3615fd86 */ /* not lifted */
   8670     RECOMP_FLAGS_IN();
   8671     ecx = MEM32(esi); /* 0x36065962: mov ecx, dword ptr [esi] */
   8672     edi = MEM32(eax + 0x84); /* 0x36065964: mov edi, dword ptr [eax + 0x84] */
   8673     SET_LO8(eax, MEM8(ecx + 0x1B4)); /* 0x3606596A: mov al, byte ptr [ecx + 0x1b4] */
   8674     esi = MEM32(ebp + 0x8); /* 0x36065970: mov esi, dword ptr [ebp + 8] */
   8675     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   8676     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8677     esp = esp + 0x14u; /* 0x36065973: add esp, 0x14 */
   8678     _flag_k = FK_ADD;
   8679     /* test LO8(eax), LO8(eax) */ /* 0x36065976: test al, al */
   8680     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8681     _cf = 0;
   8682     _flag_k = FK_NARROW(FK_TEST, 24);
   8683     if (TEST_Z(_flag_a, _flag_b)) goto L_3606599F; /* 0x36065978: je 0x3606599f */
   8684 L_3606597A:
   8685     /* cmp MEM32(esi + 0x20), 3 */ /* 0x3606597A: cmp dword ptr [esi + 0x20], 3 */
   8686     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(3);
   8687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8688     _flag_k = FK_CMP;
   8689     if (CMP_NE(_flag_a, _flag_b)) goto L_3606599F; /* 0x3606597E: jne 0x3606599f */
   8690 L_36065980:
   8691     /* cmp MEM32(esi + 0x28), edi */ /* 0x36065980: cmp dword ptr [esi + 0x28], edi */
   8692     _flag_a = (uint32_t)(MEM32(esi + 0x28)); _flag_b = (uint32_t)(edi);
   8693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8694     _flag_k = FK_CMP;
   8695     if (CMP_NE(_flag_a, _flag_b)) goto L_3606599F; /* 0x36065983: jne 0x3606599f */
   8696 L_36065985:
   8697     PUSH32(esp, 0); /* 0x36065985: push 0 */
   8698     PUSH32(esp, 0x361C31E4u); /* 0x36065987: push 0x361c31e4 */
   8699     RECOMP_ICALL(0x3601C590u); /* 0x3606598C: call 0x3601c590 */ /* not lifted */
   8700     RECOMP_FLAGS_IN();
   8701     ecx = eax; /* 0x36065991: mov ecx, eax */
   8702     RECOMP_ICALL(0x3601C8C0u); /* 0x36065993: call 0x3601c8c0 */ /* not lifted */
   8703     RECOMP_FLAGS_IN();
   8704     MEM32(esi + 0x20) = 0xFFFFFFFFu; /* 0x36065998: mov dword ptr [esi + 0x20], 0xffffffff */
   8705 L_3606599F:
   8706     eax = MEM32(esi + 0x8); /* 0x3606599F: mov eax, dword ptr [esi + 8] */
   8707     /* test eax, eax */ /* 0x360659A2: test eax, eax */
   8708     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   8709     _cf = 0;
   8710     _flag_k = FK_TEST;
   8711     if (TEST_LE(_flag_a, _flag_b)) goto L_360659DC; /* 0x360659A4: jle 0x360659dc */
   8712 L_360659A6:
   8713     PUSH32(esp, eax); /* 0x360659A6: push eax */
   8714     RECOMP_ICALL(0x360F7B00u); /* 0x360659A7: call 0x360f7b00 */ /* not lifted */
   8715     RECOMP_FLAGS_IN();
   8716     ecx = eax; /* 0x360659AC: mov ecx, eax */
   8717     RECOMP_ICALL(0x360FB4E0u); /* 0x360659AE: call 0x360fb4e0 */ /* not lifted */
   8718     RECOMP_FLAGS_IN();
   8719     /* test LO8(eax), LO8(eax) */ /* 0x360659B3: test al, al */
   8720     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8721     _cf = 0;
   8722     _flag_k = FK_NARROW(FK_TEST, 24);
   8723     if (TEST_NZ(_flag_a, _flag_b)) goto L_360659E4; /* 0x360659B5: jne 0x360659e4 */
   8724 L_360659B7:
   8725     /* cmp MEM32(esi + 0x20), 3 */ /* 0x360659B7: cmp dword ptr [esi + 0x20], 3 */
   8726     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(3);
   8727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8728     _flag_k = FK_CMP;
   8729     if (CMP_NE(_flag_a, _flag_b)) goto L_360659D5; /* 0x360659BB: jne 0x360659d5 */
   8730 L_360659BD:
   8731     /* cmp MEM32(esi + 0x34), edi */ /* 0x360659BD: cmp dword ptr [esi + 0x34], edi */
   8732     _flag_a = (uint32_t)(MEM32(esi + 0x34)); _flag_b = (uint32_t)(edi);
   8733     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8734     _flag_k = FK_CMP;
   8735     if (CMP_NE(_flag_a, _flag_b)) goto L_360659D5; /* 0x360659C0: jne 0x360659d5 */
   8736 L_360659C2:
   8737     PUSH32(esp, 0); /* 0x360659C2: push 0 */
   8738     PUSH32(esp, 0x361C31B8u); /* 0x360659C4: push 0x361c31b8 */
   8739     RECOMP_ICALL(0x3601C590u); /* 0x360659C9: call 0x3601c590 */ /* not lifted */
   8740     RECOMP_FLAGS_IN();
   8741     ecx = eax; /* 0x360659CE: mov ecx, eax */
   8742     RECOMP_ICALL(0x3601C8C0u); /* 0x360659D0: call 0x3601c8c0 */ /* not lifted */
   8743     RECOMP_FLAGS_IN();
   8744 L_360659D5:
   8745     MEM32(esi + 0x8) = 0xFFFFFFFFu; /* 0x360659D5: mov dword ptr [esi + 8], 0xffffffff */
   8746 L_360659DC:
   8747     edi = POP32_VAL(esp); /* 0x360659DC: pop edi */
   8748     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   8749     SET_LO8(eax, 0); /* 0x360659DD: xor al, al */
   8750     _cf = 0;
   8751     _flag_k = FK_NARROW(FK_TEST, 24);
   8752     esi = POP32_VAL(esp); /* 0x360659DF: pop esi */
   8753     ebp = POP32_VAL(esp); /* 0x360659E0: pop ebp */
   8754     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360659E1: ret 4 */
   8755 L_360659E4:
   8756     edi = POP32_VAL(esp); /* 0x360659E4: pop edi */
   8757     SET_LO8(eax, 1); /* 0x360659E5: mov al, 1 */
   8758     esi = POP32_VAL(esp); /* 0x360659E7: pop esi */
   8759     ebp = POP32_VAL(esp); /* 0x360659E8: pop ebp */
   8760     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360659E9: ret 4 */
   8761     RECOMP_REGS_OUT();
   8762 }
   8763 
   8764 void sub_360659F0(void) {
   8765     int _fpu_cmp = 0;
   8766     uint32_t _cf = 0;
   8767     int _df = 1;
   8768     uint32_t _flag_k = FK_NONE;
   8769     uint32_t _flag_a = 0, _flag_b = 0;
   8770     uint32_t _itail_tgt = 0;
   8771     RECOMP_REGS_LOCALS
   8772     RECOMP_ENTER(0x360659F0u);
   8773 
   8774 L_360659F0:
   8775     PUSH32(esp, ebp); /* 0x360659F0: push ebp */
   8776     ebp = esp; /* 0x360659F1: mov ebp, esp */
   8777     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8779     esp = esp - 8; /* 0x360659F3: sub esp, 8 */
   8780     _flag_k = FK_CMP;
   8781     PUSH32(esp, ebx); /* 0x360659F6: push ebx */
   8782     PUSH32(esp, esi); /* 0x360659F7: push esi */
   8783     PUSH32(esp, edi); /* 0x360659F8: push edi */
   8784     edi = ecx; /* 0x360659F9: mov edi, ecx */
   8785     eax = MEM32(edi + 0x18); /* 0x360659FB: mov eax, dword ptr [edi + 0x18] */
   8786     eax = MEM32(eax + 0x4); /* 0x360659FE: mov eax, dword ptr [eax + 4] */
   8787     esi = MEM32(eax); /* 0x36065A01: mov esi, dword ptr [eax] */
   8788     /* cmp esi, eax */ /* 0x36065A03: cmp esi, eax */
   8789     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   8790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8791     _flag_k = FK_CMP;
   8792     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065A82; /* 0x36065A05: je 0x36065a82 */
   8793 L_36065A07:
   8794     ebx = MEM32(esi + 0x8); /* 0x36065A07: mov ebx, dword ptr [esi + 8] */
   8795     eax = MEM32(ebx + 0xC); /* 0x36065A0A: mov eax, dword ptr [ebx + 0xc] */
   8796     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8797     eax = eax - 1; /* 0x36065A0D: dec eax */
   8798     _flag_k = FK_DEC;
   8799     if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_36065A6C; /* 0x36065A0E: je 0x36065a6c */
   8800 L_36065A10:
   8801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8802     eax = eax - 1; /* 0x36065A10: dec eax */
   8803     _flag_k = FK_DEC;
   8804     if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36065A78; /* 0x36065A11: jne 0x36065a78 */
   8805 L_36065A13:
   8806     PUSH32(esp, ebx); /* 0x36065A13: push ebx */
   8807     ecx = edi; /* 0x36065A14: mov ecx, edi */
   8808     RECOMP_ICALL(0x36065940u); /* 0x36065A16: call 0x36065940 */ /* not lifted */
   8809     RECOMP_FLAGS_IN();
   8810     /* test LO8(eax), LO8(eax) */ /* 0x36065A1B: test al, al */
   8811     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8812     _cf = 0;
   8813     _flag_k = FK_NARROW(FK_TEST, 24);
   8814     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065A78; /* 0x36065A1D: jne 0x36065a78 */
   8815 L_36065A1F:
   8816     PUSH32(esp, ebx); /* 0x36065A1F: push ebx */
   8817     ecx = edi; /* 0x36065A20: mov ecx, edi */
   8818     RECOMP_ICALL(0x360658E0u); /* 0x36065A22: call 0x360658e0 */ /* not lifted */
   8819     RECOMP_FLAGS_IN();
   8820     /* test LO8(eax), LO8(eax) */ /* 0x36065A27: test al, al */
   8821     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8822     _cf = 0;
   8823     _flag_k = FK_NARROW(FK_TEST, 24);
   8824     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065A78; /* 0x36065A29: jne 0x36065a78 */
   8825 L_36065A2B:
   8826     ecx = MEM32(edi + 0x18); /* 0x36065A2B: mov ecx, dword ptr [edi + 0x18] */
   8827     eax = MEM32(esi); /* 0x36065A2E: mov eax, dword ptr [esi] */
   8828     edx = MEM32(esi + 0x4); /* 0x36065A30: mov edx, dword ptr [esi + 4] */
   8829     MEM32(edx) = eax; /* 0x36065A33: mov dword ptr [edx], eax */
   8830     MEM32(ebp + (-0x4)) = ecx; /* 0x36065A35: mov dword ptr [ebp - 4], ecx */
   8831     ecx = MEM32(esi + 0x4); /* 0x36065A38: mov ecx, dword ptr [esi + 4] */
   8832     MEM32(ebp + (-0x8)) = eax; /* 0x36065A3B: mov dword ptr [ebp - 8], eax */
   8833     eax = MEM32(esi); /* 0x36065A3E: mov eax, dword ptr [esi] */
   8834     PUSH32(esp, esi); /* 0x36065A40: push esi */
   8835     MEM32(eax + 0x4) = ecx; /* 0x36065A41: mov dword ptr [eax + 4], ecx */
   8836     RECOMP_ICALL(0x3615FCC4u); /* 0x36065A44: call 0x3615fcc4 */ /* not lifted */
   8837     RECOMP_FLAGS_IN();
   8838     eax = MEM32(ebp + (-0x4)); /* 0x36065A49: mov eax, dword ptr [ebp - 4] */
   8839     esi = MEM32(eax + 0x8); /* 0x36065A4C: mov esi, dword ptr [eax + 8] */
   8840     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8841     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8842     esp = esp + 4; /* 0x36065A4F: add esp, 4 */
   8843     _flag_k = FK_ADD;
   8844     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   8845     esi = esi - 1; /* 0x36065A52: dec esi */
   8846     _flag_k = FK_DEC;
   8847     MEM32(eax + 0x8) = esi; /* 0x36065A53: mov dword ptr [eax + 8], esi */
   8848     esi = MEM32(ebp + (-0x8)); /* 0x36065A56: mov esi, dword ptr [ebp - 8] */
   8849     PUSH32(esp, ebx); /* 0x36065A59: push ebx */
   8850     ecx = edi; /* 0x36065A5A: mov ecx, edi */
   8851     RECOMP_ICALL(0x36065420u); /* 0x36065A5C: call 0x36065420 */ /* not lifted */
   8852     RECOMP_FLAGS_IN();
   8853     PUSH32(esp, ebx); /* 0x36065A61: push ebx */
   8854     RECOMP_ICALL(0x3615FCC4u); /* 0x36065A62: call 0x3615fcc4 */ /* not lifted */
   8855     RECOMP_FLAGS_IN();
   8856     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8857     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8858     esp = esp + 4; /* 0x36065A67: add esp, 4 */
   8859     _flag_k = FK_ADD;
   8860     goto L_36065A7A; /* 0x36065A6A: jmp 0x36065a7a */
   8861 L_36065A6C:
   8862     PUSH32(esp, ebx); /* 0x36065A6C: push ebx */
   8863     ecx = edi; /* 0x36065A6D: mov ecx, edi */
   8864     RECOMP_ICALL(0x360654A0u); /* 0x36065A6F: call 0x360654a0 */ /* not lifted */
   8865     RECOMP_FLAGS_IN();
   8866     /* test LO8(eax), LO8(eax) */ /* 0x36065A74: test al, al */
   8867     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8868     _cf = 0;
   8869     _flag_k = FK_NARROW(FK_TEST, 24);
   8870     if (TEST_Z(_flag_a, _flag_b)) goto L_36065AB1; /* 0x36065A76: je 0x36065ab1 */
   8871 L_36065A78:
   8872     esi = MEM32(esi); /* 0x36065A78: mov esi, dword ptr [esi] */
   8873 L_36065A7A:
   8874     edx = MEM32(edi + 0x18); /* 0x36065A7A: mov edx, dword ptr [edi + 0x18] */
   8875     /* cmp esi, MEM32(edx + 0x4) */ /* 0x36065A7D: cmp esi, dword ptr [edx + 4] */
   8876     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0x4));
   8877     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8878     _flag_k = FK_CMP;
   8879     RECOMP_BACKEDGE();
   8880     if (CMP_NE(_flag_a, _flag_b)) goto L_36065A07; /* 0x36065A80: jne 0x36065a07 */
   8881 L_36065A82:
   8882     eax = MEM32(edi + 0x18); /* 0x36065A82: mov eax, dword ptr [edi + 0x18] */
   8883     ecx = MEM32(eax + 0x8); /* 0x36065A85: mov ecx, dword ptr [eax + 8] */
   8884     /* test ecx, ecx */ /* 0x36065A88: test ecx, ecx */
   8885     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   8886     _cf = 0;
   8887     _flag_k = FK_TEST;
   8888     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065AB1; /* 0x36065A8A: jne 0x36065ab1 */
   8889 L_36065A8C:
   8890     ecx = MEM32(edi); /* 0x36065A8C: mov ecx, dword ptr [edi] */
   8891     edi = MEM32(ecx + 0x118); /* 0x36065A8E: mov edi, dword ptr [ecx + 0x118] */
   8892     edx = MEM32(ecx + 0xE4); /* 0x36065A94: mov edx, dword ptr [ecx + 0xe4] */
   8893     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   8894     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8895     ecx = ecx + 0xE4u; /* 0x36065A9A: add ecx, 0xe4 */
   8896     _flag_k = FK_ADD;
   8897     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFF7Fu);
   8898     edi = edi & 0xFFFFFF7Fu; /* 0x36065AA0: and edi, 0xffffff7f */
   8899     _cf = 0;
   8900     _flag_k = FK_TEST;
   8901     eax = edi; /* 0x36065AA6: mov eax, edi */
   8902     PUSH32(esp, eax); /* 0x36065AA8: push eax */
   8903     PUSH32(esp, 0); /* 0x36065AA9: push 0 */
   8904     MEM32(ecx + 0x34) = edi; /* 0x36065AAB: mov dword ptr [ecx + 0x34], edi */
   8905     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36065AAE: call dword ptr [edx + 8] */
   8906     RECOMP_FLAGS_IN();
   8907 L_36065AB1:
   8908     edi = POP32_VAL(esp); /* 0x36065AB1: pop edi */
   8909     esi = POP32_VAL(esp); /* 0x36065AB2: pop esi */
   8910     ebx = POP32_VAL(esp); /* 0x36065AB3: pop ebx */
   8911     esp = ebp; /* 0x36065AB4: mov esp, ebp */
   8912     ebp = POP32_VAL(esp); /* 0x36065AB6: pop ebp */
   8913     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36065AB7: ret  */
   8914     RECOMP_REGS_OUT();
   8915 }
   8916 
   8917 void sub_36065AC0(void) {
   8918     int _fpu_cmp = 0;
   8919     uint32_t _cf = 0;
   8920     int _df = 1;
   8921     uint32_t _flag_k = FK_NONE;
   8922     uint32_t _flag_a = 0, _flag_b = 0;
   8923     uint32_t _itail_tgt = 0;
   8924     RECOMP_REGS_LOCALS
   8925     RECOMP_ENTER(0x36065AC0u);
   8926 
   8927 L_36065AC0:
   8928     PUSH32(esp, ebp); /* 0x36065AC0: push ebp */
   8929     ebp = esp; /* 0x36065AC1: mov ebp, esp */
   8930     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   8931     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8932     esp = esp - 8; /* 0x36065AC3: sub esp, 8 */
   8933     _flag_k = FK_CMP;
   8934     PUSH32(esp, ebx); /* 0x36065AC6: push ebx */
   8935     PUSH32(esp, esi); /* 0x36065AC7: push esi */
   8936     PUSH32(esp, edi); /* 0x36065AC8: push edi */
   8937     PUSH32(esp, 0x18u); /* 0x36065AC9: push 0x18 */
   8938     edi = ecx; /* 0x36065ACB: mov edi, ecx */
   8939     RECOMP_ICALL(0x3615FD6Au); /* 0x36065ACD: call 0x3615fd6a */ /* not lifted */
   8940     RECOMP_FLAGS_IN();
   8941     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8942     ebx = 0; /* 0x36065AD2: xor ebx, ebx */
   8943     _cf = 0;
   8944     _flag_k = FK_TEST;
   8945     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8946     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8947     esp = esp + 4; /* 0x36065AD4: add esp, 4 */
   8948     _flag_k = FK_ADD;
   8949     /* cmp eax, ebx */ /* 0x36065AD7: cmp eax, ebx */
   8950     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   8951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8952     _flag_k = FK_CMP;
   8953     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065AE4; /* 0x36065AD9: je 0x36065ae4 */
   8954 L_36065ADB:
   8955     MEM32(eax) = ebx; /* 0x36065ADB: mov dword ptr [eax], ebx */
   8956     MEM32(eax + 0x4) = ebx; /* 0x36065ADD: mov dword ptr [eax + 4], ebx */
   8957     esi = eax; /* 0x36065AE0: mov esi, eax */
   8958     goto L_36065AE6; /* 0x36065AE2: jmp 0x36065ae6 */
   8959 L_36065AE4:
   8960     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   8961     esi = 0; /* 0x36065AE4: xor esi, esi */
   8962     _cf = 0;
   8963     _flag_k = FK_TEST;
   8964 L_36065AE6:
   8965     eax = MEM32(ebp + 0x8); /* 0x36065AE6: mov eax, dword ptr [ebp + 8] */
   8966     ecx = MEM32(eax); /* 0x36065AE9: mov ecx, dword ptr [eax] */
   8967     MEM32(esi) = ecx; /* 0x36065AEB: mov dword ptr [esi], ecx */
   8968     edx = MEM32(eax + 0x4); /* 0x36065AED: mov edx, dword ptr [eax + 4] */
   8969     eax = MEM32(ebp + 0xC); /* 0x36065AF0: mov eax, dword ptr [ebp + 0xc] */
   8970     MEM32(esi + 0x4) = edx; /* 0x36065AF3: mov dword ptr [esi + 4], edx */
   8971     MEM32(esi + 0x8) = eax; /* 0x36065AF6: mov dword ptr [esi + 8], eax */
   8972     eax = MEM32(edi); /* 0x36065AF9: mov eax, dword ptr [edi] */
   8973     edx = MEM32(eax + 0xE4); /* 0x36065AFB: mov edx, dword ptr [eax + 0xe4] */
   8974     ecx = eax + 0xE4; /* 0x36065B01: lea ecx, [eax + 0xe4] */
   8975     PUSH32(esp, ebx); /* 0x36065B07: push ebx */
   8976     PUSH32(esp, 0x1D0u); /* 0x36065B08: push 0x1d0 */
   8977     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36065B0D: call dword ptr [edx + 4] */
   8978     RECOMP_FLAGS_IN();
   8979     eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ebp + 0x10)); /* 0x36065B10: imul eax, dword ptr [ebp + 0x10] */
   8980     MEM32(ebp + (-0x8)) = eax; /* 0x36065B14: mov dword ptr [ebp - 8], eax */
   8981     MEM32(ebp + (-0x4)) = ebx; /* 0x36065B17: mov dword ptr [ebp - 4], ebx */
   8982     fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36065B1A: fild qword ptr [ebp - 8] */
   8983     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x36065B1D: fmul dword ptr [0x36170894] */
   8984     RECOMP_ICALL(0x3615FD8Cu); /* 0x36065B23: call 0x3615fd8c */ /* not lifted */
   8985     RECOMP_FLAGS_IN();
   8986     MEM32(esi + 0xC) = eax; /* 0x36065B28: mov dword ptr [esi + 0xc], eax */
   8987     MEM32(esi + 0x10) = eax; /* 0x36065B2B: mov dword ptr [esi + 0x10], eax */
   8988     eax = MEM32(ebp + 0x14); /* 0x36065B2E: mov eax, dword ptr [ebp + 0x14] */
   8989     MEM32(esi + 0x14) = eax; /* 0x36065B31: mov dword ptr [esi + 0x14], eax */
   8990     ebx = MEM32(edi + 0x14); /* 0x36065B34: mov ebx, dword ptr [edi + 0x14] */
   8991     ecx = MEM32(ebx + 0x4); /* 0x36065B37: mov ecx, dword ptr [ebx + 4] */
   8992     edi = MEM32(ecx); /* 0x36065B3A: mov edi, dword ptr [ecx] */
   8993     edx = MEM32(edi + 0x4); /* 0x36065B3C: mov edx, dword ptr [edi + 4] */
   8994     PUSH32(esp, 0xCu); /* 0x36065B3F: push 0xc */
   8995     MEM32(ebp + 0x8) = edx; /* 0x36065B41: mov dword ptr [ebp + 8], edx */
   8996     RECOMP_ICALL(0x3615FD6Au); /* 0x36065B44: call 0x3615fd6a */ /* not lifted */
   8997     RECOMP_FLAGS_IN();
   8998     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8999     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9000     esp = esp + 4; /* 0x36065B49: add esp, 4 */
   9001     _flag_k = FK_ADD;
   9002     /* test edi, edi */ /* 0x36065B4C: test edi, edi */
   9003     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9004     _cf = 0;
   9005     _flag_k = FK_TEST;
   9006     ecx = edi; /* 0x36065B4E: mov ecx, edi */
   9007     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065B54; /* 0x36065B50: jne 0x36065b54 */
   9008 L_36065B52:
   9009     ecx = eax; /* 0x36065B52: mov ecx, eax */
   9010 L_36065B54:
   9011     MEM32(eax) = ecx; /* 0x36065B54: mov dword ptr [eax], ecx */
   9012     ecx = MEM32(ebp + 0x8); /* 0x36065B56: mov ecx, dword ptr [ebp + 8] */
   9013     /* test ecx, ecx */ /* 0x36065B59: test ecx, ecx */
   9014     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9015     _cf = 0;
   9016     _flag_k = FK_TEST;
   9017     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065B5F; /* 0x36065B5B: jne 0x36065b5f */
   9018 L_36065B5D:
   9019     ecx = eax; /* 0x36065B5D: mov ecx, eax */
   9020 L_36065B5F:
   9021     MEM32(eax + 0x4) = ecx; /* 0x36065B5F: mov dword ptr [eax + 4], ecx */
   9022     MEM32(edi + 0x4) = eax; /* 0x36065B62: mov dword ptr [edi + 4], eax */
   9023     ecx = MEM32(eax + 0x4); /* 0x36065B65: mov ecx, dword ptr [eax + 4] */
   9024     MEM32(ecx) = eax; /* 0x36065B68: mov dword ptr [ecx], eax */
   9025     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   9026     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9027     eax = eax + 8; /* 0x36065B6A: add eax, 8 */
   9028     _flag_k = FK_ADD;
   9029     /* test eax, eax */ /* 0x36065B6D: test eax, eax */
   9030     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9031     _cf = 0;
   9032     _flag_k = FK_TEST;
   9033     if (TEST_Z(_flag_a, _flag_b)) goto L_36065B73; /* 0x36065B6F: je 0x36065b73 */
   9034 L_36065B71:
   9035     MEM32(eax) = esi; /* 0x36065B71: mov dword ptr [eax], esi */
   9036 L_36065B73:
   9037     eax = MEM32(ebx + 0x8); /* 0x36065B73: mov eax, dword ptr [ebx + 8] */
   9038     edi = POP32_VAL(esp); /* 0x36065B76: pop edi */
   9039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9040     eax = eax + 1; /* 0x36065B77: inc eax */
   9041     _flag_k = FK_INC;
   9042     esi = POP32_VAL(esp); /* 0x36065B78: pop esi */
   9043     MEM32(ebx + 0x8) = eax; /* 0x36065B79: mov dword ptr [ebx + 8], eax */
   9044     ebx = POP32_VAL(esp); /* 0x36065B7C: pop ebx */
   9045     esp = ebp; /* 0x36065B7D: mov esp, ebp */
   9046     ebp = POP32_VAL(esp); /* 0x36065B7F: pop ebp */
   9047     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36065B80: ret 0x10 */
   9048     RECOMP_REGS_OUT();
   9049 }
   9050 
   9051 void sub_36065B90(void) {
   9052     int _fpu_cmp = 0;
   9053     uint32_t _cf = 0;
   9054     int _df = 1;
   9055     uint32_t _flag_k = FK_NONE;
   9056     uint32_t _flag_a = 0, _flag_b = 0;
   9057     uint32_t _itail_tgt = 0;
   9058     RECOMP_REGS_LOCALS
   9059     RECOMP_ENTER(0x36065B90u);
   9060 
   9061 L_36065B90:
   9062     PUSH32(esp, ebp); /* 0x36065B90: push ebp */
   9063     ebp = esp; /* 0x36065B91: mov ebp, esp */
   9064     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9066     esp = esp - 8; /* 0x36065B93: sub esp, 8 */
   9067     _flag_k = FK_CMP;
   9068     PUSH32(esp, ebx); /* 0x36065B96: push ebx */
   9069     PUSH32(esp, esi); /* 0x36065B97: push esi */
   9070     esi = ecx; /* 0x36065B98: mov esi, ecx */
   9071     eax = MEM32(esi + 0x14); /* 0x36065B9A: mov eax, dword ptr [esi + 0x14] */
   9072     edx = MEM32(eax + 0x4); /* 0x36065B9D: mov edx, dword ptr [eax + 4] */
   9073     ebx = MEM32(edx); /* 0x36065BA0: mov ebx, dword ptr [edx] */
   9074     /* cmp ebx, edx */ /* 0x36065BA2: cmp ebx, edx */
   9075     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   9076     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9077     _flag_k = FK_CMP;
   9078     PUSH32(esp, edi); /* 0x36065BA4: push edi */
   9079     MEM32(ebp + (-0x4)) = ebx; /* 0x36065BA5: mov dword ptr [ebp - 4], ebx */
   9080     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065E5D; /* 0x36065BA8: je 0x36065e5d */
   9081 L_36065BAE:
   9082     edi = MEM32(ebp + 0x8); /* 0x36065BAE: mov edi, dword ptr [ebp + 8] */
   9083     ecx = MEM32(edi + 0x4); /* 0x36065BB1: mov ecx, dword ptr [edi + 4] */
   9084 L_36065BB4:
   9085     eax = MEM32(ebx + 0x8); /* 0x36065BB4: mov eax, dword ptr [ebx + 8] */
   9086     /* cmp MEM32(eax + 0x4), ecx */ /* 0x36065BB7: cmp dword ptr [eax + 4], ecx */
   9087     _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(ecx);
   9088     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9089     _flag_k = FK_CMP;
   9090     if (CMP_NE(_flag_a, _flag_b)) goto L_36065BC2; /* 0x36065BBA: jne 0x36065bc2 */
   9091 L_36065BBC:
   9092     eax = MEM32(eax); /* 0x36065BBC: mov eax, dword ptr [eax] */
   9093     /* cmp eax, MEM32(edi) */ /* 0x36065BBE: cmp eax, dword ptr [edi] */
   9094     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edi));
   9095     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9096     _flag_k = FK_CMP;
   9097     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065BCE; /* 0x36065BC0: je 0x36065bce */
   9098 L_36065BC2:
   9099     ebx = MEM32(ebx); /* 0x36065BC2: mov ebx, dword ptr [ebx] */
   9100     /* cmp ebx, edx */ /* 0x36065BC4: cmp ebx, edx */
   9101     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx);
   9102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9103     _flag_k = FK_CMP;
   9104     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065E5A; /* 0x36065BC6: je 0x36065e5a */
   9105 L_36065BCC:
   9106     RECOMP_BACKEDGE();
   9107     goto L_36065BB4; /* 0x36065BCC: jmp 0x36065bb4 */
   9108 L_36065BCE:
   9109     PUSH32(esp, ecx); /* 0x36065BCE: push ecx */
   9110     MEM32(ebp + (-0x4)) = ebx; /* 0x36065BCF: mov dword ptr [ebp - 4], ebx */
   9111     RECOMP_ICALL(0x360B4000u); /* 0x36065BD2: call 0x360b4000 */ /* not lifted */
   9112     RECOMP_FLAGS_IN();
   9113     edi = eax; /* 0x36065BD7: mov edi, eax */
   9114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9116     esp = esp + 4; /* 0x36065BD9: add esp, 4 */
   9117     _flag_k = FK_ADD;
   9118     /* test edi, edi */ /* 0x36065BDC: test edi, edi */
   9119     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9120     _cf = 0;
   9121     _flag_k = FK_TEST;
   9122     if (TEST_Z(_flag_a, _flag_b)) goto L_36065E5D; /* 0x36065BDE: je 0x36065e5d */
   9123 L_36065BE4:
   9124     PUSH32(esp, 4); /* 0x36065BE4: push 4 */
   9125     ecx = edi; /* 0x36065BE6: mov ecx, edi */
   9126     RECOMP_ICALL(0x36002180u); /* 0x36065BE8: call 0x36002180 */ /* not lifted */
   9127     RECOMP_FLAGS_IN();
   9128     /* test LO8(eax), LO8(eax) */ /* 0x36065BED: test al, al */
   9129     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9130     _cf = 0;
   9131     _flag_k = FK_NARROW(FK_TEST, 24);
   9132     if (TEST_Z(_flag_a, _flag_b)) goto L_36065C20; /* 0x36065BEF: je 0x36065c20 */
   9133 L_36065BF1:
   9134     eax = MEM32(esi); /* 0x36065BF1: mov eax, dword ptr [esi] */
   9135     /* test eax, eax */ /* 0x36065BF3: test eax, eax */
   9136     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9137     _cf = 0;
   9138     _flag_k = FK_TEST;
   9139     if (TEST_Z(_flag_a, _flag_b)) goto L_36065BFF; /* 0x36065BF5: je 0x36065bff */
   9140 L_36065BF7:
   9141     ecx = eax + 0xE4; /* 0x36065BF7: lea ecx, [eax + 0xe4] */
   9142     goto L_36065C01; /* 0x36065BFD: jmp 0x36065c01 */
   9143 L_36065BFF:
   9144     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9145     ecx = 0; /* 0x36065BFF: xor ecx, ecx */
   9146     _cf = 0;
   9147     _flag_k = FK_TEST;
   9148 L_36065C01:
   9149     ebx = MEM32(eax + 0xE4); /* 0x36065C01: mov ebx, dword ptr [eax + 0xe4] */
   9150     PUSH32(esp, ecx); /* 0x36065C07: push ecx */
   9151     PUSH32(esp, 4); /* 0x36065C08: push 4 */
   9152     ecx = edi; /* 0x36065C0A: mov ecx, edi */
   9153     RECOMP_ICALL(0x360020C0u); /* 0x36065C0C: call 0x360020c0 */ /* not lifted */
   9154     RECOMP_FLAGS_IN();
   9155     ecx = MEM32(esi); /* 0x36065C11: mov ecx, dword ptr [esi] */
   9156     PUSH32(esp, eax); /* 0x36065C13: push eax */
   9157     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   9158     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9159     ecx = ecx + 0xE4u; /* 0x36065C14: add ecx, 0xe4 */
   9160     _flag_k = FK_ADD;
   9161     RECOMP_ICALL(MEM32(ebx + 0x2C)); /* 0x36065C1A: call dword ptr [ebx + 0x2c] */
   9162     RECOMP_FLAGS_IN();
   9163     ebx = MEM32(ebp + (-0x4)); /* 0x36065C1D: mov ebx, dword ptr [ebp - 4] */
   9164 L_36065C20:
   9165     PUSH32(esp, 0); /* 0x36065C20: push 0 */
   9166     ecx = edi; /* 0x36065C22: mov ecx, edi */
   9167     RECOMP_ICALL(0x36002180u); /* 0x36065C24: call 0x36002180 */ /* not lifted */
   9168     RECOMP_FLAGS_IN();
   9169     /* test LO8(eax), LO8(eax) */ /* 0x36065C29: test al, al */
   9170     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9171     _cf = 0;
   9172     _flag_k = FK_NARROW(FK_TEST, 24);
   9173     if (TEST_Z(_flag_a, _flag_b)) goto L_36065C5C; /* 0x36065C2B: je 0x36065c5c */
   9174 L_36065C2D:
   9175     eax = MEM32(esi); /* 0x36065C2D: mov eax, dword ptr [esi] */
   9176     /* test eax, eax */ /* 0x36065C2F: test eax, eax */
   9177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9178     _cf = 0;
   9179     _flag_k = FK_TEST;
   9180     if (TEST_Z(_flag_a, _flag_b)) goto L_36065C3B; /* 0x36065C31: je 0x36065c3b */
   9181 L_36065C33:
   9182     ecx = eax + 0xE4; /* 0x36065C33: lea ecx, [eax + 0xe4] */
   9183     goto L_36065C3D; /* 0x36065C39: jmp 0x36065c3d */
   9184 L_36065C3B:
   9185     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9186     ecx = 0; /* 0x36065C3B: xor ecx, ecx */
   9187     _cf = 0;
   9188     _flag_k = FK_TEST;
   9189 L_36065C3D:
   9190     ebx = MEM32(eax + 0xE4); /* 0x36065C3D: mov ebx, dword ptr [eax + 0xe4] */
   9191     PUSH32(esp, ecx); /* 0x36065C43: push ecx */
   9192     PUSH32(esp, 0); /* 0x36065C44: push 0 */
   9193     ecx = edi; /* 0x36065C46: mov ecx, edi */
   9194     RECOMP_ICALL(0x360020C0u); /* 0x36065C48: call 0x360020c0 */ /* not lifted */
   9195     RECOMP_FLAGS_IN();
   9196     ecx = MEM32(esi); /* 0x36065C4D: mov ecx, dword ptr [esi] */
   9197     PUSH32(esp, eax); /* 0x36065C4F: push eax */
   9198     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   9199     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9200     ecx = ecx + 0xE4u; /* 0x36065C50: add ecx, 0xe4 */
   9201     _flag_k = FK_ADD;
   9202     RECOMP_ICALL(MEM32(ebx + 0x2C)); /* 0x36065C56: call dword ptr [ebx + 0x2c] */
   9203     RECOMP_FLAGS_IN();
   9204     ebx = MEM32(ebp + (-0x4)); /* 0x36065C59: mov ebx, dword ptr [ebp - 4] */
   9205 L_36065C5C:
   9206     eax = MEM32(esi); /* 0x36065C5C: mov eax, dword ptr [esi] */
   9207     edx = MEM32(eax + 0xE4); /* 0x36065C5E: mov edx, dword ptr [eax + 0xe4] */
   9208     ecx = eax + 0xE4; /* 0x36065C64: lea ecx, [eax + 0xe4] */
   9209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   9210     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9211     eax = eax + 4; /* 0x36065C6A: add eax, 4 */
   9212     _flag_k = FK_ADD;
   9213     PUSH32(esp, eax); /* 0x36065C6D: push eax */
   9214     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x36065C6E: call dword ptr [edx + 0x24] */
   9215     RECOMP_FLAGS_IN();
   9216     PUSH32(esp, 4); /* 0x36065C71: push 4 */
   9217     ecx = edi; /* 0x36065C73: mov ecx, edi */
   9218     RECOMP_ICALL(0x36002180u); /* 0x36065C75: call 0x36002180 */ /* not lifted */
   9219     RECOMP_FLAGS_IN();
   9220     /* test LO8(eax), LO8(eax) */ /* 0x36065C7A: test al, al */
   9221     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9222     _cf = 0;
   9223     _flag_k = FK_NARROW(FK_TEST, 24);
   9224     if (TEST_Z(_flag_a, _flag_b)) goto L_36065CB3; /* 0x36065C7C: je 0x36065cb3 */
   9225 L_36065C7E:
   9226     eax = MEM32(esi); /* 0x36065C7E: mov eax, dword ptr [esi] */
   9227     /* test eax, eax */ /* 0x36065C80: test eax, eax */
   9228     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9229     _cf = 0;
   9230     _flag_k = FK_TEST;
   9231     if (TEST_Z(_flag_a, _flag_b)) goto L_36065C8C; /* 0x36065C82: je 0x36065c8c */
   9232 L_36065C84:
   9233     ecx = eax + 0xE4; /* 0x36065C84: lea ecx, [eax + 0xe4] */
   9234     goto L_36065C8E; /* 0x36065C8A: jmp 0x36065c8e */
   9235 L_36065C8C:
   9236     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9237     ecx = 0; /* 0x36065C8C: xor ecx, ecx */
   9238     _cf = 0;
   9239     _flag_k = FK_TEST;
   9240 L_36065C8E:
   9241     ebx = MEM32(eax + 0xE4); /* 0x36065C8E: mov ebx, dword ptr [eax + 0xe4] */
   9242     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   9243     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9244     eax = eax + 4; /* 0x36065C94: add eax, 4 */
   9245     _flag_k = FK_ADD;
   9246     PUSH32(esp, eax); /* 0x36065C97: push eax */
   9247     PUSH32(esp, 1); /* 0x36065C98: push 1 */
   9248     PUSH32(esp, ecx); /* 0x36065C9A: push ecx */
   9249     PUSH32(esp, 4); /* 0x36065C9B: push 4 */
   9250     ecx = edi; /* 0x36065C9D: mov ecx, edi */
   9251     RECOMP_ICALL(0x360020C0u); /* 0x36065C9F: call 0x360020c0 */ /* not lifted */
   9252     RECOMP_FLAGS_IN();
   9253     ecx = MEM32(esi); /* 0x36065CA4: mov ecx, dword ptr [esi] */
   9254     PUSH32(esp, eax); /* 0x36065CA6: push eax */
   9255     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   9256     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9257     ecx = ecx + 0xE4u; /* 0x36065CA7: add ecx, 0xe4 */
   9258     _flag_k = FK_ADD;
   9259     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36065CAD: call dword ptr [ebx + 0x34] */
   9260     RECOMP_FLAGS_IN();
   9261     ebx = MEM32(ebp + (-0x4)); /* 0x36065CB0: mov ebx, dword ptr [ebp - 4] */
   9262 L_36065CB3:
   9263     PUSH32(esp, 0); /* 0x36065CB3: push 0 */
   9264     ecx = edi; /* 0x36065CB5: mov ecx, edi */
   9265     RECOMP_ICALL(0x36002180u); /* 0x36065CB7: call 0x36002180 */ /* not lifted */
   9266     RECOMP_FLAGS_IN();
   9267     /* test LO8(eax), LO8(eax) */ /* 0x36065CBC: test al, al */
   9268     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9269     _cf = 0;
   9270     _flag_k = FK_NARROW(FK_TEST, 24);
   9271     if (TEST_Z(_flag_a, _flag_b)) goto L_36065CF5; /* 0x36065CBE: je 0x36065cf5 */
   9272 L_36065CC0:
   9273     eax = MEM32(esi); /* 0x36065CC0: mov eax, dword ptr [esi] */
   9274     /* test eax, eax */ /* 0x36065CC2: test eax, eax */
   9275     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9276     _cf = 0;
   9277     _flag_k = FK_TEST;
   9278     if (TEST_Z(_flag_a, _flag_b)) goto L_36065CCE; /* 0x36065CC4: je 0x36065cce */
   9279 L_36065CC6:
   9280     ecx = eax + 0xE4; /* 0x36065CC6: lea ecx, [eax + 0xe4] */
   9281     goto L_36065CD0; /* 0x36065CCC: jmp 0x36065cd0 */
   9282 L_36065CCE:
   9283     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9284     ecx = 0; /* 0x36065CCE: xor ecx, ecx */
   9285     _cf = 0;
   9286     _flag_k = FK_TEST;
   9287 L_36065CD0:
   9288     ebx = MEM32(eax + 0xE4); /* 0x36065CD0: mov ebx, dword ptr [eax + 0xe4] */
   9289     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   9290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9291     eax = eax + 4; /* 0x36065CD6: add eax, 4 */
   9292     _flag_k = FK_ADD;
   9293     PUSH32(esp, eax); /* 0x36065CD9: push eax */
   9294     PUSH32(esp, 1); /* 0x36065CDA: push 1 */
   9295     PUSH32(esp, ecx); /* 0x36065CDC: push ecx */
   9296     PUSH32(esp, 0); /* 0x36065CDD: push 0 */
   9297     ecx = edi; /* 0x36065CDF: mov ecx, edi */
   9298     RECOMP_ICALL(0x360020C0u); /* 0x36065CE1: call 0x360020c0 */ /* not lifted */
   9299     RECOMP_FLAGS_IN();
   9300     ecx = MEM32(esi); /* 0x36065CE6: mov ecx, dword ptr [esi] */
   9301     PUSH32(esp, eax); /* 0x36065CE8: push eax */
   9302     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   9303     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9304     ecx = ecx + 0xE4u; /* 0x36065CE9: add ecx, 0xe4 */
   9305     _flag_k = FK_ADD;
   9306     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36065CEF: call dword ptr [ebx + 0x34] */
   9307     RECOMP_FLAGS_IN();
   9308     ebx = MEM32(ebp + (-0x4)); /* 0x36065CF2: mov ebx, dword ptr [ebp - 4] */
   9309 L_36065CF5:
   9310     PUSH32(esp, 0x14u); /* 0x36065CF5: push 0x14 */
   9311     ecx = edi; /* 0x36065CF7: mov ecx, edi */
   9312     RECOMP_ICALL(0x36002180u); /* 0x36065CF9: call 0x36002180 */ /* not lifted */
   9313     RECOMP_FLAGS_IN();
   9314     /* test LO8(eax), LO8(eax) */ /* 0x36065CFE: test al, al */
   9315     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9316     _cf = 0;
   9317     _flag_k = FK_NARROW(FK_TEST, 24);
   9318     if (TEST_Z(_flag_a, _flag_b)) goto L_36065D38; /* 0x36065D00: je 0x36065d38 */
   9319 L_36065D02:
   9320     eax = MEM32(esi); /* 0x36065D02: mov eax, dword ptr [esi] */
   9321     /* test eax, eax */ /* 0x36065D04: test eax, eax */
   9322     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9323     _cf = 0;
   9324     _flag_k = FK_TEST;
   9325     if (TEST_Z(_flag_a, _flag_b)) goto L_36065D10; /* 0x36065D06: je 0x36065d10 */
   9326 L_36065D08:
   9327     ecx = eax + 0xE4; /* 0x36065D08: lea ecx, [eax + 0xe4] */
   9328     goto L_36065D12; /* 0x36065D0E: jmp 0x36065d12 */
   9329 L_36065D10:
   9330     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9331     ecx = 0; /* 0x36065D10: xor ecx, ecx */
   9332     _cf = 0;
   9333     _flag_k = FK_TEST;
   9334 L_36065D12:
   9335     ebx = MEM32(eax + 0xE4); /* 0x36065D12: mov ebx, dword ptr [eax + 0xe4] */
   9336     PUSH32(esp, 0x362EA510u); /* 0x36065D18: push 0x362ea510 */
   9337     PUSH32(esp, 0); /* 0x36065D1D: push 0 */
   9338     PUSH32(esp, ecx); /* 0x36065D1F: push ecx */
   9339     PUSH32(esp, 0x14u); /* 0x36065D20: push 0x14 */
   9340     ecx = edi; /* 0x36065D22: mov ecx, edi */
   9341     RECOMP_ICALL(0x360020C0u); /* 0x36065D24: call 0x360020c0 */ /* not lifted */
   9342     RECOMP_FLAGS_IN();
   9343     ecx = MEM32(esi); /* 0x36065D29: mov ecx, dword ptr [esi] */
   9344     PUSH32(esp, eax); /* 0x36065D2B: push eax */
   9345     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   9346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9347     ecx = ecx + 0xE4u; /* 0x36065D2C: add ecx, 0xe4 */
   9348     _flag_k = FK_ADD;
   9349     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36065D32: call dword ptr [ebx + 0x34] */
   9350     RECOMP_FLAGS_IN();
   9351     ebx = MEM32(ebp + (-0x4)); /* 0x36065D35: mov ebx, dword ptr [ebp - 4] */
   9352 L_36065D38:
   9353     eax = MEM32(edi); /* 0x36065D38: mov eax, dword ptr [edi] */
   9354     PUSH32(esp, 2); /* 0x36065D3A: push 2 */
   9355     PUSH32(esp, 0x14Cu); /* 0x36065D3C: push 0x14c */
   9356     ecx = edi; /* 0x36065D41: mov ecx, edi */
   9357     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36065D43: call dword ptr [eax + 4] */
   9358     RECOMP_FLAGS_IN();
   9359     /* test eax, eax */ /* 0x36065D46: test eax, eax */
   9360     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9361     _cf = 0;
   9362     _flag_k = FK_TEST;
   9363     if (TEST_Z(_flag_a, _flag_b)) goto L_36065DE7; /* 0x36065D48: je 0x36065de7 */
   9364 L_36065D4E:
   9365     PUSH32(esp, eax); /* 0x36065D4E: push eax */
   9366     RECOMP_ICALL(0x360B4000u); /* 0x36065D4F: call 0x360b4000 */ /* not lifted */
   9367     RECOMP_FLAGS_IN();
   9368     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9369     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9370     esp = esp + 4; /* 0x36065D54: add esp, 4 */
   9371     _flag_k = FK_ADD;
   9372     /* test eax, eax */ /* 0x36065D57: test eax, eax */
   9373     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9374     _cf = 0;
   9375     _flag_k = FK_TEST;
   9376     MEM32(ebp + 0x8) = eax; /* 0x36065D59: mov dword ptr [ebp + 8], eax */
   9377     if (TEST_Z(_flag_a, _flag_b)) goto L_36065DE7; /* 0x36065D5C: je 0x36065de7 */
   9378 L_36065D62:
   9379     PUSH32(esp, 4); /* 0x36065D62: push 4 */
   9380     ecx = eax; /* 0x36065D64: mov ecx, eax */
   9381     RECOMP_ICALL(0x36002180u); /* 0x36065D66: call 0x36002180 */ /* not lifted */
   9382     RECOMP_FLAGS_IN();
   9383     /* test LO8(eax), LO8(eax) */ /* 0x36065D6B: test al, al */
   9384     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9385     _cf = 0;
   9386     _flag_k = FK_NARROW(FK_TEST, 24);
   9387     if (TEST_Z(_flag_a, _flag_b)) goto L_36065DA6; /* 0x36065D6D: je 0x36065da6 */
   9388 L_36065D6F:
   9389     eax = MEM32(esi); /* 0x36065D6F: mov eax, dword ptr [esi] */
   9390     /* test eax, eax */ /* 0x36065D71: test eax, eax */
   9391     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9392     _cf = 0;
   9393     _flag_k = FK_TEST;
   9394     if (TEST_Z(_flag_a, _flag_b)) goto L_36065D7D; /* 0x36065D73: je 0x36065d7d */
   9395 L_36065D75:
   9396     ecx = eax + 0xE4; /* 0x36065D75: lea ecx, [eax + 0xe4] */
   9397     goto L_36065D7F; /* 0x36065D7B: jmp 0x36065d7f */
   9398 L_36065D7D:
   9399     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9400     ecx = 0; /* 0x36065D7D: xor ecx, ecx */
   9401     _cf = 0;
   9402     _flag_k = FK_TEST;
   9403 L_36065D7F:
   9404     ebx = MEM32(eax + 0xE4); /* 0x36065D7F: mov ebx, dword ptr [eax + 0xe4] */
   9405     PUSH32(esp, 0x362EA510u); /* 0x36065D85: push 0x362ea510 */
   9406     PUSH32(esp, 0); /* 0x36065D8A: push 0 */
   9407     PUSH32(esp, ecx); /* 0x36065D8C: push ecx */
   9408     ecx = MEM32(ebp + 0x8); /* 0x36065D8D: mov ecx, dword ptr [ebp + 8] */
   9409     PUSH32(esp, 4); /* 0x36065D90: push 4 */
   9410     RECOMP_ICALL(0x360020C0u); /* 0x36065D92: call 0x360020c0 */ /* not lifted */
   9411     RECOMP_FLAGS_IN();
   9412     ecx = MEM32(esi); /* 0x36065D97: mov ecx, dword ptr [esi] */
   9413     PUSH32(esp, eax); /* 0x36065D99: push eax */
   9414     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   9415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9416     ecx = ecx + 0xE4u; /* 0x36065D9A: add ecx, 0xe4 */
   9417     _flag_k = FK_ADD;
   9418     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36065DA0: call dword ptr [ebx + 0x34] */
   9419     RECOMP_FLAGS_IN();
   9420     ebx = MEM32(ebp + (-0x4)); /* 0x36065DA3: mov ebx, dword ptr [ebp - 4] */
   9421 L_36065DA6:
   9422     PUSH32(esp, 0); /* 0x36065DA6: push 0 */
   9423     ecx = edi; /* 0x36065DA8: mov ecx, edi */
   9424     RECOMP_ICALL(0x36002180u); /* 0x36065DAA: call 0x36002180 */ /* not lifted */
   9425     RECOMP_FLAGS_IN();
   9426     /* test LO8(eax), LO8(eax) */ /* 0x36065DAF: test al, al */
   9427     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9428     _cf = 0;
   9429     _flag_k = FK_NARROW(FK_TEST, 24);
   9430     if (TEST_Z(_flag_a, _flag_b)) goto L_36065DE7; /* 0x36065DB1: je 0x36065de7 */
   9431 L_36065DB3:
   9432     eax = MEM32(esi); /* 0x36065DB3: mov eax, dword ptr [esi] */
   9433     /* test eax, eax */ /* 0x36065DB5: test eax, eax */
   9434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9435     _cf = 0;
   9436     _flag_k = FK_TEST;
   9437     if (TEST_Z(_flag_a, _flag_b)) goto L_36065DC1; /* 0x36065DB7: je 0x36065dc1 */
   9438 L_36065DB9:
   9439     ecx = eax + 0xE4; /* 0x36065DB9: lea ecx, [eax + 0xe4] */
   9440     goto L_36065DC3; /* 0x36065DBF: jmp 0x36065dc3 */
   9441 L_36065DC1:
   9442     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9443     ecx = 0; /* 0x36065DC1: xor ecx, ecx */
   9444     _cf = 0;
   9445     _flag_k = FK_TEST;
   9446 L_36065DC3:
   9447     edi = MEM32(eax + 0xE4); /* 0x36065DC3: mov edi, dword ptr [eax + 0xe4] */
   9448     PUSH32(esp, 0x362EA510u); /* 0x36065DC9: push 0x362ea510 */
   9449     PUSH32(esp, 0); /* 0x36065DCE: push 0 */
   9450     PUSH32(esp, ecx); /* 0x36065DD0: push ecx */
   9451     ecx = MEM32(ebp + 0x8); /* 0x36065DD1: mov ecx, dword ptr [ebp + 8] */
   9452     PUSH32(esp, 0); /* 0x36065DD4: push 0 */
   9453     RECOMP_ICALL(0x360020C0u); /* 0x36065DD6: call 0x360020c0 */ /* not lifted */
   9454     RECOMP_FLAGS_IN();
   9455     ecx = MEM32(esi); /* 0x36065DDB: mov ecx, dword ptr [esi] */
   9456     PUSH32(esp, eax); /* 0x36065DDD: push eax */
   9457     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
   9458     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9459     ecx = ecx + 0xE4u; /* 0x36065DDE: add ecx, 0xe4 */
   9460     _flag_k = FK_ADD;
   9461     RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x36065DE4: call dword ptr [edi + 0x34] */
   9462     RECOMP_FLAGS_IN();
   9463 L_36065DE7:
   9464     ecx = MEM32(ebx + 0x8); /* 0x36065DE7: mov ecx, dword ptr [ebx + 8] */
   9465     edx = MEM32(ecx + 0x14); /* 0x36065DEA: mov edx, dword ptr [ecx + 0x14] */
   9466     PUSH32(esp, edx); /* 0x36065DED: push edx */
   9467     RECOMP_ICALL(0x360F7B00u); /* 0x36065DEE: call 0x360f7b00 */ /* not lifted */
   9468     RECOMP_FLAGS_IN();
   9469     ecx = eax; /* 0x36065DF3: mov ecx, eax */
   9470     RECOMP_ICALL(0x360FB5A0u); /* 0x36065DF5: call 0x360fb5a0 */ /* not lifted */
   9471     RECOMP_FLAGS_IN();
   9472     SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x36065DFA: mov al, byte ptr [ebp + 0xc] */
   9473     /* test LO8(eax), LO8(eax) */ /* 0x36065DFD: test al, al */
   9474     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9475     _cf = 0;
   9476     _flag_k = FK_NARROW(FK_TEST, 24);
   9477     if (TEST_Z(_flag_a, _flag_b)) goto L_36065E2C; /* 0x36065DFF: je 0x36065e2c */
   9478 L_36065E01:
   9479     eax = MEM32(ebx + 0x8); /* 0x36065E01: mov eax, dword ptr [ebx + 8] */
   9480     PUSH32(esp, eax); /* 0x36065E04: push eax */
   9481     RECOMP_ICALL(0x3615FCC4u); /* 0x36065E05: call 0x3615fcc4 */ /* not lifted */
   9482     RECOMP_FLAGS_IN();
   9483     ecx = MEM32(ebx + 0x4); /* 0x36065E0A: mov ecx, dword ptr [ebx + 4] */
   9484     edx = MEM32(ebx); /* 0x36065E0D: mov edx, dword ptr [ebx] */
   9485     edi = MEM32(esi + 0x14); /* 0x36065E0F: mov edi, dword ptr [esi + 0x14] */
   9486     MEM32(ecx) = edx; /* 0x36065E12: mov dword ptr [ecx], edx */
   9487     eax = MEM32(ebx); /* 0x36065E14: mov eax, dword ptr [ebx] */
   9488     ecx = MEM32(ebx + 0x4); /* 0x36065E16: mov ecx, dword ptr [ebx + 4] */
   9489     PUSH32(esp, ebx); /* 0x36065E19: push ebx */
   9490     MEM32(eax + 0x4) = ecx; /* 0x36065E1A: mov dword ptr [eax + 4], ecx */
   9491     RECOMP_ICALL(0x3615FCC4u); /* 0x36065E1D: call 0x3615fcc4 */ /* not lifted */
   9492     RECOMP_FLAGS_IN();
   9493     eax = MEM32(edi + 0x8); /* 0x36065E22: mov eax, dword ptr [edi + 8] */
   9494     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9495     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9496     esp = esp + 8; /* 0x36065E25: add esp, 8 */
   9497     _flag_k = FK_ADD;
   9498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9499     eax = eax - 1; /* 0x36065E28: dec eax */
   9500     _flag_k = FK_DEC;
   9501     MEM32(edi + 0x8) = eax; /* 0x36065E29: mov dword ptr [edi + 8], eax */
   9502 L_36065E2C:
   9503     esi = MEM32(esi); /* 0x36065E2C: mov esi, dword ptr [esi] */
   9504     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9505     eax = 0; /* 0x36065E2E: xor eax, eax */
   9506     _cf = 0;
   9507     _flag_k = FK_TEST;
   9508     edx = ebp + (-0x8); /* 0x36065E30: lea edx, [ebp - 8] */
   9509     PUSH32(esp, edx); /* 0x36065E33: push edx */
   9510     PUSH32(esp, 2); /* 0x36065E34: push 2 */
   9511     MEM32(ebp + (-0x8)) = eax; /* 0x36065E36: mov dword ptr [ebp - 8], eax */
   9512     MEM32(ebp + (-0x4)) = eax; /* 0x36065E39: mov dword ptr [ebp - 4], eax */
   9513     eax = esi + 0x4; /* 0x36065E3C: lea eax, [esi + 4] */
   9514     PUSH32(esp, eax); /* 0x36065E3F: push eax */
   9515     PUSH32(esp, 0x100u); /* 0x36065E40: push 0x100 */
   9516     PUSH32(esp, eax); /* 0x36065E45: push eax */
   9517     ecx = esi + 0xEC; /* 0x36065E46: lea ecx, [esi + 0xec] */
   9518     RECOMP_ICALL(0x3602EE20u); /* 0x36065E4C: call 0x3602ee20 */ /* not lifted */
   9519     RECOMP_FLAGS_IN();
   9520     edi = POP32_VAL(esp); /* 0x36065E51: pop edi */
   9521     esi = POP32_VAL(esp); /* 0x36065E52: pop esi */
   9522     ebx = POP32_VAL(esp); /* 0x36065E53: pop ebx */
   9523     esp = ebp; /* 0x36065E54: mov esp, ebp */
   9524     ebp = POP32_VAL(esp); /* 0x36065E56: pop ebp */
   9525     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36065E57: ret 8 */
   9526 L_36065E5A:
   9527     MEM32(ebp + (-0x4)) = ebx; /* 0x36065E5A: mov dword ptr [ebp - 4], ebx */
   9528 L_36065E5D:
   9529     edi = POP32_VAL(esp); /* 0x36065E5D: pop edi */
   9530     esi = POP32_VAL(esp); /* 0x36065E5E: pop esi */
   9531     ebx = POP32_VAL(esp); /* 0x36065E5F: pop ebx */
   9532     esp = ebp; /* 0x36065E60: mov esp, ebp */
   9533     ebp = POP32_VAL(esp); /* 0x36065E62: pop ebp */
   9534     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36065E63: ret 8 */
   9535     RECOMP_REGS_OUT();
   9536 }
   9537 
   9538 void sub_36065E70(void) {
   9539     int _fpu_cmp = 0;
   9540     uint32_t _cf = 0;
   9541     int _df = 1;
   9542     uint32_t _flag_k = FK_NONE;
   9543     uint32_t _flag_a = 0, _flag_b = 0;
   9544     uint32_t _itail_tgt = 0;
   9545     RECOMP_REGS_LOCALS
   9546     RECOMP_ENTER(0x36065E70u);
   9547 
   9548 L_36065E70:
   9549     PUSH32(esp, ebp); /* 0x36065E70: push ebp */
   9550     ebp = esp; /* 0x36065E71: mov ebp, esp */
   9551     eax = MEM32(ecx + 0x14); /* 0x36065E73: mov eax, dword ptr [ecx + 0x14] */
   9552     edx = MEM32(eax + 0x4); /* 0x36065E76: mov edx, dword ptr [eax + 4] */
   9553     eax = MEM32(edx); /* 0x36065E79: mov eax, dword ptr [edx] */
   9554     /* cmp eax, edx */ /* 0x36065E7B: cmp eax, edx */
   9555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   9556     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9557     _flag_k = FK_CMP;
   9558     PUSH32(esp, esi); /* 0x36065E7D: push esi */
   9559     PUSH32(esp, edi); /* 0x36065E7E: push edi */
   9560     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065EA5; /* 0x36065E7F: je 0x36065ea5 */
   9561 L_36065E81:
   9562     edi = MEM32(ebp + 0x8); /* 0x36065E81: mov edi, dword ptr [ebp + 8] */
   9563     esi = MEM32(edi + 0x4); /* 0x36065E84: mov esi, dword ptr [edi + 4] */
   9564 L_36065E87:
   9565     ecx = MEM32(eax + 0x8); /* 0x36065E87: mov ecx, dword ptr [eax + 8] */
   9566     /* cmp MEM32(ecx + 0x4), esi */ /* 0x36065E8A: cmp dword ptr [ecx + 4], esi */
   9567     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
   9568     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9569     _flag_k = FK_CMP;
   9570     if (CMP_NE(_flag_a, _flag_b)) goto L_36065E95; /* 0x36065E8D: jne 0x36065e95 */
   9571 L_36065E8F:
   9572     ecx = MEM32(ecx); /* 0x36065E8F: mov ecx, dword ptr [ecx] */
   9573     /* cmp ecx, MEM32(edi) */ /* 0x36065E91: cmp ecx, dword ptr [edi] */
   9574     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9575     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9576     _flag_k = FK_CMP;
   9577     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065E9D; /* 0x36065E93: je 0x36065e9d */
   9578 L_36065E95:
   9579     eax = MEM32(eax); /* 0x36065E95: mov eax, dword ptr [eax] */
   9580     /* cmp eax, edx */ /* 0x36065E97: cmp eax, edx */
   9581     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   9582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9583     _flag_k = FK_CMP;
   9584     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065EA5; /* 0x36065E99: je 0x36065ea5 */
   9585 L_36065E9B:
   9586     RECOMP_BACKEDGE();
   9587     goto L_36065E87; /* 0x36065E9B: jmp 0x36065e87 */
   9588 L_36065E9D:
   9589     edi = POP32_VAL(esp); /* 0x36065E9D: pop edi */
   9590     esi = POP32_VAL(esp); /* 0x36065E9E: pop esi */
   9591     SET_LO8(eax, 1); /* 0x36065E9F: mov al, 1 */
   9592     ebp = POP32_VAL(esp); /* 0x36065EA1: pop ebp */
   9593     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36065EA2: ret 4 */
   9594 L_36065EA5:
   9595     edi = POP32_VAL(esp); /* 0x36065EA5: pop edi */
   9596     esi = POP32_VAL(esp); /* 0x36065EA6: pop esi */
   9597     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   9598     SET_LO8(eax, 0); /* 0x36065EA7: xor al, al */
   9599     _cf = 0;
   9600     _flag_k = FK_NARROW(FK_TEST, 24);
   9601     ebp = POP32_VAL(esp); /* 0x36065EA9: pop ebp */
   9602     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36065EAA: ret 4 */
   9603     RECOMP_REGS_OUT();
   9604 }
   9605 
   9606 void sub_36065EB0(void) {
   9607     int _fpu_cmp = 0;
   9608     uint32_t _cf = 0;
   9609     int _df = 1;
   9610     uint32_t _flag_k = FK_NONE;
   9611     uint32_t _flag_a = 0, _flag_b = 0;
   9612     uint32_t _itail_tgt = 0;
   9613     RECOMP_REGS_LOCALS
   9614     RECOMP_ENTER(0x36065EB0u);
   9615 
   9616 L_36065EB0:
   9617     PUSH32(esp, ebp); /* 0x36065EB0: push ebp */
   9618     ebp = esp; /* 0x36065EB1: mov ebp, esp */
   9619     eax = MEM32(ecx + 0x14); /* 0x36065EB3: mov eax, dword ptr [ecx + 0x14] */
   9620     edx = MEM32(eax + 0x4); /* 0x36065EB6: mov edx, dword ptr [eax + 4] */
   9621     eax = MEM32(edx); /* 0x36065EB9: mov eax, dword ptr [edx] */
   9622     /* cmp eax, edx */ /* 0x36065EBB: cmp eax, edx */
   9623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   9624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9625     _flag_k = FK_CMP;
   9626     PUSH32(esp, esi); /* 0x36065EBD: push esi */
   9627     PUSH32(esp, edi); /* 0x36065EBE: push edi */
   9628     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065EE6; /* 0x36065EBF: je 0x36065ee6 */
   9629 L_36065EC1:
   9630     edi = MEM32(ebp + 0x8); /* 0x36065EC1: mov edi, dword ptr [ebp + 8] */
   9631     esi = MEM32(edi + 0x4); /* 0x36065EC4: mov esi, dword ptr [edi + 4] */
   9632 L_36065EC7:
   9633     ecx = MEM32(eax + 0x8); /* 0x36065EC7: mov ecx, dword ptr [eax + 8] */
   9634     /* cmp MEM32(ecx + 0x4), esi */ /* 0x36065ECA: cmp dword ptr [ecx + 4], esi */
   9635     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
   9636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9637     _flag_k = FK_CMP;
   9638     if (CMP_NE(_flag_a, _flag_b)) goto L_36065ED5; /* 0x36065ECD: jne 0x36065ed5 */
   9639 L_36065ECF:
   9640     ecx = MEM32(ecx); /* 0x36065ECF: mov ecx, dword ptr [ecx] */
   9641     /* cmp ecx, MEM32(edi) */ /* 0x36065ED1: cmp ecx, dword ptr [edi] */
   9642     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi));
   9643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9644     _flag_k = FK_CMP;
   9645     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065EDD; /* 0x36065ED3: je 0x36065edd */
   9646 L_36065ED5:
   9647     eax = MEM32(eax); /* 0x36065ED5: mov eax, dword ptr [eax] */
   9648     /* cmp eax, edx */ /* 0x36065ED7: cmp eax, edx */
   9649     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   9650     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9651     _flag_k = FK_CMP;
   9652     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065EE6; /* 0x36065ED9: je 0x36065ee6 */
   9653 L_36065EDB:
   9654     RECOMP_BACKEDGE();
   9655     goto L_36065EC7; /* 0x36065EDB: jmp 0x36065ec7 */
   9656 L_36065EDD:
   9657     eax = MEM32(eax + 0x8); /* 0x36065EDD: mov eax, dword ptr [eax + 8] */
   9658     edi = POP32_VAL(esp); /* 0x36065EE0: pop edi */
   9659     esi = POP32_VAL(esp); /* 0x36065EE1: pop esi */
   9660     ebp = POP32_VAL(esp); /* 0x36065EE2: pop ebp */
   9661     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36065EE3: ret 4 */
   9662 L_36065EE6:
   9663     edi = POP32_VAL(esp); /* 0x36065EE6: pop edi */
   9664     esi = POP32_VAL(esp); /* 0x36065EE7: pop esi */
   9665     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9666     eax = 0; /* 0x36065EE8: xor eax, eax */
   9667     _cf = 0;
   9668     _flag_k = FK_TEST;
   9669     ebp = POP32_VAL(esp); /* 0x36065EEA: pop ebp */
   9670     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36065EEB: ret 4 */
   9671     RECOMP_REGS_OUT();
   9672 }
   9673 
   9674 void sub_36065EF0(void) {
   9675     int _fpu_cmp = 0;
   9676     uint32_t _cf = 0;
   9677     int _df = 1;
   9678     uint32_t _flag_k = FK_NONE;
   9679     uint32_t _flag_a = 0, _flag_b = 0;
   9680     uint32_t _itail_tgt = 0;
   9681     RECOMP_REGS_LOCALS
   9682     RECOMP_ENTER(0x36065EF0u);
   9683 
   9684 L_36065EF0:
   9685     PUSH32(esp, ebp); /* 0x36065EF0: push ebp */
   9686     ebp = esp; /* 0x36065EF1: mov ebp, esp */
   9687     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   9688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9689     esp = esp - 0x14u; /* 0x36065EF3: sub esp, 0x14 */
   9690     _flag_k = FK_CMP;
   9691     PUSH32(esp, ebx); /* 0x36065EF6: push ebx */
   9692     ebx = MEM32(ebp + 0x8); /* 0x36065EF7: mov ebx, dword ptr [ebp + 8] */
   9693     PUSH32(esp, edi); /* 0x36065EFA: push edi */
   9694     edi = MEM32(0x3616FA8C); /* 0x36065EFB: mov edi, dword ptr [0x3616fa8c] */
   9695     eax = ebp + 0x8; /* 0x36065F01: lea eax, [ebp + 8] */
   9696     PUSH32(esp, eax); /* 0x36065F04: push eax */
   9697     ecx = ebx; /* 0x36065F05: mov ecx, ebx */
   9698     RECOMP_ICALL(edi); /* 0x36065F07: call edi */
   9699     RECOMP_FLAGS_IN();
   9700     ecx = MEM32(ebp + 0x8); /* 0x36065F09: mov ecx, dword ptr [ebp + 8] */
   9701     eax = 0x81E722C3u; /* 0x36065F0C: mov eax, 0x81e722c3 */
   9702     { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36065F11: imul ecx */
   9703       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r;
   9704       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
   9705     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   9706     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9707     edx = edx + ecx; /* 0x36065F13: add edx, ecx */
   9708     _flag_k = FK_ADD;
   9709     if (9u) _cf = (((edx) >> 8) & 1u); /* 0x36065F15: sar edx, 9 */
   9710     if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9711     edx = (uint32_t)((int32_t)edx >> 9u);
   9712     ecx = edx; /* 0x36065F18: mov ecx, edx */
   9713     if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x36065F1A: shr ecx, 0x1f */
   9714     if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9715     ecx = ecx >> 31u; /* 0x36065F1A: shr ecx, 0x1f */
   9716     eax = edx + ecx + (-0x1); /* 0x36065F1D: lea eax, [edx + ecx - 1] */
   9717     /* test eax, eax */ /* 0x36065F21: test eax, eax */
   9718     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9719     _cf = 0;
   9720     _flag_k = FK_TEST;
   9721     MEM32(ebp + 0x8) = eax; /* 0x36065F23: mov dword ptr [ebp + 8], eax */
   9722     MEM32(ebp + (-0x4)) = 0; /* 0x36065F26: mov dword ptr [ebp - 4], 0 */
   9723     if (TEST_LE(_flag_a, _flag_b)) goto L_36066004; /* 0x36065F2D: jle 0x36066004 */
   9724 L_36065F33:
   9725     PUSH32(esp, esi); /* 0x36065F33: push esi */
   9726     goto L_36065F3C; /* 0x36065F34: jmp 0x36065f3c */
   9727 L_36065F36:
   9728     edi = MEM32(0x3616FA8C); /* 0x36065F36: mov edi, dword ptr [0x3616fa8c] */
   9729 L_36065F3C:
   9730     PUSH32(esp, 0x18u); /* 0x36065F3C: push 0x18 */
   9731     RECOMP_ICALL(0x3615FD6Au); /* 0x36065F3E: call 0x3615fd6a */ /* not lifted */
   9732     RECOMP_FLAGS_IN();
   9733     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   9734     esi = 0; /* 0x36065F43: xor esi, esi */
   9735     _cf = 0;
   9736     _flag_k = FK_TEST;
   9737     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9738     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9739     esp = esp + 4; /* 0x36065F45: add esp, 4 */
   9740     _flag_k = FK_ADD;
   9741     /* cmp eax, esi */ /* 0x36065F48: cmp eax, esi */
   9742     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   9743     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9744     _flag_k = FK_CMP;
   9745     if (CMP_EQ(_flag_a, _flag_b)) goto L_36065F53; /* 0x36065F4A: je 0x36065f53 */
   9746 L_36065F4C:
   9747     MEM32(eax) = esi; /* 0x36065F4C: mov dword ptr [eax], esi */
   9748     MEM32(eax + 0x4) = esi; /* 0x36065F4E: mov dword ptr [eax + 4], esi */
   9749     esi = eax; /* 0x36065F51: mov esi, eax */
   9750 L_36065F53:
   9751     PUSH32(esp, esi); /* 0x36065F53: push esi */
   9752     PUSH32(esp, ebx); /* 0x36065F54: push ebx */
   9753     RECOMP_ICALL(0x3615B870u); /* 0x36065F55: call 0x3615b870 */ /* not lifted */
   9754     RECOMP_FLAGS_IN();
   9755     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9756     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9757     esp = esp + 8; /* 0x36065F5A: add esp, 8 */
   9758     _flag_k = FK_ADD;
   9759     edx = ebp + (-0x8); /* 0x36065F5D: lea edx, [ebp - 8] */
   9760     PUSH32(esp, edx); /* 0x36065F60: push edx */
   9761     ecx = ebx; /* 0x36065F61: mov ecx, ebx */
   9762     RECOMP_ICALL(edi); /* 0x36065F63: call edi */
   9763     RECOMP_FLAGS_IN();
   9764     eax = MEM32(ebp + (-0x8)); /* 0x36065F65: mov eax, dword ptr [ebp - 8] */
   9765     ecx = ebp + (-0xC); /* 0x36065F68: lea ecx, [ebp - 0xc] */
   9766     PUSH32(esp, ecx); /* 0x36065F6B: push ecx */
   9767     ecx = ebx; /* 0x36065F6C: mov ecx, ebx */
   9768     MEM32(esi + 0x8) = eax; /* 0x36065F6E: mov dword ptr [esi + 8], eax */
   9769     RECOMP_ICALL(edi); /* 0x36065F71: call edi */
   9770     RECOMP_FLAGS_IN();
   9771     edx = MEM32(ebp + (-0xC)); /* 0x36065F73: mov edx, dword ptr [ebp - 0xc] */
   9772     eax = ebp + (-0x10); /* 0x36065F76: lea eax, [ebp - 0x10] */
   9773     PUSH32(esp, eax); /* 0x36065F79: push eax */
   9774     ecx = ebx; /* 0x36065F7A: mov ecx, ebx */
   9775     MEM32(esi + 0xC) = edx; /* 0x36065F7C: mov dword ptr [esi + 0xc], edx */
   9776     RECOMP_ICALL(edi); /* 0x36065F7F: call edi */
   9777     RECOMP_FLAGS_IN();
   9778     ecx = MEM32(ebp + (-0x10)); /* 0x36065F81: mov ecx, dword ptr [ebp - 0x10] */
   9779     edx = MEM32(ebp + 0xC); /* 0x36065F84: mov edx, dword ptr [ebp + 0xc] */
   9780     MEM32(esi + 0x10) = ecx; /* 0x36065F87: mov dword ptr [esi + 0x10], ecx */
   9781     eax = MEM32(edx + 0x4); /* 0x36065F8A: mov eax, dword ptr [edx + 4] */
   9782     edi = MEM32(eax); /* 0x36065F8D: mov edi, dword ptr [eax] */
   9783     ecx = MEM32(edi + 0x4); /* 0x36065F8F: mov ecx, dword ptr [edi + 4] */
   9784     PUSH32(esp, 0xCu); /* 0x36065F92: push 0xc */
   9785     MEM32(ebp + (-0x14)) = ecx; /* 0x36065F94: mov dword ptr [ebp - 0x14], ecx */
   9786     RECOMP_ICALL(0x3615FD6Au); /* 0x36065F97: call 0x3615fd6a */ /* not lifted */
   9787     RECOMP_FLAGS_IN();
   9788     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9789     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9790     esp = esp + 4; /* 0x36065F9C: add esp, 4 */
   9791     _flag_k = FK_ADD;
   9792     /* test edi, edi */ /* 0x36065F9F: test edi, edi */
   9793     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   9794     _cf = 0;
   9795     _flag_k = FK_TEST;
   9796     ecx = edi; /* 0x36065FA1: mov ecx, edi */
   9797     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065FA7; /* 0x36065FA3: jne 0x36065fa7 */
   9798 L_36065FA5:
   9799     ecx = eax; /* 0x36065FA5: mov ecx, eax */
   9800 L_36065FA7:
   9801     MEM32(eax) = ecx; /* 0x36065FA7: mov dword ptr [eax], ecx */
   9802     ecx = MEM32(ebp + (-0x14)); /* 0x36065FA9: mov ecx, dword ptr [ebp - 0x14] */
   9803     /* test ecx, ecx */ /* 0x36065FAC: test ecx, ecx */
   9804     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   9805     _cf = 0;
   9806     _flag_k = FK_TEST;
   9807     if (TEST_NZ(_flag_a, _flag_b)) goto L_36065FB2; /* 0x36065FAE: jne 0x36065fb2 */
   9808 L_36065FB0:
   9809     ecx = eax; /* 0x36065FB0: mov ecx, eax */
   9810 L_36065FB2:
   9811     MEM32(eax + 0x4) = ecx; /* 0x36065FB2: mov dword ptr [eax + 4], ecx */
   9812     MEM32(edi + 0x4) = eax; /* 0x36065FB5: mov dword ptr [edi + 4], eax */
   9813     edx = MEM32(eax + 0x4); /* 0x36065FB8: mov edx, dword ptr [eax + 4] */
   9814     MEM32(edx) = eax; /* 0x36065FBB: mov dword ptr [edx], eax */
   9815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   9816     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9817     eax = eax + 8; /* 0x36065FBD: add eax, 8 */
   9818     _flag_k = FK_ADD;
   9819     /* test eax, eax */ /* 0x36065FC0: test eax, eax */
   9820     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9821     _cf = 0;
   9822     _flag_k = FK_TEST;
   9823     if (TEST_Z(_flag_a, _flag_b)) goto L_36065FC6; /* 0x36065FC2: je 0x36065fc6 */
   9824 L_36065FC4:
   9825     MEM32(eax) = esi; /* 0x36065FC4: mov dword ptr [eax], esi */
   9826 L_36065FC6:
   9827     eax = MEM32(ebp + 0xC); /* 0x36065FC6: mov eax, dword ptr [ebp + 0xc] */
   9828     _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(1);
   9829     MEM32(eax + 0x8) = MEM32(eax + 0x8) + 1; /* 0x36065FC9: inc dword ptr [eax + 8] */
   9830     _flag_k = FK_INC;
   9831     RECOMP_ICALL(0x3600C230u); /* 0x36065FCC: call 0x3600c230 */ /* not lifted */
   9832     RECOMP_FLAGS_IN();
   9833     ecx = eax; /* 0x36065FD1: mov ecx, eax */
   9834     RECOMP_ICALL(0x3600C7C0u); /* 0x36065FD3: call 0x3600c7c0 */ /* not lifted */
   9835     RECOMP_FLAGS_IN();
   9836     RECOMP_ICALL(0x3615FD8Cu); /* 0x36065FD8: call 0x3615fd8c */ /* not lifted */
   9837     RECOMP_FLAGS_IN();
   9838     eax = eax + eax * 4; /* 0x36065FDD: lea eax, [eax + eax*4] */
   9839     eax = eax + eax * 4; /* 0x36065FE0: lea eax, [eax + eax*4] */
   9840     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x36065FE3: shl eax, 2 */
   9841     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   9842     eax = eax << 2u; /* 0x36065FE3: shl eax, 2 */
   9843     MEM32(esi + 0x8) = eax; /* 0x36065FE6: mov dword ptr [esi + 8], eax */
   9844     eax = MEM32(ebp + (-0x4)); /* 0x36065FE9: mov eax, dword ptr [ebp - 4] */
   9845     ecx = MEM32(ebp + 0x8); /* 0x36065FEC: mov ecx, dword ptr [ebp + 8] */
   9846     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9847     eax = eax + 1; /* 0x36065FEF: inc eax */
   9848     _flag_k = FK_INC;
   9849     /* cmp eax, ecx */ /* 0x36065FF0: cmp eax, ecx */
   9850     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   9851     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9852     _flag_k = FK_CMP;
   9853     MEM32(ebp + (-0x4)) = eax; /* 0x36065FF2: mov dword ptr [ebp - 4], eax */
   9854     RECOMP_BACKEDGE();
   9855     if (CMP_L(_flag_a, _flag_b)) goto L_36065F36; /* 0x36065FF5: jl 0x36065f36 */
   9856 L_36065FFB:
   9857     esi = POP32_VAL(esp); /* 0x36065FFB: pop esi */
   9858     edi = POP32_VAL(esp); /* 0x36065FFC: pop edi */
   9859     eax = ebx; /* 0x36065FFD: mov eax, ebx */
   9860     ebx = POP32_VAL(esp); /* 0x36065FFF: pop ebx */
   9861     esp = ebp; /* 0x36066000: mov esp, ebp */
   9862     ebp = POP32_VAL(esp); /* 0x36066002: pop ebp */
   9863     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066003: ret  */
   9864 L_36066004:
   9865     edi = POP32_VAL(esp); /* 0x36066004: pop edi */
   9866     eax = ebx; /* 0x36066005: mov eax, ebx */
   9867     ebx = POP32_VAL(esp); /* 0x36066007: pop ebx */
   9868     esp = ebp; /* 0x36066008: mov esp, ebp */
   9869     ebp = POP32_VAL(esp); /* 0x3606600A: pop ebp */
   9870     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606600B: ret  */
   9871     RECOMP_REGS_OUT();
   9872 }
   9873 
   9874 void sub_36066010(void) {
   9875     int _fpu_cmp = 0;
   9876     uint32_t _cf = 0;
   9877     int _df = 1;
   9878     uint32_t _flag_k = FK_NONE;
   9879     uint32_t _flag_a = 0, _flag_b = 0;
   9880     uint32_t _itail_tgt = 0;
   9881     RECOMP_REGS_LOCALS
   9882     RECOMP_ENTER(0x36066010u);
   9883 
   9884 L_36066010:
   9885     PUSH32(esp, ebp); /* 0x36066010: push ebp */
   9886     ebp = esp; /* 0x36066011: mov ebp, esp */
   9887     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   9888     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9889     esp = esp - 0x10u; /* 0x36066013: sub esp, 0x10 */
   9890     _flag_k = FK_CMP;
   9891     eax = MEM32(ebp + 0xC); /* 0x36066016: mov eax, dword ptr [ebp + 0xc] */
   9892     /* test eax, eax */ /* 0x36066019: test eax, eax */
   9893     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9894     _cf = 0;
   9895     _flag_k = FK_TEST;
   9896     PUSH32(esp, ebx); /* 0x3606601B: push ebx */
   9897     PUSH32(esp, esi); /* 0x3606601C: push esi */
   9898     PUSH32(esp, edi); /* 0x3606601D: push edi */
   9899     edi = ecx; /* 0x3606601E: mov edi, ecx */
   9900     if (TEST_Z(_flag_a, _flag_b)) goto L_3606627E; /* 0x36066020: jbe 0x3606627e */
   9901 L_36066026:
   9902     eax = MEM32(ebp + 0x8); /* 0x36066026: mov eax, dword ptr [ebp + 8] */
   9903     eax = MEM32(eax + 0x4); /* 0x36066029: mov eax, dword ptr [eax + 4] */
   9904     PUSH32(esp, eax); /* 0x3606602C: push eax */
   9905     RECOMP_ICALL(0x360B4000u); /* 0x3606602D: call 0x360b4000 */ /* not lifted */
   9906     RECOMP_FLAGS_IN();
   9907     esi = eax; /* 0x36066032: mov esi, eax */
   9908     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9909     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9910     esp = esp + 4; /* 0x36066034: add esp, 4 */
   9911     _flag_k = FK_ADD;
   9912     /* test esi, esi */ /* 0x36066037: test esi, esi */
   9913     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   9914     _cf = 0;
   9915     _flag_k = FK_TEST;
   9916     if (TEST_Z(_flag_a, _flag_b)) goto L_3606627E; /* 0x36066039: je 0x3606627e */
   9917 L_3606603F:
   9918     edx = MEM32(esi); /* 0x3606603F: mov edx, dword ptr [esi] */
   9919     PUSH32(esp, 2); /* 0x36066041: push 2 */
   9920     PUSH32(esp, 0x4Bu); /* 0x36066043: push 0x4b */
   9921     ecx = esi; /* 0x36066045: mov ecx, esi */
   9922     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36066047: call dword ptr [edx + 4] */
   9923     RECOMP_FLAGS_IN();
   9924     PUSH32(esp, 2); /* 0x3606604A: push 2 */
   9925     ebx = eax; /* 0x3606604C: mov ebx, eax */
   9926     eax = MEM32(esi); /* 0x3606604E: mov eax, dword ptr [esi] */
   9927     PUSH32(esp, 0x36u); /* 0x36066050: push 0x36 */
   9928     ecx = esi; /* 0x36066052: mov ecx, esi */
   9929     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36066054: call dword ptr [eax + 4] */
   9930     RECOMP_FLAGS_IN();
   9931     SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x36066057: mov cl, byte ptr [ebp + 0x10] */
   9932     /* test LO8(ecx), LO8(ecx) */ /* 0x3606605A: test cl, cl */
   9933     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   9934     _cf = 0;
   9935     _flag_k = FK_NARROW(FK_TEST, 24);
   9936     if (TEST_Z(_flag_a, _flag_b)) goto L_360660AA; /* 0x3606605C: je 0x360660aa */
   9937 L_3606605E:
   9938     PUSH32(esp, eax); /* 0x3606605E: push eax */
   9939     PUSH32(esp, ebx); /* 0x3606605F: push ebx */
   9940     ecx = ebp + (-0x10); /* 0x36066060: lea ecx, [ebp - 0x10] */
   9941     PUSH32(esp, ecx); /* 0x36066063: push ecx */
   9942     ecx = edi; /* 0x36066064: mov ecx, edi */
   9943     RECOMP_ICALL(0x36066C80u); /* 0x36066066: call 0x36066c80 */ /* not lifted */
   9944     RECOMP_FLAGS_IN();
   9945     edx = ebp + (-0x8); /* 0x3606606B: lea edx, [ebp - 8] */
   9946     /* cmp edx, eax */ /* 0x3606606E: cmp edx, eax */
   9947     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   9948     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9949     _flag_k = FK_CMP;
   9950     if (CMP_EQ(_flag_a, _flag_b)) goto L_3606607D; /* 0x36066070: je 0x3606607d */
   9951 L_36066072:
   9952     ecx = MEM32(eax); /* 0x36066072: mov ecx, dword ptr [eax] */
   9953     MEM32(ebp + (-0x8)) = ecx; /* 0x36066074: mov dword ptr [ebp - 8], ecx */
   9954     edx = MEM32(eax + 0x4); /* 0x36066077: mov edx, dword ptr [eax + 4] */
   9955     MEM32(ebp + (-0x4)) = edx; /* 0x3606607A: mov dword ptr [ebp - 4], edx */
   9956 L_3606607D:
   9957     eax = MEM32(ebp + (-0x8)); /* 0x3606607D: mov eax, dword ptr [ebp - 8] */
   9958     /* test eax, eax */ /* 0x36066080: test eax, eax */
   9959     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9960     _cf = 0;
   9961     _flag_k = FK_TEST;
   9962     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606608B; /* 0x36066082: jne 0x3606608b */
   9963 L_36066084:
   9964     eax = MEM32(ebp + (-0x4)); /* 0x36066084: mov eax, dword ptr [ebp - 4] */
   9965     /* test eax, eax */ /* 0x36066087: test eax, eax */
   9966     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   9967     _cf = 0;
   9968     _flag_k = FK_TEST;
   9969     if (TEST_Z(_flag_a, _flag_b)) goto L_360660AA; /* 0x36066089: je 0x360660aa */
   9970 L_3606608B:
   9971     eax = MEM32(edi); /* 0x3606608B: mov eax, dword ptr [edi] */
   9972     edx = MEM32(ebp + 0x1C); /* 0x3606608D: mov edx, dword ptr [ebp + 0x1c] */
   9973     ecx = MEM32(eax + 0x8); /* 0x36066090: mov ecx, dword ptr [eax + 8] */
   9974     PUSH32(esp, edx); /* 0x36066093: push edx */
   9975     PUSH32(esp, 1); /* 0x36066094: push 1 */
   9976     MEM32(ebp + (-0x8)) = ecx; /* 0x36066096: mov dword ptr [ebp - 8], ecx */
   9977     PUSH32(esp, 1); /* 0x36066099: push 1 */
   9978     ecx = ebp + (-0x8); /* 0x3606609B: lea ecx, [ebp - 8] */
   9979     PUSH32(esp, ecx); /* 0x3606609E: push ecx */
   9980     ecx = MEM32(eax + 0x158); /* 0x3606609F: mov ecx, dword ptr [eax + 0x158] */
   9981     RECOMP_ICALL(0x36064EE0u); /* 0x360660A5: call 0x36064ee0 */ /* not lifted */
   9982     RECOMP_FLAGS_IN();
   9983 L_360660AA:
   9984     edx = MEM32(esi); /* 0x360660AA: mov edx, dword ptr [esi] */
   9985     PUSH32(esp, 0x00010000u); /* 0x360660AC: push 0x10000 */
   9986     ecx = esi; /* 0x360660B1: mov ecx, esi */
   9987     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360660B3: call dword ptr [edx + 0x1c] */
   9988     RECOMP_FLAGS_IN();
   9989     /* test LO8(eax), LO8(eax) */ /* 0x360660B6: test al, al */
   9990     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9991     _cf = 0;
   9992     _flag_k = FK_NARROW(FK_TEST, 24);
   9993     if (TEST_Z(_flag_a, _flag_b)) goto L_3606627E; /* 0x360660B8: je 0x3606627e */
   9994 L_360660BE:
   9995     eax = MEM32(esi); /* 0x360660BE: mov eax, dword ptr [esi] */
   9996     PUSH32(esp, 0x8000u); /* 0x360660C0: push 0x8000 */
   9997     ecx = esi; /* 0x360660C5: mov ecx, esi */
   9998     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x360660C7: call dword ptr [eax + 0x1c] */
   9999     RECOMP_FLAGS_IN();
  10000     /* test LO8(eax), LO8(eax) */ /* 0x360660CA: test al, al */
  10001     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10002     _cf = 0;
  10003     _flag_k = FK_NARROW(FK_TEST, 24);
  10004     if (TEST_NZ(_flag_a, _flag_b)) goto L_36066108; /* 0x360660CC: jne 0x36066108 */
  10005 L_360660CE:
  10006     eax = MEM32(edi); /* 0x360660CE: mov eax, dword ptr [edi] */
  10007     ecx = eax + 0xE4; /* 0x360660D0: lea ecx, [eax + 0xe4] */
  10008     eax = MEM32(ecx); /* 0x360660D6: mov eax, dword ptr [ecx] */
  10009     PUSH32(esp, 2); /* 0x360660D8: push 2 */
  10010     PUSH32(esp, 0xB4u); /* 0x360660DA: push 0xb4 */
  10011     MEM32(ebp + 0x1C) = eax; /* 0x360660DF: mov dword ptr [ebp + 0x1c], eax */
  10012     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360660E2: call dword ptr [eax + 4] */
  10013     RECOMP_FLAGS_IN();
  10014     edx = MEM32(esi); /* 0x360660E5: mov edx, dword ptr [esi] */
  10015     PUSH32(esp, 2); /* 0x360660E7: push 2 */
  10016     PUSH32(esp, 0x36u); /* 0x360660E9: push 0x36 */
  10017     ecx = esi; /* 0x360660EB: mov ecx, esi */
  10018     ebx = eax; /* 0x360660ED: mov ebx, eax */
  10019     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360660EF: call dword ptr [edx + 4] */
  10020     RECOMP_FLAGS_IN();
  10021     ecx = MEM32(edi); /* 0x360660F2: mov ecx, dword ptr [edi] */
  10022     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  10023     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10024     ebx = ebx + eax; /* 0x360660F4: add ebx, eax */
  10025     _flag_k = FK_ADD;
  10026     eax = MEM32(ebp + 0x1C); /* 0x360660F6: mov eax, dword ptr [ebp + 0x1c] */
  10027     PUSH32(esp, ebx); /* 0x360660F9: push ebx */
  10028     PUSH32(esp, 0xB4u); /* 0x360660FA: push 0xb4 */
  10029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  10030     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10031     ecx = ecx + 0xE4u; /* 0x360660FF: add ecx, 0xe4 */
  10032     _flag_k = FK_ADD;
  10033     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36066105: call dword ptr [eax + 8] */
  10034     RECOMP_FLAGS_IN();
  10035 L_36066108:
  10036     eax = MEM32(edi); /* 0x36066108: mov eax, dword ptr [edi] */
  10037     edx = MEM32(eax + 0xE4); /* 0x3606610A: mov edx, dword ptr [eax + 0xe4] */
  10038     ecx = eax + 0xE4; /* 0x36066110: lea ecx, [eax + 0xe4] */
  10039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
  10040     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10041     eax = eax + 4; /* 0x36066116: add eax, 4 */
  10042     _flag_k = FK_ADD;
  10043     PUSH32(esp, eax); /* 0x36066119: push eax */
  10044     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3606611A: call dword ptr [edx + 0x24] */
  10045     RECOMP_FLAGS_IN();
  10046     PUSH32(esp, 4); /* 0x3606611D: push 4 */
  10047     ecx = esi; /* 0x3606611F: mov ecx, esi */
  10048     RECOMP_ICALL(0x36002180u); /* 0x36066121: call 0x36002180 */ /* not lifted */
  10049     RECOMP_FLAGS_IN();
  10050     /* test LO8(eax), LO8(eax) */ /* 0x36066126: test al, al */
  10051     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10052     _cf = 0;
  10053     _flag_k = FK_NARROW(FK_TEST, 24);
  10054     if (TEST_Z(_flag_a, _flag_b)) goto L_3606615C; /* 0x36066128: je 0x3606615c */
  10055 L_3606612A:
  10056     eax = MEM32(edi); /* 0x3606612A: mov eax, dword ptr [edi] */
  10057     /* test eax, eax */ /* 0x3606612C: test eax, eax */
  10058     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10059     _cf = 0;
  10060     _flag_k = FK_TEST;
  10061     if (TEST_Z(_flag_a, _flag_b)) goto L_36066138; /* 0x3606612E: je 0x36066138 */
  10062 L_36066130:
  10063     ecx = eax + 0xE4; /* 0x36066130: lea ecx, [eax + 0xe4] */
  10064     goto L_3606613A; /* 0x36066136: jmp 0x3606613a */
  10065 L_36066138:
  10066     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10067     ecx = 0; /* 0x36066138: xor ecx, ecx */
  10068     _cf = 0;
  10069     _flag_k = FK_TEST;
  10070 L_3606613A:
  10071     ebx = MEM32(eax + 0xE4); /* 0x3606613A: mov ebx, dword ptr [eax + 0xe4] */
  10072     eax = MEM32(ebp + 0x18); /* 0x36066140: mov eax, dword ptr [ebp + 0x18] */
  10073     PUSH32(esp, eax); /* 0x36066143: push eax */
  10074     PUSH32(esp, 0); /* 0x36066144: push 0 */
  10075     PUSH32(esp, ecx); /* 0x36066146: push ecx */
  10076     PUSH32(esp, 4); /* 0x36066147: push 4 */
  10077     ecx = esi; /* 0x36066149: mov ecx, esi */
  10078     RECOMP_ICALL(0x360020C0u); /* 0x3606614B: call 0x360020c0 */ /* not lifted */
  10079     RECOMP_FLAGS_IN();
  10080     ecx = MEM32(edi); /* 0x36066150: mov ecx, dword ptr [edi] */
  10081     PUSH32(esp, eax); /* 0x36066152: push eax */
  10082     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  10083     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10084     ecx = ecx + 0xE4u; /* 0x36066153: add ecx, 0xe4 */
  10085     _flag_k = FK_ADD;
  10086     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36066159: call dword ptr [ebx + 0x34] */
  10087     RECOMP_FLAGS_IN();
  10088 L_3606615C:
  10089     PUSH32(esp, 0); /* 0x3606615C: push 0 */
  10090     ecx = esi; /* 0x3606615E: mov ecx, esi */
  10091     RECOMP_ICALL(0x36002180u); /* 0x36066160: call 0x36002180 */ /* not lifted */
  10092     RECOMP_FLAGS_IN();
  10093     /* test LO8(eax), LO8(eax) */ /* 0x36066165: test al, al */
  10094     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10095     _cf = 0;
  10096     _flag_k = FK_NARROW(FK_TEST, 24);
  10097     if (TEST_Z(_flag_a, _flag_b)) goto L_3606619B; /* 0x36066167: je 0x3606619b */
  10098 L_36066169:
  10099     eax = MEM32(edi); /* 0x36066169: mov eax, dword ptr [edi] */
  10100     /* test eax, eax */ /* 0x3606616B: test eax, eax */
  10101     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10102     _cf = 0;
  10103     _flag_k = FK_TEST;
  10104     if (TEST_Z(_flag_a, _flag_b)) goto L_36066177; /* 0x3606616D: je 0x36066177 */
  10105 L_3606616F:
  10106     ecx = eax + 0xE4; /* 0x3606616F: lea ecx, [eax + 0xe4] */
  10107     goto L_36066179; /* 0x36066175: jmp 0x36066179 */
  10108 L_36066177:
  10109     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10110     ecx = 0; /* 0x36066177: xor ecx, ecx */
  10111     _cf = 0;
  10112     _flag_k = FK_TEST;
  10113 L_36066179:
  10114     edx = MEM32(ebp + 0x18); /* 0x36066179: mov edx, dword ptr [ebp + 0x18] */
  10115     ebx = MEM32(eax + 0xE4); /* 0x3606617C: mov ebx, dword ptr [eax + 0xe4] */
  10116     PUSH32(esp, edx); /* 0x36066182: push edx */
  10117     PUSH32(esp, 0); /* 0x36066183: push 0 */
  10118     PUSH32(esp, ecx); /* 0x36066185: push ecx */
  10119     PUSH32(esp, 0); /* 0x36066186: push 0 */
  10120     ecx = esi; /* 0x36066188: mov ecx, esi */
  10121     RECOMP_ICALL(0x360020C0u); /* 0x3606618A: call 0x360020c0 */ /* not lifted */
  10122     RECOMP_FLAGS_IN();
  10123     ecx = MEM32(edi); /* 0x3606618F: mov ecx, dword ptr [edi] */
  10124     PUSH32(esp, eax); /* 0x36066191: push eax */
  10125     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  10126     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10127     ecx = ecx + 0xE4u; /* 0x36066192: add ecx, 0xe4 */
  10128     _flag_k = FK_ADD;
  10129     RECOMP_ICALL(MEM32(ebx + 0x34)); /* 0x36066198: call dword ptr [ebx + 0x34] */
  10130     RECOMP_FLAGS_IN();
  10131 L_3606619B:
  10132     eax = MEM32(edi); /* 0x3606619B: mov eax, dword ptr [edi] */
  10133     edx = ebp + (-0x8); /* 0x3606619D: lea edx, [ebp - 8] */
  10134     PUSH32(esp, edx); /* 0x360661A0: push edx */
  10135     ecx = eax + 0x4; /* 0x360661A1: lea ecx, [eax + 4] */
  10136     PUSH32(esp, 2); /* 0x360661A4: push 2 */
  10137     PUSH32(esp, ecx); /* 0x360661A6: push ecx */
  10138     PUSH32(esp, 0x100u); /* 0x360661A7: push 0x100 */
  10139     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10140     ebx = 0; /* 0x360661AC: xor ebx, ebx */
  10141     _cf = 0;
  10142     _flag_k = FK_TEST;
  10143     PUSH32(esp, ecx); /* 0x360661AE: push ecx */
  10144     ecx = eax + 0xEC; /* 0x360661AF: lea ecx, [eax + 0xec] */
  10145     MEM32(ebp + (-0x8)) = ebx; /* 0x360661B5: mov dword ptr [ebp - 8], ebx */
  10146     MEM32(ebp + (-0x4)) = ebx; /* 0x360661B8: mov dword ptr [ebp - 4], ebx */
  10147     RECOMP_ICALL(0x3602EE20u); /* 0x360661BB: call 0x3602ee20 */ /* not lifted */
  10148     RECOMP_FLAGS_IN();
  10149     eax = MEM32(edi); /* 0x360661C0: mov eax, dword ptr [edi] */
  10150     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360661C2: mov cl, byte ptr [eax + 0x128] */
  10151     /* test LO8(ecx), LO8(ecx) */ /* 0x360661C8: test cl, cl */
  10152     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10153     _cf = 0;
  10154     _flag_k = FK_NARROW(FK_TEST, 24);
  10155     if (TEST_Z(_flag_a, _flag_b)) goto L_360661DC; /* 0x360661CA: je 0x360661dc */
  10156 L_360661CC:
  10157     ecx = MEM32(ebp + 0x8); /* 0x360661CC: mov ecx, dword ptr [ebp + 8] */
  10158     PUSH32(esp, ecx); /* 0x360661CF: push ecx */
  10159     RECOMP_ICALL(0x3601C590u); /* 0x360661D0: call 0x3601c590 */ /* not lifted */
  10160     RECOMP_FLAGS_IN();
  10161     ecx = eax; /* 0x360661D5: mov ecx, eax */
  10162     RECOMP_ICALL(0x3601CF70u); /* 0x360661D7: call 0x3601cf70 */ /* not lifted */
  10163     RECOMP_FLAGS_IN();
  10164 L_360661DC:
  10165     RECOMP_ICALL(0x360F7B00u); /* 0x360661DC: call 0x360f7b00 */ /* not lifted */
  10166     RECOMP_FLAGS_IN();
  10167     MEM32(eax + 0x54) = 4; /* 0x360661E1: mov dword ptr [eax + 0x54], 4 */
  10168     edx = MEM32(edi); /* 0x360661E8: mov edx, dword ptr [edi] */
  10169     eax = MEM32(esi); /* 0x360661EA: mov eax, dword ptr [esi] */
  10170     PUSH32(esp, ebx); /* 0x360661EC: push ebx */
  10171     PUSH32(esp, edx); /* 0x360661ED: push edx */
  10172     PUSH32(esp, 2); /* 0x360661EE: push 2 */
  10173     PUSH32(esp, 0x19Du); /* 0x360661F0: push 0x19d */
  10174     ecx = esi; /* 0x360661F5: mov ecx, esi */
  10175     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360661F7: call dword ptr [eax + 4] */
  10176     RECOMP_FLAGS_IN();
  10177     PUSH32(esp, eax); /* 0x360661FA: push eax */
  10178     RECOMP_ICALL(0x360F7B00u); /* 0x360661FB: call 0x360f7b00 */ /* not lifted */
  10179     RECOMP_FLAGS_IN();
  10180     ecx = eax; /* 0x36066200: mov ecx, eax */
  10181     RECOMP_ICALL(0x360F81E0u); /* 0x36066202: call 0x360f81e0 */ /* not lifted */
  10182     RECOMP_FLAGS_IN();
  10183     ebx = MEM32(ebp + 0xC); /* 0x36066207: mov ebx, dword ptr [ebp + 0xc] */
  10184     esi = eax; /* 0x3606620A: mov esi, eax */
  10185     eax = 0x51EB851Fu; /* 0x3606620C: mov eax, 0x51eb851f */
  10186     { uint64_t _r = (uint64_t)eax * (uint32_t)(ebx); /* 0x36066211: mul ebx */
  10187       eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0;
  10188       _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; }
  10189     if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36066213: shr edx, 5 */
  10190     if (5u) { _flag_a = recomp_flags_pack((edx >> 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10191     edx = edx >> 5u; /* 0x36066213: shr edx, 5 */
  10192     MEM32(ebp + (-0x8)) = edx; /* 0x36066216: mov dword ptr [ebp - 8], edx */
  10193     MEM32(ebp + (-0x4)) = 0; /* 0x36066219: mov dword ptr [ebp - 4], 0 */
  10194     PUSH32(esp, ecx); /* 0x36066220: push ecx */
  10195     fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36066221: fild qword ptr [ebp - 8] */
  10196     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36066224: fstp dword ptr [esp] */
  10197     PUSH32(esp, esi); /* 0x36066227: push esi */
  10198     RECOMP_ICALL(0x360F7B00u); /* 0x36066228: call 0x360f7b00 */ /* not lifted */
  10199     RECOMP_FLAGS_IN();
  10200     ecx = eax; /* 0x3606622D: mov ecx, eax */
  10201     RECOMP_ICALL(0x360FB600u); /* 0x3606622F: call 0x360fb600 */ /* not lifted */
  10202     RECOMP_FLAGS_IN();
  10203     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x36066234: mov al, byte ptr [ebp + 0x10] */
  10204     /* test LO8(eax), LO8(eax) */ /* 0x36066237: test al, al */
  10205     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10206     _cf = 0;
  10207     _flag_k = FK_NARROW(FK_TEST, 24);
  10208     if (TEST_Z(_flag_a, _flag_b)) goto L_3606626C; /* 0x36066239: je 0x3606626c */
  10209 L_3606623B:
  10210     PUSH32(esp, esi); /* 0x3606623B: push esi */
  10211     PUSH32(esp, ebx); /* 0x3606623C: push ebx */
  10212     RECOMP_ICALL(0x3600C230u); /* 0x3606623D: call 0x3600c230 */ /* not lifted */
  10213     RECOMP_FLAGS_IN();
  10214     ecx = eax; /* 0x36066242: mov ecx, eax */
  10215     RECOMP_ICALL(0x3600C7C0u); /* 0x36066244: call 0x3600c7c0 */ /* not lifted */
  10216     RECOMP_FLAGS_IN();
  10217     RECOMP_ICALL(0x3615FD8Cu); /* 0x36066249: call 0x3615fd8c */ /* not lifted */
  10218     RECOMP_FLAGS_IN();
  10219     edx = MEM32(ebp + 0x8); /* 0x3606624E: mov edx, dword ptr [ebp + 8] */
  10220     eax = eax + eax * 4; /* 0x36066251: lea eax, [eax + eax*4] */
  10221     ecx = eax + eax * 4; /* 0x36066254: lea ecx, [eax + eax*4] */
  10222     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36066257: shl ecx, 2 */
  10223     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10224     ecx = ecx << 2u; /* 0x36066257: shl ecx, 2 */
  10225     PUSH32(esp, ecx); /* 0x3606625A: push ecx */
  10226     PUSH32(esp, edx); /* 0x3606625B: push edx */
  10227     ecx = edi; /* 0x3606625C: mov ecx, edi */
  10228     RECOMP_ICALL(0x36065AC0u); /* 0x3606625E: call 0x36065ac0 */ /* not lifted */
  10229     RECOMP_FLAGS_IN();
  10230     edi = POP32_VAL(esp); /* 0x36066263: pop edi */
  10231     esi = POP32_VAL(esp); /* 0x36066264: pop esi */
  10232     ebx = POP32_VAL(esp); /* 0x36066265: pop ebx */
  10233     esp = ebp; /* 0x36066266: mov esp, ebp */
  10234     ebp = POP32_VAL(esp); /* 0x36066268: pop ebp */
  10235     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x36066269: ret 0x18 */
  10236 L_3606626C:
  10237     eax = MEM32(ebp + 0x8); /* 0x3606626C: mov eax, dword ptr [ebp + 8] */
  10238     PUSH32(esp, eax); /* 0x3606626F: push eax */
  10239     ecx = edi; /* 0x36066270: mov ecx, edi */
  10240     RECOMP_ICALL(0x36065EB0u); /* 0x36066272: call 0x36065eb0 */ /* not lifted */
  10241     RECOMP_FLAGS_IN();
  10242     /* test eax, eax */ /* 0x36066277: test eax, eax */
  10243     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10244     _cf = 0;
  10245     _flag_k = FK_TEST;
  10246     if (TEST_Z(_flag_a, _flag_b)) goto L_3606627E; /* 0x36066279: je 0x3606627e */
  10247 L_3606627B:
  10248     MEM32(eax + 0x14) = esi; /* 0x3606627B: mov dword ptr [eax + 0x14], esi */
  10249 L_3606627E:
  10250     edi = POP32_VAL(esp); /* 0x3606627E: pop edi */
  10251     esi = POP32_VAL(esp); /* 0x3606627F: pop esi */
  10252     ebx = POP32_VAL(esp); /* 0x36066280: pop ebx */
  10253     esp = ebp; /* 0x36066281: mov esp, ebp */
  10254     ebp = POP32_VAL(esp); /* 0x36066283: pop ebp */
  10255     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x36066284: ret 0x18 */
  10256     RECOMP_REGS_OUT();
  10257 }
  10258 
  10259 void sub_36066290(void) {
  10260     int _fpu_cmp = 0;
  10261     uint32_t _cf = 0;
  10262     int _df = 1;
  10263     uint32_t _flag_k = FK_NONE;
  10264     uint32_t _flag_a = 0, _flag_b = 0;
  10265     uint32_t _itail_tgt = 0;
  10266     RECOMP_REGS_LOCALS
  10267     RECOMP_ENTER(0x36066290u);
  10268 
  10269 L_36066290:
  10270     PUSH32(esp, ebp); /* 0x36066290: push ebp */
  10271     ebp = esp; /* 0x36066291: mov ebp, esp */
  10272     eax = MEM32(ebp + 0x8); /* 0x36066293: mov eax, dword ptr [ebp + 8] */
  10273     eax = MEM32(eax + 0x4); /* 0x36066296: mov eax, dword ptr [eax + 4] */
  10274     PUSH32(esp, eax); /* 0x36066299: push eax */
  10275     RECOMP_ICALL(0x360B4000u); /* 0x3606629A: call 0x360b4000 */ /* not lifted */
  10276     RECOMP_FLAGS_IN();
  10277     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10278     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10279     esp = esp + 4; /* 0x3606629F: add esp, 4 */
  10280     _flag_k = FK_ADD;
  10281     /* test eax, eax */ /* 0x360662A2: test eax, eax */
  10282     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10283     _cf = 0;
  10284     _flag_k = FK_TEST;
  10285     if (TEST_Z(_flag_a, _flag_b)) goto L_360662B1; /* 0x360662A4: je 0x360662b1 */
  10286 L_360662A6:
  10287     ecx = eax; /* 0x360662A6: mov ecx, eax */
  10288     RECOMP_ICALL(0x36098BE0u); /* 0x360662A8: call 0x36098be0 */ /* not lifted */
  10289     RECOMP_FLAGS_IN();
  10290     ebp = POP32_VAL(esp); /* 0x360662AD: pop ebp */
  10291     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360662AE: ret 4 */
  10292 L_360662B1:
  10293     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10294     eax = 0; /* 0x360662B1: xor eax, eax */
  10295     _cf = 0;
  10296     _flag_k = FK_TEST;
  10297     ebp = POP32_VAL(esp); /* 0x360662B3: pop ebp */
  10298     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360662B4: ret 4 */
  10299     RECOMP_REGS_OUT();
  10300 }
  10301 
  10302 void sub_360662C0(void) {
  10303     int _fpu_cmp = 0;
  10304     uint32_t _cf = 0;
  10305     int _df = 1;
  10306     uint32_t _flag_k = FK_NONE;
  10307     uint32_t _flag_a = 0, _flag_b = 0;
  10308     uint32_t _itail_tgt = 0;
  10309     RECOMP_REGS_LOCALS
  10310     RECOMP_ENTER(0x360662C0u);
  10311 
  10312 L_360662C0:
  10313     PUSH32(esp, ebp); /* 0x360662C0: push ebp */
  10314     ebp = esp; /* 0x360662C1: mov ebp, esp */
  10315     eax = MEM32(ebp + 0x8); /* 0x360662C3: mov eax, dword ptr [ebp + 8] */
  10316     PUSH32(esp, esi); /* 0x360662C6: push esi */
  10317     PUSH32(esp, edi); /* 0x360662C7: push edi */
  10318     PUSH32(esp, eax); /* 0x360662C8: push eax */
  10319     RECOMP_ICALL(0x36065EB0u); /* 0x360662C9: call 0x36065eb0 */ /* not lifted */
  10320     RECOMP_FLAGS_IN();
  10321     esi = eax; /* 0x360662CE: mov esi, eax */
  10322     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10323     edi = 0; /* 0x360662D0: xor edi, edi */
  10324     _cf = 0;
  10325     _flag_k = FK_TEST;
  10326     RECOMP_ICALL(0x3600C230u); /* 0x360662D2: call 0x3600c230 */ /* not lifted */
  10327     RECOMP_FLAGS_IN();
  10328     ecx = eax; /* 0x360662D7: mov ecx, eax */
  10329     RECOMP_ICALL(0x3600C7C0u); /* 0x360662D9: call 0x3600c7c0 */ /* not lifted */
  10330     RECOMP_FLAGS_IN();
  10331     RECOMP_ICALL(0x3615FD8Cu); /* 0x360662DE: call 0x3615fd8c */ /* not lifted */
  10332     RECOMP_FLAGS_IN();
  10333     eax = eax + eax * 4; /* 0x360662E3: lea eax, [eax + eax*4] */
  10334     ecx = eax + eax * 4; /* 0x360662E6: lea ecx, [eax + eax*4] */
  10335     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x360662E9: shl ecx, 2 */
  10336     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10337     ecx = ecx << 2u; /* 0x360662E9: shl ecx, 2 */
  10338     /* test esi, esi */ /* 0x360662EC: test esi, esi */
  10339     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  10340     _cf = 0;
  10341     _flag_k = FK_TEST;
  10342     if (TEST_Z(_flag_a, _flag_b)) goto L_36066302; /* 0x360662EE: je 0x36066302 */
  10343 L_360662F0:
  10344     eax = MEM32(esi + 0xC); /* 0x360662F0: mov eax, dword ptr [esi + 0xc] */
  10345     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8));
  10346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10347     eax = eax + MEM32(esi + 0x8); /* 0x360662F3: add eax, dword ptr [esi + 8] */
  10348     _flag_k = FK_ADD;
  10349     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10350     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10351     eax = eax - ecx; /* 0x360662F6: sub eax, ecx */
  10352     _flag_k = FK_CMP;
  10353     if (/* sub result */ CMP_NS(_flag_a, _flag_b)) goto L_36066304; /* 0x360662F8: jns 0x36066304 */
  10354 L_360662FA:
  10355     edi = POP32_VAL(esp); /* 0x360662FA: pop edi */
  10356     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10357     eax = 0; /* 0x360662FB: xor eax, eax */
  10358     _cf = 0;
  10359     _flag_k = FK_TEST;
  10360     esi = POP32_VAL(esp); /* 0x360662FD: pop esi */
  10361     ebp = POP32_VAL(esp); /* 0x360662FE: pop ebp */
  10362     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360662FF: ret 4 */
  10363 L_36066302:
  10364     eax = edi; /* 0x36066302: mov eax, edi */
  10365 L_36066304:
  10366     edi = POP32_VAL(esp); /* 0x36066304: pop edi */
  10367     esi = POP32_VAL(esp); /* 0x36066305: pop esi */
  10368     ebp = POP32_VAL(esp); /* 0x36066306: pop ebp */
  10369     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36066307: ret 4 */
  10370     RECOMP_REGS_OUT();
  10371 }
  10372 
  10373 void sub_36066310(void) {
  10374     int _fpu_cmp = 0;
  10375     uint32_t _cf = 0;
  10376     int _df = 1;
  10377     uint32_t _flag_k = FK_NONE;
  10378     uint32_t _flag_a = 0, _flag_b = 0;
  10379     uint32_t _itail_tgt = 0;
  10380     RECOMP_REGS_LOCALS
  10381     RECOMP_ENTER(0x36066310u);
  10382 
  10383 L_36066310:
  10384     PUSH32(esp, ebp); /* 0x36066310: push ebp */
  10385     ebp = esp; /* 0x36066311: mov ebp, esp */
  10386     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
  10387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10388     esp = esp - 0x10u; /* 0x36066313: sub esp, 0x10 */
  10389     _flag_k = FK_CMP;
  10390     PUSH32(esp, ebx); /* 0x36066316: push ebx */
  10391     PUSH32(esp, esi); /* 0x36066317: push esi */
  10392     esi = ecx; /* 0x36066318: mov esi, ecx */
  10393     ecx = MEM32(esi); /* 0x3606631A: mov ecx, dword ptr [esi] */
  10394     PUSH32(esp, edi); /* 0x3606631C: push edi */
  10395     edi = MEM32(ebp + 0xC); /* 0x3606631D: mov edi, dword ptr [ebp + 0xc] */
  10396     /* cmp ecx, edi */ /* 0x36066320: cmp ecx, edi */
  10397     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
  10398     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10399     _flag_k = FK_CMP;
  10400     if (CMP_EQ(_flag_a, _flag_b)) goto L_360665D2; /* 0x36066322: je 0x360665d2 */
  10401 L_36066328:
  10402     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36066328: call dword ptr [0x3616ffb0] */
  10403     RECOMP_FLAGS_IN();
  10404     ecx = edi; /* 0x3606632E: mov ecx, edi */
  10405     ebx = eax; /* 0x36066330: mov ebx, eax */
  10406     RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x36066332: call dword ptr [0x3616ffb0] */
  10407     RECOMP_FLAGS_IN();
  10408     ecx = MEM32(eax); /* 0x36066338: mov ecx, dword ptr [eax] */
  10409     edx = MEM32(eax + 0x4); /* 0x3606633A: mov edx, dword ptr [eax + 4] */
  10410     eax = MEM32(eax + 0x8); /* 0x3606633D: mov eax, dword ptr [eax + 8] */
  10411     MEM32(ebp + (-0x10)) = ecx; /* 0x36066340: mov dword ptr [ebp - 0x10], ecx */
  10412     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36066343: fld dword ptr [ebp - 0x10] */
  10413     _st[0] -= (double)*(float*)ADDR(ebx); /* 0x36066346: fsub dword ptr [ebx] */
  10414     MEM32(ebp + (-0xC)) = edx; /* 0x36066348: mov dword ptr [ebp - 0xc], edx */
  10415     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3606634B: fld dword ptr [ebp - 0xc] */
  10416     MEM32(ebp + (-0x8)) = eax; /* 0x3606634E: mov dword ptr [ebp - 8], eax */
  10417     _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x36066351: fsub dword ptr [ebx + 4] */
  10418     ecx = MEM32(esi); /* 0x36066354: mov ecx, dword ptr [esi] */
  10419     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36066356: fld dword ptr [ebp - 8] */
  10420     PUSH32(esp, ecx); /* 0x36066359: push ecx */
  10421     _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x3606635A: fsub dword ptr [ebx + 8] */
  10422     ebx = MEM32(ebp + 0x8); /* 0x3606635D: mov ebx, dword ptr [ebp + 8] */
  10423     ecx = ebx; /* 0x36066360: mov ecx, ebx */
  10424     fp_push(_st[0]); /* 0x36066362: fld st(0) */
  10425     _st[0] *= _st[1]; /* 0x36066364: fmul st(1) */
  10426     fp_push(_st[2]); /* 0x36066366: fld st(2) */
  10427     _st[0] *= _st[3]; /* 0x36066368: fmul st(3) */
  10428     { double _v = fp_pop(); _st[0] += _v; } /* 0x3606636A: faddp st(1) */
  10429     fp_push(_st[3]); /* 0x3606636C: fld st(3) */
  10430     _st[0] *= _st[4]; /* 0x3606636E: fmul st(4) */
  10431     { double _v = fp_pop(); _st[0] += _v; } /* 0x36066370: faddp st(1) */
  10432     _st[0] = sqrt(_st[0]); /* 0x36066372: fsqrt  */
  10433     { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36066374: fstp st(3) */
  10434     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36066376: fstp st(0) */
  10435     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36066378: fstp st(0) */
  10436     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3606637A: fstp dword ptr [ebp - 4] */
  10437     RECOMP_ICALL(0x36098C10u); /* 0x3606637D: call 0x36098c10 */ /* not lifted */
  10438     RECOMP_FLAGS_IN();
  10439     MEM32(ebp + 0xC) = eax; /* 0x36066382: mov dword ptr [ebp + 0xc], eax */
  10440     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x36066385: fild dword ptr [ebp + 0xc] */
  10441     _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x36066388: fcomp dword ptr [ebp - 4] */
  10442     fp_pop();
  10443     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3606638B: fnstsw ax */
  10444     /* test HI8(eax), 1 */ /* 0x3606638D: test ah, 1 */
  10445     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10446     _cf = 0;
  10447     _flag_k = FK_NARROW(FK_TEST, 24);
  10448     if (TEST_Z(_flag_a, _flag_b)) goto L_360663CB; /* 0x36066390: je 0x360663cb */
  10449 L_36066392:
  10450     edx = MEM32(esi); /* 0x36066392: mov edx, dword ptr [esi] */
  10451     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x36066394: mov al, byte ptr [edx + 0x128] */
  10452     /* test LO8(eax), LO8(eax) */ /* 0x3606639A: test al, al */
  10453     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10454     _cf = 0;
  10455     _flag_k = FK_NARROW(FK_TEST, 24);
  10456     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x3606639C: je 0x360665c7 */
  10457 L_360663A2:
  10458     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360663A2: mov al, byte ptr [ebp + 0x10] */
  10459     /* test LO8(eax), LO8(eax) */ /* 0x360663A5: test al, al */
  10460     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10461     _cf = 0;
  10462     _flag_k = FK_NARROW(FK_TEST, 24);
  10463     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x360663A7: je 0x360665c7 */
  10464 L_360663AD:
  10465     PUSH32(esp, 0); /* 0x360663AD: push 0 */
  10466     PUSH32(esp, 0x361C3334u); /* 0x360663AF: push 0x361c3334 */
  10467     RECOMP_ICALL(0x3601C590u); /* 0x360663B4: call 0x3601c590 */ /* not lifted */
  10468     RECOMP_FLAGS_IN();
  10469     ecx = eax; /* 0x360663B9: mov ecx, eax */
  10470     RECOMP_ICALL(0x3601C8C0u); /* 0x360663BB: call 0x3601c8c0 */ /* not lifted */
  10471     RECOMP_FLAGS_IN();
  10472     edi = POP32_VAL(esp); /* 0x360663C0: pop edi */
  10473     esi = POP32_VAL(esp); /* 0x360663C1: pop esi */
  10474     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  10475     SET_LO8(eax, 0); /* 0x360663C2: xor al, al */
  10476     _cf = 0;
  10477     _flag_k = FK_NARROW(FK_TEST, 24);
  10478     ebx = POP32_VAL(esp); /* 0x360663C4: pop ebx */
  10479     esp = ebp; /* 0x360663C5: mov esp, ebp */
  10480     ebp = POP32_VAL(esp); /* 0x360663C7: pop ebp */
  10481     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360663C8: ret 0xc */
  10482 L_360663CB:
  10483     eax = MEM32(ebx); /* 0x360663CB: mov eax, dword ptr [ebx] */
  10484     PUSH32(esp, 0x8000u); /* 0x360663CD: push 0x8000 */
  10485     ecx = ebx; /* 0x360663D2: mov ecx, ebx */
  10486     RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x360663D4: call dword ptr [eax + 0x1c] */
  10487     RECOMP_FLAGS_IN();
  10488     /* test LO8(eax), LO8(eax) */ /* 0x360663D7: test al, al */
  10489     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10490     _cf = 0;
  10491     _flag_k = FK_NARROW(FK_TEST, 24);
  10492     if (TEST_Z(_flag_a, _flag_b)) goto L_36066430; /* 0x360663D9: je 0x36066430 */
  10493 L_360663DB:
  10494     ebx = MEM32(ebp + 0x10); /* 0x360663DB: mov ebx, dword ptr [ebp + 0x10] */
  10495     ecx = MEM32(esi); /* 0x360663DE: mov ecx, dword ptr [esi] */
  10496     ecx = MEM32(ecx + 0x16C); /* 0x360663E0: mov ecx, dword ptr [ecx + 0x16c] */
  10497     PUSH32(esp, 1); /* 0x360663E6: push 1 */
  10498     PUSH32(esp, ebx); /* 0x360663E8: push ebx */
  10499     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4);
  10500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10501     edi = edi + 4; /* 0x360663E9: add edi, 4 */
  10502     _flag_k = FK_ADD;
  10503     PUSH32(esp, edi); /* 0x360663EC: push edi */
  10504     RECOMP_ICALL(0x36079880u); /* 0x360663ED: call 0x36079880 */ /* not lifted */
  10505     RECOMP_FLAGS_IN();
  10506     /* test LO8(eax), LO8(eax) */ /* 0x360663F2: test al, al */
  10507     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10508     _cf = 0;
  10509     _flag_k = FK_NARROW(FK_TEST, 24);
  10510     if (TEST_NZ(_flag_a, _flag_b)) goto L_360665D2; /* 0x360663F4: jne 0x360665d2 */
  10511 L_360663FA:
  10512     edx = MEM32(esi); /* 0x360663FA: mov edx, dword ptr [esi] */
  10513     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x360663FC: mov al, byte ptr [edx + 0x128] */
  10514     /* test LO8(eax), LO8(eax) */ /* 0x36066402: test al, al */
  10515     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10516     _cf = 0;
  10517     _flag_k = FK_NARROW(FK_TEST, 24);
  10518     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x36066404: je 0x360665c7 */
  10519 L_3606640A:
  10520     /* test LO8(ebx), LO8(ebx) */ /* 0x3606640A: test bl, bl */
  10521     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  10522     _cf = 0;
  10523     _flag_k = FK_NARROW(FK_TEST, 24);
  10524     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x3606640C: je 0x360665c7 */
  10525 L_36066412:
  10526     PUSH32(esp, 0); /* 0x36066412: push 0 */
  10527     PUSH32(esp, 0x361C3308u); /* 0x36066414: push 0x361c3308 */
  10528     RECOMP_ICALL(0x3601C590u); /* 0x36066419: call 0x3601c590 */ /* not lifted */
  10529     RECOMP_FLAGS_IN();
  10530     ecx = eax; /* 0x3606641E: mov ecx, eax */
  10531     RECOMP_ICALL(0x3601C8C0u); /* 0x36066420: call 0x3601c8c0 */ /* not lifted */
  10532     RECOMP_FLAGS_IN();
  10533     edi = POP32_VAL(esp); /* 0x36066425: pop edi */
  10534     esi = POP32_VAL(esp); /* 0x36066426: pop esi */
  10535     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  10536     SET_LO8(eax, 0); /* 0x36066427: xor al, al */
  10537     _cf = 0;
  10538     _flag_k = FK_NARROW(FK_TEST, 24);
  10539     ebx = POP32_VAL(esp); /* 0x36066429: pop ebx */
  10540     esp = ebp; /* 0x3606642A: mov esp, ebp */
  10541     ebp = POP32_VAL(esp); /* 0x3606642C: pop ebp */
  10542     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3606642D: ret 0xc */
  10543 L_36066430:
  10544     eax = MEM32(esi); /* 0x36066430: mov eax, dword ptr [esi] */
  10545     ecx = MEM32(eax + 0x170); /* 0x36066432: mov ecx, dword ptr [eax + 0x170] */
  10546     ebx = edi + 0x4; /* 0x36066438: lea ebx, [edi + 4] */
  10547     PUSH32(esp, ebx); /* 0x3606643B: push ebx */
  10548     RECOMP_ICALL(0x36067C20u); /* 0x3606643C: call 0x36067c20 */ /* not lifted */
  10549     RECOMP_FLAGS_IN();
  10550     /* test LO8(eax), LO8(eax) */ /* 0x36066441: test al, al */
  10551     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10552     _cf = 0;
  10553     _flag_k = FK_NARROW(FK_TEST, 24);
  10554     if (TEST_NZ(_flag_a, _flag_b)) goto L_360664AC; /* 0x36066443: jne 0x360664ac */
  10555 L_36066445:
  10556     edx = MEM32(edi + 0xE4); /* 0x36066445: mov edx, dword ptr [edi + 0xe4] */
  10557     ecx = edi + 0xE4; /* 0x3606644B: lea ecx, [edi + 0xe4] */
  10558     PUSH32(esp, 2); /* 0x36066451: push 2 */
  10559     PUSH32(esp, 0x21u); /* 0x36066453: push 0x21 */
  10560     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36066455: call dword ptr [edx + 4] */
  10561     RECOMP_FLAGS_IN();
  10562     /* cmp eax, 3 */ /* 0x36066458: cmp eax, 3 */
  10563     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10565     _flag_k = FK_CMP;
  10566     if (CMP_NE(_flag_a, _flag_b)) goto L_360664AC; /* 0x3606645B: jne 0x360664ac */
  10567 L_3606645D:
  10568     eax = MEM32(esi); /* 0x3606645D: mov eax, dword ptr [esi] */
  10569     ecx = eax + 0xE4; /* 0x3606645F: lea ecx, [eax + 0xe4] */
  10570     eax = MEM32(ecx); /* 0x36066465: mov eax, dword ptr [ecx] */
  10571     PUSH32(esp, 2); /* 0x36066467: push 2 */
  10572     PUSH32(esp, 0x21u); /* 0x36066469: push 0x21 */
  10573     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3606646B: call dword ptr [eax + 4] */
  10574     RECOMP_FLAGS_IN();
  10575     /* cmp eax, 3 */ /* 0x3606646E: cmp eax, 3 */
  10576     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10577     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10578     _flag_k = FK_CMP;
  10579     if (CMP_EQ(_flag_a, _flag_b)) goto L_360664AC; /* 0x36066471: je 0x360664ac */
  10580 L_36066473:
  10581     ecx = MEM32(esi); /* 0x36066473: mov ecx, dword ptr [esi] */
  10582     SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x36066475: mov al, byte ptr [ecx + 0x128] */
  10583     /* test LO8(eax), LO8(eax) */ /* 0x3606647B: test al, al */
  10584     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10585     _cf = 0;
  10586     _flag_k = FK_NARROW(FK_TEST, 24);
  10587     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x3606647D: je 0x360665c7 */
  10588 L_36066483:
  10589     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x36066483: mov al, byte ptr [ebp + 0x10] */
  10590     /* test LO8(eax), LO8(eax) */ /* 0x36066486: test al, al */
  10591     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10592     _cf = 0;
  10593     _flag_k = FK_NARROW(FK_TEST, 24);
  10594     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x36066488: je 0x360665c7 */
  10595 L_3606648E:
  10596     PUSH32(esp, 0); /* 0x3606648E: push 0 */
  10597     PUSH32(esp, 0x361C32D0u); /* 0x36066490: push 0x361c32d0 */
  10598     RECOMP_ICALL(0x3601C590u); /* 0x36066495: call 0x3601c590 */ /* not lifted */
  10599     RECOMP_FLAGS_IN();
  10600     ecx = eax; /* 0x3606649A: mov ecx, eax */
  10601     RECOMP_ICALL(0x3601C8C0u); /* 0x3606649C: call 0x3601c8c0 */ /* not lifted */
  10602     RECOMP_FLAGS_IN();
  10603     edi = POP32_VAL(esp); /* 0x360664A1: pop edi */
  10604     esi = POP32_VAL(esp); /* 0x360664A2: pop esi */
  10605     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  10606     SET_LO8(eax, 0); /* 0x360664A3: xor al, al */
  10607     _cf = 0;
  10608     _flag_k = FK_NARROW(FK_TEST, 24);
  10609     ebx = POP32_VAL(esp); /* 0x360664A5: pop ebx */
  10610     esp = ebp; /* 0x360664A6: mov esp, ebp */
  10611     ebp = POP32_VAL(esp); /* 0x360664A8: pop ebp */
  10612     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360664A9: ret 0xc */
  10613 L_360664AC:
  10614     ecx = MEM32(esi); /* 0x360664AC: mov ecx, dword ptr [esi] */
  10615     RECOMP_ICALL(0x36072000u); /* 0x360664AE: call 0x36072000 */ /* not lifted */
  10616     RECOMP_FLAGS_IN();
  10617     ecx = eax; /* 0x360664B3: mov ecx, eax */
  10618     RECOMP_ICALL(0x360534C0u); /* 0x360664B5: call 0x360534c0 */ /* not lifted */
  10619     RECOMP_FLAGS_IN();
  10620     /* cmp eax, 2 */ /* 0x360664BA: cmp eax, 2 */
  10621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  10622     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10623     _flag_k = FK_CMP;
  10624     if (CMP_EQ(_flag_a, _flag_b)) goto L_360664D6; /* 0x360664BD: je 0x360664d6 */
  10625 L_360664BF:
  10626     ecx = edi; /* 0x360664BF: mov ecx, edi */
  10627     RECOMP_ICALL(0x36072000u); /* 0x360664C1: call 0x36072000 */ /* not lifted */
  10628     RECOMP_FLAGS_IN();
  10629     ecx = eax; /* 0x360664C6: mov ecx, eax */
  10630     RECOMP_ICALL(0x360534C0u); /* 0x360664C8: call 0x360534c0 */ /* not lifted */
  10631     RECOMP_FLAGS_IN();
  10632     /* cmp eax, 2 */ /* 0x360664CD: cmp eax, 2 */
  10633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  10634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10635     _flag_k = FK_CMP;
  10636     if (CMP_NE(_flag_a, _flag_b)) goto L_360665D2; /* 0x360664D0: jne 0x360665d2 */
  10637 L_360664D6:
  10638     ecx = MEM32(esi); /* 0x360664D6: mov ecx, dword ptr [esi] */
  10639     eax = MEM32(ecx + 0x17C); /* 0x360664D8: mov eax, dword ptr [ecx + 0x17c] */
  10640     /* test eax, eax */ /* 0x360664DE: test eax, eax */
  10641     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10642     _cf = 0;
  10643     _flag_k = FK_TEST;
  10644     if (TEST_Z(_flag_a, _flag_b)) goto L_360664F7; /* 0x360664E0: je 0x360664f7 */
  10645 L_360664E2:
  10646     PUSH32(esp, ebx); /* 0x360664E2: push ebx */
  10647     RECOMP_ICALL(0x36071E40u); /* 0x360664E3: call 0x36071e40 */ /* not lifted */
  10648     RECOMP_FLAGS_IN();
  10649     ecx = eax; /* 0x360664E8: mov ecx, eax */
  10650     RECOMP_ICALL(0x36076E20u); /* 0x360664EA: call 0x36076e20 */ /* not lifted */
  10651     RECOMP_FLAGS_IN();
  10652     /* test LO8(eax), LO8(eax) */ /* 0x360664EF: test al, al */
  10653     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10654     _cf = 0;
  10655     _flag_k = FK_NARROW(FK_TEST, 24);
  10656     if (TEST_NZ(_flag_a, _flag_b)) goto L_360665D2; /* 0x360664F1: jne 0x360665d2 */
  10657 L_360664F7:
  10658     ecx = MEM32(esi); /* 0x360664F7: mov ecx, dword ptr [esi] */
  10659     eax = MEM32(ecx + 0x17C); /* 0x360664F9: mov eax, dword ptr [ecx + 0x17c] */
  10660     /* test eax, eax */ /* 0x360664FF: test eax, eax */
  10661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10662     _cf = 0;
  10663     _flag_k = FK_TEST;
  10664     if (TEST_Z(_flag_a, _flag_b)) goto L_36066573; /* 0x36066501: je 0x36066573 */
  10665 L_36066503:
  10666     RECOMP_ICALL(0x36071E40u); /* 0x36066503: call 0x36071e40 */ /* not lifted */
  10667     RECOMP_FLAGS_IN();
  10668     /* cmp MEM32(eax), 0 */ /* 0x36066508: cmp dword ptr [eax], 0 */
  10669     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0);
  10670     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10671     _flag_k = FK_CMP;
  10672     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066573; /* 0x3606650B: je 0x36066573 */
  10673 L_3606650D:
  10674     eax = MEM32(esi); /* 0x3606650D: mov eax, dword ptr [esi] */
  10675     edx = MEM32(edi + 0xE4); /* 0x3606650F: mov edx, dword ptr [edi + 0xe4] */
  10676     ecx = edi + 0xE4; /* 0x36066515: lea ecx, [edi + 0xe4] */
  10677     PUSH32(esp, 2); /* 0x3606651B: push 2 */
  10678     PUSH32(esp, 0x21u); /* 0x3606651D: push 0x21 */
  10679     ebx = eax + 0xE4; /* 0x3606651F: lea ebx, [eax + 0xe4] */
  10680     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36066525: call dword ptr [edx + 4] */
  10681     RECOMP_FLAGS_IN();
  10682     edx = eax; /* 0x36066528: mov edx, eax */
  10683     eax = MEM32(ebx); /* 0x3606652A: mov eax, dword ptr [ebx] */
  10684     PUSH32(esp, 2); /* 0x3606652C: push 2 */
  10685     PUSH32(esp, 0xD5u); /* 0x3606652E: push 0xd5 */
  10686     ecx = ebx; /* 0x36066533: mov ecx, ebx */
  10687     MEM32(ebp + 0xC) = edx; /* 0x36066535: mov dword ptr [ebp + 0xc], edx */
  10688     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36066538: call dword ptr [eax + 4] */
  10689     RECOMP_FLAGS_IN();
  10690     ecx = MEM32(ebp + 0xC); /* 0x3606653B: mov ecx, dword ptr [ebp + 0xc] */
  10691     /* cmp eax, ecx */ /* 0x3606653E: cmp eax, ecx */
  10692     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  10693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10694     _flag_k = FK_CMP;
  10695     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066573; /* 0x36066540: je 0x36066573 */
  10696 L_36066542:
  10697     edx = MEM32(esi); /* 0x36066542: mov edx, dword ptr [esi] */
  10698     SET_LO8(eax, MEM8(edx + 0x128)); /* 0x36066544: mov al, byte ptr [edx + 0x128] */
  10699     /* test LO8(eax), LO8(eax) */ /* 0x3606654A: test al, al */
  10700     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10701     _cf = 0;
  10702     _flag_k = FK_NARROW(FK_TEST, 24);
  10703     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x3606654C: je 0x360665c7 */
  10704 L_3606654E:
  10705     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x3606654E: mov al, byte ptr [ebp + 0x10] */
  10706     /* test LO8(eax), LO8(eax) */ /* 0x36066551: test al, al */
  10707     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10708     _cf = 0;
  10709     _flag_k = FK_NARROW(FK_TEST, 24);
  10710     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x36066553: je 0x360665c7 */
  10711 L_36066555:
  10712     PUSH32(esp, 0); /* 0x36066555: push 0 */
  10713     PUSH32(esp, 0x361C3264u); /* 0x36066557: push 0x361c3264 */
  10714     RECOMP_ICALL(0x3601C590u); /* 0x3606655C: call 0x3601c590 */ /* not lifted */
  10715     RECOMP_FLAGS_IN();
  10716     ecx = eax; /* 0x36066561: mov ecx, eax */
  10717     RECOMP_ICALL(0x3601C8C0u); /* 0x36066563: call 0x3601c8c0 */ /* not lifted */
  10718     RECOMP_FLAGS_IN();
  10719     edi = POP32_VAL(esp); /* 0x36066568: pop edi */
  10720     esi = POP32_VAL(esp); /* 0x36066569: pop esi */
  10721     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  10722     SET_LO8(eax, 0); /* 0x3606656A: xor al, al */
  10723     _cf = 0;
  10724     _flag_k = FK_NARROW(FK_TEST, 24);
  10725     ebx = POP32_VAL(esp); /* 0x3606656C: pop ebx */
  10726     esp = ebp; /* 0x3606656D: mov esp, ebp */
  10727     ebp = POP32_VAL(esp); /* 0x3606656F: pop ebp */
  10728     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36066570: ret 0xc */
  10729 L_36066573:
  10730     ebx = MEM32(esi); /* 0x36066573: mov ebx, dword ptr [esi] */
  10731     eax = MEM32(edi + 0xE4); /* 0x36066575: mov eax, dword ptr [edi + 0xe4] */
  10732     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xE4u);
  10733     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10734     edi = edi + 0xE4u; /* 0x3606657B: add edi, 0xe4 */
  10735     _flag_k = FK_ADD;
  10736     PUSH32(esp, 2); /* 0x36066581: push 2 */
  10737     PUSH32(esp, 0x21u); /* 0x36066583: push 0x21 */
  10738     ecx = edi; /* 0x36066585: mov ecx, edi */
  10739     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xE4u);
  10740     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10741     ebx = ebx + 0xE4u; /* 0x36066587: add ebx, 0xe4 */
  10742     _flag_k = FK_ADD;
  10743     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3606658D: call dword ptr [eax + 4] */
  10744     RECOMP_FLAGS_IN();
  10745     edx = MEM32(ebx); /* 0x36066590: mov edx, dword ptr [ebx] */
  10746     PUSH32(esp, 2); /* 0x36066592: push 2 */
  10747     PUSH32(esp, 0x21u); /* 0x36066594: push 0x21 */
  10748     ecx = ebx; /* 0x36066596: mov ecx, ebx */
  10749     edi = eax; /* 0x36066598: mov edi, eax */
  10750     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3606659A: call dword ptr [edx + 4] */
  10751     RECOMP_FLAGS_IN();
  10752     /* cmp eax, edi */ /* 0x3606659D: cmp eax, edi */
  10753     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  10754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10755     _flag_k = FK_CMP;
  10756     if (CMP_EQ(_flag_a, _flag_b)) goto L_360665D2; /* 0x3606659F: je 0x360665d2 */
  10757 L_360665A1:
  10758     eax = MEM32(esi); /* 0x360665A1: mov eax, dword ptr [esi] */
  10759     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360665A3: mov cl, byte ptr [eax + 0x128] */
  10760     /* test LO8(ecx), LO8(ecx) */ /* 0x360665A9: test cl, cl */
  10761     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10762     _cf = 0;
  10763     _flag_k = FK_NARROW(FK_TEST, 24);
  10764     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x360665AB: je 0x360665c7 */
  10765 L_360665AD:
  10766     SET_LO8(eax, MEM8(ebp + 0x10)); /* 0x360665AD: mov al, byte ptr [ebp + 0x10] */
  10767     /* test LO8(eax), LO8(eax) */ /* 0x360665B0: test al, al */
  10768     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10769     _cf = 0;
  10770     _flag_k = FK_NARROW(FK_TEST, 24);
  10771     if (TEST_Z(_flag_a, _flag_b)) goto L_360665C7; /* 0x360665B2: je 0x360665c7 */
  10772 L_360665B4:
  10773     PUSH32(esp, 0); /* 0x360665B4: push 0 */
  10774     PUSH32(esp, 0x361C3208u); /* 0x360665B6: push 0x361c3208 */
  10775     RECOMP_ICALL(0x3601C590u); /* 0x360665BB: call 0x3601c590 */ /* not lifted */
  10776     RECOMP_FLAGS_IN();
  10777     ecx = eax; /* 0x360665C0: mov ecx, eax */
  10778     RECOMP_ICALL(0x3601C8C0u); /* 0x360665C2: call 0x3601c8c0 */ /* not lifted */
  10779     RECOMP_FLAGS_IN();
  10780 L_360665C7:
  10781     edi = POP32_VAL(esp); /* 0x360665C7: pop edi */
  10782     esi = POP32_VAL(esp); /* 0x360665C8: pop esi */
  10783     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  10784     SET_LO8(eax, 0); /* 0x360665C9: xor al, al */
  10785     _cf = 0;
  10786     _flag_k = FK_NARROW(FK_TEST, 24);
  10787     ebx = POP32_VAL(esp); /* 0x360665CB: pop ebx */
  10788     esp = ebp; /* 0x360665CC: mov esp, ebp */
  10789     ebp = POP32_VAL(esp); /* 0x360665CE: pop ebp */
  10790     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360665CF: ret 0xc */
  10791 L_360665D2:
  10792     edi = POP32_VAL(esp); /* 0x360665D2: pop edi */
  10793     esi = POP32_VAL(esp); /* 0x360665D3: pop esi */
  10794     SET_LO8(eax, 1); /* 0x360665D4: mov al, 1 */
  10795     ebx = POP32_VAL(esp); /* 0x360665D6: pop ebx */
  10796     esp = ebp; /* 0x360665D7: mov esp, ebp */
  10797     ebp = POP32_VAL(esp); /* 0x360665D9: pop ebp */
  10798     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360665DA: ret 0xc */
  10799     RECOMP_REGS_OUT();
  10800 }
  10801 
  10802 void sub_360665E0(void) {
  10803     int _fpu_cmp = 0;
  10804     uint32_t _cf = 0;
  10805     int _df = 1;
  10806     uint32_t _flag_k = FK_NONE;
  10807     uint32_t _flag_a = 0, _flag_b = 0;
  10808     uint32_t _itail_tgt = 0;
  10809     RECOMP_REGS_LOCALS
  10810     RECOMP_ENTER(0x360665E0u);
  10811 
  10812 L_360665E0:
  10813     PUSH32(esp, ebp); /* 0x360665E0: push ebp */
  10814     ebp = esp; /* 0x360665E1: mov ebp, esp */
  10815     PUSH32(esp, ecx); /* 0x360665E3: push ecx */
  10816     PUSH32(esp, ebx); /* 0x360665E4: push ebx */
  10817     PUSH32(esp, esi); /* 0x360665E5: push esi */
  10818     PUSH32(esp, edi); /* 0x360665E6: push edi */
  10819     PUSH32(esp, 0); /* 0x360665E7: push 0 */
  10820     esi = ecx; /* 0x360665E9: mov esi, ecx */
  10821     eax = MEM32(esi); /* 0x360665EB: mov eax, dword ptr [esi] */
  10822     ecx = MEM32(eax + 0x158); /* 0x360665ED: mov ecx, dword ptr [eax + 0x158] */
  10823     PUSH32(esp, 0x361B2CD8u); /* 0x360665F3: push 0x361b2cd8 */
  10824     PUSH32(esp, 0x361B2CC0u); /* 0x360665F8: push 0x361b2cc0 */
  10825     PUSH32(esp, 0); /* 0x360665FD: push 0 */
  10826     RECOMP_ICALL(0x36066B00u); /* 0x360665FF: call 0x36066b00 */ /* not lifted */
  10827     RECOMP_FLAGS_IN();
  10828     PUSH32(esp, eax); /* 0x36066604: push eax */
  10829     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36066605: call dword ptr [0x3616ff70] */
  10830     RECOMP_FLAGS_IN();
  10831     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10833     esp = esp + 4; /* 0x3606660B: add esp, 4 */
  10834     _flag_k = FK_ADD;
  10835     PUSH32(esp, eax); /* 0x3606660E: push eax */
  10836     RECOMP_ICALL(0x3615FD86u); /* 0x3606660F: call 0x3615fd86 */ /* not lifted */
  10837     RECOMP_FLAGS_IN();
  10838     edi = eax; /* 0x36066614: mov edi, eax */
  10839     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10840     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10841     esp = esp + 0x14u; /* 0x36066616: add esp, 0x14 */
  10842     _flag_k = FK_ADD;
  10843     ecx = esi; /* 0x36066619: mov ecx, esi */
  10844     MEM32(ebp + (-0x4)) = edi; /* 0x3606661B: mov dword ptr [ebp - 4], edi */
  10845     RECOMP_ICALL(0x36066840u); /* 0x3606661E: call 0x36066840 */ /* not lifted */
  10846     RECOMP_FLAGS_IN();
  10847     /* test edi, edi */ /* 0x36066623: test edi, edi */
  10848     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10849     _cf = 0;
  10850     _flag_k = FK_TEST;
  10851     ebx = eax; /* 0x36066625: mov ebx, eax */
  10852     if (TEST_Z(_flag_a, _flag_b)) goto L_36066689; /* 0x36066627: je 0x36066689 */
  10853 L_36066629:
  10854     /* test ebx, ebx */ /* 0x36066629: test ebx, ebx */
  10855     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  10856     _cf = 0;
  10857     _flag_k = FK_TEST;
  10858     if (TEST_Z(_flag_a, _flag_b)) goto L_36066689; /* 0x3606662B: je 0x36066689 */
  10859 L_3606662D:
  10860     RECOMP_ICALL(0x360F7B00u); /* 0x3606662D: call 0x360f7b00 */ /* not lifted */
  10861     RECOMP_FLAGS_IN();
  10862     ecx = MEM32(ebp + (-0x4)); /* 0x36066632: mov ecx, dword ptr [ebp - 4] */
  10863     edx = MEM32(esi); /* 0x36066635: mov edx, dword ptr [esi] */
  10864     PUSH32(esp, 1); /* 0x36066637: push 1 */
  10865     PUSH32(esp, 0x3EEu); /* 0x36066639: push 0x3ee */
  10866     PUSH32(esp, ecx); /* 0x3606663E: push ecx */
  10867     edi = eax; /* 0x3606663F: mov edi, eax */
  10868     PUSH32(esp, 0x7D1u); /* 0x36066641: push 0x7d1 */
  10869     PUSH32(esp, edx); /* 0x36066646: push edx */
  10870     ecx = edi; /* 0x36066647: mov ecx, edi */
  10871     RECOMP_ICALL(0x360FBF60u); /* 0x36066649: call 0x360fbf60 */ /* not lifted */
  10872     RECOMP_FLAGS_IN();
  10873     MEM32(ebp + (-0x4)) = eax; /* 0x3606664E: mov dword ptr [ebp - 4], eax */
  10874     RECOMP_ICALL(0x360F7B00u); /* 0x36066651: call 0x360f7b00 */ /* not lifted */
  10875     RECOMP_FLAGS_IN();
  10876     MEM32(eax + 0x54) = 4; /* 0x36066656: mov dword ptr [eax + 0x54], 4 */
  10877     eax = MEM32(ebp + (-0x4)); /* 0x3606665D: mov eax, dword ptr [ebp - 4] */
  10878     edx = MEM32(ebx); /* 0x36066660: mov edx, dword ptr [ebx] */
  10879     PUSH32(esp, eax); /* 0x36066662: push eax */
  10880     PUSH32(esp, 2); /* 0x36066663: push 2 */
  10881     PUSH32(esp, 0x1A3u); /* 0x36066665: push 0x1a3 */
  10882     ecx = ebx; /* 0x3606666A: mov ecx, ebx */
  10883     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3606666C: call dword ptr [edx + 4] */
  10884     RECOMP_FLAGS_IN();
  10885     PUSH32(esp, eax); /* 0x3606666F: push eax */
  10886     ecx = edi; /* 0x36066670: mov ecx, edi */
  10887     RECOMP_ICALL(0x360F8580u); /* 0x36066672: call 0x360f8580 */ /* not lifted */
  10888     RECOMP_FLAGS_IN();
  10889     ecx = MEM32(esi + 0x18); /* 0x36066677: mov ecx, dword ptr [esi + 0x18] */
  10890     edx = MEM32(ecx + 0x4); /* 0x3606667A: mov edx, dword ptr [ecx + 4] */
  10891     ecx = MEM32(edx); /* 0x3606667D: mov ecx, dword ptr [edx] */
  10892     ecx = MEM32(ecx + 0x8); /* 0x3606667F: mov ecx, dword ptr [ecx + 8] */
  10893     /* test ecx, ecx */ /* 0x36066682: test ecx, ecx */
  10894     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  10895     _cf = 0;
  10896     _flag_k = FK_TEST;
  10897     if (TEST_Z(_flag_a, _flag_b)) goto L_36066689; /* 0x36066684: je 0x36066689 */
  10898 L_36066686:
  10899     MEM32(ecx + 0x8) = eax; /* 0x36066686: mov dword ptr [ecx + 8], eax */
  10900 L_36066689:
  10901     edi = POP32_VAL(esp); /* 0x36066689: pop edi */
  10902     esi = POP32_VAL(esp); /* 0x3606668A: pop esi */
  10903     ebx = POP32_VAL(esp); /* 0x3606668B: pop ebx */
  10904     esp = ebp; /* 0x3606668C: mov esp, ebp */
  10905     ebp = POP32_VAL(esp); /* 0x3606668E: pop ebp */
  10906     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606668F: ret  */
  10907     RECOMP_REGS_OUT();
  10908 }
  10909 
  10910 void sub_36066690(void) {
  10911     int _fpu_cmp = 0;
  10912     uint32_t _cf = 0;
  10913     int _df = 1;
  10914     uint32_t _flag_k = FK_NONE;
  10915     uint32_t _flag_a = 0, _flag_b = 0;
  10916     uint32_t _itail_tgt = 0;
  10917     RECOMP_REGS_LOCALS
  10918     RECOMP_ENTER(0x36066690u);
  10919 
  10920 L_36066690:
  10921     PUSH32(esp, ebp); /* 0x36066690: push ebp */
  10922     ebp = esp; /* 0x36066691: mov ebp, esp */
  10923     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  10924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10925     esp = esp - 8; /* 0x36066693: sub esp, 8 */
  10926     _flag_k = FK_CMP;
  10927     PUSH32(esp, esi); /* 0x36066696: push esi */
  10928     esi = ecx; /* 0x36066697: mov esi, ecx */
  10929     PUSH32(esp, edi); /* 0x36066699: push edi */
  10930     edi = MEM32(esi + 0x18); /* 0x3606669A: mov edi, dword ptr [esi + 0x18] */
  10931     eax = MEM32(edi + 0x8); /* 0x3606669D: mov eax, dword ptr [edi + 8] */
  10932     /* test eax, eax */ /* 0x360666A0: test eax, eax */
  10933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10934     _cf = 0;
  10935     _flag_k = FK_TEST;
  10936     if (TEST_NZ(_flag_a, _flag_b)) goto L_360666D3; /* 0x360666A2: jne 0x360666d3 */
  10937 L_360666A4:
  10938     ecx = MEM32(esi); /* 0x360666A4: mov ecx, dword ptr [esi] */
  10939     edi = MEM32(ecx + 0x118); /* 0x360666A6: mov edi, dword ptr [ecx + 0x118] */
  10940     edx = MEM32(ecx + 0xE4); /* 0x360666AC: mov edx, dword ptr [ecx + 0xe4] */
  10941     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  10942     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10943     ecx = ecx + 0xE4u; /* 0x360666B2: add ecx, 0xe4 */
  10944     _flag_k = FK_ADD;
  10945     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFF7Fu);
  10946     edi = edi & 0xFFFFFF7Fu; /* 0x360666B8: and edi, 0xffffff7f */
  10947     _cf = 0;
  10948     _flag_k = FK_TEST;
  10949     eax = edi; /* 0x360666BE: mov eax, edi */
  10950     PUSH32(esp, eax); /* 0x360666C0: push eax */
  10951     PUSH32(esp, 0); /* 0x360666C1: push 0 */
  10952     MEM32(ecx + 0x34) = edi; /* 0x360666C3: mov dword ptr [ecx + 0x34], edi */
  10953     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360666C6: call dword ptr [edx + 8] */
  10954     RECOMP_FLAGS_IN();
  10955     edi = POP32_VAL(esp); /* 0x360666C9: pop edi */
  10956     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  10957     SET_LO8(eax, 0); /* 0x360666CA: xor al, al */
  10958     _cf = 0;
  10959     _flag_k = FK_NARROW(FK_TEST, 24);
  10960     esi = POP32_VAL(esp); /* 0x360666CC: pop esi */
  10961     esp = ebp; /* 0x360666CD: mov esp, ebp */
  10962     ebp = POP32_VAL(esp); /* 0x360666CF: pop ebp */
  10963     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360666D0: ret 4 */
  10964 L_360666D3:
  10965     eax = MEM32(edi + 0x4); /* 0x360666D3: mov eax, dword ptr [edi + 4] */
  10966     eax = MEM32(eax); /* 0x360666D6: mov eax, dword ptr [eax] */
  10967     ecx = MEM32(eax + 0x4); /* 0x360666D8: mov ecx, dword ptr [eax + 4] */
  10968     edx = MEM32(eax); /* 0x360666DB: mov edx, dword ptr [eax] */
  10969     PUSH32(esp, ebx); /* 0x360666DD: push ebx */
  10970     ebx = MEM32(eax + 0x8); /* 0x360666DE: mov ebx, dword ptr [eax + 8] */
  10971     MEM32(ecx) = edx; /* 0x360666E1: mov dword ptr [ecx], edx */
  10972     ecx = MEM32(eax); /* 0x360666E3: mov ecx, dword ptr [eax] */
  10973     edx = MEM32(eax + 0x4); /* 0x360666E5: mov edx, dword ptr [eax + 4] */
  10974     PUSH32(esp, eax); /* 0x360666E8: push eax */
  10975     MEM32(ecx + 0x4) = edx; /* 0x360666E9: mov dword ptr [ecx + 4], edx */
  10976     RECOMP_ICALL(0x3615FCC4u); /* 0x360666EC: call 0x3615fcc4 */ /* not lifted */
  10977     RECOMP_FLAGS_IN();
  10978     eax = MEM32(edi + 0x8); /* 0x360666F1: mov eax, dword ptr [edi + 8] */
  10979     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10980     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10981     esp = esp + 4; /* 0x360666F4: add esp, 4 */
  10982     _flag_k = FK_ADD;
  10983     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  10984     eax = eax - 1; /* 0x360666F7: dec eax */
  10985     _flag_k = FK_DEC;
  10986     PUSH32(esp, ebx); /* 0x360666F8: push ebx */
  10987     ecx = esi; /* 0x360666F9: mov ecx, esi */
  10988     MEM32(edi + 0x8) = eax; /* 0x360666FB: mov dword ptr [edi + 8], eax */
  10989     RECOMP_ICALL(0x36065420u); /* 0x360666FE: call 0x36065420 */ /* not lifted */
  10990     RECOMP_FLAGS_IN();
  10991     ecx = esi; /* 0x36066703: mov ecx, esi */
  10992     MEM8(esi + 0xC) = (uint8_t)(1); /* 0x36066705: mov byte ptr [esi + 0xc], 1 */
  10993     RECOMP_ICALL(0x36066940u); /* 0x36066709: call 0x36066940 */ /* not lifted */
  10994     RECOMP_FLAGS_IN();
  10995     eax = MEM32(esi); /* 0x3606670E: mov eax, dword ptr [esi] */
  10996     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36066710: mov cl, byte ptr [eax + 0x128] */
  10997     /* test LO8(ecx), LO8(ecx) */ /* 0x36066716: test cl, cl */
  10998     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  10999     _cf = 0;
  11000     _flag_k = FK_NARROW(FK_TEST, 24);
  11001     if (TEST_Z(_flag_a, _flag_b)) goto L_36066767; /* 0x36066718: je 0x36066767 */
  11002 L_3606671A:
  11003     ecx = MEM32(ebx); /* 0x3606671A: mov ecx, dword ptr [ebx] */
  11004     edx = MEM32(ecx); /* 0x3606671C: mov edx, dword ptr [ecx] */
  11005     PUSH32(esp, 0x00010000u); /* 0x3606671E: push 0x10000 */
  11006     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36066723: call dword ptr [edx + 0x1c] */
  11007     RECOMP_FLAGS_IN();
  11008     /* test LO8(eax), LO8(eax) */ /* 0x36066726: test al, al */
  11009     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11010     _cf = 0;
  11011     _flag_k = FK_NARROW(FK_TEST, 24);
  11012     if (TEST_NZ(_flag_a, _flag_b)) goto L_36066737; /* 0x36066728: jne 0x36066737 */
  11013 L_3606672A:
  11014     eax = MEM32(ebp + 0x8); /* 0x3606672A: mov eax, dword ptr [ebp + 8] */
  11015     /* cmp eax, 1 */ /* 0x3606672D: cmp eax, 1 */
  11016     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11017     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11018     _flag_k = FK_CMP;
  11019     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066737; /* 0x36066730: je 0x36066737 */
  11020 L_36066732:
  11021     /* cmp eax, 2 */ /* 0x36066732: cmp eax, 2 */
  11022     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  11023     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11024     _flag_k = FK_CMP;
  11025     if (CMP_NE(_flag_a, _flag_b)) goto L_36066767; /* 0x36066735: jne 0x36066767 */
  11026 L_36066737:
  11027     PUSH32(esp, 0); /* 0x36066737: push 0 */
  11028     PUSH32(esp, 0x361C3350u); /* 0x36066739: push 0x361c3350 */
  11029     RECOMP_ICALL(0x3601C590u); /* 0x3606673E: call 0x3601c590 */ /* not lifted */
  11030     RECOMP_FLAGS_IN();
  11031     ecx = eax; /* 0x36066743: mov ecx, eax */
  11032     RECOMP_ICALL(0x3601C8C0u); /* 0x36066745: call 0x3601c8c0 */ /* not lifted */
  11033     RECOMP_FLAGS_IN();
  11034     eax = MEM32(ebx + 0x4); /* 0x3606674A: mov eax, dword ptr [ebx + 4] */
  11035     ecx = ebp + (-0x8); /* 0x3606674D: lea ecx, [ebp - 8] */
  11036     PUSH32(esp, ecx); /* 0x36066750: push ecx */
  11037     MEM32(ebp + (-0x8)) = 3; /* 0x36066751: mov dword ptr [ebp - 8], 3 */
  11038     MEM32(ebp + (-0x4)) = eax; /* 0x36066758: mov dword ptr [ebp - 4], eax */
  11039     RECOMP_ICALL(0x3601C590u); /* 0x3606675B: call 0x3601c590 */ /* not lifted */
  11040     RECOMP_FLAGS_IN();
  11041     ecx = eax; /* 0x36066760: mov ecx, eax */
  11042     RECOMP_ICALL(0x3601D020u); /* 0x36066762: call 0x3601d020 */ /* not lifted */
  11043     RECOMP_FLAGS_IN();
  11044 L_36066767:
  11045     PUSH32(esp, ebx); /* 0x36066767: push ebx */
  11046     RECOMP_ICALL(0x3615FCC4u); /* 0x36066768: call 0x3615fcc4 */ /* not lifted */
  11047     RECOMP_FLAGS_IN();
  11048     edx = MEM32(esi + 0x18); /* 0x3606676D: mov edx, dword ptr [esi + 0x18] */
  11049     eax = MEM32(edx + 0x8); /* 0x36066770: mov eax, dword ptr [edx + 8] */
  11050     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11051     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11052     esp = esp + 4; /* 0x36066773: add esp, 4 */
  11053     _flag_k = FK_ADD;
  11054     /* test eax, eax */ /* 0x36066776: test eax, eax */
  11055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11056     _cf = 0;
  11057     _flag_k = FK_TEST;
  11058     ebx = POP32_VAL(esp); /* 0x36066778: pop ebx */
  11059     if (TEST_NZ(_flag_a, _flag_b)) goto L_360667A0; /* 0x36066779: jne 0x360667a0 */
  11060 L_3606677B:
  11061     ecx = MEM32(esi); /* 0x3606677B: mov ecx, dword ptr [esi] */
  11062     edi = MEM32(ecx + 0x118); /* 0x3606677D: mov edi, dword ptr [ecx + 0x118] */
  11063     edx = MEM32(ecx + 0xE4); /* 0x36066783: mov edx, dword ptr [ecx + 0xe4] */
  11064     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  11065     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11066     ecx = ecx + 0xE4u; /* 0x36066789: add ecx, 0xe4 */
  11067     _flag_k = FK_ADD;
  11068     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFF7Fu);
  11069     edi = edi & 0xFFFFFF7Fu; /* 0x3606678F: and edi, 0xffffff7f */
  11070     _cf = 0;
  11071     _flag_k = FK_TEST;
  11072     eax = edi; /* 0x36066795: mov eax, edi */
  11073     PUSH32(esp, eax); /* 0x36066797: push eax */
  11074     PUSH32(esp, 0); /* 0x36066798: push 0 */
  11075     MEM32(ecx + 0x34) = edi; /* 0x3606679A: mov dword ptr [ecx + 0x34], edi */
  11076     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3606679D: call dword ptr [edx + 8] */
  11077     RECOMP_FLAGS_IN();
  11078 L_360667A0:
  11079     edi = POP32_VAL(esp); /* 0x360667A0: pop edi */
  11080     SET_LO8(eax, 1); /* 0x360667A1: mov al, 1 */
  11081     esi = POP32_VAL(esp); /* 0x360667A3: pop esi */
  11082     esp = ebp; /* 0x360667A4: mov esp, ebp */
  11083     ebp = POP32_VAL(esp); /* 0x360667A6: pop ebp */
  11084     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360667A7: ret 4 */
  11085     RECOMP_REGS_OUT();
  11086 }
  11087 
  11088 void sub_360667B0(void) {
  11089     int _fpu_cmp = 0;
  11090     uint32_t _cf = 0;
  11091     int _df = 1;
  11092     uint32_t _flag_k = FK_NONE;
  11093     uint32_t _flag_a = 0, _flag_b = 0;
  11094     uint32_t _itail_tgt = 0;
  11095     RECOMP_REGS_LOCALS
  11096     RECOMP_ENTER(0x360667B0u);
  11097 
  11098 L_360667B0:
  11099     PUSH32(esp, ebp); /* 0x360667B0: push ebp */
  11100     ebp = esp; /* 0x360667B1: mov ebp, esp */
  11101     PUSH32(esp, 0xFFFFFFFFu); /* 0x360667B3: push -1 */
  11102     PUSH32(esp, 0x36164AFBu); /* 0x360667B5: push 0x36164afb */
  11103     eax = MEM32(FS_BASE + (0)); /* 0x360667BA: mov eax, dword ptr fs:[0] */
  11104     PUSH32(esp, eax); /* 0x360667C0: push eax */
  11105     MEM32(FS_BASE + (0)) = esp; /* 0x360667C1: mov dword ptr fs:[0], esp */
  11106     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
  11107     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11108     esp = esp - 8; /* 0x360667C8: sub esp, 8 */
  11109     _flag_k = FK_CMP;
  11110     PUSH32(esp, esi); /* 0x360667CB: push esi */
  11111     esi = ecx; /* 0x360667CC: mov esi, ecx */
  11112     eax = MEM32(esi); /* 0x360667CE: mov eax, dword ptr [esi] */
  11113     SET_LO8(eax, MEM8(eax + 0x128)); /* 0x360667D0: mov al, byte ptr [eax + 0x128] */
  11114     /* test LO8(eax), LO8(eax) */ /* 0x360667D6: test al, al */
  11115     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  11116     _cf = 0;
  11117     _flag_k = FK_NARROW(FK_TEST, 24);
  11118     if (TEST_Z(_flag_a, _flag_b)) goto L_36066825; /* 0x360667D8: je 0x36066825 */
  11119 L_360667DA:
  11120     PUSH32(esp, 0x34u); /* 0x360667DA: push 0x34 */
  11121     RECOMP_ICALL(0x3615FD6Au); /* 0x360667DC: call 0x3615fd6a */ /* not lifted */
  11122     RECOMP_FLAGS_IN();
  11123     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11124     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11125     esp = esp + 4; /* 0x360667E1: add esp, 4 */
  11126     _flag_k = FK_ADD;
  11127     MEM32(ebp + (-0x14)) = eax; /* 0x360667E4: mov dword ptr [ebp - 0x14], eax */
  11128     /* test eax, eax */ /* 0x360667E7: test eax, eax */
  11129     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11130     _cf = 0;
  11131     _flag_k = FK_TEST;
  11132     MEM32(ebp + (-0x4)) = 0; /* 0x360667E9: mov dword ptr [ebp - 4], 0 */
  11133     if (TEST_Z(_flag_a, _flag_b)) goto L_3606680D; /* 0x360667F0: je 0x3606680d */
  11134 L_360667F2:
  11135     ecx = MEM32(esi); /* 0x360667F2: mov ecx, dword ptr [esi] */
  11136     PUSH32(esp, 0x362EA510u); /* 0x360667F4: push 0x362ea510 */
  11137     PUSH32(esp, 0x6Cu); /* 0x360667F9: push 0x6c */
  11138     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
  11139     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11140     ecx = ecx + 4; /* 0x360667FB: add ecx, 4 */
  11141     _flag_k = FK_ADD;
  11142     PUSH32(esp, 0x362EA510u); /* 0x360667FE: push 0x362ea510 */
  11143     PUSH32(esp, ecx); /* 0x36066803: push ecx */
  11144     ecx = eax; /* 0x36066804: mov ecx, eax */
  11145     RECOMP_ICALL(0x3607D4B0u); /* 0x36066806: call 0x3607d4b0 */ /* not lifted */
  11146     RECOMP_FLAGS_IN();
  11147     goto L_3606680F; /* 0x3606680B: jmp 0x3606680f */
  11148 L_3606680D:
  11149     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11150     eax = 0; /* 0x3606680D: xor eax, eax */
  11151     _cf = 0;
  11152     _flag_k = FK_TEST;
  11153 L_3606680F:
  11154     ecx = MEM32(esi); /* 0x3606680F: mov ecx, dword ptr [esi] */
  11155     edx = ebp + (-0x10); /* 0x36066811: lea edx, [ebp - 0x10] */
  11156     PUSH32(esp, edx); /* 0x36066814: push edx */
  11157     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36066815: mov dword ptr [ebp - 4], 0xffffffff */
  11158     MEM32(ebp + (-0x10)) = eax; /* 0x3606681C: mov dword ptr [ebp - 0x10], eax */
  11159     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3606681F: call dword ptr [0x3617004c] */
  11160     RECOMP_FLAGS_IN();
  11161 L_36066825:
  11162     ecx = MEM32(ebp + (-0xC)); /* 0x36066825: mov ecx, dword ptr [ebp - 0xc] */
  11163     esi = POP32_VAL(esp); /* 0x36066828: pop esi */
  11164     MEM32(FS_BASE + (0)) = ecx; /* 0x36066829: mov dword ptr fs:[0], ecx */
  11165     esp = ebp; /* 0x36066830: mov esp, ebp */
  11166     ebp = POP32_VAL(esp); /* 0x36066832: pop ebp */
  11167     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066833: ret  */
  11168     RECOMP_REGS_OUT();
  11169 }
  11170 
  11171 void sub_3606680F(void) {
  11172     int _fpu_cmp = 0;
  11173     uint32_t _cf = 0;
  11174     int _df = 1;
  11175     uint32_t _flag_k = FK_NONE;
  11176     uint32_t _flag_a = 0, _flag_b = 0;
  11177     uint32_t _itail_tgt = 0;
  11178     RECOMP_REGS_LOCALS
  11179     RECOMP_ENTER(0x3606680Fu);
  11180 
  11181 L_3606680F:
  11182     ecx = MEM32(esi); /* 0x3606680F: mov ecx, dword ptr [esi] */
  11183     edx = ebp + (-0x10); /* 0x36066811: lea edx, [ebp - 0x10] */
  11184     PUSH32(esp, edx); /* 0x36066814: push edx */
  11185     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36066815: mov dword ptr [ebp - 4], 0xffffffff */
  11186     MEM32(ebp + (-0x10)) = eax; /* 0x3606681C: mov dword ptr [ebp - 0x10], eax */
  11187     RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3606681F: call dword ptr [0x3617004c] */
  11188     RECOMP_FLAGS_IN();
  11189     ecx = MEM32(ebp + (-0xC)); /* 0x36066825: mov ecx, dword ptr [ebp - 0xc] */
  11190     esi = POP32_VAL(esp); /* 0x36066828: pop esi */
  11191     MEM32(FS_BASE + (0)) = ecx; /* 0x36066829: mov dword ptr fs:[0], ecx */
  11192     esp = ebp; /* 0x36066830: mov esp, ebp */
  11193     ebp = POP32_VAL(esp); /* 0x36066832: pop ebp */
  11194     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066833: ret  */
  11195     RECOMP_REGS_OUT();
  11196 }
  11197 
  11198 void sub_36066840(void) {
  11199     int _fpu_cmp = 0;
  11200     uint32_t _cf = 0;
  11201     int _df = 1;
  11202     uint32_t _flag_k = FK_NONE;
  11203     uint32_t _flag_a = 0, _flag_b = 0;
  11204     uint32_t _itail_tgt = 0;
  11205     RECOMP_REGS_LOCALS
  11206     RECOMP_ENTER(0x36066840u);
  11207 
  11208 L_36066840:
  11209     eax = MEM32(ecx + 0x18); /* 0x36066840: mov eax, dword ptr [ecx + 0x18] */
  11210     ecx = MEM32(eax + 0x8); /* 0x36066843: mov ecx, dword ptr [eax + 8] */
  11211     /* test ecx, ecx */ /* 0x36066846: test ecx, ecx */
  11212     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  11213     _cf = 0;
  11214     _flag_k = FK_TEST;
  11215     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606684D; /* 0x36066848: jne 0x3606684d */
  11216 L_3606684A:
  11217     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11218     eax = 0; /* 0x3606684A: xor eax, eax */
  11219     _cf = 0;
  11220     _flag_k = FK_TEST;
  11221     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606684C: ret  */
  11222 L_3606684D:
  11223     eax = MEM32(eax + 0x4); /* 0x3606684D: mov eax, dword ptr [eax + 4] */
  11224     eax = MEM32(eax); /* 0x36066850: mov eax, dword ptr [eax] */
  11225     ecx = MEM32(eax + 0x8); /* 0x36066852: mov ecx, dword ptr [eax + 8] */
  11226     eax = MEM32(ecx); /* 0x36066855: mov eax, dword ptr [ecx] */
  11227     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066857: ret  */
  11228     RECOMP_REGS_OUT();
  11229 }
  11230 
  11231 void sub_36066860(void) {
  11232     int _fpu_cmp = 0;
  11233     uint32_t _cf = 0;
  11234     int _df = 1;
  11235     uint32_t _flag_k = FK_NONE;
  11236     uint32_t _flag_a = 0, _flag_b = 0;
  11237     uint32_t _itail_tgt = 0;
  11238     RECOMP_REGS_LOCALS
  11239     RECOMP_ENTER(0x36066860u);
  11240 
  11241 L_36066860:
  11242     eax = MEM32(ecx + 0x18); /* 0x36066860: mov eax, dword ptr [ecx + 0x18] */
  11243     ecx = MEM32(eax + 0x8); /* 0x36066863: mov ecx, dword ptr [eax + 8] */
  11244     /* test ecx, ecx */ /* 0x36066866: test ecx, ecx */
  11245     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  11246     _cf = 0;
  11247     _flag_k = FK_TEST;
  11248     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606686D; /* 0x36066868: jne 0x3606686d */
  11249 L_3606686A:
  11250     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11251     eax = 0; /* 0x3606686A: xor eax, eax */
  11252     _cf = 0;
  11253     _flag_k = FK_TEST;
  11254     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606686C: ret  */
  11255 L_3606686D:
  11256     eax = MEM32(eax + 0x4); /* 0x3606686D: mov eax, dword ptr [eax + 4] */
  11257     eax = MEM32(eax); /* 0x36066870: mov eax, dword ptr [eax] */
  11258     ecx = MEM32(eax + 0x8); /* 0x36066872: mov ecx, dword ptr [eax + 8] */
  11259     eax = MEM32(ecx + 0x20); /* 0x36066875: mov eax, dword ptr [ecx + 0x20] */
  11260     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066878: ret  */
  11261     RECOMP_REGS_OUT();
  11262 }
  11263 
  11264 void sub_36066880(void) {
  11265     int _fpu_cmp = 0;
  11266     uint32_t _cf = 0;
  11267     int _df = 1;
  11268     uint32_t _flag_k = FK_NONE;
  11269     uint32_t _flag_a = 0, _flag_b = 0;
  11270     uint32_t _itail_tgt = 0;
  11271     RECOMP_REGS_LOCALS
  11272     RECOMP_ENTER(0x36066880u);
  11273 
  11274 L_36066880:
  11275     eax = MEM32(ecx + 0x18); /* 0x36066880: mov eax, dword ptr [ecx + 0x18] */
  11276     ecx = MEM32(eax + 0x8); /* 0x36066883: mov ecx, dword ptr [eax + 8] */
  11277     /* test ecx, ecx */ /* 0x36066886: test ecx, ecx */
  11278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  11279     _cf = 0;
  11280     _flag_k = FK_TEST;
  11281     if (TEST_NZ(_flag_a, _flag_b)) goto L_3606688D; /* 0x36066888: jne 0x3606688d */
  11282 L_3606688A:
  11283     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  11284     eax = 0; /* 0x3606688A: xor eax, eax */
  11285     _cf = 0;
  11286     _flag_k = FK_TEST;
  11287     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606688C: ret  */
  11288 L_3606688D:
  11289     eax = MEM32(eax + 0x4); /* 0x3606688D: mov eax, dword ptr [eax + 4] */
  11290     eax = MEM32(eax); /* 0x36066890: mov eax, dword ptr [eax] */
  11291     ecx = MEM32(eax + 0x8); /* 0x36066892: mov ecx, dword ptr [eax + 8] */
  11292     eax = MEM32(ecx + 0xC); /* 0x36066895: mov eax, dword ptr [ecx + 0xc] */
  11293     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066898: ret  */
  11294     RECOMP_REGS_OUT();
  11295 }
  11296 
  11297 void sub_360668A0(void) {
  11298     int _fpu_cmp = 0;
  11299     uint32_t _cf = 0;
  11300     int _df = 1;
  11301     uint32_t _flag_k = FK_NONE;
  11302     uint32_t _flag_a = 0, _flag_b = 0;
  11303     uint32_t _itail_tgt = 0;
  11304     RECOMP_REGS_LOCALS
  11305     RECOMP_ENTER(0x360668A0u);
  11306 
  11307 L_360668A0:
  11308     PUSH32(esp, ebp); /* 0x360668A0: push ebp */
  11309     ebp = esp; /* 0x360668A1: mov ebp, esp */
  11310     PUSH32(esp, ebx); /* 0x360668A3: push ebx */
  11311     ebx = ecx; /* 0x360668A4: mov ebx, ecx */
  11312     eax = MEM32(ebx + 0x18); /* 0x360668A6: mov eax, dword ptr [ebx + 0x18] */
  11313     eax = MEM32(eax + 0x4); /* 0x360668A9: mov eax, dword ptr [eax + 4] */
  11314     PUSH32(esp, esi); /* 0x360668AC: push esi */
  11315     esi = MEM32(eax); /* 0x360668AD: mov esi, dword ptr [eax] */
  11316     /* cmp esi, eax */ /* 0x360668AF: cmp esi, eax */
  11317     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
  11318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11319     _flag_k = FK_CMP;
  11320     PUSH32(esp, edi); /* 0x360668B1: push edi */
  11321     if (CMP_EQ(_flag_a, _flag_b)) goto L_360668D6; /* 0x360668B2: je 0x360668d6 */
  11322 L_360668B4:
  11323     edi = MEM32(ebp + 0x8); /* 0x360668B4: mov edi, dword ptr [ebp + 8] */
  11324 L_360668B7:
  11325     eax = MEM32(esi + 0x8); /* 0x360668B7: mov eax, dword ptr [esi + 8] */
  11326     ecx = MEM32(eax); /* 0x360668BA: mov ecx, dword ptr [eax] */
  11327     edx = MEM32(ecx); /* 0x360668BC: mov edx, dword ptr [ecx] */
  11328     PUSH32(esp, 2); /* 0x360668BE: push 2 */
  11329     PUSH32(esp, 0x195u); /* 0x360668C0: push 0x195 */
  11330     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360668C5: call dword ptr [edx + 4] */
  11331     RECOMP_FLAGS_IN();
  11332     /* cmp eax, edi */ /* 0x360668C8: cmp eax, edi */
  11333     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
  11334     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11335     _flag_k = FK_CMP;
  11336     if (CMP_EQ(_flag_a, _flag_b)) goto L_360668DF; /* 0x360668CA: je 0x360668df */
  11337 L_360668CC:
  11338     eax = MEM32(ebx + 0x18); /* 0x360668CC: mov eax, dword ptr [ebx + 0x18] */
  11339     esi = MEM32(esi); /* 0x360668CF: mov esi, dword ptr [esi] */
  11340     /* cmp esi, MEM32(eax + 0x4) */ /* 0x360668D1: cmp esi, dword ptr [eax + 4] */
  11341     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
  11342     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11343     _flag_k = FK_CMP;
  11344     RECOMP_BACKEDGE();
  11345     if (CMP_NE(_flag_a, _flag_b)) goto L_360668B7; /* 0x360668D4: jne 0x360668b7 */
  11346 L_360668D6:
  11347     edi = POP32_VAL(esp); /* 0x360668D6: pop edi */
  11348     esi = POP32_VAL(esp); /* 0x360668D7: pop esi */
  11349     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  11350     SET_LO8(eax, 0); /* 0x360668D8: xor al, al */
  11351     _cf = 0;
  11352     _flag_k = FK_NARROW(FK_TEST, 24);
  11353     ebx = POP32_VAL(esp); /* 0x360668DA: pop ebx */
  11354     ebp = POP32_VAL(esp); /* 0x360668DB: pop ebp */
  11355     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360668DC: ret 4 */
  11356 L_360668DF:
  11357     edi = POP32_VAL(esp); /* 0x360668DF: pop edi */
  11358     esi = POP32_VAL(esp); /* 0x360668E0: pop esi */
  11359     SET_LO8(eax, 1); /* 0x360668E1: mov al, 1 */
  11360     ebx = POP32_VAL(esp); /* 0x360668E3: pop ebx */
  11361     ebp = POP32_VAL(esp); /* 0x360668E4: pop ebp */
  11362     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360668E5: ret 4 */
  11363     RECOMP_REGS_OUT();
  11364 }
  11365 
  11366 void sub_360668F0(void) {
  11367     int _fpu_cmp = 0;
  11368     uint32_t _cf = 0;
  11369     int _df = 1;
  11370     uint32_t _flag_k = FK_NONE;
  11371     uint32_t _flag_a = 0, _flag_b = 0;
  11372     uint32_t _itail_tgt = 0;
  11373     RECOMP_REGS_LOCALS
  11374     RECOMP_ENTER(0x360668F0u);
  11375 
  11376 L_360668F0:
  11377     PUSH32(esp, ebp); /* 0x360668F0: push ebp */
  11378     ebp = esp; /* 0x360668F1: mov ebp, esp */
  11379     PUSH32(esp, esi); /* 0x360668F3: push esi */
  11380     PUSH32(esp, edi); /* 0x360668F4: push edi */
  11381     edi = ecx; /* 0x360668F5: mov edi, ecx */
  11382     ecx = MEM32(ebp + 0x8); /* 0x360668F7: mov ecx, dword ptr [ebp + 8] */
  11383     /* test ecx, ecx */ /* 0x360668FA: test ecx, ecx */
  11384     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  11385     _cf = 0;
  11386     _flag_k = FK_TEST;
  11387     if (TEST_Z(_flag_a, _flag_b)) goto L_36066931; /* 0x360668FC: je 0x36066931 */
  11388 L_360668FE:
  11389     eax = MEM32(ecx); /* 0x360668FE: mov eax, dword ptr [ecx] */
  11390     PUSH32(esp, 2); /* 0x36066900: push 2 */
  11391     PUSH32(esp, 0x16Eu); /* 0x36066902: push 0x16e */
  11392     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36066907: call dword ptr [eax + 4] */
  11393     RECOMP_FLAGS_IN();
  11394     esi = eax; /* 0x3606690A: mov esi, eax */
  11395     /* test esi, esi */ /* 0x3606690C: test esi, esi */
  11396     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11397     _cf = 0;
  11398     _flag_k = FK_TEST;
  11399     if (TEST_Z(_flag_a, _flag_b)) goto L_36066931; /* 0x3606690E: je 0x36066931 */
  11400 L_36066910:
  11401     RECOMP_ICALL(0x360F7B00u); /* 0x36066910: call 0x360f7b00 */ /* not lifted */
  11402     RECOMP_FLAGS_IN();
  11403     MEM32(eax + 0x54) = 4; /* 0x36066915: mov dword ptr [eax + 0x54], 4 */
  11404     ecx = MEM32(edi); /* 0x3606691C: mov ecx, dword ptr [edi] */
  11405     PUSH32(esp, 0); /* 0x3606691E: push 0 */
  11406     PUSH32(esp, ecx); /* 0x36066920: push ecx */
  11407     PUSH32(esp, esi); /* 0x36066921: push esi */
  11408     RECOMP_ICALL(0x360F7B00u); /* 0x36066922: call 0x360f7b00 */ /* not lifted */
  11409     RECOMP_FLAGS_IN();
  11410     ecx = eax; /* 0x36066927: mov ecx, eax */
  11411     RECOMP_ICALL(0x360F81E0u); /* 0x36066929: call 0x360f81e0 */ /* not lifted */
  11412     RECOMP_FLAGS_IN();
  11413     MEM32(edi + 0x8) = eax; /* 0x3606692E: mov dword ptr [edi + 8], eax */
  11414 L_36066931:
  11415     edi = POP32_VAL(esp); /* 0x36066931: pop edi */
  11416     esi = POP32_VAL(esp); /* 0x36066932: pop esi */
  11417     ebp = POP32_VAL(esp); /* 0x36066933: pop ebp */
  11418     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36066934: ret 4 */
  11419     RECOMP_REGS_OUT();
  11420 }
  11421 
  11422 void sub_36066940(void) {
  11423     int _fpu_cmp = 0;
  11424     uint32_t _cf = 0;
  11425     int _df = 1;
  11426     uint32_t _flag_k = FK_NONE;
  11427     uint32_t _flag_a = 0, _flag_b = 0;
  11428     uint32_t _itail_tgt = 0;
  11429     RECOMP_REGS_LOCALS
  11430     RECOMP_ENTER(0x36066940u);
  11431 
  11432 L_36066940:
  11433     PUSH32(esp, ebp); /* 0x36066940: push ebp */
  11434     ebp = esp; /* 0x36066941: mov ebp, esp */
  11435     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11436     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11437     esp = esp - 0xCu; /* 0x36066943: sub esp, 0xc */
  11438     _flag_k = FK_CMP;
  11439     PUSH32(esp, ebx); /* 0x36066946: push ebx */
  11440     PUSH32(esp, esi); /* 0x36066947: push esi */
  11441     PUSH32(esp, edi); /* 0x36066948: push edi */
  11442     edi = ecx; /* 0x36066949: mov edi, ecx */
  11443     eax = MEM32(edi + 0x8); /* 0x3606694B: mov eax, dword ptr [edi + 8] */
  11444     PUSH32(esp, eax); /* 0x3606694E: push eax */
  11445     RECOMP_ICALL(0x360F7B00u); /* 0x3606694F: call 0x360f7b00 */ /* not lifted */
  11446     RECOMP_FLAGS_IN();
  11447     ecx = eax; /* 0x36066954: mov ecx, eax */
  11448     RECOMP_ICALL(0x360FB530u); /* 0x36066956: call 0x360fb530 */ /* not lifted */
  11449     RECOMP_FLAGS_IN();
  11450     ecx = MEM32(edi); /* 0x3606695B: mov ecx, dword ptr [edi] */
  11451     MEM32(edi + 0x8) = 0; /* 0x3606695D: mov dword ptr [edi + 8], 0 */
  11452     ecx = MEM32(ecx + 0x158); /* 0x36066964: mov ecx, dword ptr [ecx + 0x158] */
  11453     RECOMP_ICALL(0x36066840u); /* 0x3606696A: call 0x36066840 */ /* not lifted */
  11454     RECOMP_FLAGS_IN();
  11455     esi = eax; /* 0x3606696F: mov esi, eax */
  11456     /* test esi, esi */ /* 0x36066971: test esi, esi */
  11457     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11458     _cf = 0;
  11459     _flag_k = FK_TEST;
  11460     if (TEST_Z(_flag_a, _flag_b)) goto L_36066A5E; /* 0x36066973: je 0x36066a5e */
  11461 L_36066979:
  11462     ebx = MEM32(0x3616FFB0); /* 0x36066979: mov ebx, dword ptr [0x3616ffb0] */
  11463     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11464     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11465     esp = esp - 0xCu; /* 0x3606697F: sub esp, 0xc */
  11466     _flag_k = FK_CMP;
  11467     edx = esp; /* 0x36066982: mov edx, esp */
  11468     PUSH32(esp, 1); /* 0x36066984: push 1 */
  11469     PUSH32(esp, 0x64u); /* 0x36066986: push 0x64 */
  11470     PUSH32(esp, 0); /* 0x36066988: push 0 */
  11471     MEM32(ebp + (-0xC)) = 0; /* 0x3606698A: mov dword ptr [ebp - 0xc], 0 */
  11472     eax = MEM32(ebp + (-0xC)); /* 0x36066991: mov eax, dword ptr [ebp - 0xc] */
  11473     MEM32(edx) = eax; /* 0x36066994: mov dword ptr [edx], eax */
  11474     PUSH32(esp, 0); /* 0x36066996: push 0 */
  11475     MEM32(ebp + (-0x8)) = 0; /* 0x36066998: mov dword ptr [ebp - 8], 0 */
  11476     ecx = MEM32(ebp + (-0x8)); /* 0x3606699F: mov ecx, dword ptr [ebp - 8] */
  11477     MEM32(edx + 0x4) = ecx; /* 0x360669A2: mov dword ptr [edx + 4], ecx */
  11478     ecx = MEM32(edi); /* 0x360669A5: mov ecx, dword ptr [edi] */
  11479     PUSH32(esp, 0x3F800000u); /* 0x360669A7: push 0x3f800000 */
  11480     MEM32(ebp + (-0x4)) = 0; /* 0x360669AC: mov dword ptr [ebp - 4], 0 */
  11481     eax = MEM32(ebp + (-0x4)); /* 0x360669B3: mov eax, dword ptr [ebp - 4] */
  11482     PUSH32(esp, 0); /* 0x360669B6: push 0 */
  11483     MEM32(edx + 0x8) = eax; /* 0x360669B8: mov dword ptr [edx + 8], eax */
  11484     RECOMP_ICALL(ebx); /* 0x360669BB: call ebx */
  11485     RECOMP_FLAGS_IN();
  11486     edx = MEM32(eax); /* 0x360669BD: mov edx, dword ptr [eax] */
  11487     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11488     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11489     esp = esp - 0xCu; /* 0x360669BF: sub esp, 0xc */
  11490     _flag_k = FK_CMP;
  11491     ecx = esp; /* 0x360669C2: mov ecx, esp */
  11492     MEM32(ecx) = edx; /* 0x360669C4: mov dword ptr [ecx], edx */
  11493     edx = MEM32(eax + 0x4); /* 0x360669C6: mov edx, dword ptr [eax + 4] */
  11494     eax = MEM32(eax + 0x8); /* 0x360669C9: mov eax, dword ptr [eax + 8] */
  11495     MEM32(ecx + 0x4) = edx; /* 0x360669CC: mov dword ptr [ecx + 4], edx */
  11496     edx = MEM32(esi); /* 0x360669CF: mov edx, dword ptr [esi] */
  11497     PUSH32(esp, 2); /* 0x360669D1: push 2 */
  11498     MEM32(ecx + 0x8) = eax; /* 0x360669D3: mov dword ptr [ecx + 8], eax */
  11499     PUSH32(esp, 0x10Eu); /* 0x360669D6: push 0x10e */
  11500     ecx = esi; /* 0x360669DB: mov ecx, esi */
  11501     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360669DD: call dword ptr [edx + 4] */
  11502     RECOMP_FLAGS_IN();
  11503     PUSH32(esp, eax); /* 0x360669E0: push eax */
  11504     RECOMP_ICALL(0x3601C590u); /* 0x360669E1: call 0x3601c590 */ /* not lifted */
  11505     RECOMP_FLAGS_IN();
  11506     ecx = eax; /* 0x360669E6: mov ecx, eax */
  11507     RECOMP_ICALL(0x3601CBF0u); /* 0x360669E8: call 0x3601cbf0 */ /* not lifted */
  11508     RECOMP_FLAGS_IN();
  11509     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11510     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11511     esp = esp - 0xCu; /* 0x360669ED: sub esp, 0xc */
  11512     _flag_k = FK_CMP;
  11513     eax = esp; /* 0x360669F0: mov eax, esp */
  11514     PUSH32(esp, 1); /* 0x360669F2: push 1 */
  11515     PUSH32(esp, 0x64u); /* 0x360669F4: push 0x64 */
  11516     PUSH32(esp, 0); /* 0x360669F6: push 0 */
  11517     MEM32(ebp + (-0xC)) = 0; /* 0x360669F8: mov dword ptr [ebp - 0xc], 0 */
  11518     ecx = MEM32(ebp + (-0xC)); /* 0x360669FF: mov ecx, dword ptr [ebp - 0xc] */
  11519     MEM32(eax) = ecx; /* 0x36066A02: mov dword ptr [eax], ecx */
  11520     MEM32(ebp + (-0x8)) = 0; /* 0x36066A04: mov dword ptr [ebp - 8], 0 */
  11521     edx = MEM32(ebp + (-0x8)); /* 0x36066A0B: mov edx, dword ptr [ebp - 8] */
  11522     PUSH32(esp, 0); /* 0x36066A0E: push 0 */
  11523     MEM32(ebp + (-0x4)) = 0; /* 0x36066A10: mov dword ptr [ebp - 4], 0 */
  11524     ecx = MEM32(ebp + (-0x4)); /* 0x36066A17: mov ecx, dword ptr [ebp - 4] */
  11525     MEM32(eax + 0x4) = edx; /* 0x36066A1A: mov dword ptr [eax + 4], edx */
  11526     PUSH32(esp, 0x3F800000u); /* 0x36066A1D: push 0x3f800000 */
  11527     MEM32(eax + 0x8) = ecx; /* 0x36066A22: mov dword ptr [eax + 8], ecx */
  11528     ecx = MEM32(edi); /* 0x36066A25: mov ecx, dword ptr [edi] */
  11529     PUSH32(esp, 0x3E4CCCCDu); /* 0x36066A27: push 0x3e4ccccd */
  11530     RECOMP_ICALL(ebx); /* 0x36066A2C: call ebx */
  11531     RECOMP_FLAGS_IN();
  11532     ecx = MEM32(eax); /* 0x36066A2E: mov ecx, dword ptr [eax] */
  11533     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11535     esp = esp - 0xCu; /* 0x36066A30: sub esp, 0xc */
  11536     _flag_k = FK_CMP;
  11537     edx = esp; /* 0x36066A33: mov edx, esp */
  11538     MEM32(edx) = ecx; /* 0x36066A35: mov dword ptr [edx], ecx */
  11539     ecx = MEM32(eax + 0x4); /* 0x36066A37: mov ecx, dword ptr [eax + 4] */
  11540     eax = MEM32(eax + 0x8); /* 0x36066A3A: mov eax, dword ptr [eax + 8] */
  11541     MEM32(edx + 0x4) = ecx; /* 0x36066A3D: mov dword ptr [edx + 4], ecx */
  11542     PUSH32(esp, 2); /* 0x36066A40: push 2 */
  11543     MEM32(edx + 0x8) = eax; /* 0x36066A42: mov dword ptr [edx + 8], eax */
  11544     edx = MEM32(esi); /* 0x36066A45: mov edx, dword ptr [esi] */
  11545     PUSH32(esp, 0x10Fu); /* 0x36066A47: push 0x10f */
  11546     ecx = esi; /* 0x36066A4C: mov ecx, esi */
  11547     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36066A4E: call dword ptr [edx + 4] */
  11548     RECOMP_FLAGS_IN();
  11549     PUSH32(esp, eax); /* 0x36066A51: push eax */
  11550     RECOMP_ICALL(0x3601C590u); /* 0x36066A52: call 0x3601c590 */ /* not lifted */
  11551     RECOMP_FLAGS_IN();
  11552     ecx = eax; /* 0x36066A57: mov ecx, eax */
  11553     RECOMP_ICALL(0x3601CBF0u); /* 0x36066A59: call 0x3601cbf0 */ /* not lifted */
  11554     RECOMP_FLAGS_IN();
  11555 L_36066A5E:
  11556     edi = POP32_VAL(esp); /* 0x36066A5E: pop edi */
  11557     esi = POP32_VAL(esp); /* 0x36066A5F: pop esi */
  11558     ebx = POP32_VAL(esp); /* 0x36066A60: pop ebx */
  11559     esp = ebp; /* 0x36066A61: mov esp, ebp */
  11560     ebp = POP32_VAL(esp); /* 0x36066A63: pop ebp */
  11561     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066A64: ret  */
  11562     RECOMP_REGS_OUT();
  11563 }
  11564 
  11565 void sub_36066A70(void) {
  11566     int _fpu_cmp = 0;
  11567     uint32_t _cf = 0;
  11568     int _df = 1;
  11569     uint32_t _flag_k = FK_NONE;
  11570     uint32_t _flag_a = 0, _flag_b = 0;
  11571     uint32_t _itail_tgt = 0;
  11572     RECOMP_REGS_LOCALS
  11573     RECOMP_ENTER(0x36066A70u);
  11574 
  11575 L_36066A70:
  11576     PUSH32(esp, esi); /* 0x36066A70: push esi */
  11577     esi = ecx; /* 0x36066A71: mov esi, ecx */
  11578     RECOMP_ICALL(0x36066940u); /* 0x36066A73: call 0x36066940 */ /* not lifted */
  11579     RECOMP_FLAGS_IN();
  11580     MEM32(esi + 0x4) = 0; /* 0x36066A78: mov dword ptr [esi + 4], 0 */
  11581     esi = POP32_VAL(esp); /* 0x36066A7F: pop esi */
  11582     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066A80: ret  */
  11583     RECOMP_REGS_OUT();
  11584 }
  11585 
  11586 void sub_36066A90(void) {
  11587     int _fpu_cmp = 0;
  11588     uint32_t _cf = 0;
  11589     int _df = 1;
  11590     uint32_t _flag_k = FK_NONE;
  11591     uint32_t _flag_a = 0, _flag_b = 0;
  11592     uint32_t _itail_tgt = 0;
  11593     RECOMP_REGS_LOCALS
  11594     RECOMP_ENTER(0x36066A90u);
  11595 
  11596 L_36066A90:
  11597     PUSH32(esp, ebp); /* 0x36066A90: push ebp */
  11598     ebp = esp; /* 0x36066A91: mov ebp, esp */
  11599     eax = MEM32(ecx + 0x18); /* 0x36066A93: mov eax, dword ptr [ecx + 0x18] */
  11600     edx = MEM32(eax + 0x4); /* 0x36066A96: mov edx, dword ptr [eax + 4] */
  11601     eax = MEM32(edx); /* 0x36066A99: mov eax, dword ptr [edx] */
  11602     /* cmp eax, edx */ /* 0x36066A9B: cmp eax, edx */
  11603     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  11604     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11605     _flag_k = FK_CMP;
  11606     PUSH32(esp, ebx); /* 0x36066A9D: push ebx */
  11607     PUSH32(esp, esi); /* 0x36066A9E: push esi */
  11608     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066AC3; /* 0x36066A9F: je 0x36066ac3 */
  11609 L_36066AA1:
  11610     esi = MEM32(ebp + 0x8); /* 0x36066AA1: mov esi, dword ptr [ebp + 8] */
  11611 L_36066AA4:
  11612     ecx = MEM32(eax + 0x8); /* 0x36066AA4: mov ecx, dword ptr [eax + 8] */
  11613     /* cmp MEM32(ecx + 0x4), esi */ /* 0x36066AA7: cmp dword ptr [ecx + 4], esi */
  11614     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi);
  11615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11616     _flag_k = FK_CMP;
  11617     if (CMP_NE(_flag_a, _flag_b)) goto L_36066AB3; /* 0x36066AAA: jne 0x36066ab3 */
  11618 L_36066AAC:
  11619     SET_LO8(ebx, MEM8(ecx + 0x1C)); /* 0x36066AAC: mov bl, byte ptr [ecx + 0x1c] */
  11620     /* test LO8(ebx), LO8(ebx) */ /* 0x36066AAF: test bl, bl */
  11621     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24;
  11622     _cf = 0;
  11623     _flag_k = FK_NARROW(FK_TEST, 24);
  11624     if (TEST_NZ(_flag_a, _flag_b)) goto L_36066ABF; /* 0x36066AB1: jne 0x36066abf */
  11625 L_36066AB3:
  11626     eax = MEM32(eax); /* 0x36066AB3: mov eax, dword ptr [eax] */
  11627     /* cmp eax, edx */ /* 0x36066AB5: cmp eax, edx */
  11628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  11629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11630     _flag_k = FK_CMP;
  11631     RECOMP_BACKEDGE();
  11632     if (CMP_NE(_flag_a, _flag_b)) goto L_36066AA4; /* 0x36066AB7: jne 0x36066aa4 */
  11633 L_36066AB9:
  11634     esi = POP32_VAL(esp); /* 0x36066AB9: pop esi */
  11635     ebx = POP32_VAL(esp); /* 0x36066ABA: pop ebx */
  11636     ebp = POP32_VAL(esp); /* 0x36066ABB: pop ebp */
  11637     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36066ABC: ret 4 */
  11638 L_36066ABF:
  11639     MEM8(ecx + 0x1C) = (uint8_t)(0); /* 0x36066ABF: mov byte ptr [ecx + 0x1c], 0 */
  11640 L_36066AC3:
  11641     esi = POP32_VAL(esp); /* 0x36066AC3: pop esi */
  11642     ebx = POP32_VAL(esp); /* 0x36066AC4: pop ebx */
  11643     ebp = POP32_VAL(esp); /* 0x36066AC5: pop ebp */
  11644     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36066AC6: ret 4 */
  11645     RECOMP_REGS_OUT();
  11646 }
  11647 
  11648 void sub_36066AD0(void) {
  11649     int _fpu_cmp = 0;
  11650     uint32_t _cf = 0;
  11651     int _df = 1;
  11652     uint32_t _flag_k = FK_NONE;
  11653     uint32_t _flag_a = 0, _flag_b = 0;
  11654     uint32_t _itail_tgt = 0;
  11655     RECOMP_REGS_LOCALS
  11656     RECOMP_ENTER(0x36066AD0u);
  11657 
  11658 L_36066AD0:
  11659     PUSH32(esp, ebp); /* 0x36066AD0: push ebp */
  11660     ebp = esp; /* 0x36066AD1: mov ebp, esp */
  11661     eax = MEM32(ecx + 0x18); /* 0x36066AD3: mov eax, dword ptr [ecx + 0x18] */
  11662     ecx = MEM32(eax + 0x4); /* 0x36066AD6: mov ecx, dword ptr [eax + 4] */
  11663     eax = MEM32(ecx); /* 0x36066AD9: mov eax, dword ptr [ecx] */
  11664     /* cmp eax, ecx */ /* 0x36066ADB: cmp eax, ecx */
  11665     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  11666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11667     _flag_k = FK_CMP;
  11668     PUSH32(esp, esi); /* 0x36066ADD: push esi */
  11669     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066AF1; /* 0x36066ADE: je 0x36066af1 */
  11670 L_36066AE0:
  11671     edx = MEM32(ebp + 0x8); /* 0x36066AE0: mov edx, dword ptr [ebp + 8] */
  11672 L_36066AE3:
  11673     esi = MEM32(eax + 0x8); /* 0x36066AE3: mov esi, dword ptr [eax + 8] */
  11674     /* cmp MEM32(esi + 0x4), edx */ /* 0x36066AE6: cmp dword ptr [esi + 4], edx */
  11675     _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(edx);
  11676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11677     _flag_k = FK_CMP;
  11678     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066AF8; /* 0x36066AE9: je 0x36066af8 */
  11679 L_36066AEB:
  11680     eax = MEM32(eax); /* 0x36066AEB: mov eax, dword ptr [eax] */
  11681     /* cmp eax, ecx */ /* 0x36066AED: cmp eax, ecx */
  11682     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  11683     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11684     _flag_k = FK_CMP;
  11685     RECOMP_BACKEDGE();
  11686     if (CMP_NE(_flag_a, _flag_b)) goto L_36066AE3; /* 0x36066AEF: jne 0x36066ae3 */
  11687 L_36066AF1:
  11688     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  11689     SET_LO8(eax, 0); /* 0x36066AF1: xor al, al */
  11690     _cf = 0;
  11691     _flag_k = FK_NARROW(FK_TEST, 24);
  11692     esi = POP32_VAL(esp); /* 0x36066AF3: pop esi */
  11693     ebp = POP32_VAL(esp); /* 0x36066AF4: pop ebp */
  11694     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36066AF5: ret 4 */
  11695 L_36066AF8:
  11696     SET_LO8(eax, 1); /* 0x36066AF8: mov al, 1 */
  11697     esi = POP32_VAL(esp); /* 0x36066AFA: pop esi */
  11698     ebp = POP32_VAL(esp); /* 0x36066AFB: pop ebp */
  11699     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36066AFC: ret 4 */
  11700     RECOMP_REGS_OUT();
  11701 }
  11702 
  11703 void sub_36066B00(void) {
  11704     int _fpu_cmp = 0;
  11705     uint32_t _cf = 0;
  11706     int _df = 1;
  11707     uint32_t _flag_k = FK_NONE;
  11708     uint32_t _flag_a = 0, _flag_b = 0;
  11709     uint32_t _itail_tgt = 0;
  11710     RECOMP_REGS_LOCALS
  11711     RECOMP_ENTER(0x36066B00u);
  11712 
  11713 L_36066B00:
  11714     eax = MEM32(ecx + 0x18); /* 0x36066B00: mov eax, dword ptr [ecx + 0x18] */
  11715     ecx = MEM32(eax + 0x8); /* 0x36066B03: mov ecx, dword ptr [eax + 8] */
  11716     /* test ecx, ecx */ /* 0x36066B06: test ecx, ecx */
  11717     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  11718     _cf = 0;
  11719     _flag_k = FK_TEST;
  11720     if (TEST_NZ(_flag_a, _flag_b)) goto L_36066B10; /* 0x36066B08: jne 0x36066b10 */
  11721 L_36066B0A:
  11722     eax = 0x362EA510u; /* 0x36066B0A: mov eax, 0x362ea510 */
  11723     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066B0F: ret  */
  11724 L_36066B10:
  11725     eax = MEM32(eax + 0x4); /* 0x36066B10: mov eax, dword ptr [eax + 4] */
  11726     eax = MEM32(eax); /* 0x36066B13: mov eax, dword ptr [eax] */
  11727     eax = MEM32(eax + 0x8); /* 0x36066B15: mov eax, dword ptr [eax + 8] */
  11728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u);
  11729     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11730     eax = eax + 0x24u; /* 0x36066B18: add eax, 0x24 */
  11731     _flag_k = FK_ADD;
  11732     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36066B1B: ret  */
  11733     RECOMP_REGS_OUT();
  11734 }
  11735 
  11736 void sub_36066B20(void) {
  11737     int _fpu_cmp = 0;
  11738     uint32_t _cf = 0;
  11739     int _df = 1;
  11740     uint32_t _flag_k = FK_NONE;
  11741     uint32_t _flag_a = 0, _flag_b = 0;
  11742     uint32_t _itail_tgt = 0;
  11743     RECOMP_REGS_LOCALS
  11744     RECOMP_ENTER(0x36066B20u);
  11745 
  11746 L_36066B20:
  11747     PUSH32(esp, ebp); /* 0x36066B20: push ebp */
  11748     ebp = esp; /* 0x36066B21: mov ebp, esp */
  11749     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x104u);
  11750     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11751     esp = esp - 0x104u; /* 0x36066B23: sub esp, 0x104 */
  11752     _flag_k = FK_CMP;
  11753     eax = MEM32(ebp + 0x8); /* 0x36066B29: mov eax, dword ptr [ebp + 8] */
  11754     PUSH32(esp, ebx); /* 0x36066B2C: push ebx */
  11755     PUSH32(esp, esi); /* 0x36066B2D: push esi */
  11756     PUSH32(esp, 0); /* 0x36066B2E: push 0 */
  11757     PUSH32(esp, 0x361B2CD8u); /* 0x36066B30: push 0x361b2cd8 */
  11758     PUSH32(esp, 0x361B2CC0u); /* 0x36066B35: push 0x361b2cc0 */
  11759     PUSH32(esp, 0); /* 0x36066B3A: push 0 */
  11760     PUSH32(esp, eax); /* 0x36066B3C: push eax */
  11761     esi = ecx; /* 0x36066B3D: mov esi, ecx */
  11762     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36066B3F: call dword ptr [0x3616ff70] */
  11763     RECOMP_FLAGS_IN();
  11764     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11765     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11766     esp = esp + 4; /* 0x36066B45: add esp, 4 */
  11767     _flag_k = FK_ADD;
  11768     PUSH32(esp, eax); /* 0x36066B48: push eax */
  11769     RECOMP_ICALL(0x3615FD86u); /* 0x36066B49: call 0x3615fd86 */ /* not lifted */
  11770     RECOMP_FLAGS_IN();
  11771     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11772     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11773     esp = esp + 0x14u; /* 0x36066B4E: add esp, 0x14 */
  11774     _flag_k = FK_ADD;
  11775     /* test eax, eax */ /* 0x36066B51: test eax, eax */
  11776     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11777     _cf = 0;
  11778     _flag_k = FK_TEST;
  11779     MEM32(ebp + 0x8) = eax; /* 0x36066B53: mov dword ptr [ebp + 8], eax */
  11780     if (TEST_Z(_flag_a, _flag_b)) goto L_36066C77; /* 0x36066B56: je 0x36066c77 */
  11781 L_36066B5C:
  11782     ecx = MEM32(ebp + 0xC); /* 0x36066B5C: mov ecx, dword ptr [ebp + 0xc] */
  11783     PUSH32(esp, ecx); /* 0x36066B5F: push ecx */
  11784     RECOMP_ICALL(0x360B4000u); /* 0x36066B60: call 0x360b4000 */ /* not lifted */
  11785     RECOMP_FLAGS_IN();
  11786     ebx = eax; /* 0x36066B65: mov ebx, eax */
  11787     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11788     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11789     esp = esp + 4; /* 0x36066B67: add esp, 4 */
  11790     _flag_k = FK_ADD;
  11791     /* test ebx, ebx */ /* 0x36066B6A: test ebx, ebx */
  11792     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
  11793     _cf = 0;
  11794     _flag_k = FK_TEST;
  11795     if (TEST_Z(_flag_a, _flag_b)) goto L_36066C77; /* 0x36066B6C: je 0x36066c77 */
  11796 L_36066B72:
  11797     ecx = MEM32(esi); /* 0x36066B72: mov ecx, dword ptr [esi] */
  11798     edx = MEM32(ecx + 0xE4); /* 0x36066B74: mov edx, dword ptr [ecx + 0xe4] */
  11799     PUSH32(esp, edi); /* 0x36066B7A: push edi */
  11800     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  11801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11802     ecx = ecx + 0xE4u; /* 0x36066B7B: add ecx, 0xe4 */
  11803     _flag_k = FK_ADD;
  11804     PUSH32(esp, 0); /* 0x36066B81: push 0 */
  11805     PUSH32(esp, 0x13Eu); /* 0x36066B83: push 0x13e */
  11806     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36066B88: call dword ptr [edx + 4] */
  11807     RECOMP_FLAGS_IN();
  11808     MEM32(ebp + 0xC) = eax; /* 0x36066B8B: mov dword ptr [ebp + 0xc], eax */
  11809     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x36066B8E: fild dword ptr [ebp + 0xc] */
  11810     ecx = ebx; /* 0x36066B91: mov ecx, ebx */
  11811     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36066B93: fstp dword ptr [ebp - 4] */
  11812     RECOMP_ICALL(0x36098BD0u); /* 0x36066B96: call 0x36098bd0 */ /* not lifted */
  11813     RECOMP_FLAGS_IN();
  11814     MEM32(ebp + 0xC) = eax; /* 0x36066B9B: mov dword ptr [ebp + 0xc], eax */
  11815     fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x36066B9E: fild dword ptr [ebp + 0xc] */
  11816     _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36066BA1: fmul dword ptr [ebp - 4] */
  11817     _st[0] *= (double)*(float*)ADDR(0x36170894); /* 0x36066BA4: fmul dword ptr [0x36170894] */
  11818     RECOMP_ICALL(0x3615FD8Cu); /* 0x36066BAA: call 0x3615fd8c */ /* not lifted */
  11819     RECOMP_FLAGS_IN();
  11820     ecx = MEM32(esi); /* 0x36066BAF: mov ecx, dword ptr [esi] */
  11821     edi = MEM32(ecx + 0xE4); /* 0x36066BB1: mov edi, dword ptr [ecx + 0xe4] */
  11822     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  11823     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11824     ecx = ecx + 0xE4u; /* 0x36066BB7: add ecx, 0xe4 */
  11825     _flag_k = FK_ADD;
  11826     PUSH32(esp, 2); /* 0x36066BBD: push 2 */
  11827     PUSH32(esp, 0xD6u); /* 0x36066BBF: push 0xd6 */
  11828     MEM32(ebp + 0xC) = eax; /* 0x36066BC4: mov dword ptr [ebp + 0xc], eax */
  11829     RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36066BC7: call dword ptr [edi + 4] */
  11830     RECOMP_FLAGS_IN();
  11831     edx = MEM32(ebp + 0xC); /* 0x36066BCA: mov edx, dword ptr [ebp + 0xc] */
  11832     ecx = MEM32(esi); /* 0x36066BCD: mov ecx, dword ptr [esi] */
  11833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  11834     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11835     eax = eax + edx; /* 0x36066BCF: add eax, edx */
  11836     _flag_k = FK_ADD;
  11837     PUSH32(esp, eax); /* 0x36066BD1: push eax */
  11838     PUSH32(esp, 0xD6u); /* 0x36066BD2: push 0xd6 */
  11839     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  11840     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11841     ecx = ecx + 0xE4u; /* 0x36066BD7: add ecx, 0xe4 */
  11842     _flag_k = FK_ADD;
  11843     RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36066BDD: call dword ptr [edi + 8] */
  11844     RECOMP_FLAGS_IN();
  11845     eax = MEM32(esi); /* 0x36066BE0: mov eax, dword ptr [esi] */
  11846     SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x36066BE2: mov cl, byte ptr [eax + 0x128] */
  11847     /* test LO8(ecx), LO8(ecx) */ /* 0x36066BE8: test cl, cl */
  11848     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
  11849     _cf = 0;
  11850     _flag_k = FK_NARROW(FK_TEST, 24);
  11851     edi = POP32_VAL(esp); /* 0x36066BEA: pop edi */
  11852     if (TEST_Z(_flag_a, _flag_b)) goto L_36066C17; /* 0x36066BEB: je 0x36066c17 */
  11853 L_36066BED:
  11854     ecx = MEM32(ebp + 0x8); /* 0x36066BED: mov ecx, dword ptr [ebp + 8] */
  11855     edx = MEM32(ecx + 0xE4); /* 0x36066BF0: mov edx, dword ptr [ecx + 0xe4] */
  11856     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u);
  11857     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11858     ecx = ecx + 0xE4u; /* 0x36066BF6: add ecx, 0xe4 */
  11859     _flag_k = FK_ADD;
  11860     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x36066BFC: call dword ptr [edx + 0x3c] */
  11861     RECOMP_FLAGS_IN();
  11862     PUSH32(esp, eax); /* 0x36066BFF: push eax */
  11863     eax = ebp + (-0x104); /* 0x36066C00: lea eax, [ebp - 0x104] */
  11864     PUSH32(esp, 0x361C3398u); /* 0x36066C06: push 0x361c3398 */
  11865     PUSH32(esp, eax); /* 0x36066C0B: push eax */
  11866     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36066C0C: call dword ptr [0x3616f25c] */
  11867     RECOMP_FLAGS_IN();
  11868     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11869     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11870     esp = esp + 0xCu; /* 0x36066C12: add esp, 0xc */
  11871     _flag_k = FK_ADD;
  11872     goto L_36066C62; /* 0x36066C15: jmp 0x36066c62 */
  11873 L_36066C17:
  11874     edx = MEM32(ebx); /* 0x36066C17: mov edx, dword ptr [ebx] */
  11875     ecx = ebx; /* 0x36066C19: mov ecx, ebx */
  11876     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x36066C1B: call dword ptr [edx + 0x3c] */
  11877     RECOMP_FLAGS_IN();
  11878     /* test eax, eax */ /* 0x36066C1E: test eax, eax */
  11879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  11880     _cf = 0;
  11881     _flag_k = FK_TEST;
  11882     if (TEST_Z(_flag_a, _flag_b)) goto L_36066C77; /* 0x36066C20: je 0x36066c77 */
  11883 L_36066C22:
  11884     eax = MEM32(ebp + 0x8); /* 0x36066C22: mov eax, dword ptr [ebp + 8] */
  11885     esi = MEM32(esi); /* 0x36066C25: mov esi, dword ptr [esi] */
  11886     edx = MEM32(eax + 0xE4); /* 0x36066C27: mov edx, dword ptr [eax + 0xe4] */
  11887     ecx = eax + 0xE4; /* 0x36066C2D: lea ecx, [eax + 0xe4] */
  11888     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xE4u);
  11889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11890     esi = esi + 0xE4u; /* 0x36066C33: add esi, 0xe4 */
  11891     _flag_k = FK_ADD;
  11892     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x36066C39: call dword ptr [edx + 0x3c] */
  11893     RECOMP_FLAGS_IN();
  11894     PUSH32(esp, eax); /* 0x36066C3C: push eax */
  11895     eax = MEM32(ebx); /* 0x36066C3D: mov eax, dword ptr [ebx] */
  11896     ecx = ebx; /* 0x36066C3F: mov ecx, ebx */
  11897     RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x36066C41: call dword ptr [eax + 0x3c] */
  11898     RECOMP_FLAGS_IN();
  11899     edx = MEM32(esi); /* 0x36066C44: mov edx, dword ptr [esi] */
  11900     PUSH32(esp, eax); /* 0x36066C46: push eax */
  11901     ecx = esi; /* 0x36066C47: mov ecx, esi */
  11902     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x36066C49: call dword ptr [edx + 0x3c] */
  11903     RECOMP_FLAGS_IN();
  11904     PUSH32(esp, eax); /* 0x36066C4C: push eax */
  11905     eax = ebp + (-0x104); /* 0x36066C4D: lea eax, [ebp - 0x104] */
  11906     PUSH32(esp, 0x361C3368u); /* 0x36066C53: push 0x361c3368 */
  11907     PUSH32(esp, eax); /* 0x36066C58: push eax */
  11908     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x36066C59: call dword ptr [0x3616f25c] */
  11909     RECOMP_FLAGS_IN();
  11910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  11911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11912     esp = esp + 0x14u; /* 0x36066C5F: add esp, 0x14 */
  11913     _flag_k = FK_ADD;
  11914 L_36066C62:
  11915     ecx = ebp + (-0x104); /* 0x36066C62: lea ecx, [ebp - 0x104] */
  11916     PUSH32(esp, 0); /* 0x36066C68: push 0 */
  11917     PUSH32(esp, ecx); /* 0x36066C6A: push ecx */
  11918     RECOMP_ICALL(0x3601C590u); /* 0x36066C6B: call 0x3601c590 */ /* not lifted */
  11919     RECOMP_FLAGS_IN();
  11920     ecx = eax; /* 0x36066C70: mov ecx, eax */
  11921     RECOMP_ICALL(0x3601C8C0u); /* 0x36066C72: call 0x3601c8c0 */ /* not lifted */
  11922     RECOMP_FLAGS_IN();
  11923 L_36066C77:
  11924     esi = POP32_VAL(esp); /* 0x36066C77: pop esi */
  11925     ebx = POP32_VAL(esp); /* 0x36066C78: pop ebx */
  11926     esp = ebp; /* 0x36066C79: mov esp, ebp */
  11927     ebp = POP32_VAL(esp); /* 0x36066C7B: pop ebp */
  11928     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36066C7C: ret 8 */
  11929     RECOMP_REGS_OUT();
  11930 }
  11931 
  11932 void sub_36066C80(void) {
  11933     int _fpu_cmp = 0;
  11934     uint32_t _cf = 0;
  11935     int _df = 1;
  11936     uint32_t _flag_k = FK_NONE;
  11937     uint32_t _flag_a = 0, _flag_b = 0;
  11938     uint32_t _itail_tgt = 0;
  11939     RECOMP_REGS_LOCALS
  11940     RECOMP_ENTER(0x36066C80u);
  11941 
  11942 L_36066C80:
  11943     PUSH32(esp, ebp); /* 0x36066C80: push ebp */
  11944     ebp = esp; /* 0x36066C81: mov ebp, esp */
  11945     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  11946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11947     esp = esp - 0xCu; /* 0x36066C83: sub esp, 0xc */
  11948     _flag_k = FK_CMP;
  11949     PUSH32(esp, ebx); /* 0x36066C86: push ebx */
  11950     PUSH32(esp, esi); /* 0x36066C87: push esi */
  11951     PUSH32(esp, edi); /* 0x36066C88: push edi */
  11952     edi = ecx; /* 0x36066C89: mov edi, ecx */
  11953     eax = MEM32(edi + 0x14); /* 0x36066C8B: mov eax, dword ptr [edi + 0x14] */
  11954     eax = MEM32(eax + 0x4); /* 0x36066C8E: mov eax, dword ptr [eax + 4] */
  11955     ebx = MEM32(eax); /* 0x36066C91: mov ebx, dword ptr [eax] */
  11956     /* cmp ebx, eax */ /* 0x36066C93: cmp ebx, eax */
  11957     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  11958     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11959     _flag_k = FK_CMP;
  11960     MEM32(ebp + (-0x4)) = edi; /* 0x36066C95: mov dword ptr [ebp - 4], edi */
  11961     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066CF0; /* 0x36066C98: je 0x36066cf0 */
  11962 L_36066C9A:
  11963     eax = MEM32(ebx + 0x8); /* 0x36066C9A: mov eax, dword ptr [ebx + 8] */
  11964     ecx = ebp + (-0xC); /* 0x36066C9D: lea ecx, [ebp - 0xc] */
  11965     /* cmp ecx, eax */ /* 0x36066CA0: cmp ecx, eax */
  11966     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  11967     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  11968     _flag_k = FK_CMP;
  11969     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066CAF; /* 0x36066CA2: je 0x36066caf */
  11970 L_36066CA4:
  11971     edx = MEM32(eax); /* 0x36066CA4: mov edx, dword ptr [eax] */
  11972     eax = MEM32(eax + 0x4); /* 0x36066CA6: mov eax, dword ptr [eax + 4] */
  11973     MEM32(ebp + (-0xC)) = edx; /* 0x36066CA9: mov dword ptr [ebp - 0xc], edx */
  11974     MEM32(ebp + (-0x8)) = eax; /* 0x36066CAC: mov dword ptr [ebp - 8], eax */
  11975 L_36066CAF:
  11976     ecx = MEM32(ebp + (-0x8)); /* 0x36066CAF: mov ecx, dword ptr [ebp - 8] */
  11977     PUSH32(esp, ecx); /* 0x36066CB2: push ecx */
  11978     RECOMP_ICALL(0x360B4000u); /* 0x36066CB3: call 0x360b4000 */ /* not lifted */
  11979     RECOMP_FLAGS_IN();
  11980     esi = eax; /* 0x36066CB8: mov esi, eax */
  11981     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11982     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11983     esp = esp + 4; /* 0x36066CBA: add esp, 4 */
  11984     _flag_k = FK_ADD;
  11985     /* test esi, esi */ /* 0x36066CBD: test esi, esi */
  11986     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  11987     _cf = 0;
  11988     _flag_k = FK_TEST;
  11989     if (TEST_Z(_flag_a, _flag_b)) goto L_36066CE6; /* 0x36066CBF: je 0x36066ce6 */
  11990 L_36066CC1:
  11991     edx = MEM32(esi); /* 0x36066CC1: mov edx, dword ptr [esi] */
  11992     PUSH32(esp, 2); /* 0x36066CC3: push 2 */
  11993     PUSH32(esp, 0x4Bu); /* 0x36066CC5: push 0x4b */
  11994     ecx = esi; /* 0x36066CC7: mov ecx, esi */
  11995     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36066CC9: call dword ptr [edx + 4] */
  11996     RECOMP_FLAGS_IN();
  11997     PUSH32(esp, 2); /* 0x36066CCC: push 2 */
  11998     edi = eax; /* 0x36066CCE: mov edi, eax */
  11999     eax = MEM32(esi); /* 0x36066CD0: mov eax, dword ptr [esi] */
  12000     PUSH32(esp, 0x36u); /* 0x36066CD2: push 0x36 */
  12001     ecx = esi; /* 0x36066CD4: mov ecx, esi */
  12002     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36066CD6: call dword ptr [eax + 4] */
  12003     RECOMP_FLAGS_IN();
  12004     /* cmp edi, MEM32(ebp + 0xC) */ /* 0x36066CD9: cmp edi, dword ptr [ebp + 0xc] */
  12005     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
  12006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12007     _flag_k = FK_CMP;
  12008     if (CMP_NE(_flag_a, _flag_b)) goto L_36066CE3; /* 0x36066CDC: jne 0x36066ce3 */
  12009 L_36066CDE:
  12010     /* cmp eax, MEM32(ebp + 0x10) */ /* 0x36066CDE: cmp eax, dword ptr [ebp + 0x10] */
  12011     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x10));
  12012     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12013     _flag_k = FK_CMP;
  12014     if (CMP_LE(_flag_a, _flag_b)) goto L_36066D14; /* 0x36066CE1: jle 0x36066d14 */
  12015 L_36066CE3:
  12016     edi = MEM32(ebp + (-0x4)); /* 0x36066CE3: mov edi, dword ptr [ebp - 4] */
  12017 L_36066CE6:
  12018     ecx = MEM32(edi + 0x14); /* 0x36066CE6: mov ecx, dword ptr [edi + 0x14] */
  12019     ebx = MEM32(ebx); /* 0x36066CE9: mov ebx, dword ptr [ebx] */
  12020     /* cmp ebx, MEM32(ecx + 0x4) */ /* 0x36066CEB: cmp ebx, dword ptr [ecx + 4] */
  12021     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12022     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12023     _flag_k = FK_CMP;
  12024     RECOMP_BACKEDGE();
  12025     if (CMP_NE(_flag_a, _flag_b)) goto L_36066C9A; /* 0x36066CEE: jne 0x36066c9a */
  12026 L_36066CF0:
  12027     eax = MEM32(ebp + 0x8); /* 0x36066CF0: mov eax, dword ptr [ebp + 8] */
  12028     /* cmp eax, 0x362EA510u */ /* 0x36066CF3: cmp eax, 0x362ea510 */
  12029     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x362EA510u);
  12030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12031     _flag_k = FK_CMP;
  12032     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066D0B; /* 0x36066CF8: je 0x36066d0b */
  12033 L_36066CFA:
  12034     ecx = MEM32(0x362EA510); /* 0x36066CFA: mov ecx, dword ptr [0x362ea510] */
  12035     MEM32(eax) = ecx; /* 0x36066D00: mov dword ptr [eax], ecx */
  12036     edx = MEM32(0x362EA514); /* 0x36066D02: mov edx, dword ptr [0x362ea514] */
  12037     MEM32(eax + 0x4) = edx; /* 0x36066D08: mov dword ptr [eax + 4], edx */
  12038 L_36066D0B:
  12039     edi = POP32_VAL(esp); /* 0x36066D0B: pop edi */
  12040     esi = POP32_VAL(esp); /* 0x36066D0C: pop esi */
  12041     ebx = POP32_VAL(esp); /* 0x36066D0D: pop ebx */
  12042     esp = ebp; /* 0x36066D0E: mov esp, ebp */
  12043     ebp = POP32_VAL(esp); /* 0x36066D10: pop ebp */
  12044     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36066D11: ret 0xc */
  12045 L_36066D14:
  12046     eax = MEM32(ebp + 0x8); /* 0x36066D14: mov eax, dword ptr [ebp + 8] */
  12047     edx = ebp + (-0xC); /* 0x36066D17: lea edx, [ebp - 0xc] */
  12048     /* cmp eax, edx */ /* 0x36066D1A: cmp eax, edx */
  12049     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
  12050     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12051     _flag_k = FK_CMP;
  12052     RECOMP_BACKEDGE();
  12053     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066D0B; /* 0x36066D1C: je 0x36066d0b */
  12054 L_36066D1E:
  12055     ecx = MEM32(ebp + (-0xC)); /* 0x36066D1E: mov ecx, dword ptr [ebp - 0xc] */
  12056     edx = MEM32(ebp + (-0x8)); /* 0x36066D21: mov edx, dword ptr [ebp - 8] */
  12057     edi = POP32_VAL(esp); /* 0x36066D24: pop edi */
  12058     esi = POP32_VAL(esp); /* 0x36066D25: pop esi */
  12059     MEM32(eax) = ecx; /* 0x36066D26: mov dword ptr [eax], ecx */
  12060     MEM32(eax + 0x4) = edx; /* 0x36066D28: mov dword ptr [eax + 4], edx */
  12061     ebx = POP32_VAL(esp); /* 0x36066D2B: pop ebx */
  12062     esp = ebp; /* 0x36066D2C: mov esp, ebp */
  12063     ebp = POP32_VAL(esp); /* 0x36066D2E: pop ebp */
  12064     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36066D2F: ret 0xc */
  12065     RECOMP_REGS_OUT();
  12066 }
  12067 
  12068 void sub_36066D40(void) {
  12069     int _fpu_cmp = 0;
  12070     uint32_t _cf = 0;
  12071     int _df = 1;
  12072     uint32_t _flag_k = FK_NONE;
  12073     uint32_t _flag_a = 0, _flag_b = 0;
  12074     uint32_t _itail_tgt = 0;
  12075     RECOMP_REGS_LOCALS
  12076     RECOMP_ENTER(0x36066D40u);
  12077 
  12078 L_36066D40:
  12079     PUSH32(esp, ebp); /* 0x36066D40: push ebp */
  12080     ebp = esp; /* 0x36066D41: mov ebp, esp */
  12081     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  12082     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12083     esp = esp - 0xCu; /* 0x36066D43: sub esp, 0xc */
  12084     _flag_k = FK_CMP;
  12085     PUSH32(esp, ebx); /* 0x36066D46: push ebx */
  12086     PUSH32(esp, esi); /* 0x36066D47: push esi */
  12087     PUSH32(esp, edi); /* 0x36066D48: push edi */
  12088     edi = ecx; /* 0x36066D49: mov edi, ecx */
  12089     eax = MEM32(edi + 0x14); /* 0x36066D4B: mov eax, dword ptr [edi + 0x14] */
  12090     eax = MEM32(eax + 0x4); /* 0x36066D4E: mov eax, dword ptr [eax + 4] */
  12091     ebx = MEM32(eax); /* 0x36066D51: mov ebx, dword ptr [eax] */
  12092     /* cmp ebx, eax */ /* 0x36066D53: cmp ebx, eax */
  12093     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax);
  12094     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12095     _flag_k = FK_CMP;
  12096     MEM32(ebp + (-0x4)) = edi; /* 0x36066D55: mov dword ptr [ebp - 4], edi */
  12097     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066DAB; /* 0x36066D58: je 0x36066dab */
  12098 L_36066D5A:
  12099     eax = MEM32(ebx + 0x8); /* 0x36066D5A: mov eax, dword ptr [ebx + 8] */
  12100     ecx = ebp + (-0xC); /* 0x36066D5D: lea ecx, [ebp - 0xc] */
  12101     /* cmp ecx, eax */ /* 0x36066D60: cmp ecx, eax */
  12102     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
  12103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12104     _flag_k = FK_CMP;
  12105     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066D6A; /* 0x36066D62: je 0x36066d6a */
  12106 L_36066D64:
  12107     edx = MEM32(eax + 0x4); /* 0x36066D64: mov edx, dword ptr [eax + 4] */
  12108     MEM32(ebp + (-0x8)) = edx; /* 0x36066D67: mov dword ptr [ebp - 8], edx */
  12109 L_36066D6A:
  12110     eax = MEM32(ebp + (-0x8)); /* 0x36066D6A: mov eax, dword ptr [ebp - 8] */
  12111     PUSH32(esp, eax); /* 0x36066D6D: push eax */
  12112     RECOMP_ICALL(0x360B4000u); /* 0x36066D6E: call 0x360b4000 */ /* not lifted */
  12113     RECOMP_FLAGS_IN();
  12114     esi = eax; /* 0x36066D73: mov esi, eax */
  12115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12117     esp = esp + 4; /* 0x36066D75: add esp, 4 */
  12118     _flag_k = FK_ADD;
  12119     /* test esi, esi */ /* 0x36066D78: test esi, esi */
  12120     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  12121     _cf = 0;
  12122     _flag_k = FK_TEST;
  12123     if (TEST_Z(_flag_a, _flag_b)) goto L_36066DA1; /* 0x36066D7A: je 0x36066da1 */
  12124 L_36066D7C:
  12125     edx = MEM32(esi); /* 0x36066D7C: mov edx, dword ptr [esi] */
  12126     PUSH32(esp, 2); /* 0x36066D7E: push 2 */
  12127     PUSH32(esp, 0x4Bu); /* 0x36066D80: push 0x4b */
  12128     ecx = esi; /* 0x36066D82: mov ecx, esi */
  12129     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36066D84: call dword ptr [edx + 4] */
  12130     RECOMP_FLAGS_IN();
  12131     PUSH32(esp, 2); /* 0x36066D87: push 2 */
  12132     edi = eax; /* 0x36066D89: mov edi, eax */
  12133     eax = MEM32(esi); /* 0x36066D8B: mov eax, dword ptr [esi] */
  12134     PUSH32(esp, 0x36u); /* 0x36066D8D: push 0x36 */
  12135     ecx = esi; /* 0x36066D8F: mov ecx, esi */
  12136     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36066D91: call dword ptr [eax + 4] */
  12137     RECOMP_FLAGS_IN();
  12138     /* cmp edi, MEM32(ebp + 0x8) */ /* 0x36066D94: cmp edi, dword ptr [ebp + 8] */
  12139     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + 0x8));
  12140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12141     _flag_k = FK_CMP;
  12142     if (CMP_NE(_flag_a, _flag_b)) goto L_36066D9E; /* 0x36066D97: jne 0x36066d9e */
  12143 L_36066D99:
  12144     /* cmp eax, MEM32(ebp + 0xC) */ /* 0x36066D99: cmp eax, dword ptr [ebp + 0xc] */
  12145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC));
  12146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12147     _flag_k = FK_CMP;
  12148     if (CMP_G(_flag_a, _flag_b)) goto L_36066DB6; /* 0x36066D9C: jg 0x36066db6 */
  12149 L_36066D9E:
  12150     edi = MEM32(ebp + (-0x4)); /* 0x36066D9E: mov edi, dword ptr [ebp - 4] */
  12151 L_36066DA1:
  12152     ecx = MEM32(edi + 0x14); /* 0x36066DA1: mov ecx, dword ptr [edi + 0x14] */
  12153     ebx = MEM32(ebx); /* 0x36066DA4: mov ebx, dword ptr [ebx] */
  12154     /* cmp ebx, MEM32(ecx + 0x4) */ /* 0x36066DA6: cmp ebx, dword ptr [ecx + 4] */
  12155     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
  12156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12157     _flag_k = FK_CMP;
  12158     RECOMP_BACKEDGE();
  12159     if (CMP_NE(_flag_a, _flag_b)) goto L_36066D5A; /* 0x36066DA9: jne 0x36066d5a */
  12160 L_36066DAB:
  12161     edi = POP32_VAL(esp); /* 0x36066DAB: pop edi */
  12162     esi = POP32_VAL(esp); /* 0x36066DAC: pop esi */
  12163     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
  12164     SET_LO8(eax, 0); /* 0x36066DAD: xor al, al */
  12165     _cf = 0;
  12166     _flag_k = FK_NARROW(FK_TEST, 24);
  12167     ebx = POP32_VAL(esp); /* 0x36066DAF: pop ebx */
  12168     esp = ebp; /* 0x36066DB0: mov esp, ebp */
  12169     ebp = POP32_VAL(esp); /* 0x36066DB2: pop ebp */
  12170     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36066DB3: ret 8 */
  12171 L_36066DB6:
  12172     edi = POP32_VAL(esp); /* 0x36066DB6: pop edi */
  12173     esi = POP32_VAL(esp); /* 0x36066DB7: pop esi */
  12174     SET_LO8(eax, 1); /* 0x36066DB8: mov al, 1 */
  12175     ebx = POP32_VAL(esp); /* 0x36066DBA: pop ebx */
  12176     esp = ebp; /* 0x36066DBB: mov esp, ebp */
  12177     ebp = POP32_VAL(esp); /* 0x36066DBD: pop ebp */
  12178     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36066DBE: ret 8 */
  12179     RECOMP_REGS_OUT();
  12180 }
  12181 
  12182 void sub_36066DD0(void) {
  12183     int _fpu_cmp = 0;
  12184     uint32_t _cf = 0;
  12185     int _df = 1;
  12186     uint32_t _flag_k = FK_NONE;
  12187     uint32_t _flag_a = 0, _flag_b = 0;
  12188     uint32_t _itail_tgt = 0;
  12189     RECOMP_REGS_LOCALS
  12190     RECOMP_ENTER(0x36066DD0u);
  12191 
  12192 L_36066DD0:
  12193     PUSH32(esp, ebp); /* 0x36066DD0: push ebp */
  12194     ebp = esp; /* 0x36066DD1: mov ebp, esp */
  12195     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  12196     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12197     esp = esp - 0xCu; /* 0x36066DD3: sub esp, 0xc */
  12198     _flag_k = FK_CMP;
  12199     eax = MEM32(ebp + 0x8); /* 0x36066DD6: mov eax, dword ptr [ebp + 8] */
  12200     MEM32(ebp + (-0x4)) = ecx; /* 0x36066DD9: mov dword ptr [ebp - 4], ecx */
  12201     ecx = MEM32(eax + 0x4); /* 0x36066DDC: mov ecx, dword ptr [eax + 4] */
  12202     eax = MEM32(ecx); /* 0x36066DDF: mov eax, dword ptr [ecx] */
  12203     /* cmp eax, ecx */ /* 0x36066DE1: cmp eax, ecx */
  12204     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
  12205     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12206     _flag_k = FK_CMP;
  12207     if (CMP_EQ(_flag_a, _flag_b)) goto L_36066E96; /* 0x36066DE3: je 0x36066e96 */
  12208 L_36066DE9:
  12209     PUSH32(esp, ebx); /* 0x36066DE9: push ebx */
  12210     PUSH32(esp, esi); /* 0x36066DEA: push esi */
  12211     PUSH32(esp, edi); /* 0x36066DEB: push edi */
  12212     goto L_36066DF1; /* 0x36066DEC: jmp 0x36066df1 */
  12213 L_36066DEE:
  12214     eax = MEM32(ebp + (-0x8)); /* 0x36066DEE: mov eax, dword ptr [ebp - 8] */
  12215 L_36066DF1:
  12216     ecx = MEM32(eax); /* 0x36066DF1: mov ecx, dword ptr [eax] */
  12217     ebx = MEM32(eax + 0x8); /* 0x36066DF3: mov ebx, dword ptr [eax + 8] */
  12218     eax = MEM32(ebx + 0x10); /* 0x36066DF6: mov eax, dword ptr [ebx + 0x10] */
  12219     /* test eax, eax */ /* 0x36066DF9: test eax, eax */
  12220     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12221     _cf = 0;
  12222     _flag_k = FK_TEST;
  12223     MEM32(ebp + (-0x8)) = ecx; /* 0x36066DFB: mov dword ptr [ebp - 8], ecx */
  12224     if (TEST_G(_flag_a, _flag_b)) goto L_36066E07; /* 0x36066DFE: jg 0x36066e07 */
  12225 L_36066E00:
  12226     MEM32(ebx + 0x10) = 1; /* 0x36066E00: mov dword ptr [ebx + 0x10], 1 */
  12227 L_36066E07:
  12228     edx = MEM32(ebp + (-0x4)); /* 0x36066E07: mov edx, dword ptr [ebp - 4] */
  12229     edi = MEM32(edx + 0x14); /* 0x36066E0A: mov edi, dword ptr [edx + 0x14] */
  12230     eax = MEM32(edi + 0x4); /* 0x36066E0D: mov eax, dword ptr [edi + 4] */
  12231     esi = MEM32(eax); /* 0x36066E10: mov esi, dword ptr [eax] */
  12232     ecx = MEM32(esi + 0x4); /* 0x36066E12: mov ecx, dword ptr [esi + 4] */
  12233     PUSH32(esp, 0xCu); /* 0x36066E15: push 0xc */
  12234     MEM32(ebp + (-0xC)) = ecx; /* 0x36066E17: mov dword ptr [ebp - 0xc], ecx */
  12235     RECOMP_ICALL(0x3615FD6Au); /* 0x36066E1A: call 0x3615fd6a */ /* not lifted */
  12236     RECOMP_FLAGS_IN();
  12237     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12238     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12239     esp = esp + 4; /* 0x36066E1F: add esp, 4 */
  12240     _flag_k = FK_ADD;
  12241     /* test esi, esi */ /* 0x36066E22: test esi, esi */
  12242     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
  12243     _cf = 0;
  12244     _flag_k = FK_TEST;
  12245     ecx = esi; /* 0x36066E24: mov ecx, esi */
  12246     if (TEST_NZ(_flag_a, _flag_b)) goto L_36066E2A; /* 0x36066E26: jne 0x36066e2a */
  12247 L_36066E28:
  12248     ecx = eax; /* 0x36066E28: mov ecx, eax */
  12249 L_36066E2A:
  12250     MEM32(eax) = ecx; /* 0x36066E2A: mov dword ptr [eax], ecx */
  12251     ecx = MEM32(ebp + (-0xC)); /* 0x36066E2C: mov ecx, dword ptr [ebp - 0xc] */
  12252     /* test ecx, ecx */ /* 0x36066E2F: test ecx, ecx */
  12253     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
  12254     _cf = 0;
  12255     _flag_k = FK_TEST;
  12256     if (TEST_NZ(_flag_a, _flag_b)) goto L_36066E35; /* 0x36066E31: jne 0x36066e35 */
  12257 L_36066E33:
  12258     ecx = eax; /* 0x36066E33: mov ecx, eax */
  12259 L_36066E35:
  12260     MEM32(eax + 0x4) = ecx; /* 0x36066E35: mov dword ptr [eax + 4], ecx */
  12261     MEM32(esi + 0x4) = eax; /* 0x36066E38: mov dword ptr [esi + 4], eax */
  12262     edx = MEM32(eax + 0x4); /* 0x36066E3B: mov edx, dword ptr [eax + 4] */
  12263     MEM32(edx) = eax; /* 0x36066E3E: mov dword ptr [edx], eax */
  12264     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
  12265     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12266     eax = eax + 8; /* 0x36066E40: add eax, 8 */
  12267     _flag_k = FK_ADD;
  12268     /* test eax, eax */ /* 0x36066E43: test eax, eax */
  12269     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12270     _cf = 0;
  12271     _flag_k = FK_TEST;
  12272     if (TEST_Z(_flag_a, _flag_b)) goto L_36066E49; /* 0x36066E45: je 0x36066e49 */
  12273 L_36066E47:
  12274     MEM32(eax) = ebx; /* 0x36066E47: mov dword ptr [eax], ebx */
  12275 L_36066E49:
  12276     _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(1);
  12277     MEM32(edi + 0x8) = MEM32(edi + 0x8) + 1; /* 0x36066E49: inc dword ptr [edi + 8] */
  12278     _flag_k = FK_INC;
  12279     eax = MEM32(ebx + 0x4); /* 0x36066E4C: mov eax, dword ptr [ebx + 4] */
  12280     PUSH32(esp, eax); /* 0x36066E4F: push eax */
  12281     RECOMP_ICALL(0x360B4000u); /* 0x36066E50: call 0x360b4000 */ /* not lifted */
  12282     RECOMP_FLAGS_IN();
  12283     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  12284     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  12285     esp = esp + 4; /* 0x36066E55: add esp, 4 */
  12286     _flag_k = FK_ADD;
  12287     /* test eax, eax */ /* 0x36066E58: test eax, eax */
  12288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  12289     _cf = 0;
  12290     _flag_k = FK_TEST;
  12291     if (TEST_Z(_flag_a, _flag_b)) goto L_36066E84; /* 0x36066E5A: je 0x36066e84 */
  12292 L_36066E5C:
  12293     edx = MEM32(eax); /* 0x36066E5C: mov edx, dword ptr [eax] */
  12294     PUSH32(esp, 0x00010000u); /* 0x36066E5E: push 0x10000 */
  12295     ecx = eax; /* 0x36066E63: mov ecx, eax */
  12296     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36066E65: call dword ptr [edx + 0x1c] */
  12297     RECOMP_FLAGS_IN();
  12298     /* test LO8(eax), LO8(eax) */ /* 0x36066E68: test al, al */
  12299     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  12300     _cf = 0;
  12301     _flag_k = FK_NARROW(FK_TEST, 24);
  12302     if (TEST_Z(_flag_a, _flag_b)) goto L_36066E84; /* 0x36066E6A: je 0x36066e84 */
  12303 L_36066E6C:
  12304     eax = MEM32(ebx + 0x10); /* 0x36066E6C: mov eax, dword ptr [ebx + 0x10] */
  12305     ecx = MEM32(ebp + (-0x4)); /* 0x36066E6F: mov ecx, dword ptr [ebp - 4] */
  12306     PUSH32(esp, 0); /* 0x36066E72: push 0 */
  12307     PUSH32(esp, 0x362EA510u); /* 0x36066E74: push 0x362ea510 */
  12308     PUSH32(esp, 1); /* 0x36066E79: push 1 */
  12309     PUSH32(esp, 0); /* 0x36066E7B: push 0 */
  12310     PUSH32(esp, eax); /* 0x36066E7D: push eax */
  12311     PUSH32(esp, ebx); /* 0x36066E7E: push ebx */
  12312     RECOMP_ICALL(0x36066010u); /* 0x36066E7F: call 0x36066010 */ /* not lifted */
  12313     RECOMP_FLAGS_IN();
  12314 L_36066E84:
  12315     edx = MEM32(ebp + 0x8); /* 0x36066E84: mov edx, dword ptr [ebp + 8] */
  12316     ecx = MEM32(ebp + (-0x8)); /* 0x36066E87: mov ecx, dword ptr [ebp - 8] */
  12317     /* cmp ecx, MEM32(edx + 0x4) */ /* 0x36066E8A: cmp ecx, dword ptr [edx + 4] */
  12318     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx + 0x4));
  12319     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  12320     _flag_k = FK_CMP;
  12321     RECOMP_BACKEDGE();
  12322     if (CMP_NE(_flag_a, _flag_b)) goto L_36066DEE; /* 0x36066E8D: jne 0x36066dee */
  12323 L_36066E93:
  12324     edi = POP32_VAL(esp); /* 0x36066E93: pop edi */
  12325     esi = POP32_VAL(esp); /* 0x36066E94: pop esi */
  12326     ebx = POP32_VAL(esp); /* 0x36066E95: pop ebx */
  12327 L_36066E96:
  12328     esp = ebp; /* 0x36066E96: mov esp, ebp */
  12329     ebp = POP32_VAL(esp); /* 0x36066E98: pop ebp */
  12330     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36066E99: ret 4 */
  12331     RECOMP_REGS_OUT();
  12332 }