aorecomp

Anarchy Online classic in the browser

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


client/game/kkr.dll/lifted-0022.c (512694B)


      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_360434E0(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(0x360434E0u);
     17 
     18 L_360434E0:
     19     PUSH32(esp, ebp); /* 0x360434E0: push ebp */
     20     ebp = esp; /* 0x360434E1: mov ebp, esp */
     21     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xC8u);
     22     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     23     esp = esp - 0xC8u; /* 0x360434E3: sub esp, 0xc8 */
     24     _flag_k = FK_CMP;
     25     eax = MEM32(ecx + 0x50); /* 0x360434E9: mov eax, dword ptr [ecx + 0x50] */
     26     /* cmp eax, 1 */ /* 0x360434EC: cmp eax, 1 */
     27     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     28     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     29     _flag_k = FK_CMP;
     30     if (CMP_NE(_flag_a, _flag_b)) goto L_3604350A; /* 0x360434EF: jne 0x3604350a */
     31 L_360434F1:
     32     PUSH32(esp, 0); /* 0x360434F1: push 0 */
     33     PUSH32(esp, 0x361C1140u); /* 0x360434F3: push 0x361c1140 */
     34     RECOMP_ICALL(0x3601C590u); /* 0x360434F8: call 0x3601c590 */ /* not lifted */
     35     RECOMP_FLAGS_IN();
     36     ecx = eax; /* 0x360434FD: mov ecx, eax */
     37     RECOMP_ICALL(0x3601C8C0u); /* 0x360434FF: call 0x3601c8c0 */ /* not lifted */
     38     RECOMP_FLAGS_IN();
     39     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     40     eax = 0; /* 0x36043504: xor eax, eax */
     41     _cf = 0;
     42     _flag_k = FK_TEST;
     43     esp = ebp; /* 0x36043506: mov esp, ebp */
     44     ebp = POP32_VAL(esp); /* 0x36043508: pop ebp */
     45     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043509: ret  */
     46 L_3604350A:
     47     /* test eax, eax */ /* 0x3604350A: test eax, eax */
     48     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     49     _cf = 0;
     50     _flag_k = FK_TEST;
     51     if (TEST_NZ(_flag_a, _flag_b)) goto L_3604355C; /* 0x3604350C: jne 0x3604355c */
     52 L_3604350E:
     53     eax = MEM32(ecx + 0x24); /* 0x3604350E: mov eax, dword ptr [ecx + 0x24] */
     54     fp_push(*(float*)&MEM32(ecx + 0x3C)); /* 0x36043511: fld dword ptr [ecx + 0x3c] */
     55     PUSH32(esp, eax); /* 0x36043514: push eax */
     56     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     57     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     58     esp = esp - 8; /* 0x36043515: sub esp, 8 */
     59     _flag_k = FK_CMP;
     60     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043518: fstp qword ptr [esp] */
     61     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     62     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     63     esp = esp - 8; /* 0x3604351B: sub esp, 8 */
     64     _flag_k = FK_CMP;
     65     fp_push(*(float*)&MEM32(ecx + 0x38)); /* 0x3604351E: fld dword ptr [ecx + 0x38] */
     66     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
     67     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
     68     esp = esp - 8; /* 0x36043521: sub esp, 8 */
     69     _flag_k = FK_CMP;
     70     { double _v = fp_pop(); *(double*)ADDR(esp + 0x8) = _v; } /* 0x36043524: fstp qword ptr [esp + 8] */
     71     edx = ebp + (-0xC8); /* 0x36043528: lea edx, [ebp - 0xc8] */
     72     fp_push(*(float*)&MEM32(ecx + 0x34)); /* 0x3604352E: fld dword ptr [ecx + 0x34] */
     73     ecx = MEM32(ecx + 0x20); /* 0x36043531: mov ecx, dword ptr [ecx + 0x20] */
     74     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043534: fstp qword ptr [esp] */
     75     PUSH32(esp, ecx); /* 0x36043537: push ecx */
     76     PUSH32(esp, 0x361C1108u); /* 0x36043538: push 0x361c1108 */
     77     PUSH32(esp, edx); /* 0x3604353D: push edx */
     78     RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x3604353E: call dword ptr [0x3616f25c] */
     79     RECOMP_FLAGS_IN();
     80     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
     81     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     82     esp = esp + 0x28u; /* 0x36043544: add esp, 0x28 */
     83     _flag_k = FK_ADD;
     84     eax = ebp + (-0xC8); /* 0x36043547: lea eax, [ebp - 0xc8] */
     85     PUSH32(esp, 0); /* 0x3604354D: push 0 */
     86     PUSH32(esp, eax); /* 0x3604354F: push eax */
     87     RECOMP_ICALL(0x3601C590u); /* 0x36043550: call 0x3601c590 */ /* not lifted */
     88     RECOMP_FLAGS_IN();
     89     ecx = eax; /* 0x36043555: mov ecx, eax */
     90     RECOMP_ICALL(0x3601C8C0u); /* 0x36043557: call 0x3601c8c0 */ /* not lifted */
     91     RECOMP_FLAGS_IN();
     92 L_3604355C:
     93     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
     94     eax = 0; /* 0x3604355C: xor eax, eax */
     95     _cf = 0;
     96     _flag_k = FK_TEST;
     97     esp = ebp; /* 0x3604355E: mov esp, ebp */
     98     ebp = POP32_VAL(esp); /* 0x36043560: pop ebp */
     99     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043561: ret  */
    100     RECOMP_REGS_OUT();
    101 }
    102 
    103 void sub_36043570(void) {
    104     int _fpu_cmp = 0;
    105     uint32_t _cf = 0;
    106     int _df = 1;
    107     uint32_t _flag_k = FK_NONE;
    108     uint32_t _flag_a = 0, _flag_b = 0;
    109     uint32_t _itail_tgt = 0;
    110     RECOMP_REGS_LOCALS
    111     RECOMP_ENTER(0x36043570u);
    112 
    113 L_36043570:
    114     PUSH32(esp, ebp); /* 0x36043570: push ebp */
    115     ebp = esp; /* 0x36043571: mov ebp, esp */
    116     PUSH32(esp, ebx); /* 0x36043573: push ebx */
    117     ebx = MEM32(ebp + 0x8); /* 0x36043574: mov ebx, dword ptr [ebp + 8] */
    118     PUSH32(esp, esi); /* 0x36043577: push esi */
    119     esi = MEM32(0x3616FA8C); /* 0x36043578: mov esi, dword ptr [0x3616fa8c] */
    120     PUSH32(esp, edi); /* 0x3604357E: push edi */
    121     edi = ecx; /* 0x3604357F: mov edi, ecx */
    122     eax = edi + 0x20; /* 0x36043581: lea eax, [edi + 0x20] */
    123     PUSH32(esp, eax); /* 0x36043584: push eax */
    124     ecx = ebx; /* 0x36043585: mov ecx, ebx */
    125     RECOMP_ICALL(esi); /* 0x36043587: call esi */
    126     RECOMP_FLAGS_IN();
    127     ecx = edi + 0x24; /* 0x36043589: lea ecx, [edi + 0x24] */
    128     PUSH32(esp, ecx); /* 0x3604358C: push ecx */
    129     ecx = ebx; /* 0x3604358D: mov ecx, ebx */
    130     RECOMP_ICALL(esi); /* 0x3604358F: call esi */
    131     RECOMP_FLAGS_IN();
    132     esi = MEM32(0x3616FAD0); /* 0x36043591: mov esi, dword ptr [0x3616fad0] */
    133     eax = edi + 0x28; /* 0x36043597: lea eax, [edi + 0x28] */
    134     edx = eax + 0x8; /* 0x3604359A: lea edx, [eax + 8] */
    135     PUSH32(esp, edx); /* 0x3604359D: push edx */
    136     ecx = eax + 0x4; /* 0x3604359E: lea ecx, [eax + 4] */
    137     PUSH32(esp, ecx); /* 0x360435A1: push ecx */
    138     PUSH32(esp, eax); /* 0x360435A2: push eax */
    139     ecx = ebx; /* 0x360435A3: mov ecx, ebx */
    140     RECOMP_ICALL(esi); /* 0x360435A5: call esi */
    141     RECOMP_FLAGS_IN();
    142     ecx = eax; /* 0x360435A7: mov ecx, eax */
    143     RECOMP_ICALL(esi); /* 0x360435A9: call esi */
    144     RECOMP_FLAGS_IN();
    145     ecx = eax; /* 0x360435AB: mov ecx, eax */
    146     RECOMP_ICALL(esi); /* 0x360435AD: call esi */
    147     RECOMP_FLAGS_IN();
    148     eax = edi + 0x34; /* 0x360435AF: lea eax, [edi + 0x34] */
    149     edx = eax + 0x8; /* 0x360435B2: lea edx, [eax + 8] */
    150     PUSH32(esp, edx); /* 0x360435B5: push edx */
    151     ecx = eax + 0x4; /* 0x360435B6: lea ecx, [eax + 4] */
    152     PUSH32(esp, ecx); /* 0x360435B9: push ecx */
    153     PUSH32(esp, eax); /* 0x360435BA: push eax */
    154     ecx = ebx; /* 0x360435BB: mov ecx, ebx */
    155     RECOMP_ICALL(esi); /* 0x360435BD: call esi */
    156     RECOMP_FLAGS_IN();
    157     ecx = eax; /* 0x360435BF: mov ecx, eax */
    158     RECOMP_ICALL(esi); /* 0x360435C1: call esi */
    159     RECOMP_FLAGS_IN();
    160     ecx = eax; /* 0x360435C3: mov ecx, eax */
    161     RECOMP_ICALL(esi); /* 0x360435C5: call esi */
    162     RECOMP_FLAGS_IN();
    163     eax = edi + 0x40; /* 0x360435C7: lea eax, [edi + 0x40] */
    164     edx = eax + 0xC; /* 0x360435CA: lea edx, [eax + 0xc] */
    165     PUSH32(esp, edx); /* 0x360435CD: push edx */
    166     ecx = eax + 0x8; /* 0x360435CE: lea ecx, [eax + 8] */
    167     PUSH32(esp, ecx); /* 0x360435D1: push ecx */
    168     edx = eax + 0x4; /* 0x360435D2: lea edx, [eax + 4] */
    169     PUSH32(esp, edx); /* 0x360435D5: push edx */
    170     PUSH32(esp, eax); /* 0x360435D6: push eax */
    171     ecx = ebx; /* 0x360435D7: mov ecx, ebx */
    172     RECOMP_ICALL(esi); /* 0x360435D9: call esi */
    173     RECOMP_FLAGS_IN();
    174     ecx = eax; /* 0x360435DB: mov ecx, eax */
    175     RECOMP_ICALL(esi); /* 0x360435DD: call esi */
    176     RECOMP_FLAGS_IN();
    177     ecx = eax; /* 0x360435DF: mov ecx, eax */
    178     RECOMP_ICALL(esi); /* 0x360435E1: call esi */
    179     RECOMP_FLAGS_IN();
    180     ecx = eax; /* 0x360435E3: mov ecx, eax */
    181     RECOMP_ICALL(esi); /* 0x360435E5: call esi */
    182     RECOMP_FLAGS_IN();
    183     eax = ebp + 0x8; /* 0x360435E7: lea eax, [ebp + 8] */
    184     PUSH32(esp, eax); /* 0x360435EA: push eax */
    185     ecx = ebx; /* 0x360435EB: mov ecx, ebx */
    186     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360435ED: call dword ptr [0x3616fa8c] */
    187     RECOMP_FLAGS_IN();
    188     ecx = MEM32(ebp + 0x8); /* 0x360435F3: mov ecx, dword ptr [ebp + 8] */
    189     MEM32(edi + 0x50) = ecx; /* 0x360435F6: mov dword ptr [edi + 0x50], ecx */
    190     ecx = ebx; /* 0x360435F9: mov ecx, ebx */
    191     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360435FB: call dword ptr [0x3616fadc] */
    192     RECOMP_FLAGS_IN();
    193     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    194     _cf = (eax) != 0;
    195     eax = (uint32_t)(-(int32_t)eax); /* 0x36043601: neg eax */
    196     _flag_k = FK_CMP;
    197     edi = POP32_VAL(esp); /* 0x36043603: pop edi */
    198     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36043604: sbb eax, eax */
    199       eax = _sc ? 0xFFFFFFFFu : 0;
    200       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    201       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    202     esi = POP32_VAL(esp); /* 0x36043606: pop esi */
    203     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    204     eax = eax + 1; /* 0x36043607: inc eax */
    205     _flag_k = FK_INC;
    206     ebx = POP32_VAL(esp); /* 0x36043608: pop ebx */
    207     ebp = POP32_VAL(esp); /* 0x36043609: pop ebp */
    208     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604360A: ret 4 */
    209     RECOMP_REGS_OUT();
    210 }
    211 
    212 void sub_36043610(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(0x36043610u);
    221 
    222 L_36043610:
    223     PUSH32(esp, ebp); /* 0x36043610: push ebp */
    224     ebp = esp; /* 0x36043611: mov ebp, esp */
    225     PUSH32(esp, ebx); /* 0x36043613: push ebx */
    226     ebx = MEM32(ebp + 0x8); /* 0x36043614: mov ebx, dword ptr [ebp + 8] */
    227     PUSH32(esp, esi); /* 0x36043617: push esi */
    228     esi = ecx; /* 0x36043618: mov esi, ecx */
    229     eax = MEM32(esi + 0x20); /* 0x3604361A: mov eax, dword ptr [esi + 0x20] */
    230     PUSH32(esp, edi); /* 0x3604361D: push edi */
    231     edi = MEM32(0x3616FAEC); /* 0x3604361E: mov edi, dword ptr [0x3616faec] */
    232     PUSH32(esp, eax); /* 0x36043624: push eax */
    233     ecx = ebx; /* 0x36043625: mov ecx, ebx */
    234     RECOMP_ICALL(edi); /* 0x36043627: call edi */
    235     RECOMP_FLAGS_IN();
    236     ecx = MEM32(esi + 0x24); /* 0x36043629: mov ecx, dword ptr [esi + 0x24] */
    237     PUSH32(esp, ecx); /* 0x3604362C: push ecx */
    238     ecx = ebx; /* 0x3604362D: mov ecx, ebx */
    239     RECOMP_ICALL(edi); /* 0x3604362F: call edi */
    240     RECOMP_FLAGS_IN();
    241     edx = MEM32(esi + 0x30); /* 0x36043631: mov edx, dword ptr [esi + 0x30] */
    242     eax = MEM32(esi + 0x2C); /* 0x36043634: mov eax, dword ptr [esi + 0x2c] */
    243     ecx = MEM32(esi + 0x28); /* 0x36043637: mov ecx, dword ptr [esi + 0x28] */
    244     edi = MEM32(0x3616FAD4); /* 0x3604363A: mov edi, dword ptr [0x3616fad4] */
    245     PUSH32(esp, edx); /* 0x36043640: push edx */
    246     PUSH32(esp, eax); /* 0x36043641: push eax */
    247     PUSH32(esp, ecx); /* 0x36043642: push ecx */
    248     ecx = ebx; /* 0x36043643: mov ecx, ebx */
    249     RECOMP_ICALL(edi); /* 0x36043645: call edi */
    250     RECOMP_FLAGS_IN();
    251     ecx = eax; /* 0x36043647: mov ecx, eax */
    252     RECOMP_ICALL(edi); /* 0x36043649: call edi */
    253     RECOMP_FLAGS_IN();
    254     ecx = eax; /* 0x3604364B: mov ecx, eax */
    255     RECOMP_ICALL(edi); /* 0x3604364D: call edi */
    256     RECOMP_FLAGS_IN();
    257     edx = MEM32(esi + 0x3C); /* 0x3604364F: mov edx, dword ptr [esi + 0x3c] */
    258     eax = MEM32(esi + 0x38); /* 0x36043652: mov eax, dword ptr [esi + 0x38] */
    259     ecx = MEM32(esi + 0x34); /* 0x36043655: mov ecx, dword ptr [esi + 0x34] */
    260     PUSH32(esp, edx); /* 0x36043658: push edx */
    261     PUSH32(esp, eax); /* 0x36043659: push eax */
    262     PUSH32(esp, ecx); /* 0x3604365A: push ecx */
    263     ecx = ebx; /* 0x3604365B: mov ecx, ebx */
    264     RECOMP_ICALL(edi); /* 0x3604365D: call edi */
    265     RECOMP_FLAGS_IN();
    266     ecx = eax; /* 0x3604365F: mov ecx, eax */
    267     RECOMP_ICALL(edi); /* 0x36043661: call edi */
    268     RECOMP_FLAGS_IN();
    269     ecx = eax; /* 0x36043663: mov ecx, eax */
    270     RECOMP_ICALL(edi); /* 0x36043665: call edi */
    271     RECOMP_FLAGS_IN();
    272     edx = MEM32(esi + 0x4C); /* 0x36043667: mov edx, dword ptr [esi + 0x4c] */
    273     eax = MEM32(esi + 0x48); /* 0x3604366A: mov eax, dword ptr [esi + 0x48] */
    274     ecx = MEM32(esi + 0x44); /* 0x3604366D: mov ecx, dword ptr [esi + 0x44] */
    275     PUSH32(esp, edx); /* 0x36043670: push edx */
    276     edx = MEM32(esi + 0x40); /* 0x36043671: mov edx, dword ptr [esi + 0x40] */
    277     PUSH32(esp, eax); /* 0x36043674: push eax */
    278     PUSH32(esp, ecx); /* 0x36043675: push ecx */
    279     PUSH32(esp, edx); /* 0x36043676: push edx */
    280     ecx = ebx; /* 0x36043677: mov ecx, ebx */
    281     RECOMP_ICALL(edi); /* 0x36043679: call edi */
    282     RECOMP_FLAGS_IN();
    283     ecx = eax; /* 0x3604367B: mov ecx, eax */
    284     RECOMP_ICALL(edi); /* 0x3604367D: call edi */
    285     RECOMP_FLAGS_IN();
    286     ecx = eax; /* 0x3604367F: mov ecx, eax */
    287     RECOMP_ICALL(edi); /* 0x36043681: call edi */
    288     RECOMP_FLAGS_IN();
    289     ecx = eax; /* 0x36043683: mov ecx, eax */
    290     RECOMP_ICALL(edi); /* 0x36043685: call edi */
    291     RECOMP_FLAGS_IN();
    292     eax = MEM32(esi + 0x50); /* 0x36043687: mov eax, dword ptr [esi + 0x50] */
    293     PUSH32(esp, eax); /* 0x3604368A: push eax */
    294     ecx = ebx; /* 0x3604368B: mov ecx, ebx */
    295     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3604368D: call dword ptr [0x3616faec] */
    296     RECOMP_FLAGS_IN();
    297     edi = POP32_VAL(esp); /* 0x36043693: pop edi */
    298     esi = POP32_VAL(esp); /* 0x36043694: pop esi */
    299     ebx = POP32_VAL(esp); /* 0x36043695: pop ebx */
    300     ebp = POP32_VAL(esp); /* 0x36043696: pop ebp */
    301     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043697: ret 4 */
    302     RECOMP_REGS_OUT();
    303 }
    304 
    305 void sub_360436A0(void) {
    306     int _fpu_cmp = 0;
    307     uint32_t _cf = 0;
    308     int _df = 1;
    309     uint32_t _flag_k = FK_NONE;
    310     uint32_t _flag_a = 0, _flag_b = 0;
    311     uint32_t _itail_tgt = 0;
    312     RECOMP_REGS_LOCALS
    313     RECOMP_ENTER(0x360436A0u);
    314 
    315 L_360436A0:
    316     PUSH32(esp, ebp); /* 0x360436A0: push ebp */
    317     ebp = esp; /* 0x360436A1: mov ebp, esp */
    318     PUSH32(esp, 0xFFFFFFFFu); /* 0x360436A3: push -1 */
    319     PUSH32(esp, 0x36163E19u); /* 0x360436A5: push 0x36163e19 */
    320     eax = MEM32(FS_BASE + (0)); /* 0x360436AA: mov eax, dword ptr fs:[0] */
    321     PUSH32(esp, eax); /* 0x360436B0: push eax */
    322     MEM32(FS_BASE + (0)) = esp; /* 0x360436B1: mov dword ptr fs:[0], esp */
    323     PUSH32(esp, ecx); /* 0x360436B8: push ecx */
    324     PUSH32(esp, esi); /* 0x360436B9: push esi */
    325     esi = ecx; /* 0x360436BA: mov esi, ecx */
    326     MEM32(ebp + (-0x10)) = esi; /* 0x360436BC: mov dword ptr [ebp - 0x10], esi */
    327     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360436BF: call dword ptr [0x3616ffd0] */
    328     RECOMP_FLAGS_IN();
    329     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    330     eax = 0; /* 0x360436C5: xor eax, eax */
    331     _cf = 0;
    332     _flag_k = FK_TEST;
    333     ecx = esi; /* 0x360436C7: mov ecx, esi */
    334     MEM32(ebp + (-0x4)) = eax; /* 0x360436C9: mov dword ptr [ebp - 4], eax */
    335     MEM8(esi + 0x20) = (uint8_t)(LO8(eax)); /* 0x360436CC: mov byte ptr [esi + 0x20], al */
    336     MEM32(esi) = 0x36170B1Cu; /* 0x360436CF: mov dword ptr [esi], 0x36170b1c */
    337     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x360436D5: call dword ptr [0x3616fc20] */
    338     RECOMP_FLAGS_IN();
    339     ecx = MEM32(ebp + (-0xC)); /* 0x360436DB: mov ecx, dword ptr [ebp - 0xc] */
    340     eax = esi; /* 0x360436DE: mov eax, esi */
    341     esi = POP32_VAL(esp); /* 0x360436E0: pop esi */
    342     MEM32(FS_BASE + (0)) = ecx; /* 0x360436E1: mov dword ptr fs:[0], ecx */
    343     esp = ebp; /* 0x360436E8: mov esp, ebp */
    344     ebp = POP32_VAL(esp); /* 0x360436EA: pop ebp */
    345     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360436EB: ret  */
    346     RECOMP_REGS_OUT();
    347 }
    348 
    349 void sub_360436F0(void) {
    350     int _fpu_cmp = 0;
    351     uint32_t _cf = 0;
    352     int _df = 1;
    353     uint32_t _flag_k = FK_NONE;
    354     uint32_t _flag_a = 0, _flag_b = 0;
    355     uint32_t _itail_tgt = 0;
    356     RECOMP_REGS_LOCALS
    357     RECOMP_ENTER(0x360436F0u);
    358 
    359 L_360436F0:
    360     PUSH32(esp, ebp); /* 0x360436F0: push ebp */
    361     ebp = esp; /* 0x360436F1: mov ebp, esp */
    362     PUSH32(esp, esi); /* 0x360436F3: push esi */
    363     esi = ecx; /* 0x360436F4: mov esi, ecx */
    364     RECOMP_ICALL(0x36043720u); /* 0x360436F6: call 0x36043720 */ /* not lifted */
    365     RECOMP_FLAGS_IN();
    366     /* test MEM8(ebp + 0x8), 1 */ /* 0x360436FB: test byte ptr [ebp + 8], 1 */
    367     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    368     _cf = 0;
    369     _flag_k = FK_NARROW(FK_TEST, 24);
    370     if (TEST_Z(_flag_a, _flag_b)) goto L_3604370A; /* 0x360436FF: je 0x3604370a */
    371 L_36043701:
    372     PUSH32(esp, esi); /* 0x36043701: push esi */
    373     RECOMP_ICALL(0x3615FCC4u); /* 0x36043702: call 0x3615fcc4 */ /* not lifted */
    374     RECOMP_FLAGS_IN();
    375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    377     esp = esp + 4; /* 0x36043707: add esp, 4 */
    378     _flag_k = FK_ADD;
    379 L_3604370A:
    380     eax = esi; /* 0x3604370A: mov eax, esi */
    381     esi = POP32_VAL(esp); /* 0x3604370C: pop esi */
    382     ebp = POP32_VAL(esp); /* 0x3604370D: pop ebp */
    383     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604370E: ret 4 */
    384     RECOMP_REGS_OUT();
    385 }
    386 
    387 void sub_36043720(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(0x36043720u);
    396 
    397 L_36043720:
    398     MEM32(ecx) = 0x36170B1Cu; /* 0x36043720: mov dword ptr [ecx], 0x36170b1c */
    399 L_36043726:
    400     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
    401     { RECOMP_REGS_OUT(); return; } /* end of function */
    402   _ljump:
    403     switch (_itail_tgt) {
    404       case 0x36043720u: goto L_36043720;
    405       case 0x36043726u: goto L_36043726;
    406       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    407     }
    408     RECOMP_REGS_OUT();
    409 }
    410 
    411 void sub_36043730(void) {
    412     int _fpu_cmp = 0;
    413     uint32_t _cf = 0;
    414     int _df = 1;
    415     uint32_t _flag_k = FK_NONE;
    416     uint32_t _flag_a = 0, _flag_b = 0;
    417     uint32_t _itail_tgt = 0;
    418     RECOMP_REGS_LOCALS
    419     RECOMP_ENTER(0x36043730u);
    420 
    421 L_36043730:
    422     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
    423     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    424     ecx = ecx + 4; /* 0x36043730: add ecx, 4 */
    425     _flag_k = FK_ADD;
    426     PUSH32(esp, ecx); /* 0x36043733: push ecx */
    427     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36043734: call dword ptr [0x3616ff70] */
    428     RECOMP_FLAGS_IN();
    429     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    430     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    431     esp = esp + 4; /* 0x3604373A: add esp, 4 */
    432     _flag_k = FK_ADD;
    433     /* test eax, eax */ /* 0x3604373D: test eax, eax */
    434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    435     _cf = 0;
    436     _flag_k = FK_TEST;
    437     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043747; /* 0x3604373F: jne 0x36043747 */
    438 L_36043741:
    439     eax = 2; /* 0x36043741: mov eax, 2 */
    440     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043746: ret  */
    441 L_36043747:
    442     /* cmp MEM8(eax + 0x94), 1 */ /* 0x36043747: cmp byte ptr [eax + 0x94], 1 */
    443     _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24;
    444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    445     _flag_k = FK_NARROW(FK_CMP, 24);
    446     if (CMP_NE(_flag_a, _flag_b)) goto L_36043756; /* 0x3604374E: jne 0x36043756 */
    447 L_36043750:
    448     eax = 3; /* 0x36043750: mov eax, 3 */
    449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043755: ret  */
    450 L_36043756:
    451     PUSH32(esp, 0); /* 0x36043756: push 0 */
    452     PUSH32(esp, 0x361C1178u); /* 0x36043758: push 0x361c1178 */
    453     PUSH32(esp, 0x361B2CC0u); /* 0x3604375D: push 0x361b2cc0 */
    454     PUSH32(esp, 0); /* 0x36043762: push 0 */
    455     PUSH32(esp, eax); /* 0x36043764: push eax */
    456     RECOMP_ICALL(0x3615FD86u); /* 0x36043765: call 0x3615fd86 */ /* not lifted */
    457     RECOMP_FLAGS_IN();
    458     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    459     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    460     esp = esp + 0x14u; /* 0x3604376A: add esp, 0x14 */
    461     _flag_k = FK_ADD;
    462     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    463     _cf = (eax) != 0;
    464     eax = (uint32_t)(-(int32_t)eax); /* 0x3604376D: neg eax */
    465     _flag_k = FK_CMP;
    466     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3604376F: sbb eax, eax */
    467       eax = _sc ? 0xFFFFFFFFu : 0;
    468       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    469       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    470     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu);
    471     eax = eax & 0xFFFFFFFEu; /* 0x36043771: and eax, 0xfffffffe */
    472     _cf = 0;
    473     _flag_k = FK_TEST;
    474     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
    475     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    476     eax = eax + 3; /* 0x36043774: add eax, 3 */
    477     _flag_k = FK_ADD;
    478     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043777: ret  */
    479     RECOMP_REGS_OUT();
    480 }
    481 
    482 void sub_36043780(void) {
    483     int _fpu_cmp = 0;
    484     uint32_t _cf = 0;
    485     int _df = 1;
    486     uint32_t _flag_k = FK_NONE;
    487     uint32_t _flag_a = 0, _flag_b = 0;
    488     uint32_t _itail_tgt = 0;
    489     RECOMP_REGS_LOCALS
    490     RECOMP_ENTER(0x36043780u);
    491 
    492 L_36043780:
    493     PUSH32(esp, esi); /* 0x36043780: push esi */
    494     esi = ecx; /* 0x36043781: mov esi, ecx */
    495     eax = esi + 0x4; /* 0x36043783: lea eax, [esi + 4] */
    496     PUSH32(esp, edi); /* 0x36043786: push edi */
    497     PUSH32(esp, eax); /* 0x36043787: push eax */
    498     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36043788: call dword ptr [0x3616ff70] */
    499     RECOMP_FLAGS_IN();
    500     PUSH32(esp, 1); /* 0x3604378E: push 1 */
    501     PUSH32(esp, 0x361C1178u); /* 0x36043790: push 0x361c1178 */
    502     PUSH32(esp, 0x361B2CC0u); /* 0x36043795: push 0x361b2cc0 */
    503     edi = eax; /* 0x3604379A: mov edi, eax */
    504     PUSH32(esp, 0); /* 0x3604379C: push 0 */
    505     PUSH32(esp, edi); /* 0x3604379E: push edi */
    506     RECOMP_ICALL(0x3615FD86u); /* 0x3604379F: call 0x3615fd86 */ /* not lifted */
    507     RECOMP_FLAGS_IN();
    508     ecx = eax; /* 0x360437A4: mov ecx, eax */
    509     SET_LO8(eax, MEM8(esi + 0x20)); /* 0x360437A6: mov al, byte ptr [esi + 0x20] */
    510     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    511     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    512     esp = esp + 0x18u; /* 0x360437A9: add esp, 0x18 */
    513     _flag_k = FK_ADD;
    514     /* test LO8(eax), LO8(eax) */ /* 0x360437AC: test al, al */
    515     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    516     _cf = 0;
    517     _flag_k = FK_NARROW(FK_TEST, 24);
    518     if (TEST_Z(_flag_a, _flag_b)) goto L_360437BA; /* 0x360437AE: je 0x360437ba */
    519 L_360437B0:
    520     edx = MEM32(ecx); /* 0x360437B0: mov edx, dword ptr [ecx] */
    521     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360437B2: call dword ptr [edx + 4] */
    522     RECOMP_FLAGS_IN();
    523     eax = edi; /* 0x360437B5: mov eax, edi */
    524     edi = POP32_VAL(esp); /* 0x360437B7: pop edi */
    525     esi = POP32_VAL(esp); /* 0x360437B8: pop esi */
    526     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360437B9: ret  */
    527 L_360437BA:
    528     eax = MEM32(ecx); /* 0x360437BA: mov eax, dword ptr [ecx] */
    529     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360437BC: call dword ptr [eax + 8] */
    530     RECOMP_FLAGS_IN();
    531     eax = edi; /* 0x360437BF: mov eax, edi */
    532     edi = POP32_VAL(esp); /* 0x360437C1: pop edi */
    533     esi = POP32_VAL(esp); /* 0x360437C2: pop esi */
    534     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360437C3: ret  */
    535     RECOMP_REGS_OUT();
    536 }
    537 
    538 void sub_360437D0(void) {
    539     int _fpu_cmp = 0;
    540     uint32_t _cf = 0;
    541     int _df = 1;
    542     uint32_t _flag_k = FK_NONE;
    543     uint32_t _flag_a = 0, _flag_b = 0;
    544     uint32_t _itail_tgt = 0;
    545     RECOMP_REGS_LOCALS
    546     RECOMP_ENTER(0x360437D0u);
    547 
    548 L_360437D0:
    549     PUSH32(esp, ebp); /* 0x360437D0: push ebp */
    550     ebp = esp; /* 0x360437D1: mov ebp, esp */
    551     PUSH32(esp, esi); /* 0x360437D3: push esi */
    552     PUSH32(esp, edi); /* 0x360437D4: push edi */
    553     edi = MEM32(ebp + 0x8); /* 0x360437D5: mov edi, dword ptr [ebp + 8] */
    554     eax = ebp + 0xB; /* 0x360437D8: lea eax, [ebp + 0xb] */
    555     esi = ecx; /* 0x360437DB: mov esi, ecx */
    556     PUSH32(esp, eax); /* 0x360437DD: push eax */
    557     ecx = edi; /* 0x360437DE: mov ecx, edi */
    558     RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x360437E0: call dword ptr [0x3616fae0] */
    559     RECOMP_FLAGS_IN();
    560     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360437E6: mov al, byte ptr [ebp + 0xb] */
    561     /* test LO8(eax), LO8(eax) */ /* 0x360437E9: test al, al */
    562     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    563     _cf = 0;
    564     _flag_k = FK_NARROW(FK_TEST, 24);
    565     SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360437EB: setne cl */
    566     MEM8(esi + 0x20) = (uint8_t)(LO8(ecx)); /* 0x360437EE: mov byte ptr [esi + 0x20], cl */
    567     ecx = edi; /* 0x360437F1: mov ecx, edi */
    568     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360437F3: call dword ptr [0x3616fadc] */
    569     RECOMP_FLAGS_IN();
    570     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
    571     _cf = (eax) != 0;
    572     eax = (uint32_t)(-(int32_t)eax); /* 0x360437F9: neg eax */
    573     _flag_k = FK_CMP;
    574     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360437FB: sbb eax, eax */
    575       eax = _sc ? 0xFFFFFFFFu : 0;
    576       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
    577       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
    578     edi = POP32_VAL(esp); /* 0x360437FD: pop edi */
    579     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    580     eax = eax + 1; /* 0x360437FE: inc eax */
    581     _flag_k = FK_INC;
    582     esi = POP32_VAL(esp); /* 0x360437FF: pop esi */
    583     ebp = POP32_VAL(esp); /* 0x36043800: pop ebp */
    584     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043801: ret 4 */
    585     RECOMP_REGS_OUT();
    586 }
    587 
    588 void sub_36043810(void) {
    589     int _fpu_cmp = 0;
    590     uint32_t _cf = 0;
    591     int _df = 1;
    592     uint32_t _flag_k = FK_NONE;
    593     uint32_t _flag_a = 0, _flag_b = 0;
    594     uint32_t _itail_tgt = 0;
    595     RECOMP_REGS_LOCALS
    596     RECOMP_ENTER(0x36043810u);
    597 
    598 L_36043810:
    599     PUSH32(esp, ebp); /* 0x36043810: push ebp */
    600     ebp = esp; /* 0x36043811: mov ebp, esp */
    601     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    602     eax = 0; /* 0x36043813: xor eax, eax */
    603     _cf = 0;
    604     _flag_k = FK_TEST;
    605     SET_LO8(eax, MEM8(ecx + 0x20)); /* 0x36043815: mov al, byte ptr [ecx + 0x20] */
    606     ecx = MEM32(ebp + 0x8); /* 0x36043818: mov ecx, dword ptr [ebp + 8] */
    607     PUSH32(esp, eax); /* 0x3604381B: push eax */
    608     RECOMP_ICALL(MEM32(0x3616FAE8)); /* 0x3604381C: call dword ptr [0x3616fae8] */
    609     RECOMP_FLAGS_IN();
    610     ebp = POP32_VAL(esp); /* 0x36043822: pop ebp */
    611     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043823: ret 4 */
    612     RECOMP_REGS_OUT();
    613 }
    614 
    615 void sub_36043830(void) {
    616     int _fpu_cmp = 0;
    617     uint32_t _cf = 0;
    618     int _df = 1;
    619     uint32_t _flag_k = FK_NONE;
    620     uint32_t _flag_a = 0, _flag_b = 0;
    621     uint32_t _itail_tgt = 0;
    622     RECOMP_REGS_LOCALS
    623     RECOMP_ENTER(0x36043830u);
    624 
    625 L_36043830:
    626     PUSH32(esp, ebp); /* 0x36043830: push ebp */
    627     ebp = esp; /* 0x36043831: mov ebp, esp */
    628     edx = MEM32(ebp + 0x8); /* 0x36043833: mov edx, dword ptr [ebp + 8] */
    629     eax = ecx; /* 0x36043836: mov eax, ecx */
    630     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    631     ecx = 0; /* 0x36043838: xor ecx, ecx */
    632     _cf = 0;
    633     _flag_k = FK_TEST;
    634     MEM32(eax + 0x4) = ecx; /* 0x3604383A: mov dword ptr [eax + 4], ecx */
    635     MEM32(eax + 0x8) = ecx; /* 0x3604383D: mov dword ptr [eax + 8], ecx */
    636     MEM32(eax + 0xC) = ecx; /* 0x36043840: mov dword ptr [eax + 0xc], ecx */
    637     MEM32(eax + 0x10) = edx; /* 0x36043843: mov dword ptr [eax + 0x10], edx */
    638     MEM32(eax + 0x14) = 0xFFFFFFFFu; /* 0x36043846: mov dword ptr [eax + 0x14], 0xffffffff */
    639     MEM32(eax + 0x18) = 0x78u; /* 0x3604384D: mov dword ptr [eax + 0x18], 0x78 */
    640     MEM32(eax + 0x1C) = ecx; /* 0x36043854: mov dword ptr [eax + 0x1c], ecx */
    641     MEM32(eax) = 0x36170B40u; /* 0x36043857: mov dword ptr [eax], 0x36170b40 */
    642     ebp = POP32_VAL(esp); /* 0x3604385D: pop ebp */
    643     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604385E: ret 4 */
    644     RECOMP_REGS_OUT();
    645 }
    646 
    647 void sub_36043870(void) {
    648     int _fpu_cmp = 0;
    649     uint32_t _cf = 0;
    650     int _df = 1;
    651     uint32_t _flag_k = FK_NONE;
    652     uint32_t _flag_a = 0, _flag_b = 0;
    653     uint32_t _itail_tgt = 0;
    654     RECOMP_REGS_LOCALS
    655     RECOMP_ENTER(0x36043870u);
    656 
    657 L_36043870:
    658     PUSH32(esp, esi); /* 0x36043870: push esi */
    659     esi = ecx; /* 0x36043871: mov esi, ecx */
    660     RECOMP_ICALL(0x36043B20u); /* 0x36043873: call 0x36043b20 */ /* not lifted */
    661     RECOMP_FLAGS_IN();
    662     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    663     eax = 0; /* 0x36043878: xor eax, eax */
    664     _cf = 0;
    665     _flag_k = FK_TEST;
    666     MEM32(esi + 0x48) = eax; /* 0x3604387A: mov dword ptr [esi + 0x48], eax */
    667     MEM32(esi + 0x4C) = eax; /* 0x3604387D: mov dword ptr [esi + 0x4c], eax */
    668     MEM32(esi) = 0x36170B48u; /* 0x36043880: mov dword ptr [esi], 0x36170b48 */
    669     eax = esi; /* 0x36043886: mov eax, esi */
    670     esi = POP32_VAL(esp); /* 0x36043888: pop esi */
    671     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043889: ret  */
    672     RECOMP_REGS_OUT();
    673 }
    674 
    675 void sub_36043890(void) {
    676     int _fpu_cmp = 0;
    677     uint32_t _cf = 0;
    678     int _df = 1;
    679     uint32_t _flag_k = FK_NONE;
    680     uint32_t _flag_a = 0, _flag_b = 0;
    681     uint32_t _itail_tgt = 0;
    682     RECOMP_REGS_LOCALS
    683     RECOMP_ENTER(0x36043890u);
    684 
    685 L_36043890:
    686     PUSH32(esp, ebp); /* 0x36043890: push ebp */
    687     ebp = esp; /* 0x36043891: mov ebp, esp */
    688     PUSH32(esp, esi); /* 0x36043893: push esi */
    689     esi = ecx; /* 0x36043894: mov esi, ecx */
    690     RECOMP_ICALL(0x360439D0u); /* 0x36043896: call 0x360439d0 */ /* not lifted */
    691     RECOMP_FLAGS_IN();
    692     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604389B: test byte ptr [ebp + 8], 1 */
    693     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
    694     _cf = 0;
    695     _flag_k = FK_NARROW(FK_TEST, 24);
    696     if (TEST_Z(_flag_a, _flag_b)) goto L_360438AA; /* 0x3604389F: je 0x360438aa */
    697 L_360438A1:
    698     PUSH32(esp, esi); /* 0x360438A1: push esi */
    699     RECOMP_ICALL(0x3615FCC4u); /* 0x360438A2: call 0x3615fcc4 */ /* not lifted */
    700     RECOMP_FLAGS_IN();
    701     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    702     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    703     esp = esp + 4; /* 0x360438A7: add esp, 4 */
    704     _flag_k = FK_ADD;
    705 L_360438AA:
    706     eax = esi; /* 0x360438AA: mov eax, esi */
    707     esi = POP32_VAL(esp); /* 0x360438AC: pop esi */
    708     ebp = POP32_VAL(esp); /* 0x360438AD: pop ebp */
    709     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360438AE: ret 4 */
    710     RECOMP_REGS_OUT();
    711 }
    712 
    713 void sub_360438C0(void) {
    714     int _fpu_cmp = 0;
    715     uint32_t _cf = 0;
    716     int _df = 1;
    717     uint32_t _flag_k = FK_NONE;
    718     uint32_t _flag_a = 0, _flag_b = 0;
    719     uint32_t _itail_tgt = 0;
    720     RECOMP_REGS_LOCALS
    721     RECOMP_ENTER(0x360438C0u);
    722 
    723 L_360438C0:
    724     PUSH32(esp, ebp); /* 0x360438C0: push ebp */
    725     ebp = esp; /* 0x360438C1: mov ebp, esp */
    726     PUSH32(esp, 0xFFFFFFFFu); /* 0x360438C3: push -1 */
    727     PUSH32(esp, 0x36163E39u); /* 0x360438C5: push 0x36163e39 */
    728     eax = MEM32(FS_BASE + (0)); /* 0x360438CA: mov eax, dword ptr fs:[0] */
    729     PUSH32(esp, eax); /* 0x360438D0: push eax */
    730     MEM32(FS_BASE + (0)) = esp; /* 0x360438D1: mov dword ptr fs:[0], esp */
    731     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
    732     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    733     esp = esp - 0x14u; /* 0x360438D8: sub esp, 0x14 */
    734     _flag_k = FK_CMP;
    735     SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x360438DB: mov al, byte ptr [ebp + 0xf] */
    736     PUSH32(esp, ebx); /* 0x360438DE: push ebx */
    737     PUSH32(esp, esi); /* 0x360438DF: push esi */
    738     esi = ecx; /* 0x360438E0: mov esi, ecx */
    739     PUSH32(esp, edi); /* 0x360438E2: push edi */
    740     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
    741     ecx = ecx | 0xFFFFFFFFu; /* 0x360438E3: or ecx, 0xffffffff */
    742     _cf = 0;
    743     _flag_k = FK_TEST;
    744     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x360438E6: mov byte ptr [ebp - 0x20], al */
    745     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    746     eax = 0; /* 0x360438E9: xor eax, eax */
    747     _cf = 0;
    748     _flag_k = FK_TEST;
    749     edi = 0x361B4294u; /* 0x360438EB: mov edi, 0x361b4294 */
    750     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x360438F0: repne scasb al, byte ptr es:[edi] */
    751     ecx = ~ecx; /* 0x360438F2: not ecx */
    752     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
    753     ecx = ecx - 1; /* 0x360438F4: dec ecx */
    754     _flag_k = FK_DEC;
    755     ebx = ecx; /* 0x360438F5: mov ebx, ecx */
    756     PUSH32(esp, 1); /* 0x360438F7: push 1 */
    757     PUSH32(esp, ebx); /* 0x360438F9: push ebx */
    758     ecx = ebp + (-0x20); /* 0x360438FA: lea ecx, [ebp - 0x20] */
    759     MEM32(ebp + (-0x10)) = esi; /* 0x360438FD: mov dword ptr [ebp - 0x10], esi */
    760     MEM32(ebp + (-0x1C)) = eax; /* 0x36043900: mov dword ptr [ebp - 0x1c], eax */
    761     MEM32(ebp + (-0x18)) = eax; /* 0x36043903: mov dword ptr [ebp - 0x18], eax */
    762     MEM32(ebp + (-0x14)) = eax; /* 0x36043906: mov dword ptr [ebp - 0x14], eax */
    763     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36043909: call dword ptr [0x3616f00c] */
    764     RECOMP_FLAGS_IN();
    765     /* test LO8(eax), LO8(eax) */ /* 0x3604390F: test al, al */
    766     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    767     _cf = 0;
    768     _flag_k = FK_NARROW(FK_TEST, 24);
    769     if (TEST_Z(_flag_a, _flag_b)) goto L_36043938; /* 0x36043911: je 0x36043938 */
    770 L_36043913:
    771     edi = MEM32(ebp + (-0x1C)); /* 0x36043913: mov edi, dword ptr [ebp - 0x1c] */
    772     ecx = ebx; /* 0x36043916: mov ecx, ebx */
    773     edx = ecx; /* 0x36043918: mov edx, ecx */
    774     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3604391A: shr ecx, 2 */
    775     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
    776     ecx = ecx >> 2u; /* 0x3604391A: shr ecx, 2 */
    777     esi = 0x361B4294u; /* 0x3604391D: mov esi, 0x361b4294 */
    778     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36043922: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    779     ecx = edx; /* 0x36043924: mov ecx, edx */
    780     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
    781     ecx = ecx & 3; /* 0x36043926: and ecx, 3 */
    782     _cf = 0;
    783     _flag_k = FK_TEST;
    784     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36043929: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
    785     eax = MEM32(ebp + (-0x1C)); /* 0x3604392B: mov eax, dword ptr [ebp - 0x1c] */
    786     esi = MEM32(ebp + (-0x10)); /* 0x3604392E: mov esi, dword ptr [ebp - 0x10] */
    787     MEM32(ebp + (-0x18)) = ebx; /* 0x36043931: mov dword ptr [ebp - 0x18], ebx */
    788     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36043934: mov byte ptr [eax + ebx], 0 */
    789 L_36043938:
    790     edx = MEM32(ebp + 0x1C); /* 0x36043938: mov edx, dword ptr [ebp + 0x1c] */
    791     eax = MEM32(ebp + 0x20); /* 0x3604393B: mov eax, dword ptr [ebp + 0x20] */
    792     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    794     esp = esp - 0x10u; /* 0x3604393E: sub esp, 0x10 */
    795     _flag_k = FK_CMP;
    796     ecx = esp; /* 0x36043941: mov ecx, esp */
    797     MEM32(ecx) = edx; /* 0x36043943: mov dword ptr [ecx], edx */
    798     edx = MEM32(ebp + 0x24); /* 0x36043945: mov edx, dword ptr [ebp + 0x24] */
    799     MEM32(ecx + 0x4) = eax; /* 0x36043948: mov dword ptr [ecx + 4], eax */
    800     eax = MEM32(ebp + 0x28); /* 0x3604394B: mov eax, dword ptr [ebp + 0x28] */
    801     MEM32(ecx + 0x8) = edx; /* 0x3604394E: mov dword ptr [ecx + 8], edx */
    802     edx = MEM32(ebp + 0x10); /* 0x36043951: mov edx, dword ptr [ebp + 0x10] */
    803     MEM32(ecx + 0xC) = eax; /* 0x36043954: mov dword ptr [ecx + 0xc], eax */
    804     eax = MEM32(ebp + 0x14); /* 0x36043957: mov eax, dword ptr [ebp + 0x14] */
    805     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    807     esp = esp - 0xCu; /* 0x3604395A: sub esp, 0xc */
    808     _flag_k = FK_CMP;
    809     ecx = esp; /* 0x3604395D: mov ecx, esp */
    810     MEM32(ecx) = edx; /* 0x3604395F: mov dword ptr [ecx], edx */
    811     edx = MEM32(ebp + 0x18); /* 0x36043961: mov edx, dword ptr [ebp + 0x18] */
    812     MEM32(ecx + 0x4) = eax; /* 0x36043964: mov dword ptr [ecx + 4], eax */
    813     eax = MEM32(ebp + 0xC); /* 0x36043967: mov eax, dword ptr [ebp + 0xc] */
    814     MEM32(ecx + 0x8) = edx; /* 0x3604396A: mov dword ptr [ecx + 8], edx */
    815     edx = MEM32(ebp + 0x8); /* 0x3604396D: mov edx, dword ptr [ebp + 8] */
    816     PUSH32(esp, eax); /* 0x36043970: push eax */
    817     ecx = ebp + (-0x20); /* 0x36043971: lea ecx, [ebp - 0x20] */
    818     PUSH32(esp, ecx); /* 0x36043974: push ecx */
    819     PUSH32(esp, edx); /* 0x36043975: push edx */
    820     ecx = esi; /* 0x36043976: mov ecx, esi */
    821     MEM32(ebp + (-0x4)) = 0; /* 0x36043978: mov dword ptr [ebp - 4], 0 */
    822     RECOMP_ICALL(0x36043B90u); /* 0x3604397F: call 0x36043b90 */ /* not lifted */
    823     RECOMP_FLAGS_IN();
    824     eax = MEM32(ebp + (-0x1C)); /* 0x36043984: mov eax, dword ptr [ebp - 0x1c] */
    825     /* test eax, eax */ /* 0x36043987: test eax, eax */
    826     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    827     _cf = 0;
    828     _flag_k = FK_TEST;
    829     if (TEST_Z(_flag_a, _flag_b)) goto L_360439A7; /* 0x36043989: je 0x360439a7 */
    830 L_3604398B:
    831     ecx = eax + (-0x1); /* 0x3604398B: lea ecx, [eax - 1] */
    832     SET_LO8(eax, MEM8(ecx)); /* 0x3604398E: mov al, byte ptr [ecx] */
    833     /* test LO8(eax), LO8(eax) */ /* 0x36043990: test al, al */
    834     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    835     _cf = 0;
    836     _flag_k = FK_NARROW(FK_TEST, 24);
    837     if (TEST_Z(_flag_a, _flag_b)) goto L_3604399E; /* 0x36043992: je 0x3604399e */
    838 L_36043994:
    839     /* cmp LO8(eax), 0xFFu */ /* 0x36043994: cmp al, 0xff */
    840     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
    841     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    842     _flag_k = FK_NARROW(FK_CMP, 24);
    843     if (CMP_EQ(_flag_a, _flag_b)) goto L_3604399E; /* 0x36043996: je 0x3604399e */
    844 L_36043998:
    845     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
    846     SET_LO8(eax, LO8(eax) - 1); /* 0x36043998: dec al */
    847     _flag_k = FK_NARROW(FK_DEC, 24);
    848     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3604399A: mov byte ptr [ecx], al */
    849     goto L_360439A7; /* 0x3604399C: jmp 0x360439a7 */
    850 L_3604399E:
    851     PUSH32(esp, ecx); /* 0x3604399E: push ecx */
    852     RECOMP_ICALL(0x3615FCC4u); /* 0x3604399F: call 0x3615fcc4 */ /* not lifted */
    853     RECOMP_FLAGS_IN();
    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; /* 0x360439A4: add esp, 4 */
    857     _flag_k = FK_ADD;
    858 L_360439A7:
    859     eax = MEM32(ebp + 0x2C); /* 0x360439A7: mov eax, dword ptr [ebp + 0x2c] */
    860     ecx = MEM32(ebp + 0x30); /* 0x360439AA: mov ecx, dword ptr [ebp + 0x30] */
    861     MEM32(esi + 0x48) = eax; /* 0x360439AD: mov dword ptr [esi + 0x48], eax */
    862     MEM32(esi + 0x4C) = ecx; /* 0x360439B0: mov dword ptr [esi + 0x4c], ecx */
    863     ecx = MEM32(ebp + (-0xC)); /* 0x360439B3: mov ecx, dword ptr [ebp - 0xc] */
    864     edi = POP32_VAL(esp); /* 0x360439B6: pop edi */
    865     MEM32(esi) = 0x36170B48u; /* 0x360439B7: mov dword ptr [esi], 0x36170b48 */
    866     eax = esi; /* 0x360439BD: mov eax, esi */
    867     esi = POP32_VAL(esp); /* 0x360439BF: pop esi */
    868     MEM32(FS_BASE + (0)) = ecx; /* 0x360439C0: mov dword ptr fs:[0], ecx */
    869     ebx = POP32_VAL(esp); /* 0x360439C7: pop ebx */
    870     esp = ebp; /* 0x360439C8: mov esp, ebp */
    871     ebp = POP32_VAL(esp); /* 0x360439CA: pop ebp */
    872     RECOMP_FLAGS_OUT(); esp += 48; { RECOMP_REGS_OUT(); return; } /* 0x360439CB: ret 0x2c */
    873     RECOMP_REGS_OUT();
    874 }
    875 
    876 void sub_360439D0(void) {
    877     int _fpu_cmp = 0;
    878     uint32_t _cf = 0;
    879     int _df = 1;
    880     uint32_t _flag_k = FK_NONE;
    881     uint32_t _flag_a = 0, _flag_b = 0;
    882     uint32_t _itail_tgt = 0;
    883     RECOMP_REGS_LOCALS
    884     RECOMP_ENTER(0x360439D0u);
    885 
    886 L_360439D0:
    887     MEM32(ecx) = 0x36170B48u; /* 0x360439D0: mov dword ptr [ecx], 0x36170b48 */
    888 L_360439D6:
    889     goto L_36043C00; /* 0x360439D6: jmp 0x36043c00 */
    890 L_36043C00:
    891     MEM32(ecx) = 0x36170B74u; /* 0x36043C00: mov dword ptr [ecx], 0x36170b74 */
    892 L_36043C06:
    893     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
    894     { RECOMP_REGS_OUT(); return; } /* end of function */
    895   _ljump:
    896     switch (_itail_tgt) {
    897       case 0x360439D0u: goto L_360439D0;
    898       case 0x360439D6u: goto L_360439D6;
    899       case 0x36043C00u: goto L_36043C00;
    900       case 0x36043C06u: goto L_36043C06;
    901       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    902     }
    903     RECOMP_REGS_OUT();
    904 }
    905 
    906 void sub_360439E0(void) {
    907     int _fpu_cmp = 0;
    908     uint32_t _cf = 0;
    909     int _df = 1;
    910     uint32_t _flag_k = FK_NONE;
    911     uint32_t _flag_a = 0, _flag_b = 0;
    912     uint32_t _itail_tgt = 0;
    913     RECOMP_REGS_LOCALS
    914     RECOMP_ENTER(0x360439E0u);
    915 
    916 L_360439E0:
    917     PUSH32(esp, esi); /* 0x360439E0: push esi */
    918     PUSH32(esp, edi); /* 0x360439E1: push edi */
    919     esi = ecx; /* 0x360439E2: mov esi, ecx */
    920     RECOMP_ICALL(0x36043C50u); /* 0x360439E4: call 0x36043c50 */ /* not lifted */
    921     RECOMP_FLAGS_IN();
    922     edi = eax; /* 0x360439E9: mov edi, eax */
    923     /* test edi, edi */ /* 0x360439EB: test edi, edi */
    924     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    925     _cf = 0;
    926     _flag_k = FK_TEST;
    927     if (TEST_Z(_flag_a, _flag_b)) goto L_36043A50; /* 0x360439ED: je 0x36043a50 */
    928 L_360439EF:
    929     /* cmp MEM32(esi + 0x20), 0x14u */ /* 0x360439EF: cmp dword ptr [esi + 0x20], 0x14 */
    930     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(0x14u);
    931     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    932     _flag_k = FK_CMP;
    933     ecx = MEM32(esi + 0x44); /* 0x360439F3: mov ecx, dword ptr [esi + 0x44] */
    934     if (CMP_NE(_flag_a, _flag_b)) goto L_36043A15; /* 0x360439F6: jne 0x36043a15 */
    935 L_360439F8:
    936     edx = MEM32(esi + 0x4C); /* 0x360439F8: mov edx, dword ptr [esi + 0x4c] */
    937     fp_push(*(float*)&MEM32(esi + 0x48)); /* 0x360439FB: fld dword ptr [esi + 0x48] */
    938     eax = MEM32(ecx); /* 0x360439FE: mov eax, dword ptr [ecx] */
    939     PUSH32(esp, edx); /* 0x36043A00: push edx */
    940     PUSH32(esp, ecx); /* 0x36043A01: push ecx */
    941     edx = esi + 0x30; /* 0x36043A02: lea edx, [esi + 0x30] */
    942     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36043A05: fstp dword ptr [esp] */
    943     PUSH32(esp, edx); /* 0x36043A08: push edx */
    944     edx = esi + 0x24; /* 0x36043A09: lea edx, [esi + 0x24] */
    945     PUSH32(esp, edx); /* 0x36043A0C: push edx */
    946     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x36043A0D: call dword ptr [eax + 0x84] */
    947     RECOMP_FLAGS_IN();
    948     goto L_36043A3D; /* 0x36043A13: jmp 0x36043a3d */
    949 L_36043A15:
    950     RECOMP_ICALL(0x3606D5A0u); /* 0x36043A15: call 0x3606d5a0 */ /* not lifted */
    951     RECOMP_FLAGS_IN();
    952     ecx = eax; /* 0x36043A1A: mov ecx, eax */
    953     RECOMP_ICALL(0x36048250u); /* 0x36043A1C: call 0x36048250 */ /* not lifted */
    954     RECOMP_FLAGS_IN();
    955     /* test LO8(eax), LO8(eax) */ /* 0x36043A21: test al, al */
    956     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    957     _cf = 0;
    958     _flag_k = FK_NARROW(FK_TEST, 24);
    959     if (TEST_Z(_flag_a, _flag_b)) goto L_36043A3D; /* 0x36043A23: je 0x36043a3d */
    960 L_36043A25:
    961     ecx = MEM32(esi + 0x44); /* 0x36043A25: mov ecx, dword ptr [esi + 0x44] */
    962     PUSH32(esp, 0); /* 0x36043A28: push 0 */
    963     PUSH32(esp, 0x40000000u); /* 0x36043A2A: push 0x40000000 */
    964     PUSH32(esp, 0); /* 0x36043A2F: push 0 */
    965     RECOMP_ICALL(0x3606D5A0u); /* 0x36043A31: call 0x3606d5a0 */ /* not lifted */
    966     RECOMP_FLAGS_IN();
    967     ecx = eax; /* 0x36043A36: mov ecx, eax */
    968     RECOMP_ICALL(0x36048260u); /* 0x36043A38: call 0x36048260 */ /* not lifted */
    969     RECOMP_FLAGS_IN();
    970 L_36043A3D:
    971     eax = MEM32(esi + 0x20); /* 0x36043A3D: mov eax, dword ptr [esi + 0x20] */
    972     ecx = MEM32(esi + 0x44); /* 0x36043A40: mov ecx, dword ptr [esi + 0x44] */
    973     PUSH32(esp, eax); /* 0x36043A43: push eax */
    974     RECOMP_ICALL(0x3606D5A0u); /* 0x36043A44: call 0x3606d5a0 */ /* not lifted */
    975     RECOMP_FLAGS_IN();
    976     ecx = eax; /* 0x36043A49: mov ecx, eax */
    977     RECOMP_ICALL(0x36049130u); /* 0x36043A4B: call 0x36049130 */ /* not lifted */
    978     RECOMP_FLAGS_IN();
    979 L_36043A50:
    980     eax = edi; /* 0x36043A50: mov eax, edi */
    981     edi = POP32_VAL(esp); /* 0x36043A52: pop edi */
    982     esi = POP32_VAL(esp); /* 0x36043A53: pop esi */
    983     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043A54: ret  */
    984     RECOMP_REGS_OUT();
    985 }
    986 
    987 void sub_36043A60(void) {
    988     int _fpu_cmp = 0;
    989     uint32_t _cf = 0;
    990     int _df = 1;
    991     uint32_t _flag_k = FK_NONE;
    992     uint32_t _flag_a = 0, _flag_b = 0;
    993     uint32_t _itail_tgt = 0;
    994     RECOMP_REGS_LOCALS
    995     RECOMP_ENTER(0x36043A60u);
    996 
    997 L_36043A60:
    998     PUSH32(esp, ebp); /* 0x36043A60: push ebp */
    999     ebp = esp; /* 0x36043A61: mov ebp, esp */
   1000     PUSH32(esp, ecx); /* 0x36043A63: push ecx */
   1001     PUSH32(esp, ebx); /* 0x36043A64: push ebx */
   1002     ebx = MEM32(ebp + 0x8); /* 0x36043A65: mov ebx, dword ptr [ebp + 8] */
   1003     PUSH32(esp, esi); /* 0x36043A68: push esi */
   1004     PUSH32(esp, edi); /* 0x36043A69: push edi */
   1005     esi = ecx; /* 0x36043A6A: mov esi, ecx */
   1006     PUSH32(esp, ebx); /* 0x36043A6C: push ebx */
   1007     RECOMP_ICALL(0x36043DC0u); /* 0x36043A6D: call 0x36043dc0 */ /* not lifted */
   1008     RECOMP_FLAGS_IN();
   1009     /* test eax, eax */ /* 0x36043A72: test eax, eax */
   1010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1011     _cf = 0;
   1012     _flag_k = FK_TEST;
   1013     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043AD9; /* 0x36043A74: jne 0x36043ad9 */
   1014 L_36043A76:
   1015     eax = ebp + 0xA; /* 0x36043A76: lea eax, [ebp + 0xa] */
   1016     PUSH32(esp, eax); /* 0x36043A79: push eax */
   1017     ecx = ebx; /* 0x36043A7A: mov ecx, ebx */
   1018     RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36043A7C: call dword ptr [0x3616fac8] */
   1019     RECOMP_FLAGS_IN();
   1020     ecx = (int32_t)(int16_t)MEM16(ebp + 0xA); /* 0x36043A82: movsx ecx, word ptr [ebp + 0xa] */
   1021     edi = MEM32(0x3616F1A8); /* 0x36043A86: mov edi, dword ptr [0x3616f1a8] */
   1022     MEM32(ebp + (-0x4)) = ecx; /* 0x36043A8C: mov dword ptr [ebp - 4], ecx */
   1023     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1025     esp = esp - 8; /* 0x36043A8F: sub esp, 8 */
   1026     _flag_k = FK_CMP;
   1027     MEM32(esi + 0x4C) = 0; /* 0x36043A92: mov dword ptr [esi + 0x4c], 0 */
   1028     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x36043A99: fild dword ptr [ebp - 4] */
   1029     _st[0] *= (double)*(float*)ADDR(0x36170B68); /* 0x36043A9C: fmul dword ptr [0x36170b68] */
   1030     { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x48) = _v; } /* 0x36043AA2: fst dword ptr [esi + 0x48] */
   1031     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043AA5: fstp qword ptr [esp] */
   1032     RECOMP_ICALL(edi); /* 0x36043AA8: call edi */
   1033     RECOMP_FLAGS_IN();
   1034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1036     esp = esp + 8; /* 0x36043AAA: add esp, 8 */
   1037     _flag_k = FK_ADD;
   1038     /* test eax, eax */ /* 0x36043AAD: test eax, eax */
   1039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1040     _cf = 0;
   1041     _flag_k = FK_TEST;
   1042     if (TEST_Z(_flag_a, _flag_b)) goto L_36043AD9; /* 0x36043AAF: je 0x36043ad9 */
   1043 L_36043AB1:
   1044     fp_push(*(float*)&MEM32(esi + 0x4C)); /* 0x36043AB1: fld dword ptr [esi + 0x4c] */
   1045     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1047     esp = esp - 8; /* 0x36043AB4: sub esp, 8 */
   1048     _flag_k = FK_CMP;
   1049     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043AB7: fstp qword ptr [esp] */
   1050     RECOMP_ICALL(edi); /* 0x36043ABA: call edi */
   1051     RECOMP_FLAGS_IN();
   1052     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1053     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1054     esp = esp + 8; /* 0x36043ABC: add esp, 8 */
   1055     _flag_k = FK_ADD;
   1056     /* test eax, eax */ /* 0x36043ABF: test eax, eax */
   1057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1058     _cf = 0;
   1059     _flag_k = FK_TEST;
   1060     if (TEST_Z(_flag_a, _flag_b)) goto L_36043AD9; /* 0x36043AC1: je 0x36043ad9 */
   1061 L_36043AC3:
   1062     ecx = ebx; /* 0x36043AC3: mov ecx, ebx */
   1063     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36043AC5: call dword ptr [0x3616fadc] */
   1064     RECOMP_FLAGS_IN();
   1065     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1066     _cf = (eax) != 0;
   1067     eax = (uint32_t)(-(int32_t)eax); /* 0x36043ACB: neg eax */
   1068     _flag_k = FK_CMP;
   1069     edi = POP32_VAL(esp); /* 0x36043ACD: pop edi */
   1070     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36043ACE: sbb eax, eax */
   1071       eax = _sc ? 0xFFFFFFFFu : 0;
   1072       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1073       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1074     esi = POP32_VAL(esp); /* 0x36043AD0: pop esi */
   1075     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1076     eax = eax + 1; /* 0x36043AD1: inc eax */
   1077     _flag_k = FK_INC;
   1078     ebx = POP32_VAL(esp); /* 0x36043AD2: pop ebx */
   1079     esp = ebp; /* 0x36043AD3: mov esp, ebp */
   1080     ebp = POP32_VAL(esp); /* 0x36043AD5: pop ebp */
   1081     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043AD6: ret 4 */
   1082 L_36043AD9:
   1083     edi = POP32_VAL(esp); /* 0x36043AD9: pop edi */
   1084     esi = POP32_VAL(esp); /* 0x36043ADA: pop esi */
   1085     eax = 1; /* 0x36043ADB: mov eax, 1 */
   1086     ebx = POP32_VAL(esp); /* 0x36043AE0: pop ebx */
   1087     esp = ebp; /* 0x36043AE1: mov esp, ebp */
   1088     ebp = POP32_VAL(esp); /* 0x36043AE3: pop ebp */
   1089     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043AE4: ret 4 */
   1090     RECOMP_REGS_OUT();
   1091 }
   1092 
   1093 void sub_36043AF0(void) {
   1094     int _fpu_cmp = 0;
   1095     uint32_t _cf = 0;
   1096     int _df = 1;
   1097     uint32_t _flag_k = FK_NONE;
   1098     uint32_t _flag_a = 0, _flag_b = 0;
   1099     uint32_t _itail_tgt = 0;
   1100     RECOMP_REGS_LOCALS
   1101     RECOMP_ENTER(0x36043AF0u);
   1102 
   1103 L_36043AF0:
   1104     PUSH32(esp, ebp); /* 0x36043AF0: push ebp */
   1105     ebp = esp; /* 0x36043AF1: mov ebp, esp */
   1106     PUSH32(esp, esi); /* 0x36043AF3: push esi */
   1107     PUSH32(esp, edi); /* 0x36043AF4: push edi */
   1108     edi = MEM32(ebp + 0x8); /* 0x36043AF5: mov edi, dword ptr [ebp + 8] */
   1109     esi = ecx; /* 0x36043AF8: mov esi, ecx */
   1110     PUSH32(esp, edi); /* 0x36043AFA: push edi */
   1111     RECOMP_ICALL(0x36044010u); /* 0x36043AFB: call 0x36044010 */ /* not lifted */
   1112     RECOMP_FLAGS_IN();
   1113     fp_push(*(float*)&MEM32(esi + 0x48)); /* 0x36043B00: fld dword ptr [esi + 0x48] */
   1114     _st[0] *= (double)*(float*)ADDR(0x36170B6C); /* 0x36043B03: fmul dword ptr [0x36170b6c] */
   1115     RECOMP_ICALL(0x3615FD8Cu); /* 0x36043B09: call 0x3615fd8c */ /* not lifted */
   1116     RECOMP_FLAGS_IN();
   1117     ecx = edi; /* 0x36043B0E: mov ecx, edi */
   1118     PUSH32(esp, eax); /* 0x36043B10: push eax */
   1119     RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x36043B11: call dword ptr [0x3616facc] */
   1120     RECOMP_FLAGS_IN();
   1121     edi = POP32_VAL(esp); /* 0x36043B17: pop edi */
   1122     esi = POP32_VAL(esp); /* 0x36043B18: pop esi */
   1123     ebp = POP32_VAL(esp); /* 0x36043B19: pop ebp */
   1124     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043B1A: ret 4 */
   1125     RECOMP_REGS_OUT();
   1126 }
   1127 
   1128 void sub_36043B20(void) {
   1129     int _fpu_cmp = 0;
   1130     uint32_t _cf = 0;
   1131     int _df = 1;
   1132     uint32_t _flag_k = FK_NONE;
   1133     uint32_t _flag_a = 0, _flag_b = 0;
   1134     uint32_t _itail_tgt = 0;
   1135     RECOMP_REGS_LOCALS
   1136     RECOMP_ENTER(0x36043B20u);
   1137 
   1138 L_36043B20:
   1139     PUSH32(esp, esi); /* 0x36043B20: push esi */
   1140     esi = ecx; /* 0x36043B21: mov esi, ecx */
   1141     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36043B23: call dword ptr [0x3616ffd0] */
   1142     RECOMP_FLAGS_IN();
   1143     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1144     eax = 0; /* 0x36043B29: xor eax, eax */
   1145     _cf = 0;
   1146     _flag_k = FK_TEST;
   1147     MEM32(esi + 0x20) = eax; /* 0x36043B2B: mov dword ptr [esi + 0x20], eax */
   1148     MEM32(esi + 0x24) = eax; /* 0x36043B2E: mov dword ptr [esi + 0x24], eax */
   1149     MEM32(esi + 0x28) = eax; /* 0x36043B31: mov dword ptr [esi + 0x28], eax */
   1150     MEM32(esi + 0x2C) = eax; /* 0x36043B34: mov dword ptr [esi + 0x2c], eax */
   1151     MEM32(esi + 0x30) = eax; /* 0x36043B37: mov dword ptr [esi + 0x30], eax */
   1152     MEM32(esi + 0x34) = eax; /* 0x36043B3A: mov dword ptr [esi + 0x34], eax */
   1153     MEM32(esi + 0x38) = eax; /* 0x36043B3D: mov dword ptr [esi + 0x38], eax */
   1154     MEM32(esi + 0x3C) = 0x3F800000u; /* 0x36043B40: mov dword ptr [esi + 0x3c], 0x3f800000 */
   1155     MEM8(esi + 0x40) = (uint8_t)(LO8(eax)); /* 0x36043B47: mov byte ptr [esi + 0x40], al */
   1156     MEM32(esi + 0x44) = eax; /* 0x36043B4A: mov dword ptr [esi + 0x44], eax */
   1157     MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x36043B4D: mov byte ptr [esi + 0xc], al */
   1158     MEM32(esi) = 0x36170B74u; /* 0x36043B50: mov dword ptr [esi], 0x36170b74 */
   1159     eax = esi; /* 0x36043B56: mov eax, esi */
   1160     esi = POP32_VAL(esp); /* 0x36043B58: pop esi */
   1161     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043B59: ret  */
   1162     RECOMP_REGS_OUT();
   1163 }
   1164 
   1165 void sub_36043B60(void) {
   1166     int _fpu_cmp = 0;
   1167     uint32_t _cf = 0;
   1168     int _df = 1;
   1169     uint32_t _flag_k = FK_NONE;
   1170     uint32_t _flag_a = 0, _flag_b = 0;
   1171     uint32_t _itail_tgt = 0;
   1172     RECOMP_REGS_LOCALS
   1173     RECOMP_ENTER(0x36043B60u);
   1174 
   1175 L_36043B60:
   1176     PUSH32(esp, ebp); /* 0x36043B60: push ebp */
   1177     ebp = esp; /* 0x36043B61: mov ebp, esp */
   1178     PUSH32(esp, esi); /* 0x36043B63: push esi */
   1179     esi = ecx; /* 0x36043B64: mov esi, ecx */
   1180     RECOMP_ICALL(0x36043C00u); /* 0x36043B66: call 0x36043c00 */ /* not lifted */
   1181     RECOMP_FLAGS_IN();
   1182     /* test MEM8(ebp + 0x8), 1 */ /* 0x36043B6B: test byte ptr [ebp + 8], 1 */
   1183     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   1184     _cf = 0;
   1185     _flag_k = FK_NARROW(FK_TEST, 24);
   1186     if (TEST_Z(_flag_a, _flag_b)) goto L_36043B7A; /* 0x36043B6F: je 0x36043b7a */
   1187 L_36043B71:
   1188     PUSH32(esp, esi); /* 0x36043B71: push esi */
   1189     RECOMP_ICALL(0x3615FCC4u); /* 0x36043B72: call 0x3615fcc4 */ /* not lifted */
   1190     RECOMP_FLAGS_IN();
   1191     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1192     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1193     esp = esp + 4; /* 0x36043B77: add esp, 4 */
   1194     _flag_k = FK_ADD;
   1195 L_36043B7A:
   1196     eax = esi; /* 0x36043B7A: mov eax, esi */
   1197     esi = POP32_VAL(esp); /* 0x36043B7C: pop esi */
   1198     ebp = POP32_VAL(esp); /* 0x36043B7D: pop ebp */
   1199     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043B7E: ret 4 */
   1200     RECOMP_REGS_OUT();
   1201 }
   1202 
   1203 void sub_36043B90(void) {
   1204     int _fpu_cmp = 0;
   1205     uint32_t _cf = 0;
   1206     int _df = 1;
   1207     uint32_t _flag_k = FK_NONE;
   1208     uint32_t _flag_a = 0, _flag_b = 0;
   1209     uint32_t _itail_tgt = 0;
   1210     RECOMP_REGS_LOCALS
   1211     RECOMP_ENTER(0x36043B90u);
   1212 
   1213 L_36043B90:
   1214     PUSH32(esp, ebp); /* 0x36043B90: push ebp */
   1215     ebp = esp; /* 0x36043B91: mov ebp, esp */
   1216     eax = MEM32(ebp + 0xC); /* 0x36043B93: mov eax, dword ptr [ebp + 0xc] */
   1217     PUSH32(esp, esi); /* 0x36043B96: push esi */
   1218     esi = ecx; /* 0x36043B97: mov esi, ecx */
   1219     ecx = MEM32(ebp + 0x8); /* 0x36043B99: mov ecx, dword ptr [ebp + 8] */
   1220     PUSH32(esp, eax); /* 0x36043B9C: push eax */
   1221     PUSH32(esp, ecx); /* 0x36043B9D: push ecx */
   1222     ecx = esi; /* 0x36043B9E: mov ecx, esi */
   1223     RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x36043BA0: call dword ptr [0x3616fc0c] */
   1224     RECOMP_FLAGS_IN();
   1225     edx = MEM32(ebp + 0x10); /* 0x36043BA6: mov edx, dword ptr [ebp + 0x10] */
   1226     ecx = MEM32(ebp + 0x14); /* 0x36043BA9: mov ecx, dword ptr [ebp + 0x14] */
   1227     MEM32(esi + 0x20) = edx; /* 0x36043BAC: mov dword ptr [esi + 0x20], edx */
   1228     edx = MEM32(ebp + 0x18); /* 0x36043BAF: mov edx, dword ptr [ebp + 0x18] */
   1229     eax = esi + 0x24; /* 0x36043BB2: lea eax, [esi + 0x24] */
   1230     MEM32(eax) = ecx; /* 0x36043BB5: mov dword ptr [eax], ecx */
   1231     ecx = MEM32(ebp + 0x1C); /* 0x36043BB7: mov ecx, dword ptr [ebp + 0x1c] */
   1232     MEM32(eax + 0x4) = edx; /* 0x36043BBA: mov dword ptr [eax + 4], edx */
   1233     MEM32(eax + 0x8) = ecx; /* 0x36043BBD: mov dword ptr [eax + 8], ecx */
   1234     eax = MEM32(ebp + 0x20); /* 0x36043BC0: mov eax, dword ptr [ebp + 0x20] */
   1235     ecx = MEM32(ebp + 0x24); /* 0x36043BC3: mov ecx, dword ptr [ebp + 0x24] */
   1236     edx = esi + 0x30; /* 0x36043BC6: lea edx, [esi + 0x30] */
   1237     MEM32(edx) = eax; /* 0x36043BC9: mov dword ptr [edx], eax */
   1238     eax = MEM32(ebp + 0x28); /* 0x36043BCB: mov eax, dword ptr [ebp + 0x28] */
   1239     MEM32(edx + 0x4) = ecx; /* 0x36043BCE: mov dword ptr [edx + 4], ecx */
   1240     ecx = MEM32(ebp + 0x2C); /* 0x36043BD1: mov ecx, dword ptr [ebp + 0x2c] */
   1241     MEM32(edx + 0x8) = eax; /* 0x36043BD4: mov dword ptr [edx + 8], eax */
   1242     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1243     eax = 0; /* 0x36043BD7: xor eax, eax */
   1244     _cf = 0;
   1245     _flag_k = FK_TEST;
   1246     MEM8(esi + 0x40) = (uint8_t)(LO8(eax)); /* 0x36043BD9: mov byte ptr [esi + 0x40], al */
   1247     MEM32(esi + 0x44) = eax; /* 0x36043BDC: mov dword ptr [esi + 0x44], eax */
   1248     MEM32(esi) = 0x36170B74u; /* 0x36043BDF: mov dword ptr [esi], 0x36170b74 */
   1249     MEM8(esi + 0xC) = (uint8_t)(1); /* 0x36043BE5: mov byte ptr [esi + 0xc], 1 */
   1250     eax = esi; /* 0x36043BE9: mov eax, esi */
   1251     MEM32(edx + 0xC) = ecx; /* 0x36043BEB: mov dword ptr [edx + 0xc], ecx */
   1252     esi = POP32_VAL(esp); /* 0x36043BEE: pop esi */
   1253     ebp = POP32_VAL(esp); /* 0x36043BEF: pop ebp */
   1254     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x36043BF0: ret 0x28 */
   1255     RECOMP_REGS_OUT();
   1256 }
   1257 
   1258 void sub_36043C00(void) {
   1259     int _fpu_cmp = 0;
   1260     uint32_t _cf = 0;
   1261     int _df = 1;
   1262     uint32_t _flag_k = FK_NONE;
   1263     uint32_t _flag_a = 0, _flag_b = 0;
   1264     uint32_t _itail_tgt = 0;
   1265     RECOMP_REGS_LOCALS
   1266     RECOMP_ENTER(0x36043C00u);
   1267 
   1268 L_36043C00:
   1269     MEM32(ecx) = 0x36170B74u; /* 0x36043C00: mov dword ptr [ecx], 0x36170b74 */
   1270 L_36043C06:
   1271     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   1272     { RECOMP_REGS_OUT(); return; } /* end of function */
   1273   _ljump:
   1274     switch (_itail_tgt) {
   1275       case 0x36043C00u: goto L_36043C00;
   1276       case 0x36043C06u: goto L_36043C06;
   1277       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1278     }
   1279     RECOMP_REGS_OUT();
   1280 }
   1281 
   1282 void sub_36043C10(void) {
   1283     int _fpu_cmp = 0;
   1284     uint32_t _cf = 0;
   1285     int _df = 1;
   1286     uint32_t _flag_k = FK_NONE;
   1287     uint32_t _flag_a = 0, _flag_b = 0;
   1288     uint32_t _itail_tgt = 0;
   1289     RECOMP_REGS_LOCALS
   1290     RECOMP_ENTER(0x36043C10u);
   1291 
   1292 L_36043C10:
   1293     eax = MEM32(ecx); /* 0x36043C10: mov eax, dword ptr [ecx] */
   1294     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36043C12: call dword ptr [eax + 0xc] */
   1295     RECOMP_FLAGS_IN();
   1296     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1297     SET_LO8(eax, LO8(eax) - 1); /* 0x36043C15: dec al */
   1298     _flag_k = FK_NARROW(FK_DEC, 24);
   1299     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1300     _cf = (LO8(eax)) != 0;
   1301     SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36043C17: neg al */
   1302     _flag_k = FK_NARROW(FK_CMP, 24);
   1303     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36043C19: sbb eax, eax */
   1304       eax = _sc ? 0xFFFFFFFFu : 0;
   1305       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1306       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1307     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1308     eax = eax + 1; /* 0x36043C1B: inc eax */
   1309     _flag_k = FK_INC;
   1310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043C1C: ret  */
   1311     RECOMP_REGS_OUT();
   1312 }
   1313 
   1314 void sub_36043C20(void) {
   1315     int _fpu_cmp = 0;
   1316     uint32_t _cf = 0;
   1317     int _df = 1;
   1318     uint32_t _flag_k = FK_NONE;
   1319     uint32_t _flag_a = 0, _flag_b = 0;
   1320     uint32_t _itail_tgt = 0;
   1321     RECOMP_REGS_LOCALS
   1322     RECOMP_ENTER(0x36043C20u);
   1323 
   1324 L_36043C20:
   1325     PUSH32(esp, esi); /* 0x36043C20: push esi */
   1326     esi = ecx; /* 0x36043C21: mov esi, ecx */
   1327     SET_LO8(eax, MEM8(esi + 0x40)); /* 0x36043C23: mov al, byte ptr [esi + 0x40] */
   1328     /* test LO8(eax), LO8(eax) */ /* 0x36043C26: test al, al */
   1329     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1330     _cf = 0;
   1331     _flag_k = FK_NARROW(FK_TEST, 24);
   1332     if (TEST_Z(_flag_a, _flag_b)) goto L_36043C3F; /* 0x36043C28: je 0x36043c3f */
   1333 L_36043C2A:
   1334     eax = MEM32(0x3616FF74); /* 0x36043C2A: mov eax, dword ptr [0x3616ff74] */
   1335     ecx = MEM32(eax); /* 0x36043C2F: mov ecx, dword ptr [eax] */
   1336     edx = MEM32(ecx); /* 0x36043C31: mov edx, dword ptr [ecx] */
   1337     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36043C33: call dword ptr [edx + 0x10] */
   1338     RECOMP_FLAGS_IN();
   1339     /* cmp eax, MEM32(esi + 0x44) */ /* 0x36043C36: cmp eax, dword ptr [esi + 0x44] */
   1340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x44));
   1341     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1342     _flag_k = FK_CMP;
   1343     if (CMP_NE(_flag_a, _flag_b)) goto L_36043C3F; /* 0x36043C39: jne 0x36043c3f */
   1344 L_36043C3B:
   1345     SET_LO8(eax, 1); /* 0x36043C3B: mov al, 1 */
   1346     esi = POP32_VAL(esp); /* 0x36043C3D: pop esi */
   1347     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043C3E: ret  */
   1348 L_36043C3F:
   1349     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   1350     SET_LO8(eax, 0); /* 0x36043C3F: xor al, al */
   1351     _cf = 0;
   1352     _flag_k = FK_NARROW(FK_TEST, 24);
   1353     esi = POP32_VAL(esp); /* 0x36043C41: pop esi */
   1354     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043C42: ret  */
   1355     RECOMP_REGS_OUT();
   1356 }
   1357 
   1358 void sub_36043C50(void) {
   1359     int _fpu_cmp = 0;
   1360     uint32_t _cf = 0;
   1361     int _df = 1;
   1362     uint32_t _flag_k = FK_NONE;
   1363     uint32_t _flag_a = 0, _flag_b = 0;
   1364     uint32_t _itail_tgt = 0;
   1365     RECOMP_REGS_LOCALS
   1366     RECOMP_ENTER(0x36043C50u);
   1367 
   1368 L_36043C50:
   1369     PUSH32(esp, ebp); /* 0x36043C50: push ebp */
   1370     ebp = esp; /* 0x36043C51: mov ebp, esp */
   1371     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1372     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1373     esp = esp - 0x10u; /* 0x36043C53: sub esp, 0x10 */
   1374     _flag_k = FK_CMP;
   1375     PUSH32(esp, ebx); /* 0x36043C56: push ebx */
   1376     PUSH32(esp, esi); /* 0x36043C57: push esi */
   1377     esi = ecx; /* 0x36043C58: mov esi, ecx */
   1378     eax = esi + 0x4; /* 0x36043C5A: lea eax, [esi + 4] */
   1379     PUSH32(esp, edi); /* 0x36043C5D: push edi */
   1380     PUSH32(esp, eax); /* 0x36043C5E: push eax */
   1381     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36043C5F: call dword ptr [0x3616ff70] */
   1382     RECOMP_FLAGS_IN();
   1383     edi = eax; /* 0x36043C65: mov edi, eax */
   1384     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1385     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1386     esp = esp + 4; /* 0x36043C67: add esp, 4 */
   1387     _flag_k = FK_ADD;
   1388     /* test edi, edi */ /* 0x36043C6A: test edi, edi */
   1389     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1390     _cf = 0;
   1391     _flag_k = FK_TEST;
   1392     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043C7F; /* 0x36043C6C: jne 0x36043c7f */
   1393 L_36043C6E:
   1394     ecx = esi; /* 0x36043C6E: mov ecx, esi */
   1395     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36043C70: call dword ptr [0x3616fc20] */
   1396     RECOMP_FLAGS_IN();
   1397     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1398     eax = 0; /* 0x36043C76: xor eax, eax */
   1399     _cf = 0;
   1400     _flag_k = FK_TEST;
   1401     edi = POP32_VAL(esp); /* 0x36043C78: pop edi */
   1402     esi = POP32_VAL(esp); /* 0x36043C79: pop esi */
   1403     ebx = POP32_VAL(esp); /* 0x36043C7A: pop ebx */
   1404     esp = ebp; /* 0x36043C7B: mov esp, ebp */
   1405     ebp = POP32_VAL(esp); /* 0x36043C7D: pop ebp */
   1406     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043C7E: ret  */
   1407 L_36043C7F:
   1408     /* cmp MEM32(esi + 0x20), 0x1Au */ /* 0x36043C7F: cmp dword ptr [esi + 0x20], 0x1a */
   1409     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(0x1Au);
   1410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1411     _flag_k = FK_CMP;
   1412     MEM32(esi + 0x44) = edi; /* 0x36043C83: mov dword ptr [esi + 0x44], edi */
   1413     if (CMP_NE(_flag_a, _flag_b)) goto L_36043CBF; /* 0x36043C86: jne 0x36043cbf */
   1414 L_36043C88:
   1415     ecx = MEM32(edi + 0x16C); /* 0x36043C88: mov ecx, dword ptr [edi + 0x16c] */
   1416     /* cmp MEM32(ecx + 0x50), 1 */ /* 0x36043C8E: cmp dword ptr [ecx + 0x50], 1 */
   1417     _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(1);
   1418     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1419     _flag_k = FK_CMP;
   1420     if (CMP_NE(_flag_a, _flag_b)) goto L_36043CAE; /* 0x36043C92: jne 0x36043cae */
   1421 L_36043C94:
   1422     edx = MEM32(edi + 0xE4); /* 0x36043C94: mov edx, dword ptr [edi + 0xe4] */
   1423     ecx = edi + 0xE4; /* 0x36043C9A: lea ecx, [edi + 0xe4] */
   1424     PUSH32(esp, 2); /* 0x36043CA0: push 2 */
   1425     PUSH32(esp, 0x19Au); /* 0x36043CA2: push 0x19a */
   1426     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36043CA7: call dword ptr [edx + 4] */
   1427     RECOMP_FLAGS_IN();
   1428     /* test eax, eax */ /* 0x36043CAA: test eax, eax */
   1429     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1430     _cf = 0;
   1431     _flag_k = FK_TEST;
   1432     if (TEST_LE(_flag_a, _flag_b)) goto L_36043CBF; /* 0x36043CAC: jle 0x36043cbf */
   1433 L_36043CAE:
   1434     ecx = esi; /* 0x36043CAE: mov ecx, esi */
   1435     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36043CB0: call dword ptr [0x3616fc20] */
   1436     RECOMP_FLAGS_IN();
   1437     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1438     eax = 0; /* 0x36043CB6: xor eax, eax */
   1439     _cf = 0;
   1440     _flag_k = FK_TEST;
   1441     edi = POP32_VAL(esp); /* 0x36043CB8: pop edi */
   1442     esi = POP32_VAL(esp); /* 0x36043CB9: pop esi */
   1443     ebx = POP32_VAL(esp); /* 0x36043CBA: pop ebx */
   1444     esp = ebp; /* 0x36043CBB: mov esp, ebp */
   1445     ebp = POP32_VAL(esp); /* 0x36043CBD: pop ebp */
   1446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043CBE: ret  */
   1447 L_36043CBF:
   1448     eax = MEM32(0x3616FF74); /* 0x36043CBF: mov eax, dword ptr [0x3616ff74] */
   1449     ecx = MEM32(eax); /* 0x36043CC4: mov ecx, dword ptr [eax] */
   1450     edx = MEM32(ecx); /* 0x36043CC6: mov edx, dword ptr [ecx] */
   1451     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x36043CC8: call dword ptr [edx + 0x10] */
   1452     RECOMP_FLAGS_IN();
   1453     /* cmp eax, edi */ /* 0x36043CCB: cmp eax, edi */
   1454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1456     _flag_k = FK_CMP;
   1457     if (CMP_NE(_flag_a, _flag_b)) goto L_36043CF6; /* 0x36043CCD: jne 0x36043cf6 */
   1458 L_36043CCF:
   1459     ecx = esi; /* 0x36043CCF: mov ecx, esi */
   1460     RECOMP_ICALL(0x36043C10u); /* 0x36043CD1: call 0x36043c10 */ /* not lifted */
   1461     RECOMP_FLAGS_IN();
   1462     /* test LO8(eax), LO8(eax) */ /* 0x36043CD6: test al, al */
   1463     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1464     _cf = 0;
   1465     _flag_k = FK_NARROW(FK_TEST, 24);
   1466     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043CF6; /* 0x36043CD8: jne 0x36043cf6 */
   1467 L_36043CDA:
   1468     ecx = esi; /* 0x36043CDA: mov ecx, esi */
   1469     RECOMP_ICALL(0x36043C20u); /* 0x36043CDC: call 0x36043c20 */ /* not lifted */
   1470     RECOMP_FLAGS_IN();
   1471     /* test LO8(eax), LO8(eax) */ /* 0x36043CE1: test al, al */
   1472     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1473     _cf = 0;
   1474     _flag_k = FK_NARROW(FK_TEST, 24);
   1475     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043CF6; /* 0x36043CE3: jne 0x36043cf6 */
   1476 L_36043CE5:
   1477     ecx = esi; /* 0x36043CE5: mov ecx, esi */
   1478     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36043CE7: call dword ptr [0x3616fc20] */
   1479     RECOMP_FLAGS_IN();
   1480     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1481     eax = 0; /* 0x36043CED: xor eax, eax */
   1482     _cf = 0;
   1483     _flag_k = FK_TEST;
   1484     edi = POP32_VAL(esp); /* 0x36043CEF: pop edi */
   1485     esi = POP32_VAL(esp); /* 0x36043CF0: pop esi */
   1486     ebx = POP32_VAL(esp); /* 0x36043CF1: pop ebx */
   1487     esp = ebp; /* 0x36043CF2: mov esp, ebp */
   1488     ebp = POP32_VAL(esp); /* 0x36043CF4: pop ebp */
   1489     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043CF5: ret  */
   1490 L_36043CF6:
   1491     ecx = esi; /* 0x36043CF6: mov ecx, esi */
   1492     RECOMP_ICALL(0x36043C10u); /* 0x36043CF8: call 0x36043c10 */ /* not lifted */
   1493     RECOMP_FLAGS_IN();
   1494     /* cmp LO8(eax), 1 */ /* 0x36043CFD: cmp al, 1 */
   1495     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1496     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1497     _flag_k = FK_NARROW(FK_CMP, 24);
   1498     if (CMP_NE(_flag_a, _flag_b)) goto L_36043D4D; /* 0x36043CFF: jne 0x36043d4d */
   1499 L_36043D01:
   1500     ecx = edi; /* 0x36043D01: mov ecx, edi */
   1501     RECOMP_ICALL(MEM32(0x361700A8)); /* 0x36043D03: call dword ptr [0x361700a8] */
   1502     RECOMP_FLAGS_IN();
   1503     edx = MEM32(eax); /* 0x36043D09: mov edx, dword ptr [eax] */
   1504     ecx = esi + 0x24; /* 0x36043D0B: lea ecx, [esi + 0x24] */
   1505     MEM32(ecx) = edx; /* 0x36043D0E: mov dword ptr [ecx], edx */
   1506     edx = MEM32(eax + 0x4); /* 0x36043D10: mov edx, dword ptr [eax + 4] */
   1507     MEM32(ecx + 0x4) = edx; /* 0x36043D13: mov dword ptr [ecx + 4], edx */
   1508     eax = MEM32(eax + 0x8); /* 0x36043D16: mov eax, dword ptr [eax + 8] */
   1509     MEM32(ecx + 0x8) = eax; /* 0x36043D19: mov dword ptr [ecx + 8], eax */
   1510     ecx = ebp + (-0x10); /* 0x36043D1C: lea ecx, [ebp - 0x10] */
   1511     PUSH32(esp, ecx); /* 0x36043D1F: push ecx */
   1512     ecx = edi; /* 0x36043D20: mov ecx, edi */
   1513     RECOMP_ICALL(MEM32(0x361700AC)); /* 0x36043D22: call dword ptr [0x361700ac] */
   1514     RECOMP_FLAGS_IN();
   1515     ecx = MEM32(eax); /* 0x36043D28: mov ecx, dword ptr [eax] */
   1516     edx = esi + 0x30; /* 0x36043D2A: lea edx, [esi + 0x30] */
   1517     MEM32(edx) = ecx; /* 0x36043D2D: mov dword ptr [edx], ecx */
   1518     ecx = MEM32(eax + 0x4); /* 0x36043D2F: mov ecx, dword ptr [eax + 4] */
   1519     MEM32(edx + 0x4) = ecx; /* 0x36043D32: mov dword ptr [edx + 4], ecx */
   1520     ecx = MEM32(eax + 0x8); /* 0x36043D35: mov ecx, dword ptr [eax + 8] */
   1521     MEM32(edx + 0x8) = ecx; /* 0x36043D38: mov dword ptr [edx + 8], ecx */
   1522     eax = MEM32(eax + 0xC); /* 0x36043D3B: mov eax, dword ptr [eax + 0xc] */
   1523     MEM32(edx + 0xC) = eax; /* 0x36043D3E: mov dword ptr [edx + 0xc], eax */
   1524     RECOMP_ICALL(0x3601F1E0u); /* 0x36043D41: call 0x3601f1e0 */ /* not lifted */
   1525     RECOMP_FLAGS_IN();
   1526     ecx = eax; /* 0x36043D46: mov ecx, eax */
   1527     RECOMP_ICALL(0x36027890u); /* 0x36043D48: call 0x36027890 */ /* not lifted */
   1528     RECOMP_FLAGS_IN();
   1529 L_36043D4D:
   1530     ecx = esi; /* 0x36043D4D: mov ecx, esi */
   1531     RECOMP_ICALL(0x36043C20u); /* 0x36043D4F: call 0x36043c20 */ /* not lifted */
   1532     RECOMP_FLAGS_IN();
   1533     /* test LO8(eax), LO8(eax) */ /* 0x36043D54: test al, al */
   1534     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1535     _cf = 0;
   1536     _flag_k = FK_NARROW(FK_TEST, 24);
   1537     ecx = MEM32(esi + 0x44); /* 0x36043D56: mov ecx, dword ptr [esi + 0x44] */
   1538     if (TEST_Z(_flag_a, _flag_b)) goto L_36043D9F; /* 0x36043D59: je 0x36043d9f */
   1539 L_36043D5B:
   1540     RECOMP_ICALL(MEM32(0x3616FC30)); /* 0x36043D5B: call dword ptr [0x3616fc30] */
   1541     RECOMP_FLAGS_IN();
   1542     ebx = esi + 0x24; /* 0x36043D61: lea ebx, [esi + 0x24] */
   1543     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1544     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1545     esp = esp - 0xCu; /* 0x36043D64: sub esp, 0xc */
   1546     _flag_k = FK_CMP;
   1547     ecx = ebx; /* 0x36043D67: mov ecx, ebx */
   1548     eax = MEM32(ecx); /* 0x36043D69: mov eax, dword ptr [ecx] */
   1549     edx = esp; /* 0x36043D6B: mov edx, esp */
   1550     MEM32(edx) = eax; /* 0x36043D6D: mov dword ptr [edx], eax */
   1551     eax = MEM32(ecx + 0x4); /* 0x36043D6F: mov eax, dword ptr [ecx + 4] */
   1552     ecx = MEM32(ecx + 0x8); /* 0x36043D72: mov ecx, dword ptr [ecx + 8] */
   1553     MEM32(edx + 0x4) = eax; /* 0x36043D75: mov dword ptr [edx + 4], eax */
   1554     MEM32(edx + 0x8) = ecx; /* 0x36043D78: mov dword ptr [edx + 8], ecx */
   1555     PUSH32(esp, 0xFFFFFFFFu); /* 0x36043D7B: push -1 */
   1556     ecx = edi; /* 0x36043D7D: mov ecx, edi */
   1557     RECOMP_ICALL(MEM32(0x3616FC2C)); /* 0x36043D7F: call dword ptr [0x3616fc2c] */
   1558     RECOMP_FLAGS_IN();
   1559     PUSH32(esp, ebx); /* 0x36043D85: push ebx */
   1560     ecx = edi; /* 0x36043D86: mov ecx, edi */
   1561     RECOMP_ICALL(MEM32(0x3616FC28)); /* 0x36043D88: call dword ptr [0x3616fc28] */
   1562     RECOMP_FLAGS_IN();
   1563     ecx = esi; /* 0x36043D8E: mov ecx, esi */
   1564     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36043D90: call dword ptr [0x3616fc20] */
   1565     RECOMP_FLAGS_IN();
   1566     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1567     eax = 0; /* 0x36043D96: xor eax, eax */
   1568     _cf = 0;
   1569     _flag_k = FK_TEST;
   1570     edi = POP32_VAL(esp); /* 0x36043D98: pop edi */
   1571     esi = POP32_VAL(esp); /* 0x36043D99: pop esi */
   1572     ebx = POP32_VAL(esp); /* 0x36043D9A: pop ebx */
   1573     esp = ebp; /* 0x36043D9B: mov esp, ebp */
   1574     ebp = POP32_VAL(esp); /* 0x36043D9D: pop ebp */
   1575     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043D9E: ret  */
   1576 L_36043D9F:
   1577     RECOMP_ICALL(MEM32(0x3616FC30)); /* 0x36043D9F: call dword ptr [0x3616fc30] */
   1578     RECOMP_FLAGS_IN();
   1579     ecx = MEM32(esi + 0x44); /* 0x36043DA5: mov ecx, dword ptr [esi + 0x44] */
   1580     edx = esi + 0x30; /* 0x36043DA8: lea edx, [esi + 0x30] */
   1581     PUSH32(esp, edx); /* 0x36043DAB: push edx */
   1582     eax = esi + 0x24; /* 0x36043DAC: lea eax, [esi + 0x24] */
   1583     PUSH32(esp, eax); /* 0x36043DAF: push eax */
   1584     RECOMP_ICALL(MEM32(0x3616FC24)); /* 0x36043DB0: call dword ptr [0x3616fc24] */
   1585     RECOMP_FLAGS_IN();
   1586     eax = edi; /* 0x36043DB6: mov eax, edi */
   1587     edi = POP32_VAL(esp); /* 0x36043DB8: pop edi */
   1588     esi = POP32_VAL(esp); /* 0x36043DB9: pop esi */
   1589     ebx = POP32_VAL(esp); /* 0x36043DBA: pop ebx */
   1590     esp = ebp; /* 0x36043DBB: mov esp, ebp */
   1591     ebp = POP32_VAL(esp); /* 0x36043DBD: pop ebp */
   1592     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36043DBE: ret  */
   1593     RECOMP_REGS_OUT();
   1594 }
   1595 
   1596 void sub_36043DC0(void) {
   1597     int _fpu_cmp = 0;
   1598     uint32_t _cf = 0;
   1599     int _df = 1;
   1600     uint32_t _flag_k = FK_NONE;
   1601     uint32_t _flag_a = 0, _flag_b = 0;
   1602     uint32_t _itail_tgt = 0;
   1603     RECOMP_REGS_LOCALS
   1604     RECOMP_ENTER(0x36043DC0u);
   1605 
   1606 L_36043DC0:
   1607     PUSH32(esp, ebp); /* 0x36043DC0: push ebp */
   1608     ebp = esp; /* 0x36043DC1: mov ebp, esp */
   1609     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1611     esp = esp - 0xCu; /* 0x36043DC3: sub esp, 0xc */
   1612     _flag_k = FK_CMP;
   1613     PUSH32(esp, ebx); /* 0x36043DC6: push ebx */
   1614     PUSH32(esp, esi); /* 0x36043DC7: push esi */
   1615     PUSH32(esp, edi); /* 0x36043DC8: push edi */
   1616     edi = MEM32(ebp + 0x8); /* 0x36043DC9: mov edi, dword ptr [ebp + 8] */
   1617     eax = ebp + 0xB; /* 0x36043DCC: lea eax, [ebp + 0xb] */
   1618     esi = ecx; /* 0x36043DCF: mov esi, ecx */
   1619     PUSH32(esp, eax); /* 0x36043DD1: push eax */
   1620     ecx = edi; /* 0x36043DD2: mov ecx, edi */
   1621     RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x36043DD4: call dword ptr [0x3616fae0] */
   1622     RECOMP_FLAGS_IN();
   1623     eax = (int32_t)(int8_t)MEM8(ebp + 0xB); /* 0x36043DDA: movsx eax, byte ptr [ebp + 0xb] */
   1624     ebx = MEM32(0x3616FAC8); /* 0x36043DDE: mov ebx, dword ptr [0x3616fac8] */
   1625     ecx = eax; /* 0x36043DE4: mov ecx, eax */
   1626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x7Fu);
   1627     ecx = ecx & 0x7Fu; /* 0x36043DE6: and ecx, 0x7f */
   1628     _cf = 0;
   1629     _flag_k = FK_TEST;
   1630     if (7u) _cf = (((eax) >> 6) & 1u); /* 0x36043DE9: shr eax, 7 */
   1631     if (7u) { _flag_a = recomp_flags_pack((eax >> 7u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1632     eax = eax >> 7u; /* 0x36043DE9: shr eax, 7 */
   1633     edx = ebp + (-0x8); /* 0x36043DEC: lea edx, [ebp - 8] */
   1634     MEM32(esi + 0x20) = ecx; /* 0x36043DEF: mov dword ptr [esi + 0x20], ecx */
   1635     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
   1636     SET_LO8(eax, LO8(eax) & 1); /* 0x36043DF2: and al, 1 */
   1637     _cf = 0;
   1638     _flag_k = FK_NARROW(FK_TEST, 24);
   1639     PUSH32(esp, edx); /* 0x36043DF4: push edx */
   1640     ecx = edi; /* 0x36043DF5: mov ecx, edi */
   1641     MEM8(esi + 0x40) = (uint8_t)(LO8(eax)); /* 0x36043DF7: mov byte ptr [esi + 0x40], al */
   1642     RECOMP_ICALL(ebx); /* 0x36043DFA: call ebx */
   1643     RECOMP_FLAGS_IN();
   1644     eax = MEM32(ebp + (-0x8)); /* 0x36043DFC: mov eax, dword ptr [ebp - 8] */
   1645     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu);
   1646     eax = eax & 0xFFFFu; /* 0x36043DFF: and eax, 0xffff */
   1647     _cf = 0;
   1648     _flag_k = FK_TEST;
   1649     MEM32(ebp + (-0xC)) = eax; /* 0x36043E04: mov dword ptr [ebp - 0xc], eax */
   1650     ecx = ebp + (-0x4); /* 0x36043E07: lea ecx, [ebp - 4] */
   1651     fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36043E0A: fild dword ptr [ebp - 0xc] */
   1652     PUSH32(esp, ecx); /* 0x36043E0D: push ecx */
   1653     ecx = edi; /* 0x36043E0E: mov ecx, edi */
   1654     _st[0] *= (double)*(float*)ADDR(0x36170B9C); /* 0x36043E10: fmul dword ptr [0x36170b9c] */
   1655     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x24) = _v; } /* 0x36043E16: fstp dword ptr [esi + 0x24] */
   1656     RECOMP_ICALL(ebx); /* 0x36043E19: call ebx */
   1657     RECOMP_FLAGS_IN();
   1658     edx = (int32_t)(int16_t)MEM16(ebp + (-0x4)); /* 0x36043E1B: movsx edx, word ptr [ebp - 4] */
   1659     MEM32(ebp + (-0xC)) = edx; /* 0x36043E1F: mov dword ptr [ebp - 0xc], edx */
   1660     eax = ebp + (-0x8); /* 0x36043E22: lea eax, [ebp - 8] */
   1661     PUSH32(esp, eax); /* 0x36043E25: push eax */
   1662     fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36043E26: fild dword ptr [ebp - 0xc] */
   1663     ecx = edi; /* 0x36043E29: mov ecx, edi */
   1664     _st[0] *= (double)*(float*)ADDR(0x36170B98); /* 0x36043E2B: fmul dword ptr [0x36170b98] */
   1665     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x28) = _v; } /* 0x36043E31: fstp dword ptr [esi + 0x28] */
   1666     RECOMP_ICALL(ebx); /* 0x36043E34: call ebx */
   1667     RECOMP_FLAGS_IN();
   1668     ecx = MEM32(ebp + (-0x8)); /* 0x36043E36: mov ecx, dword ptr [ebp - 8] */
   1669     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu);
   1670     ecx = ecx & 0xFFFFu; /* 0x36043E39: and ecx, 0xffff */
   1671     _cf = 0;
   1672     _flag_k = FK_TEST;
   1673     MEM32(ebp + (-0xC)) = ecx; /* 0x36043E3F: mov dword ptr [ebp - 0xc], ecx */
   1674     fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36043E42: fild dword ptr [ebp - 0xc] */
   1675     edx = ebp + (-0x2); /* 0x36043E45: lea edx, [ebp - 2] */
   1676     PUSH32(esp, edx); /* 0x36043E48: push edx */
   1677     ecx = edi; /* 0x36043E49: mov ecx, edi */
   1678     _st[0] *= (double)*(float*)ADDR(0x36170B9C); /* 0x36043E4B: fmul dword ptr [0x36170b9c] */
   1679     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x2C) = _v; } /* 0x36043E51: fstp dword ptr [esi + 0x2c] */
   1680     RECOMP_ICALL(ebx); /* 0x36043E54: call ebx */
   1681     RECOMP_FLAGS_IN();
   1682     eax = (int32_t)(int16_t)MEM16(ebp + (-0x2)); /* 0x36043E56: movsx eax, word ptr [ebp - 2] */
   1683     MEM32(ebp + (-0xC)) = eax; /* 0x36043E5A: mov dword ptr [ebp - 0xc], eax */
   1684     ecx = ebp + (-0x2); /* 0x36043E5D: lea ecx, [ebp - 2] */
   1685     PUSH32(esp, ecx); /* 0x36043E60: push ecx */
   1686     fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36043E61: fild dword ptr [ebp - 0xc] */
   1687     ecx = edi; /* 0x36043E64: mov ecx, edi */
   1688     _st[0] *= (double)*(float*)ADDR(0x36170B94); /* 0x36043E66: fmul dword ptr [0x36170b94] */
   1689     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x36043E6C: fstp dword ptr [esi + 0x30] */
   1690     RECOMP_ICALL(ebx); /* 0x36043E6F: call ebx */
   1691     RECOMP_FLAGS_IN();
   1692     edx = (int32_t)(int16_t)MEM16(ebp + (-0x2)); /* 0x36043E71: movsx edx, word ptr [ebp - 2] */
   1693     MEM32(ebp + (-0xC)) = edx; /* 0x36043E75: mov dword ptr [ebp - 0xc], edx */
   1694     eax = ebp + (-0x2); /* 0x36043E78: lea eax, [ebp - 2] */
   1695     PUSH32(esp, eax); /* 0x36043E7B: push eax */
   1696     fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36043E7C: fild dword ptr [ebp - 0xc] */
   1697     ecx = edi; /* 0x36043E7F: mov ecx, edi */
   1698     _st[0] *= (double)*(float*)ADDR(0x36170B94); /* 0x36043E81: fmul dword ptr [0x36170b94] */
   1699     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x36043E87: fstp dword ptr [esi + 0x34] */
   1700     RECOMP_ICALL(ebx); /* 0x36043E8A: call ebx */
   1701     RECOMP_FLAGS_IN();
   1702     ecx = (int32_t)(int16_t)MEM16(ebp + (-0x2)); /* 0x36043E8C: movsx ecx, word ptr [ebp - 2] */
   1703     MEM32(ebp + (-0xC)) = ecx; /* 0x36043E90: mov dword ptr [ebp - 0xc], ecx */
   1704     edx = ebp + (-0x2); /* 0x36043E93: lea edx, [ebp - 2] */
   1705     PUSH32(esp, edx); /* 0x36043E96: push edx */
   1706     fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36043E97: fild dword ptr [ebp - 0xc] */
   1707     ecx = edi; /* 0x36043E9A: mov ecx, edi */
   1708     _st[0] *= (double)*(float*)ADDR(0x36170B94); /* 0x36043E9C: fmul dword ptr [0x36170b94] */
   1709     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x36043EA2: fstp dword ptr [esi + 0x38] */
   1710     RECOMP_ICALL(ebx); /* 0x36043EA5: call ebx */
   1711     RECOMP_FLAGS_IN();
   1712     eax = (int32_t)(int16_t)MEM16(ebp + (-0x2)); /* 0x36043EA7: movsx eax, word ptr [ebp - 2] */
   1713     MEM32(ebp + (-0xC)) = eax; /* 0x36043EAB: mov dword ptr [ebp - 0xc], eax */
   1714     fp_push((double)(int32_t)MEM32(ebp + (-0xC))); /* 0x36043EAE: fild dword ptr [ebp - 0xc] */
   1715     _st[0] *= (double)*(float*)ADDR(0x36170B94); /* 0x36043EB1: fmul dword ptr [0x36170b94] */
   1716     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x36043EB7: fstp dword ptr [esi + 0x3c] */
   1717     ebx = MEM32(0x3616F1A8); /* 0x36043EBA: mov ebx, dword ptr [0x3616f1a8] */
   1718     fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36043EC0: fld dword ptr [esi + 0x3c] */
   1719     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1721     esp = esp - 8; /* 0x36043EC3: sub esp, 8 */
   1722     _flag_k = FK_CMP;
   1723     fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x36043EC6: fld dword ptr [esi + 0x38] */
   1724     fp_push(*(float*)&MEM32(esi + 0x34)); /* 0x36043EC9: fld dword ptr [esi + 0x34] */
   1725     fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36043ECC: fld dword ptr [esi + 0x30] */
   1726     fp_push(_st[0]); /* 0x36043ECF: fld st(0) */
   1727     _st[0] *= _st[1]; /* 0x36043ED1: fmul st(1) */
   1728     fp_push(_st[2]); /* 0x36043ED3: fld st(2) */
   1729     _st[0] *= _st[3]; /* 0x36043ED5: fmul st(3) */
   1730     { double _v = fp_pop(); _st[0] += _v; } /* 0x36043ED7: faddp st(1) */
   1731     fp_push(_st[3]); /* 0x36043ED9: fld st(3) */
   1732     _st[0] *= _st[4]; /* 0x36043EDB: fmul st(4) */
   1733     { double _v = fp_pop(); _st[0] += _v; } /* 0x36043EDD: faddp st(1) */
   1734     fp_push(_st[4]); /* 0x36043EDF: fld st(4) */
   1735     _st[0] *= _st[5]; /* 0x36043EE1: fmul st(5) */
   1736     { double _v = fp_pop(); _st[0] += _v; } /* 0x36043EE3: faddp st(1) */
   1737     _st[0] = sqrt(_st[0]); /* 0x36043EE5: fsqrt  */
   1738     { _st[4] = _st[0]; g_st_i64[4] = g_st_i64[0]; fp_pop(); } /* 0x36043EE7: fstp st(4) */
   1739     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36043EE9: fstp st(0) */
   1740     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36043EEB: fstp st(0) */
   1741     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36043EED: fstp st(0) */
   1742     _st[0] = (double)*(float*)ADDR(0x36170380) / _st[0]; /* 0x36043EEF: fdivr dword ptr [0x36170380] */
   1743     fp_push(_st[0]); /* 0x36043EF5: fld st(0) */
   1744     _st[0] *= (double)*(float*)ADDR(esi + 0x30); /* 0x36043EF7: fmul dword ptr [esi + 0x30] */
   1745     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x36043EFA: fstp dword ptr [esi + 0x30] */
   1746     fp_push(_st[0]); /* 0x36043EFD: fld st(0) */
   1747     _st[0] *= (double)*(float*)ADDR(esi + 0x34); /* 0x36043EFF: fmul dword ptr [esi + 0x34] */
   1748     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x36043F02: fstp dword ptr [esi + 0x34] */
   1749     fp_push(_st[0]); /* 0x36043F05: fld st(0) */
   1750     _st[0] *= (double)*(float*)ADDR(esi + 0x38); /* 0x36043F07: fmul dword ptr [esi + 0x38] */
   1751     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x36043F0A: fstp dword ptr [esi + 0x38] */
   1752     _st[0] *= (double)*(float*)ADDR(esi + 0x3C); /* 0x36043F0D: fmul dword ptr [esi + 0x3c] */
   1753     { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x36043F10: fstp dword ptr [esi + 0x3c] */
   1754     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x36043F13: fld dword ptr [esi + 0x24] */
   1755     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043F16: fstp qword ptr [esp] */
   1756     RECOMP_ICALL(ebx); /* 0x36043F19: call ebx */
   1757     RECOMP_FLAGS_IN();
   1758     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1760     esp = esp + 8; /* 0x36043F1B: add esp, 8 */
   1761     _flag_k = FK_ADD;
   1762     /* test eax, eax */ /* 0x36043F1E: test eax, eax */
   1763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1764     _cf = 0;
   1765     _flag_k = FK_TEST;
   1766     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043F30; /* 0x36043F20: jne 0x36043f30 */
   1767 L_36043F22:
   1768     edi = POP32_VAL(esp); /* 0x36043F22: pop edi */
   1769     esi = POP32_VAL(esp); /* 0x36043F23: pop esi */
   1770     eax = 1; /* 0x36043F24: mov eax, 1 */
   1771     ebx = POP32_VAL(esp); /* 0x36043F29: pop ebx */
   1772     esp = ebp; /* 0x36043F2A: mov esp, ebp */
   1773     ebp = POP32_VAL(esp); /* 0x36043F2C: pop ebp */
   1774     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043F2D: ret 4 */
   1775 L_36043F30:
   1776     fp_push(*(float*)&MEM32(esi + 0x28)); /* 0x36043F30: fld dword ptr [esi + 0x28] */
   1777     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1778     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1779     esp = esp - 8; /* 0x36043F33: sub esp, 8 */
   1780     _flag_k = FK_CMP;
   1781     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043F36: fstp qword ptr [esp] */
   1782     RECOMP_ICALL(ebx); /* 0x36043F39: call ebx */
   1783     RECOMP_FLAGS_IN();
   1784     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1785     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1786     esp = esp + 8; /* 0x36043F3B: add esp, 8 */
   1787     _flag_k = FK_ADD;
   1788     /* test eax, eax */ /* 0x36043F3E: test eax, eax */
   1789     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1790     _cf = 0;
   1791     _flag_k = FK_TEST;
   1792     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043F50; /* 0x36043F40: jne 0x36043f50 */
   1793 L_36043F42:
   1794     edi = POP32_VAL(esp); /* 0x36043F42: pop edi */
   1795     esi = POP32_VAL(esp); /* 0x36043F43: pop esi */
   1796     eax = 1; /* 0x36043F44: mov eax, 1 */
   1797     ebx = POP32_VAL(esp); /* 0x36043F49: pop ebx */
   1798     esp = ebp; /* 0x36043F4A: mov esp, ebp */
   1799     ebp = POP32_VAL(esp); /* 0x36043F4C: pop ebp */
   1800     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043F4D: ret 4 */
   1801 L_36043F50:
   1802     fp_push(*(float*)&MEM32(esi + 0x2C)); /* 0x36043F50: fld dword ptr [esi + 0x2c] */
   1803     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1804     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1805     esp = esp - 8; /* 0x36043F53: sub esp, 8 */
   1806     _flag_k = FK_CMP;
   1807     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043F56: fstp qword ptr [esp] */
   1808     RECOMP_ICALL(ebx); /* 0x36043F59: call ebx */
   1809     RECOMP_FLAGS_IN();
   1810     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1811     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1812     esp = esp + 8; /* 0x36043F5B: add esp, 8 */
   1813     _flag_k = FK_ADD;
   1814     /* test eax, eax */ /* 0x36043F5E: test eax, eax */
   1815     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1816     _cf = 0;
   1817     _flag_k = FK_TEST;
   1818     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043F70; /* 0x36043F60: jne 0x36043f70 */
   1819 L_36043F62:
   1820     edi = POP32_VAL(esp); /* 0x36043F62: pop edi */
   1821     esi = POP32_VAL(esp); /* 0x36043F63: pop esi */
   1822     eax = 1; /* 0x36043F64: mov eax, 1 */
   1823     ebx = POP32_VAL(esp); /* 0x36043F69: pop ebx */
   1824     esp = ebp; /* 0x36043F6A: mov esp, ebp */
   1825     ebp = POP32_VAL(esp); /* 0x36043F6C: pop ebp */
   1826     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043F6D: ret 4 */
   1827 L_36043F70:
   1828     fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36043F70: fld dword ptr [esi + 0x30] */
   1829     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1830     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1831     esp = esp - 8; /* 0x36043F73: sub esp, 8 */
   1832     _flag_k = FK_CMP;
   1833     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043F76: fstp qword ptr [esp] */
   1834     RECOMP_ICALL(ebx); /* 0x36043F79: call ebx */
   1835     RECOMP_FLAGS_IN();
   1836     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1837     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1838     esp = esp + 8; /* 0x36043F7B: add esp, 8 */
   1839     _flag_k = FK_ADD;
   1840     /* test eax, eax */ /* 0x36043F7E: test eax, eax */
   1841     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1842     _cf = 0;
   1843     _flag_k = FK_TEST;
   1844     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043F90; /* 0x36043F80: jne 0x36043f90 */
   1845 L_36043F82:
   1846     edi = POP32_VAL(esp); /* 0x36043F82: pop edi */
   1847     esi = POP32_VAL(esp); /* 0x36043F83: pop esi */
   1848     eax = 1; /* 0x36043F84: mov eax, 1 */
   1849     ebx = POP32_VAL(esp); /* 0x36043F89: pop ebx */
   1850     esp = ebp; /* 0x36043F8A: mov esp, ebp */
   1851     ebp = POP32_VAL(esp); /* 0x36043F8C: pop ebp */
   1852     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043F8D: ret 4 */
   1853 L_36043F90:
   1854     fp_push(*(float*)&MEM32(esi + 0x34)); /* 0x36043F90: fld dword ptr [esi + 0x34] */
   1855     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1857     esp = esp - 8; /* 0x36043F93: sub esp, 8 */
   1858     _flag_k = FK_CMP;
   1859     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043F96: fstp qword ptr [esp] */
   1860     RECOMP_ICALL(ebx); /* 0x36043F99: call ebx */
   1861     RECOMP_FLAGS_IN();
   1862     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1863     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1864     esp = esp + 8; /* 0x36043F9B: add esp, 8 */
   1865     _flag_k = FK_ADD;
   1866     /* test eax, eax */ /* 0x36043F9E: test eax, eax */
   1867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1868     _cf = 0;
   1869     _flag_k = FK_TEST;
   1870     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043FB0; /* 0x36043FA0: jne 0x36043fb0 */
   1871 L_36043FA2:
   1872     edi = POP32_VAL(esp); /* 0x36043FA2: pop edi */
   1873     esi = POP32_VAL(esp); /* 0x36043FA3: pop esi */
   1874     eax = 1; /* 0x36043FA4: mov eax, 1 */
   1875     ebx = POP32_VAL(esp); /* 0x36043FA9: pop ebx */
   1876     esp = ebp; /* 0x36043FAA: mov esp, ebp */
   1877     ebp = POP32_VAL(esp); /* 0x36043FAC: pop ebp */
   1878     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043FAD: ret 4 */
   1879 L_36043FB0:
   1880     fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x36043FB0: fld dword ptr [esi + 0x38] */
   1881     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1882     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1883     esp = esp - 8; /* 0x36043FB3: sub esp, 8 */
   1884     _flag_k = FK_CMP;
   1885     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043FB6: fstp qword ptr [esp] */
   1886     RECOMP_ICALL(ebx); /* 0x36043FB9: call ebx */
   1887     RECOMP_FLAGS_IN();
   1888     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1889     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1890     esp = esp + 8; /* 0x36043FBB: add esp, 8 */
   1891     _flag_k = FK_ADD;
   1892     /* test eax, eax */ /* 0x36043FBE: test eax, eax */
   1893     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1894     _cf = 0;
   1895     _flag_k = FK_TEST;
   1896     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043FD0; /* 0x36043FC0: jne 0x36043fd0 */
   1897 L_36043FC2:
   1898     edi = POP32_VAL(esp); /* 0x36043FC2: pop edi */
   1899     esi = POP32_VAL(esp); /* 0x36043FC3: pop esi */
   1900     eax = 1; /* 0x36043FC4: mov eax, 1 */
   1901     ebx = POP32_VAL(esp); /* 0x36043FC9: pop ebx */
   1902     esp = ebp; /* 0x36043FCA: mov esp, ebp */
   1903     ebp = POP32_VAL(esp); /* 0x36043FCC: pop ebp */
   1904     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043FCD: ret 4 */
   1905 L_36043FD0:
   1906     fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36043FD0: fld dword ptr [esi + 0x3c] */
   1907     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1908     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1909     esp = esp - 8; /* 0x36043FD3: sub esp, 8 */
   1910     _flag_k = FK_CMP;
   1911     { double _v = fp_pop(); *(double*)ADDR(esp) = _v; } /* 0x36043FD6: fstp qword ptr [esp] */
   1912     RECOMP_ICALL(ebx); /* 0x36043FD9: call ebx */
   1913     RECOMP_FLAGS_IN();
   1914     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1916     esp = esp + 8; /* 0x36043FDB: add esp, 8 */
   1917     _flag_k = FK_ADD;
   1918     /* test eax, eax */ /* 0x36043FDE: test eax, eax */
   1919     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1920     _cf = 0;
   1921     _flag_k = FK_TEST;
   1922     if (TEST_NZ(_flag_a, _flag_b)) goto L_36043FF0; /* 0x36043FE0: jne 0x36043ff0 */
   1923 L_36043FE2:
   1924     edi = POP32_VAL(esp); /* 0x36043FE2: pop edi */
   1925     esi = POP32_VAL(esp); /* 0x36043FE3: pop esi */
   1926     eax = 1; /* 0x36043FE4: mov eax, 1 */
   1927     ebx = POP32_VAL(esp); /* 0x36043FE9: pop ebx */
   1928     esp = ebp; /* 0x36043FEA: mov esp, ebp */
   1929     ebp = POP32_VAL(esp); /* 0x36043FEC: pop ebp */
   1930     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36043FED: ret 4 */
   1931 L_36043FF0:
   1932     ecx = edi; /* 0x36043FF0: mov ecx, edi */
   1933     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36043FF2: call dword ptr [0x3616fadc] */
   1934     RECOMP_FLAGS_IN();
   1935     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   1936     _cf = (eax) != 0;
   1937     eax = (uint32_t)(-(int32_t)eax); /* 0x36043FF8: neg eax */
   1938     _flag_k = FK_CMP;
   1939     edi = POP32_VAL(esp); /* 0x36043FFA: pop edi */
   1940     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36043FFB: sbb eax, eax */
   1941       eax = _sc ? 0xFFFFFFFFu : 0;
   1942       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   1943       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   1944     esi = POP32_VAL(esp); /* 0x36043FFD: pop esi */
   1945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1946     eax = eax + 1; /* 0x36043FFE: inc eax */
   1947     _flag_k = FK_INC;
   1948     ebx = POP32_VAL(esp); /* 0x36043FFF: pop ebx */
   1949     esp = ebp; /* 0x36044000: mov esp, ebp */
   1950     ebp = POP32_VAL(esp); /* 0x36044002: pop ebp */
   1951     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36044003: ret 4 */
   1952     RECOMP_REGS_OUT();
   1953 }
   1954 
   1955 void sub_36044010(void) {
   1956     int _fpu_cmp = 0;
   1957     uint32_t _cf = 0;
   1958     int _df = 1;
   1959     uint32_t _flag_k = FK_NONE;
   1960     uint32_t _flag_a = 0, _flag_b = 0;
   1961     uint32_t _itail_tgt = 0;
   1962     RECOMP_REGS_LOCALS
   1963     RECOMP_ENTER(0x36044010u);
   1964 
   1965 L_36044010:
   1966     PUSH32(esp, ebp); /* 0x36044010: push ebp */
   1967     ebp = esp; /* 0x36044011: mov ebp, esp */
   1968     PUSH32(esp, ebx); /* 0x36044013: push ebx */
   1969     PUSH32(esp, esi); /* 0x36044014: push esi */
   1970     esi = ecx; /* 0x36044015: mov esi, ecx */
   1971     SET_LO8(eax, MEM8(esi + 0x40)); /* 0x36044017: mov al, byte ptr [esi + 0x40] */
   1972     ecx = MEM32(esi + 0x20); /* 0x3604401A: mov ecx, dword ptr [esi + 0x20] */
   1973     /* test LO8(eax), LO8(eax) */ /* 0x3604401D: test al, al */
   1974     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   1975     _cf = 0;
   1976     _flag_k = FK_NARROW(FK_TEST, 24);
   1977     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3604401F: sete al */
   1978     PUSH32(esp, edi); /* 0x36044022: push edi */
   1979     edi = MEM32(ebp + 0x8); /* 0x36044023: mov edi, dword ptr [ebp + 8] */
   1980     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1981     eax = eax - 1; /* 0x36044026: dec eax */
   1982     _flag_k = FK_DEC;
   1983     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x80u) << 24;
   1984     SET_LO8(eax, LO8(eax) & 0x80u); /* 0x36044027: and al, 0x80 */
   1985     _cf = 0;
   1986     _flag_k = FK_NARROW(FK_TEST, 24);
   1987     _flag_a = (uint32_t)((LO8(eax) | LO8(ecx))) << 24; _flag_b = (uint32_t)((LO8(eax) | LO8(ecx))) << 24;
   1988     SET_LO8(eax, LO8(eax) | LO8(ecx)); /* 0x36044029: or al, cl */
   1989     _cf = 0;
   1990     _flag_k = FK_NARROW(FK_TEST, 24);
   1991     ecx = edi; /* 0x3604402B: mov ecx, edi */
   1992     PUSH32(esp, eax); /* 0x3604402D: push eax */
   1993     RECOMP_ICALL(MEM32(0x3616FAE8)); /* 0x3604402E: call dword ptr [0x3616fae8] */
   1994     RECOMP_FLAGS_IN();
   1995     fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x36044034: fld dword ptr [esi + 0x24] */
   1996     _st[0] *= (double)*(float*)ADDR(0x36170BA8); /* 0x36044037: fmul dword ptr [0x36170ba8] */
   1997     RECOMP_ICALL(0x3615FD8Cu); /* 0x3604403D: call 0x3615fd8c */ /* not lifted */
   1998     RECOMP_FLAGS_IN();
   1999     ebx = MEM32(0x3616FACC); /* 0x36044042: mov ebx, dword ptr [0x3616facc] */
   2000     ecx = edi; /* 0x36044048: mov ecx, edi */
   2001     PUSH32(esp, eax); /* 0x3604404A: push eax */
   2002     RECOMP_ICALL(ebx); /* 0x3604404B: call ebx */
   2003     RECOMP_FLAGS_IN();
   2004     fp_push(*(float*)&MEM32(esi + 0x28)); /* 0x3604404D: fld dword ptr [esi + 0x28] */
   2005     _st[0] *= (double)*(float*)ADDR(0x36170BA4); /* 0x36044050: fmul dword ptr [0x36170ba4] */
   2006     RECOMP_ICALL(0x3615FD8Cu); /* 0x36044056: call 0x3615fd8c */ /* not lifted */
   2007     RECOMP_FLAGS_IN();
   2008     ecx = edi; /* 0x3604405B: mov ecx, edi */
   2009     PUSH32(esp, eax); /* 0x3604405D: push eax */
   2010     RECOMP_ICALL(ebx); /* 0x3604405E: call ebx */
   2011     RECOMP_FLAGS_IN();
   2012     fp_push(*(float*)&MEM32(esi + 0x2C)); /* 0x36044060: fld dword ptr [esi + 0x2c] */
   2013     _st[0] *= (double)*(float*)ADDR(0x36170BA8); /* 0x36044063: fmul dword ptr [0x36170ba8] */
   2014     RECOMP_ICALL(0x3615FD8Cu); /* 0x36044069: call 0x3615fd8c */ /* not lifted */
   2015     RECOMP_FLAGS_IN();
   2016     ecx = edi; /* 0x3604406E: mov ecx, edi */
   2017     PUSH32(esp, eax); /* 0x36044070: push eax */
   2018     RECOMP_ICALL(ebx); /* 0x36044071: call ebx */
   2019     RECOMP_FLAGS_IN();
   2020     fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36044073: fld dword ptr [esi + 0x30] */
   2021     _st[0] *= (double)*(float*)ADDR(0x36170BA0); /* 0x36044076: fmul dword ptr [0x36170ba0] */
   2022     RECOMP_ICALL(0x3615FD8Cu); /* 0x3604407C: call 0x3615fd8c */ /* not lifted */
   2023     RECOMP_FLAGS_IN();
   2024     ecx = edi; /* 0x36044081: mov ecx, edi */
   2025     PUSH32(esp, eax); /* 0x36044083: push eax */
   2026     RECOMP_ICALL(ebx); /* 0x36044084: call ebx */
   2027     RECOMP_FLAGS_IN();
   2028     fp_push(*(float*)&MEM32(esi + 0x34)); /* 0x36044086: fld dword ptr [esi + 0x34] */
   2029     _st[0] *= (double)*(float*)ADDR(0x36170BA0); /* 0x36044089: fmul dword ptr [0x36170ba0] */
   2030     RECOMP_ICALL(0x3615FD8Cu); /* 0x3604408F: call 0x3615fd8c */ /* not lifted */
   2031     RECOMP_FLAGS_IN();
   2032     ecx = edi; /* 0x36044094: mov ecx, edi */
   2033     PUSH32(esp, eax); /* 0x36044096: push eax */
   2034     RECOMP_ICALL(ebx); /* 0x36044097: call ebx */
   2035     RECOMP_FLAGS_IN();
   2036     fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x36044099: fld dword ptr [esi + 0x38] */
   2037     _st[0] *= (double)*(float*)ADDR(0x36170BA0); /* 0x3604409C: fmul dword ptr [0x36170ba0] */
   2038     RECOMP_ICALL(0x3615FD8Cu); /* 0x360440A2: call 0x3615fd8c */ /* not lifted */
   2039     RECOMP_FLAGS_IN();
   2040     ecx = edi; /* 0x360440A7: mov ecx, edi */
   2041     PUSH32(esp, eax); /* 0x360440A9: push eax */
   2042     RECOMP_ICALL(ebx); /* 0x360440AA: call ebx */
   2043     RECOMP_FLAGS_IN();
   2044     fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x360440AC: fld dword ptr [esi + 0x3c] */
   2045     _st[0] *= (double)*(float*)ADDR(0x36170BA0); /* 0x360440AF: fmul dword ptr [0x36170ba0] */
   2046     RECOMP_ICALL(0x3615FD8Cu); /* 0x360440B5: call 0x3615fd8c */ /* not lifted */
   2047     RECOMP_FLAGS_IN();
   2048     ecx = edi; /* 0x360440BA: mov ecx, edi */
   2049     PUSH32(esp, eax); /* 0x360440BC: push eax */
   2050     RECOMP_ICALL(ebx); /* 0x360440BD: call ebx */
   2051     RECOMP_FLAGS_IN();
   2052     edi = POP32_VAL(esp); /* 0x360440BF: pop edi */
   2053     esi = POP32_VAL(esp); /* 0x360440C0: pop esi */
   2054     ebx = POP32_VAL(esp); /* 0x360440C1: pop ebx */
   2055     ebp = POP32_VAL(esp); /* 0x360440C2: pop ebp */
   2056     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360440C3: ret 4 */
   2057     RECOMP_REGS_OUT();
   2058 }
   2059 
   2060 void sub_360440D0(void) {
   2061     int _fpu_cmp = 0;
   2062     uint32_t _cf = 0;
   2063     int _df = 1;
   2064     uint32_t _flag_k = FK_NONE;
   2065     uint32_t _flag_a = 0, _flag_b = 0;
   2066     uint32_t _itail_tgt = 0;
   2067     RECOMP_REGS_LOCALS
   2068     RECOMP_ENTER(0x360440D0u);
   2069 
   2070 L_360440D0:
   2071     PUSH32(esp, esi); /* 0x360440D0: push esi */
   2072     esi = ecx; /* 0x360440D1: mov esi, ecx */
   2073     RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x360440D3: call dword ptr [0x3616ffd0] */
   2074     RECOMP_FLAGS_IN();
   2075     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2076     eax = 0; /* 0x360440D9: xor eax, eax */
   2077     _cf = 0;
   2078     _flag_k = FK_TEST;
   2079     MEM32(esi + 0x20) = eax; /* 0x360440DB: mov dword ptr [esi + 0x20], eax */
   2080     MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x360440DE: mov byte ptr [esi + 0xc], al */
   2081     MEM32(esi) = 0x36170BB0u; /* 0x360440E1: mov dword ptr [esi], 0x36170bb0 */
   2082     eax = esi; /* 0x360440E7: mov eax, esi */
   2083     esi = POP32_VAL(esp); /* 0x360440E9: pop esi */
   2084     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360440EA: ret  */
   2085     RECOMP_REGS_OUT();
   2086 }
   2087 
   2088 void sub_360440F0(void) {
   2089     int _fpu_cmp = 0;
   2090     uint32_t _cf = 0;
   2091     int _df = 1;
   2092     uint32_t _flag_k = FK_NONE;
   2093     uint32_t _flag_a = 0, _flag_b = 0;
   2094     uint32_t _itail_tgt = 0;
   2095     RECOMP_REGS_LOCALS
   2096     RECOMP_ENTER(0x360440F0u);
   2097 
   2098 L_360440F0:
   2099     PUSH32(esp, ebp); /* 0x360440F0: push ebp */
   2100     ebp = esp; /* 0x360440F1: mov ebp, esp */
   2101     PUSH32(esp, esi); /* 0x360440F3: push esi */
   2102     esi = ecx; /* 0x360440F4: mov esi, ecx */
   2103     RECOMP_ICALL(0x36044120u); /* 0x360440F6: call 0x36044120 */ /* not lifted */
   2104     RECOMP_FLAGS_IN();
   2105     /* test MEM8(ebp + 0x8), 1 */ /* 0x360440FB: test byte ptr [ebp + 8], 1 */
   2106     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   2107     _cf = 0;
   2108     _flag_k = FK_NARROW(FK_TEST, 24);
   2109     if (TEST_Z(_flag_a, _flag_b)) goto L_3604410A; /* 0x360440FF: je 0x3604410a */
   2110 L_36044101:
   2111     PUSH32(esp, esi); /* 0x36044101: push esi */
   2112     RECOMP_ICALL(0x3615FCC4u); /* 0x36044102: call 0x3615fcc4 */ /* not lifted */
   2113     RECOMP_FLAGS_IN();
   2114     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2115     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2116     esp = esp + 4; /* 0x36044107: add esp, 4 */
   2117     _flag_k = FK_ADD;
   2118 L_3604410A:
   2119     eax = esi; /* 0x3604410A: mov eax, esi */
   2120     esi = POP32_VAL(esp); /* 0x3604410C: pop esi */
   2121     ebp = POP32_VAL(esp); /* 0x3604410D: pop ebp */
   2122     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604410E: ret 4 */
   2123     RECOMP_REGS_OUT();
   2124 }
   2125 
   2126 void sub_36044120(void) {
   2127     int _fpu_cmp = 0;
   2128     uint32_t _cf = 0;
   2129     int _df = 1;
   2130     uint32_t _flag_k = FK_NONE;
   2131     uint32_t _flag_a = 0, _flag_b = 0;
   2132     uint32_t _itail_tgt = 0;
   2133     RECOMP_REGS_LOCALS
   2134     RECOMP_ENTER(0x36044120u);
   2135 
   2136 L_36044120:
   2137     MEM32(ecx) = 0x36170BB0u; /* 0x36044120: mov dword ptr [ecx], 0x36170bb0 */
   2138 L_36044126:
   2139     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
   2140     { RECOMP_REGS_OUT(); return; } /* end of function */
   2141   _ljump:
   2142     switch (_itail_tgt) {
   2143       case 0x36044120u: goto L_36044120;
   2144       case 0x36044126u: goto L_36044126;
   2145       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2146     }
   2147     RECOMP_REGS_OUT();
   2148 }
   2149 
   2150 void sub_36044130(void) {
   2151     int _fpu_cmp = 0;
   2152     uint32_t _cf = 0;
   2153     int _df = 1;
   2154     uint32_t _flag_k = FK_NONE;
   2155     uint32_t _flag_a = 0, _flag_b = 0;
   2156     uint32_t _itail_tgt = 0;
   2157     RECOMP_REGS_LOCALS
   2158     RECOMP_ENTER(0x36044130u);
   2159 
   2160 L_36044130:
   2161     PUSH32(esp, esi); /* 0x36044130: push esi */
   2162     PUSH32(esp, edi); /* 0x36044131: push edi */
   2163     edi = ecx; /* 0x36044132: mov edi, ecx */
   2164     eax = edi + 0x4; /* 0x36044134: lea eax, [edi + 4] */
   2165     PUSH32(esp, eax); /* 0x36044137: push eax */
   2166     RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36044138: call dword ptr [0x3616ff70] */
   2167     RECOMP_FLAGS_IN();
   2168     esi = eax; /* 0x3604413E: mov esi, eax */
   2169     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2170     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2171     esp = esp + 4; /* 0x36044140: add esp, 4 */
   2172     _flag_k = FK_ADD;
   2173     /* test esi, esi */ /* 0x36044143: test esi, esi */
   2174     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   2175     _cf = 0;
   2176     _flag_k = FK_TEST;
   2177     if (TEST_NZ(_flag_a, _flag_b)) goto L_36044154; /* 0x36044145: jne 0x36044154 */
   2178 L_36044147:
   2179     ecx = edi; /* 0x36044147: mov ecx, edi */
   2180     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36044149: call dword ptr [0x3616fc20] */
   2181     RECOMP_FLAGS_IN();
   2182     edi = POP32_VAL(esp); /* 0x3604414F: pop edi */
   2183     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2184     eax = 0; /* 0x36044150: xor eax, eax */
   2185     _cf = 0;
   2186     _flag_k = FK_TEST;
   2187     esi = POP32_VAL(esp); /* 0x36044152: pop esi */
   2188     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044153: ret  */
   2189 L_36044154:
   2190     ecx = MEM32(0x3616FF74); /* 0x36044154: mov ecx, dword ptr [0x3616ff74] */
   2191     ecx = MEM32(ecx); /* 0x3604415A: mov ecx, dword ptr [ecx] */
   2192     edx = MEM32(ecx); /* 0x3604415C: mov edx, dword ptr [ecx] */
   2193     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3604415E: call dword ptr [edx + 0x10] */
   2194     RECOMP_FLAGS_IN();
   2195     /* cmp eax, esi */ /* 0x36044161: cmp eax, esi */
   2196     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2197     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2198     _flag_k = FK_CMP;
   2199     if (CMP_NE(_flag_a, _flag_b)) goto L_36044175; /* 0x36044163: jne 0x36044175 */
   2200 L_36044165:
   2201     eax = MEM32(edi); /* 0x36044165: mov eax, dword ptr [edi] */
   2202     ecx = edi; /* 0x36044167: mov ecx, edi */
   2203     RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x36044169: call dword ptr [eax + 0xc] */
   2204     RECOMP_FLAGS_IN();
   2205     /* test LO8(eax), LO8(eax) */ /* 0x3604416C: test al, al */
   2206     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2207     _cf = 0;
   2208     _flag_k = FK_NARROW(FK_TEST, 24);
   2209     if (TEST_NZ(_flag_a, _flag_b)) goto L_36044175; /* 0x3604416E: jne 0x36044175 */
   2210 L_36044170:
   2211     edi = POP32_VAL(esp); /* 0x36044170: pop edi */
   2212     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2213     eax = 0; /* 0x36044171: xor eax, eax */
   2214     _cf = 0;
   2215     _flag_k = FK_TEST;
   2216     esi = POP32_VAL(esp); /* 0x36044173: pop esi */
   2217     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044174: ret  */
   2218 L_36044175:
   2219     ecx = MEM32(edi + 0x20); /* 0x36044175: mov ecx, dword ptr [edi + 0x20] */
   2220     PUSH32(esp, ecx); /* 0x36044178: push ecx */
   2221     ecx = esi; /* 0x36044179: mov ecx, esi */
   2222     RECOMP_ICALL(0x3606D5A0u); /* 0x3604417B: call 0x3606d5a0 */ /* not lifted */
   2223     RECOMP_FLAGS_IN();
   2224     ecx = eax; /* 0x36044180: mov ecx, eax */
   2225     RECOMP_ICALL(0x36049130u); /* 0x36044182: call 0x36049130 */ /* not lifted */
   2226     RECOMP_FLAGS_IN();
   2227     edi = POP32_VAL(esp); /* 0x36044187: pop edi */
   2228     eax = esi; /* 0x36044188: mov eax, esi */
   2229     esi = POP32_VAL(esp); /* 0x3604418A: pop esi */
   2230     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604418B: ret  */
   2231     RECOMP_REGS_OUT();
   2232 }
   2233 
   2234 void sub_36044190(void) {
   2235     int _fpu_cmp = 0;
   2236     uint32_t _cf = 0;
   2237     int _df = 1;
   2238     uint32_t _flag_k = FK_NONE;
   2239     uint32_t _flag_a = 0, _flag_b = 0;
   2240     uint32_t _itail_tgt = 0;
   2241     RECOMP_REGS_LOCALS
   2242     RECOMP_ENTER(0x36044190u);
   2243 
   2244 L_36044190:
   2245     PUSH32(esp, ebp); /* 0x36044190: push ebp */
   2246     ebp = esp; /* 0x36044191: mov ebp, esp */
   2247     PUSH32(esp, esi); /* 0x36044193: push esi */
   2248     PUSH32(esp, edi); /* 0x36044194: push edi */
   2249     edi = MEM32(ebp + 0x8); /* 0x36044195: mov edi, dword ptr [ebp + 8] */
   2250     eax = ebp + 0x8; /* 0x36044198: lea eax, [ebp + 8] */
   2251     esi = ecx; /* 0x3604419B: mov esi, ecx */
   2252     PUSH32(esp, eax); /* 0x3604419D: push eax */
   2253     ecx = edi; /* 0x3604419E: mov ecx, edi */
   2254     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x360441A0: call dword ptr [0x3616fa8c] */
   2255     RECOMP_FLAGS_IN();
   2256     ecx = MEM32(ebp + 0x8); /* 0x360441A6: mov ecx, dword ptr [ebp + 8] */
   2257     MEM32(esi + 0x20) = ecx; /* 0x360441A9: mov dword ptr [esi + 0x20], ecx */
   2258     ecx = edi; /* 0x360441AC: mov ecx, edi */
   2259     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360441AE: call dword ptr [0x3616fadc] */
   2260     RECOMP_FLAGS_IN();
   2261     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2262     _cf = (eax) != 0;
   2263     eax = (uint32_t)(-(int32_t)eax); /* 0x360441B4: neg eax */
   2264     _flag_k = FK_CMP;
   2265     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360441B6: sbb eax, eax */
   2266       eax = _sc ? 0xFFFFFFFFu : 0;
   2267       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2268       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2269     edi = POP32_VAL(esp); /* 0x360441B8: pop edi */
   2270     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2271     eax = eax + 1; /* 0x360441B9: inc eax */
   2272     _flag_k = FK_INC;
   2273     esi = POP32_VAL(esp); /* 0x360441BA: pop esi */
   2274     ebp = POP32_VAL(esp); /* 0x360441BB: pop ebp */
   2275     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360441BC: ret 4 */
   2276     RECOMP_REGS_OUT();
   2277 }
   2278 
   2279 void sub_360441C0(void) {
   2280     int _fpu_cmp = 0;
   2281     uint32_t _cf = 0;
   2282     int _df = 1;
   2283     uint32_t _flag_k = FK_NONE;
   2284     uint32_t _flag_a = 0, _flag_b = 0;
   2285     uint32_t _itail_tgt = 0;
   2286     RECOMP_REGS_LOCALS
   2287     RECOMP_ENTER(0x360441C0u);
   2288 
   2289 L_360441C0:
   2290     RECOMP_ICALL(0x360441D0u); /* 0x360441C0: call 0x360441d0 */ /* not lifted */
   2291     RECOMP_FLAGS_IN();
   2292     goto L_360441E0; /* 0x360441C5: jmp 0x360441e0 */
   2293 L_360441E0:
   2294     PUSH32(esp, 0x360441F0u); /* 0x360441E0: push 0x360441f0 */
   2295     RECOMP_ICALL(0x3615FEB2u); /* 0x360441E5: call 0x3615feb2 */ /* not lifted */
   2296     RECOMP_FLAGS_IN();
   2297     ecx = POP32_VAL(esp); /* 0x360441EA: pop ecx */
   2298     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360441EB: ret  */
   2299     RECOMP_REGS_OUT();
   2300 }
   2301 
   2302 void sub_360441D0(void) {
   2303     int _fpu_cmp = 0;
   2304     uint32_t _cf = 0;
   2305     int _df = 1;
   2306     uint32_t _flag_k = FK_NONE;
   2307     uint32_t _flag_a = 0, _flag_b = 0;
   2308     uint32_t _itail_tgt = 0;
   2309     RECOMP_REGS_LOCALS
   2310     RECOMP_ENTER(0x360441D0u);
   2311 
   2312 L_360441D0:
   2313     ecx = 0x3630660Du; /* 0x360441D0: mov ecx, 0x3630660d */
   2314 L_360441D5:
   2315     { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; }
   2316     { RECOMP_REGS_OUT(); return; } /* end of function */
   2317   _ljump:
   2318     switch (_itail_tgt) {
   2319       case 0x360441D0u: goto L_360441D0;
   2320       case 0x360441D5u: goto L_360441D5;
   2321       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2322     }
   2323     RECOMP_REGS_OUT();
   2324 }
   2325 
   2326 void sub_360441E0(void) {
   2327     int _fpu_cmp = 0;
   2328     uint32_t _cf = 0;
   2329     int _df = 1;
   2330     uint32_t _flag_k = FK_NONE;
   2331     uint32_t _flag_a = 0, _flag_b = 0;
   2332     uint32_t _itail_tgt = 0;
   2333     RECOMP_REGS_LOCALS
   2334     RECOMP_ENTER(0x360441E0u);
   2335 
   2336 L_360441E0:
   2337     PUSH32(esp, 0x360441F0u); /* 0x360441E0: push 0x360441f0 */
   2338     RECOMP_ICALL(0x3615FEB2u); /* 0x360441E5: call 0x3615feb2 */ /* not lifted */
   2339     RECOMP_FLAGS_IN();
   2340     ecx = POP32_VAL(esp); /* 0x360441EA: pop ecx */
   2341     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360441EB: ret  */
   2342     RECOMP_REGS_OUT();
   2343 }
   2344 
   2345 void sub_360441F0(void) {
   2346     int _fpu_cmp = 0;
   2347     uint32_t _cf = 0;
   2348     int _df = 1;
   2349     uint32_t _flag_k = FK_NONE;
   2350     uint32_t _flag_a = 0, _flag_b = 0;
   2351     uint32_t _itail_tgt = 0;
   2352     RECOMP_REGS_LOCALS
   2353     RECOMP_ENTER(0x360441F0u);
   2354 
   2355 L_360441F0:
   2356     ecx = 0x3630660Du; /* 0x360441F0: mov ecx, 0x3630660d */
   2357 L_360441F5:
   2358     { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; }
   2359     { RECOMP_REGS_OUT(); return; } /* end of function */
   2360   _ljump:
   2361     switch (_itail_tgt) {
   2362       case 0x360441F0u: goto L_360441F0;
   2363       case 0x360441F5u: goto L_360441F5;
   2364       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2365     }
   2366     RECOMP_REGS_OUT();
   2367 }
   2368 
   2369 void sub_36044200(void) {
   2370     int _fpu_cmp = 0;
   2371     uint32_t _cf = 0;
   2372     int _df = 1;
   2373     uint32_t _flag_k = FK_NONE;
   2374     uint32_t _flag_a = 0, _flag_b = 0;
   2375     uint32_t _itail_tgt = 0;
   2376     RECOMP_REGS_LOCALS
   2377     RECOMP_ENTER(0x36044200u);
   2378 
   2379 L_36044200:
   2380     RECOMP_ICALL(0x36044210u); /* 0x36044200: call 0x36044210 */ /* not lifted */
   2381     RECOMP_FLAGS_IN();
   2382     goto L_36044220; /* 0x36044205: jmp 0x36044220 */
   2383 L_36044220:
   2384     PUSH32(esp, 0x36044230u); /* 0x36044220: push 0x36044230 */
   2385     RECOMP_ICALL(0x3615FEB2u); /* 0x36044225: call 0x3615feb2 */ /* not lifted */
   2386     RECOMP_FLAGS_IN();
   2387     ecx = POP32_VAL(esp); /* 0x3604422A: pop ecx */
   2388     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604422B: ret  */
   2389     RECOMP_REGS_OUT();
   2390 }
   2391 
   2392 void sub_36044210(void) {
   2393     int _fpu_cmp = 0;
   2394     uint32_t _cf = 0;
   2395     int _df = 1;
   2396     uint32_t _flag_k = FK_NONE;
   2397     uint32_t _flag_a = 0, _flag_b = 0;
   2398     uint32_t _itail_tgt = 0;
   2399     RECOMP_REGS_LOCALS
   2400     RECOMP_ENTER(0x36044210u);
   2401 
   2402 L_36044210:
   2403     ecx = 0x3630660Cu; /* 0x36044210: mov ecx, 0x3630660c */
   2404 L_36044215:
   2405     { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; }
   2406     { RECOMP_REGS_OUT(); return; } /* end of function */
   2407   _ljump:
   2408     switch (_itail_tgt) {
   2409       case 0x36044210u: goto L_36044210;
   2410       case 0x36044215u: goto L_36044215;
   2411       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2412     }
   2413     RECOMP_REGS_OUT();
   2414 }
   2415 
   2416 void sub_36044220(void) {
   2417     int _fpu_cmp = 0;
   2418     uint32_t _cf = 0;
   2419     int _df = 1;
   2420     uint32_t _flag_k = FK_NONE;
   2421     uint32_t _flag_a = 0, _flag_b = 0;
   2422     uint32_t _itail_tgt = 0;
   2423     RECOMP_REGS_LOCALS
   2424     RECOMP_ENTER(0x36044220u);
   2425 
   2426 L_36044220:
   2427     PUSH32(esp, 0x36044230u); /* 0x36044220: push 0x36044230 */
   2428     RECOMP_ICALL(0x3615FEB2u); /* 0x36044225: call 0x3615feb2 */ /* not lifted */
   2429     RECOMP_FLAGS_IN();
   2430     ecx = POP32_VAL(esp); /* 0x3604422A: pop ecx */
   2431     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604422B: ret  */
   2432     RECOMP_REGS_OUT();
   2433 }
   2434 
   2435 void sub_36044230(void) {
   2436     int _fpu_cmp = 0;
   2437     uint32_t _cf = 0;
   2438     int _df = 1;
   2439     uint32_t _flag_k = FK_NONE;
   2440     uint32_t _flag_a = 0, _flag_b = 0;
   2441     uint32_t _itail_tgt = 0;
   2442     RECOMP_REGS_LOCALS
   2443     RECOMP_ENTER(0x36044230u);
   2444 
   2445 L_36044230:
   2446     ecx = 0x3630660Cu; /* 0x36044230: mov ecx, 0x3630660c */
   2447 L_36044235:
   2448     { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; }
   2449     { RECOMP_REGS_OUT(); return; } /* end of function */
   2450   _ljump:
   2451     switch (_itail_tgt) {
   2452       case 0x36044230u: goto L_36044230;
   2453       case 0x36044235u: goto L_36044235;
   2454       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2455     }
   2456     RECOMP_REGS_OUT();
   2457 }
   2458 
   2459 void sub_36044240(void) {
   2460     int _fpu_cmp = 0;
   2461     uint32_t _cf = 0;
   2462     int _df = 1;
   2463     uint32_t _flag_k = FK_NONE;
   2464     uint32_t _flag_a = 0, _flag_b = 0;
   2465     uint32_t _itail_tgt = 0;
   2466     RECOMP_REGS_LOCALS
   2467     RECOMP_ENTER(0x36044240u);
   2468 
   2469 L_36044240:
   2470     PUSH32(esp, ebp); /* 0x36044240: push ebp */
   2471     ebp = esp; /* 0x36044241: mov ebp, esp */
   2472     PUSH32(esp, ecx); /* 0x36044243: push ecx */
   2473     PUSH32(esp, ebx); /* 0x36044244: push ebx */
   2474     ebx = MEM32(ebp + 0xC); /* 0x36044245: mov ebx, dword ptr [ebp + 0xc] */
   2475     PUSH32(esp, esi); /* 0x36044248: push esi */
   2476     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2477     esi = 0; /* 0x36044249: xor esi, esi */
   2478     _cf = 0;
   2479     _flag_k = FK_TEST;
   2480     PUSH32(esp, edi); /* 0x3604424B: push edi */
   2481     ecx = ebx; /* 0x3604424C: mov ecx, ebx */
   2482     MEM32(ebp + (-0x4)) = esi; /* 0x3604424E: mov dword ptr [ebp - 4], esi */
   2483     RECOMP_ICALL(0x3609C020u); /* 0x36044251: call 0x3609c020 */ /* not lifted */
   2484     RECOMP_FLAGS_IN();
   2485     /* cmp eax, 1 */ /* 0x36044256: cmp eax, 1 */
   2486     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2487     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2488     _flag_k = FK_CMP;
   2489     edi = MEM32(ebp + 0x8); /* 0x36044259: mov edi, dword ptr [ebp + 8] */
   2490     ecx = ebx; /* 0x3604425C: mov ecx, ebx */
   2491     if (CMP_NE(_flag_a, _flag_b)) goto L_360443A0; /* 0x3604425E: jne 0x360443a0 */
   2492 L_36044264:
   2493     RECOMP_ICALL(0x36008320u); /* 0x36044264: call 0x36008320 */ /* not lifted */
   2494     RECOMP_FLAGS_IN();
   2495     /* cmp eax, 6 */ /* 0x36044269: cmp eax, 6 */
   2496     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   2497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2498     _flag_k = FK_CMP;
   2499     if (CMP_NE(_flag_a, _flag_b)) goto L_3604429F; /* 0x3604426C: jne 0x3604429f */
   2500 L_3604426E:
   2501     esi = MEM32(edi + 0x174); /* 0x3604426E: mov esi, dword ptr [edi + 0x174] */
   2502     ebx = MEM32(esi); /* 0x36044274: mov ebx, dword ptr [esi] */
   2503     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044276: push -1 */
   2504     eax = ebp + (-0x4); /* 0x36044278: lea eax, [ebp - 4] */
   2505     PUSH32(esp, eax); /* 0x3604427B: push eax */
   2506     PUSH32(esp, 0); /* 0x3604427C: push 0 */
   2507     PUSH32(esp, 1); /* 0x3604427E: push 1 */
   2508     PUSH32(esp, 4); /* 0x36044280: push 4 */
   2509     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044282: push -1 */
   2510     PUSH32(esp, 0); /* 0x36044284: push 0 */
   2511     PUSH32(esp, 0); /* 0x36044286: push 0 */
   2512     PUSH32(esp, 0x3F800000u); /* 0x36044288: push 0x3f800000 */
   2513     ecx = esi; /* 0x3604428D: mov ecx, esi */
   2514     RECOMP_ICALL(0x3606C640u); /* 0x3604428F: call 0x3606c640 */ /* not lifted */
   2515     RECOMP_FLAGS_IN();
   2516     PUSH32(esp, eax); /* 0x36044294: push eax */
   2517     ecx = esi; /* 0x36044295: mov ecx, esi */
   2518     RECOMP_ICALL(MEM32(ebx + 0x14)); /* 0x36044297: call dword ptr [ebx + 0x14] */
   2519     RECOMP_FLAGS_IN();
   2520     goto L_36044448; /* 0x3604429A: jmp 0x36044448 */
   2521 L_3604429F:
   2522     ecx = ebx; /* 0x3604429F: mov ecx, ebx */
   2523     RECOMP_ICALL(0x36008320u); /* 0x360442A1: call 0x36008320 */ /* not lifted */
   2524     RECOMP_FLAGS_IN();
   2525     /* cmp eax, 8 */ /* 0x360442A6: cmp eax, 8 */
   2526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   2527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2528     _flag_k = FK_CMP;
   2529     if (CMP_NE(_flag_a, _flag_b)) goto L_360442D4; /* 0x360442A9: jne 0x360442d4 */
   2530 L_360442AB:
   2531     ecx = MEM32(edi + 0x174); /* 0x360442AB: mov ecx, dword ptr [edi + 0x174] */
   2532     edx = MEM32(ecx); /* 0x360442B1: mov edx, dword ptr [ecx] */
   2533     PUSH32(esp, 0xFFFFFFFFu); /* 0x360442B3: push -1 */
   2534     eax = ebp + (-0x4); /* 0x360442B5: lea eax, [ebp - 4] */
   2535     PUSH32(esp, eax); /* 0x360442B8: push eax */
   2536     PUSH32(esp, 0); /* 0x360442B9: push 0 */
   2537     PUSH32(esp, 1); /* 0x360442BB: push 1 */
   2538     PUSH32(esp, 2); /* 0x360442BD: push 2 */
   2539     PUSH32(esp, 0xFFFFFFFFu); /* 0x360442BF: push -1 */
   2540     PUSH32(esp, 0); /* 0x360442C1: push 0 */
   2541     PUSH32(esp, 0); /* 0x360442C3: push 0 */
   2542     PUSH32(esp, 0x3F800000u); /* 0x360442C5: push 0x3f800000 */
   2543     PUSH32(esp, 0xD7u); /* 0x360442CA: push 0xd7 */
   2544     goto L_36044445; /* 0x360442CF: jmp 0x36044445 */
   2545 L_360442D4:
   2546     ecx = ebx; /* 0x360442D4: mov ecx, ebx */
   2547     RECOMP_ICALL(0x36008320u); /* 0x360442D6: call 0x36008320 */ /* not lifted */
   2548     RECOMP_FLAGS_IN();
   2549     /* cmp eax, 4 */ /* 0x360442DB: cmp eax, 4 */
   2550     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2552     _flag_k = FK_CMP;
   2553     if (CMP_NE(_flag_a, _flag_b)) goto L_36044318; /* 0x360442DE: jne 0x36044318 */
   2554 L_360442E0:
   2555     SET_LO8(ecx, MEM8(edi + 0x1B4)); /* 0x360442E0: mov cl, byte ptr [edi + 0x1b4] */
   2556     /* test LO8(ecx), LO8(ecx) */ /* 0x360442E6: test cl, cl */
   2557     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   2558     _cf = 0;
   2559     _flag_k = FK_NARROW(FK_TEST, 24);
   2560     eax = 0xC3u; /* 0x360442E8: mov eax, 0xc3 */
   2561     if (TEST_Z(_flag_a, _flag_b)) goto L_360442F4; /* 0x360442ED: je 0x360442f4 */
   2562 L_360442EF:
   2563     eax = 0x85u; /* 0x360442EF: mov eax, 0x85 */
   2564 L_360442F4:
   2565     ecx = MEM32(edi + 0x174); /* 0x360442F4: mov ecx, dword ptr [edi + 0x174] */
   2566     edx = MEM32(ecx); /* 0x360442FA: mov edx, dword ptr [ecx] */
   2567     PUSH32(esp, 0xFFFFFFFFu); /* 0x360442FC: push -1 */
   2568     esi = ebp + (-0x4); /* 0x360442FE: lea esi, [ebp - 4] */
   2569     PUSH32(esp, esi); /* 0x36044301: push esi */
   2570     PUSH32(esp, 0); /* 0x36044302: push 0 */
   2571     PUSH32(esp, 1); /* 0x36044304: push 1 */
   2572     PUSH32(esp, 2); /* 0x36044306: push 2 */
   2573     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044308: push -1 */
   2574     PUSH32(esp, 0); /* 0x3604430A: push 0 */
   2575     PUSH32(esp, 0); /* 0x3604430C: push 0 */
   2576     PUSH32(esp, 0x3F800000u); /* 0x3604430E: push 0x3f800000 */
   2577     goto L_36044444; /* 0x36044313: jmp 0x36044444 */
   2578 L_36044318:
   2579     ecx = ebx; /* 0x36044318: mov ecx, ebx */
   2580     RECOMP_ICALL(0x3609BF50u); /* 0x3604431A: call 0x3609bf50 */ /* not lifted */
   2581     RECOMP_FLAGS_IN();
   2582     /* cmp eax, 3 */ /* 0x3604431F: cmp eax, 3 */
   2583     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2585     _flag_k = FK_CMP;
   2586     if (CMP_EQ(_flag_a, _flag_b)) goto L_36044361; /* 0x36044322: je 0x36044361 */
   2587 L_36044324:
   2588     esi = MEM32(edi + 0x174); /* 0x36044324: mov esi, dword ptr [edi + 0x174] */
   2589     ebx = MEM32(esi); /* 0x3604432A: mov ebx, dword ptr [esi] */
   2590     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604432C: push -1 */
   2591     eax = ebp + (-0x4); /* 0x3604432E: lea eax, [ebp - 4] */
   2592     PUSH32(esp, eax); /* 0x36044331: push eax */
   2593     PUSH32(esp, 0); /* 0x36044332: push 0 */
   2594     PUSH32(esp, 1); /* 0x36044334: push 1 */
   2595     PUSH32(esp, 2); /* 0x36044336: push 2 */
   2596     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044338: push -1 */
   2597     PUSH32(esp, 0); /* 0x3604433A: push 0 */
   2598     PUSH32(esp, 0); /* 0x3604433C: push 0 */
   2599     PUSH32(esp, 0x3F800000u); /* 0x3604433E: push 0x3f800000 */
   2600     ecx = esi; /* 0x36044343: mov ecx, esi */
   2601     RECOMP_ICALL(0x3609BF50u); /* 0x36044345: call 0x3609bf50 */ /* not lifted */
   2602     RECOMP_FLAGS_IN();
   2603     PUSH32(esp, eax); /* 0x3604434A: push eax */
   2604     ecx = esi; /* 0x3604434B: mov ecx, esi */
   2605     RECOMP_ICALL(MEM32(ebx + 0x14)); /* 0x3604434D: call dword ptr [ebx + 0x14] */
   2606     RECOMP_FLAGS_IN();
   2607     ecx = MEM32(edi + 0x174); /* 0x36044350: mov ecx, dword ptr [edi + 0x174] */
   2608     esi = eax; /* 0x36044356: mov esi, eax */
   2609     MEM8(ecx + 0x5C) = (uint8_t)(1); /* 0x36044358: mov byte ptr [ecx + 0x5c], 1 */
   2610     goto L_3604444A; /* 0x3604435C: jmp 0x3604444a */
   2611 L_36044361:
   2612     ecx = ebx; /* 0x36044361: mov ecx, ebx */
   2613     RECOMP_ICALL(0x3606C640u); /* 0x36044363: call 0x3606c640 */ /* not lifted */
   2614     RECOMP_FLAGS_IN();
   2615     ecx = MEM32(edi + 0x174); /* 0x36044368: mov ecx, dword ptr [edi + 0x174] */
   2616     edx = MEM32(ecx); /* 0x3604436E: mov edx, dword ptr [ecx] */
   2617     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044370: push -1 */
   2618     /* cmp eax, 3 */ /* 0x36044372: cmp eax, 3 */
   2619     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2621     _flag_k = FK_CMP;
   2622     eax = ebp + (-0x4); /* 0x36044375: lea eax, [ebp - 4] */
   2623     PUSH32(esp, eax); /* 0x36044378: push eax */
   2624     PUSH32(esp, 0); /* 0x36044379: push 0 */
   2625     PUSH32(esp, 1); /* 0x3604437B: push 1 */
   2626     PUSH32(esp, 2); /* 0x3604437D: push 2 */
   2627     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604437F: push -1 */
   2628     PUSH32(esp, 0); /* 0x36044381: push 0 */
   2629     PUSH32(esp, 0); /* 0x36044383: push 0 */
   2630     PUSH32(esp, 0x3F800000u); /* 0x36044385: push 0x3f800000 */
   2631     if (CMP_NE(_flag_a, _flag_b)) goto L_36044396; /* 0x3604438A: jne 0x36044396 */
   2632 L_3604438C:
   2633     PUSH32(esp, 0x86u); /* 0x3604438C: push 0x86 */
   2634     goto L_36044445; /* 0x36044391: jmp 0x36044445 */
   2635 L_36044396:
   2636     PUSH32(esp, 0x87u); /* 0x36044396: push 0x87 */
   2637     goto L_36044445; /* 0x3604439B: jmp 0x36044445 */
   2638 L_360443A0:
   2639     RECOMP_ICALL(0x3609C020u); /* 0x360443A0: call 0x3609c020 */ /* not lifted */
   2640     RECOMP_FLAGS_IN();
   2641     /* cmp eax, 3 */ /* 0x360443A5: cmp eax, 3 */
   2642     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   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_3604444A; /* 0x360443A8: jne 0x3604444a */
   2646 L_360443AE:
   2647     ecx = ebx; /* 0x360443AE: mov ecx, ebx */
   2648     RECOMP_ICALL(0x360D9CB0u); /* 0x360443B0: call 0x360d9cb0 */ /* not lifted */
   2649     RECOMP_FLAGS_IN();
   2650     /* cmp eax, 2 */ /* 0x360443B5: cmp eax, 2 */
   2651     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   2652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2653     _flag_k = FK_CMP;
   2654     if (CMP_NE(_flag_a, _flag_b)) goto L_36044422; /* 0x360443B8: jne 0x36044422 */
   2655 L_360443BA:
   2656     ecx = ebx; /* 0x360443BA: mov ecx, ebx */
   2657     RECOMP_ICALL(0x36008320u); /* 0x360443BC: call 0x36008320 */ /* not lifted */
   2658     RECOMP_FLAGS_IN();
   2659     /* cmp eax, 2 */ /* 0x360443C1: cmp eax, 2 */
   2660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   2661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2662     _flag_k = FK_CMP;
   2663     if (CMP_NE(_flag_a, _flag_b)) goto L_360443EC; /* 0x360443C4: jne 0x360443ec */
   2664 L_360443C6:
   2665     ecx = MEM32(edi + 0x174); /* 0x360443C6: mov ecx, dword ptr [edi + 0x174] */
   2666     edx = MEM32(ecx); /* 0x360443CC: mov edx, dword ptr [ecx] */
   2667     PUSH32(esp, 0xFFFFFFFFu); /* 0x360443CE: push -1 */
   2668     eax = ebp + (-0x4); /* 0x360443D0: lea eax, [ebp - 4] */
   2669     PUSH32(esp, eax); /* 0x360443D3: push eax */
   2670     PUSH32(esp, 0); /* 0x360443D4: push 0 */
   2671     PUSH32(esp, 1); /* 0x360443D6: push 1 */
   2672     PUSH32(esp, 2); /* 0x360443D8: push 2 */
   2673     PUSH32(esp, 0xFFFFFFFFu); /* 0x360443DA: push -1 */
   2674     PUSH32(esp, 0); /* 0x360443DC: push 0 */
   2675     PUSH32(esp, 0); /* 0x360443DE: push 0 */
   2676     PUSH32(esp, 0x3F800000u); /* 0x360443E0: push 0x3f800000 */
   2677     PUSH32(esp, 0x88u); /* 0x360443E5: push 0x88 */
   2678     goto L_36044445; /* 0x360443EA: jmp 0x36044445 */
   2679 L_360443EC:
   2680     ecx = ebx; /* 0x360443EC: mov ecx, ebx */
   2681     RECOMP_ICALL(0x36008320u); /* 0x360443EE: call 0x36008320 */ /* not lifted */
   2682     RECOMP_FLAGS_IN();
   2683     ecx = MEM32(edi + 0x174); /* 0x360443F3: mov ecx, dword ptr [edi + 0x174] */
   2684     edx = MEM32(ecx); /* 0x360443F9: mov edx, dword ptr [ecx] */
   2685     PUSH32(esp, 0xFFFFFFFFu); /* 0x360443FB: push -1 */
   2686     /* cmp eax, 3 */ /* 0x360443FD: cmp eax, 3 */
   2687     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2688     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2689     _flag_k = FK_CMP;
   2690     eax = ebp + (-0x4); /* 0x36044400: lea eax, [ebp - 4] */
   2691     PUSH32(esp, eax); /* 0x36044403: push eax */
   2692     PUSH32(esp, 0); /* 0x36044404: push 0 */
   2693     PUSH32(esp, 1); /* 0x36044406: push 1 */
   2694     PUSH32(esp, 2); /* 0x36044408: push 2 */
   2695     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604440A: push -1 */
   2696     PUSH32(esp, 0); /* 0x3604440C: push 0 */
   2697     if (CMP_NE(_flag_a, _flag_b)) goto L_3604441E; /* 0x3604440E: jne 0x3604441e */
   2698 L_36044410:
   2699     PUSH32(esp, 0); /* 0x36044410: push 0 */
   2700     PUSH32(esp, 0x3F800000u); /* 0x36044412: push 0x3f800000 */
   2701     PUSH32(esp, 0xDEu); /* 0x36044417: push 0xde */
   2702     goto L_36044445; /* 0x3604441C: jmp 0x36044445 */
   2703 L_3604441E:
   2704     PUSH32(esp, 1); /* 0x3604441E: push 1 */
   2705     goto L_3604443C; /* 0x36044420: jmp 0x3604443c */
   2706 L_36044422:
   2707     ecx = MEM32(edi + 0x174); /* 0x36044422: mov ecx, dword ptr [edi + 0x174] */
   2708     edx = MEM32(ecx); /* 0x36044428: mov edx, dword ptr [ecx] */
   2709     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604442A: push -1 */
   2710     eax = ebp + (-0x4); /* 0x3604442C: lea eax, [ebp - 4] */
   2711     PUSH32(esp, eax); /* 0x3604442F: push eax */
   2712     PUSH32(esp, 0); /* 0x36044430: push 0 */
   2713     PUSH32(esp, 1); /* 0x36044432: push 1 */
   2714     PUSH32(esp, 2); /* 0x36044434: push 2 */
   2715     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044436: push -1 */
   2716     PUSH32(esp, 0); /* 0x36044438: push 0 */
   2717     PUSH32(esp, 0); /* 0x3604443A: push 0 */
   2718 L_3604443C:
   2719     eax = MEM32(ebp + 0x10); /* 0x3604443C: mov eax, dword ptr [ebp + 0x10] */
   2720     PUSH32(esp, 0x3F800000u); /* 0x3604443F: push 0x3f800000 */
   2721 L_36044444:
   2722     PUSH32(esp, eax); /* 0x36044444: push eax */
   2723 L_36044445:
   2724     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36044445: call dword ptr [edx + 0x14] */
   2725     RECOMP_FLAGS_IN();
   2726 L_36044448:
   2727     esi = eax; /* 0x36044448: mov esi, eax */
   2728 L_3604444A:
   2729     ecx = MEM32(ebp + (-0x4)); /* 0x3604444A: mov ecx, dword ptr [ebp - 4] */
   2730     PUSH32(esp, esi); /* 0x3604444D: push esi */
   2731     PUSH32(esp, ecx); /* 0x3604444E: push ecx */
   2732     ecx = edi; /* 0x3604444F: mov ecx, edi */
   2733     RECOMP_ICALL(0x3606D5A0u); /* 0x36044451: call 0x3606d5a0 */ /* not lifted */
   2734     RECOMP_FLAGS_IN();
   2735     ecx = eax; /* 0x36044456: mov ecx, eax */
   2736     RECOMP_ICALL(0x360492F0u); /* 0x36044458: call 0x360492f0 */ /* not lifted */
   2737     RECOMP_FLAGS_IN();
   2738     edi = POP32_VAL(esp); /* 0x3604445D: pop edi */
   2739     esi = POP32_VAL(esp); /* 0x3604445E: pop esi */
   2740     ebx = POP32_VAL(esp); /* 0x3604445F: pop ebx */
   2741     esp = ebp; /* 0x36044460: mov esp, ebp */
   2742     ebp = POP32_VAL(esp); /* 0x36044462: pop ebp */
   2743     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044463: ret  */
   2744     RECOMP_REGS_OUT();
   2745 }
   2746 
   2747 void sub_36044444(void) {
   2748     int _fpu_cmp = 0;
   2749     uint32_t _cf = 0;
   2750     int _df = 1;
   2751     uint32_t _flag_k = FK_NONE;
   2752     uint32_t _flag_a = 0, _flag_b = 0;
   2753     uint32_t _itail_tgt = 0;
   2754     RECOMP_REGS_LOCALS
   2755     RECOMP_ENTER(0x36044444u);
   2756 
   2757 L_36044444:
   2758     PUSH32(esp, eax); /* 0x36044444: push eax */
   2759     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36044445: call dword ptr [edx + 0x14] */
   2760     RECOMP_FLAGS_IN();
   2761     esi = eax; /* 0x36044448: mov esi, eax */
   2762     ecx = MEM32(ebp + (-0x4)); /* 0x3604444A: mov ecx, dword ptr [ebp - 4] */
   2763     PUSH32(esp, esi); /* 0x3604444D: push esi */
   2764     PUSH32(esp, ecx); /* 0x3604444E: push ecx */
   2765     ecx = edi; /* 0x3604444F: mov ecx, edi */
   2766     RECOMP_ICALL(0x3606D5A0u); /* 0x36044451: call 0x3606d5a0 */ /* not lifted */
   2767     RECOMP_FLAGS_IN();
   2768     ecx = eax; /* 0x36044456: mov ecx, eax */
   2769     RECOMP_ICALL(0x360492F0u); /* 0x36044458: call 0x360492f0 */ /* not lifted */
   2770     RECOMP_FLAGS_IN();
   2771     edi = POP32_VAL(esp); /* 0x3604445D: pop edi */
   2772     esi = POP32_VAL(esp); /* 0x3604445E: pop esi */
   2773     ebx = POP32_VAL(esp); /* 0x3604445F: pop ebx */
   2774     esp = ebp; /* 0x36044460: mov esp, ebp */
   2775     ebp = POP32_VAL(esp); /* 0x36044462: pop ebp */
   2776     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044463: ret  */
   2777     RECOMP_REGS_OUT();
   2778 }
   2779 
   2780 void sub_36044445(void) {
   2781     int _fpu_cmp = 0;
   2782     uint32_t _cf = 0;
   2783     int _df = 1;
   2784     uint32_t _flag_k = FK_NONE;
   2785     uint32_t _flag_a = 0, _flag_b = 0;
   2786     uint32_t _itail_tgt = 0;
   2787     RECOMP_REGS_LOCALS
   2788     RECOMP_ENTER(0x36044445u);
   2789 
   2790 L_36044445:
   2791     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36044445: call dword ptr [edx + 0x14] */
   2792     RECOMP_FLAGS_IN();
   2793     esi = eax; /* 0x36044448: mov esi, eax */
   2794     ecx = MEM32(ebp + (-0x4)); /* 0x3604444A: mov ecx, dword ptr [ebp - 4] */
   2795     PUSH32(esp, esi); /* 0x3604444D: push esi */
   2796     PUSH32(esp, ecx); /* 0x3604444E: push ecx */
   2797     ecx = edi; /* 0x3604444F: mov ecx, edi */
   2798     RECOMP_ICALL(0x3606D5A0u); /* 0x36044451: call 0x3606d5a0 */ /* not lifted */
   2799     RECOMP_FLAGS_IN();
   2800     ecx = eax; /* 0x36044456: mov ecx, eax */
   2801     RECOMP_ICALL(0x360492F0u); /* 0x36044458: call 0x360492f0 */ /* not lifted */
   2802     RECOMP_FLAGS_IN();
   2803     edi = POP32_VAL(esp); /* 0x3604445D: pop edi */
   2804     esi = POP32_VAL(esp); /* 0x3604445E: pop esi */
   2805     ebx = POP32_VAL(esp); /* 0x3604445F: pop ebx */
   2806     esp = ebp; /* 0x36044460: mov esp, ebp */
   2807     ebp = POP32_VAL(esp); /* 0x36044462: pop ebp */
   2808     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044463: ret  */
   2809     RECOMP_REGS_OUT();
   2810 }
   2811 
   2812 void sub_36044448(void) {
   2813     int _fpu_cmp = 0;
   2814     uint32_t _cf = 0;
   2815     int _df = 1;
   2816     uint32_t _flag_k = FK_NONE;
   2817     uint32_t _flag_a = 0, _flag_b = 0;
   2818     uint32_t _itail_tgt = 0;
   2819     RECOMP_REGS_LOCALS
   2820     RECOMP_ENTER(0x36044448u);
   2821 
   2822 L_36044448:
   2823     esi = eax; /* 0x36044448: mov esi, eax */
   2824     ecx = MEM32(ebp + (-0x4)); /* 0x3604444A: mov ecx, dword ptr [ebp - 4] */
   2825     PUSH32(esp, esi); /* 0x3604444D: push esi */
   2826     PUSH32(esp, ecx); /* 0x3604444E: push ecx */
   2827     ecx = edi; /* 0x3604444F: mov ecx, edi */
   2828     RECOMP_ICALL(0x3606D5A0u); /* 0x36044451: call 0x3606d5a0 */ /* not lifted */
   2829     RECOMP_FLAGS_IN();
   2830     ecx = eax; /* 0x36044456: mov ecx, eax */
   2831     RECOMP_ICALL(0x360492F0u); /* 0x36044458: call 0x360492f0 */ /* not lifted */
   2832     RECOMP_FLAGS_IN();
   2833     edi = POP32_VAL(esp); /* 0x3604445D: pop edi */
   2834     esi = POP32_VAL(esp); /* 0x3604445E: pop esi */
   2835     ebx = POP32_VAL(esp); /* 0x3604445F: pop ebx */
   2836     esp = ebp; /* 0x36044460: mov esp, ebp */
   2837     ebp = POP32_VAL(esp); /* 0x36044462: pop ebp */
   2838     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044463: ret  */
   2839     RECOMP_REGS_OUT();
   2840 }
   2841 
   2842 void sub_3604444A(void) {
   2843     int _fpu_cmp = 0;
   2844     uint32_t _cf = 0;
   2845     int _df = 1;
   2846     uint32_t _flag_k = FK_NONE;
   2847     uint32_t _flag_a = 0, _flag_b = 0;
   2848     uint32_t _itail_tgt = 0;
   2849     RECOMP_REGS_LOCALS
   2850     RECOMP_ENTER(0x3604444Au);
   2851 
   2852 L_3604444A:
   2853     ecx = MEM32(ebp + (-0x4)); /* 0x3604444A: mov ecx, dword ptr [ebp - 4] */
   2854     PUSH32(esp, esi); /* 0x3604444D: push esi */
   2855     PUSH32(esp, ecx); /* 0x3604444E: push ecx */
   2856     ecx = edi; /* 0x3604444F: mov ecx, edi */
   2857     RECOMP_ICALL(0x3606D5A0u); /* 0x36044451: call 0x3606d5a0 */ /* not lifted */
   2858     RECOMP_FLAGS_IN();
   2859     ecx = eax; /* 0x36044456: mov ecx, eax */
   2860     RECOMP_ICALL(0x360492F0u); /* 0x36044458: call 0x360492f0 */ /* not lifted */
   2861     RECOMP_FLAGS_IN();
   2862     edi = POP32_VAL(esp); /* 0x3604445D: pop edi */
   2863     esi = POP32_VAL(esp); /* 0x3604445E: pop esi */
   2864     ebx = POP32_VAL(esp); /* 0x3604445F: pop ebx */
   2865     esp = ebp; /* 0x36044460: mov esp, ebp */
   2866     ebp = POP32_VAL(esp); /* 0x36044462: pop ebp */
   2867     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044463: ret  */
   2868     RECOMP_REGS_OUT();
   2869 }
   2870 
   2871 void sub_36044470(void) {
   2872     int _fpu_cmp = 0;
   2873     uint32_t _cf = 0;
   2874     int _df = 1;
   2875     uint32_t _flag_k = FK_NONE;
   2876     uint32_t _flag_a = 0, _flag_b = 0;
   2877     uint32_t _itail_tgt = 0;
   2878     RECOMP_REGS_LOCALS
   2879     RECOMP_ENTER(0x36044470u);
   2880 
   2881 L_36044470:
   2882     PUSH32(esp, ebp); /* 0x36044470: push ebp */
   2883     ebp = esp; /* 0x36044471: mov ebp, esp */
   2884     PUSH32(esp, esi); /* 0x36044473: push esi */
   2885     esi = MEM32(ebp + 0x8); /* 0x36044474: mov esi, dword ptr [ebp + 8] */
   2886     PUSH32(esp, edi); /* 0x36044477: push edi */
   2887     ecx = esi; /* 0x36044478: mov ecx, esi */
   2888     RECOMP_ICALL(0x3606D5A0u); /* 0x3604447A: call 0x3606d5a0 */ /* not lifted */
   2889     RECOMP_FLAGS_IN();
   2890     ecx = eax; /* 0x3604447F: mov ecx, eax */
   2891     RECOMP_ICALL(0x36047900u); /* 0x36044481: call 0x36047900 */ /* not lifted */
   2892     RECOMP_FLAGS_IN();
   2893     edi = eax; /* 0x36044486: mov edi, eax */
   2894     ecx = edi; /* 0x36044488: mov ecx, edi */
   2895     RECOMP_ICALL(0x36008320u); /* 0x3604448A: call 0x36008320 */ /* not lifted */
   2896     RECOMP_FLAGS_IN();
   2897     /* cmp eax, 2 */ /* 0x3604448F: cmp eax, 2 */
   2898     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   2899     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2900     _flag_k = FK_CMP;
   2901     if (CMP_NE(_flag_a, _flag_b)) goto L_360444AE; /* 0x36044492: jne 0x360444ae */
   2902 L_36044494:
   2903     ecx = MEM32(esi + 0x174); /* 0x36044494: mov ecx, dword ptr [esi + 0x174] */
   2904     RECOMP_ICALL(0x360D9CB0u); /* 0x3604449A: call 0x360d9cb0 */ /* not lifted */
   2905     RECOMP_FLAGS_IN();
   2906     PUSH32(esp, eax); /* 0x3604449F: push eax */
   2907     PUSH32(esp, edi); /* 0x360444A0: push edi */
   2908     PUSH32(esp, esi); /* 0x360444A1: push esi */
   2909     RECOMP_ICALL(0x36044240u); /* 0x360444A2: call 0x36044240 */ /* not lifted */
   2910     RECOMP_FLAGS_IN();
   2911     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2912     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2913     esp = esp + 0xCu; /* 0x360444A7: add esp, 0xc */
   2914     _flag_k = FK_ADD;
   2915     edi = POP32_VAL(esp); /* 0x360444AA: pop edi */
   2916     esi = POP32_VAL(esp); /* 0x360444AB: pop esi */
   2917     ebp = POP32_VAL(esp); /* 0x360444AC: pop ebp */
   2918     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360444AD: ret  */
   2919 L_360444AE:
   2920     ecx = edi; /* 0x360444AE: mov ecx, edi */
   2921     RECOMP_ICALL(0x36008320u); /* 0x360444B0: call 0x36008320 */ /* not lifted */
   2922     RECOMP_FLAGS_IN();
   2923     /* cmp eax, 3 */ /* 0x360444B5: cmp eax, 3 */
   2924     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2926     _flag_k = FK_CMP;
   2927     if (CMP_NE(_flag_a, _flag_b)) goto L_360444D4; /* 0x360444B8: jne 0x360444d4 */
   2928 L_360444BA:
   2929     ecx = MEM32(esi + 0x174); /* 0x360444BA: mov ecx, dword ptr [esi + 0x174] */
   2930     RECOMP_ICALL(0x36008320u); /* 0x360444C0: call 0x36008320 */ /* not lifted */
   2931     RECOMP_FLAGS_IN();
   2932     PUSH32(esp, eax); /* 0x360444C5: push eax */
   2933     PUSH32(esp, edi); /* 0x360444C6: push edi */
   2934     PUSH32(esp, esi); /* 0x360444C7: push esi */
   2935     RECOMP_ICALL(0x36044240u); /* 0x360444C8: call 0x36044240 */ /* not lifted */
   2936     RECOMP_FLAGS_IN();
   2937     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2939     esp = esp + 0xCu; /* 0x360444CD: add esp, 0xc */
   2940     _flag_k = FK_ADD;
   2941     edi = POP32_VAL(esp); /* 0x360444D0: pop edi */
   2942     esi = POP32_VAL(esp); /* 0x360444D1: pop esi */
   2943     ebp = POP32_VAL(esp); /* 0x360444D2: pop ebp */
   2944     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360444D3: ret  */
   2945 L_360444D4:
   2946     ecx = edi; /* 0x360444D4: mov ecx, edi */
   2947     RECOMP_ICALL(0x36008320u); /* 0x360444D6: call 0x36008320 */ /* not lifted */
   2948     RECOMP_FLAGS_IN();
   2949     /* cmp eax, 4 */ /* 0x360444DB: cmp eax, 4 */
   2950     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2951     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2952     _flag_k = FK_CMP;
   2953     if (CMP_NE(_flag_a, _flag_b)) goto L_360444F3; /* 0x360444DE: jne 0x360444f3 */
   2954 L_360444E0:
   2955     PUSH32(esp, 0x85u); /* 0x360444E0: push 0x85 */
   2956     PUSH32(esp, edi); /* 0x360444E5: push edi */
   2957     PUSH32(esp, esi); /* 0x360444E6: push esi */
   2958     RECOMP_ICALL(0x36044240u); /* 0x360444E7: call 0x36044240 */ /* not lifted */
   2959     RECOMP_FLAGS_IN();
   2960     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2961     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2962     esp = esp + 0xCu; /* 0x360444EC: add esp, 0xc */
   2963     _flag_k = FK_ADD;
   2964     edi = POP32_VAL(esp); /* 0x360444EF: pop edi */
   2965     esi = POP32_VAL(esp); /* 0x360444F0: pop esi */
   2966     ebp = POP32_VAL(esp); /* 0x360444F1: pop ebp */
   2967     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360444F2: ret  */
   2968 L_360444F3:
   2969     ecx = edi; /* 0x360444F3: mov ecx, edi */
   2970     RECOMP_ICALL(0x36008320u); /* 0x360444F5: call 0x36008320 */ /* not lifted */
   2971     RECOMP_FLAGS_IN();
   2972     /* cmp eax, 7 */ /* 0x360444FA: cmp eax, 7 */
   2973     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   2974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2975     _flag_k = FK_CMP;
   2976     if (CMP_NE(_flag_a, _flag_b)) goto L_3604452D; /* 0x360444FD: jne 0x3604452d */
   2977 L_360444FF:
   2978     esi = MEM32(esi + 0x174); /* 0x360444FF: mov esi, dword ptr [esi + 0x174] */
   2979     edi = MEM32(esi); /* 0x36044505: mov edi, dword ptr [esi] */
   2980     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044507: push -1 */
   2981     PUSH32(esp, 0); /* 0x36044509: push 0 */
   2982     PUSH32(esp, 0); /* 0x3604450B: push 0 */
   2983     PUSH32(esp, 1); /* 0x3604450D: push 1 */
   2984     PUSH32(esp, 2); /* 0x3604450F: push 2 */
   2985     PUSH32(esp, 0xFFFFFFFFu); /* 0x36044511: push -1 */
   2986     PUSH32(esp, 0); /* 0x36044513: push 0 */
   2987     PUSH32(esp, 0); /* 0x36044515: push 0 */
   2988     PUSH32(esp, 0x3F800000u); /* 0x36044517: push 0x3f800000 */
   2989     ecx = esi; /* 0x3604451C: mov ecx, esi */
   2990     RECOMP_ICALL(0x3609C020u); /* 0x3604451E: call 0x3609c020 */ /* not lifted */
   2991     RECOMP_FLAGS_IN();
   2992     PUSH32(esp, eax); /* 0x36044523: push eax */
   2993     ecx = esi; /* 0x36044524: mov ecx, esi */
   2994     RECOMP_ICALL(MEM32(edi + 0x14)); /* 0x36044526: call dword ptr [edi + 0x14] */
   2995     RECOMP_FLAGS_IN();
   2996     edi = POP32_VAL(esp); /* 0x36044529: pop edi */
   2997     esi = POP32_VAL(esp); /* 0x3604452A: pop esi */
   2998     ebp = POP32_VAL(esp); /* 0x3604452B: pop ebp */
   2999     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604452C: ret  */
   3000 L_3604452D:
   3001     ecx = edi; /* 0x3604452D: mov ecx, edi */
   3002     RECOMP_ICALL(0x36008320u); /* 0x3604452F: call 0x36008320 */ /* not lifted */
   3003     RECOMP_FLAGS_IN();
   3004     /* cmp eax, 6 */ /* 0x36044534: cmp eax, 6 */
   3005     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   3006     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3007     _flag_k = FK_CMP;
   3008     if (CMP_NE(_flag_a, _flag_b)) goto L_36044553; /* 0x36044537: jne 0x36044553 */
   3009 L_36044539:
   3010     ecx = MEM32(esi + 0x174); /* 0x36044539: mov ecx, dword ptr [esi + 0x174] */
   3011     RECOMP_ICALL(0x3606C640u); /* 0x3604453F: call 0x3606c640 */ /* not lifted */
   3012     RECOMP_FLAGS_IN();
   3013     PUSH32(esp, eax); /* 0x36044544: push eax */
   3014     PUSH32(esp, edi); /* 0x36044545: push edi */
   3015     PUSH32(esp, esi); /* 0x36044546: push esi */
   3016     RECOMP_ICALL(0x36044240u); /* 0x36044547: call 0x36044240 */ /* not lifted */
   3017     RECOMP_FLAGS_IN();
   3018     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3020     esp = esp + 0xCu; /* 0x3604454C: add esp, 0xc */
   3021     _flag_k = FK_ADD;
   3022     edi = POP32_VAL(esp); /* 0x3604454F: pop edi */
   3023     esi = POP32_VAL(esp); /* 0x36044550: pop esi */
   3024     ebp = POP32_VAL(esp); /* 0x36044551: pop ebp */
   3025     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044552: ret  */
   3026 L_36044553:
   3027     ecx = edi; /* 0x36044553: mov ecx, edi */
   3028     RECOMP_ICALL(0x36008320u); /* 0x36044555: call 0x36008320 */ /* not lifted */
   3029     RECOMP_FLAGS_IN();
   3030     /* cmp eax, 1 */ /* 0x3604455A: cmp eax, 1 */
   3031     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3032     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3033     _flag_k = FK_CMP;
   3034     if (CMP_NE(_flag_a, _flag_b)) goto L_36044579; /* 0x3604455D: jne 0x36044579 */
   3035 L_3604455F:
   3036     ecx = MEM32(esi + 0x174); /* 0x3604455F: mov ecx, dword ptr [esi + 0x174] */
   3037     RECOMP_ICALL(0x3609BF50u); /* 0x36044565: call 0x3609bf50 */ /* not lifted */
   3038     RECOMP_FLAGS_IN();
   3039     PUSH32(esp, eax); /* 0x3604456A: push eax */
   3040     PUSH32(esp, edi); /* 0x3604456B: push edi */
   3041     PUSH32(esp, esi); /* 0x3604456C: push esi */
   3042     RECOMP_ICALL(0x36044240u); /* 0x3604456D: call 0x36044240 */ /* not lifted */
   3043     RECOMP_FLAGS_IN();
   3044     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3045     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3046     esp = esp + 0xCu; /* 0x36044572: add esp, 0xc */
   3047     _flag_k = FK_ADD;
   3048     edi = POP32_VAL(esp); /* 0x36044575: pop edi */
   3049     esi = POP32_VAL(esp); /* 0x36044576: pop esi */
   3050     ebp = POP32_VAL(esp); /* 0x36044577: pop ebp */
   3051     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36044578: ret  */
   3052 L_36044579:
   3053     ecx = edi; /* 0x36044579: mov ecx, edi */
   3054     RECOMP_ICALL(0x36008320u); /* 0x3604457B: call 0x36008320 */ /* not lifted */
   3055     RECOMP_FLAGS_IN();
   3056     /* cmp eax, 8 */ /* 0x36044580: cmp eax, 8 */
   3057     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   3058     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3059     _flag_k = FK_CMP;
   3060     if (CMP_NE(_flag_a, _flag_b)) goto L_360445C9; /* 0x36044583: jne 0x360445c9 */
   3061 L_36044585:
   3062     edi = MEM32(esi + 0x174); /* 0x36044585: mov edi, dword ptr [esi + 0x174] */
   3063     eax = ebp + 0xB; /* 0x3604458B: lea eax, [ebp + 0xb] */
   3064     PUSH32(esp, eax); /* 0x3604458E: push eax */
   3065     PUSH32(esp, 0xD7u); /* 0x3604458F: push 0xd7 */
   3066     ecx = edi; /* 0x36044594: mov ecx, edi */
   3067     RECOMP_ICALL(0x36050850u); /* 0x36044596: call 0x36050850 */ /* not lifted */
   3068     RECOMP_FLAGS_IN();
   3069     PUSH32(esp, eax); /* 0x3604459B: push eax */
   3070     ecx = edi + 0x54; /* 0x3604459C: lea ecx, [edi + 0x54] */
   3071     RECOMP_ICALL(0x3604E440u); /* 0x3604459F: call 0x3604e440 */ /* not lifted */
   3072     RECOMP_FLAGS_IN();
   3073     ecx = MEM32(esi + 0x174); /* 0x360445A4: mov ecx, dword ptr [esi + 0x174] */
   3074     edx = MEM32(ecx); /* 0x360445AA: mov edx, dword ptr [ecx] */
   3075     PUSH32(esp, 0xFFFFFFFFu); /* 0x360445AC: push -1 */
   3076     PUSH32(esp, 0); /* 0x360445AE: push 0 */
   3077     PUSH32(esp, 0); /* 0x360445B0: push 0 */
   3078     PUSH32(esp, 1); /* 0x360445B2: push 1 */
   3079     PUSH32(esp, 1); /* 0x360445B4: push 1 */
   3080     PUSH32(esp, 1); /* 0x360445B6: push 1 */
   3081     PUSH32(esp, 0); /* 0x360445B8: push 0 */
   3082     PUSH32(esp, 0); /* 0x360445BA: push 0 */
   3083     PUSH32(esp, 0x3F800000u); /* 0x360445BC: push 0x3f800000 */
   3084     PUSH32(esp, 0xD5u); /* 0x360445C1: push 0xd5 */
   3085     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x360445C6: call dword ptr [edx + 0x14] */
   3086     RECOMP_FLAGS_IN();
   3087 L_360445C9:
   3088     edi = POP32_VAL(esp); /* 0x360445C9: pop edi */
   3089     esi = POP32_VAL(esp); /* 0x360445CA: pop esi */
   3090     ebp = POP32_VAL(esp); /* 0x360445CB: pop ebp */
   3091     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360445CC: ret  */
   3092     RECOMP_REGS_OUT();
   3093 }
   3094 
   3095 void sub_360445D0(void) {
   3096     int _fpu_cmp = 0;
   3097     uint32_t _cf = 0;
   3098     int _df = 1;
   3099     uint32_t _flag_k = FK_NONE;
   3100     uint32_t _flag_a = 0, _flag_b = 0;
   3101     uint32_t _itail_tgt = 0;
   3102     RECOMP_REGS_LOCALS
   3103     RECOMP_ENTER(0x360445D0u);
   3104 
   3105 L_360445D0:
   3106     PUSH32(esp, ebp); /* 0x360445D0: push ebp */
   3107     ebp = esp; /* 0x360445D1: mov ebp, esp */
   3108     PUSH32(esp, esi); /* 0x360445D3: push esi */
   3109     esi = ecx; /* 0x360445D4: mov esi, ecx */
   3110     RECOMP_ICALL(0x360495E0u); /* 0x360445D6: call 0x360495e0 */ /* not lifted */
   3111     RECOMP_FLAGS_IN();
   3112     eax = MEM32(ebp + 0x8); /* 0x360445DB: mov eax, dword ptr [ebp + 8] */
   3113     MEM32(esi + 0x2C) = eax; /* 0x360445DE: mov dword ptr [esi + 0x2c], eax */
   3114     MEM32(esi + 0x30) = 2; /* 0x360445E1: mov dword ptr [esi + 0x30], 2 */
   3115     MEM32(esi) = 0x36170BDCu; /* 0x360445E8: mov dword ptr [esi], 0x36170bdc */
   3116     eax = esi; /* 0x360445EE: mov eax, esi */
   3117     esi = POP32_VAL(esp); /* 0x360445F0: pop esi */
   3118     ebp = POP32_VAL(esp); /* 0x360445F1: pop ebp */
   3119     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360445F2: ret 4 */
   3120     RECOMP_REGS_OUT();
   3121 }
   3122 
   3123 void sub_36044600(void) {
   3124     int _fpu_cmp = 0;
   3125     uint32_t _cf = 0;
   3126     int _df = 1;
   3127     uint32_t _flag_k = FK_NONE;
   3128     uint32_t _flag_a = 0, _flag_b = 0;
   3129     uint32_t _itail_tgt = 0;
   3130     RECOMP_REGS_LOCALS
   3131     RECOMP_ENTER(0x36044600u);
   3132 
   3133 L_36044600:
   3134     PUSH32(esp, ebp); /* 0x36044600: push ebp */
   3135     ebp = esp; /* 0x36044601: mov ebp, esp */
   3136     PUSH32(esp, esi); /* 0x36044603: push esi */
   3137     esi = ecx; /* 0x36044604: mov esi, ecx */
   3138     RECOMP_ICALL(0x36044630u); /* 0x36044606: call 0x36044630 */ /* not lifted */
   3139     RECOMP_FLAGS_IN();
   3140     /* test MEM8(ebp + 0x8), 1 */ /* 0x3604460B: test byte ptr [ebp + 8], 1 */
   3141     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3142     _cf = 0;
   3143     _flag_k = FK_NARROW(FK_TEST, 24);
   3144     if (TEST_Z(_flag_a, _flag_b)) goto L_3604461A; /* 0x3604460F: je 0x3604461a */
   3145 L_36044611:
   3146     PUSH32(esp, esi); /* 0x36044611: push esi */
   3147     RECOMP_ICALL(0x3615FCC4u); /* 0x36044612: call 0x3615fcc4 */ /* not lifted */
   3148     RECOMP_FLAGS_IN();
   3149     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3151     esp = esp + 4; /* 0x36044617: add esp, 4 */
   3152     _flag_k = FK_ADD;
   3153 L_3604461A:
   3154     eax = esi; /* 0x3604461A: mov eax, esi */
   3155     esi = POP32_VAL(esp); /* 0x3604461C: pop esi */
   3156     ebp = POP32_VAL(esp); /* 0x3604461D: pop ebp */
   3157     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604461E: ret 4 */
   3158     RECOMP_REGS_OUT();
   3159 }
   3160 
   3161 void sub_36044630(void) {
   3162     int _fpu_cmp = 0;
   3163     uint32_t _cf = 0;
   3164     int _df = 1;
   3165     uint32_t _flag_k = FK_NONE;
   3166     uint32_t _flag_a = 0, _flag_b = 0;
   3167     uint32_t _itail_tgt = 0;
   3168     RECOMP_REGS_LOCALS
   3169     RECOMP_ENTER(0x36044630u);
   3170 
   3171 L_36044630:
   3172     MEM32(ecx) = 0x36170BDCu; /* 0x36044630: mov dword ptr [ecx], 0x36170bdc */
   3173     goto L_36049620; /* 0x36044636: jmp 0x36049620 */
   3174 L_36049620:
   3175     MEM32(ecx) = 0x36170ECCu; /* 0x36049620: mov dword ptr [ecx], 0x36170ecc */
   3176     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36049626: ret  */
   3177     RECOMP_REGS_OUT();
   3178 }
   3179 
   3180 void sub_36044640(void) {
   3181     int _fpu_cmp = 0;
   3182     uint32_t _cf = 0;
   3183     int _df = 1;
   3184     uint32_t _flag_k = FK_NONE;
   3185     uint32_t _flag_a = 0, _flag_b = 0;
   3186     uint32_t _itail_tgt = 0;
   3187     RECOMP_REGS_LOCALS
   3188     RECOMP_ENTER(0x36044640u);
   3189 
   3190 L_36044640:
   3191     PUSH32(esp, ebp); /* 0x36044640: push ebp */
   3192 L_36044641:
   3193     ebp = esp; /* 0x36044641: mov ebp, esp */
   3194 L_36044643:
   3195     PUSH32(esp, esi); /* 0x36044643: push esi */
   3196 L_36044644:
   3197     esi = ecx; /* 0x36044644: mov esi, ecx */
   3198 L_36044646:
   3199     RECOMP_ICALL(0x36008320u); /* 0x36044646: call 0x36008320 */ /* not lifted */
   3200     RECOMP_FLAGS_IN();
   3201 L_3604464B:
   3202     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3203     eax = eax - 1; /* 0x3604464B: dec eax */
   3204     _flag_k = FK_DEC;
   3205 L_3604464C:
   3206     /* cmp eax, 7 */ /* 0x3604464C: cmp eax, 7 */
   3207     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   3208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3209     _flag_k = FK_CMP;
   3210 L_3604464F:
   3211     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3604470D; /* 0x3604464F: ja 0x3604470d */
   3212 L_36044655:
   3213     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36044714)); goto _ljump; }
   3214 L_3604465C:
   3215     eax = MEM32(ebp + 0x8); /* 0x3604465C: mov eax, dword ptr [ebp + 8] */
   3216 L_3604465F:
   3217     /* cmp eax, 0x16u */ /* 0x3604465F: cmp eax, 0x16 */
   3218     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x16u);
   3219     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3220     _flag_k = FK_CMP;
   3221 L_36044662:
   3222     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36044706; /* 0x36044662: je 0x36044706 */
   3223 L_36044668:
   3224     /* cmp eax, 0x1Cu */ /* 0x36044668: cmp eax, 0x1c */
   3225     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Cu);
   3226     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3227     _flag_k = FK_CMP;
   3228 L_3604466B:
   3229     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604468D; /* 0x3604466B: je 0x3604468d */
   3230 L_3604466D:
   3231     /* cmp eax, 0x21u */ /* 0x3604466D: cmp eax, 0x21 */
   3232     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x21u);
   3233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3234     _flag_k = FK_CMP;
   3235 L_36044670:
   3236     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x36044670: setne al */
   3237 L_36044673:
   3238     esi = POP32_VAL(esp); /* 0x36044673: pop esi */
   3239 L_36044674:
   3240     ebp = POP32_VAL(esp); /* 0x36044674: pop ebp */
   3241 L_36044675:
   3242     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36044675: ret 4 */
   3243 L_36044678:
   3244     eax = MEM32(ebp + 0x8); /* 0x36044678: mov eax, dword ptr [ebp + 8] */
   3245 L_3604467B:
   3246     /* cmp eax, 0x17u */ /* 0x3604467B: cmp eax, 0x17 */
   3247     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x17u);
   3248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3249     _flag_k = FK_CMP;
   3250 L_3604467E:
   3251     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36044706; /* 0x3604467E: je 0x36044706 */
   3252 L_36044684:
   3253     /* cmp eax, 0x1Cu */ /* 0x36044684: cmp eax, 0x1c */
   3254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Cu);
   3255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3256     _flag_k = FK_CMP;
   3257 L_36044687:
   3258     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3604470D; /* 0x36044687: jne 0x3604470d */
   3259 L_3604468D:
   3260     ecx = esi; /* 0x3604468D: mov ecx, esi */
   3261 L_3604468F:
   3262     RECOMP_ICALL(0x3609C020u); /* 0x3604468F: call 0x3609c020 */ /* not lifted */
   3263     RECOMP_FLAGS_IN();
   3264 L_36044694:
   3265     /* cmp eax, 3 */ /* 0x36044694: cmp eax, 3 */
   3266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   3267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3268     _flag_k = FK_CMP;
   3269 L_36044697:
   3270     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x36044697: setne al */
   3271 L_3604469A:
   3272     esi = POP32_VAL(esp); /* 0x3604469A: pop esi */
   3273 L_3604469B:
   3274     ebp = POP32_VAL(esp); /* 0x3604469B: pop ebp */
   3275 L_3604469C:
   3276     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604469C: ret 4 */
   3277 L_3604469F:
   3278     /* cmp MEM32(ebp + 0x8), 0xDu */ /* 0x3604469F: cmp dword ptr [ebp + 8], 0xd */
   3279     _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(0xDu);
   3280     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3281     _flag_k = FK_CMP;
   3282 L_360446A3:
   3283     SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) ? 1 : 0); /* 0x360446A3: setne al */
   3284 L_360446A6:
   3285     esi = POP32_VAL(esp); /* 0x360446A6: pop esi */
   3286 L_360446A7:
   3287     ebp = POP32_VAL(esp); /* 0x360446A7: pop ebp */
   3288 L_360446A8:
   3289     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360446A8: ret 4 */
   3290 L_360446AB:
   3291     eax = MEM32(ebp + 0x8); /* 0x360446AB: mov eax, dword ptr [ebp + 8] */
   3292 L_360446AE:
   3293     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF7u);
   3294     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3295     eax = eax + 0xFFFFFFF7u; /* 0x360446AE: add eax, -9 */
   3296     _flag_k = FK_ADD;
   3297 L_360446B1:
   3298     /* cmp eax, 0x18u */ /* 0x360446B1: cmp eax, 0x18 */
   3299     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u);
   3300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3301     _flag_k = FK_CMP;
   3302 L_360446B4:
   3303     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36044706; /* 0x360446B4: ja 0x36044706 */
   3304 L_360446B6:
   3305     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3306     ecx = 0; /* 0x360446B6: xor ecx, ecx */
   3307     _cf = 0;
   3308     _flag_k = FK_TEST;
   3309 L_360446B8:
   3310     SET_LO8(ecx, MEM8(eax + 0x36044740)); /* 0x360446B8: mov cl, byte ptr [eax + 0x36044740] */
   3311 L_360446BE:
   3312     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x36044734)); goto _ljump; }
   3313 L_360446C5:
   3314     edx = MEM32(ebp + 0x8); /* 0x360446C5: mov edx, dword ptr [ebp + 8] */
   3315 L_360446C8:
   3316     eax = edx + (-0x9); /* 0x360446C8: lea eax, [edx - 9] */
   3317 L_360446CB:
   3318     /* cmp eax, 0x19u */ /* 0x360446CB: cmp eax, 0x19 */
   3319     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x19u);
   3320     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3321     _flag_k = FK_CMP;
   3322 L_360446CE:
   3323     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36044706; /* 0x360446CE: ja 0x36044706 */
   3324 L_360446D0:
   3325     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3326     ecx = 0; /* 0x360446D0: xor ecx, ecx */
   3327     _cf = 0;
   3328     _flag_k = FK_TEST;
   3329 L_360446D2:
   3330     SET_LO8(ecx, MEM8(eax + 0x36044768)); /* 0x360446D2: mov cl, byte ptr [eax + 0x36044768] */
   3331 L_360446D8:
   3332     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x3604475C)); goto _ljump; }
   3333 L_360446DF:
   3334     edx = MEM32(ebp + 0x8); /* 0x360446DF: mov edx, dword ptr [ebp + 8] */
   3335 L_360446E2:
   3336     eax = edx + (-0x5); /* 0x360446E2: lea eax, [edx - 5] */
   3337 L_360446E5:
   3338     /* cmp eax, 0x1Eu */ /* 0x360446E5: cmp eax, 0x1e */
   3339     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu);
   3340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3341     _flag_k = FK_CMP;
   3342 L_360446E8:
   3343     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3604470D; /* 0x360446E8: ja 0x3604470d */
   3344 L_360446EA:
   3345     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3346     ecx = 0; /* 0x360446EA: xor ecx, ecx */
   3347     _cf = 0;
   3348     _flag_k = FK_TEST;
   3349 L_360446EC:
   3350     SET_LO8(ecx, MEM8(eax + 0x3604478C)); /* 0x360446EC: mov cl, byte ptr [eax + 0x3604478c] */
   3351 L_360446F2:
   3352     { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x36044784)); goto _ljump; }
   3353 L_360446F9:
   3354     eax = MEM32(ebp + 0x8); /* 0x360446F9: mov eax, dword ptr [ebp + 8] */
   3355 L_360446FC:
   3356     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Au);
   3357     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3358     eax = eax - 0x1Au; /* 0x360446FC: sub eax, 0x1a */
   3359     _flag_k = FK_CMP;
   3360 L_360446FF:
   3361     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36044706; /* 0x360446FF: je 0x36044706 */
   3362 L_36044701:
   3363     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3364     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3365     eax = eax - 2; /* 0x36044701: sub eax, 2 */
   3366     _flag_k = FK_CMP;
   3367 L_36044704:
   3368     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3604470D; /* 0x36044704: jne 0x3604470d */
   3369 L_36044706:
   3370     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3371     SET_LO8(eax, 0); /* 0x36044706: xor al, al */
   3372     _cf = 0;
   3373     _flag_k = FK_NARROW(FK_TEST, 24);
   3374 L_36044708:
   3375     esi = POP32_VAL(esp); /* 0x36044708: pop esi */
   3376 L_36044709:
   3377     ebp = POP32_VAL(esp); /* 0x36044709: pop ebp */
   3378 L_3604470A:
   3379     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604470A: ret 4 */
   3380 L_3604470D:
   3381     SET_LO8(eax, 1); /* 0x3604470D: mov al, 1 */
   3382 L_3604470F:
   3383     esi = POP32_VAL(esp); /* 0x3604470F: pop esi */
   3384 L_36044710:
   3385     ebp = POP32_VAL(esp); /* 0x36044710: pop ebp */
   3386 L_36044711:
   3387     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36044711: ret 4 */
   3388   _ljump:
   3389     switch (_itail_tgt) {
   3390       case 0x36044640u: goto L_36044640;
   3391       case 0x36044641u: goto L_36044641;
   3392       case 0x36044643u: goto L_36044643;
   3393       case 0x36044644u: goto L_36044644;
   3394       case 0x36044646u: goto L_36044646;
   3395       case 0x3604464Bu: goto L_3604464B;
   3396       case 0x3604464Cu: goto L_3604464C;
   3397       case 0x3604464Fu: goto L_3604464F;
   3398       case 0x36044655u: goto L_36044655;
   3399       case 0x3604465Cu: goto L_3604465C;
   3400       case 0x3604465Fu: goto L_3604465F;
   3401       case 0x36044662u: goto L_36044662;
   3402       case 0x36044668u: goto L_36044668;
   3403       case 0x3604466Bu: goto L_3604466B;
   3404       case 0x3604466Du: goto L_3604466D;
   3405       case 0x36044670u: goto L_36044670;
   3406       case 0x36044673u: goto L_36044673;
   3407       case 0x36044674u: goto L_36044674;
   3408       case 0x36044675u: goto L_36044675;
   3409       case 0x36044678u: goto L_36044678;
   3410       case 0x3604467Bu: goto L_3604467B;
   3411       case 0x3604467Eu: goto L_3604467E;
   3412       case 0x36044684u: goto L_36044684;
   3413       case 0x36044687u: goto L_36044687;
   3414       case 0x3604468Du: goto L_3604468D;
   3415       case 0x3604468Fu: goto L_3604468F;
   3416       case 0x36044694u: goto L_36044694;
   3417       case 0x36044697u: goto L_36044697;
   3418       case 0x3604469Au: goto L_3604469A;
   3419       case 0x3604469Bu: goto L_3604469B;
   3420       case 0x3604469Cu: goto L_3604469C;
   3421       case 0x3604469Fu: goto L_3604469F;
   3422       case 0x360446A3u: goto L_360446A3;
   3423       case 0x360446A6u: goto L_360446A6;
   3424       case 0x360446A7u: goto L_360446A7;
   3425       case 0x360446A8u: goto L_360446A8;
   3426       case 0x360446ABu: goto L_360446AB;
   3427       case 0x360446AEu: goto L_360446AE;
   3428       case 0x360446B1u: goto L_360446B1;
   3429       case 0x360446B4u: goto L_360446B4;
   3430       case 0x360446B6u: goto L_360446B6;
   3431       case 0x360446B8u: goto L_360446B8;
   3432       case 0x360446BEu: goto L_360446BE;
   3433       case 0x360446C5u: goto L_360446C5;
   3434       case 0x360446C8u: goto L_360446C8;
   3435       case 0x360446CBu: goto L_360446CB;
   3436       case 0x360446CEu: goto L_360446CE;
   3437       case 0x360446D0u: goto L_360446D0;
   3438       case 0x360446D2u: goto L_360446D2;
   3439       case 0x360446D8u: goto L_360446D8;
   3440       case 0x360446DFu: goto L_360446DF;
   3441       case 0x360446E2u: goto L_360446E2;
   3442       case 0x360446E5u: goto L_360446E5;
   3443       case 0x360446E8u: goto L_360446E8;
   3444       case 0x360446EAu: goto L_360446EA;
   3445       case 0x360446ECu: goto L_360446EC;
   3446       case 0x360446F2u: goto L_360446F2;
   3447       case 0x360446F9u: goto L_360446F9;
   3448       case 0x360446FCu: goto L_360446FC;
   3449       case 0x360446FFu: goto L_360446FF;
   3450       case 0x36044701u: goto L_36044701;
   3451       case 0x36044704u: goto L_36044704;
   3452       case 0x36044706u: goto L_36044706;
   3453       case 0x36044708u: goto L_36044708;
   3454       case 0x36044709u: goto L_36044709;
   3455       case 0x3604470Au: goto L_3604470A;
   3456       case 0x3604470Du: goto L_3604470D;
   3457       case 0x3604470Fu: goto L_3604470F;
   3458       case 0x36044710u: goto L_36044710;
   3459       case 0x36044711u: goto L_36044711;
   3460       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3461     }
   3462     RECOMP_REGS_OUT();
   3463 }
   3464 
   3465 void sub_360447B0(void) {
   3466     int _fpu_cmp = 0;
   3467     uint32_t _cf = 0;
   3468     int _df = 1;
   3469     uint32_t _flag_k = FK_NONE;
   3470     uint32_t _flag_a = 0, _flag_b = 0;
   3471     uint32_t _itail_tgt = 0;
   3472     RECOMP_REGS_LOCALS
   3473     RECOMP_ENTER(0x360447B0u);
   3474 
   3475 L_360447B0:
   3476     PUSH32(esp, ebp); /* 0x360447B0: push ebp */
   3477     ebp = esp; /* 0x360447B1: mov ebp, esp */
   3478     eax = MEM32(ebp + 0x8); /* 0x360447B3: mov eax, dword ptr [ebp + 8] */
   3479     PUSH32(esp, eax); /* 0x360447B6: push eax */
   3480     RECOMP_ICALL(0x36049830u); /* 0x360447B7: call 0x36049830 */ /* not lifted */
   3481     RECOMP_FLAGS_IN();
   3482     ebp = POP32_VAL(esp); /* 0x360447BC: pop ebp */
   3483     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360447BD: ret 4 */
   3484     RECOMP_REGS_OUT();
   3485 }
   3486 
   3487 void sub_360447C0(void) {
   3488     int _fpu_cmp = 0;
   3489     uint32_t _cf = 0;
   3490     int _df = 1;
   3491     uint32_t _flag_k = FK_NONE;
   3492     uint32_t _flag_a = 0, _flag_b = 0;
   3493     uint32_t _itail_tgt = 0;
   3494     RECOMP_REGS_LOCALS
   3495     RECOMP_ENTER(0x360447C0u);
   3496 
   3497 L_360447C0:
   3498     PUSH32(esp, ebp); /* 0x360447C0: push ebp */
   3499 L_360447C1:
   3500     ebp = esp; /* 0x360447C1: mov ebp, esp */
   3501 L_360447C3:
   3502     PUSH32(esp, 0xFFFFFFFFu); /* 0x360447C3: push -1 */
   3503 L_360447C5:
   3504     PUSH32(esp, 0x36163E5Bu); /* 0x360447C5: push 0x36163e5b */
   3505 L_360447CA:
   3506     eax = MEM32(FS_BASE + (0)); /* 0x360447CA: mov eax, dword ptr fs:[0] */
   3507 L_360447D0:
   3508     PUSH32(esp, eax); /* 0x360447D0: push eax */
   3509 L_360447D1:
   3510     MEM32(FS_BASE + (0)) = esp; /* 0x360447D1: mov dword ptr fs:[0], esp */
   3511 L_360447D8:
   3512     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u);
   3513     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3514     esp = esp - 0x30u; /* 0x360447D8: sub esp, 0x30 */
   3515     _flag_k = FK_CMP;
   3516 L_360447DB:
   3517     PUSH32(esp, ebx); /* 0x360447DB: push ebx */
   3518 L_360447DC:
   3519     PUSH32(esp, esi); /* 0x360447DC: push esi */
   3520 L_360447DD:
   3521     PUSH32(esp, edi); /* 0x360447DD: push edi */
   3522 L_360447DE:
   3523     PUSH32(esp, 0x68u); /* 0x360447DE: push 0x68 */
   3524 L_360447E0:
   3525     esi = ecx; /* 0x360447E0: mov esi, ecx */
   3526 L_360447E2:
   3527     RECOMP_ICALL(0x3615FD6Au); /* 0x360447E2: call 0x3615fd6a */ /* not lifted */
   3528     RECOMP_FLAGS_IN();
   3529 L_360447E7:
   3530     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3531     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3532     esp = esp + 4; /* 0x360447E7: add esp, 4 */
   3533     _flag_k = FK_ADD;
   3534 L_360447EA:
   3535     MEM32(ebp + (-0x3C)) = eax; /* 0x360447EA: mov dword ptr [ebp - 0x3c], eax */
   3536 L_360447ED:
   3537     ebx = MEM32(ebp + 0x8); /* 0x360447ED: mov ebx, dword ptr [ebp + 8] */
   3538 L_360447F0:
   3539     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3540     edi = 0; /* 0x360447F0: xor edi, edi */
   3541     _cf = 0;
   3542     _flag_k = FK_TEST;
   3543 L_360447F2:
   3544     /* cmp eax, edi */ /* 0x360447F2: cmp eax, edi */
   3545     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3546     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3547     _flag_k = FK_CMP;
   3548 L_360447F4:
   3549     MEM32(ebp + (-0x4)) = edi; /* 0x360447F4: mov dword ptr [ebp - 4], edi */
   3550 L_360447F7:
   3551     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36044804; /* 0x360447F7: je 0x36044804 */
   3552 L_360447F9:
   3553     PUSH32(esp, ebx); /* 0x360447F9: push ebx */
   3554 L_360447FA:
   3555     PUSH32(esp, esi); /* 0x360447FA: push esi */
   3556 L_360447FB:
   3557     ecx = eax; /* 0x360447FB: mov ecx, eax */
   3558 L_360447FD:
   3559     RECOMP_ICALL(0x36049430u); /* 0x360447FD: call 0x36049430 */ /* not lifted */
   3560     RECOMP_FLAGS_IN();
   3561 L_36044802:
   3562     edi = eax; /* 0x36044802: mov edi, eax */
   3563 L_36044804:
   3564     ecx = esi; /* 0x36044804: mov ecx, esi */
   3565 L_36044806:
   3566     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36044806: mov dword ptr [ebp - 4], 0xffffffff */
   3567 L_3604480D:
   3568     RECOMP_ICALL(0x36008320u); /* 0x3604480D: call 0x36008320 */ /* not lifted */
   3569     RECOMP_FLAGS_IN();
   3570 L_36044812:
   3571     ecx = esi; /* 0x36044812: mov ecx, esi */
   3572 L_36044814:
   3573     MEM32(ebp + (-0x30)) = eax; /* 0x36044814: mov dword ptr [ebp - 0x30], eax */
   3574 L_36044817:
   3575     RECOMP_ICALL(0x3609C020u); /* 0x36044817: call 0x3609c020 */ /* not lifted */
   3576     RECOMP_FLAGS_IN();
   3577 L_3604481C:
   3578     ecx = esi; /* 0x3604481C: mov ecx, esi */
   3579 L_3604481E:
   3580     MEM32(ebp + (-0x28)) = eax; /* 0x3604481E: mov dword ptr [ebp - 0x28], eax */
   3581 L_36044821:
   3582     RECOMP_ICALL(0x3609BF50u); /* 0x36044821: call 0x3609bf50 */ /* not lifted */
   3583     RECOMP_FLAGS_IN();
   3584 L_36044826:
   3585     ecx = esi; /* 0x36044826: mov ecx, esi */
   3586 L_36044828:
   3587     MEM32(ebp + (-0x2C)) = eax; /* 0x36044828: mov dword ptr [ebp - 0x2c], eax */
   3588 L_3604482B:
   3589     RECOMP_ICALL(0x36008320u); /* 0x3604482B: call 0x36008320 */ /* not lifted */
   3590     RECOMP_FLAGS_IN();
   3591 L_36044830:
   3592     ecx = esi; /* 0x36044830: mov ecx, esi */
   3593 L_36044832:
   3594     MEM32(ebp + 0x8) = eax; /* 0x36044832: mov dword ptr [ebp + 8], eax */
   3595 L_36044835:
   3596     RECOMP_ICALL(0x3609C020u); /* 0x36044835: call 0x3609c020 */ /* not lifted */
   3597     RECOMP_FLAGS_IN();
   3598 L_3604483A:
   3599     ecx = esi; /* 0x3604483A: mov ecx, esi */
   3600 L_3604483C:
   3601     MEM32(ebp + (-0x10)) = eax; /* 0x3604483C: mov dword ptr [ebp - 0x10], eax */
   3602 L_3604483F:
   3603     RECOMP_ICALL(0x3609BF50u); /* 0x3604483F: call 0x3609bf50 */ /* not lifted */
   3604     RECOMP_FLAGS_IN();
   3605 L_36044844:
   3606     ecx = esi; /* 0x36044844: mov ecx, esi */
   3607 L_36044846:
   3608     MEM32(ebp + (-0x18)) = eax; /* 0x36044846: mov dword ptr [ebp - 0x18], eax */
   3609 L_36044849:
   3610     RECOMP_ICALL(0x3609BF50u); /* 0x36044849: call 0x3609bf50 */ /* not lifted */
   3611     RECOMP_FLAGS_IN();
   3612 L_3604484E:
   3613     ecx = esi; /* 0x3604484E: mov ecx, esi */
   3614 L_36044850:
   3615     MEM32(ebp + (-0x34)) = eax; /* 0x36044850: mov dword ptr [ebp - 0x34], eax */
   3616 L_36044853:
   3617     RECOMP_ICALL(0x3614C560u); /* 0x36044853: call 0x3614c560 */ /* not lifted */
   3618     RECOMP_FLAGS_IN();
   3619 L_36044858:
   3620     ecx = esi; /* 0x36044858: mov ecx, esi */
   3621 L_3604485A:
   3622     MEM32(ebp + (-0x3C)) = eax; /* 0x3604485A: mov dword ptr [ebp - 0x3c], eax */
   3623 L_3604485D:
   3624     RECOMP_ICALL(0x360F1670u); /* 0x3604485D: call 0x360f1670 */ /* not lifted */
   3625     RECOMP_FLAGS_IN();
   3626 L_36044862:
   3627     ecx = esi; /* 0x36044862: mov ecx, esi */
   3628 L_36044864:
   3629     MEM32(ebp + (-0x20)) = eax; /* 0x36044864: mov dword ptr [ebp - 0x20], eax */
   3630 L_36044867:
   3631     RECOMP_ICALL(0x360D9CB0u); /* 0x36044867: call 0x360d9cb0 */ /* not lifted */
   3632     RECOMP_FLAGS_IN();
   3633 L_3604486C:
   3634     ecx = esi; /* 0x3604486C: mov ecx, esi */
   3635 L_3604486E:
   3636     MEM32(ebp + (-0x14)) = eax; /* 0x3604486E: mov dword ptr [ebp - 0x14], eax */
   3637 L_36044871:
   3638     RECOMP_ICALL(0x3606C640u); /* 0x36044871: call 0x3606c640 */ /* not lifted */
   3639     RECOMP_FLAGS_IN();
   3640 L_36044876:
   3641     ecx = esi; /* 0x36044876: mov ecx, esi */
   3642 L_36044878:
   3643     MEM32(ebp + (-0x1C)) = eax; /* 0x36044878: mov dword ptr [ebp - 0x1c], eax */
   3644 L_3604487B:
   3645     RECOMP_ICALL(0x36049790u); /* 0x3604487B: call 0x36049790 */ /* not lifted */
   3646     RECOMP_FLAGS_IN();
   3647 L_36044880:
   3648     ecx = esi; /* 0x36044880: mov ecx, esi */
   3649 L_36044882:
   3650     MEM32(ebp + (-0x38)) = eax; /* 0x36044882: mov dword ptr [ebp - 0x38], eax */
   3651 L_36044885:
   3652     RECOMP_ICALL(0x360F1680u); /* 0x36044885: call 0x360f1680 */ /* not lifted */
   3653     RECOMP_FLAGS_IN();
   3654 L_3604488A:
   3655     MEM32(ebp + (-0x24)) = eax; /* 0x3604488A: mov dword ptr [ebp - 0x24], eax */
   3656 L_3604488D:
   3657     eax = ebx + (-0x1); /* 0x3604488D: lea eax, [ebx - 1] */
   3658 L_36044890:
   3659     /* cmp eax, 0x22u */ /* 0x36044890: cmp eax, 0x22 */
   3660     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x22u);
   3661     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3662     _flag_k = FK_CMP;
   3663 L_36044893:
   3664     MEM8(edi + 0x4) = (uint8_t)(0); /* 0x36044893: mov byte ptr [edi + 4], 0 */
   3665 L_36044897:
   3666     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36045156; /* 0x36044897: ja 0x36045156 */
   3667 L_3604489D:
   3668     { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36045220)); goto _ljump; }
   3669 L_360448A4:
   3670     eax = MEM32(ebp + (-0x28)); /* 0x360448A4: mov eax, dword ptr [ebp - 0x28] */
   3671 L_360448A7:
   3672     ebx = 1; /* 0x360448A7: mov ebx, 1 */
   3673 L_360448AC:
   3674     /* cmp eax, ebx */ /* 0x360448AC: cmp eax, ebx */
   3675     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3676     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3677     _flag_k = FK_CMP;
   3678 L_360448AE:
   3679     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36044900; /* 0x360448AE: jne 0x36044900 */
   3680 L_360448B0:
   3681     PUSH32(esp, 8); /* 0x360448B0: push 8 */
   3682 L_360448B2:
   3683     MEM32(ebp + (-0x10)) = 3; /* 0x360448B2: mov dword ptr [ebp - 0x10], 3 */
   3684 L_360448B9:
   3685     MEM32(ebp + (-0x14)) = ebx; /* 0x360448B9: mov dword ptr [ebp - 0x14], ebx */
   3686 L_360448BC:
   3687     RECOMP_ICALL(0x3615FD6Au); /* 0x360448BC: call 0x3615fd6a */ /* not lifted */
   3688     RECOMP_FLAGS_IN();
   3689 L_360448C1:
   3690     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3691     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3692     esp = esp + 4; /* 0x360448C1: add esp, 4 */
   3693     _flag_k = FK_ADD;
   3694 L_360448C4:
   3695     /* test eax, eax */ /* 0x360448C4: test eax, eax */
   3696     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3697     _cf = 0;
   3698     _flag_k = FK_TEST;
   3699 L_360448C6:
   3700     MEM32(ebp + (-0x30)) = eax; /* 0x360448C6: mov dword ptr [ebp - 0x30], eax */
   3701 L_360448C9:
   3702     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_360448EE; /* 0x360448C9: je 0x360448ee */
   3703 L_360448CB:
   3704     ecx = esi; /* 0x360448CB: mov ecx, esi */
   3705 L_360448CD:
   3706     RECOMP_ICALL(0x360C5490u); /* 0x360448CD: call 0x360c5490 */ /* not lifted */
   3707     RECOMP_FLAGS_IN();
   3708 L_360448D2:
   3709     ecx = MEM32(ebp + (-0x30)); /* 0x360448D2: mov ecx, dword ptr [ebp - 0x30] */
   3710 L_360448D5:
   3711     MEM32(ecx + 0x4) = eax; /* 0x360448D5: mov dword ptr [ecx + 4], eax */
   3712 L_360448D8:
   3713     MEM32(ecx) = 0x36170D54u; /* 0x360448D8: mov dword ptr [ecx], 0x36170d54 */
   3714 L_360448DE:
   3715     PUSH32(esp, ecx); /* 0x360448DE: push ecx */
   3716 L_360448DF:
   3717     ecx = edi; /* 0x360448DF: mov ecx, edi */
   3718 L_360448E1:
   3719     RECOMP_ICALL(0x360495D0u); /* 0x360448E1: call 0x360495d0 */ /* not lifted */
   3720     RECOMP_FLAGS_IN();
   3721 L_360448E6:
   3722     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x360448E6: mov byte ptr [edi + 4], bl */
   3723 L_360448E9:
   3724     goto L_36045156; /* 0x360448E9: jmp 0x36045156 */
   3725 L_360448EE:
   3726     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3727     ecx = 0; /* 0x360448EE: xor ecx, ecx */
   3728     _cf = 0;
   3729     _flag_k = FK_TEST;
   3730 L_360448F0:
   3731     PUSH32(esp, ecx); /* 0x360448F0: push ecx */
   3732 L_360448F1:
   3733     ecx = edi; /* 0x360448F1: mov ecx, edi */
   3734 L_360448F3:
   3735     RECOMP_ICALL(0x360495D0u); /* 0x360448F3: call 0x360495d0 */ /* not lifted */
   3736     RECOMP_FLAGS_IN();
   3737 L_360448F8:
   3738     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x360448F8: mov byte ptr [edi + 4], bl */
   3739 L_360448FB:
   3740     goto L_36045156; /* 0x360448FB: jmp 0x36045156 */
   3741 L_36044900:
   3742     /* cmp eax, 3 */ /* 0x36044900: cmp eax, 3 */
   3743     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   3744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3745     _flag_k = FK_CMP;
   3746 L_36044903:
   3747     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044903: jne 0x36045156 */
   3748 L_36044909:
   3749     ecx = esi; /* 0x36044909: mov ecx, esi */
   3750 L_3604490B:
   3751     RECOMP_ICALL(0x360D9CB0u); /* 0x3604490B: call 0x360d9cb0 */ /* not lifted */
   3752     RECOMP_FLAGS_IN();
   3753 L_36044910:
   3754     /* cmp eax, 2 */ /* 0x36044910: cmp eax, 2 */
   3755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3756     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3757     _flag_k = FK_CMP;
   3758 L_36044913:
   3759     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044913: jne 0x36045156 */
   3760 L_36044919:
   3761     PUSH32(esp, 8); /* 0x36044919: push 8 */
   3762 L_3604491B:
   3763     MEM32(ebp + (-0x10)) = 3; /* 0x3604491B: mov dword ptr [ebp - 0x10], 3 */
   3764 L_36044922:
   3765     MEM32(ebp + (-0x14)) = ebx; /* 0x36044922: mov dword ptr [ebp - 0x14], ebx */
   3766 L_36044925:
   3767     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044925: mov byte ptr [edi + 4], bl */
   3768 L_36044928:
   3769     RECOMP_ICALL(0x3615FD6Au); /* 0x36044928: call 0x3615fd6a */ /* not lifted */
   3770     RECOMP_FLAGS_IN();
   3771 L_3604492D:
   3772     ebx = eax; /* 0x3604492D: mov ebx, eax */
   3773 L_3604492F:
   3774     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3775     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3776     esp = esp + 4; /* 0x3604492F: add esp, 4 */
   3777     _flag_k = FK_ADD;
   3778 L_36044932:
   3779     /* test ebx, ebx */ /* 0x36044932: test ebx, ebx */
   3780     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3781     _cf = 0;
   3782     _flag_k = FK_TEST;
   3783 L_36044934:
   3784     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044934: je 0x3604514c */
   3785 L_3604493A:
   3786     ecx = esi; /* 0x3604493A: mov ecx, esi */
   3787 L_3604493C:
   3788     RECOMP_ICALL(0x360C5490u); /* 0x3604493C: call 0x360c5490 */ /* not lifted */
   3789     RECOMP_FLAGS_IN();
   3790 L_36044941:
   3791     MEM32(ebx + 0x4) = eax; /* 0x36044941: mov dword ptr [ebx + 4], eax */
   3792 L_36044944:
   3793     MEM32(ebx) = 0x36170D54u; /* 0x36044944: mov dword ptr [ebx], 0x36170d54 */
   3794 L_3604494A:
   3795     goto L_3604514E; /* 0x3604494A: jmp 0x3604514e */
   3796 L_3604494F:
   3797     /* cmp MEM32(ebp + (-0x28)), 3 */ /* 0x3604494F: cmp dword ptr [ebp - 0x28], 3 */
   3798     _flag_a = (uint32_t)(MEM32(ebp + (-0x28))); _flag_b = (uint32_t)(3);
   3799     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3800     _flag_k = FK_CMP;
   3801 L_36044953:
   3802     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044953: jne 0x36045156 */
   3803 L_36044959:
   3804     ecx = esi; /* 0x36044959: mov ecx, esi */
   3805 L_3604495B:
   3806     RECOMP_ICALL(0x360D9CB0u); /* 0x3604495B: call 0x360d9cb0 */ /* not lifted */
   3807     RECOMP_FLAGS_IN();
   3808 L_36044960:
   3809     ebx = 1; /* 0x36044960: mov ebx, 1 */
   3810 L_36044965:
   3811     /* cmp eax, ebx */ /* 0x36044965: cmp eax, ebx */
   3812     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3813     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3814     _flag_k = FK_CMP;
   3815 L_36044967:
   3816     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044967: jne 0x36045156 */
   3817 L_3604496D:
   3818     PUSH32(esp, 8); /* 0x3604496D: push 8 */
   3819 L_3604496F:
   3820     MEM32(ebp + (-0x10)) = ebx; /* 0x3604496F: mov dword ptr [ebp - 0x10], ebx */
   3821 L_36044972:
   3822     MEM32(ebp + (-0x14)) = 0; /* 0x36044972: mov dword ptr [ebp - 0x14], 0 */
   3823 L_36044979:
   3824     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044979: mov byte ptr [edi + 4], bl */
   3825 L_3604497C:
   3826     RECOMP_ICALL(0x3615FD6Au); /* 0x3604497C: call 0x3615fd6a */ /* not lifted */
   3827     RECOMP_FLAGS_IN();
   3828 L_36044981:
   3829     ebx = eax; /* 0x36044981: mov ebx, eax */
   3830 L_36044983:
   3831     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3833     esp = esp + 4; /* 0x36044983: add esp, 4 */
   3834     _flag_k = FK_ADD;
   3835 L_36044986:
   3836     /* test ebx, ebx */ /* 0x36044986: test ebx, ebx */
   3837     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3838     _cf = 0;
   3839     _flag_k = FK_TEST;
   3840 L_36044988:
   3841     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044988: je 0x3604514c */
   3842 L_3604498E:
   3843     ecx = esi; /* 0x3604498E: mov ecx, esi */
   3844 L_36044990:
   3845     RECOMP_ICALL(0x360C5490u); /* 0x36044990: call 0x360c5490 */ /* not lifted */
   3846     RECOMP_FLAGS_IN();
   3847 L_36044995:
   3848     MEM32(ebx + 0x4) = eax; /* 0x36044995: mov dword ptr [ebx + 4], eax */
   3849 L_36044998:
   3850     MEM32(ebx) = 0x36170D48u; /* 0x36044998: mov dword ptr [ebx], 0x36170d48 */
   3851 L_3604499E:
   3852     goto L_3604514E; /* 0x3604499E: jmp 0x3604514e */
   3853 L_360449A3:
   3854     eax = MEM32(ebp + (-0x28)); /* 0x360449A3: mov eax, dword ptr [ebp - 0x28] */
   3855 L_360449A6:
   3856     ebx = 1; /* 0x360449A6: mov ebx, 1 */
   3857 L_360449AB:
   3858     /* cmp eax, ebx */ /* 0x360449AB: cmp eax, ebx */
   3859     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3861     _flag_k = FK_CMP;
   3862 L_360449AD:
   3863     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_360449E9; /* 0x360449AD: jne 0x360449e9 */
   3864 L_360449AF:
   3865     PUSH32(esp, 8); /* 0x360449AF: push 8 */
   3866 L_360449B1:
   3867     MEM32(ebp + (-0x10)) = 3; /* 0x360449B1: mov dword ptr [ebp - 0x10], 3 */
   3868 L_360449B8:
   3869     MEM32(ebp + (-0x14)) = 2; /* 0x360449B8: mov dword ptr [ebp - 0x14], 2 */
   3870 L_360449BF:
   3871     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x360449BF: mov byte ptr [edi + 4], bl */
   3872 L_360449C2:
   3873     RECOMP_ICALL(0x3615FD6Au); /* 0x360449C2: call 0x3615fd6a */ /* not lifted */
   3874     RECOMP_FLAGS_IN();
   3875 L_360449C7:
   3876     ebx = eax; /* 0x360449C7: mov ebx, eax */
   3877 L_360449C9:
   3878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3879     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3880     esp = esp + 4; /* 0x360449C9: add esp, 4 */
   3881     _flag_k = FK_ADD;
   3882 L_360449CC:
   3883     /* test ebx, ebx */ /* 0x360449CC: test ebx, ebx */
   3884     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3885     _cf = 0;
   3886     _flag_k = FK_TEST;
   3887 L_360449CE:
   3888     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x360449CE: je 0x3604514c */
   3889 L_360449D4:
   3890     ecx = esi; /* 0x360449D4: mov ecx, esi */
   3891 L_360449D6:
   3892     RECOMP_ICALL(0x360C5490u); /* 0x360449D6: call 0x360c5490 */ /* not lifted */
   3893     RECOMP_FLAGS_IN();
   3894 L_360449DB:
   3895     MEM32(ebx + 0x4) = eax; /* 0x360449DB: mov dword ptr [ebx + 4], eax */
   3896 L_360449DE:
   3897     MEM32(ebx) = 0x36170D3Cu; /* 0x360449DE: mov dword ptr [ebx], 0x36170d3c */
   3898 L_360449E4:
   3899     goto L_3604514E; /* 0x360449E4: jmp 0x3604514e */
   3900 L_360449E9:
   3901     /* cmp eax, 3 */ /* 0x360449E9: cmp eax, 3 */
   3902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   3903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3904     _flag_k = FK_CMP;
   3905 L_360449EC:
   3906     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x360449EC: jne 0x36045156 */
   3907 L_360449F2:
   3908     ecx = esi; /* 0x360449F2: mov ecx, esi */
   3909 L_360449F4:
   3910     RECOMP_ICALL(0x360D9CB0u); /* 0x360449F4: call 0x360d9cb0 */ /* not lifted */
   3911     RECOMP_FLAGS_IN();
   3912 L_360449F9:
   3913     /* cmp eax, ebx */ /* 0x360449F9: cmp eax, ebx */
   3914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3915     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3916     _flag_k = FK_CMP;
   3917 L_360449FB:
   3918     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x360449FB: jne 0x36045156 */
   3919 L_36044A01:
   3920     RECOMP_BACKEDGE();
   3921     goto L_360449AF; /* 0x36044A01: jmp 0x360449af */
   3922 L_36044A03:
   3923     /* cmp MEM32(ebp + (-0x28)), 3 */ /* 0x36044A03: cmp dword ptr [ebp - 0x28], 3 */
   3924     _flag_a = (uint32_t)(MEM32(ebp + (-0x28))); _flag_b = (uint32_t)(3);
   3925     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3926     _flag_k = FK_CMP;
   3927 L_36044A07:
   3928     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044A07: jne 0x36045156 */
   3929 L_36044A0D:
   3930     ecx = esi; /* 0x36044A0D: mov ecx, esi */
   3931 L_36044A0F:
   3932     RECOMP_ICALL(0x360D9CB0u); /* 0x36044A0F: call 0x360d9cb0 */ /* not lifted */
   3933     RECOMP_FLAGS_IN();
   3934 L_36044A14:
   3935     /* cmp eax, 2 */ /* 0x36044A14: cmp eax, 2 */
   3936     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   3937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3938     _flag_k = FK_CMP;
   3939 L_36044A17:
   3940     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044A17: jne 0x36045156 */
   3941 L_36044A1D:
   3942     ebx = 1; /* 0x36044A1D: mov ebx, 1 */
   3943 L_36044A22:
   3944     PUSH32(esp, 8); /* 0x36044A22: push 8 */
   3945 L_36044A24:
   3946     MEM32(ebp + (-0x10)) = ebx; /* 0x36044A24: mov dword ptr [ebp - 0x10], ebx */
   3947 L_36044A27:
   3948     MEM32(ebp + (-0x14)) = 0; /* 0x36044A27: mov dword ptr [ebp - 0x14], 0 */
   3949 L_36044A2E:
   3950     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044A2E: mov byte ptr [edi + 4], bl */
   3951 L_36044A31:
   3952     RECOMP_ICALL(0x3615FD6Au); /* 0x36044A31: call 0x3615fd6a */ /* not lifted */
   3953     RECOMP_FLAGS_IN();
   3954 L_36044A36:
   3955     ebx = eax; /* 0x36044A36: mov ebx, eax */
   3956 L_36044A38:
   3957     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3958     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3959     esp = esp + 4; /* 0x36044A38: add esp, 4 */
   3960     _flag_k = FK_ADD;
   3961 L_36044A3B:
   3962     /* test ebx, ebx */ /* 0x36044A3B: test ebx, ebx */
   3963     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   3964     _cf = 0;
   3965     _flag_k = FK_TEST;
   3966 L_36044A3D:
   3967     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044A3D: je 0x3604514c */
   3968 L_36044A43:
   3969     ecx = esi; /* 0x36044A43: mov ecx, esi */
   3970 L_36044A45:
   3971     RECOMP_ICALL(0x360C5490u); /* 0x36044A45: call 0x360c5490 */ /* not lifted */
   3972     RECOMP_FLAGS_IN();
   3973 L_36044A4A:
   3974     MEM32(ebx + 0x4) = eax; /* 0x36044A4A: mov dword ptr [ebx + 4], eax */
   3975 L_36044A4D:
   3976     MEM32(ebx) = 0x36170D30u; /* 0x36044A4D: mov dword ptr [ebx], 0x36170d30 */
   3977 L_36044A53:
   3978     goto L_3604514E; /* 0x36044A53: jmp 0x3604514e */
   3979 L_36044A58:
   3980     eax = MEM32(ebp + (-0x2C)); /* 0x36044A58: mov eax, dword ptr [ebp - 0x2c] */
   3981 L_36044A5B:
   3982     ebx = 1; /* 0x36044A5B: mov ebx, 1 */
   3983 L_36044A60:
   3984     /* cmp eax, ebx */ /* 0x36044A60: cmp eax, ebx */
   3985     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   3986     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3987     _flag_k = FK_CMP;
   3988 L_36044A62:
   3989     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36044A9B; /* 0x36044A62: jne 0x36044a9b */
   3990 L_36044A64:
   3991     eax = 3; /* 0x36044A64: mov eax, 3 */
   3992 L_36044A69:
   3993     PUSH32(esp, 8); /* 0x36044A69: push 8 */
   3994 L_36044A6B:
   3995     MEM32(ebp + (-0x18)) = eax; /* 0x36044A6B: mov dword ptr [ebp - 0x18], eax */
   3996 L_36044A6E:
   3997     MEM32(ebp + (-0x1C)) = eax; /* 0x36044A6E: mov dword ptr [ebp - 0x1c], eax */
   3998 L_36044A71:
   3999     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044A71: mov byte ptr [edi + 4], bl */
   4000 L_36044A74:
   4001     RECOMP_ICALL(0x3615FD6Au); /* 0x36044A74: call 0x3615fd6a */ /* not lifted */
   4002     RECOMP_FLAGS_IN();
   4003 L_36044A79:
   4004     ebx = eax; /* 0x36044A79: mov ebx, eax */
   4005 L_36044A7B:
   4006     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4007     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4008     esp = esp + 4; /* 0x36044A7B: add esp, 4 */
   4009     _flag_k = FK_ADD;
   4010 L_36044A7E:
   4011     /* test ebx, ebx */ /* 0x36044A7E: test ebx, ebx */
   4012     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4013     _cf = 0;
   4014     _flag_k = FK_TEST;
   4015 L_36044A80:
   4016     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044A80: je 0x3604514c */
   4017 L_36044A86:
   4018     ecx = esi; /* 0x36044A86: mov ecx, esi */
   4019 L_36044A88:
   4020     RECOMP_ICALL(0x360C5490u); /* 0x36044A88: call 0x360c5490 */ /* not lifted */
   4021     RECOMP_FLAGS_IN();
   4022 L_36044A8D:
   4023     MEM32(ebx + 0x4) = eax; /* 0x36044A8D: mov dword ptr [ebx + 4], eax */
   4024 L_36044A90:
   4025     MEM32(ebx) = 0x36170D24u; /* 0x36044A90: mov dword ptr [ebx], 0x36170d24 */
   4026 L_36044A96:
   4027     goto L_3604514E; /* 0x36044A96: jmp 0x3604514e */
   4028 L_36044A9B:
   4029     /* cmp eax, 3 */ /* 0x36044A9B: cmp eax, 3 */
   4030     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4031     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4032     _flag_k = FK_CMP;
   4033 L_36044A9E:
   4034     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044A9E: jne 0x36045156 */
   4035 L_36044AA4:
   4036     ecx = esi; /* 0x36044AA4: mov ecx, esi */
   4037 L_36044AA6:
   4038     RECOMP_ICALL(0x3606C640u); /* 0x36044AA6: call 0x3606c640 */ /* not lifted */
   4039     RECOMP_FLAGS_IN();
   4040 L_36044AAB:
   4041     /* cmp eax, 4 */ /* 0x36044AAB: cmp eax, 4 */
   4042     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4044     _flag_k = FK_CMP;
   4045 L_36044AAE:
   4046     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044AAE: jne 0x36045156 */
   4047 L_36044AB4:
   4048     RECOMP_BACKEDGE();
   4049     goto L_36044A64; /* 0x36044AB4: jmp 0x36044a64 */
   4050 L_36044AB6:
   4051     /* cmp MEM32(ebp + (-0x2C)), 3 */ /* 0x36044AB6: cmp dword ptr [ebp - 0x2c], 3 */
   4052     _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(3);
   4053     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4054     _flag_k = FK_CMP;
   4055 L_36044ABA:
   4056     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044ABA: jne 0x36045156 */
   4057 L_36044AC0:
   4058     ecx = esi; /* 0x36044AC0: mov ecx, esi */
   4059 L_36044AC2:
   4060     RECOMP_ICALL(0x3606C640u); /* 0x36044AC2: call 0x3606c640 */ /* not lifted */
   4061     RECOMP_FLAGS_IN();
   4062 L_36044AC7:
   4063     /* cmp eax, 3 */ /* 0x36044AC7: cmp eax, 3 */
   4064     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4066     _flag_k = FK_CMP;
   4067 L_36044ACA:
   4068     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044ACA: jne 0x36045156 */
   4069 L_36044AD0:
   4070     ebx = 1; /* 0x36044AD0: mov ebx, 1 */
   4071 L_36044AD5:
   4072     PUSH32(esp, 8); /* 0x36044AD5: push 8 */
   4073 L_36044AD7:
   4074     MEM32(ebp + (-0x18)) = ebx; /* 0x36044AD7: mov dword ptr [ebp - 0x18], ebx */
   4075 L_36044ADA:
   4076     MEM32(ebp + (-0x1C)) = 0; /* 0x36044ADA: mov dword ptr [ebp - 0x1c], 0 */
   4077 L_36044AE1:
   4078     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044AE1: mov byte ptr [edi + 4], bl */
   4079 L_36044AE4:
   4080     RECOMP_ICALL(0x3615FD6Au); /* 0x36044AE4: call 0x3615fd6a */ /* not lifted */
   4081     RECOMP_FLAGS_IN();
   4082 L_36044AE9:
   4083     ebx = eax; /* 0x36044AE9: mov ebx, eax */
   4084 L_36044AEB:
   4085     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4086     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4087     esp = esp + 4; /* 0x36044AEB: add esp, 4 */
   4088     _flag_k = FK_ADD;
   4089 L_36044AEE:
   4090     /* test ebx, ebx */ /* 0x36044AEE: test ebx, ebx */
   4091     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4092     _cf = 0;
   4093     _flag_k = FK_TEST;
   4094 L_36044AF0:
   4095     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044AF0: je 0x3604514c */
   4096 L_36044AF6:
   4097     ecx = esi; /* 0x36044AF6: mov ecx, esi */
   4098 L_36044AF8:
   4099     RECOMP_ICALL(0x360C5490u); /* 0x36044AF8: call 0x360c5490 */ /* not lifted */
   4100     RECOMP_FLAGS_IN();
   4101 L_36044AFD:
   4102     MEM32(ebx + 0x4) = eax; /* 0x36044AFD: mov dword ptr [ebx + 4], eax */
   4103 L_36044B00:
   4104     MEM32(ebx) = 0x36170D18u; /* 0x36044B00: mov dword ptr [ebx], 0x36170d18 */
   4105 L_36044B06:
   4106     goto L_3604514E; /* 0x36044B06: jmp 0x3604514e */
   4107 L_36044B0B:
   4108     eax = MEM32(ebp + (-0x2C)); /* 0x36044B0B: mov eax, dword ptr [ebp - 0x2c] */
   4109 L_36044B0E:
   4110     ebx = 1; /* 0x36044B0E: mov ebx, 1 */
   4111 L_36044B13:
   4112     /* cmp eax, ebx */ /* 0x36044B13: cmp eax, ebx */
   4113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   4114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4115     _flag_k = FK_CMP;
   4116 L_36044B15:
   4117     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36044B51; /* 0x36044B15: jne 0x36044b51 */
   4118 L_36044B17:
   4119     PUSH32(esp, 8); /* 0x36044B17: push 8 */
   4120 L_36044B19:
   4121     MEM32(ebp + (-0x18)) = 3; /* 0x36044B19: mov dword ptr [ebp - 0x18], 3 */
   4122 L_36044B20:
   4123     MEM32(ebp + (-0x1C)) = 4; /* 0x36044B20: mov dword ptr [ebp - 0x1c], 4 */
   4124 L_36044B27:
   4125     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044B27: mov byte ptr [edi + 4], bl */
   4126 L_36044B2A:
   4127     RECOMP_ICALL(0x3615FD6Au); /* 0x36044B2A: call 0x3615fd6a */ /* not lifted */
   4128     RECOMP_FLAGS_IN();
   4129 L_36044B2F:
   4130     ebx = eax; /* 0x36044B2F: mov ebx, eax */
   4131 L_36044B31:
   4132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4134     esp = esp + 4; /* 0x36044B31: add esp, 4 */
   4135     _flag_k = FK_ADD;
   4136 L_36044B34:
   4137     /* test ebx, ebx */ /* 0x36044B34: test ebx, ebx */
   4138     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4139     _cf = 0;
   4140     _flag_k = FK_TEST;
   4141 L_36044B36:
   4142     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044B36: je 0x3604514c */
   4143 L_36044B3C:
   4144     ecx = esi; /* 0x36044B3C: mov ecx, esi */
   4145 L_36044B3E:
   4146     RECOMP_ICALL(0x360C5490u); /* 0x36044B3E: call 0x360c5490 */ /* not lifted */
   4147     RECOMP_FLAGS_IN();
   4148 L_36044B43:
   4149     MEM32(ebx + 0x4) = eax; /* 0x36044B43: mov dword ptr [ebx + 4], eax */
   4150 L_36044B46:
   4151     MEM32(ebx) = 0x36170D0Cu; /* 0x36044B46: mov dword ptr [ebx], 0x36170d0c */
   4152 L_36044B4C:
   4153     goto L_3604514E; /* 0x36044B4C: jmp 0x3604514e */
   4154 L_36044B51:
   4155     /* cmp eax, 3 */ /* 0x36044B51: cmp eax, 3 */
   4156     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4158     _flag_k = FK_CMP;
   4159 L_36044B54:
   4160     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044B54: jne 0x36045156 */
   4161 L_36044B5A:
   4162     ecx = esi; /* 0x36044B5A: mov ecx, esi */
   4163 L_36044B5C:
   4164     RECOMP_ICALL(0x3606C640u); /* 0x36044B5C: call 0x3606c640 */ /* not lifted */
   4165     RECOMP_FLAGS_IN();
   4166 L_36044B61:
   4167     /* cmp eax, 3 */ /* 0x36044B61: cmp eax, 3 */
   4168     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4169     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4170     _flag_k = FK_CMP;
   4171 L_36044B64:
   4172     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044B64: jne 0x36045156 */
   4173 L_36044B6A:
   4174     RECOMP_BACKEDGE();
   4175     goto L_36044B17; /* 0x36044B6A: jmp 0x36044b17 */
   4176 L_36044B6C:
   4177     /* cmp MEM32(ebp + (-0x2C)), 3 */ /* 0x36044B6C: cmp dword ptr [ebp - 0x2c], 3 */
   4178     _flag_a = (uint32_t)(MEM32(ebp + (-0x2C))); _flag_b = (uint32_t)(3);
   4179     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4180     _flag_k = FK_CMP;
   4181 L_36044B70:
   4182     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044B70: jne 0x36045156 */
   4183 L_36044B76:
   4184     ecx = esi; /* 0x36044B76: mov ecx, esi */
   4185 L_36044B78:
   4186     RECOMP_ICALL(0x3606C640u); /* 0x36044B78: call 0x3606c640 */ /* not lifted */
   4187     RECOMP_FLAGS_IN();
   4188 L_36044B7D:
   4189     /* cmp eax, 4 */ /* 0x36044B7D: cmp eax, 4 */
   4190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4192     _flag_k = FK_CMP;
   4193 L_36044B80:
   4194     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044B80: jne 0x36045156 */
   4195 L_36044B86:
   4196     ebx = 1; /* 0x36044B86: mov ebx, 1 */
   4197 L_36044B8B:
   4198     PUSH32(esp, 8); /* 0x36044B8B: push 8 */
   4199 L_36044B8D:
   4200     MEM32(ebp + (-0x18)) = ebx; /* 0x36044B8D: mov dword ptr [ebp - 0x18], ebx */
   4201 L_36044B90:
   4202     MEM32(ebp + (-0x1C)) = 0; /* 0x36044B90: mov dword ptr [ebp - 0x1c], 0 */
   4203 L_36044B97:
   4204     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044B97: mov byte ptr [edi + 4], bl */
   4205 L_36044B9A:
   4206     RECOMP_ICALL(0x3615FD6Au); /* 0x36044B9A: call 0x3615fd6a */ /* not lifted */
   4207     RECOMP_FLAGS_IN();
   4208 L_36044B9F:
   4209     ebx = eax; /* 0x36044B9F: mov ebx, eax */
   4210 L_36044BA1:
   4211     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4212     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4213     esp = esp + 4; /* 0x36044BA1: add esp, 4 */
   4214     _flag_k = FK_ADD;
   4215 L_36044BA4:
   4216     /* test ebx, ebx */ /* 0x36044BA4: test ebx, ebx */
   4217     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4218     _cf = 0;
   4219     _flag_k = FK_TEST;
   4220 L_36044BA6:
   4221     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044BA6: je 0x3604514c */
   4222 L_36044BAC:
   4223     ecx = esi; /* 0x36044BAC: mov ecx, esi */
   4224 L_36044BAE:
   4225     RECOMP_ICALL(0x360C5490u); /* 0x36044BAE: call 0x360c5490 */ /* not lifted */
   4226     RECOMP_FLAGS_IN();
   4227 L_36044BB3:
   4228     MEM32(ebx + 0x4) = eax; /* 0x36044BB3: mov dword ptr [ebx + 4], eax */
   4229 L_36044BB6:
   4230     MEM32(ebx) = 0x36170D00u; /* 0x36044BB6: mov dword ptr [ebx], 0x36170d00 */
   4231 L_36044BBC:
   4232     goto L_3604514E; /* 0x36044BBC: jmp 0x3604514e */
   4233 L_36044BC1:
   4234     PUSH32(esp, 8); /* 0x36044BC1: push 8 */
   4235 L_36044BC3:
   4236     MEM32(ebp + (-0x20)) = 5; /* 0x36044BC3: mov dword ptr [ebp - 0x20], 5 */
   4237 L_36044BCA:
   4238     MEM32(ebp + (-0x24)) = 3; /* 0x36044BCA: mov dword ptr [ebp - 0x24], 3 */
   4239 L_36044BD1:
   4240     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044BD1: mov byte ptr [edi + 4], 1 */
   4241 L_36044BD5:
   4242     RECOMP_ICALL(0x3615FD6Au); /* 0x36044BD5: call 0x3615fd6a */ /* not lifted */
   4243     RECOMP_FLAGS_IN();
   4244 L_36044BDA:
   4245     ebx = eax; /* 0x36044BDA: mov ebx, eax */
   4246 L_36044BDC:
   4247     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4248     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4249     esp = esp + 4; /* 0x36044BDC: add esp, 4 */
   4250     _flag_k = FK_ADD;
   4251 L_36044BDF:
   4252     /* test ebx, ebx */ /* 0x36044BDF: test ebx, ebx */
   4253     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4254     _cf = 0;
   4255     _flag_k = FK_TEST;
   4256 L_36044BE1:
   4257     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044BE1: je 0x3604514c */
   4258 L_36044BE7:
   4259     ecx = esi; /* 0x36044BE7: mov ecx, esi */
   4260 L_36044BE9:
   4261     RECOMP_ICALL(0x360C5490u); /* 0x36044BE9: call 0x360c5490 */ /* not lifted */
   4262     RECOMP_FLAGS_IN();
   4263 L_36044BEE:
   4264     MEM32(ebx + 0x4) = eax; /* 0x36044BEE: mov dword ptr [ebx + 4], eax */
   4265 L_36044BF1:
   4266     MEM32(ebx) = 0x36170CF4u; /* 0x36044BF1: mov dword ptr [ebx], 0x36170cf4 */
   4267 L_36044BF7:
   4268     goto L_3604514E; /* 0x36044BF7: jmp 0x3604514e */
   4269 L_36044BFC:
   4270     ecx = esi; /* 0x36044BFC: mov ecx, esi */
   4271 L_36044BFE:
   4272     RECOMP_ICALL(0x360F1670u); /* 0x36044BFE: call 0x360f1670 */ /* not lifted */
   4273     RECOMP_FLAGS_IN();
   4274 L_36044C03:
   4275     /* cmp eax, 5 */ /* 0x36044C03: cmp eax, 5 */
   4276     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
   4277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4278     _flag_k = FK_CMP;
   4279 L_36044C06:
   4280     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044C06: jne 0x36045156 */
   4281 L_36044C0C:
   4282     ecx = esi; /* 0x36044C0C: mov ecx, esi */
   4283 L_36044C0E:
   4284     RECOMP_ICALL(0x360F1680u); /* 0x36044C0E: call 0x360f1680 */ /* not lifted */
   4285     RECOMP_FLAGS_IN();
   4286 L_36044C13:
   4287     /* cmp eax, 3 */ /* 0x36044C13: cmp eax, 3 */
   4288     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4290     _flag_k = FK_CMP;
   4291 L_36044C16:
   4292     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044C16: jne 0x36045156 */
   4293 L_36044C1C:
   4294     ebx = 1; /* 0x36044C1C: mov ebx, 1 */
   4295 L_36044C21:
   4296     PUSH32(esp, 8); /* 0x36044C21: push 8 */
   4297 L_36044C23:
   4298     MEM32(ebp + (-0x20)) = ebx; /* 0x36044C23: mov dword ptr [ebp - 0x20], ebx */
   4299 L_36044C26:
   4300     MEM32(ebp + (-0x24)) = 0; /* 0x36044C26: mov dword ptr [ebp - 0x24], 0 */
   4301 L_36044C2D:
   4302     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044C2D: mov byte ptr [edi + 4], bl */
   4303 L_36044C30:
   4304     RECOMP_ICALL(0x3615FD6Au); /* 0x36044C30: call 0x3615fd6a */ /* not lifted */
   4305     RECOMP_FLAGS_IN();
   4306 L_36044C35:
   4307     ebx = eax; /* 0x36044C35: mov ebx, eax */
   4308 L_36044C37:
   4309     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4311     esp = esp + 4; /* 0x36044C37: add esp, 4 */
   4312     _flag_k = FK_ADD;
   4313 L_36044C3A:
   4314     /* test ebx, ebx */ /* 0x36044C3A: test ebx, ebx */
   4315     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4316     _cf = 0;
   4317     _flag_k = FK_TEST;
   4318 L_36044C3C:
   4319     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044C3C: je 0x3604514c */
   4320 L_36044C42:
   4321     ecx = esi; /* 0x36044C42: mov ecx, esi */
   4322 L_36044C44:
   4323     RECOMP_ICALL(0x360C5490u); /* 0x36044C44: call 0x360c5490 */ /* not lifted */
   4324     RECOMP_FLAGS_IN();
   4325 L_36044C49:
   4326     MEM32(ebx + 0x4) = eax; /* 0x36044C49: mov dword ptr [ebx + 4], eax */
   4327 L_36044C4C:
   4328     MEM32(ebx) = 0x36170CE8u; /* 0x36044C4C: mov dword ptr [ebx], 0x36170ce8 */
   4329 L_36044C52:
   4330     goto L_3604514E; /* 0x36044C52: jmp 0x3604514e */
   4331 L_36044C57:
   4332     PUSH32(esp, 8); /* 0x36044C57: push 8 */
   4333 L_36044C59:
   4334     MEM32(ebp + (-0x20)) = 5; /* 0x36044C59: mov dword ptr [ebp - 0x20], 5 */
   4335 L_36044C60:
   4336     MEM32(ebp + (-0x24)) = 4; /* 0x36044C60: mov dword ptr [ebp - 0x24], 4 */
   4337 L_36044C67:
   4338     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044C67: mov byte ptr [edi + 4], 1 */
   4339 L_36044C6B:
   4340     RECOMP_ICALL(0x3615FD6Au); /* 0x36044C6B: call 0x3615fd6a */ /* not lifted */
   4341     RECOMP_FLAGS_IN();
   4342 L_36044C70:
   4343     ebx = eax; /* 0x36044C70: mov ebx, eax */
   4344 L_36044C72:
   4345     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4346     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4347     esp = esp + 4; /* 0x36044C72: add esp, 4 */
   4348     _flag_k = FK_ADD;
   4349 L_36044C75:
   4350     /* test ebx, ebx */ /* 0x36044C75: test ebx, ebx */
   4351     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4352     _cf = 0;
   4353     _flag_k = FK_TEST;
   4354 L_36044C77:
   4355     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044C77: je 0x3604514c */
   4356 L_36044C7D:
   4357     ecx = esi; /* 0x36044C7D: mov ecx, esi */
   4358 L_36044C7F:
   4359     RECOMP_ICALL(0x360C5490u); /* 0x36044C7F: call 0x360c5490 */ /* not lifted */
   4360     RECOMP_FLAGS_IN();
   4361 L_36044C84:
   4362     MEM32(ebx + 0x4) = eax; /* 0x36044C84: mov dword ptr [ebx + 4], eax */
   4363 L_36044C87:
   4364     MEM32(ebx) = 0x36170CDCu; /* 0x36044C87: mov dword ptr [ebx], 0x36170cdc */
   4365 L_36044C8D:
   4366     goto L_3604514E; /* 0x36044C8D: jmp 0x3604514e */
   4367 L_36044C92:
   4368     ecx = esi; /* 0x36044C92: mov ecx, esi */
   4369 L_36044C94:
   4370     RECOMP_ICALL(0x360F1670u); /* 0x36044C94: call 0x360f1670 */ /* not lifted */
   4371     RECOMP_FLAGS_IN();
   4372 L_36044C99:
   4373     /* cmp eax, 5 */ /* 0x36044C99: cmp eax, 5 */
   4374     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
   4375     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4376     _flag_k = FK_CMP;
   4377 L_36044C9C:
   4378     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044C9C: jne 0x36045156 */
   4379 L_36044CA2:
   4380     ecx = esi; /* 0x36044CA2: mov ecx, esi */
   4381 L_36044CA4:
   4382     RECOMP_ICALL(0x360F1680u); /* 0x36044CA4: call 0x360f1680 */ /* not lifted */
   4383     RECOMP_FLAGS_IN();
   4384 L_36044CA9:
   4385     /* cmp eax, 4 */ /* 0x36044CA9: cmp eax, 4 */
   4386     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4387     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4388     _flag_k = FK_CMP;
   4389 L_36044CAC:
   4390     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044CAC: jne 0x36045156 */
   4391 L_36044CB2:
   4392     ebx = 1; /* 0x36044CB2: mov ebx, 1 */
   4393 L_36044CB7:
   4394     PUSH32(esp, 8); /* 0x36044CB7: push 8 */
   4395 L_36044CB9:
   4396     MEM32(ebp + (-0x20)) = ebx; /* 0x36044CB9: mov dword ptr [ebp - 0x20], ebx */
   4397 L_36044CBC:
   4398     MEM32(ebp + (-0x24)) = 0; /* 0x36044CBC: mov dword ptr [ebp - 0x24], 0 */
   4399 L_36044CC3:
   4400     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044CC3: mov byte ptr [edi + 4], bl */
   4401 L_36044CC6:
   4402     RECOMP_ICALL(0x3615FD6Au); /* 0x36044CC6: call 0x3615fd6a */ /* not lifted */
   4403     RECOMP_FLAGS_IN();
   4404 L_36044CCB:
   4405     ebx = eax; /* 0x36044CCB: mov ebx, eax */
   4406 L_36044CCD:
   4407     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4408     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4409     esp = esp + 4; /* 0x36044CCD: add esp, 4 */
   4410     _flag_k = FK_ADD;
   4411 L_36044CD0:
   4412     /* test ebx, ebx */ /* 0x36044CD0: test ebx, ebx */
   4413     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4414     _cf = 0;
   4415     _flag_k = FK_TEST;
   4416 L_36044CD2:
   4417     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044CD2: je 0x3604514c */
   4418 L_36044CD8:
   4419     ecx = esi; /* 0x36044CD8: mov ecx, esi */
   4420 L_36044CDA:
   4421     RECOMP_ICALL(0x360C5490u); /* 0x36044CDA: call 0x360c5490 */ /* not lifted */
   4422     RECOMP_FLAGS_IN();
   4423 L_36044CDF:
   4424     MEM32(ebx + 0x4) = eax; /* 0x36044CDF: mov dword ptr [ebx + 4], eax */
   4425 L_36044CE2:
   4426     MEM32(ebx) = 0x36170CD0u; /* 0x36044CE2: mov dword ptr [ebx], 0x36170cd0 */
   4427 L_36044CE8:
   4428     goto L_3604514E; /* 0x36044CE8: jmp 0x3604514e */
   4429 L_36044CED:
   4430     ecx = esi; /* 0x36044CED: mov ecx, esi */
   4431 L_36044CEF:
   4432     RECOMP_ICALL(0x3614C560u); /* 0x36044CEF: call 0x3614c560 */ /* not lifted */
   4433     RECOMP_FLAGS_IN();
   4434 L_36044CF4:
   4435     /* cmp eax, 4 */ /* 0x36044CF4: cmp eax, 4 */
   4436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4438     _flag_k = FK_CMP;
   4439 L_36044CF7:
   4440     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36044D03; /* 0x36044CF7: jne 0x36044d03 */
   4441 L_36044CF9:
   4442     /* cmp MEM32(ebp + (-0x30)), 7 */ /* 0x36044CF9: cmp dword ptr [ebp - 0x30], 7 */
   4443     _flag_a = (uint32_t)(MEM32(ebp + (-0x30))); _flag_b = (uint32_t)(7);
   4444     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4445     _flag_k = FK_CMP;
   4446 L_36044CFD:
   4447     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044CFD: jne 0x36045156 */
   4448 L_36044D03:
   4449     PUSH32(esp, 8); /* 0x36044D03: push 8 */
   4450 L_36044D05:
   4451     MEM32(ebp + (-0x3C)) = 4; /* 0x36044D05: mov dword ptr [ebp - 0x3c], 4 */
   4452 L_36044D0C:
   4453     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044D0C: mov byte ptr [edi + 4], 1 */
   4454 L_36044D10:
   4455     RECOMP_ICALL(0x3615FD6Au); /* 0x36044D10: call 0x3615fd6a */ /* not lifted */
   4456     RECOMP_FLAGS_IN();
   4457 L_36044D15:
   4458     ebx = eax; /* 0x36044D15: mov ebx, eax */
   4459 L_36044D17:
   4460     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4461     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4462     esp = esp + 4; /* 0x36044D17: add esp, 4 */
   4463     _flag_k = FK_ADD;
   4464 L_36044D1A:
   4465     /* test ebx, ebx */ /* 0x36044D1A: test ebx, ebx */
   4466     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4467     _cf = 0;
   4468     _flag_k = FK_TEST;
   4469 L_36044D1C:
   4470     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044D1C: je 0x3604514c */
   4471 L_36044D22:
   4472     ecx = esi; /* 0x36044D22: mov ecx, esi */
   4473 L_36044D24:
   4474     RECOMP_ICALL(0x360C5490u); /* 0x36044D24: call 0x360c5490 */ /* not lifted */
   4475     RECOMP_FLAGS_IN();
   4476 L_36044D29:
   4477     MEM32(ebx + 0x4) = eax; /* 0x36044D29: mov dword ptr [ebx + 4], eax */
   4478 L_36044D2C:
   4479     MEM32(ebx) = 0x36170CC4u; /* 0x36044D2C: mov dword ptr [ebx], 0x36170cc4 */
   4480 L_36044D32:
   4481     goto L_3604514E; /* 0x36044D32: jmp 0x3604514e */
   4482 L_36044D37:
   4483     ecx = esi; /* 0x36044D37: mov ecx, esi */
   4484 L_36044D39:
   4485     RECOMP_ICALL(0x3614C560u); /* 0x36044D39: call 0x3614c560 */ /* not lifted */
   4486     RECOMP_FLAGS_IN();
   4487 L_36044D3E:
   4488     /* cmp eax, 4 */ /* 0x36044D3E: cmp eax, 4 */
   4489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   4490     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4491     _flag_k = FK_CMP;
   4492 L_36044D41:
   4493     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044D41: jne 0x36045156 */
   4494 L_36044D47:
   4495     /* cmp MEM32(ebp + (-0x30)), 7 */ /* 0x36044D47: cmp dword ptr [ebp - 0x30], 7 */
   4496     _flag_a = (uint32_t)(MEM32(ebp + (-0x30))); _flag_b = (uint32_t)(7);
   4497     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4498     _flag_k = FK_CMP;
   4499 L_36044D4B:
   4500     ebx = 1; /* 0x36044D4B: mov ebx, 1 */
   4501 L_36044D50:
   4502     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36044D55; /* 0x36044D50: je 0x36044d55 */
   4503 L_36044D52:
   4504     MEM32(ebp + (-0x3C)) = ebx; /* 0x36044D52: mov dword ptr [ebp - 0x3c], ebx */
   4505 L_36044D55:
   4506     PUSH32(esp, 8); /* 0x36044D55: push 8 */
   4507 L_36044D57:
   4508     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044D57: mov byte ptr [edi + 4], bl */
   4509 L_36044D5A:
   4510     RECOMP_ICALL(0x3615FD6Au); /* 0x36044D5A: call 0x3615fd6a */ /* not lifted */
   4511     RECOMP_FLAGS_IN();
   4512 L_36044D5F:
   4513     ebx = eax; /* 0x36044D5F: mov ebx, eax */
   4514 L_36044D61:
   4515     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4516     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4517     esp = esp + 4; /* 0x36044D61: add esp, 4 */
   4518     _flag_k = FK_ADD;
   4519 L_36044D64:
   4520     /* test ebx, ebx */ /* 0x36044D64: test ebx, ebx */
   4521     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4522     _cf = 0;
   4523     _flag_k = FK_TEST;
   4524 L_36044D66:
   4525     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044D66: je 0x3604514c */
   4526 L_36044D6C:
   4527     ecx = esi; /* 0x36044D6C: mov ecx, esi */
   4528 L_36044D6E:
   4529     RECOMP_ICALL(0x360C5490u); /* 0x36044D6E: call 0x360c5490 */ /* not lifted */
   4530     RECOMP_FLAGS_IN();
   4531 L_36044D73:
   4532     MEM32(ebx + 0x4) = eax; /* 0x36044D73: mov dword ptr [ebx + 4], eax */
   4533 L_36044D76:
   4534     MEM32(ebx) = 0x36170CB8u; /* 0x36044D76: mov dword ptr [ebx], 0x36170cb8 */
   4535 L_36044D7C:
   4536     goto L_3604514E; /* 0x36044D7C: jmp 0x3604514e */
   4537 L_36044D81:
   4538     /* cmp MEM32(ebp + (-0x30)), 7 */ /* 0x36044D81: cmp dword ptr [ebp - 0x30], 7 */
   4539     _flag_a = (uint32_t)(MEM32(ebp + (-0x30))); _flag_b = (uint32_t)(7);
   4540     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4541     _flag_k = FK_CMP;
   4542 L_36044D85:
   4543     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044D85: jne 0x36045156 */
   4544 L_36044D8B:
   4545     PUSH32(esp, 8); /* 0x36044D8B: push 8 */
   4546 L_36044D8D:
   4547     MEM32(ebp + (-0x34)) = 3; /* 0x36044D8D: mov dword ptr [ebp - 0x34], 3 */
   4548 L_36044D94:
   4549     MEM32(ebp + (-0x38)) = 5; /* 0x36044D94: mov dword ptr [ebp - 0x38], 5 */
   4550 L_36044D9B:
   4551     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044D9B: mov byte ptr [edi + 4], 1 */
   4552 L_36044D9F:
   4553     RECOMP_ICALL(0x3615FD6Au); /* 0x36044D9F: call 0x3615fd6a */ /* not lifted */
   4554     RECOMP_FLAGS_IN();
   4555 L_36044DA4:
   4556     ebx = eax; /* 0x36044DA4: mov ebx, eax */
   4557 L_36044DA6:
   4558     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4559     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4560     esp = esp + 4; /* 0x36044DA6: add esp, 4 */
   4561     _flag_k = FK_ADD;
   4562 L_36044DA9:
   4563     /* test ebx, ebx */ /* 0x36044DA9: test ebx, ebx */
   4564     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4565     _cf = 0;
   4566     _flag_k = FK_TEST;
   4567 L_36044DAB:
   4568     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044DAB: je 0x3604514c */
   4569 L_36044DB1:
   4570     ecx = esi; /* 0x36044DB1: mov ecx, esi */
   4571 L_36044DB3:
   4572     RECOMP_ICALL(0x360C5490u); /* 0x36044DB3: call 0x360c5490 */ /* not lifted */
   4573     RECOMP_FLAGS_IN();
   4574 L_36044DB8:
   4575     MEM32(ebx + 0x4) = eax; /* 0x36044DB8: mov dword ptr [ebx + 4], eax */
   4576 L_36044DBB:
   4577     MEM32(ebx) = 0x36170CACu; /* 0x36044DBB: mov dword ptr [ebx], 0x36170cac */
   4578 L_36044DC1:
   4579     goto L_3604514E; /* 0x36044DC1: jmp 0x3604514e */
   4580 L_36044DC6:
   4581     ecx = esi; /* 0x36044DC6: mov ecx, esi */
   4582 L_36044DC8:
   4583     RECOMP_ICALL(0x3614F570u); /* 0x36044DC8: call 0x3614f570 */ /* not lifted */
   4584     RECOMP_FLAGS_IN();
   4585 L_36044DCD:
   4586     /* cmp eax, 3 */ /* 0x36044DCD: cmp eax, 3 */
   4587     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   4588     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4589     _flag_k = FK_CMP;
   4590 L_36044DD0:
   4591     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044DD0: jne 0x36045156 */
   4592 L_36044DD6:
   4593     ecx = esi; /* 0x36044DD6: mov ecx, esi */
   4594 L_36044DD8:
   4595     RECOMP_ICALL(0x36049790u); /* 0x36044DD8: call 0x36049790 */ /* not lifted */
   4596     RECOMP_FLAGS_IN();
   4597 L_36044DDD:
   4598     /* cmp eax, 5 */ /* 0x36044DDD: cmp eax, 5 */
   4599     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
   4600     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4601     _flag_k = FK_CMP;
   4602 L_36044DE0:
   4603     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044DE0: jne 0x36045156 */
   4604 L_36044DE6:
   4605     ebx = 1; /* 0x36044DE6: mov ebx, 1 */
   4606 L_36044DEB:
   4607     PUSH32(esp, 8); /* 0x36044DEB: push 8 */
   4608 L_36044DED:
   4609     MEM32(ebp + (-0x34)) = ebx; /* 0x36044DED: mov dword ptr [ebp - 0x34], ebx */
   4610 L_36044DF0:
   4611     MEM32(ebp + (-0x38)) = 0; /* 0x36044DF0: mov dword ptr [ebp - 0x38], 0 */
   4612 L_36044DF7:
   4613     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044DF7: mov byte ptr [edi + 4], bl */
   4614 L_36044DFA:
   4615     RECOMP_ICALL(0x3615FD6Au); /* 0x36044DFA: call 0x3615fd6a */ /* not lifted */
   4616     RECOMP_FLAGS_IN();
   4617 L_36044DFF:
   4618     ebx = eax; /* 0x36044DFF: mov ebx, eax */
   4619 L_36044E01:
   4620     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4621     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4622     esp = esp + 4; /* 0x36044E01: add esp, 4 */
   4623     _flag_k = FK_ADD;
   4624 L_36044E04:
   4625     /* test ebx, ebx */ /* 0x36044E04: test ebx, ebx */
   4626     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4627     _cf = 0;
   4628     _flag_k = FK_TEST;
   4629 L_36044E06:
   4630     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044E06: je 0x3604514c */
   4631 L_36044E0C:
   4632     ecx = esi; /* 0x36044E0C: mov ecx, esi */
   4633 L_36044E0E:
   4634     RECOMP_ICALL(0x360C5490u); /* 0x36044E0E: call 0x360c5490 */ /* not lifted */
   4635     RECOMP_FLAGS_IN();
   4636 L_36044E13:
   4637     MEM32(ebx + 0x4) = eax; /* 0x36044E13: mov dword ptr [ebx + 4], eax */
   4638 L_36044E16:
   4639     MEM32(ebx) = 0x36170CA0u; /* 0x36044E16: mov dword ptr [ebx], 0x36170ca0 */
   4640 L_36044E1C:
   4641     goto L_3604514E; /* 0x36044E1C: jmp 0x3604514e */
   4642 L_36044E21:
   4643     ebx = 1; /* 0x36044E21: mov ebx, 1 */
   4644 L_36044E26:
   4645     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4646     eax = 0; /* 0x36044E26: xor eax, eax */
   4647     _cf = 0;
   4648     _flag_k = FK_TEST;
   4649 L_36044E28:
   4650     PUSH32(esp, 8); /* 0x36044E28: push 8 */
   4651 L_36044E2A:
   4652     MEM32(ebp + (-0x10)) = ebx; /* 0x36044E2A: mov dword ptr [ebp - 0x10], ebx */
   4653 L_36044E2D:
   4654     MEM32(ebp + (-0x14)) = eax; /* 0x36044E2D: mov dword ptr [ebp - 0x14], eax */
   4655 L_36044E30:
   4656     MEM32(ebp + (-0x18)) = ebx; /* 0x36044E30: mov dword ptr [ebp - 0x18], ebx */
   4657 L_36044E33:
   4658     MEM32(ebp + (-0x1C)) = eax; /* 0x36044E33: mov dword ptr [ebp - 0x1c], eax */
   4659 L_36044E36:
   4660     MEM32(ebp + (-0x20)) = ebx; /* 0x36044E36: mov dword ptr [ebp - 0x20], ebx */
   4661 L_36044E39:
   4662     MEM32(ebp + (-0x24)) = eax; /* 0x36044E39: mov dword ptr [ebp - 0x24], eax */
   4663 L_36044E3C:
   4664     MEM32(ebp + (-0x3C)) = ebx; /* 0x36044E3C: mov dword ptr [ebp - 0x3c], ebx */
   4665 L_36044E3F:
   4666     MEM32(ebp + (-0x34)) = ebx; /* 0x36044E3F: mov dword ptr [ebp - 0x34], ebx */
   4667 L_36044E42:
   4668     MEM32(ebp + (-0x38)) = eax; /* 0x36044E42: mov dword ptr [ebp - 0x38], eax */
   4669 L_36044E45:
   4670     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36044E45: mov byte ptr [edi + 4], bl */
   4671 L_36044E48:
   4672     RECOMP_ICALL(0x3615FD6Au); /* 0x36044E48: call 0x3615fd6a */ /* not lifted */
   4673     RECOMP_FLAGS_IN();
   4674 L_36044E4D:
   4675     ebx = eax; /* 0x36044E4D: mov ebx, eax */
   4676 L_36044E4F:
   4677     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4678     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4679     esp = esp + 4; /* 0x36044E4F: add esp, 4 */
   4680     _flag_k = FK_ADD;
   4681 L_36044E52:
   4682     /* test ebx, ebx */ /* 0x36044E52: test ebx, ebx */
   4683     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4684     _cf = 0;
   4685     _flag_k = FK_TEST;
   4686 L_36044E54:
   4687     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044E54: je 0x3604514c */
   4688 L_36044E5A:
   4689     ecx = esi; /* 0x36044E5A: mov ecx, esi */
   4690 L_36044E5C:
   4691     RECOMP_ICALL(0x360C5490u); /* 0x36044E5C: call 0x360c5490 */ /* not lifted */
   4692     RECOMP_FLAGS_IN();
   4693 L_36044E61:
   4694     MEM32(ebx + 0x4) = eax; /* 0x36044E61: mov dword ptr [ebx + 4], eax */
   4695 L_36044E64:
   4696     MEM32(ebx) = 0x36170C94u; /* 0x36044E64: mov dword ptr [ebx], 0x36170c94 */
   4697 L_36044E6A:
   4698     goto L_3604514E; /* 0x36044E6A: jmp 0x3604514e */
   4699 L_36044E6F:
   4700     PUSH32(esp, 8); /* 0x36044E6F: push 8 */
   4701 L_36044E71:
   4702     MEM32(ebp + 0x8) = 3; /* 0x36044E71: mov dword ptr [ebp + 8], 3 */
   4703 L_36044E78:
   4704     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044E78: mov byte ptr [edi + 4], 1 */
   4705 L_36044E7C:
   4706     RECOMP_ICALL(0x3615FD6Au); /* 0x36044E7C: call 0x3615fd6a */ /* not lifted */
   4707     RECOMP_FLAGS_IN();
   4708 L_36044E81:
   4709     ebx = eax; /* 0x36044E81: mov ebx, eax */
   4710 L_36044E83:
   4711     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4712     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4713     esp = esp + 4; /* 0x36044E83: add esp, 4 */
   4714     _flag_k = FK_ADD;
   4715 L_36044E86:
   4716     /* test ebx, ebx */ /* 0x36044E86: test ebx, ebx */
   4717     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4718     _cf = 0;
   4719     _flag_k = FK_TEST;
   4720 L_36044E88:
   4721     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36044EAE; /* 0x36044E88: je 0x36044eae */
   4722 L_36044E8A:
   4723     ecx = esi; /* 0x36044E8A: mov ecx, esi */
   4724 L_36044E8C:
   4725     RECOMP_ICALL(0x360C5490u); /* 0x36044E8C: call 0x360c5490 */ /* not lifted */
   4726     RECOMP_FLAGS_IN();
   4727 L_36044E91:
   4728     PUSH32(esp, ebx); /* 0x36044E91: push ebx */
   4729 L_36044E92:
   4730     ecx = edi; /* 0x36044E92: mov ecx, edi */
   4731 L_36044E94:
   4732     MEM32(ebx + 0x4) = eax; /* 0x36044E94: mov dword ptr [ebx + 4], eax */
   4733 L_36044E97:
   4734     MEM32(ebx) = 0x36170C88u; /* 0x36044E97: mov dword ptr [ebx], 0x36170c88 */
   4735 L_36044E9D:
   4736     RECOMP_ICALL(0x360495D0u); /* 0x36044E9D: call 0x360495d0 */ /* not lifted */
   4737     RECOMP_FLAGS_IN();
   4738 L_36044EA2:
   4739     MEM32(esi + 0x30) = 3; /* 0x36044EA2: mov dword ptr [esi + 0x30], 3 */
   4740 L_36044EA9:
   4741     goto L_36045156; /* 0x36044EA9: jmp 0x36045156 */
   4742 L_36044EAE:
   4743     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4744     ebx = 0; /* 0x36044EAE: xor ebx, ebx */
   4745     _cf = 0;
   4746     _flag_k = FK_TEST;
   4747 L_36044EB0:
   4748     PUSH32(esp, ebx); /* 0x36044EB0: push ebx */
   4749 L_36044EB1:
   4750     ecx = edi; /* 0x36044EB1: mov ecx, edi */
   4751 L_36044EB3:
   4752     RECOMP_ICALL(0x360495D0u); /* 0x36044EB3: call 0x360495d0 */ /* not lifted */
   4753     RECOMP_FLAGS_IN();
   4754 L_36044EB8:
   4755     MEM32(esi + 0x30) = 3; /* 0x36044EB8: mov dword ptr [esi + 0x30], 3 */
   4756 L_36044EBF:
   4757     goto L_36045156; /* 0x36044EBF: jmp 0x36045156 */
   4758 L_36044EC4:
   4759     PUSH32(esp, 8); /* 0x36044EC4: push 8 */
   4760 L_36044EC6:
   4761     MEM32(ebp + 0x8) = 2; /* 0x36044EC6: mov dword ptr [ebp + 8], 2 */
   4762 L_36044ECD:
   4763     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044ECD: mov byte ptr [edi + 4], 1 */
   4764 L_36044ED1:
   4765     RECOMP_ICALL(0x3615FD6Au); /* 0x36044ED1: call 0x3615fd6a */ /* not lifted */
   4766     RECOMP_FLAGS_IN();
   4767 L_36044ED6:
   4768     ebx = eax; /* 0x36044ED6: mov ebx, eax */
   4769 L_36044ED8:
   4770     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4771     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4772     esp = esp + 4; /* 0x36044ED8: add esp, 4 */
   4773     _flag_k = FK_ADD;
   4774 L_36044EDB:
   4775     /* test ebx, ebx */ /* 0x36044EDB: test ebx, ebx */
   4776     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4777     _cf = 0;
   4778     _flag_k = FK_TEST;
   4779 L_36044EDD:
   4780     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044EDD: je 0x3604514c */
   4781 L_36044EE3:
   4782     ecx = esi; /* 0x36044EE3: mov ecx, esi */
   4783 L_36044EE5:
   4784     RECOMP_ICALL(0x360C5490u); /* 0x36044EE5: call 0x360c5490 */ /* not lifted */
   4785     RECOMP_FLAGS_IN();
   4786 L_36044EEA:
   4787     MEM32(ebx + 0x4) = eax; /* 0x36044EEA: mov dword ptr [ebx + 4], eax */
   4788 L_36044EED:
   4789     MEM32(ebx) = 0x36170C7Cu; /* 0x36044EED: mov dword ptr [ebx], 0x36170c7c */
   4790 L_36044EF3:
   4791     goto L_3604514E; /* 0x36044EF3: jmp 0x3604514e */
   4792 L_36044EF8:
   4793     PUSH32(esp, 8); /* 0x36044EF8: push 8 */
   4794 L_36044EFA:
   4795     MEM32(ebp + 0x8) = 4; /* 0x36044EFA: mov dword ptr [ebp + 8], 4 */
   4796 L_36044F01:
   4797     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044F01: mov byte ptr [edi + 4], 1 */
   4798 L_36044F05:
   4799     RECOMP_ICALL(0x3615FD6Au); /* 0x36044F05: call 0x3615fd6a */ /* not lifted */
   4800     RECOMP_FLAGS_IN();
   4801 L_36044F0A:
   4802     ebx = eax; /* 0x36044F0A: mov ebx, eax */
   4803 L_36044F0C:
   4804     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4805     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4806     esp = esp + 4; /* 0x36044F0C: add esp, 4 */
   4807     _flag_k = FK_ADD;
   4808 L_36044F0F:
   4809     /* test ebx, ebx */ /* 0x36044F0F: test ebx, ebx */
   4810     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4811     _cf = 0;
   4812     _flag_k = FK_TEST;
   4813 L_36044F11:
   4814     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044F11: je 0x3604514c */
   4815 L_36044F17:
   4816     ecx = esi; /* 0x36044F17: mov ecx, esi */
   4817 L_36044F19:
   4818     RECOMP_ICALL(0x360C5490u); /* 0x36044F19: call 0x360c5490 */ /* not lifted */
   4819     RECOMP_FLAGS_IN();
   4820 L_36044F1E:
   4821     MEM32(ebx + 0x4) = eax; /* 0x36044F1E: mov dword ptr [ebx + 4], eax */
   4822 L_36044F21:
   4823     MEM32(ebx) = 0x36170C70u; /* 0x36044F21: mov dword ptr [ebx], 0x36170c70 */
   4824 L_36044F27:
   4825     goto L_3604514E; /* 0x36044F27: jmp 0x3604514e */
   4826 L_36044F2C:
   4827     eax = MEM32(esi + 0x30); /* 0x36044F2C: mov eax, dword ptr [esi + 0x30] */
   4828 L_36044F2F:
   4829     PUSH32(esp, 8); /* 0x36044F2F: push 8 */
   4830 L_36044F31:
   4831     MEM32(ebp + 0x8) = eax; /* 0x36044F31: mov dword ptr [ebp + 8], eax */
   4832 L_36044F34:
   4833     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044F34: mov byte ptr [edi + 4], 1 */
   4834 L_36044F38:
   4835     RECOMP_ICALL(0x3615FD6Au); /* 0x36044F38: call 0x3615fd6a */ /* not lifted */
   4836     RECOMP_FLAGS_IN();
   4837 L_36044F3D:
   4838     ebx = eax; /* 0x36044F3D: mov ebx, eax */
   4839 L_36044F3F:
   4840     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4841     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4842     esp = esp + 4; /* 0x36044F3F: add esp, 4 */
   4843     _flag_k = FK_ADD;
   4844 L_36044F42:
   4845     /* test ebx, ebx */ /* 0x36044F42: test ebx, ebx */
   4846     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4847     _cf = 0;
   4848     _flag_k = FK_TEST;
   4849 L_36044F44:
   4850     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044F44: je 0x3604514c */
   4851 L_36044F4A:
   4852     ecx = esi; /* 0x36044F4A: mov ecx, esi */
   4853 L_36044F4C:
   4854     RECOMP_ICALL(0x360C5490u); /* 0x36044F4C: call 0x360c5490 */ /* not lifted */
   4855     RECOMP_FLAGS_IN();
   4856 L_36044F51:
   4857     MEM32(ebx + 0x4) = eax; /* 0x36044F51: mov dword ptr [ebx + 4], eax */
   4858 L_36044F54:
   4859     MEM32(ebx) = 0x36170C64u; /* 0x36044F54: mov dword ptr [ebx], 0x36170c64 */
   4860 L_36044F5A:
   4861     goto L_3604514E; /* 0x36044F5A: jmp 0x3604514e */
   4862 L_36044F5F:
   4863     PUSH32(esp, 8); /* 0x36044F5F: push 8 */
   4864 L_36044F61:
   4865     MEM32(ebp + 0x8) = 6; /* 0x36044F61: mov dword ptr [ebp + 8], 6 */
   4866 L_36044F68:
   4867     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044F68: mov byte ptr [edi + 4], 1 */
   4868 L_36044F6C:
   4869     RECOMP_ICALL(0x3615FD6Au); /* 0x36044F6C: call 0x3615fd6a */ /* not lifted */
   4870     RECOMP_FLAGS_IN();
   4871 L_36044F71:
   4872     ebx = eax; /* 0x36044F71: mov ebx, eax */
   4873 L_36044F73:
   4874     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4875     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4876     esp = esp + 4; /* 0x36044F73: add esp, 4 */
   4877     _flag_k = FK_ADD;
   4878 L_36044F76:
   4879     /* test ebx, ebx */ /* 0x36044F76: test ebx, ebx */
   4880     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4881     _cf = 0;
   4882     _flag_k = FK_TEST;
   4883 L_36044F78:
   4884     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044F78: je 0x3604514c */
   4885 L_36044F7E:
   4886     ecx = esi; /* 0x36044F7E: mov ecx, esi */
   4887 L_36044F80:
   4888     RECOMP_ICALL(0x360C5490u); /* 0x36044F80: call 0x360c5490 */ /* not lifted */
   4889     RECOMP_FLAGS_IN();
   4890 L_36044F85:
   4891     MEM32(ebx + 0x4) = eax; /* 0x36044F85: mov dword ptr [ebx + 4], eax */
   4892 L_36044F88:
   4893     MEM32(ebx) = 0x36170C58u; /* 0x36044F88: mov dword ptr [ebx], 0x36170c58 */
   4894 L_36044F8E:
   4895     goto L_3604514E; /* 0x36044F8E: jmp 0x3604514e */
   4896 L_36044F93:
   4897     ecx = MEM32(esi + 0x30); /* 0x36044F93: mov ecx, dword ptr [esi + 0x30] */
   4898 L_36044F96:
   4899     PUSH32(esp, 8); /* 0x36044F96: push 8 */
   4900 L_36044F98:
   4901     MEM32(ebp + 0x8) = ecx; /* 0x36044F98: mov dword ptr [ebp + 8], ecx */
   4902 L_36044F9B:
   4903     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044F9B: mov byte ptr [edi + 4], 1 */
   4904 L_36044F9F:
   4905     RECOMP_ICALL(0x3615FD6Au); /* 0x36044F9F: call 0x3615fd6a */ /* not lifted */
   4906     RECOMP_FLAGS_IN();
   4907 L_36044FA4:
   4908     ebx = eax; /* 0x36044FA4: mov ebx, eax */
   4909 L_36044FA6:
   4910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4912     esp = esp + 4; /* 0x36044FA6: add esp, 4 */
   4913     _flag_k = FK_ADD;
   4914 L_36044FA9:
   4915     /* test ebx, ebx */ /* 0x36044FA9: test ebx, ebx */
   4916     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4917     _cf = 0;
   4918     _flag_k = FK_TEST;
   4919 L_36044FAB:
   4920     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044FAB: je 0x3604514c */
   4921 L_36044FB1:
   4922     ecx = esi; /* 0x36044FB1: mov ecx, esi */
   4923 L_36044FB3:
   4924     RECOMP_ICALL(0x360C5490u); /* 0x36044FB3: call 0x360c5490 */ /* not lifted */
   4925     RECOMP_FLAGS_IN();
   4926 L_36044FB8:
   4927     MEM32(ebx + 0x4) = eax; /* 0x36044FB8: mov dword ptr [ebx + 4], eax */
   4928 L_36044FBB:
   4929     MEM32(ebx) = 0x36170C4Cu; /* 0x36044FBB: mov dword ptr [ebx], 0x36170c4c */
   4930 L_36044FC1:
   4931     goto L_3604514E; /* 0x36044FC1: jmp 0x3604514e */
   4932 L_36044FC6:
   4933     edx = MEM32(esi); /* 0x36044FC6: mov edx, dword ptr [esi] */
   4934 L_36044FC8:
   4935     ecx = esi; /* 0x36044FC8: mov ecx, esi */
   4936 L_36044FCA:
   4937     RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36044FCA: call dword ptr [edx + 0x1c] */
   4938     RECOMP_FLAGS_IN();
   4939 L_36044FCD:
   4940     /* test LO8(eax), LO8(eax) */ /* 0x36044FCD: test al, al */
   4941     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   4942     _cf = 0;
   4943     _flag_k = FK_NARROW(FK_TEST, 24);
   4944 L_36044FCF:
   4945     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36045156; /* 0x36044FCF: jne 0x36045156 */
   4946 L_36044FD5:
   4947     PUSH32(esp, 8); /* 0x36044FD5: push 8 */
   4948 L_36044FD7:
   4949     MEM32(ebp + 0x8) = 8; /* 0x36044FD7: mov dword ptr [ebp + 8], 8 */
   4950 L_36044FDE:
   4951     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36044FDE: mov byte ptr [edi + 4], 1 */
   4952 L_36044FE2:
   4953     RECOMP_ICALL(0x3615FD6Au); /* 0x36044FE2: call 0x3615fd6a */ /* not lifted */
   4954     RECOMP_FLAGS_IN();
   4955 L_36044FE7:
   4956     ebx = eax; /* 0x36044FE7: mov ebx, eax */
   4957 L_36044FE9:
   4958     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4959     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4960     esp = esp + 4; /* 0x36044FE9: add esp, 4 */
   4961     _flag_k = FK_ADD;
   4962 L_36044FEC:
   4963     /* test ebx, ebx */ /* 0x36044FEC: test ebx, ebx */
   4964     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   4965     _cf = 0;
   4966     _flag_k = FK_TEST;
   4967 L_36044FEE:
   4968     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36044FEE: je 0x3604514c */
   4969 L_36044FF4:
   4970     ecx = esi; /* 0x36044FF4: mov ecx, esi */
   4971 L_36044FF6:
   4972     RECOMP_ICALL(0x360C5490u); /* 0x36044FF6: call 0x360c5490 */ /* not lifted */
   4973     RECOMP_FLAGS_IN();
   4974 L_36044FFB:
   4975     MEM32(ebx + 0x4) = eax; /* 0x36044FFB: mov dword ptr [ebx + 4], eax */
   4976 L_36044FFE:
   4977     MEM32(ebx) = 0x36170C40u; /* 0x36044FFE: mov dword ptr [ebx], 0x36170c40 */
   4978 L_36045004:
   4979     goto L_3604514E; /* 0x36045004: jmp 0x3604514e */
   4980 L_36045009:
   4981     ebx = 1; /* 0x36045009: mov ebx, 1 */
   4982 L_3604500E:
   4983     ecx = esi; /* 0x3604500E: mov ecx, esi */
   4984 L_36045010:
   4985     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x36045010: mov byte ptr [edi + 4], bl */
   4986 L_36045013:
   4987     RECOMP_ICALL(0x360C5490u); /* 0x36045013: call 0x360c5490 */ /* not lifted */
   4988     RECOMP_FLAGS_IN();
   4989 L_36045018:
   4990     ecx = eax; /* 0x36045018: mov ecx, eax */
   4991 L_3604501A:
   4992     RECOMP_ICALL(0x360478D0u); /* 0x3604501A: call 0x360478d0 */ /* not lifted */
   4993     RECOMP_FLAGS_IN();
   4994 L_3604501F:
   4995     eax = MEM32(eax + 0x188); /* 0x3604501F: mov eax, dword ptr [eax + 0x188] */
   4996 L_36045025:
   4997     PUSH32(esp, 4); /* 0x36045025: push 4 */
   4998 L_36045027:
   4999     ecx = eax; /* 0x36045027: mov ecx, eax */
   5000 L_36045029:
   5001     RECOMP_ICALL(0x36059BA0u); /* 0x36045029: call 0x36059ba0 */ /* not lifted */
   5002     RECOMP_FLAGS_IN();
   5003 L_3604502E:
   5004     /* test LO8(eax), LO8(eax) */ /* 0x3604502E: test al, al */
   5005     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   5006     _cf = 0;
   5007     _flag_k = FK_NARROW(FK_TEST, 24);
   5008 L_36045030:
   5009     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3604505E; /* 0x36045030: jne 0x3604505e */
   5010 L_36045032:
   5011     PUSH32(esp, 8); /* 0x36045032: push 8 */
   5012 L_36045034:
   5013     MEM32(ebp + 0x8) = ebx; /* 0x36045034: mov dword ptr [ebp + 8], ebx */
   5014 L_36045037:
   5015     RECOMP_ICALL(0x3615FD6Au); /* 0x36045037: call 0x3615fd6a */ /* not lifted */
   5016     RECOMP_FLAGS_IN();
   5017 L_3604503C:
   5018     ebx = eax; /* 0x3604503C: mov ebx, eax */
   5019 L_3604503E:
   5020     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5021     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5022     esp = esp + 4; /* 0x3604503E: add esp, 4 */
   5023     _flag_k = FK_ADD;
   5024 L_36045041:
   5025     /* test ebx, ebx */ /* 0x36045041: test ebx, ebx */
   5026     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5027     _cf = 0;
   5028     _flag_k = FK_TEST;
   5029 L_36045043:
   5030     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36045043: je 0x3604514c */
   5031 L_36045049:
   5032     ecx = esi; /* 0x36045049: mov ecx, esi */
   5033 L_3604504B:
   5034     RECOMP_ICALL(0x360C5490u); /* 0x3604504B: call 0x360c5490 */ /* not lifted */
   5035     RECOMP_FLAGS_IN();
   5036 L_36045050:
   5037     MEM32(ebx + 0x4) = eax; /* 0x36045050: mov dword ptr [ebx + 4], eax */
   5038 L_36045053:
   5039     MEM32(ebx) = 0x36170C34u; /* 0x36045053: mov dword ptr [ebx], 0x36170c34 */
   5040 L_36045059:
   5041     goto L_3604514E; /* 0x36045059: jmp 0x3604514e */
   5042 L_3604505E:
   5043     /* cmp MEM32(ebp + (-0x30)), 8 */ /* 0x3604505E: cmp dword ptr [ebp - 0x30], 8 */
   5044     _flag_a = (uint32_t)(MEM32(ebp + (-0x30))); _flag_b = (uint32_t)(8);
   5045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5046     _flag_k = FK_CMP;
   5047 L_36045062:
   5048     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3604506A; /* 0x36045062: jne 0x3604506a */
   5049 L_36045064:
   5050     eax = MEM32(esi + 0x30); /* 0x36045064: mov eax, dword ptr [esi + 0x30] */
   5051 L_36045067:
   5052     MEM32(ebp + 0x8) = eax; /* 0x36045067: mov dword ptr [ebp + 8], eax */
   5053 L_3604506A:
   5054     PUSH32(esp, 8); /* 0x3604506A: push 8 */
   5055 L_3604506C:
   5056     RECOMP_ICALL(0x3615FD6Au); /* 0x3604506C: call 0x3615fd6a */ /* not lifted */
   5057     RECOMP_FLAGS_IN();
   5058 L_36045071:
   5059     ebx = eax; /* 0x36045071: mov ebx, eax */
   5060 L_36045073:
   5061     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5062     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5063     esp = esp + 4; /* 0x36045073: add esp, 4 */
   5064     _flag_k = FK_ADD;
   5065 L_36045076:
   5066     /* test ebx, ebx */ /* 0x36045076: test ebx, ebx */
   5067     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5068     _cf = 0;
   5069     _flag_k = FK_TEST;
   5070 L_36045078:
   5071     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36045078: je 0x3604514c */
   5072 L_3604507E:
   5073     ecx = esi; /* 0x3604507E: mov ecx, esi */
   5074 L_36045080:
   5075     RECOMP_ICALL(0x360C5490u); /* 0x36045080: call 0x360c5490 */ /* not lifted */
   5076     RECOMP_FLAGS_IN();
   5077 L_36045085:
   5078     MEM32(ebx + 0x4) = eax; /* 0x36045085: mov dword ptr [ebx + 4], eax */
   5079 L_36045088:
   5080     MEM32(ebx) = 0x36170C28u; /* 0x36045088: mov dword ptr [ebx], 0x36170c28 */
   5081 L_3604508E:
   5082     goto L_3604514E; /* 0x3604508E: jmp 0x3604514e */
   5083 L_36045093:
   5084     ebx = 1; /* 0x36045093: mov ebx, 1 */
   5085 L_36045098:
   5086     PUSH32(esp, 8); /* 0x36045098: push 8 */
   5087 L_3604509A:
   5088     MEM32(ebp + 0x8) = ebx; /* 0x3604509A: mov dword ptr [ebp + 8], ebx */
   5089 L_3604509D:
   5090     MEM8(edi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x3604509D: mov byte ptr [edi + 4], bl */
   5091 L_360450A0:
   5092     RECOMP_ICALL(0x3615FD6Au); /* 0x360450A0: call 0x3615fd6a */ /* not lifted */
   5093     RECOMP_FLAGS_IN();
   5094 L_360450A5:
   5095     ebx = eax; /* 0x360450A5: mov ebx, eax */
   5096 L_360450A7:
   5097     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5098     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5099     esp = esp + 4; /* 0x360450A7: add esp, 4 */
   5100     _flag_k = FK_ADD;
   5101 L_360450AA:
   5102     /* test ebx, ebx */ /* 0x360450AA: test ebx, ebx */
   5103     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5104     _cf = 0;
   5105     _flag_k = FK_TEST;
   5106 L_360450AC:
   5107     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x360450AC: je 0x3604514c */
   5108 L_360450B2:
   5109     ecx = esi; /* 0x360450B2: mov ecx, esi */
   5110 L_360450B4:
   5111     RECOMP_ICALL(0x360C5490u); /* 0x360450B4: call 0x360c5490 */ /* not lifted */
   5112     RECOMP_FLAGS_IN();
   5113 L_360450B9:
   5114     MEM32(ebx + 0x4) = eax; /* 0x360450B9: mov dword ptr [ebx + 4], eax */
   5115 L_360450BC:
   5116     MEM32(ebx) = 0x36170C34u; /* 0x360450BC: mov dword ptr [ebx], 0x36170c34 */
   5117 L_360450C2:
   5118     goto L_3604514E; /* 0x360450C2: jmp 0x3604514e */
   5119 L_360450C7:
   5120     ecx = MEM32(esi + 0x30); /* 0x360450C7: mov ecx, dword ptr [esi + 0x30] */
   5121 L_360450CA:
   5122     PUSH32(esp, 8); /* 0x360450CA: push 8 */
   5123 L_360450CC:
   5124     MEM32(ebp + 0x8) = ecx; /* 0x360450CC: mov dword ptr [ebp + 8], ecx */
   5125 L_360450CF:
   5126     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x360450CF: mov byte ptr [edi + 4], 1 */
   5127 L_360450D3:
   5128     RECOMP_ICALL(0x3615FD6Au); /* 0x360450D3: call 0x3615fd6a */ /* not lifted */
   5129     RECOMP_FLAGS_IN();
   5130 L_360450D8:
   5131     ebx = eax; /* 0x360450D8: mov ebx, eax */
   5132 L_360450DA:
   5133     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5134     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5135     esp = esp + 4; /* 0x360450DA: add esp, 4 */
   5136     _flag_k = FK_ADD;
   5137 L_360450DD:
   5138     /* test ebx, ebx */ /* 0x360450DD: test ebx, ebx */
   5139     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5140     _cf = 0;
   5141     _flag_k = FK_TEST;
   5142 L_360450DF:
   5143     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x360450DF: je 0x3604514c */
   5144 L_360450E1:
   5145     ecx = esi; /* 0x360450E1: mov ecx, esi */
   5146 L_360450E3:
   5147     RECOMP_ICALL(0x360C5490u); /* 0x360450E3: call 0x360c5490 */ /* not lifted */
   5148     RECOMP_FLAGS_IN();
   5149 L_360450E8:
   5150     MEM32(ebx + 0x4) = eax; /* 0x360450E8: mov dword ptr [ebx + 4], eax */
   5151 L_360450EB:
   5152     MEM32(ebx) = 0x36170C1Cu; /* 0x360450EB: mov dword ptr [ebx], 0x36170c1c */
   5153 L_360450F1:
   5154     goto L_3604514E; /* 0x360450F1: jmp 0x3604514e */
   5155 L_360450F3:
   5156     PUSH32(esp, 8); /* 0x360450F3: push 8 */
   5157 L_360450F5:
   5158     MEM32(ebp + 0x8) = 7; /* 0x360450F5: mov dword ptr [ebp + 8], 7 */
   5159 L_360450FC:
   5160     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x360450FC: mov byte ptr [edi + 4], 1 */
   5161 L_36045100:
   5162     RECOMP_ICALL(0x3615FD6Au); /* 0x36045100: call 0x3615fd6a */ /* not lifted */
   5163     RECOMP_FLAGS_IN();
   5164 L_36045105:
   5165     ebx = eax; /* 0x36045105: mov ebx, eax */
   5166 L_36045107:
   5167     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5168     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5169     esp = esp + 4; /* 0x36045107: add esp, 4 */
   5170     _flag_k = FK_ADD;
   5171 L_3604510A:
   5172     /* test ebx, ebx */ /* 0x3604510A: test ebx, ebx */
   5173     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5174     _cf = 0;
   5175     _flag_k = FK_TEST;
   5176 L_3604510C:
   5177     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x3604510C: je 0x3604514c */
   5178 L_3604510E:
   5179     ecx = esi; /* 0x3604510E: mov ecx, esi */
   5180 L_36045110:
   5181     RECOMP_ICALL(0x360C5490u); /* 0x36045110: call 0x360c5490 */ /* not lifted */
   5182     RECOMP_FLAGS_IN();
   5183 L_36045115:
   5184     MEM32(ebx + 0x4) = eax; /* 0x36045115: mov dword ptr [ebx + 4], eax */
   5185 L_36045118:
   5186     MEM32(ebx) = 0x36170C10u; /* 0x36045118: mov dword ptr [ebx], 0x36170c10 */
   5187 L_3604511E:
   5188     goto L_3604514E; /* 0x3604511E: jmp 0x3604514e */
   5189 L_36045120:
   5190     edx = MEM32(esi + 0x30); /* 0x36045120: mov edx, dword ptr [esi + 0x30] */
   5191 L_36045123:
   5192     PUSH32(esp, 8); /* 0x36045123: push 8 */
   5193 L_36045125:
   5194     MEM32(ebp + 0x8) = edx; /* 0x36045125: mov dword ptr [ebp + 8], edx */
   5195 L_36045128:
   5196     MEM8(edi + 0x4) = (uint8_t)(1); /* 0x36045128: mov byte ptr [edi + 4], 1 */
   5197 L_3604512C:
   5198     RECOMP_ICALL(0x3615FD6Au); /* 0x3604512C: call 0x3615fd6a */ /* not lifted */
   5199     RECOMP_FLAGS_IN();
   5200 L_36045131:
   5201     ebx = eax; /* 0x36045131: mov ebx, eax */
   5202 L_36045133:
   5203     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5204     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5205     esp = esp + 4; /* 0x36045133: add esp, 4 */
   5206     _flag_k = FK_ADD;
   5207 L_36045136:
   5208     /* test ebx, ebx */ /* 0x36045136: test ebx, ebx */
   5209     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   5210     _cf = 0;
   5211     _flag_k = FK_TEST;
   5212 L_36045138:
   5213     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3604514C; /* 0x36045138: je 0x3604514c */
   5214 L_3604513A:
   5215     ecx = esi; /* 0x3604513A: mov ecx, esi */
   5216 L_3604513C:
   5217     RECOMP_ICALL(0x360C5490u); /* 0x3604513C: call 0x360c5490 */ /* not lifted */
   5218     RECOMP_FLAGS_IN();
   5219 L_36045141:
   5220     MEM32(ebx + 0x4) = eax; /* 0x36045141: mov dword ptr [ebx + 4], eax */
   5221 L_36045144:
   5222     MEM32(ebx) = 0x36170C04u; /* 0x36045144: mov dword ptr [ebx], 0x36170c04 */
   5223 L_3604514A:
   5224     goto L_3604514E; /* 0x3604514A: jmp 0x3604514e */
   5225 L_3604514C:
   5226     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5227     ebx = 0; /* 0x3604514C: xor ebx, ebx */
   5228     _cf = 0;
   5229     _flag_k = FK_TEST;
   5230 L_3604514E:
   5231     PUSH32(esp, ebx); /* 0x3604514E: push ebx */
   5232 L_3604514F:
   5233     ecx = edi; /* 0x3604514F: mov ecx, edi */
   5234 L_36045151:
   5235     RECOMP_ICALL(0x360495D0u); /* 0x36045151: call 0x360495d0 */ /* not lifted */
   5236     RECOMP_FLAGS_IN();
   5237 L_36045156:
   5238     eax = MEM32(ebp + 0x8); /* 0x36045156: mov eax, dword ptr [ebp + 8] */
   5239 L_36045159:
   5240     PUSH32(esp, eax); /* 0x36045159: push eax */
   5241 L_3604515A:
   5242     ecx = edi; /* 0x3604515A: mov ecx, edi */
   5243 L_3604515C:
   5244     RECOMP_ICALL(0x360C5400u); /* 0x3604515C: call 0x360c5400 */ /* not lifted */
   5245     RECOMP_FLAGS_IN();
   5246 L_36045161:
   5247     ecx = eax; /* 0x36045161: mov ecx, eax */
   5248 L_36045163:
   5249     RECOMP_ICALL(0x360C7E50u); /* 0x36045163: call 0x360c7e50 */ /* not lifted */
   5250     RECOMP_FLAGS_IN();
   5251 L_36045168:
   5252     ecx = MEM32(ebp + (-0x10)); /* 0x36045168: mov ecx, dword ptr [ebp - 0x10] */
   5253 L_3604516B:
   5254     PUSH32(esp, ecx); /* 0x3604516B: push ecx */
   5255 L_3604516C:
   5256     ecx = edi; /* 0x3604516C: mov ecx, edi */
   5257 L_3604516E:
   5258     RECOMP_ICALL(0x360C5400u); /* 0x3604516E: call 0x360c5400 */ /* not lifted */
   5259     RECOMP_FLAGS_IN();
   5260 L_36045173:
   5261     ecx = eax; /* 0x36045173: mov ecx, eax */
   5262 L_36045175:
   5263     RECOMP_ICALL(0x360F38B0u); /* 0x36045175: call 0x360f38b0 */ /* not lifted */
   5264     RECOMP_FLAGS_IN();
   5265 L_3604517A:
   5266     edx = MEM32(ebp + (-0x14)); /* 0x3604517A: mov edx, dword ptr [ebp - 0x14] */
   5267 L_3604517D:
   5268     PUSH32(esp, edx); /* 0x3604517D: push edx */
   5269 L_3604517E:
   5270     ecx = edi; /* 0x3604517E: mov ecx, edi */
   5271 L_36045180:
   5272     RECOMP_ICALL(0x360C5400u); /* 0x36045180: call 0x360c5400 */ /* not lifted */
   5273     RECOMP_FLAGS_IN();
   5274 L_36045185:
   5275     ecx = eax; /* 0x36045185: mov ecx, eax */
   5276 L_36045187:
   5277     RECOMP_ICALL(0x3609C030u); /* 0x36045187: call 0x3609c030 */ /* not lifted */
   5278     RECOMP_FLAGS_IN();
   5279 L_3604518C:
   5280     eax = MEM32(ebp + (-0x18)); /* 0x3604518C: mov eax, dword ptr [ebp - 0x18] */
   5281 L_3604518F:
   5282     PUSH32(esp, eax); /* 0x3604518F: push eax */
   5283 L_36045190:
   5284     ecx = edi; /* 0x36045190: mov ecx, edi */
   5285 L_36045192:
   5286     RECOMP_ICALL(0x360C5400u); /* 0x36045192: call 0x360c5400 */ /* not lifted */
   5287     RECOMP_FLAGS_IN();
   5288 L_36045197:
   5289     ecx = eax; /* 0x36045197: mov ecx, eax */
   5290 L_36045199:
   5291     RECOMP_ICALL(0x36108200u); /* 0x36045199: call 0x36108200 */ /* not lifted */
   5292     RECOMP_FLAGS_IN();
   5293 L_3604519E:
   5294     ecx = MEM32(ebp + (-0x1C)); /* 0x3604519E: mov ecx, dword ptr [ebp - 0x1c] */
   5295 L_360451A1:
   5296     PUSH32(esp, ecx); /* 0x360451A1: push ecx */
   5297 L_360451A2:
   5298     ecx = edi; /* 0x360451A2: mov ecx, edi */
   5299 L_360451A4:
   5300     RECOMP_ICALL(0x360C5400u); /* 0x360451A4: call 0x360c5400 */ /* not lifted */
   5301     RECOMP_FLAGS_IN();
   5302 L_360451A9:
   5303     ecx = eax; /* 0x360451A9: mov ecx, eax */
   5304 L_360451AB:
   5305     RECOMP_ICALL(0x360504C0u); /* 0x360451AB: call 0x360504c0 */ /* not lifted */
   5306     RECOMP_FLAGS_IN();
   5307 L_360451B0:
   5308     edx = MEM32(ebp + (-0x34)); /* 0x360451B0: mov edx, dword ptr [ebp - 0x34] */
   5309 L_360451B3:
   5310     PUSH32(esp, edx); /* 0x360451B3: push edx */
   5311 L_360451B4:
   5312     ecx = edi; /* 0x360451B4: mov ecx, edi */
   5313 L_360451B6:
   5314     RECOMP_ICALL(0x360C5400u); /* 0x360451B6: call 0x360c5400 */ /* not lifted */
   5315     RECOMP_FLAGS_IN();
   5316 L_360451BB:
   5317     ecx = eax; /* 0x360451BB: mov ecx, eax */
   5318 L_360451BD:
   5319     RECOMP_ICALL(0x360497E0u); /* 0x360451BD: call 0x360497e0 */ /* not lifted */
   5320     RECOMP_FLAGS_IN();
   5321 L_360451C2:
   5322     eax = MEM32(ebp + (-0x38)); /* 0x360451C2: mov eax, dword ptr [ebp - 0x38] */
   5323 L_360451C5:
   5324     PUSH32(esp, eax); /* 0x360451C5: push eax */
   5325 L_360451C6:
   5326     ecx = edi; /* 0x360451C6: mov ecx, edi */
   5327 L_360451C8:
   5328     RECOMP_ICALL(0x360C5400u); /* 0x360451C8: call 0x360c5400 */ /* not lifted */
   5329     RECOMP_FLAGS_IN();
   5330 L_360451CD:
   5331     ecx = eax; /* 0x360451CD: mov ecx, eax */
   5332 L_360451CF:
   5333     RECOMP_ICALL(0x360497F0u); /* 0x360451CF: call 0x360497f0 */ /* not lifted */
   5334     RECOMP_FLAGS_IN();
   5335 L_360451D4:
   5336     ecx = MEM32(ebp + (-0x3C)); /* 0x360451D4: mov ecx, dword ptr [ebp - 0x3c] */
   5337 L_360451D7:
   5338     PUSH32(esp, ecx); /* 0x360451D7: push ecx */
   5339 L_360451D8:
   5340     ecx = edi; /* 0x360451D8: mov ecx, edi */
   5341 L_360451DA:
   5342     RECOMP_ICALL(0x360C5400u); /* 0x360451DA: call 0x360c5400 */ /* not lifted */
   5343     RECOMP_FLAGS_IN();
   5344 L_360451DF:
   5345     ecx = eax; /* 0x360451DF: mov ecx, eax */
   5346 L_360451E1:
   5347     RECOMP_ICALL(0x36049820u); /* 0x360451E1: call 0x36049820 */ /* not lifted */
   5348     RECOMP_FLAGS_IN();
   5349 L_360451E6:
   5350     edx = MEM32(ebp + (-0x20)); /* 0x360451E6: mov edx, dword ptr [ebp - 0x20] */
   5351 L_360451E9:
   5352     PUSH32(esp, edx); /* 0x360451E9: push edx */
   5353 L_360451EA:
   5354     ecx = edi; /* 0x360451EA: mov ecx, edi */
   5355 L_360451EC:
   5356     RECOMP_ICALL(0x360C5400u); /* 0x360451EC: call 0x360c5400 */ /* not lifted */
   5357     RECOMP_FLAGS_IN();
   5358 L_360451F1:
   5359     ecx = eax; /* 0x360451F1: mov ecx, eax */
   5360 L_360451F3:
   5361     RECOMP_ICALL(0x36049800u); /* 0x360451F3: call 0x36049800 */ /* not lifted */
   5362     RECOMP_FLAGS_IN();
   5363 L_360451F8:
   5364     eax = MEM32(ebp + (-0x24)); /* 0x360451F8: mov eax, dword ptr [ebp - 0x24] */
   5365 L_360451FB:
   5366     PUSH32(esp, eax); /* 0x360451FB: push eax */
   5367 L_360451FC:
   5368     ecx = edi; /* 0x360451FC: mov ecx, edi */
   5369 L_360451FE:
   5370     RECOMP_ICALL(0x360C5400u); /* 0x360451FE: call 0x360c5400 */ /* not lifted */
   5371     RECOMP_FLAGS_IN();
   5372 L_36045203:
   5373     ecx = eax; /* 0x36045203: mov ecx, eax */
   5374 L_36045205:
   5375     RECOMP_ICALL(0x36049810u); /* 0x36045205: call 0x36049810 */ /* not lifted */
   5376     RECOMP_FLAGS_IN();
   5377 L_3604520A:
   5378     ecx = MEM32(ebp + (-0xC)); /* 0x3604520A: mov ecx, dword ptr [ebp - 0xc] */
   5379 L_3604520D:
   5380     eax = edi; /* 0x3604520D: mov eax, edi */
   5381 L_3604520F:
   5382     edi = POP32_VAL(esp); /* 0x3604520F: pop edi */
   5383 L_36045210:
   5384     esi = POP32_VAL(esp); /* 0x36045210: pop esi */
   5385 L_36045211:
   5386     ebx = POP32_VAL(esp); /* 0x36045211: pop ebx */
   5387 L_36045212:
   5388     MEM32(FS_BASE + (0)) = ecx; /* 0x36045212: mov dword ptr fs:[0], ecx */
   5389 L_36045219:
   5390     esp = ebp; /* 0x36045219: mov esp, ebp */
   5391 L_3604521B:
   5392     ebp = POP32_VAL(esp); /* 0x3604521B: pop ebp */
   5393 L_3604521C:
   5394     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604521C: ret 4 */
   5395   _ljump:
   5396     switch (_itail_tgt) {
   5397       case 0x360447C0u: goto L_360447C0;
   5398       case 0x360447C1u: goto L_360447C1;
   5399       case 0x360447C3u: goto L_360447C3;
   5400       case 0x360447C5u: goto L_360447C5;
   5401       case 0x360447CAu: goto L_360447CA;
   5402       case 0x360447D0u: goto L_360447D0;
   5403       case 0x360447D1u: goto L_360447D1;
   5404       case 0x360447D8u: goto L_360447D8;
   5405       case 0x360447DBu: goto L_360447DB;
   5406       case 0x360447DCu: goto L_360447DC;
   5407       case 0x360447DDu: goto L_360447DD;
   5408       case 0x360447DEu: goto L_360447DE;
   5409       case 0x360447E0u: goto L_360447E0;
   5410       case 0x360447E2u: goto L_360447E2;
   5411       case 0x360447E7u: goto L_360447E7;
   5412       case 0x360447EAu: goto L_360447EA;
   5413       case 0x360447EDu: goto L_360447ED;
   5414       case 0x360447F0u: goto L_360447F0;
   5415       case 0x360447F2u: goto L_360447F2;
   5416       case 0x360447F4u: goto L_360447F4;
   5417       case 0x360447F7u: goto L_360447F7;
   5418       case 0x360447F9u: goto L_360447F9;
   5419       case 0x360447FAu: goto L_360447FA;
   5420       case 0x360447FBu: goto L_360447FB;
   5421       case 0x360447FDu: goto L_360447FD;
   5422       case 0x36044802u: goto L_36044802;
   5423       case 0x36044804u: goto L_36044804;
   5424       case 0x36044806u: goto L_36044806;
   5425       case 0x3604480Du: goto L_3604480D;
   5426       case 0x36044812u: goto L_36044812;
   5427       case 0x36044814u: goto L_36044814;
   5428       case 0x36044817u: goto L_36044817;
   5429       case 0x3604481Cu: goto L_3604481C;
   5430       case 0x3604481Eu: goto L_3604481E;
   5431       case 0x36044821u: goto L_36044821;
   5432       case 0x36044826u: goto L_36044826;
   5433       case 0x36044828u: goto L_36044828;
   5434       case 0x3604482Bu: goto L_3604482B;
   5435       case 0x36044830u: goto L_36044830;
   5436       case 0x36044832u: goto L_36044832;
   5437       case 0x36044835u: goto L_36044835;
   5438       case 0x3604483Au: goto L_3604483A;
   5439       case 0x3604483Cu: goto L_3604483C;
   5440       case 0x3604483Fu: goto L_3604483F;
   5441       case 0x36044844u: goto L_36044844;
   5442       case 0x36044846u: goto L_36044846;
   5443       case 0x36044849u: goto L_36044849;
   5444       case 0x3604484Eu: goto L_3604484E;
   5445       case 0x36044850u: goto L_36044850;
   5446       case 0x36044853u: goto L_36044853;
   5447       case 0x36044858u: goto L_36044858;
   5448       case 0x3604485Au: goto L_3604485A;
   5449       case 0x3604485Du: goto L_3604485D;
   5450       case 0x36044862u: goto L_36044862;
   5451       case 0x36044864u: goto L_36044864;
   5452       case 0x36044867u: goto L_36044867;
   5453       case 0x3604486Cu: goto L_3604486C;
   5454       case 0x3604486Eu: goto L_3604486E;
   5455       case 0x36044871u: goto L_36044871;
   5456       case 0x36044876u: goto L_36044876;
   5457       case 0x36044878u: goto L_36044878;
   5458       case 0x3604487Bu: goto L_3604487B;
   5459       case 0x36044880u: goto L_36044880;
   5460       case 0x36044882u: goto L_36044882;
   5461       case 0x36044885u: goto L_36044885;
   5462       case 0x3604488Au: goto L_3604488A;
   5463       case 0x3604488Du: goto L_3604488D;
   5464       case 0x36044890u: goto L_36044890;
   5465       case 0x36044893u: goto L_36044893;
   5466       case 0x36044897u: goto L_36044897;
   5467       case 0x3604489Du: goto L_3604489D;
   5468       case 0x360448A4u: goto L_360448A4;
   5469       case 0x360448A7u: goto L_360448A7;
   5470       case 0x360448ACu: goto L_360448AC;
   5471       case 0x360448AEu: goto L_360448AE;
   5472       case 0x360448B0u: goto L_360448B0;
   5473       case 0x360448B2u: goto L_360448B2;
   5474       case 0x360448B9u: goto L_360448B9;
   5475       case 0x360448BCu: goto L_360448BC;
   5476       case 0x360448C1u: goto L_360448C1;
   5477       case 0x360448C4u: goto L_360448C4;
   5478       case 0x360448C6u: goto L_360448C6;
   5479       case 0x360448C9u: goto L_360448C9;
   5480       case 0x360448CBu: goto L_360448CB;
   5481       case 0x360448CDu: goto L_360448CD;
   5482       case 0x360448D2u: goto L_360448D2;
   5483       case 0x360448D5u: goto L_360448D5;
   5484       case 0x360448D8u: goto L_360448D8;
   5485       case 0x360448DEu: goto L_360448DE;
   5486       case 0x360448DFu: goto L_360448DF;
   5487       case 0x360448E1u: goto L_360448E1;
   5488       case 0x360448E6u: goto L_360448E6;
   5489       case 0x360448E9u: goto L_360448E9;
   5490       case 0x360448EEu: goto L_360448EE;
   5491       case 0x360448F0u: goto L_360448F0;
   5492       case 0x360448F1u: goto L_360448F1;
   5493       case 0x360448F3u: goto L_360448F3;
   5494       case 0x360448F8u: goto L_360448F8;
   5495       case 0x360448FBu: goto L_360448FB;
   5496       case 0x36044900u: goto L_36044900;
   5497       case 0x36044903u: goto L_36044903;
   5498       case 0x36044909u: goto L_36044909;
   5499       case 0x3604490Bu: goto L_3604490B;
   5500       case 0x36044910u: goto L_36044910;
   5501       case 0x36044913u: goto L_36044913;
   5502       case 0x36044919u: goto L_36044919;
   5503       case 0x3604491Bu: goto L_3604491B;
   5504       case 0x36044922u: goto L_36044922;
   5505       case 0x36044925u: goto L_36044925;
   5506       case 0x36044928u: goto L_36044928;
   5507       case 0x3604492Du: goto L_3604492D;
   5508       case 0x3604492Fu: goto L_3604492F;
   5509       case 0x36044932u: goto L_36044932;
   5510       case 0x36044934u: goto L_36044934;
   5511       case 0x3604493Au: goto L_3604493A;
   5512       case 0x3604493Cu: goto L_3604493C;
   5513       case 0x36044941u: goto L_36044941;
   5514       case 0x36044944u: goto L_36044944;
   5515       case 0x3604494Au: goto L_3604494A;
   5516       case 0x3604494Fu: goto L_3604494F;
   5517       case 0x36044953u: goto L_36044953;
   5518       case 0x36044959u: goto L_36044959;
   5519       case 0x3604495Bu: goto L_3604495B;
   5520       case 0x36044960u: goto L_36044960;
   5521       case 0x36044965u: goto L_36044965;
   5522       case 0x36044967u: goto L_36044967;
   5523       case 0x3604496Du: goto L_3604496D;
   5524       case 0x3604496Fu: goto L_3604496F;
   5525       case 0x36044972u: goto L_36044972;
   5526       case 0x36044979u: goto L_36044979;
   5527       case 0x3604497Cu: goto L_3604497C;
   5528       case 0x36044981u: goto L_36044981;
   5529       case 0x36044983u: goto L_36044983;
   5530       case 0x36044986u: goto L_36044986;
   5531       case 0x36044988u: goto L_36044988;
   5532       case 0x3604498Eu: goto L_3604498E;
   5533       case 0x36044990u: goto L_36044990;
   5534       case 0x36044995u: goto L_36044995;
   5535       case 0x36044998u: goto L_36044998;
   5536       case 0x3604499Eu: goto L_3604499E;
   5537       case 0x360449A3u: goto L_360449A3;
   5538       case 0x360449A6u: goto L_360449A6;
   5539       case 0x360449ABu: goto L_360449AB;
   5540       case 0x360449ADu: goto L_360449AD;
   5541       case 0x360449AFu: goto L_360449AF;
   5542       case 0x360449B1u: goto L_360449B1;
   5543       case 0x360449B8u: goto L_360449B8;
   5544       case 0x360449BFu: goto L_360449BF;
   5545       case 0x360449C2u: goto L_360449C2;
   5546       case 0x360449C7u: goto L_360449C7;
   5547       case 0x360449C9u: goto L_360449C9;
   5548       case 0x360449CCu: goto L_360449CC;
   5549       case 0x360449CEu: goto L_360449CE;
   5550       case 0x360449D4u: goto L_360449D4;
   5551       case 0x360449D6u: goto L_360449D6;
   5552       case 0x360449DBu: goto L_360449DB;
   5553       case 0x360449DEu: goto L_360449DE;
   5554       case 0x360449E4u: goto L_360449E4;
   5555       case 0x360449E9u: goto L_360449E9;
   5556       case 0x360449ECu: goto L_360449EC;
   5557       case 0x360449F2u: goto L_360449F2;
   5558       case 0x360449F4u: goto L_360449F4;
   5559       case 0x360449F9u: goto L_360449F9;
   5560       case 0x360449FBu: goto L_360449FB;
   5561       case 0x36044A01u: goto L_36044A01;
   5562       case 0x36044A03u: goto L_36044A03;
   5563       case 0x36044A07u: goto L_36044A07;
   5564       case 0x36044A0Du: goto L_36044A0D;
   5565       case 0x36044A0Fu: goto L_36044A0F;
   5566       case 0x36044A14u: goto L_36044A14;
   5567       case 0x36044A17u: goto L_36044A17;
   5568       case 0x36044A1Du: goto L_36044A1D;
   5569       case 0x36044A22u: goto L_36044A22;
   5570       case 0x36044A24u: goto L_36044A24;
   5571       case 0x36044A27u: goto L_36044A27;
   5572       case 0x36044A2Eu: goto L_36044A2E;
   5573       case 0x36044A31u: goto L_36044A31;
   5574       case 0x36044A36u: goto L_36044A36;
   5575       case 0x36044A38u: goto L_36044A38;
   5576       case 0x36044A3Bu: goto L_36044A3B;
   5577       case 0x36044A3Du: goto L_36044A3D;
   5578       case 0x36044A43u: goto L_36044A43;
   5579       case 0x36044A45u: goto L_36044A45;
   5580       case 0x36044A4Au: goto L_36044A4A;
   5581       case 0x36044A4Du: goto L_36044A4D;
   5582       case 0x36044A53u: goto L_36044A53;
   5583       case 0x36044A58u: goto L_36044A58;
   5584       case 0x36044A5Bu: goto L_36044A5B;
   5585       case 0x36044A60u: goto L_36044A60;
   5586       case 0x36044A62u: goto L_36044A62;
   5587       case 0x36044A64u: goto L_36044A64;
   5588       case 0x36044A69u: goto L_36044A69;
   5589       case 0x36044A6Bu: goto L_36044A6B;
   5590       case 0x36044A6Eu: goto L_36044A6E;
   5591       case 0x36044A71u: goto L_36044A71;
   5592       case 0x36044A74u: goto L_36044A74;
   5593       case 0x36044A79u: goto L_36044A79;
   5594       case 0x36044A7Bu: goto L_36044A7B;
   5595       case 0x36044A7Eu: goto L_36044A7E;
   5596       case 0x36044A80u: goto L_36044A80;
   5597       case 0x36044A86u: goto L_36044A86;
   5598       case 0x36044A88u: goto L_36044A88;
   5599       case 0x36044A8Du: goto L_36044A8D;
   5600       case 0x36044A90u: goto L_36044A90;
   5601       case 0x36044A96u: goto L_36044A96;
   5602       case 0x36044A9Bu: goto L_36044A9B;
   5603       case 0x36044A9Eu: goto L_36044A9E;
   5604       case 0x36044AA4u: goto L_36044AA4;
   5605       case 0x36044AA6u: goto L_36044AA6;
   5606       case 0x36044AABu: goto L_36044AAB;
   5607       case 0x36044AAEu: goto L_36044AAE;
   5608       case 0x36044AB4u: goto L_36044AB4;
   5609       case 0x36044AB6u: goto L_36044AB6;
   5610       case 0x36044ABAu: goto L_36044ABA;
   5611       case 0x36044AC0u: goto L_36044AC0;
   5612       case 0x36044AC2u: goto L_36044AC2;
   5613       case 0x36044AC7u: goto L_36044AC7;
   5614       case 0x36044ACAu: goto L_36044ACA;
   5615       case 0x36044AD0u: goto L_36044AD0;
   5616       case 0x36044AD5u: goto L_36044AD5;
   5617       case 0x36044AD7u: goto L_36044AD7;
   5618       case 0x36044ADAu: goto L_36044ADA;
   5619       case 0x36044AE1u: goto L_36044AE1;
   5620       case 0x36044AE4u: goto L_36044AE4;
   5621       case 0x36044AE9u: goto L_36044AE9;
   5622       case 0x36044AEBu: goto L_36044AEB;
   5623       case 0x36044AEEu: goto L_36044AEE;
   5624       case 0x36044AF0u: goto L_36044AF0;
   5625       case 0x36044AF6u: goto L_36044AF6;
   5626       case 0x36044AF8u: goto L_36044AF8;
   5627       case 0x36044AFDu: goto L_36044AFD;
   5628       case 0x36044B00u: goto L_36044B00;
   5629       case 0x36044B06u: goto L_36044B06;
   5630       case 0x36044B0Bu: goto L_36044B0B;
   5631       case 0x36044B0Eu: goto L_36044B0E;
   5632       case 0x36044B13u: goto L_36044B13;
   5633       case 0x36044B15u: goto L_36044B15;
   5634       case 0x36044B17u: goto L_36044B17;
   5635       case 0x36044B19u: goto L_36044B19;
   5636       case 0x36044B20u: goto L_36044B20;
   5637       case 0x36044B27u: goto L_36044B27;
   5638       case 0x36044B2Au: goto L_36044B2A;
   5639       case 0x36044B2Fu: goto L_36044B2F;
   5640       case 0x36044B31u: goto L_36044B31;
   5641       case 0x36044B34u: goto L_36044B34;
   5642       case 0x36044B36u: goto L_36044B36;
   5643       case 0x36044B3Cu: goto L_36044B3C;
   5644       case 0x36044B3Eu: goto L_36044B3E;
   5645       case 0x36044B43u: goto L_36044B43;
   5646       case 0x36044B46u: goto L_36044B46;
   5647       case 0x36044B4Cu: goto L_36044B4C;
   5648       case 0x36044B51u: goto L_36044B51;
   5649       case 0x36044B54u: goto L_36044B54;
   5650       case 0x36044B5Au: goto L_36044B5A;
   5651       case 0x36044B5Cu: goto L_36044B5C;
   5652       case 0x36044B61u: goto L_36044B61;
   5653       case 0x36044B64u: goto L_36044B64;
   5654       case 0x36044B6Au: goto L_36044B6A;
   5655       case 0x36044B6Cu: goto L_36044B6C;
   5656       case 0x36044B70u: goto L_36044B70;
   5657       case 0x36044B76u: goto L_36044B76;
   5658       case 0x36044B78u: goto L_36044B78;
   5659       case 0x36044B7Du: goto L_36044B7D;
   5660       case 0x36044B80u: goto L_36044B80;
   5661       case 0x36044B86u: goto L_36044B86;
   5662       case 0x36044B8Bu: goto L_36044B8B;
   5663       case 0x36044B8Du: goto L_36044B8D;
   5664       case 0x36044B90u: goto L_36044B90;
   5665       case 0x36044B97u: goto L_36044B97;
   5666       case 0x36044B9Au: goto L_36044B9A;
   5667       case 0x36044B9Fu: goto L_36044B9F;
   5668       case 0x36044BA1u: goto L_36044BA1;
   5669       case 0x36044BA4u: goto L_36044BA4;
   5670       case 0x36044BA6u: goto L_36044BA6;
   5671       case 0x36044BACu: goto L_36044BAC;
   5672       case 0x36044BAEu: goto L_36044BAE;
   5673       case 0x36044BB3u: goto L_36044BB3;
   5674       case 0x36044BB6u: goto L_36044BB6;
   5675       case 0x36044BBCu: goto L_36044BBC;
   5676       case 0x36044BC1u: goto L_36044BC1;
   5677       case 0x36044BC3u: goto L_36044BC3;
   5678       case 0x36044BCAu: goto L_36044BCA;
   5679       case 0x36044BD1u: goto L_36044BD1;
   5680       case 0x36044BD5u: goto L_36044BD5;
   5681       case 0x36044BDAu: goto L_36044BDA;
   5682       case 0x36044BDCu: goto L_36044BDC;
   5683       case 0x36044BDFu: goto L_36044BDF;
   5684       case 0x36044BE1u: goto L_36044BE1;
   5685       case 0x36044BE7u: goto L_36044BE7;
   5686       case 0x36044BE9u: goto L_36044BE9;
   5687       case 0x36044BEEu: goto L_36044BEE;
   5688       case 0x36044BF1u: goto L_36044BF1;
   5689       case 0x36044BF7u: goto L_36044BF7;
   5690       case 0x36044BFCu: goto L_36044BFC;
   5691       case 0x36044BFEu: goto L_36044BFE;
   5692       case 0x36044C03u: goto L_36044C03;
   5693       case 0x36044C06u: goto L_36044C06;
   5694       case 0x36044C0Cu: goto L_36044C0C;
   5695       case 0x36044C0Eu: goto L_36044C0E;
   5696       case 0x36044C13u: goto L_36044C13;
   5697       case 0x36044C16u: goto L_36044C16;
   5698       case 0x36044C1Cu: goto L_36044C1C;
   5699       case 0x36044C21u: goto L_36044C21;
   5700       case 0x36044C23u: goto L_36044C23;
   5701       case 0x36044C26u: goto L_36044C26;
   5702       case 0x36044C2Du: goto L_36044C2D;
   5703       case 0x36044C30u: goto L_36044C30;
   5704       case 0x36044C35u: goto L_36044C35;
   5705       case 0x36044C37u: goto L_36044C37;
   5706       case 0x36044C3Au: goto L_36044C3A;
   5707       case 0x36044C3Cu: goto L_36044C3C;
   5708       case 0x36044C42u: goto L_36044C42;
   5709       case 0x36044C44u: goto L_36044C44;
   5710       case 0x36044C49u: goto L_36044C49;
   5711       case 0x36044C4Cu: goto L_36044C4C;
   5712       case 0x36044C52u: goto L_36044C52;
   5713       case 0x36044C57u: goto L_36044C57;
   5714       case 0x36044C59u: goto L_36044C59;
   5715       case 0x36044C60u: goto L_36044C60;
   5716       case 0x36044C67u: goto L_36044C67;
   5717       case 0x36044C6Bu: goto L_36044C6B;
   5718       case 0x36044C70u: goto L_36044C70;
   5719       case 0x36044C72u: goto L_36044C72;
   5720       case 0x36044C75u: goto L_36044C75;
   5721       case 0x36044C77u: goto L_36044C77;
   5722       case 0x36044C7Du: goto L_36044C7D;
   5723       case 0x36044C7Fu: goto L_36044C7F;
   5724       case 0x36044C84u: goto L_36044C84;
   5725       case 0x36044C87u: goto L_36044C87;
   5726       case 0x36044C8Du: goto L_36044C8D;
   5727       case 0x36044C92u: goto L_36044C92;
   5728       case 0x36044C94u: goto L_36044C94;
   5729       case 0x36044C99u: goto L_36044C99;
   5730       case 0x36044C9Cu: goto L_36044C9C;
   5731       case 0x36044CA2u: goto L_36044CA2;
   5732       case 0x36044CA4u: goto L_36044CA4;
   5733       case 0x36044CA9u: goto L_36044CA9;
   5734       case 0x36044CACu: goto L_36044CAC;
   5735       case 0x36044CB2u: goto L_36044CB2;
   5736       case 0x36044CB7u: goto L_36044CB7;
   5737       case 0x36044CB9u: goto L_36044CB9;
   5738       case 0x36044CBCu: goto L_36044CBC;
   5739       case 0x36044CC3u: goto L_36044CC3;
   5740       case 0x36044CC6u: goto L_36044CC6;
   5741       case 0x36044CCBu: goto L_36044CCB;
   5742       case 0x36044CCDu: goto L_36044CCD;
   5743       case 0x36044CD0u: goto L_36044CD0;
   5744       case 0x36044CD2u: goto L_36044CD2;
   5745       case 0x36044CD8u: goto L_36044CD8;
   5746       case 0x36044CDAu: goto L_36044CDA;
   5747       case 0x36044CDFu: goto L_36044CDF;
   5748       case 0x36044CE2u: goto L_36044CE2;
   5749       case 0x36044CE8u: goto L_36044CE8;
   5750       case 0x36044CEDu: goto L_36044CED;
   5751       case 0x36044CEFu: goto L_36044CEF;
   5752       case 0x36044CF4u: goto L_36044CF4;
   5753       case 0x36044CF7u: goto L_36044CF7;
   5754       case 0x36044CF9u: goto L_36044CF9;
   5755       case 0x36044CFDu: goto L_36044CFD;
   5756       case 0x36044D03u: goto L_36044D03;
   5757       case 0x36044D05u: goto L_36044D05;
   5758       case 0x36044D0Cu: goto L_36044D0C;
   5759       case 0x36044D10u: goto L_36044D10;
   5760       case 0x36044D15u: goto L_36044D15;
   5761       case 0x36044D17u: goto L_36044D17;
   5762       case 0x36044D1Au: goto L_36044D1A;
   5763       case 0x36044D1Cu: goto L_36044D1C;
   5764       case 0x36044D22u: goto L_36044D22;
   5765       case 0x36044D24u: goto L_36044D24;
   5766       case 0x36044D29u: goto L_36044D29;
   5767       case 0x36044D2Cu: goto L_36044D2C;
   5768       case 0x36044D32u: goto L_36044D32;
   5769       case 0x36044D37u: goto L_36044D37;
   5770       case 0x36044D39u: goto L_36044D39;
   5771       case 0x36044D3Eu: goto L_36044D3E;
   5772       case 0x36044D41u: goto L_36044D41;
   5773       case 0x36044D47u: goto L_36044D47;
   5774       case 0x36044D4Bu: goto L_36044D4B;
   5775       case 0x36044D50u: goto L_36044D50;
   5776       case 0x36044D52u: goto L_36044D52;
   5777       case 0x36044D55u: goto L_36044D55;
   5778       case 0x36044D57u: goto L_36044D57;
   5779       case 0x36044D5Au: goto L_36044D5A;
   5780       case 0x36044D5Fu: goto L_36044D5F;
   5781       case 0x36044D61u: goto L_36044D61;
   5782       case 0x36044D64u: goto L_36044D64;
   5783       case 0x36044D66u: goto L_36044D66;
   5784       case 0x36044D6Cu: goto L_36044D6C;
   5785       case 0x36044D6Eu: goto L_36044D6E;
   5786       case 0x36044D73u: goto L_36044D73;
   5787       case 0x36044D76u: goto L_36044D76;
   5788       case 0x36044D7Cu: goto L_36044D7C;
   5789       case 0x36044D81u: goto L_36044D81;
   5790       case 0x36044D85u: goto L_36044D85;
   5791       case 0x36044D8Bu: goto L_36044D8B;
   5792       case 0x36044D8Du: goto L_36044D8D;
   5793       case 0x36044D94u: goto L_36044D94;
   5794       case 0x36044D9Bu: goto L_36044D9B;
   5795       case 0x36044D9Fu: goto L_36044D9F;
   5796       case 0x36044DA4u: goto L_36044DA4;
   5797       case 0x36044DA6u: goto L_36044DA6;
   5798       case 0x36044DA9u: goto L_36044DA9;
   5799       case 0x36044DABu: goto L_36044DAB;
   5800       case 0x36044DB1u: goto L_36044DB1;
   5801       case 0x36044DB3u: goto L_36044DB3;
   5802       case 0x36044DB8u: goto L_36044DB8;
   5803       case 0x36044DBBu: goto L_36044DBB;
   5804       case 0x36044DC1u: goto L_36044DC1;
   5805       case 0x36044DC6u: goto L_36044DC6;
   5806       case 0x36044DC8u: goto L_36044DC8;
   5807       case 0x36044DCDu: goto L_36044DCD;
   5808       case 0x36044DD0u: goto L_36044DD0;
   5809       case 0x36044DD6u: goto L_36044DD6;
   5810       case 0x36044DD8u: goto L_36044DD8;
   5811       case 0x36044DDDu: goto L_36044DDD;
   5812       case 0x36044DE0u: goto L_36044DE0;
   5813       case 0x36044DE6u: goto L_36044DE6;
   5814       case 0x36044DEBu: goto L_36044DEB;
   5815       case 0x36044DEDu: goto L_36044DED;
   5816       case 0x36044DF0u: goto L_36044DF0;
   5817       case 0x36044DF7u: goto L_36044DF7;
   5818       case 0x36044DFAu: goto L_36044DFA;
   5819       case 0x36044DFFu: goto L_36044DFF;
   5820       case 0x36044E01u: goto L_36044E01;
   5821       case 0x36044E04u: goto L_36044E04;
   5822       case 0x36044E06u: goto L_36044E06;
   5823       case 0x36044E0Cu: goto L_36044E0C;
   5824       case 0x36044E0Eu: goto L_36044E0E;
   5825       case 0x36044E13u: goto L_36044E13;
   5826       case 0x36044E16u: goto L_36044E16;
   5827       case 0x36044E1Cu: goto L_36044E1C;
   5828       case 0x36044E21u: goto L_36044E21;
   5829       case 0x36044E26u: goto L_36044E26;
   5830       case 0x36044E28u: goto L_36044E28;
   5831       case 0x36044E2Au: goto L_36044E2A;
   5832       case 0x36044E2Du: goto L_36044E2D;
   5833       case 0x36044E30u: goto L_36044E30;
   5834       case 0x36044E33u: goto L_36044E33;
   5835       case 0x36044E36u: goto L_36044E36;
   5836       case 0x36044E39u: goto L_36044E39;
   5837       case 0x36044E3Cu: goto L_36044E3C;
   5838       case 0x36044E3Fu: goto L_36044E3F;
   5839       case 0x36044E42u: goto L_36044E42;
   5840       case 0x36044E45u: goto L_36044E45;
   5841       case 0x36044E48u: goto L_36044E48;
   5842       case 0x36044E4Du: goto L_36044E4D;
   5843       case 0x36044E4Fu: goto L_36044E4F;
   5844       case 0x36044E52u: goto L_36044E52;
   5845       case 0x36044E54u: goto L_36044E54;
   5846       case 0x36044E5Au: goto L_36044E5A;
   5847       case 0x36044E5Cu: goto L_36044E5C;
   5848       case 0x36044E61u: goto L_36044E61;
   5849       case 0x36044E64u: goto L_36044E64;
   5850       case 0x36044E6Au: goto L_36044E6A;
   5851       case 0x36044E6Fu: goto L_36044E6F;
   5852       case 0x36044E71u: goto L_36044E71;
   5853       case 0x36044E78u: goto L_36044E78;
   5854       case 0x36044E7Cu: goto L_36044E7C;
   5855       case 0x36044E81u: goto L_36044E81;
   5856       case 0x36044E83u: goto L_36044E83;
   5857       case 0x36044E86u: goto L_36044E86;
   5858       case 0x36044E88u: goto L_36044E88;
   5859       case 0x36044E8Au: goto L_36044E8A;
   5860       case 0x36044E8Cu: goto L_36044E8C;
   5861       case 0x36044E91u: goto L_36044E91;
   5862       case 0x36044E92u: goto L_36044E92;
   5863       case 0x36044E94u: goto L_36044E94;
   5864       case 0x36044E97u: goto L_36044E97;
   5865       case 0x36044E9Du: goto L_36044E9D;
   5866       case 0x36044EA2u: goto L_36044EA2;
   5867       case 0x36044EA9u: goto L_36044EA9;
   5868       case 0x36044EAEu: goto L_36044EAE;
   5869       case 0x36044EB0u: goto L_36044EB0;
   5870       case 0x36044EB1u: goto L_36044EB1;
   5871       case 0x36044EB3u: goto L_36044EB3;
   5872       case 0x36044EB8u: goto L_36044EB8;
   5873       case 0x36044EBFu: goto L_36044EBF;
   5874       case 0x36044EC4u: goto L_36044EC4;
   5875       case 0x36044EC6u: goto L_36044EC6;
   5876       case 0x36044ECDu: goto L_36044ECD;
   5877       case 0x36044ED1u: goto L_36044ED1;
   5878       case 0x36044ED6u: goto L_36044ED6;
   5879       case 0x36044ED8u: goto L_36044ED8;
   5880       case 0x36044EDBu: goto L_36044EDB;
   5881       case 0x36044EDDu: goto L_36044EDD;
   5882       case 0x36044EE3u: goto L_36044EE3;
   5883       case 0x36044EE5u: goto L_36044EE5;
   5884       case 0x36044EEAu: goto L_36044EEA;
   5885       case 0x36044EEDu: goto L_36044EED;
   5886       case 0x36044EF3u: goto L_36044EF3;
   5887       case 0x36044EF8u: goto L_36044EF8;
   5888       case 0x36044EFAu: goto L_36044EFA;
   5889       case 0x36044F01u: goto L_36044F01;
   5890       case 0x36044F05u: goto L_36044F05;
   5891       case 0x36044F0Au: goto L_36044F0A;
   5892       case 0x36044F0Cu: goto L_36044F0C;
   5893       case 0x36044F0Fu: goto L_36044F0F;
   5894       case 0x36044F11u: goto L_36044F11;
   5895       case 0x36044F17u: goto L_36044F17;
   5896       case 0x36044F19u: goto L_36044F19;
   5897       case 0x36044F1Eu: goto L_36044F1E;
   5898       case 0x36044F21u: goto L_36044F21;
   5899       case 0x36044F27u: goto L_36044F27;
   5900       case 0x36044F2Cu: goto L_36044F2C;
   5901       case 0x36044F2Fu: goto L_36044F2F;
   5902       case 0x36044F31u: goto L_36044F31;
   5903       case 0x36044F34u: goto L_36044F34;
   5904       case 0x36044F38u: goto L_36044F38;
   5905       case 0x36044F3Du: goto L_36044F3D;
   5906       case 0x36044F3Fu: goto L_36044F3F;
   5907       case 0x36044F42u: goto L_36044F42;
   5908       case 0x36044F44u: goto L_36044F44;
   5909       case 0x36044F4Au: goto L_36044F4A;
   5910       case 0x36044F4Cu: goto L_36044F4C;
   5911       case 0x36044F51u: goto L_36044F51;
   5912       case 0x36044F54u: goto L_36044F54;
   5913       case 0x36044F5Au: goto L_36044F5A;
   5914       case 0x36044F5Fu: goto L_36044F5F;
   5915       case 0x36044F61u: goto L_36044F61;
   5916       case 0x36044F68u: goto L_36044F68;
   5917       case 0x36044F6Cu: goto L_36044F6C;
   5918       case 0x36044F71u: goto L_36044F71;
   5919       case 0x36044F73u: goto L_36044F73;
   5920       case 0x36044F76u: goto L_36044F76;
   5921       case 0x36044F78u: goto L_36044F78;
   5922       case 0x36044F7Eu: goto L_36044F7E;
   5923       case 0x36044F80u: goto L_36044F80;
   5924       case 0x36044F85u: goto L_36044F85;
   5925       case 0x36044F88u: goto L_36044F88;
   5926       case 0x36044F8Eu: goto L_36044F8E;
   5927       case 0x36044F93u: goto L_36044F93;
   5928       case 0x36044F96u: goto L_36044F96;
   5929       case 0x36044F98u: goto L_36044F98;
   5930       case 0x36044F9Bu: goto L_36044F9B;
   5931       case 0x36044F9Fu: goto L_36044F9F;
   5932       case 0x36044FA4u: goto L_36044FA4;
   5933       case 0x36044FA6u: goto L_36044FA6;
   5934       case 0x36044FA9u: goto L_36044FA9;
   5935       case 0x36044FABu: goto L_36044FAB;
   5936       case 0x36044FB1u: goto L_36044FB1;
   5937       case 0x36044FB3u: goto L_36044FB3;
   5938       case 0x36044FB8u: goto L_36044FB8;
   5939       case 0x36044FBBu: goto L_36044FBB;
   5940       case 0x36044FC1u: goto L_36044FC1;
   5941       case 0x36044FC6u: goto L_36044FC6;
   5942       case 0x36044FC8u: goto L_36044FC8;
   5943       case 0x36044FCAu: goto L_36044FCA;
   5944       case 0x36044FCDu: goto L_36044FCD;
   5945       case 0x36044FCFu: goto L_36044FCF;
   5946       case 0x36044FD5u: goto L_36044FD5;
   5947       case 0x36044FD7u: goto L_36044FD7;
   5948       case 0x36044FDEu: goto L_36044FDE;
   5949       case 0x36044FE2u: goto L_36044FE2;
   5950       case 0x36044FE7u: goto L_36044FE7;
   5951       case 0x36044FE9u: goto L_36044FE9;
   5952       case 0x36044FECu: goto L_36044FEC;
   5953       case 0x36044FEEu: goto L_36044FEE;
   5954       case 0x36044FF4u: goto L_36044FF4;
   5955       case 0x36044FF6u: goto L_36044FF6;
   5956       case 0x36044FFBu: goto L_36044FFB;
   5957       case 0x36044FFEu: goto L_36044FFE;
   5958       case 0x36045004u: goto L_36045004;
   5959       case 0x36045009u: goto L_36045009;
   5960       case 0x3604500Eu: goto L_3604500E;
   5961       case 0x36045010u: goto L_36045010;
   5962       case 0x36045013u: goto L_36045013;
   5963       case 0x36045018u: goto L_36045018;
   5964       case 0x3604501Au: goto L_3604501A;
   5965       case 0x3604501Fu: goto L_3604501F;
   5966       case 0x36045025u: goto L_36045025;
   5967       case 0x36045027u: goto L_36045027;
   5968       case 0x36045029u: goto L_36045029;
   5969       case 0x3604502Eu: goto L_3604502E;
   5970       case 0x36045030u: goto L_36045030;
   5971       case 0x36045032u: goto L_36045032;
   5972       case 0x36045034u: goto L_36045034;
   5973       case 0x36045037u: goto L_36045037;
   5974       case 0x3604503Cu: goto L_3604503C;
   5975       case 0x3604503Eu: goto L_3604503E;
   5976       case 0x36045041u: goto L_36045041;
   5977       case 0x36045043u: goto L_36045043;
   5978       case 0x36045049u: goto L_36045049;
   5979       case 0x3604504Bu: goto L_3604504B;
   5980       case 0x36045050u: goto L_36045050;
   5981       case 0x36045053u: goto L_36045053;
   5982       case 0x36045059u: goto L_36045059;
   5983       case 0x3604505Eu: goto L_3604505E;
   5984       case 0x36045062u: goto L_36045062;
   5985       case 0x36045064u: goto L_36045064;
   5986       case 0x36045067u: goto L_36045067;
   5987       case 0x3604506Au: goto L_3604506A;
   5988       case 0x3604506Cu: goto L_3604506C;
   5989       case 0x36045071u: goto L_36045071;
   5990       case 0x36045073u: goto L_36045073;
   5991       case 0x36045076u: goto L_36045076;
   5992       case 0x36045078u: goto L_36045078;
   5993       case 0x3604507Eu: goto L_3604507E;
   5994       case 0x36045080u: goto L_36045080;
   5995       case 0x36045085u: goto L_36045085;
   5996       case 0x36045088u: goto L_36045088;
   5997       case 0x3604508Eu: goto L_3604508E;
   5998       case 0x36045093u: goto L_36045093;
   5999       case 0x36045098u: goto L_36045098;
   6000       case 0x3604509Au: goto L_3604509A;
   6001       case 0x3604509Du: goto L_3604509D;
   6002       case 0x360450A0u: goto L_360450A0;
   6003       case 0x360450A5u: goto L_360450A5;
   6004       case 0x360450A7u: goto L_360450A7;
   6005       case 0x360450AAu: goto L_360450AA;
   6006       case 0x360450ACu: goto L_360450AC;
   6007       case 0x360450B2u: goto L_360450B2;
   6008       case 0x360450B4u: goto L_360450B4;
   6009       case 0x360450B9u: goto L_360450B9;
   6010       case 0x360450BCu: goto L_360450BC;
   6011       case 0x360450C2u: goto L_360450C2;
   6012       case 0x360450C7u: goto L_360450C7;
   6013       case 0x360450CAu: goto L_360450CA;
   6014       case 0x360450CCu: goto L_360450CC;
   6015       case 0x360450CFu: goto L_360450CF;
   6016       case 0x360450D3u: goto L_360450D3;
   6017       case 0x360450D8u: goto L_360450D8;
   6018       case 0x360450DAu: goto L_360450DA;
   6019       case 0x360450DDu: goto L_360450DD;
   6020       case 0x360450DFu: goto L_360450DF;
   6021       case 0x360450E1u: goto L_360450E1;
   6022       case 0x360450E3u: goto L_360450E3;
   6023       case 0x360450E8u: goto L_360450E8;
   6024       case 0x360450EBu: goto L_360450EB;
   6025       case 0x360450F1u: goto L_360450F1;
   6026       case 0x360450F3u: goto L_360450F3;
   6027       case 0x360450F5u: goto L_360450F5;
   6028       case 0x360450FCu: goto L_360450FC;
   6029       case 0x36045100u: goto L_36045100;
   6030       case 0x36045105u: goto L_36045105;
   6031       case 0x36045107u: goto L_36045107;
   6032       case 0x3604510Au: goto L_3604510A;
   6033       case 0x3604510Cu: goto L_3604510C;
   6034       case 0x3604510Eu: goto L_3604510E;
   6035       case 0x36045110u: goto L_36045110;
   6036       case 0x36045115u: goto L_36045115;
   6037       case 0x36045118u: goto L_36045118;
   6038       case 0x3604511Eu: goto L_3604511E;
   6039       case 0x36045120u: goto L_36045120;
   6040       case 0x36045123u: goto L_36045123;
   6041       case 0x36045125u: goto L_36045125;
   6042       case 0x36045128u: goto L_36045128;
   6043       case 0x3604512Cu: goto L_3604512C;
   6044       case 0x36045131u: goto L_36045131;
   6045       case 0x36045133u: goto L_36045133;
   6046       case 0x36045136u: goto L_36045136;
   6047       case 0x36045138u: goto L_36045138;
   6048       case 0x3604513Au: goto L_3604513A;
   6049       case 0x3604513Cu: goto L_3604513C;
   6050       case 0x36045141u: goto L_36045141;
   6051       case 0x36045144u: goto L_36045144;
   6052       case 0x3604514Au: goto L_3604514A;
   6053       case 0x3604514Cu: goto L_3604514C;
   6054       case 0x3604514Eu: goto L_3604514E;
   6055       case 0x3604514Fu: goto L_3604514F;
   6056       case 0x36045151u: goto L_36045151;
   6057       case 0x36045156u: goto L_36045156;
   6058       case 0x36045159u: goto L_36045159;
   6059       case 0x3604515Au: goto L_3604515A;
   6060       case 0x3604515Cu: goto L_3604515C;
   6061       case 0x36045161u: goto L_36045161;
   6062       case 0x36045163u: goto L_36045163;
   6063       case 0x36045168u: goto L_36045168;
   6064       case 0x3604516Bu: goto L_3604516B;
   6065       case 0x3604516Cu: goto L_3604516C;
   6066       case 0x3604516Eu: goto L_3604516E;
   6067       case 0x36045173u: goto L_36045173;
   6068       case 0x36045175u: goto L_36045175;
   6069       case 0x3604517Au: goto L_3604517A;
   6070       case 0x3604517Du: goto L_3604517D;
   6071       case 0x3604517Eu: goto L_3604517E;
   6072       case 0x36045180u: goto L_36045180;
   6073       case 0x36045185u: goto L_36045185;
   6074       case 0x36045187u: goto L_36045187;
   6075       case 0x3604518Cu: goto L_3604518C;
   6076       case 0x3604518Fu: goto L_3604518F;
   6077       case 0x36045190u: goto L_36045190;
   6078       case 0x36045192u: goto L_36045192;
   6079       case 0x36045197u: goto L_36045197;
   6080       case 0x36045199u: goto L_36045199;
   6081       case 0x3604519Eu: goto L_3604519E;
   6082       case 0x360451A1u: goto L_360451A1;
   6083       case 0x360451A2u: goto L_360451A2;
   6084       case 0x360451A4u: goto L_360451A4;
   6085       case 0x360451A9u: goto L_360451A9;
   6086       case 0x360451ABu: goto L_360451AB;
   6087       case 0x360451B0u: goto L_360451B0;
   6088       case 0x360451B3u: goto L_360451B3;
   6089       case 0x360451B4u: goto L_360451B4;
   6090       case 0x360451B6u: goto L_360451B6;
   6091       case 0x360451BBu: goto L_360451BB;
   6092       case 0x360451BDu: goto L_360451BD;
   6093       case 0x360451C2u: goto L_360451C2;
   6094       case 0x360451C5u: goto L_360451C5;
   6095       case 0x360451C6u: goto L_360451C6;
   6096       case 0x360451C8u: goto L_360451C8;
   6097       case 0x360451CDu: goto L_360451CD;
   6098       case 0x360451CFu: goto L_360451CF;
   6099       case 0x360451D4u: goto L_360451D4;
   6100       case 0x360451D7u: goto L_360451D7;
   6101       case 0x360451D8u: goto L_360451D8;
   6102       case 0x360451DAu: goto L_360451DA;
   6103       case 0x360451DFu: goto L_360451DF;
   6104       case 0x360451E1u: goto L_360451E1;
   6105       case 0x360451E6u: goto L_360451E6;
   6106       case 0x360451E9u: goto L_360451E9;
   6107       case 0x360451EAu: goto L_360451EA;
   6108       case 0x360451ECu: goto L_360451EC;
   6109       case 0x360451F1u: goto L_360451F1;
   6110       case 0x360451F3u: goto L_360451F3;
   6111       case 0x360451F8u: goto L_360451F8;
   6112       case 0x360451FBu: goto L_360451FB;
   6113       case 0x360451FCu: goto L_360451FC;
   6114       case 0x360451FEu: goto L_360451FE;
   6115       case 0x36045203u: goto L_36045203;
   6116       case 0x36045205u: goto L_36045205;
   6117       case 0x3604520Au: goto L_3604520A;
   6118       case 0x3604520Du: goto L_3604520D;
   6119       case 0x3604520Fu: goto L_3604520F;
   6120       case 0x36045210u: goto L_36045210;
   6121       case 0x36045211u: goto L_36045211;
   6122       case 0x36045212u: goto L_36045212;
   6123       case 0x36045219u: goto L_36045219;
   6124       case 0x3604521Bu: goto L_3604521B;
   6125       case 0x3604521Cu: goto L_3604521C;
   6126       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   6127     }
   6128     RECOMP_REGS_OUT();
   6129 }
   6130 
   6131 void sub_3604514E(void) {
   6132     int _fpu_cmp = 0;
   6133     uint32_t _cf = 0;
   6134     int _df = 1;
   6135     uint32_t _flag_k = FK_NONE;
   6136     uint32_t _flag_a = 0, _flag_b = 0;
   6137     uint32_t _itail_tgt = 0;
   6138     RECOMP_REGS_LOCALS
   6139     RECOMP_ENTER(0x3604514Eu);
   6140 
   6141 L_3604514E:
   6142     PUSH32(esp, ebx); /* 0x3604514E: push ebx */
   6143     ecx = edi; /* 0x3604514F: mov ecx, edi */
   6144     RECOMP_ICALL(0x360495D0u); /* 0x36045151: call 0x360495d0 */ /* not lifted */
   6145     RECOMP_FLAGS_IN();
   6146     eax = MEM32(ebp + 0x8); /* 0x36045156: mov eax, dword ptr [ebp + 8] */
   6147     PUSH32(esp, eax); /* 0x36045159: push eax */
   6148     ecx = edi; /* 0x3604515A: mov ecx, edi */
   6149     RECOMP_ICALL(0x360C5400u); /* 0x3604515C: call 0x360c5400 */ /* not lifted */
   6150     RECOMP_FLAGS_IN();
   6151     ecx = eax; /* 0x36045161: mov ecx, eax */
   6152     RECOMP_ICALL(0x360C7E50u); /* 0x36045163: call 0x360c7e50 */ /* not lifted */
   6153     RECOMP_FLAGS_IN();
   6154     ecx = MEM32(ebp + (-0x10)); /* 0x36045168: mov ecx, dword ptr [ebp - 0x10] */
   6155     PUSH32(esp, ecx); /* 0x3604516B: push ecx */
   6156     ecx = edi; /* 0x3604516C: mov ecx, edi */
   6157     RECOMP_ICALL(0x360C5400u); /* 0x3604516E: call 0x360c5400 */ /* not lifted */
   6158     RECOMP_FLAGS_IN();
   6159     ecx = eax; /* 0x36045173: mov ecx, eax */
   6160     RECOMP_ICALL(0x360F38B0u); /* 0x36045175: call 0x360f38b0 */ /* not lifted */
   6161     RECOMP_FLAGS_IN();
   6162     edx = MEM32(ebp + (-0x14)); /* 0x3604517A: mov edx, dword ptr [ebp - 0x14] */
   6163     PUSH32(esp, edx); /* 0x3604517D: push edx */
   6164     ecx = edi; /* 0x3604517E: mov ecx, edi */
   6165     RECOMP_ICALL(0x360C5400u); /* 0x36045180: call 0x360c5400 */ /* not lifted */
   6166     RECOMP_FLAGS_IN();
   6167     ecx = eax; /* 0x36045185: mov ecx, eax */
   6168     RECOMP_ICALL(0x3609C030u); /* 0x36045187: call 0x3609c030 */ /* not lifted */
   6169     RECOMP_FLAGS_IN();
   6170     eax = MEM32(ebp + (-0x18)); /* 0x3604518C: mov eax, dword ptr [ebp - 0x18] */
   6171     PUSH32(esp, eax); /* 0x3604518F: push eax */
   6172     ecx = edi; /* 0x36045190: mov ecx, edi */
   6173     RECOMP_ICALL(0x360C5400u); /* 0x36045192: call 0x360c5400 */ /* not lifted */
   6174     RECOMP_FLAGS_IN();
   6175     ecx = eax; /* 0x36045197: mov ecx, eax */
   6176     RECOMP_ICALL(0x36108200u); /* 0x36045199: call 0x36108200 */ /* not lifted */
   6177     RECOMP_FLAGS_IN();
   6178     ecx = MEM32(ebp + (-0x1C)); /* 0x3604519E: mov ecx, dword ptr [ebp - 0x1c] */
   6179     PUSH32(esp, ecx); /* 0x360451A1: push ecx */
   6180     ecx = edi; /* 0x360451A2: mov ecx, edi */
   6181     RECOMP_ICALL(0x360C5400u); /* 0x360451A4: call 0x360c5400 */ /* not lifted */
   6182     RECOMP_FLAGS_IN();
   6183     ecx = eax; /* 0x360451A9: mov ecx, eax */
   6184     RECOMP_ICALL(0x360504C0u); /* 0x360451AB: call 0x360504c0 */ /* not lifted */
   6185     RECOMP_FLAGS_IN();
   6186     edx = MEM32(ebp + (-0x34)); /* 0x360451B0: mov edx, dword ptr [ebp - 0x34] */
   6187     PUSH32(esp, edx); /* 0x360451B3: push edx */
   6188     ecx = edi; /* 0x360451B4: mov ecx, edi */
   6189     RECOMP_ICALL(0x360C5400u); /* 0x360451B6: call 0x360c5400 */ /* not lifted */
   6190     RECOMP_FLAGS_IN();
   6191     ecx = eax; /* 0x360451BB: mov ecx, eax */
   6192     RECOMP_ICALL(0x360497E0u); /* 0x360451BD: call 0x360497e0 */ /* not lifted */
   6193     RECOMP_FLAGS_IN();
   6194     eax = MEM32(ebp + (-0x38)); /* 0x360451C2: mov eax, dword ptr [ebp - 0x38] */
   6195     PUSH32(esp, eax); /* 0x360451C5: push eax */
   6196     ecx = edi; /* 0x360451C6: mov ecx, edi */
   6197     RECOMP_ICALL(0x360C5400u); /* 0x360451C8: call 0x360c5400 */ /* not lifted */
   6198     RECOMP_FLAGS_IN();
   6199     ecx = eax; /* 0x360451CD: mov ecx, eax */
   6200     RECOMP_ICALL(0x360497F0u); /* 0x360451CF: call 0x360497f0 */ /* not lifted */
   6201     RECOMP_FLAGS_IN();
   6202     ecx = MEM32(ebp + (-0x3C)); /* 0x360451D4: mov ecx, dword ptr [ebp - 0x3c] */
   6203     PUSH32(esp, ecx); /* 0x360451D7: push ecx */
   6204     ecx = edi; /* 0x360451D8: mov ecx, edi */
   6205     RECOMP_ICALL(0x360C5400u); /* 0x360451DA: call 0x360c5400 */ /* not lifted */
   6206     RECOMP_FLAGS_IN();
   6207     ecx = eax; /* 0x360451DF: mov ecx, eax */
   6208     RECOMP_ICALL(0x36049820u); /* 0x360451E1: call 0x36049820 */ /* not lifted */
   6209     RECOMP_FLAGS_IN();
   6210     edx = MEM32(ebp + (-0x20)); /* 0x360451E6: mov edx, dword ptr [ebp - 0x20] */
   6211     PUSH32(esp, edx); /* 0x360451E9: push edx */
   6212     ecx = edi; /* 0x360451EA: mov ecx, edi */
   6213     RECOMP_ICALL(0x360C5400u); /* 0x360451EC: call 0x360c5400 */ /* not lifted */
   6214     RECOMP_FLAGS_IN();
   6215     ecx = eax; /* 0x360451F1: mov ecx, eax */
   6216     RECOMP_ICALL(0x36049800u); /* 0x360451F3: call 0x36049800 */ /* not lifted */
   6217     RECOMP_FLAGS_IN();
   6218     eax = MEM32(ebp + (-0x24)); /* 0x360451F8: mov eax, dword ptr [ebp - 0x24] */
   6219     PUSH32(esp, eax); /* 0x360451FB: push eax */
   6220     ecx = edi; /* 0x360451FC: mov ecx, edi */
   6221     RECOMP_ICALL(0x360C5400u); /* 0x360451FE: call 0x360c5400 */ /* not lifted */
   6222     RECOMP_FLAGS_IN();
   6223     ecx = eax; /* 0x36045203: mov ecx, eax */
   6224     RECOMP_ICALL(0x36049810u); /* 0x36045205: call 0x36049810 */ /* not lifted */
   6225     RECOMP_FLAGS_IN();
   6226     ecx = MEM32(ebp + (-0xC)); /* 0x3604520A: mov ecx, dword ptr [ebp - 0xc] */
   6227     eax = edi; /* 0x3604520D: mov eax, edi */
   6228     edi = POP32_VAL(esp); /* 0x3604520F: pop edi */
   6229     esi = POP32_VAL(esp); /* 0x36045210: pop esi */
   6230     ebx = POP32_VAL(esp); /* 0x36045211: pop ebx */
   6231     MEM32(FS_BASE + (0)) = ecx; /* 0x36045212: mov dword ptr fs:[0], ecx */
   6232     esp = ebp; /* 0x36045219: mov esp, ebp */
   6233     ebp = POP32_VAL(esp); /* 0x3604521B: pop ebp */
   6234     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604521C: ret 4 */
   6235     RECOMP_REGS_OUT();
   6236 }
   6237 
   6238 void sub_36045156(void) {
   6239     int _fpu_cmp = 0;
   6240     uint32_t _cf = 0;
   6241     int _df = 1;
   6242     uint32_t _flag_k = FK_NONE;
   6243     uint32_t _flag_a = 0, _flag_b = 0;
   6244     uint32_t _itail_tgt = 0;
   6245     RECOMP_REGS_LOCALS
   6246     RECOMP_ENTER(0x36045156u);
   6247 
   6248 L_36045156:
   6249     eax = MEM32(ebp + 0x8); /* 0x36045156: mov eax, dword ptr [ebp + 8] */
   6250     PUSH32(esp, eax); /* 0x36045159: push eax */
   6251     ecx = edi; /* 0x3604515A: mov ecx, edi */
   6252     RECOMP_ICALL(0x360C5400u); /* 0x3604515C: call 0x360c5400 */ /* not lifted */
   6253     RECOMP_FLAGS_IN();
   6254     ecx = eax; /* 0x36045161: mov ecx, eax */
   6255     RECOMP_ICALL(0x360C7E50u); /* 0x36045163: call 0x360c7e50 */ /* not lifted */
   6256     RECOMP_FLAGS_IN();
   6257     ecx = MEM32(ebp + (-0x10)); /* 0x36045168: mov ecx, dword ptr [ebp - 0x10] */
   6258     PUSH32(esp, ecx); /* 0x3604516B: push ecx */
   6259     ecx = edi; /* 0x3604516C: mov ecx, edi */
   6260     RECOMP_ICALL(0x360C5400u); /* 0x3604516E: call 0x360c5400 */ /* not lifted */
   6261     RECOMP_FLAGS_IN();
   6262     ecx = eax; /* 0x36045173: mov ecx, eax */
   6263     RECOMP_ICALL(0x360F38B0u); /* 0x36045175: call 0x360f38b0 */ /* not lifted */
   6264     RECOMP_FLAGS_IN();
   6265     edx = MEM32(ebp + (-0x14)); /* 0x3604517A: mov edx, dword ptr [ebp - 0x14] */
   6266     PUSH32(esp, edx); /* 0x3604517D: push edx */
   6267     ecx = edi; /* 0x3604517E: mov ecx, edi */
   6268     RECOMP_ICALL(0x360C5400u); /* 0x36045180: call 0x360c5400 */ /* not lifted */
   6269     RECOMP_FLAGS_IN();
   6270     ecx = eax; /* 0x36045185: mov ecx, eax */
   6271     RECOMP_ICALL(0x3609C030u); /* 0x36045187: call 0x3609c030 */ /* not lifted */
   6272     RECOMP_FLAGS_IN();
   6273     eax = MEM32(ebp + (-0x18)); /* 0x3604518C: mov eax, dword ptr [ebp - 0x18] */
   6274     PUSH32(esp, eax); /* 0x3604518F: push eax */
   6275     ecx = edi; /* 0x36045190: mov ecx, edi */
   6276     RECOMP_ICALL(0x360C5400u); /* 0x36045192: call 0x360c5400 */ /* not lifted */
   6277     RECOMP_FLAGS_IN();
   6278     ecx = eax; /* 0x36045197: mov ecx, eax */
   6279     RECOMP_ICALL(0x36108200u); /* 0x36045199: call 0x36108200 */ /* not lifted */
   6280     RECOMP_FLAGS_IN();
   6281     ecx = MEM32(ebp + (-0x1C)); /* 0x3604519E: mov ecx, dword ptr [ebp - 0x1c] */
   6282     PUSH32(esp, ecx); /* 0x360451A1: push ecx */
   6283     ecx = edi; /* 0x360451A2: mov ecx, edi */
   6284     RECOMP_ICALL(0x360C5400u); /* 0x360451A4: call 0x360c5400 */ /* not lifted */
   6285     RECOMP_FLAGS_IN();
   6286     ecx = eax; /* 0x360451A9: mov ecx, eax */
   6287     RECOMP_ICALL(0x360504C0u); /* 0x360451AB: call 0x360504c0 */ /* not lifted */
   6288     RECOMP_FLAGS_IN();
   6289     edx = MEM32(ebp + (-0x34)); /* 0x360451B0: mov edx, dword ptr [ebp - 0x34] */
   6290     PUSH32(esp, edx); /* 0x360451B3: push edx */
   6291     ecx = edi; /* 0x360451B4: mov ecx, edi */
   6292     RECOMP_ICALL(0x360C5400u); /* 0x360451B6: call 0x360c5400 */ /* not lifted */
   6293     RECOMP_FLAGS_IN();
   6294     ecx = eax; /* 0x360451BB: mov ecx, eax */
   6295     RECOMP_ICALL(0x360497E0u); /* 0x360451BD: call 0x360497e0 */ /* not lifted */
   6296     RECOMP_FLAGS_IN();
   6297     eax = MEM32(ebp + (-0x38)); /* 0x360451C2: mov eax, dword ptr [ebp - 0x38] */
   6298     PUSH32(esp, eax); /* 0x360451C5: push eax */
   6299     ecx = edi; /* 0x360451C6: mov ecx, edi */
   6300     RECOMP_ICALL(0x360C5400u); /* 0x360451C8: call 0x360c5400 */ /* not lifted */
   6301     RECOMP_FLAGS_IN();
   6302     ecx = eax; /* 0x360451CD: mov ecx, eax */
   6303     RECOMP_ICALL(0x360497F0u); /* 0x360451CF: call 0x360497f0 */ /* not lifted */
   6304     RECOMP_FLAGS_IN();
   6305     ecx = MEM32(ebp + (-0x3C)); /* 0x360451D4: mov ecx, dword ptr [ebp - 0x3c] */
   6306     PUSH32(esp, ecx); /* 0x360451D7: push ecx */
   6307     ecx = edi; /* 0x360451D8: mov ecx, edi */
   6308     RECOMP_ICALL(0x360C5400u); /* 0x360451DA: call 0x360c5400 */ /* not lifted */
   6309     RECOMP_FLAGS_IN();
   6310     ecx = eax; /* 0x360451DF: mov ecx, eax */
   6311     RECOMP_ICALL(0x36049820u); /* 0x360451E1: call 0x36049820 */ /* not lifted */
   6312     RECOMP_FLAGS_IN();
   6313     edx = MEM32(ebp + (-0x20)); /* 0x360451E6: mov edx, dword ptr [ebp - 0x20] */
   6314     PUSH32(esp, edx); /* 0x360451E9: push edx */
   6315     ecx = edi; /* 0x360451EA: mov ecx, edi */
   6316     RECOMP_ICALL(0x360C5400u); /* 0x360451EC: call 0x360c5400 */ /* not lifted */
   6317     RECOMP_FLAGS_IN();
   6318     ecx = eax; /* 0x360451F1: mov ecx, eax */
   6319     RECOMP_ICALL(0x36049800u); /* 0x360451F3: call 0x36049800 */ /* not lifted */
   6320     RECOMP_FLAGS_IN();
   6321     eax = MEM32(ebp + (-0x24)); /* 0x360451F8: mov eax, dword ptr [ebp - 0x24] */
   6322     PUSH32(esp, eax); /* 0x360451FB: push eax */
   6323     ecx = edi; /* 0x360451FC: mov ecx, edi */
   6324     RECOMP_ICALL(0x360C5400u); /* 0x360451FE: call 0x360c5400 */ /* not lifted */
   6325     RECOMP_FLAGS_IN();
   6326     ecx = eax; /* 0x36045203: mov ecx, eax */
   6327     RECOMP_ICALL(0x36049810u); /* 0x36045205: call 0x36049810 */ /* not lifted */
   6328     RECOMP_FLAGS_IN();
   6329     ecx = MEM32(ebp + (-0xC)); /* 0x3604520A: mov ecx, dword ptr [ebp - 0xc] */
   6330     eax = edi; /* 0x3604520D: mov eax, edi */
   6331     edi = POP32_VAL(esp); /* 0x3604520F: pop edi */
   6332     esi = POP32_VAL(esp); /* 0x36045210: pop esi */
   6333     ebx = POP32_VAL(esp); /* 0x36045211: pop ebx */
   6334     MEM32(FS_BASE + (0)) = ecx; /* 0x36045212: mov dword ptr fs:[0], ecx */
   6335     esp = ebp; /* 0x36045219: mov esp, ebp */
   6336     ebp = POP32_VAL(esp); /* 0x3604521B: pop ebp */
   6337     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604521C: ret 4 */
   6338     RECOMP_REGS_OUT();
   6339 }
   6340 
   6341 void sub_360452B0(void) {
   6342     int _fpu_cmp = 0;
   6343     uint32_t _cf = 0;
   6344     int _df = 1;
   6345     uint32_t _flag_k = FK_NONE;
   6346     uint32_t _flag_a = 0, _flag_b = 0;
   6347     uint32_t _itail_tgt = 0;
   6348     RECOMP_REGS_LOCALS
   6349     RECOMP_ENTER(0x360452B0u);
   6350 
   6351 L_360452B0:
   6352     PUSH32(esp, ebp); /* 0x360452B0: push ebp */
   6353     ebp = esp; /* 0x360452B1: mov ebp, esp */
   6354     PUSH32(esp, ecx); /* 0x360452B3: push ecx */
   6355     PUSH32(esp, ebx); /* 0x360452B4: push ebx */
   6356     PUSH32(esp, esi); /* 0x360452B5: push esi */
   6357     PUSH32(esp, edi); /* 0x360452B6: push edi */
   6358     esi = ecx; /* 0x360452B7: mov esi, ecx */
   6359     ecx = MEM32(esi + 0x4); /* 0x360452B9: mov ecx, dword ptr [esi + 4] */
   6360     PUSH32(esp, 1); /* 0x360452BC: push 1 */
   6361     RECOMP_ICALL(MEM32(0x36170348)); /* 0x360452BE: call dword ptr [0x36170348] */
   6362     RECOMP_FLAGS_IN();
   6363     ecx = MEM32(esi + 0x4); /* 0x360452C4: mov ecx, dword ptr [esi + 4] */
   6364     eax = MEM32(ecx); /* 0x360452C7: mov eax, dword ptr [ecx] */
   6365     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x360452C9: call dword ptr [eax + 0x80] */
   6366     RECOMP_FLAGS_IN();
   6367     /* test LO8(eax), LO8(eax) */ /* 0x360452CF: test al, al */
   6368     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6369     _cf = 0;
   6370     _flag_k = FK_NARROW(FK_TEST, 24);
   6371     if (TEST_Z(_flag_a, _flag_b)) goto L_360452E0; /* 0x360452D1: je 0x360452e0 */
   6372 L_360452D3:
   6373     ecx = MEM32(esi + 0x4); /* 0x360452D3: mov ecx, dword ptr [esi + 4] */
   6374     PUSH32(esp, 0x3F800000u); /* 0x360452D6: push 0x3f800000 */
   6375     RECOMP_ICALL(0x3604BCA0u); /* 0x360452DB: call 0x3604bca0 */ /* not lifted */
   6376     RECOMP_FLAGS_IN();
   6377 L_360452E0:
   6378     ecx = MEM32(esi + 0x4); /* 0x360452E0: mov ecx, dword ptr [esi + 4] */
   6379     RECOMP_ICALL(0x36047E60u); /* 0x360452E3: call 0x36047e60 */ /* not lifted */
   6380     RECOMP_FLAGS_IN();
   6381     ecx = MEM32(esi + 0x4); /* 0x360452E8: mov ecx, dword ptr [esi + 4] */
   6382     RECOMP_ICALL(0x360478D0u); /* 0x360452EB: call 0x360478d0 */ /* not lifted */
   6383     RECOMP_FLAGS_IN();
   6384     edi = eax; /* 0x360452F0: mov edi, eax */
   6385     ecx = edi; /* 0x360452F2: mov ecx, edi */
   6386     RECOMP_ICALL(MEM32(0x3616FC34)); /* 0x360452F4: call dword ptr [0x3616fc34] */
   6387     RECOMP_FLAGS_IN();
   6388     ecx = MEM32(esi + 0x4); /* 0x360452FA: mov ecx, dword ptr [esi + 4] */
   6389     RECOMP_ICALL(0x36049290u); /* 0x360452FD: call 0x36049290 */ /* not lifted */
   6390     RECOMP_FLAGS_IN();
   6391     ecx = MEM32(esi + 0x4); /* 0x36045302: mov ecx, dword ptr [esi + 4] */
   6392     edx = MEM32(ecx); /* 0x36045305: mov edx, dword ptr [ecx] */
   6393     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x36045307: call dword ptr [edx + 0x80] */
   6394     RECOMP_FLAGS_IN();
   6395     /* test LO8(eax), LO8(eax) */ /* 0x3604530D: test al, al */
   6396     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6397     _cf = 0;
   6398     _flag_k = FK_NARROW(FK_TEST, 24);
   6399     ebx = MEM32(ebp + 0x8); /* 0x3604530F: mov ebx, dword ptr [ebp + 8] */
   6400     if (TEST_Z(_flag_a, _flag_b)) goto L_36045378; /* 0x36045312: je 0x36045378 */
   6401 L_36045314:
   6402     ecx = ebx; /* 0x36045314: mov ecx, ebx */
   6403     RECOMP_ICALL(0x360C5400u); /* 0x36045316: call 0x360c5400 */ /* not lifted */
   6404     RECOMP_FLAGS_IN();
   6405     ecx = eax; /* 0x3604531B: mov ecx, eax */
   6406     RECOMP_ICALL(0x360F1670u); /* 0x3604531D: call 0x360f1670 */ /* not lifted */
   6407     RECOMP_FLAGS_IN();
   6408     /* cmp eax, 1 */ /* 0x36045322: cmp eax, 1 */
   6409     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6410     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6411     _flag_k = FK_CMP;
   6412     if (CMP_EQ(_flag_a, _flag_b)) goto L_36045378; /* 0x36045325: je 0x36045378 */
   6413 L_36045327:
   6414     ecx = ebx; /* 0x36045327: mov ecx, ebx */
   6415     RECOMP_ICALL(0x360C5400u); /* 0x36045329: call 0x360c5400 */ /* not lifted */
   6416     RECOMP_FLAGS_IN();
   6417     ecx = eax; /* 0x3604532E: mov ecx, eax */
   6418     RECOMP_ICALL(0x360F1680u); /* 0x36045330: call 0x360f1680 */ /* not lifted */
   6419     RECOMP_FLAGS_IN();
   6420     /* cmp eax, 3 */ /* 0x36045335: cmp eax, 3 */
   6421     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   6422     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6423     _flag_k = FK_CMP;
   6424     MEM32(ebp + 0x8) = 0xBF800000u; /* 0x36045338: mov dword ptr [ebp + 8], 0xbf800000 */
   6425     if (CMP_EQ(_flag_a, _flag_b)) goto L_36045348; /* 0x3604533F: je 0x36045348 */
   6426 L_36045341:
   6427     MEM32(ebp + 0x8) = 0x3F800000u; /* 0x36045341: mov dword ptr [ebp + 8], 0x3f800000 */
   6428 L_36045348:
   6429     ecx = ebx; /* 0x36045348: mov ecx, ebx */
   6430     RECOMP_ICALL(0x360C5400u); /* 0x3604534A: call 0x360c5400 */ /* not lifted */
   6431     RECOMP_FLAGS_IN();
   6432     ecx = eax; /* 0x3604534F: mov ecx, eax */
   6433     RECOMP_ICALL(0x3609C020u); /* 0x36045351: call 0x3609c020 */ /* not lifted */
   6434     RECOMP_FLAGS_IN();
   6435     /* cmp eax, 1 */ /* 0x36045356: cmp eax, 1 */
   6436     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6437     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6438     _flag_k = FK_CMP;
   6439     if (CMP_NE(_flag_a, _flag_b)) goto L_36045363; /* 0x36045359: jne 0x36045363 */
   6440 L_3604535B:
   6441     fp_push(*(float*)&MEM32(0x36170BD0)); /* 0x3604535B: fld dword ptr [0x36170bd0] */
   6442     goto L_36045369; /* 0x36045361: jmp 0x36045369 */
   6443 L_36045363:
   6444     fp_push(*(float*)&MEM32(0x36170BD4)); /* 0x36045363: fld dword ptr [0x36170bd4] */
   6445 L_36045369:
   6446     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x36045369: fmul dword ptr [ebp + 8] */
   6447     PUSH32(esp, ecx); /* 0x3604536C: push ecx */
   6448     ecx = MEM32(esi + 0x4); /* 0x3604536D: mov ecx, dword ptr [esi + 4] */
   6449     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36045370: fstp dword ptr [esp] */
   6450     RECOMP_ICALL(0x3604BCB0u); /* 0x36045373: call 0x3604bcb0 */ /* not lifted */
   6451     RECOMP_FLAGS_IN();
   6452 L_36045378:
   6453     ecx = ebx; /* 0x36045378: mov ecx, ebx */
   6454     RECOMP_ICALL(0x360C5400u); /* 0x3604537A: call 0x360c5400 */ /* not lifted */
   6455     RECOMP_FLAGS_IN();
   6456     ecx = eax; /* 0x3604537F: mov ecx, eax */
   6457     RECOMP_ICALL(0x36008320u); /* 0x36045381: call 0x36008320 */ /* not lifted */
   6458     RECOMP_FLAGS_IN();
   6459     /* cmp eax, 2 */ /* 0x36045386: cmp eax, 2 */
   6460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   6461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6462     _flag_k = FK_CMP;
   6463     if (CMP_NE(_flag_a, _flag_b)) goto L_360453EA; /* 0x36045389: jne 0x360453ea */
   6464 L_3604538B:
   6465     ecx = MEM32(edi + 0x174); /* 0x3604538B: mov ecx, dword ptr [edi + 0x174] */
   6466     RECOMP_ICALL(0x360D9CB0u); /* 0x36045391: call 0x360d9cb0 */ /* not lifted */
   6467     RECOMP_FLAGS_IN();
   6468     ecx = MEM32(esi + 0x4); /* 0x36045396: mov ecx, dword ptr [esi + 4] */
   6469     MEM32(ebp + (-0x4)) = eax; /* 0x36045399: mov dword ptr [ebp - 4], eax */
   6470     RECOMP_ICALL(0x360478D0u); /* 0x3604539C: call 0x360478d0 */ /* not lifted */
   6471     RECOMP_FLAGS_IN();
   6472     PUSH32(esp, 0xFFFFFFFFu); /* 0x360453A1: push -1 */
   6473     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6474     ebx = 0; /* 0x360453A3: xor ebx, ebx */
   6475     _cf = 0;
   6476     _flag_k = FK_TEST;
   6477     edx = ebp + 0x8; /* 0x360453A5: lea edx, [ebp + 8] */
   6478     PUSH32(esp, edx); /* 0x360453A8: push edx */
   6479     edx = MEM32(ebp + (-0x4)); /* 0x360453A9: mov edx, dword ptr [ebp - 4] */
   6480     PUSH32(esp, ebx); /* 0x360453AC: push ebx */
   6481     PUSH32(esp, 1); /* 0x360453AD: push 1 */
   6482     PUSH32(esp, 2); /* 0x360453AF: push 2 */
   6483     PUSH32(esp, 0xFFFFFFFFu); /* 0x360453B1: push -1 */
   6484     PUSH32(esp, ebx); /* 0x360453B3: push ebx */
   6485     edi = eax; /* 0x360453B4: mov edi, eax */
   6486     PUSH32(esp, ebx); /* 0x360453B6: push ebx */
   6487     MEM32(ebp + 0x8) = ebx; /* 0x360453B7: mov dword ptr [ebp + 8], ebx */
   6488     ecx = MEM32(edi + 0x174); /* 0x360453BA: mov ecx, dword ptr [edi + 0x174] */
   6489     eax = MEM32(ecx); /* 0x360453C0: mov eax, dword ptr [ecx] */
   6490     PUSH32(esp, 0x3F800000u); /* 0x360453C2: push 0x3f800000 */
   6491     PUSH32(esp, edx); /* 0x360453C7: push edx */
   6492     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x360453C8: call dword ptr [eax + 0x14] */
   6493     RECOMP_FLAGS_IN();
   6494     ecx = MEM32(edi + 0x174); /* 0x360453CB: mov ecx, dword ptr [edi + 0x174] */
   6495     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x360453D1: mov byte ptr [ecx + 0x5c], bl */
   6496     edx = MEM32(ebp + 0x8); /* 0x360453D4: mov edx, dword ptr [ebp + 8] */
   6497     ecx = MEM32(esi + 0x4); /* 0x360453D7: mov ecx, dword ptr [esi + 4] */
   6498     PUSH32(esp, eax); /* 0x360453DA: push eax */
   6499     PUSH32(esp, edx); /* 0x360453DB: push edx */
   6500     RECOMP_ICALL(0x360492F0u); /* 0x360453DC: call 0x360492f0 */ /* not lifted */
   6501     RECOMP_FLAGS_IN();
   6502     edi = POP32_VAL(esp); /* 0x360453E1: pop edi */
   6503     esi = POP32_VAL(esp); /* 0x360453E2: pop esi */
   6504     ebx = POP32_VAL(esp); /* 0x360453E3: pop ebx */
   6505     esp = ebp; /* 0x360453E4: mov esp, ebp */
   6506     ebp = POP32_VAL(esp); /* 0x360453E6: pop ebp */
   6507     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360453E7: ret 4 */
   6508 L_360453EA:
   6509     ecx = ebx; /* 0x360453EA: mov ecx, ebx */
   6510     RECOMP_ICALL(0x360C5400u); /* 0x360453EC: call 0x360c5400 */ /* not lifted */
   6511     RECOMP_FLAGS_IN();
   6512     ecx = eax; /* 0x360453F1: mov ecx, eax */
   6513     RECOMP_ICALL(0x36008320u); /* 0x360453F3: call 0x36008320 */ /* not lifted */
   6514     RECOMP_FLAGS_IN();
   6515     /* cmp eax, 3 */ /* 0x360453F8: cmp eax, 3 */
   6516     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   6517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6518     _flag_k = FK_CMP;
   6519     if (CMP_NE(_flag_a, _flag_b)) goto L_3604545C; /* 0x360453FB: jne 0x3604545c */
   6520 L_360453FD:
   6521     ecx = MEM32(edi + 0x174); /* 0x360453FD: mov ecx, dword ptr [edi + 0x174] */
   6522     RECOMP_ICALL(0x36008320u); /* 0x36045403: call 0x36008320 */ /* not lifted */
   6523     RECOMP_FLAGS_IN();
   6524     ecx = MEM32(esi + 0x4); /* 0x36045408: mov ecx, dword ptr [esi + 4] */
   6525     MEM32(ebp + (-0x4)) = eax; /* 0x3604540B: mov dword ptr [ebp - 4], eax */
   6526     RECOMP_ICALL(0x360478D0u); /* 0x3604540E: call 0x360478d0 */ /* not lifted */
   6527     RECOMP_FLAGS_IN();
   6528     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045413: push -1 */
   6529     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6530     ebx = 0; /* 0x36045415: xor ebx, ebx */
   6531     _cf = 0;
   6532     _flag_k = FK_TEST;
   6533     edx = ebp + 0x8; /* 0x36045417: lea edx, [ebp + 8] */
   6534     PUSH32(esp, edx); /* 0x3604541A: push edx */
   6535     edx = MEM32(ebp + (-0x4)); /* 0x3604541B: mov edx, dword ptr [ebp - 4] */
   6536     PUSH32(esp, ebx); /* 0x3604541E: push ebx */
   6537     PUSH32(esp, 1); /* 0x3604541F: push 1 */
   6538     PUSH32(esp, 2); /* 0x36045421: push 2 */
   6539     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045423: push -1 */
   6540     PUSH32(esp, ebx); /* 0x36045425: push ebx */
   6541     edi = eax; /* 0x36045426: mov edi, eax */
   6542     PUSH32(esp, ebx); /* 0x36045428: push ebx */
   6543     MEM32(ebp + 0x8) = ebx; /* 0x36045429: mov dword ptr [ebp + 8], ebx */
   6544     ecx = MEM32(edi + 0x174); /* 0x3604542C: mov ecx, dword ptr [edi + 0x174] */
   6545     eax = MEM32(ecx); /* 0x36045432: mov eax, dword ptr [ecx] */
   6546     PUSH32(esp, 0x3F800000u); /* 0x36045434: push 0x3f800000 */
   6547     PUSH32(esp, edx); /* 0x36045439: push edx */
   6548     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x3604543A: call dword ptr [eax + 0x14] */
   6549     RECOMP_FLAGS_IN();
   6550     ecx = MEM32(edi + 0x174); /* 0x3604543D: mov ecx, dword ptr [edi + 0x174] */
   6551     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x36045443: mov byte ptr [ecx + 0x5c], bl */
   6552     edx = MEM32(ebp + 0x8); /* 0x36045446: mov edx, dword ptr [ebp + 8] */
   6553     ecx = MEM32(esi + 0x4); /* 0x36045449: mov ecx, dword ptr [esi + 4] */
   6554     PUSH32(esp, eax); /* 0x3604544C: push eax */
   6555     PUSH32(esp, edx); /* 0x3604544D: push edx */
   6556     RECOMP_ICALL(0x360492F0u); /* 0x3604544E: call 0x360492f0 */ /* not lifted */
   6557     RECOMP_FLAGS_IN();
   6558     edi = POP32_VAL(esp); /* 0x36045453: pop edi */
   6559     esi = POP32_VAL(esp); /* 0x36045454: pop esi */
   6560     ebx = POP32_VAL(esp); /* 0x36045455: pop ebx */
   6561     esp = ebp; /* 0x36045456: mov esp, ebp */
   6562     ebp = POP32_VAL(esp); /* 0x36045458: pop ebp */
   6563     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045459: ret 4 */
   6564 L_3604545C:
   6565     ecx = ebx; /* 0x3604545C: mov ecx, ebx */
   6566     RECOMP_ICALL(0x360C5400u); /* 0x3604545E: call 0x360c5400 */ /* not lifted */
   6567     RECOMP_FLAGS_IN();
   6568     ecx = eax; /* 0x36045463: mov ecx, eax */
   6569     RECOMP_ICALL(0x36008320u); /* 0x36045465: call 0x36008320 */ /* not lifted */
   6570     RECOMP_FLAGS_IN();
   6571     /* cmp eax, 4 */ /* 0x3604546A: cmp eax, 4 */
   6572     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   6573     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6574     _flag_k = FK_CMP;
   6575     if (CMP_NE(_flag_a, _flag_b)) goto L_360454C1; /* 0x3604546D: jne 0x360454c1 */
   6576 L_3604546F:
   6577     ecx = MEM32(esi + 0x4); /* 0x3604546F: mov ecx, dword ptr [esi + 4] */
   6578     RECOMP_ICALL(0x360478D0u); /* 0x36045472: call 0x360478d0 */ /* not lifted */
   6579     RECOMP_FLAGS_IN();
   6580     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045477: push -1 */
   6581     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6582     ebx = 0; /* 0x36045479: xor ebx, ebx */
   6583     _cf = 0;
   6584     _flag_k = FK_TEST;
   6585     edx = ebp + 0x8; /* 0x3604547B: lea edx, [ebp + 8] */
   6586     PUSH32(esp, edx); /* 0x3604547E: push edx */
   6587     PUSH32(esp, ebx); /* 0x3604547F: push ebx */
   6588     PUSH32(esp, 1); /* 0x36045480: push 1 */
   6589     PUSH32(esp, 2); /* 0x36045482: push 2 */
   6590     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045484: push -1 */
   6591     PUSH32(esp, ebx); /* 0x36045486: push ebx */
   6592     edi = eax; /* 0x36045487: mov edi, eax */
   6593     PUSH32(esp, ebx); /* 0x36045489: push ebx */
   6594     MEM32(ebp + 0x8) = ebx; /* 0x3604548A: mov dword ptr [ebp + 8], ebx */
   6595     ecx = MEM32(edi + 0x174); /* 0x3604548D: mov ecx, dword ptr [edi + 0x174] */
   6596     eax = MEM32(ecx); /* 0x36045493: mov eax, dword ptr [ecx] */
   6597     PUSH32(esp, 0x3F800000u); /* 0x36045495: push 0x3f800000 */
   6598     PUSH32(esp, 0x85u); /* 0x3604549A: push 0x85 */
   6599     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x3604549F: call dword ptr [eax + 0x14] */
   6600     RECOMP_FLAGS_IN();
   6601     ecx = MEM32(edi + 0x174); /* 0x360454A2: mov ecx, dword ptr [edi + 0x174] */
   6602     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x360454A8: mov byte ptr [ecx + 0x5c], bl */
   6603     edx = MEM32(ebp + 0x8); /* 0x360454AB: mov edx, dword ptr [ebp + 8] */
   6604     ecx = MEM32(esi + 0x4); /* 0x360454AE: mov ecx, dword ptr [esi + 4] */
   6605     PUSH32(esp, eax); /* 0x360454B1: push eax */
   6606     PUSH32(esp, edx); /* 0x360454B2: push edx */
   6607     RECOMP_ICALL(0x360492F0u); /* 0x360454B3: call 0x360492f0 */ /* not lifted */
   6608     RECOMP_FLAGS_IN();
   6609     edi = POP32_VAL(esp); /* 0x360454B8: pop edi */
   6610     esi = POP32_VAL(esp); /* 0x360454B9: pop esi */
   6611     ebx = POP32_VAL(esp); /* 0x360454BA: pop ebx */
   6612     esp = ebp; /* 0x360454BB: mov esp, ebp */
   6613     ebp = POP32_VAL(esp); /* 0x360454BD: pop ebp */
   6614     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360454BE: ret 4 */
   6615 L_360454C1:
   6616     ecx = ebx; /* 0x360454C1: mov ecx, ebx */
   6617     RECOMP_ICALL(0x360C5400u); /* 0x360454C3: call 0x360c5400 */ /* not lifted */
   6618     RECOMP_FLAGS_IN();
   6619     ecx = eax; /* 0x360454C8: mov ecx, eax */
   6620     RECOMP_ICALL(0x36008320u); /* 0x360454CA: call 0x36008320 */ /* not lifted */
   6621     RECOMP_FLAGS_IN();
   6622     /* cmp eax, 5 */ /* 0x360454CF: cmp eax, 5 */
   6623     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
   6624     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6625     _flag_k = FK_CMP;
   6626     if (CMP_NE(_flag_a, _flag_b)) goto L_36045523; /* 0x360454D2: jne 0x36045523 */
   6627 L_360454D4:
   6628     ecx = MEM32(esi + 0x4); /* 0x360454D4: mov ecx, dword ptr [esi + 4] */
   6629     RECOMP_ICALL(0x360478D0u); /* 0x360454D7: call 0x360478d0 */ /* not lifted */
   6630     RECOMP_FLAGS_IN();
   6631     PUSH32(esp, 0xFFFFFFFFu); /* 0x360454DC: push -1 */
   6632     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6633     ebx = 0; /* 0x360454DE: xor ebx, ebx */
   6634     _cf = 0;
   6635     _flag_k = FK_TEST;
   6636     edx = ebp + 0x8; /* 0x360454E0: lea edx, [ebp + 8] */
   6637     PUSH32(esp, edx); /* 0x360454E3: push edx */
   6638     PUSH32(esp, ebx); /* 0x360454E4: push ebx */
   6639     PUSH32(esp, 1); /* 0x360454E5: push 1 */
   6640     PUSH32(esp, 2); /* 0x360454E7: push 2 */
   6641     PUSH32(esp, 0xFFFFFFFFu); /* 0x360454E9: push -1 */
   6642     PUSH32(esp, ebx); /* 0x360454EB: push ebx */
   6643     edi = eax; /* 0x360454EC: mov edi, eax */
   6644     PUSH32(esp, ebx); /* 0x360454EE: push ebx */
   6645     MEM32(ebp + 0x8) = ebx; /* 0x360454EF: mov dword ptr [ebp + 8], ebx */
   6646     ecx = MEM32(edi + 0x174); /* 0x360454F2: mov ecx, dword ptr [edi + 0x174] */
   6647     eax = MEM32(ecx); /* 0x360454F8: mov eax, dword ptr [ecx] */
   6648     PUSH32(esp, 0x3F800000u); /* 0x360454FA: push 0x3f800000 */
   6649     PUSH32(esp, 0x67u); /* 0x360454FF: push 0x67 */
   6650     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045501: call dword ptr [eax + 0x14] */
   6651     RECOMP_FLAGS_IN();
   6652     ecx = MEM32(edi + 0x174); /* 0x36045504: mov ecx, dword ptr [edi + 0x174] */
   6653     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x3604550A: mov byte ptr [ecx + 0x5c], bl */
   6654     edx = MEM32(ebp + 0x8); /* 0x3604550D: mov edx, dword ptr [ebp + 8] */
   6655     ecx = MEM32(esi + 0x4); /* 0x36045510: mov ecx, dword ptr [esi + 4] */
   6656     PUSH32(esp, eax); /* 0x36045513: push eax */
   6657     PUSH32(esp, edx); /* 0x36045514: push edx */
   6658     RECOMP_ICALL(0x360492F0u); /* 0x36045515: call 0x360492f0 */ /* not lifted */
   6659     RECOMP_FLAGS_IN();
   6660     edi = POP32_VAL(esp); /* 0x3604551A: pop edi */
   6661     esi = POP32_VAL(esp); /* 0x3604551B: pop esi */
   6662     ebx = POP32_VAL(esp); /* 0x3604551C: pop ebx */
   6663     esp = ebp; /* 0x3604551D: mov esp, ebp */
   6664     ebp = POP32_VAL(esp); /* 0x3604551F: pop ebp */
   6665     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045520: ret 4 */
   6666 L_36045523:
   6667     ecx = ebx; /* 0x36045523: mov ecx, ebx */
   6668     RECOMP_ICALL(0x360C5400u); /* 0x36045525: call 0x360c5400 */ /* not lifted */
   6669     RECOMP_FLAGS_IN();
   6670     ecx = eax; /* 0x3604552A: mov ecx, eax */
   6671     RECOMP_ICALL(0x36008320u); /* 0x3604552C: call 0x36008320 */ /* not lifted */
   6672     RECOMP_FLAGS_IN();
   6673     /* cmp eax, 6 */ /* 0x36045531: cmp eax, 6 */
   6674     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   6675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6676     _flag_k = FK_CMP;
   6677     if (CMP_NE(_flag_a, _flag_b)) goto L_3604558C; /* 0x36045534: jne 0x3604558c */
   6678 L_36045536:
   6679     ecx = MEM32(edi + 0x174); /* 0x36045536: mov ecx, dword ptr [edi + 0x174] */
   6680     RECOMP_ICALL(0x3606C640u); /* 0x3604553C: call 0x3606c640 */ /* not lifted */
   6681     RECOMP_FLAGS_IN();
   6682     ecx = MEM32(esi + 0x4); /* 0x36045541: mov ecx, dword ptr [esi + 4] */
   6683     MEM32(ebp + (-0x4)) = eax; /* 0x36045544: mov dword ptr [ebp - 4], eax */
   6684     RECOMP_ICALL(0x360478D0u); /* 0x36045547: call 0x360478d0 */ /* not lifted */
   6685     RECOMP_FLAGS_IN();
   6686     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604554C: push -1 */
   6687     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6688     ebx = 0; /* 0x3604554E: xor ebx, ebx */
   6689     _cf = 0;
   6690     _flag_k = FK_TEST;
   6691     edx = ebp + 0x8; /* 0x36045550: lea edx, [ebp + 8] */
   6692     PUSH32(esp, edx); /* 0x36045553: push edx */
   6693     edx = MEM32(ebp + (-0x4)); /* 0x36045554: mov edx, dword ptr [ebp - 4] */
   6694     PUSH32(esp, ebx); /* 0x36045557: push ebx */
   6695     PUSH32(esp, 1); /* 0x36045558: push 1 */
   6696     PUSH32(esp, 2); /* 0x3604555A: push 2 */
   6697     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604555C: push -1 */
   6698     PUSH32(esp, ebx); /* 0x3604555E: push ebx */
   6699     edi = eax; /* 0x3604555F: mov edi, eax */
   6700     PUSH32(esp, ebx); /* 0x36045561: push ebx */
   6701     MEM32(ebp + 0x8) = ebx; /* 0x36045562: mov dword ptr [ebp + 8], ebx */
   6702     ecx = MEM32(edi + 0x174); /* 0x36045565: mov ecx, dword ptr [edi + 0x174] */
   6703     eax = MEM32(ecx); /* 0x3604556B: mov eax, dword ptr [ecx] */
   6704     PUSH32(esp, 0x3F800000u); /* 0x3604556D: push 0x3f800000 */
   6705     PUSH32(esp, edx); /* 0x36045572: push edx */
   6706     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045573: call dword ptr [eax + 0x14] */
   6707     RECOMP_FLAGS_IN();
   6708     ecx = MEM32(edi + 0x174); /* 0x36045576: mov ecx, dword ptr [edi + 0x174] */
   6709     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x3604557C: mov byte ptr [ecx + 0x5c], bl */
   6710     edx = MEM32(ebp + 0x8); /* 0x3604557F: mov edx, dword ptr [ebp + 8] */
   6711     ecx = MEM32(esi + 0x4); /* 0x36045582: mov ecx, dword ptr [esi + 4] */
   6712     PUSH32(esp, eax); /* 0x36045585: push eax */
   6713     PUSH32(esp, edx); /* 0x36045586: push edx */
   6714     RECOMP_ICALL(0x360492F0u); /* 0x36045587: call 0x360492f0 */ /* not lifted */
   6715     RECOMP_FLAGS_IN();
   6716 L_3604558C:
   6717     edi = POP32_VAL(esp); /* 0x3604558C: pop edi */
   6718     esi = POP32_VAL(esp); /* 0x3604558D: pop esi */
   6719     ebx = POP32_VAL(esp); /* 0x3604558E: pop ebx */
   6720     esp = ebp; /* 0x3604558F: mov esp, ebp */
   6721     ebp = POP32_VAL(esp); /* 0x36045591: pop ebp */
   6722     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045592: ret 4 */
   6723     RECOMP_REGS_OUT();
   6724 }
   6725 
   6726 void sub_360455A0(void) {
   6727     int _fpu_cmp = 0;
   6728     uint32_t _cf = 0;
   6729     int _df = 1;
   6730     uint32_t _flag_k = FK_NONE;
   6731     uint32_t _flag_a = 0, _flag_b = 0;
   6732     uint32_t _itail_tgt = 0;
   6733     RECOMP_REGS_LOCALS
   6734     RECOMP_ENTER(0x360455A0u);
   6735 
   6736 L_360455A0:
   6737     PUSH32(esp, ebp); /* 0x360455A0: push ebp */
   6738     ebp = esp; /* 0x360455A1: mov ebp, esp */
   6739     /* test MEM8(ebp + 0x8), 1 */ /* 0x360455A3: test byte ptr [ebp + 8], 1 */
   6740     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6741     _cf = 0;
   6742     _flag_k = FK_NARROW(FK_TEST, 24);
   6743     PUSH32(esp, esi); /* 0x360455A7: push esi */
   6744     esi = ecx; /* 0x360455A8: mov esi, ecx */
   6745     MEM32(esi) = 0x36170D60u; /* 0x360455AA: mov dword ptr [esi], 0x36170d60 */
   6746     if (TEST_Z(_flag_a, _flag_b)) goto L_360455BB; /* 0x360455B0: je 0x360455bb */
   6747 L_360455B2:
   6748     PUSH32(esp, esi); /* 0x360455B2: push esi */
   6749     RECOMP_ICALL(0x3615FCC4u); /* 0x360455B3: call 0x3615fcc4 */ /* not lifted */
   6750     RECOMP_FLAGS_IN();
   6751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6753     esp = esp + 4; /* 0x360455B8: add esp, 4 */
   6754     _flag_k = FK_ADD;
   6755 L_360455BB:
   6756     eax = esi; /* 0x360455BB: mov eax, esi */
   6757     esi = POP32_VAL(esp); /* 0x360455BD: pop esi */
   6758     ebp = POP32_VAL(esp); /* 0x360455BE: pop ebp */
   6759     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360455BF: ret 4 */
   6760     RECOMP_REGS_OUT();
   6761 }
   6762 
   6763 void sub_360455D0(void) {
   6764     int _fpu_cmp = 0;
   6765     uint32_t _cf = 0;
   6766     int _df = 1;
   6767     uint32_t _flag_k = FK_NONE;
   6768     uint32_t _flag_a = 0, _flag_b = 0;
   6769     uint32_t _itail_tgt = 0;
   6770     RECOMP_REGS_LOCALS
   6771     RECOMP_ENTER(0x360455D0u);
   6772 
   6773 L_360455D0:
   6774     PUSH32(esp, ebp); /* 0x360455D0: push ebp */
   6775     ebp = esp; /* 0x360455D1: mov ebp, esp */
   6776     PUSH32(esp, esi); /* 0x360455D3: push esi */
   6777     esi = ecx; /* 0x360455D4: mov esi, ecx */
   6778     ecx = MEM32(esi + 0x4); /* 0x360455D6: mov ecx, dword ptr [esi + 4] */
   6779     eax = MEM32(ecx); /* 0x360455D9: mov eax, dword ptr [ecx] */
   6780     PUSH32(esp, edi); /* 0x360455DB: push edi */
   6781     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x360455DC: call dword ptr [eax + 0x80] */
   6782     RECOMP_FLAGS_IN();
   6783     /* test LO8(eax), LO8(eax) */ /* 0x360455E2: test al, al */
   6784     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6785     _cf = 0;
   6786     _flag_k = FK_NARROW(FK_TEST, 24);
   6787     if (TEST_Z(_flag_a, _flag_b)) goto L_360455F0; /* 0x360455E4: je 0x360455f0 */
   6788 L_360455E6:
   6789     ecx = MEM32(esi + 0x4); /* 0x360455E6: mov ecx, dword ptr [esi + 4] */
   6790     PUSH32(esp, 0); /* 0x360455E9: push 0 */
   6791     RECOMP_ICALL(0x3604BCA0u); /* 0x360455EB: call 0x3604bca0 */ /* not lifted */
   6792     RECOMP_FLAGS_IN();
   6793 L_360455F0:
   6794     ecx = MEM32(esi + 0x4); /* 0x360455F0: mov ecx, dword ptr [esi + 4] */
   6795     RECOMP_ICALL(MEM32(0x36170344)); /* 0x360455F3: call dword ptr [0x36170344] */
   6796     RECOMP_FLAGS_IN();
   6797     edi = MEM32(ebp + 0x8); /* 0x360455F9: mov edi, dword ptr [ebp + 8] */
   6798     ecx = edi; /* 0x360455FC: mov ecx, edi */
   6799     RECOMP_ICALL(0x36042130u); /* 0x360455FE: call 0x36042130 */ /* not lifted */
   6800     RECOMP_FLAGS_IN();
   6801     ecx = eax; /* 0x36045603: mov ecx, eax */
   6802     RECOMP_ICALL(0x3609BF50u); /* 0x36045605: call 0x3609bf50 */ /* not lifted */
   6803     RECOMP_FLAGS_IN();
   6804     /* cmp eax, 1 */ /* 0x3604560A: cmp eax, 1 */
   6805     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6806     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6807     _flag_k = FK_CMP;
   6808     if (CMP_NE(_flag_a, _flag_b)) goto L_3604562B; /* 0x3604560D: jne 0x3604562b */
   6809 L_3604560F:
   6810     ecx = MEM32(esi + 0x4); /* 0x3604560F: mov ecx, dword ptr [esi + 4] */
   6811     PUSH32(esp, ebx); /* 0x36045612: push ebx */
   6812     RECOMP_ICALL(0x360478D0u); /* 0x36045613: call 0x360478d0 */ /* not lifted */
   6813     RECOMP_FLAGS_IN();
   6814     ecx = MEM32(esi + 0x4); /* 0x36045618: mov ecx, dword ptr [esi + 4] */
   6815     ebx = eax; /* 0x3604561B: mov ebx, eax */
   6816     RECOMP_ICALL(0x360492C0u); /* 0x3604561D: call 0x360492c0 */ /* not lifted */
   6817     RECOMP_FLAGS_IN();
   6818     ecx = ebx; /* 0x36045622: mov ecx, ebx */
   6819     RECOMP_ICALL(MEM32(0x3616FC38)); /* 0x36045624: call dword ptr [0x3616fc38] */
   6820     RECOMP_FLAGS_IN();
   6821     ebx = POP32_VAL(esp); /* 0x3604562A: pop ebx */
   6822 L_3604562B:
   6823     ecx = MEM32(esi + 0x4); /* 0x3604562B: mov ecx, dword ptr [esi + 4] */
   6824     RECOMP_ICALL(0x36047E60u); /* 0x3604562E: call 0x36047e60 */ /* not lifted */
   6825     RECOMP_FLAGS_IN();
   6826     ecx = edi; /* 0x36045633: mov ecx, edi */
   6827     RECOMP_ICALL(0x360C5400u); /* 0x36045635: call 0x360c5400 */ /* not lifted */
   6828     RECOMP_FLAGS_IN();
   6829     ecx = eax; /* 0x3604563A: mov ecx, eax */
   6830     RECOMP_ICALL(0x360F1670u); /* 0x3604563C: call 0x360f1670 */ /* not lifted */
   6831     RECOMP_FLAGS_IN();
   6832     /* cmp eax, 1 */ /* 0x36045641: cmp eax, 1 */
   6833     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6834     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6835     _flag_k = FK_CMP;
   6836     if (CMP_EQ(_flag_a, _flag_b)) goto L_36045697; /* 0x36045644: je 0x36045697 */
   6837 L_36045646:
   6838     ecx = edi; /* 0x36045646: mov ecx, edi */
   6839     RECOMP_ICALL(0x360C5400u); /* 0x36045648: call 0x360c5400 */ /* not lifted */
   6840     RECOMP_FLAGS_IN();
   6841     ecx = eax; /* 0x3604564D: mov ecx, eax */
   6842     RECOMP_ICALL(0x360F1680u); /* 0x3604564F: call 0x360f1680 */ /* not lifted */
   6843     RECOMP_FLAGS_IN();
   6844     /* cmp eax, 3 */ /* 0x36045654: cmp eax, 3 */
   6845     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   6846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6847     _flag_k = FK_CMP;
   6848     MEM32(ebp + 0x8) = 0xBF800000u; /* 0x36045657: mov dword ptr [ebp + 8], 0xbf800000 */
   6849     if (CMP_EQ(_flag_a, _flag_b)) goto L_36045667; /* 0x3604565E: je 0x36045667 */
   6850 L_36045660:
   6851     MEM32(ebp + 0x8) = 0x3F800000u; /* 0x36045660: mov dword ptr [ebp + 8], 0x3f800000 */
   6852 L_36045667:
   6853     ecx = edi; /* 0x36045667: mov ecx, edi */
   6854     RECOMP_ICALL(0x360C5400u); /* 0x36045669: call 0x360c5400 */ /* not lifted */
   6855     RECOMP_FLAGS_IN();
   6856     ecx = eax; /* 0x3604566E: mov ecx, eax */
   6857     RECOMP_ICALL(0x3609C020u); /* 0x36045670: call 0x3609c020 */ /* not lifted */
   6858     RECOMP_FLAGS_IN();
   6859     /* cmp eax, 1 */ /* 0x36045675: cmp eax, 1 */
   6860     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6862     _flag_k = FK_CMP;
   6863     if (CMP_NE(_flag_a, _flag_b)) goto L_36045682; /* 0x36045678: jne 0x36045682 */
   6864 L_3604567A:
   6865     fp_push(*(float*)&MEM32(0x36170BD0)); /* 0x3604567A: fld dword ptr [0x36170bd0] */
   6866     goto L_36045688; /* 0x36045680: jmp 0x36045688 */
   6867 L_36045682:
   6868     fp_push(*(float*)&MEM32(0x36170BD4)); /* 0x36045682: fld dword ptr [0x36170bd4] */
   6869 L_36045688:
   6870     _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x36045688: fmul dword ptr [ebp + 8] */
   6871     PUSH32(esp, ecx); /* 0x3604568B: push ecx */
   6872     ecx = MEM32(esi + 0x4); /* 0x3604568C: mov ecx, dword ptr [esi + 4] */
   6873     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3604568F: fstp dword ptr [esp] */
   6874     RECOMP_ICALL(0x3604BCB0u); /* 0x36045692: call 0x3604bcb0 */ /* not lifted */
   6875     RECOMP_FLAGS_IN();
   6876 L_36045697:
   6877     ecx = MEM32(esi + 0x4); /* 0x36045697: mov ecx, dword ptr [esi + 4] */
   6878     RECOMP_ICALL(0x360478D0u); /* 0x3604569A: call 0x360478d0 */ /* not lifted */
   6879     RECOMP_FLAGS_IN();
   6880     PUSH32(esp, eax); /* 0x3604569F: push eax */
   6881     RECOMP_ICALL(0x36044470u); /* 0x360456A0: call 0x36044470 */ /* not lifted */
   6882     RECOMP_FLAGS_IN();
   6883     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6884     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6885     esp = esp + 4; /* 0x360456A5: add esp, 4 */
   6886     _flag_k = FK_ADD;
   6887     edi = POP32_VAL(esp); /* 0x360456A8: pop edi */
   6888     esi = POP32_VAL(esp); /* 0x360456A9: pop esi */
   6889     ebp = POP32_VAL(esp); /* 0x360456AA: pop ebp */
   6890     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360456AB: ret 4 */
   6891     RECOMP_REGS_OUT();
   6892 }
   6893 
   6894 void sub_360456B0(void) {
   6895     int _fpu_cmp = 0;
   6896     uint32_t _cf = 0;
   6897     int _df = 1;
   6898     uint32_t _flag_k = FK_NONE;
   6899     uint32_t _flag_a = 0, _flag_b = 0;
   6900     uint32_t _itail_tgt = 0;
   6901     RECOMP_REGS_LOCALS
   6902     RECOMP_ENTER(0x360456B0u);
   6903 
   6904 L_360456B0:
   6905     PUSH32(esp, ebp); /* 0x360456B0: push ebp */
   6906     ebp = esp; /* 0x360456B1: mov ebp, esp */
   6907     PUSH32(esp, ecx); /* 0x360456B3: push ecx */
   6908     PUSH32(esp, ebx); /* 0x360456B4: push ebx */
   6909     PUSH32(esp, esi); /* 0x360456B5: push esi */
   6910     esi = ecx; /* 0x360456B6: mov esi, ecx */
   6911     ecx = MEM32(esi + 0x4); /* 0x360456B8: mov ecx, dword ptr [esi + 4] */
   6912     eax = MEM32(ecx); /* 0x360456BB: mov eax, dword ptr [ecx] */
   6913     PUSH32(esp, edi); /* 0x360456BD: push edi */
   6914     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x360456BE: call dword ptr [eax + 0x80] */
   6915     RECOMP_FLAGS_IN();
   6916     /* test LO8(eax), LO8(eax) */ /* 0x360456C4: test al, al */
   6917     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   6918     _cf = 0;
   6919     _flag_k = FK_NARROW(FK_TEST, 24);
   6920     if (TEST_Z(_flag_a, _flag_b)) goto L_360456D5; /* 0x360456C6: je 0x360456d5 */
   6921 L_360456C8:
   6922     ecx = MEM32(esi + 0x4); /* 0x360456C8: mov ecx, dword ptr [esi + 4] */
   6923     PUSH32(esp, 0xBF800000u); /* 0x360456CB: push 0xbf800000 */
   6924     RECOMP_ICALL(0x3604BCA0u); /* 0x360456D0: call 0x3604bca0 */ /* not lifted */
   6925     RECOMP_FLAGS_IN();
   6926 L_360456D5:
   6927     ecx = MEM32(esi + 0x4); /* 0x360456D5: mov ecx, dword ptr [esi + 4] */
   6928     PUSH32(esp, 0xFFFFFFFFu); /* 0x360456D8: push -1 */
   6929     RECOMP_ICALL(MEM32(0x36170348)); /* 0x360456DA: call dword ptr [0x36170348] */
   6930     RECOMP_FLAGS_IN();
   6931     ecx = MEM32(esi + 0x4); /* 0x360456E0: mov ecx, dword ptr [esi + 4] */
   6932     RECOMP_ICALL(0x36047E60u); /* 0x360456E3: call 0x36047e60 */ /* not lifted */
   6933     RECOMP_FLAGS_IN();
   6934     ecx = MEM32(esi + 0x4); /* 0x360456E8: mov ecx, dword ptr [esi + 4] */
   6935     RECOMP_ICALL(0x360478D0u); /* 0x360456EB: call 0x360478d0 */ /* not lifted */
   6936     RECOMP_FLAGS_IN();
   6937     edi = eax; /* 0x360456F0: mov edi, eax */
   6938     ecx = edi; /* 0x360456F2: mov ecx, edi */
   6939     RECOMP_ICALL(MEM32(0x3616FC34)); /* 0x360456F4: call dword ptr [0x3616fc34] */
   6940     RECOMP_FLAGS_IN();
   6941     ecx = MEM32(esi + 0x4); /* 0x360456FA: mov ecx, dword ptr [esi + 4] */
   6942     RECOMP_ICALL(0x36049290u); /* 0x360456FD: call 0x36049290 */ /* not lifted */
   6943     RECOMP_FLAGS_IN();
   6944     ebx = MEM32(ebp + 0x8); /* 0x36045702: mov ebx, dword ptr [ebp + 8] */
   6945     ecx = ebx; /* 0x36045705: mov ecx, ebx */
   6946     RECOMP_ICALL(0x360C5400u); /* 0x36045707: call 0x360c5400 */ /* not lifted */
   6947     RECOMP_FLAGS_IN();
   6948     ecx = eax; /* 0x3604570C: mov ecx, eax */
   6949     RECOMP_ICALL(0x36008320u); /* 0x3604570E: call 0x36008320 */ /* not lifted */
   6950     RECOMP_FLAGS_IN();
   6951     /* cmp eax, 2 */ /* 0x36045713: cmp eax, 2 */
   6952     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   6953     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6954     _flag_k = FK_CMP;
   6955     if (CMP_NE(_flag_a, _flag_b)) goto L_3604576A; /* 0x36045716: jne 0x3604576a */
   6956 L_36045718:
   6957     ecx = MEM32(esi + 0x4); /* 0x36045718: mov ecx, dword ptr [esi + 4] */
   6958     RECOMP_ICALL(0x360478D0u); /* 0x3604571B: call 0x360478d0 */ /* not lifted */
   6959     RECOMP_FLAGS_IN();
   6960     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045720: push -1 */
   6961     edi = eax; /* 0x36045722: mov edi, eax */
   6962     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6963     ebx = 0; /* 0x36045724: xor ebx, ebx */
   6964     _cf = 0;
   6965     _flag_k = FK_TEST;
   6966     eax = ebp + 0x8; /* 0x36045726: lea eax, [ebp + 8] */
   6967     PUSH32(esp, eax); /* 0x36045729: push eax */
   6968     PUSH32(esp, ebx); /* 0x3604572A: push ebx */
   6969     PUSH32(esp, 1); /* 0x3604572B: push 1 */
   6970     PUSH32(esp, 2); /* 0x3604572D: push 2 */
   6971     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604572F: push -1 */
   6972     PUSH32(esp, ebx); /* 0x36045731: push ebx */
   6973     PUSH32(esp, ebx); /* 0x36045732: push ebx */
   6974     MEM32(ebp + 0x8) = ebx; /* 0x36045733: mov dword ptr [ebp + 8], ebx */
   6975     ecx = MEM32(edi + 0x174); /* 0x36045736: mov ecx, dword ptr [edi + 0x174] */
   6976     edx = MEM32(ecx); /* 0x3604573C: mov edx, dword ptr [ecx] */
   6977     PUSH32(esp, 0x3F800000u); /* 0x3604573E: push 0x3f800000 */
   6978     PUSH32(esp, 0x88u); /* 0x36045743: push 0x88 */
   6979     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36045748: call dword ptr [edx + 0x14] */
   6980     RECOMP_FLAGS_IN();
   6981     ecx = MEM32(edi + 0x174); /* 0x3604574B: mov ecx, dword ptr [edi + 0x174] */
   6982     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x36045751: mov byte ptr [ecx + 0x5c], bl */
   6983     edx = MEM32(ebp + 0x8); /* 0x36045754: mov edx, dword ptr [ebp + 8] */
   6984     ecx = MEM32(esi + 0x4); /* 0x36045757: mov ecx, dword ptr [esi + 4] */
   6985     PUSH32(esp, eax); /* 0x3604575A: push eax */
   6986     PUSH32(esp, edx); /* 0x3604575B: push edx */
   6987     RECOMP_ICALL(0x360492F0u); /* 0x3604575C: call 0x360492f0 */ /* not lifted */
   6988     RECOMP_FLAGS_IN();
   6989     edi = POP32_VAL(esp); /* 0x36045761: pop edi */
   6990     esi = POP32_VAL(esp); /* 0x36045762: pop esi */
   6991     ebx = POP32_VAL(esp); /* 0x36045763: pop ebx */
   6992     esp = ebp; /* 0x36045764: mov esp, ebp */
   6993     ebp = POP32_VAL(esp); /* 0x36045766: pop ebp */
   6994     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045767: ret 4 */
   6995 L_3604576A:
   6996     ecx = ebx; /* 0x3604576A: mov ecx, ebx */
   6997     RECOMP_ICALL(0x360C5400u); /* 0x3604576C: call 0x360c5400 */ /* not lifted */
   6998     RECOMP_FLAGS_IN();
   6999     ecx = eax; /* 0x36045771: mov ecx, eax */
   7000     RECOMP_ICALL(0x36008320u); /* 0x36045773: call 0x36008320 */ /* not lifted */
   7001     RECOMP_FLAGS_IN();
   7002     /* cmp eax, 3 */ /* 0x36045778: cmp eax, 3 */
   7003     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   7004     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7005     _flag_k = FK_CMP;
   7006     if (CMP_NE(_flag_a, _flag_b)) goto L_360457CF; /* 0x3604577B: jne 0x360457cf */
   7007 L_3604577D:
   7008     ecx = MEM32(esi + 0x4); /* 0x3604577D: mov ecx, dword ptr [esi + 4] */
   7009     RECOMP_ICALL(0x360478D0u); /* 0x36045780: call 0x360478d0 */ /* not lifted */
   7010     RECOMP_FLAGS_IN();
   7011     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045785: push -1 */
   7012     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7013     ebx = 0; /* 0x36045787: xor ebx, ebx */
   7014     _cf = 0;
   7015     _flag_k = FK_TEST;
   7016     edx = ebp + 0x8; /* 0x36045789: lea edx, [ebp + 8] */
   7017     PUSH32(esp, edx); /* 0x3604578C: push edx */
   7018     PUSH32(esp, ebx); /* 0x3604578D: push ebx */
   7019     PUSH32(esp, 1); /* 0x3604578E: push 1 */
   7020     PUSH32(esp, 2); /* 0x36045790: push 2 */
   7021     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045792: push -1 */
   7022     PUSH32(esp, ebx); /* 0x36045794: push ebx */
   7023     edi = eax; /* 0x36045795: mov edi, eax */
   7024     PUSH32(esp, ebx); /* 0x36045797: push ebx */
   7025     MEM32(ebp + 0x8) = ebx; /* 0x36045798: mov dword ptr [ebp + 8], ebx */
   7026     ecx = MEM32(edi + 0x174); /* 0x3604579B: mov ecx, dword ptr [edi + 0x174] */
   7027     eax = MEM32(ecx); /* 0x360457A1: mov eax, dword ptr [ecx] */
   7028     PUSH32(esp, 0x3F800000u); /* 0x360457A3: push 0x3f800000 */
   7029     PUSH32(esp, 0xDEu); /* 0x360457A8: push 0xde */
   7030     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x360457AD: call dword ptr [eax + 0x14] */
   7031     RECOMP_FLAGS_IN();
   7032     ecx = MEM32(edi + 0x174); /* 0x360457B0: mov ecx, dword ptr [edi + 0x174] */
   7033     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x360457B6: mov byte ptr [ecx + 0x5c], bl */
   7034     edx = MEM32(ebp + 0x8); /* 0x360457B9: mov edx, dword ptr [ebp + 8] */
   7035     ecx = MEM32(esi + 0x4); /* 0x360457BC: mov ecx, dword ptr [esi + 4] */
   7036     PUSH32(esp, eax); /* 0x360457BF: push eax */
   7037     PUSH32(esp, edx); /* 0x360457C0: push edx */
   7038     RECOMP_ICALL(0x360492F0u); /* 0x360457C1: call 0x360492f0 */ /* not lifted */
   7039     RECOMP_FLAGS_IN();
   7040     edi = POP32_VAL(esp); /* 0x360457C6: pop edi */
   7041     esi = POP32_VAL(esp); /* 0x360457C7: pop esi */
   7042     ebx = POP32_VAL(esp); /* 0x360457C8: pop ebx */
   7043     esp = ebp; /* 0x360457C9: mov esp, ebp */
   7044     ebp = POP32_VAL(esp); /* 0x360457CB: pop ebp */
   7045     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360457CC: ret 4 */
   7046 L_360457CF:
   7047     ecx = ebx; /* 0x360457CF: mov ecx, ebx */
   7048     RECOMP_ICALL(0x360C5400u); /* 0x360457D1: call 0x360c5400 */ /* not lifted */
   7049     RECOMP_FLAGS_IN();
   7050     ecx = eax; /* 0x360457D6: mov ecx, eax */
   7051     RECOMP_ICALL(0x36008320u); /* 0x360457D8: call 0x36008320 */ /* not lifted */
   7052     RECOMP_FLAGS_IN();
   7053     /* cmp eax, 4 */ /* 0x360457DD: cmp eax, 4 */
   7054     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7055     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7056     _flag_k = FK_CMP;
   7057     if (CMP_NE(_flag_a, _flag_b)) goto L_36045835; /* 0x360457E0: jne 0x36045835 */
   7058 L_360457E2:
   7059     ecx = MEM32(esi + 0x4); /* 0x360457E2: mov ecx, dword ptr [esi + 4] */
   7060     RECOMP_ICALL(0x360478D0u); /* 0x360457E5: call 0x360478d0 */ /* not lifted */
   7061     RECOMP_FLAGS_IN();
   7062     PUSH32(esp, 0xFFFFFFFFu); /* 0x360457EA: push -1 */
   7063     edx = ebp + 0x8; /* 0x360457EC: lea edx, [ebp + 8] */
   7064     PUSH32(esp, edx); /* 0x360457EF: push edx */
   7065     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7066     ebx = 0; /* 0x360457F0: xor ebx, ebx */
   7067     _cf = 0;
   7068     _flag_k = FK_TEST;
   7069     PUSH32(esp, ebx); /* 0x360457F2: push ebx */
   7070     PUSH32(esp, 1); /* 0x360457F3: push 1 */
   7071     PUSH32(esp, 2); /* 0x360457F5: push 2 */
   7072     PUSH32(esp, 0xFFFFFFFFu); /* 0x360457F7: push -1 */
   7073     PUSH32(esp, ebx); /* 0x360457F9: push ebx */
   7074     edi = eax; /* 0x360457FA: mov edi, eax */
   7075     PUSH32(esp, 1); /* 0x360457FC: push 1 */
   7076     MEM32(ebp + 0x8) = ebx; /* 0x360457FE: mov dword ptr [ebp + 8], ebx */
   7077     ecx = MEM32(edi + 0x174); /* 0x36045801: mov ecx, dword ptr [edi + 0x174] */
   7078     eax = MEM32(ecx); /* 0x36045807: mov eax, dword ptr [ecx] */
   7079     PUSH32(esp, 0x3F800000u); /* 0x36045809: push 0x3f800000 */
   7080     PUSH32(esp, 0x85u); /* 0x3604580E: push 0x85 */
   7081     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045813: call dword ptr [eax + 0x14] */
   7082     RECOMP_FLAGS_IN();
   7083     ecx = MEM32(edi + 0x174); /* 0x36045816: mov ecx, dword ptr [edi + 0x174] */
   7084     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x3604581C: mov byte ptr [ecx + 0x5c], bl */
   7085     edx = MEM32(ebp + 0x8); /* 0x3604581F: mov edx, dword ptr [ebp + 8] */
   7086     ecx = MEM32(esi + 0x4); /* 0x36045822: mov ecx, dword ptr [esi + 4] */
   7087     PUSH32(esp, eax); /* 0x36045825: push eax */
   7088     PUSH32(esp, edx); /* 0x36045826: push edx */
   7089     RECOMP_ICALL(0x360492F0u); /* 0x36045827: call 0x360492f0 */ /* not lifted */
   7090     RECOMP_FLAGS_IN();
   7091     edi = POP32_VAL(esp); /* 0x3604582C: pop edi */
   7092     esi = POP32_VAL(esp); /* 0x3604582D: pop esi */
   7093     ebx = POP32_VAL(esp); /* 0x3604582E: pop ebx */
   7094     esp = ebp; /* 0x3604582F: mov esp, ebp */
   7095     ebp = POP32_VAL(esp); /* 0x36045831: pop ebp */
   7096     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045832: ret 4 */
   7097 L_36045835:
   7098     ecx = ebx; /* 0x36045835: mov ecx, ebx */
   7099     RECOMP_ICALL(0x360C5400u); /* 0x36045837: call 0x360c5400 */ /* not lifted */
   7100     RECOMP_FLAGS_IN();
   7101     ecx = eax; /* 0x3604583C: mov ecx, eax */
   7102     RECOMP_ICALL(0x36008320u); /* 0x3604583E: call 0x36008320 */ /* not lifted */
   7103     RECOMP_FLAGS_IN();
   7104     /* cmp eax, 6 */ /* 0x36045843: cmp eax, 6 */
   7105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   7106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7107     _flag_k = FK_CMP;
   7108     if (CMP_NE(_flag_a, _flag_b)) goto L_360458A8; /* 0x36045846: jne 0x360458a8 */
   7109 L_36045848:
   7110     ecx = MEM32(edi + 0x174); /* 0x36045848: mov ecx, dword ptr [edi + 0x174] */
   7111     RECOMP_ICALL(0x3606C640u); /* 0x3604584E: call 0x3606c640 */ /* not lifted */
   7112     RECOMP_FLAGS_IN();
   7113     ecx = MEM32(esi + 0x4); /* 0x36045853: mov ecx, dword ptr [esi + 4] */
   7114     MEM32(ebp + (-0x4)) = eax; /* 0x36045856: mov dword ptr [ebp - 4], eax */
   7115     RECOMP_ICALL(0x360478D0u); /* 0x36045859: call 0x360478d0 */ /* not lifted */
   7116     RECOMP_FLAGS_IN();
   7117     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604585E: push -1 */
   7118     edx = ebp + 0x8; /* 0x36045860: lea edx, [ebp + 8] */
   7119     PUSH32(esp, edx); /* 0x36045863: push edx */
   7120     edx = MEM32(ebp + (-0x4)); /* 0x36045864: mov edx, dword ptr [ebp - 4] */
   7121     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7122     ebx = 0; /* 0x36045867: xor ebx, ebx */
   7123     _cf = 0;
   7124     _flag_k = FK_TEST;
   7125     PUSH32(esp, ebx); /* 0x36045869: push ebx */
   7126     PUSH32(esp, 1); /* 0x3604586A: push 1 */
   7127     PUSH32(esp, 2); /* 0x3604586C: push 2 */
   7128     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604586E: push -1 */
   7129     PUSH32(esp, ebx); /* 0x36045870: push ebx */
   7130     edi = eax; /* 0x36045871: mov edi, eax */
   7131     PUSH32(esp, 1); /* 0x36045873: push 1 */
   7132     MEM32(ebp + 0x8) = ebx; /* 0x36045875: mov dword ptr [ebp + 8], ebx */
   7133     ecx = MEM32(edi + 0x174); /* 0x36045878: mov ecx, dword ptr [edi + 0x174] */
   7134     eax = MEM32(ecx); /* 0x3604587E: mov eax, dword ptr [ecx] */
   7135     PUSH32(esp, 0x3F800000u); /* 0x36045880: push 0x3f800000 */
   7136     PUSH32(esp, edx); /* 0x36045885: push edx */
   7137     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045886: call dword ptr [eax + 0x14] */
   7138     RECOMP_FLAGS_IN();
   7139     ecx = MEM32(edi + 0x174); /* 0x36045889: mov ecx, dword ptr [edi + 0x174] */
   7140     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x3604588F: mov byte ptr [ecx + 0x5c], bl */
   7141     edx = MEM32(ebp + 0x8); /* 0x36045892: mov edx, dword ptr [ebp + 8] */
   7142     ecx = MEM32(esi + 0x4); /* 0x36045895: mov ecx, dword ptr [esi + 4] */
   7143     PUSH32(esp, eax); /* 0x36045898: push eax */
   7144     PUSH32(esp, edx); /* 0x36045899: push edx */
   7145     RECOMP_ICALL(0x360492F0u); /* 0x3604589A: call 0x360492f0 */ /* not lifted */
   7146     RECOMP_FLAGS_IN();
   7147     edi = POP32_VAL(esp); /* 0x3604589F: pop edi */
   7148     esi = POP32_VAL(esp); /* 0x360458A0: pop esi */
   7149     ebx = POP32_VAL(esp); /* 0x360458A1: pop ebx */
   7150     esp = ebp; /* 0x360458A2: mov esp, ebp */
   7151     ebp = POP32_VAL(esp); /* 0x360458A4: pop ebp */
   7152     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360458A5: ret 4 */
   7153 L_360458A8:
   7154     ecx = ebx; /* 0x360458A8: mov ecx, ebx */
   7155     RECOMP_ICALL(0x360C5400u); /* 0x360458AA: call 0x360c5400 */ /* not lifted */
   7156     RECOMP_FLAGS_IN();
   7157     ecx = eax; /* 0x360458AF: mov ecx, eax */
   7158     RECOMP_ICALL(0x36008320u); /* 0x360458B1: call 0x36008320 */ /* not lifted */
   7159     RECOMP_FLAGS_IN();
   7160     /* cmp eax, 5 */ /* 0x360458B6: cmp eax, 5 */
   7161     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
   7162     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7163     _flag_k = FK_CMP;
   7164     if (CMP_NE(_flag_a, _flag_b)) goto L_36045901; /* 0x360458B9: jne 0x36045901 */
   7165 L_360458BB:
   7166     ecx = MEM32(esi + 0x4); /* 0x360458BB: mov ecx, dword ptr [esi + 4] */
   7167     RECOMP_ICALL(0x360478D0u); /* 0x360458BE: call 0x360478d0 */ /* not lifted */
   7168     RECOMP_FLAGS_IN();
   7169     PUSH32(esp, 0xFFFFFFFFu); /* 0x360458C3: push -1 */
   7170     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7171     ebx = 0; /* 0x360458C5: xor ebx, ebx */
   7172     _cf = 0;
   7173     _flag_k = FK_TEST;
   7174     edx = ebp + 0x8; /* 0x360458C7: lea edx, [ebp + 8] */
   7175     PUSH32(esp, edx); /* 0x360458CA: push edx */
   7176     PUSH32(esp, ebx); /* 0x360458CB: push ebx */
   7177     PUSH32(esp, 1); /* 0x360458CC: push 1 */
   7178     PUSH32(esp, 2); /* 0x360458CE: push 2 */
   7179     PUSH32(esp, 0xFFFFFFFFu); /* 0x360458D0: push -1 */
   7180     PUSH32(esp, ebx); /* 0x360458D2: push ebx */
   7181     edi = eax; /* 0x360458D3: mov edi, eax */
   7182     PUSH32(esp, ebx); /* 0x360458D5: push ebx */
   7183     MEM32(ebp + 0x8) = ebx; /* 0x360458D6: mov dword ptr [ebp + 8], ebx */
   7184     ecx = MEM32(edi + 0x174); /* 0x360458D9: mov ecx, dword ptr [edi + 0x174] */
   7185     eax = MEM32(ecx); /* 0x360458DF: mov eax, dword ptr [ecx] */
   7186     PUSH32(esp, 0x3F800000u); /* 0x360458E1: push 0x3f800000 */
   7187     PUSH32(esp, 0x67u); /* 0x360458E6: push 0x67 */
   7188     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x360458E8: call dword ptr [eax + 0x14] */
   7189     RECOMP_FLAGS_IN();
   7190     ecx = MEM32(edi + 0x174); /* 0x360458EB: mov ecx, dword ptr [edi + 0x174] */
   7191     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x360458F1: mov byte ptr [ecx + 0x5c], bl */
   7192     edx = MEM32(ebp + 0x8); /* 0x360458F4: mov edx, dword ptr [ebp + 8] */
   7193     ecx = MEM32(esi + 0x4); /* 0x360458F7: mov ecx, dword ptr [esi + 4] */
   7194     PUSH32(esp, eax); /* 0x360458FA: push eax */
   7195     PUSH32(esp, edx); /* 0x360458FB: push edx */
   7196     RECOMP_ICALL(0x360492F0u); /* 0x360458FC: call 0x360492f0 */ /* not lifted */
   7197     RECOMP_FLAGS_IN();
   7198 L_36045901:
   7199     edi = POP32_VAL(esp); /* 0x36045901: pop edi */
   7200     esi = POP32_VAL(esp); /* 0x36045902: pop esi */
   7201     ebx = POP32_VAL(esp); /* 0x36045903: pop ebx */
   7202     esp = ebp; /* 0x36045904: mov esp, ebp */
   7203     ebp = POP32_VAL(esp); /* 0x36045906: pop ebp */
   7204     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045907: ret 4 */
   7205     RECOMP_REGS_OUT();
   7206 }
   7207 
   7208 void sub_36045910(void) {
   7209     int _fpu_cmp = 0;
   7210     uint32_t _cf = 0;
   7211     int _df = 1;
   7212     uint32_t _flag_k = FK_NONE;
   7213     uint32_t _flag_a = 0, _flag_b = 0;
   7214     uint32_t _itail_tgt = 0;
   7215     RECOMP_REGS_LOCALS
   7216     RECOMP_ENTER(0x36045910u);
   7217 
   7218 L_36045910:
   7219     PUSH32(esp, ebp); /* 0x36045910: push ebp */
   7220     ebp = esp; /* 0x36045911: mov ebp, esp */
   7221     PUSH32(esp, esi); /* 0x36045913: push esi */
   7222     esi = ecx; /* 0x36045914: mov esi, ecx */
   7223     ecx = MEM32(esi + 0x4); /* 0x36045916: mov ecx, dword ptr [esi + 4] */
   7224     eax = MEM32(ecx); /* 0x36045919: mov eax, dword ptr [ecx] */
   7225     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x3604591B: call dword ptr [eax + 0x80] */
   7226     RECOMP_FLAGS_IN();
   7227     /* test LO8(eax), LO8(eax) */ /* 0x36045921: test al, al */
   7228     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   7229     _cf = 0;
   7230     _flag_k = FK_NARROW(FK_TEST, 24);
   7231     if (TEST_Z(_flag_a, _flag_b)) goto L_3604592F; /* 0x36045923: je 0x3604592f */
   7232 L_36045925:
   7233     ecx = MEM32(esi + 0x4); /* 0x36045925: mov ecx, dword ptr [esi + 4] */
   7234     PUSH32(esp, 0); /* 0x36045928: push 0 */
   7235     RECOMP_ICALL(0x3604BCA0u); /* 0x3604592A: call 0x3604bca0 */ /* not lifted */
   7236     RECOMP_FLAGS_IN();
   7237 L_3604592F:
   7238     ecx = MEM32(esi + 0x4); /* 0x3604592F: mov ecx, dword ptr [esi + 4] */
   7239     RECOMP_ICALL(MEM32(0x36170344)); /* 0x36045932: call dword ptr [0x36170344] */
   7240     RECOMP_FLAGS_IN();
   7241     ecx = MEM32(esi + 0x4); /* 0x36045938: mov ecx, dword ptr [esi + 4] */
   7242     PUSH32(esp, 1); /* 0x3604593B: push 1 */
   7243     RECOMP_ICALL(MEM32(0x36170348)); /* 0x3604593D: call dword ptr [0x36170348] */
   7244     RECOMP_FLAGS_IN();
   7245     ecx = MEM32(esi + 0x4); /* 0x36045943: mov ecx, dword ptr [esi + 4] */
   7246     RECOMP_ICALL(0x36047E60u); /* 0x36045946: call 0x36047e60 */ /* not lifted */
   7247     RECOMP_FLAGS_IN();
   7248     ecx = MEM32(ebp + 0x8); /* 0x3604594B: mov ecx, dword ptr [ebp + 8] */
   7249     RECOMP_ICALL(0x36042130u); /* 0x3604594E: call 0x36042130 */ /* not lifted */
   7250     RECOMP_FLAGS_IN();
   7251     ecx = eax; /* 0x36045953: mov ecx, eax */
   7252     RECOMP_ICALL(0x3609BF50u); /* 0x36045955: call 0x3609bf50 */ /* not lifted */
   7253     RECOMP_FLAGS_IN();
   7254     /* cmp eax, 1 */ /* 0x3604595A: cmp eax, 1 */
   7255     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7256     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7257     _flag_k = FK_CMP;
   7258     if (CMP_NE(_flag_a, _flag_b)) goto L_3604597B; /* 0x3604595D: jne 0x3604597b */
   7259 L_3604595F:
   7260     ecx = MEM32(esi + 0x4); /* 0x3604595F: mov ecx, dword ptr [esi + 4] */
   7261     PUSH32(esp, edi); /* 0x36045962: push edi */
   7262     RECOMP_ICALL(0x360478D0u); /* 0x36045963: call 0x360478d0 */ /* not lifted */
   7263     RECOMP_FLAGS_IN();
   7264     ecx = MEM32(esi + 0x4); /* 0x36045968: mov ecx, dword ptr [esi + 4] */
   7265     edi = eax; /* 0x3604596B: mov edi, eax */
   7266     RECOMP_ICALL(0x360492C0u); /* 0x3604596D: call 0x360492c0 */ /* not lifted */
   7267     RECOMP_FLAGS_IN();
   7268     ecx = edi; /* 0x36045972: mov ecx, edi */
   7269     RECOMP_ICALL(MEM32(0x3616FC38)); /* 0x36045974: call dword ptr [0x3616fc38] */
   7270     RECOMP_FLAGS_IN();
   7271     edi = POP32_VAL(esp); /* 0x3604597A: pop edi */
   7272 L_3604597B:
   7273     ecx = MEM32(esi + 0x4); /* 0x3604597B: mov ecx, dword ptr [esi + 4] */
   7274     RECOMP_ICALL(0x360478D0u); /* 0x3604597E: call 0x360478d0 */ /* not lifted */
   7275     RECOMP_FLAGS_IN();
   7276     PUSH32(esp, eax); /* 0x36045983: push eax */
   7277     RECOMP_ICALL(0x36044470u); /* 0x36045984: call 0x36044470 */ /* not lifted */
   7278     RECOMP_FLAGS_IN();
   7279     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7280     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7281     esp = esp + 4; /* 0x36045989: add esp, 4 */
   7282     _flag_k = FK_ADD;
   7283     esi = POP32_VAL(esp); /* 0x3604598C: pop esi */
   7284     ebp = POP32_VAL(esp); /* 0x3604598D: pop ebp */
   7285     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604598E: ret 4 */
   7286     RECOMP_REGS_OUT();
   7287 }
   7288 
   7289 void sub_360459A0(void) {
   7290     int _fpu_cmp = 0;
   7291     uint32_t _cf = 0;
   7292     int _df = 1;
   7293     uint32_t _flag_k = FK_NONE;
   7294     uint32_t _flag_a = 0, _flag_b = 0;
   7295     uint32_t _itail_tgt = 0;
   7296     RECOMP_REGS_LOCALS
   7297     RECOMP_ENTER(0x360459A0u);
   7298 
   7299 L_360459A0:
   7300     PUSH32(esp, ebp); /* 0x360459A0: push ebp */
   7301     ebp = esp; /* 0x360459A1: mov ebp, esp */
   7302     PUSH32(esp, esi); /* 0x360459A3: push esi */
   7303     esi = ecx; /* 0x360459A4: mov esi, ecx */
   7304     ecx = MEM32(ebp + 0x8); /* 0x360459A6: mov ecx, dword ptr [ebp + 8] */
   7305     RECOMP_ICALL(0x360C5400u); /* 0x360459A9: call 0x360c5400 */ /* not lifted */
   7306     RECOMP_FLAGS_IN();
   7307     ecx = eax; /* 0x360459AE: mov ecx, eax */
   7308     RECOMP_ICALL(0x3609C020u); /* 0x360459B0: call 0x3609c020 */ /* not lifted */
   7309     RECOMP_FLAGS_IN();
   7310     /* cmp eax, 1 */ /* 0x360459B5: cmp eax, 1 */
   7311     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7312     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7313     _flag_k = FK_CMP;
   7314     if (CMP_NE(_flag_a, _flag_b)) goto L_360459D3; /* 0x360459B8: jne 0x360459d3 */
   7315 L_360459BA:
   7316     fp_push(*(float*)&MEM32(0x36170BD0)); /* 0x360459BA: fld dword ptr [0x36170bd0] */
   7317     PUSH32(esp, ecx); /* 0x360459C0: push ecx */
   7318     ecx = MEM32(esi + 0x4); /* 0x360459C1: mov ecx, dword ptr [esi + 4] */
   7319     _st[0] = -_st[0]; /* 0x360459C4: fchs  */
   7320     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x360459C6: fstp dword ptr [esp] */
   7321     RECOMP_ICALL(0x3604BCB0u); /* 0x360459C9: call 0x3604bcb0 */ /* not lifted */
   7322     RECOMP_FLAGS_IN();
   7323     esi = POP32_VAL(esp); /* 0x360459CE: pop esi */
   7324     ebp = POP32_VAL(esp); /* 0x360459CF: pop ebp */
   7325     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360459D0: ret 4 */
   7326 L_360459D3:
   7327     fp_push(*(float*)&MEM32(0x36170BD4)); /* 0x360459D3: fld dword ptr [0x36170bd4] */
   7328     PUSH32(esp, ecx); /* 0x360459D9: push ecx */
   7329     ecx = MEM32(esi + 0x4); /* 0x360459DA: mov ecx, dword ptr [esi + 4] */
   7330     _st[0] = -_st[0]; /* 0x360459DD: fchs  */
   7331     { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x360459DF: fstp dword ptr [esp] */
   7332     RECOMP_ICALL(0x3604BCB0u); /* 0x360459E2: call 0x3604bcb0 */ /* not lifted */
   7333     RECOMP_FLAGS_IN();
   7334     esi = POP32_VAL(esp); /* 0x360459E7: pop esi */
   7335     ebp = POP32_VAL(esp); /* 0x360459E8: pop ebp */
   7336     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360459E9: ret 4 */
   7337     RECOMP_REGS_OUT();
   7338 }
   7339 
   7340 void sub_360459F0(void) {
   7341     int _fpu_cmp = 0;
   7342     uint32_t _cf = 0;
   7343     int _df = 1;
   7344     uint32_t _flag_k = FK_NONE;
   7345     uint32_t _flag_a = 0, _flag_b = 0;
   7346     uint32_t _itail_tgt = 0;
   7347     RECOMP_REGS_LOCALS
   7348     RECOMP_ENTER(0x360459F0u);
   7349 
   7350 L_360459F0:
   7351     PUSH32(esp, ebp); /* 0x360459F0: push ebp */
   7352     ebp = esp; /* 0x360459F1: mov ebp, esp */
   7353     PUSH32(esp, esi); /* 0x360459F3: push esi */
   7354     esi = ecx; /* 0x360459F4: mov esi, ecx */
   7355     ecx = MEM32(ebp + 0x8); /* 0x360459F6: mov ecx, dword ptr [ebp + 8] */
   7356     RECOMP_ICALL(0x360C5400u); /* 0x360459F9: call 0x360c5400 */ /* not lifted */
   7357     RECOMP_FLAGS_IN();
   7358     ecx = eax; /* 0x360459FE: mov ecx, eax */
   7359     RECOMP_ICALL(0x3609C020u); /* 0x36045A00: call 0x3609c020 */ /* not lifted */
   7360     RECOMP_FLAGS_IN();
   7361     /* cmp eax, 1 */ /* 0x36045A05: cmp eax, 1 */
   7362     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7363     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7364     _flag_k = FK_CMP;
   7365     if (CMP_NE(_flag_a, _flag_b)) goto L_36045A1D; /* 0x36045A08: jne 0x36045a1d */
   7366 L_36045A0A:
   7367     eax = MEM32(0x36170BD0); /* 0x36045A0A: mov eax, dword ptr [0x36170bd0] */
   7368     ecx = MEM32(esi + 0x4); /* 0x36045A0F: mov ecx, dword ptr [esi + 4] */
   7369     PUSH32(esp, eax); /* 0x36045A12: push eax */
   7370     RECOMP_ICALL(0x3604BCB0u); /* 0x36045A13: call 0x3604bcb0 */ /* not lifted */
   7371     RECOMP_FLAGS_IN();
   7372     esi = POP32_VAL(esp); /* 0x36045A18: pop esi */
   7373     ebp = POP32_VAL(esp); /* 0x36045A19: pop ebp */
   7374     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045A1A: ret 4 */
   7375 L_36045A1D:
   7376     ecx = MEM32(0x36170BD4); /* 0x36045A1D: mov ecx, dword ptr [0x36170bd4] */
   7377     PUSH32(esp, ecx); /* 0x36045A23: push ecx */
   7378     ecx = MEM32(esi + 0x4); /* 0x36045A24: mov ecx, dword ptr [esi + 4] */
   7379     RECOMP_ICALL(0x3604BCB0u); /* 0x36045A27: call 0x3604bcb0 */ /* not lifted */
   7380     RECOMP_FLAGS_IN();
   7381     esi = POP32_VAL(esp); /* 0x36045A2C: pop esi */
   7382     ebp = POP32_VAL(esp); /* 0x36045A2D: pop ebp */
   7383     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045A2E: ret 4 */
   7384     RECOMP_REGS_OUT();
   7385 }
   7386 
   7387 void sub_36045A40(void) {
   7388     int _fpu_cmp = 0;
   7389     uint32_t _cf = 0;
   7390     int _df = 1;
   7391     uint32_t _flag_k = FK_NONE;
   7392     uint32_t _flag_a = 0, _flag_b = 0;
   7393     uint32_t _itail_tgt = 0;
   7394     RECOMP_REGS_LOCALS
   7395     RECOMP_ENTER(0x36045A40u);
   7396 
   7397 L_36045A40:
   7398     PUSH32(esp, ebp); /* 0x36045A40: push ebp */
   7399     ebp = esp; /* 0x36045A41: mov ebp, esp */
   7400     ecx = MEM32(ecx + 0x4); /* 0x36045A43: mov ecx, dword ptr [ecx + 4] */
   7401     PUSH32(esp, 0); /* 0x36045A46: push 0 */
   7402     RECOMP_ICALL(0x3604BCB0u); /* 0x36045A48: call 0x3604bcb0 */ /* not lifted */
   7403     RECOMP_FLAGS_IN();
   7404     eax = MEM32(ebp + 0x8); /* 0x36045A4D: mov eax, dword ptr [ebp + 8] */
   7405     PUSH32(esp, eax); /* 0x36045A50: push eax */
   7406     RECOMP_ICALL(0x3610BA00u); /* 0x36045A51: call 0x3610ba00 */ /* not lifted */
   7407     RECOMP_FLAGS_IN();
   7408     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7409     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7410     esp = esp + 4; /* 0x36045A56: add esp, 4 */
   7411     _flag_k = FK_ADD;
   7412     ebp = POP32_VAL(esp); /* 0x36045A59: pop ebp */
   7413     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045A5A: ret 4 */
   7414     RECOMP_REGS_OUT();
   7415 }
   7416 
   7417 void sub_36045A60(void) {
   7418     int _fpu_cmp = 0;
   7419     uint32_t _cf = 0;
   7420     int _df = 1;
   7421     uint32_t _flag_k = FK_NONE;
   7422     uint32_t _flag_a = 0, _flag_b = 0;
   7423     uint32_t _itail_tgt = 0;
   7424     RECOMP_REGS_LOCALS
   7425     RECOMP_ENTER(0x36045A60u);
   7426 
   7427 L_36045A60:
   7428     PUSH32(esp, ebp); /* 0x36045A60: push ebp */
   7429     ebp = esp; /* 0x36045A61: mov ebp, esp */
   7430     PUSH32(esp, esi); /* 0x36045A63: push esi */
   7431     PUSH32(esp, edi); /* 0x36045A64: push edi */
   7432     esi = ecx; /* 0x36045A65: mov esi, ecx */
   7433     ecx = MEM32(esi + 0x4); /* 0x36045A67: mov ecx, dword ptr [esi + 4] */
   7434     PUSH32(esp, 0xC0000000u); /* 0x36045A6A: push 0xc0000000 */
   7435     RECOMP_ICALL(0x3604BCC0u); /* 0x36045A6F: call 0x3604bcc0 */ /* not lifted */
   7436     RECOMP_FLAGS_IN();
   7437     ecx = MEM32(esi + 0x4); /* 0x36045A74: mov ecx, dword ptr [esi + 4] */
   7438     RECOMP_ICALL(0x360478D0u); /* 0x36045A77: call 0x360478d0 */ /* not lifted */
   7439     RECOMP_FLAGS_IN();
   7440     ecx = eax; /* 0x36045A7C: mov ecx, eax */
   7441     RECOMP_ICALL(MEM32(0x3616FC34)); /* 0x36045A7E: call dword ptr [0x3616fc34] */
   7442     RECOMP_FLAGS_IN();
   7443     ecx = MEM32(esi + 0x4); /* 0x36045A84: mov ecx, dword ptr [esi + 4] */
   7444     RECOMP_ICALL(0x36049290u); /* 0x36045A87: call 0x36049290 */ /* not lifted */
   7445     RECOMP_FLAGS_IN();
   7446     edi = MEM32(ebp + 0x8); /* 0x36045A8C: mov edi, dword ptr [ebp + 8] */
   7447     ecx = edi; /* 0x36045A8F: mov ecx, edi */
   7448     RECOMP_ICALL(0x360C5400u); /* 0x36045A91: call 0x360c5400 */ /* not lifted */
   7449     RECOMP_FLAGS_IN();
   7450     ecx = eax; /* 0x36045A96: mov ecx, eax */
   7451     RECOMP_ICALL(0x3609C020u); /* 0x36045A98: call 0x3609c020 */ /* not lifted */
   7452     RECOMP_FLAGS_IN();
   7453     /* cmp eax, 1 */ /* 0x36045A9D: cmp eax, 1 */
   7454     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7455     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7456     _flag_k = FK_CMP;
   7457     if (CMP_NE(_flag_a, _flag_b)) goto L_36045B04; /* 0x36045AA0: jne 0x36045b04 */
   7458 L_36045AA2:
   7459     ecx = edi; /* 0x36045AA2: mov ecx, edi */
   7460     RECOMP_ICALL(0x360C5400u); /* 0x36045AA4: call 0x360c5400 */ /* not lifted */
   7461     RECOMP_FLAGS_IN();
   7462     ecx = eax; /* 0x36045AA9: mov ecx, eax */
   7463     RECOMP_ICALL(0x36008320u); /* 0x36045AAB: call 0x36008320 */ /* not lifted */
   7464     RECOMP_FLAGS_IN();
   7465     /* cmp eax, 7 */ /* 0x36045AB0: cmp eax, 7 */
   7466     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   7467     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7468     _flag_k = FK_CMP;
   7469     if (CMP_EQ(_flag_a, _flag_b)) goto L_36045B04; /* 0x36045AB3: je 0x36045b04 */
   7470 L_36045AB5:
   7471     ecx = MEM32(esi + 0x4); /* 0x36045AB5: mov ecx, dword ptr [esi + 4] */
   7472     RECOMP_ICALL(0x360478D0u); /* 0x36045AB8: call 0x360478d0 */ /* not lifted */
   7473     RECOMP_FLAGS_IN();
   7474     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045ABD: push -1 */
   7475     edx = ebp + 0x8; /* 0x36045ABF: lea edx, [ebp + 8] */
   7476     PUSH32(esp, edx); /* 0x36045AC2: push edx */
   7477     PUSH32(esp, 0); /* 0x36045AC3: push 0 */
   7478     PUSH32(esp, 1); /* 0x36045AC5: push 1 */
   7479     PUSH32(esp, 2); /* 0x36045AC7: push 2 */
   7480     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045AC9: push -1 */
   7481     PUSH32(esp, 0); /* 0x36045ACB: push 0 */
   7482     edi = eax; /* 0x36045ACD: mov edi, eax */
   7483     PUSH32(esp, 0); /* 0x36045ACF: push 0 */
   7484     MEM32(ebp + 0x8) = 0; /* 0x36045AD1: mov dword ptr [ebp + 8], 0 */
   7485     ecx = MEM32(edi + 0x174); /* 0x36045AD8: mov ecx, dword ptr [edi + 0x174] */
   7486     eax = MEM32(ecx); /* 0x36045ADE: mov eax, dword ptr [ecx] */
   7487     PUSH32(esp, 0x3F800000u); /* 0x36045AE0: push 0x3f800000 */
   7488     PUSH32(esp, 0x86u); /* 0x36045AE5: push 0x86 */
   7489     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045AEA: call dword ptr [eax + 0x14] */
   7490     RECOMP_FLAGS_IN();
   7491     ecx = MEM32(edi + 0x174); /* 0x36045AED: mov ecx, dword ptr [edi + 0x174] */
   7492     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x36045AF3: mov byte ptr [ecx + 0x5c], 0 */
   7493     edx = MEM32(ebp + 0x8); /* 0x36045AF7: mov edx, dword ptr [ebp + 8] */
   7494     ecx = MEM32(esi + 0x4); /* 0x36045AFA: mov ecx, dword ptr [esi + 4] */
   7495     PUSH32(esp, eax); /* 0x36045AFD: push eax */
   7496     PUSH32(esp, edx); /* 0x36045AFE: push edx */
   7497     RECOMP_ICALL(0x360492F0u); /* 0x36045AFF: call 0x360492f0 */ /* not lifted */
   7498     RECOMP_FLAGS_IN();
   7499 L_36045B04:
   7500     edi = POP32_VAL(esp); /* 0x36045B04: pop edi */
   7501     esi = POP32_VAL(esp); /* 0x36045B05: pop esi */
   7502     ebp = POP32_VAL(esp); /* 0x36045B06: pop ebp */
   7503     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045B07: ret 4 */
   7504     RECOMP_REGS_OUT();
   7505 }
   7506 
   7507 void sub_36045B10(void) {
   7508     int _fpu_cmp = 0;
   7509     uint32_t _cf = 0;
   7510     int _df = 1;
   7511     uint32_t _flag_k = FK_NONE;
   7512     uint32_t _flag_a = 0, _flag_b = 0;
   7513     uint32_t _itail_tgt = 0;
   7514     RECOMP_REGS_LOCALS
   7515     RECOMP_ENTER(0x36045B10u);
   7516 
   7517 L_36045B10:
   7518     PUSH32(esp, ebp); /* 0x36045B10: push ebp */
   7519     ebp = esp; /* 0x36045B11: mov ebp, esp */
   7520     PUSH32(esp, esi); /* 0x36045B13: push esi */
   7521     esi = ecx; /* 0x36045B14: mov esi, ecx */
   7522     ecx = MEM32(esi + 0x4); /* 0x36045B16: mov ecx, dword ptr [esi + 4] */
   7523     PUSH32(esp, 0); /* 0x36045B19: push 0 */
   7524     RECOMP_ICALL(0x3604BCC0u); /* 0x36045B1B: call 0x3604bcc0 */ /* not lifted */
   7525     RECOMP_FLAGS_IN();
   7526     ecx = MEM32(ebp + 0x8); /* 0x36045B20: mov ecx, dword ptr [ebp + 8] */
   7527     RECOMP_ICALL(0x36042130u); /* 0x36045B23: call 0x36042130 */ /* not lifted */
   7528     RECOMP_FLAGS_IN();
   7529     ecx = eax; /* 0x36045B28: mov ecx, eax */
   7530     RECOMP_ICALL(0x3609C020u); /* 0x36045B2A: call 0x3609c020 */ /* not lifted */
   7531     RECOMP_FLAGS_IN();
   7532     /* cmp eax, 1 */ /* 0x36045B2F: cmp eax, 1 */
   7533     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7534     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7535     _flag_k = FK_CMP;
   7536     if (CMP_NE(_flag_a, _flag_b)) goto L_36045B50; /* 0x36045B32: jne 0x36045b50 */
   7537 L_36045B34:
   7538     ecx = MEM32(esi + 0x4); /* 0x36045B34: mov ecx, dword ptr [esi + 4] */
   7539     PUSH32(esp, edi); /* 0x36045B37: push edi */
   7540     RECOMP_ICALL(0x360478D0u); /* 0x36045B38: call 0x360478d0 */ /* not lifted */
   7541     RECOMP_FLAGS_IN();
   7542     ecx = MEM32(esi + 0x4); /* 0x36045B3D: mov ecx, dword ptr [esi + 4] */
   7543     edi = eax; /* 0x36045B40: mov edi, eax */
   7544     RECOMP_ICALL(0x360492C0u); /* 0x36045B42: call 0x360492c0 */ /* not lifted */
   7545     RECOMP_FLAGS_IN();
   7546     ecx = edi; /* 0x36045B47: mov ecx, edi */
   7547     RECOMP_ICALL(MEM32(0x3616FC38)); /* 0x36045B49: call dword ptr [0x3616fc38] */
   7548     RECOMP_FLAGS_IN();
   7549     edi = POP32_VAL(esp); /* 0x36045B4F: pop edi */
   7550 L_36045B50:
   7551     ecx = MEM32(esi + 0x4); /* 0x36045B50: mov ecx, dword ptr [esi + 4] */
   7552     RECOMP_ICALL(0x360478D0u); /* 0x36045B53: call 0x360478d0 */ /* not lifted */
   7553     RECOMP_FLAGS_IN();
   7554     PUSH32(esp, eax); /* 0x36045B58: push eax */
   7555     RECOMP_ICALL(0x36044470u); /* 0x36045B59: call 0x36044470 */ /* not lifted */
   7556     RECOMP_FLAGS_IN();
   7557     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7558     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7559     esp = esp + 4; /* 0x36045B5E: add esp, 4 */
   7560     _flag_k = FK_ADD;
   7561     esi = POP32_VAL(esp); /* 0x36045B61: pop esi */
   7562     ebp = POP32_VAL(esp); /* 0x36045B62: pop ebp */
   7563     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045B63: ret 4 */
   7564     RECOMP_REGS_OUT();
   7565 }
   7566 
   7567 void sub_36045B70(void) {
   7568     int _fpu_cmp = 0;
   7569     uint32_t _cf = 0;
   7570     int _df = 1;
   7571     uint32_t _flag_k = FK_NONE;
   7572     uint32_t _flag_a = 0, _flag_b = 0;
   7573     uint32_t _itail_tgt = 0;
   7574     RECOMP_REGS_LOCALS
   7575     RECOMP_ENTER(0x36045B70u);
   7576 
   7577 L_36045B70:
   7578     PUSH32(esp, ebp); /* 0x36045B70: push ebp */
   7579     ebp = esp; /* 0x36045B71: mov ebp, esp */
   7580     PUSH32(esp, esi); /* 0x36045B73: push esi */
   7581     PUSH32(esp, edi); /* 0x36045B74: push edi */
   7582     esi = ecx; /* 0x36045B75: mov esi, ecx */
   7583     ecx = MEM32(esi + 0x4); /* 0x36045B77: mov ecx, dword ptr [esi + 4] */
   7584     PUSH32(esp, 0x40000000u); /* 0x36045B7A: push 0x40000000 */
   7585     RECOMP_ICALL(0x3604BCC0u); /* 0x36045B7F: call 0x3604bcc0 */ /* not lifted */
   7586     RECOMP_FLAGS_IN();
   7587     ecx = MEM32(esi + 0x4); /* 0x36045B84: mov ecx, dword ptr [esi + 4] */
   7588     RECOMP_ICALL(0x360478D0u); /* 0x36045B87: call 0x360478d0 */ /* not lifted */
   7589     RECOMP_FLAGS_IN();
   7590     ecx = eax; /* 0x36045B8C: mov ecx, eax */
   7591     RECOMP_ICALL(MEM32(0x3616FC34)); /* 0x36045B8E: call dword ptr [0x3616fc34] */
   7592     RECOMP_FLAGS_IN();
   7593     ecx = MEM32(esi + 0x4); /* 0x36045B94: mov ecx, dword ptr [esi + 4] */
   7594     RECOMP_ICALL(0x36049290u); /* 0x36045B97: call 0x36049290 */ /* not lifted */
   7595     RECOMP_FLAGS_IN();
   7596     edi = MEM32(ebp + 0x8); /* 0x36045B9C: mov edi, dword ptr [ebp + 8] */
   7597     ecx = edi; /* 0x36045B9F: mov ecx, edi */
   7598     RECOMP_ICALL(0x360C5400u); /* 0x36045BA1: call 0x360c5400 */ /* not lifted */
   7599     RECOMP_FLAGS_IN();
   7600     ecx = eax; /* 0x36045BA6: mov ecx, eax */
   7601     RECOMP_ICALL(0x3609C020u); /* 0x36045BA8: call 0x3609c020 */ /* not lifted */
   7602     RECOMP_FLAGS_IN();
   7603     /* cmp eax, 1 */ /* 0x36045BAD: cmp eax, 1 */
   7604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7606     _flag_k = FK_CMP;
   7607     if (CMP_NE(_flag_a, _flag_b)) goto L_36045C14; /* 0x36045BB0: jne 0x36045c14 */
   7608 L_36045BB2:
   7609     ecx = edi; /* 0x36045BB2: mov ecx, edi */
   7610     RECOMP_ICALL(0x360C5400u); /* 0x36045BB4: call 0x360c5400 */ /* not lifted */
   7611     RECOMP_FLAGS_IN();
   7612     ecx = eax; /* 0x36045BB9: mov ecx, eax */
   7613     RECOMP_ICALL(0x36008320u); /* 0x36045BBB: call 0x36008320 */ /* not lifted */
   7614     RECOMP_FLAGS_IN();
   7615     /* cmp eax, 7 */ /* 0x36045BC0: cmp eax, 7 */
   7616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   7617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7618     _flag_k = FK_CMP;
   7619     if (CMP_EQ(_flag_a, _flag_b)) goto L_36045C14; /* 0x36045BC3: je 0x36045c14 */
   7620 L_36045BC5:
   7621     ecx = MEM32(esi + 0x4); /* 0x36045BC5: mov ecx, dword ptr [esi + 4] */
   7622     RECOMP_ICALL(0x360478D0u); /* 0x36045BC8: call 0x360478d0 */ /* not lifted */
   7623     RECOMP_FLAGS_IN();
   7624     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045BCD: push -1 */
   7625     edx = ebp + 0x8; /* 0x36045BCF: lea edx, [ebp + 8] */
   7626     PUSH32(esp, edx); /* 0x36045BD2: push edx */
   7627     PUSH32(esp, 0); /* 0x36045BD3: push 0 */
   7628     PUSH32(esp, 1); /* 0x36045BD5: push 1 */
   7629     PUSH32(esp, 2); /* 0x36045BD7: push 2 */
   7630     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045BD9: push -1 */
   7631     PUSH32(esp, 0); /* 0x36045BDB: push 0 */
   7632     edi = eax; /* 0x36045BDD: mov edi, eax */
   7633     PUSH32(esp, 0); /* 0x36045BDF: push 0 */
   7634     MEM32(ebp + 0x8) = 0; /* 0x36045BE1: mov dword ptr [ebp + 8], 0 */
   7635     ecx = MEM32(edi + 0x174); /* 0x36045BE8: mov ecx, dword ptr [edi + 0x174] */
   7636     eax = MEM32(ecx); /* 0x36045BEE: mov eax, dword ptr [ecx] */
   7637     PUSH32(esp, 0x3F800000u); /* 0x36045BF0: push 0x3f800000 */
   7638     PUSH32(esp, 0x87u); /* 0x36045BF5: push 0x87 */
   7639     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045BFA: call dword ptr [eax + 0x14] */
   7640     RECOMP_FLAGS_IN();
   7641     ecx = MEM32(edi + 0x174); /* 0x36045BFD: mov ecx, dword ptr [edi + 0x174] */
   7642     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x36045C03: mov byte ptr [ecx + 0x5c], 0 */
   7643     edx = MEM32(ebp + 0x8); /* 0x36045C07: mov edx, dword ptr [ebp + 8] */
   7644     ecx = MEM32(esi + 0x4); /* 0x36045C0A: mov ecx, dword ptr [esi + 4] */
   7645     PUSH32(esp, eax); /* 0x36045C0D: push eax */
   7646     PUSH32(esp, edx); /* 0x36045C0E: push edx */
   7647     RECOMP_ICALL(0x360492F0u); /* 0x36045C0F: call 0x360492f0 */ /* not lifted */
   7648     RECOMP_FLAGS_IN();
   7649 L_36045C14:
   7650     edi = POP32_VAL(esp); /* 0x36045C14: pop edi */
   7651     esi = POP32_VAL(esp); /* 0x36045C15: pop esi */
   7652     ebp = POP32_VAL(esp); /* 0x36045C16: pop ebp */
   7653     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045C17: ret 4 */
   7654     RECOMP_REGS_OUT();
   7655 }
   7656 
   7657 void sub_36045C20(void) {
   7658     int _fpu_cmp = 0;
   7659     uint32_t _cf = 0;
   7660     int _df = 1;
   7661     uint32_t _flag_k = FK_NONE;
   7662     uint32_t _flag_a = 0, _flag_b = 0;
   7663     uint32_t _itail_tgt = 0;
   7664     RECOMP_REGS_LOCALS
   7665     RECOMP_ENTER(0x36045C20u);
   7666 
   7667 L_36045C20:
   7668     PUSH32(esp, ebp); /* 0x36045C20: push ebp */
   7669     ebp = esp; /* 0x36045C21: mov ebp, esp */
   7670     PUSH32(esp, ecx); /* 0x36045C23: push ecx */
   7671     PUSH32(esp, ebx); /* 0x36045C24: push ebx */
   7672     PUSH32(esp, esi); /* 0x36045C25: push esi */
   7673     esi = ecx; /* 0x36045C26: mov esi, ecx */
   7674     ecx = MEM32(esi + 0x4); /* 0x36045C28: mov ecx, dword ptr [esi + 4] */
   7675     PUSH32(esp, edi); /* 0x36045C2B: push edi */
   7676     RECOMP_ICALL(0x36047E60u); /* 0x36045C2C: call 0x36047e60 */ /* not lifted */
   7677     RECOMP_FLAGS_IN();
   7678     ecx = MEM32(esi + 0x4); /* 0x36045C31: mov ecx, dword ptr [esi + 4] */
   7679     RECOMP_ICALL(0x360478D0u); /* 0x36045C34: call 0x360478d0 */ /* not lifted */
   7680     RECOMP_FLAGS_IN();
   7681     ecx = eax; /* 0x36045C39: mov ecx, eax */
   7682     RECOMP_ICALL(0x36071BD0u); /* 0x36045C3B: call 0x36071bd0 */ /* not lifted */
   7683     RECOMP_FLAGS_IN();
   7684     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36045C40: fstp dword ptr [ebp - 4] */
   7685     ecx = MEM32(esi + 0x4); /* 0x36045C43: mov ecx, dword ptr [esi + 4] */
   7686     edx = MEM32(ebp + (-0x4)); /* 0x36045C46: mov edx, dword ptr [ebp - 4] */
   7687     eax = MEM32(ecx); /* 0x36045C49: mov eax, dword ptr [ecx] */
   7688     PUSH32(esp, edx); /* 0x36045C4B: push edx */
   7689     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x36045C4C: call dword ptr [eax + 0x2c] */
   7690     RECOMP_FLAGS_IN();
   7691     edi = MEM32(ebp + 0x8); /* 0x36045C4F: mov edi, dword ptr [ebp + 8] */
   7692     ecx = edi; /* 0x36045C52: mov ecx, edi */
   7693     RECOMP_ICALL(0x360C5400u); /* 0x36045C54: call 0x360c5400 */ /* not lifted */
   7694     RECOMP_FLAGS_IN();
   7695     ecx = eax; /* 0x36045C59: mov ecx, eax */
   7696     RECOMP_ICALL(0x3609C020u); /* 0x36045C5B: call 0x3609c020 */ /* not lifted */
   7697     RECOMP_FLAGS_IN();
   7698     /* cmp eax, 1 */ /* 0x36045C60: cmp eax, 1 */
   7699     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7701     _flag_k = FK_CMP;
   7702     if (CMP_NE(_flag_a, _flag_b)) goto L_36045CB7; /* 0x36045C63: jne 0x36045cb7 */
   7703 L_36045C65:
   7704     ecx = MEM32(esi + 0x4); /* 0x36045C65: mov ecx, dword ptr [esi + 4] */
   7705     RECOMP_ICALL(0x360478D0u); /* 0x36045C68: call 0x360478d0 */ /* not lifted */
   7706     RECOMP_FLAGS_IN();
   7707     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045C6D: push -1 */
   7708     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7709     ebx = 0; /* 0x36045C6F: xor ebx, ebx */
   7710     _cf = 0;
   7711     _flag_k = FK_TEST;
   7712     edx = ebp + 0x8; /* 0x36045C71: lea edx, [ebp + 8] */
   7713     PUSH32(esp, edx); /* 0x36045C74: push edx */
   7714     PUSH32(esp, ebx); /* 0x36045C75: push ebx */
   7715     PUSH32(esp, 1); /* 0x36045C76: push 1 */
   7716     PUSH32(esp, 2); /* 0x36045C78: push 2 */
   7717     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045C7A: push -1 */
   7718     PUSH32(esp, ebx); /* 0x36045C7C: push ebx */
   7719     edi = eax; /* 0x36045C7D: mov edi, eax */
   7720     PUSH32(esp, ebx); /* 0x36045C7F: push ebx */
   7721     MEM32(ebp + 0x8) = ebx; /* 0x36045C80: mov dword ptr [ebp + 8], ebx */
   7722     ecx = MEM32(edi + 0x174); /* 0x36045C83: mov ecx, dword ptr [edi + 0x174] */
   7723     eax = MEM32(ecx); /* 0x36045C89: mov eax, dword ptr [ecx] */
   7724     PUSH32(esp, 0x3F800000u); /* 0x36045C8B: push 0x3f800000 */
   7725     PUSH32(esp, 0x9Cu); /* 0x36045C90: push 0x9c */
   7726     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045C95: call dword ptr [eax + 0x14] */
   7727     RECOMP_FLAGS_IN();
   7728     ecx = MEM32(edi + 0x174); /* 0x36045C98: mov ecx, dword ptr [edi + 0x174] */
   7729     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x36045C9E: mov byte ptr [ecx + 0x5c], bl */
   7730     edx = MEM32(ebp + 0x8); /* 0x36045CA1: mov edx, dword ptr [ebp + 8] */
   7731     ecx = MEM32(esi + 0x4); /* 0x36045CA4: mov ecx, dword ptr [esi + 4] */
   7732     PUSH32(esp, eax); /* 0x36045CA7: push eax */
   7733     PUSH32(esp, edx); /* 0x36045CA8: push edx */
   7734     RECOMP_ICALL(0x360492F0u); /* 0x36045CA9: call 0x360492f0 */ /* not lifted */
   7735     RECOMP_FLAGS_IN();
   7736     edi = POP32_VAL(esp); /* 0x36045CAE: pop edi */
   7737     esi = POP32_VAL(esp); /* 0x36045CAF: pop esi */
   7738     ebx = POP32_VAL(esp); /* 0x36045CB0: pop ebx */
   7739     esp = ebp; /* 0x36045CB1: mov esp, ebp */
   7740     ebp = POP32_VAL(esp); /* 0x36045CB3: pop ebp */
   7741     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045CB4: ret 4 */
   7742 L_36045CB7:
   7743     ecx = edi; /* 0x36045CB7: mov ecx, edi */
   7744     RECOMP_ICALL(0x360C5400u); /* 0x36045CB9: call 0x360c5400 */ /* not lifted */
   7745     RECOMP_FLAGS_IN();
   7746     ecx = eax; /* 0x36045CBE: mov ecx, eax */
   7747     RECOMP_ICALL(0x36008320u); /* 0x36045CC0: call 0x36008320 */ /* not lifted */
   7748     RECOMP_FLAGS_IN();
   7749     /* cmp eax, 2 */ /* 0x36045CC5: cmp eax, 2 */
   7750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   7751     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7752     _flag_k = FK_CMP;
   7753     ecx = MEM32(esi + 0x4); /* 0x36045CC8: mov ecx, dword ptr [esi + 4] */
   7754     if (CMP_NE(_flag_a, _flag_b)) goto L_36045D1C; /* 0x36045CCB: jne 0x36045d1c */
   7755 L_36045CCD:
   7756     RECOMP_ICALL(0x360478D0u); /* 0x36045CCD: call 0x360478d0 */ /* not lifted */
   7757     RECOMP_FLAGS_IN();
   7758     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045CD2: push -1 */
   7759     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7760     ebx = 0; /* 0x36045CD4: xor ebx, ebx */
   7761     _cf = 0;
   7762     _flag_k = FK_TEST;
   7763     edx = ebp + 0x8; /* 0x36045CD6: lea edx, [ebp + 8] */
   7764     PUSH32(esp, edx); /* 0x36045CD9: push edx */
   7765     PUSH32(esp, ebx); /* 0x36045CDA: push ebx */
   7766     PUSH32(esp, 1); /* 0x36045CDB: push 1 */
   7767     PUSH32(esp, 2); /* 0x36045CDD: push 2 */
   7768     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045CDF: push -1 */
   7769     PUSH32(esp, ebx); /* 0x36045CE1: push ebx */
   7770     edi = eax; /* 0x36045CE2: mov edi, eax */
   7771     PUSH32(esp, ebx); /* 0x36045CE4: push ebx */
   7772     MEM32(ebp + 0x8) = ebx; /* 0x36045CE5: mov dword ptr [ebp + 8], ebx */
   7773     ecx = MEM32(edi + 0x174); /* 0x36045CE8: mov ecx, dword ptr [edi + 0x174] */
   7774     eax = MEM32(ecx); /* 0x36045CEE: mov eax, dword ptr [ecx] */
   7775     PUSH32(esp, 0x3F800000u); /* 0x36045CF0: push 0x3f800000 */
   7776     PUSH32(esp, 0x9Du); /* 0x36045CF5: push 0x9d */
   7777     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045CFA: call dword ptr [eax + 0x14] */
   7778     RECOMP_FLAGS_IN();
   7779     ecx = MEM32(edi + 0x174); /* 0x36045CFD: mov ecx, dword ptr [edi + 0x174] */
   7780     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x36045D03: mov byte ptr [ecx + 0x5c], bl */
   7781     edx = MEM32(ebp + 0x8); /* 0x36045D06: mov edx, dword ptr [ebp + 8] */
   7782     ecx = MEM32(esi + 0x4); /* 0x36045D09: mov ecx, dword ptr [esi + 4] */
   7783     PUSH32(esp, eax); /* 0x36045D0C: push eax */
   7784     PUSH32(esp, edx); /* 0x36045D0D: push edx */
   7785     RECOMP_ICALL(0x360492F0u); /* 0x36045D0E: call 0x360492f0 */ /* not lifted */
   7786     RECOMP_FLAGS_IN();
   7787     edi = POP32_VAL(esp); /* 0x36045D13: pop edi */
   7788     esi = POP32_VAL(esp); /* 0x36045D14: pop esi */
   7789     ebx = POP32_VAL(esp); /* 0x36045D15: pop ebx */
   7790     esp = ebp; /* 0x36045D16: mov esp, ebp */
   7791     ebp = POP32_VAL(esp); /* 0x36045D18: pop ebp */
   7792     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045D19: ret 4 */
   7793 L_36045D1C:
   7794     RECOMP_ICALL(0x360478D0u); /* 0x36045D1C: call 0x360478d0 */ /* not lifted */
   7795     RECOMP_FLAGS_IN();
   7796     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045D21: push -1 */
   7797     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7798     ebx = 0; /* 0x36045D23: xor ebx, ebx */
   7799     _cf = 0;
   7800     _flag_k = FK_TEST;
   7801     edx = ebp + 0x8; /* 0x36045D25: lea edx, [ebp + 8] */
   7802     PUSH32(esp, edx); /* 0x36045D28: push edx */
   7803     PUSH32(esp, ebx); /* 0x36045D29: push ebx */
   7804     PUSH32(esp, 1); /* 0x36045D2A: push 1 */
   7805     PUSH32(esp, 2); /* 0x36045D2C: push 2 */
   7806     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045D2E: push -1 */
   7807     PUSH32(esp, ebx); /* 0x36045D30: push ebx */
   7808     edi = eax; /* 0x36045D31: mov edi, eax */
   7809     PUSH32(esp, ebx); /* 0x36045D33: push ebx */
   7810     MEM32(ebp + 0x8) = ebx; /* 0x36045D34: mov dword ptr [ebp + 8], ebx */
   7811     ecx = MEM32(edi + 0x174); /* 0x36045D37: mov ecx, dword ptr [edi + 0x174] */
   7812     eax = MEM32(ecx); /* 0x36045D3D: mov eax, dword ptr [ecx] */
   7813     PUSH32(esp, 0x3F800000u); /* 0x36045D3F: push 0x3f800000 */
   7814     PUSH32(esp, 0x9Du); /* 0x36045D44: push 0x9d */
   7815     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045D49: call dword ptr [eax + 0x14] */
   7816     RECOMP_FLAGS_IN();
   7817     ecx = MEM32(edi + 0x174); /* 0x36045D4C: mov ecx, dword ptr [edi + 0x174] */
   7818     MEM8(ecx + 0x5C) = (uint8_t)(LO8(ebx)); /* 0x36045D52: mov byte ptr [ecx + 0x5c], bl */
   7819     edx = MEM32(ebp + 0x8); /* 0x36045D55: mov edx, dword ptr [ebp + 8] */
   7820     ecx = MEM32(esi + 0x4); /* 0x36045D58: mov ecx, dword ptr [esi + 4] */
   7821     PUSH32(esp, eax); /* 0x36045D5B: push eax */
   7822     PUSH32(esp, edx); /* 0x36045D5C: push edx */
   7823     RECOMP_ICALL(0x360492F0u); /* 0x36045D5D: call 0x360492f0 */ /* not lifted */
   7824     RECOMP_FLAGS_IN();
   7825     edi = POP32_VAL(esp); /* 0x36045D62: pop edi */
   7826     esi = POP32_VAL(esp); /* 0x36045D63: pop esi */
   7827     ebx = POP32_VAL(esp); /* 0x36045D64: pop ebx */
   7828     esp = ebp; /* 0x36045D65: mov esp, ebp */
   7829     ebp = POP32_VAL(esp); /* 0x36045D67: pop ebp */
   7830     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045D68: ret 4 */
   7831     RECOMP_REGS_OUT();
   7832 }
   7833 
   7834 void sub_36045D70(void) {
   7835     int _fpu_cmp = 0;
   7836     uint32_t _cf = 0;
   7837     int _df = 1;
   7838     uint32_t _flag_k = FK_NONE;
   7839     uint32_t _flag_a = 0, _flag_b = 0;
   7840     uint32_t _itail_tgt = 0;
   7841     RECOMP_REGS_LOCALS
   7842     RECOMP_ENTER(0x36045D70u);
   7843 
   7844 L_36045D70:
   7845     PUSH32(esp, ebp); /* 0x36045D70: push ebp */
   7846     ebp = esp; /* 0x36045D71: mov ebp, esp */
   7847     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   7848     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7849     esp = esp - 8; /* 0x36045D73: sub esp, 8 */
   7850     _flag_k = FK_CMP;
   7851     PUSH32(esp, ebx); /* 0x36045D76: push ebx */
   7852     ebx = MEM32(ebp + 0x8); /* 0x36045D77: mov ebx, dword ptr [ebp + 8] */
   7853     PUSH32(esp, esi); /* 0x36045D7A: push esi */
   7854     esi = ecx; /* 0x36045D7B: mov esi, ecx */
   7855     ecx = ebx; /* 0x36045D7D: mov ecx, ebx */
   7856     MEM32(ebp + (-0x8)) = esi; /* 0x36045D7F: mov dword ptr [ebp - 8], esi */
   7857     RECOMP_ICALL(0x36042130u); /* 0x36045D82: call 0x36042130 */ /* not lifted */
   7858     RECOMP_FLAGS_IN();
   7859     ecx = eax; /* 0x36045D87: mov ecx, eax */
   7860     RECOMP_ICALL(0x3614C560u); /* 0x36045D89: call 0x3614c560 */ /* not lifted */
   7861     RECOMP_FLAGS_IN();
   7862     /* cmp eax, 1 */ /* 0x36045D8E: cmp eax, 1 */
   7863     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7864     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7865     _flag_k = FK_CMP;
   7866     if (CMP_EQ(_flag_a, _flag_b)) goto L_36045F27; /* 0x36045D91: je 0x36045f27 */
   7867 L_36045D97:
   7868     ecx = MEM32(esi + 0x4); /* 0x36045D97: mov ecx, dword ptr [esi + 4] */
   7869     PUSH32(esp, edi); /* 0x36045D9A: push edi */
   7870     RECOMP_ICALL(0x36047E60u); /* 0x36045D9B: call 0x36047e60 */ /* not lifted */
   7871     RECOMP_FLAGS_IN();
   7872     ecx = MEM32(esi + 0x4); /* 0x36045DA0: mov ecx, dword ptr [esi + 4] */
   7873     RECOMP_ICALL(0x360478D0u); /* 0x36045DA3: call 0x360478d0 */ /* not lifted */
   7874     RECOMP_FLAGS_IN();
   7875     ecx = ebx; /* 0x36045DA8: mov ecx, ebx */
   7876     esi = eax; /* 0x36045DAA: mov esi, eax */
   7877     RECOMP_ICALL(0x360C5400u); /* 0x36045DAC: call 0x360c5400 */ /* not lifted */
   7878     RECOMP_FLAGS_IN();
   7879     ecx = eax; /* 0x36045DB1: mov ecx, eax */
   7880     RECOMP_ICALL(0x3609C020u); /* 0x36045DB3: call 0x3609c020 */ /* not lifted */
   7881     RECOMP_FLAGS_IN();
   7882     /* cmp eax, 1 */ /* 0x36045DB8: cmp eax, 1 */
   7883     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   7884     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7885     _flag_k = FK_CMP;
   7886     ecx = ebx; /* 0x36045DBB: mov ecx, ebx */
   7887     if (CMP_NE(_flag_a, _flag_b)) goto L_36045E0D; /* 0x36045DBD: jne 0x36045e0d */
   7888 L_36045DBF:
   7889     RECOMP_ICALL(0x360C5400u); /* 0x36045DBF: call 0x360c5400 */ /* not lifted */
   7890     RECOMP_FLAGS_IN();
   7891     ecx = eax; /* 0x36045DC4: mov ecx, eax */
   7892     RECOMP_ICALL(0x3609BF50u); /* 0x36045DC6: call 0x3609bf50 */ /* not lifted */
   7893     RECOMP_FLAGS_IN();
   7894     /* cmp eax, 3 */ /* 0x36045DCB: cmp eax, 3 */
   7895     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   7896     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7897     _flag_k = FK_CMP;
   7898     if (CMP_NE(_flag_a, _flag_b)) goto L_36045DF6; /* 0x36045DCE: jne 0x36045df6 */
   7899 L_36045DD0:
   7900     ecx = ebx; /* 0x36045DD0: mov ecx, ebx */
   7901     edi = 0xB9u; /* 0x36045DD2: mov edi, 0xb9 */
   7902     RECOMP_ICALL(0x360C5400u); /* 0x36045DD7: call 0x360c5400 */ /* not lifted */
   7903     RECOMP_FLAGS_IN();
   7904     ecx = eax; /* 0x36045DDC: mov ecx, eax */
   7905     RECOMP_ICALL(0x3606C640u); /* 0x36045DDE: call 0x3606c640 */ /* not lifted */
   7906     RECOMP_FLAGS_IN();
   7907     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7908     ebx = 0; /* 0x36045DE3: xor ebx, ebx */
   7909     _cf = 0;
   7910     _flag_k = FK_TEST;
   7911     /* cmp eax, 3 */ /* 0x36045DE5: cmp eax, 3 */
   7912     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   7913     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7914     _flag_k = FK_CMP;
   7915     SET_LO8(ebx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x36045DE8: setne bl */
   7916     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x86u);
   7917     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7918     ebx = ebx + 0x86u; /* 0x36045DEB: add ebx, 0x86 */
   7919     _flag_k = FK_ADD;
   7920     goto L_36045EA2; /* 0x36045DF1: jmp 0x36045ea2 */
   7921 L_36045DF6:
   7922     ecx = MEM32(esi + 0x174); /* 0x36045DF6: mov ecx, dword ptr [esi + 0x174] */
   7923     edi = 0xBBu; /* 0x36045DFC: mov edi, 0xbb */
   7924     RECOMP_ICALL(0x3609BF50u); /* 0x36045E01: call 0x3609bf50 */ /* not lifted */
   7925     RECOMP_FLAGS_IN();
   7926     ebx = eax; /* 0x36045E06: mov ebx, eax */
   7927     goto L_36045EA2; /* 0x36045E08: jmp 0x36045ea2 */
   7928 L_36045E0D:
   7929     RECOMP_ICALL(0x360C5400u); /* 0x36045E0D: call 0x360c5400 */ /* not lifted */
   7930     RECOMP_FLAGS_IN();
   7931     ecx = eax; /* 0x36045E12: mov ecx, eax */
   7932     RECOMP_ICALL(0x36008320u); /* 0x36045E14: call 0x36008320 */ /* not lifted */
   7933     RECOMP_FLAGS_IN();
   7934     /* cmp eax, 2 */ /* 0x36045E19: cmp eax, 2 */
   7935     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   7936     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7937     _flag_k = FK_CMP;
   7938     if (CMP_NE(_flag_a, _flag_b)) goto L_36045E32; /* 0x36045E1C: jne 0x36045e32 */
   7939 L_36045E1E:
   7940     ecx = MEM32(esi + 0x174); /* 0x36045E1E: mov ecx, dword ptr [esi + 0x174] */
   7941     edi = 0xB9u; /* 0x36045E24: mov edi, 0xb9 */
   7942     RECOMP_ICALL(0x360D9CB0u); /* 0x36045E29: call 0x360d9cb0 */ /* not lifted */
   7943     RECOMP_FLAGS_IN();
   7944     ebx = eax; /* 0x36045E2E: mov ebx, eax */
   7945     goto L_36045EA2; /* 0x36045E30: jmp 0x36045ea2 */
   7946 L_36045E32:
   7947     ecx = ebx; /* 0x36045E32: mov ecx, ebx */
   7948     RECOMP_ICALL(0x360C5400u); /* 0x36045E34: call 0x360c5400 */ /* not lifted */
   7949     RECOMP_FLAGS_IN();
   7950     ecx = eax; /* 0x36045E39: mov ecx, eax */
   7951     RECOMP_ICALL(0x36008320u); /* 0x36045E3B: call 0x36008320 */ /* not lifted */
   7952     RECOMP_FLAGS_IN();
   7953     /* cmp eax, 3 */ /* 0x36045E40: cmp eax, 3 */
   7954     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   7955     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7956     _flag_k = FK_CMP;
   7957     if (CMP_NE(_flag_a, _flag_b)) goto L_36045E59; /* 0x36045E43: jne 0x36045e59 */
   7958 L_36045E45:
   7959     ecx = MEM32(esi + 0x174); /* 0x36045E45: mov ecx, dword ptr [esi + 0x174] */
   7960     edi = 0xBAu; /* 0x36045E4B: mov edi, 0xba */
   7961     RECOMP_ICALL(0x36008320u); /* 0x36045E50: call 0x36008320 */ /* not lifted */
   7962     RECOMP_FLAGS_IN();
   7963     ebx = eax; /* 0x36045E55: mov ebx, eax */
   7964     goto L_36045EA2; /* 0x36045E57: jmp 0x36045ea2 */
   7965 L_36045E59:
   7966     ecx = ebx; /* 0x36045E59: mov ecx, ebx */
   7967     RECOMP_ICALL(0x360C5400u); /* 0x36045E5B: call 0x360c5400 */ /* not lifted */
   7968     RECOMP_FLAGS_IN();
   7969     ecx = eax; /* 0x36045E60: mov ecx, eax */
   7970     RECOMP_ICALL(0x36008320u); /* 0x36045E62: call 0x36008320 */ /* not lifted */
   7971     RECOMP_FLAGS_IN();
   7972     /* cmp eax, 6 */ /* 0x36045E67: cmp eax, 6 */
   7973     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   7974     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7975     _flag_k = FK_CMP;
   7976     if (CMP_NE(_flag_a, _flag_b)) goto L_36045E80; /* 0x36045E6A: jne 0x36045e80 */
   7977 L_36045E6C:
   7978     ecx = MEM32(esi + 0x174); /* 0x36045E6C: mov ecx, dword ptr [esi + 0x174] */
   7979     edi = 0xB9u; /* 0x36045E72: mov edi, 0xb9 */
   7980     RECOMP_ICALL(0x3606C640u); /* 0x36045E77: call 0x3606c640 */ /* not lifted */
   7981     RECOMP_FLAGS_IN();
   7982     ebx = eax; /* 0x36045E7C: mov ebx, eax */
   7983     goto L_36045EA2; /* 0x36045E7E: jmp 0x36045ea2 */
   7984 L_36045E80:
   7985     ecx = ebx; /* 0x36045E80: mov ecx, ebx */
   7986     RECOMP_ICALL(0x360C5400u); /* 0x36045E82: call 0x360c5400 */ /* not lifted */
   7987     RECOMP_FLAGS_IN();
   7988     ecx = eax; /* 0x36045E87: mov ecx, eax */
   7989     RECOMP_ICALL(0x36008320u); /* 0x36045E89: call 0x36008320 */ /* not lifted */
   7990     RECOMP_FLAGS_IN();
   7991     /* cmp eax, 4 */ /* 0x36045E8E: cmp eax, 4 */
   7992     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   7993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7994     _flag_k = FK_CMP;
   7995     if (CMP_NE(_flag_a, _flag_b)) goto L_36045E9C; /* 0x36045E91: jne 0x36045e9c */
   7996 L_36045E93:
   7997     edi = 0x85u; /* 0x36045E93: mov edi, 0x85 */
   7998     ebx = edi; /* 0x36045E98: mov ebx, edi */
   7999     goto L_36045EA2; /* 0x36045E9A: jmp 0x36045ea2 */
   8000 L_36045E9C:
   8001     edi = MEM32(ebp + 0x8); /* 0x36045E9C: mov edi, dword ptr [ebp + 8] */
   8002     ebx = MEM32(ebp + 0x8); /* 0x36045E9F: mov ebx, dword ptr [ebp + 8] */
   8003 L_36045EA2:
   8004     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045EA2: push -1 */
   8005     edx = ebp + (-0x4); /* 0x36045EA4: lea edx, [ebp - 4] */
   8006     PUSH32(esp, edx); /* 0x36045EA7: push edx */
   8007     PUSH32(esp, 0); /* 0x36045EA8: push 0 */
   8008     PUSH32(esp, 0); /* 0x36045EAA: push 0 */
   8009     PUSH32(esp, 1); /* 0x36045EAC: push 1 */
   8010     PUSH32(esp, 1); /* 0x36045EAE: push 1 */
   8011     PUSH32(esp, 0); /* 0x36045EB0: push 0 */
   8012     PUSH32(esp, 0); /* 0x36045EB2: push 0 */
   8013     MEM32(ebp + (-0x4)) = 0; /* 0x36045EB4: mov dword ptr [ebp - 4], 0 */
   8014     ecx = MEM32(esi + 0x174); /* 0x36045EBB: mov ecx, dword ptr [esi + 0x174] */
   8015     eax = MEM32(ecx); /* 0x36045EC1: mov eax, dword ptr [ecx] */
   8016     PUSH32(esp, 0x3F800000u); /* 0x36045EC3: push 0x3f800000 */
   8017     PUSH32(esp, edi); /* 0x36045EC8: push edi */
   8018     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045EC9: call dword ptr [eax + 0x14] */
   8019     RECOMP_FLAGS_IN();
   8020     edi = MEM32(ebp + (-0x8)); /* 0x36045ECC: mov edi, dword ptr [ebp - 8] */
   8021     ecx = MEM32(edi + 0x4); /* 0x36045ECF: mov ecx, dword ptr [edi + 4] */
   8022     PUSH32(esp, eax); /* 0x36045ED2: push eax */
   8023     eax = MEM32(ebp + (-0x4)); /* 0x36045ED3: mov eax, dword ptr [ebp - 4] */
   8024     PUSH32(esp, eax); /* 0x36045ED6: push eax */
   8025     RECOMP_ICALL(0x360492F0u); /* 0x36045ED7: call 0x360492f0 */ /* not lifted */
   8026     RECOMP_FLAGS_IN();
   8027     ecx = MEM32(ebp + 0x8); /* 0x36045EDC: mov ecx, dword ptr [ebp + 8] */
   8028     RECOMP_ICALL(0x360C5400u); /* 0x36045EDF: call 0x360c5400 */ /* not lifted */
   8029     RECOMP_FLAGS_IN();
   8030     ecx = eax; /* 0x36045EE4: mov ecx, eax */
   8031     RECOMP_ICALL(0x360D9CB0u); /* 0x36045EE6: call 0x360d9cb0 */ /* not lifted */
   8032     RECOMP_FLAGS_IN();
   8033     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045EEB: push -1 */
   8034     /* cmp eax, 2 */ /* 0x36045EED: cmp eax, 2 */
   8035     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   8036     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8037     _flag_k = FK_CMP;
   8038     eax = ebp + (-0x4); /* 0x36045EF0: lea eax, [ebp - 4] */
   8039     PUSH32(esp, eax); /* 0x36045EF3: push eax */
   8040     PUSH32(esp, 1); /* 0x36045EF4: push 1 */
   8041     PUSH32(esp, 0); /* 0x36045EF6: push 0 */
   8042     PUSH32(esp, 2); /* 0x36045EF8: push 2 */
   8043     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36045EFA: sete cl */
   8044     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045EFD: push -1 */
   8045     MEM8(ebp + 0x8) = (uint8_t)(LO8(ecx)); /* 0x36045EFF: mov byte ptr [ebp + 8], cl */
   8046     eax = MEM32(ebp + 0x8); /* 0x36045F02: mov eax, dword ptr [ebp + 8] */
   8047     ecx = MEM32(esi + 0x174); /* 0x36045F05: mov ecx, dword ptr [esi + 0x174] */
   8048     edx = MEM32(ecx); /* 0x36045F0B: mov edx, dword ptr [ecx] */
   8049     PUSH32(esp, 0); /* 0x36045F0D: push 0 */
   8050     PUSH32(esp, eax); /* 0x36045F0F: push eax */
   8051     PUSH32(esp, 0x3F800000u); /* 0x36045F10: push 0x3f800000 */
   8052     PUSH32(esp, ebx); /* 0x36045F15: push ebx */
   8053     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36045F16: call dword ptr [edx + 0x14] */
   8054     RECOMP_FLAGS_IN();
   8055     ecx = MEM32(ebp + (-0x4)); /* 0x36045F19: mov ecx, dword ptr [ebp - 4] */
   8056     PUSH32(esp, eax); /* 0x36045F1C: push eax */
   8057     PUSH32(esp, ecx); /* 0x36045F1D: push ecx */
   8058     ecx = MEM32(edi + 0x4); /* 0x36045F1E: mov ecx, dword ptr [edi + 4] */
   8059     RECOMP_ICALL(0x360492F0u); /* 0x36045F21: call 0x360492f0 */ /* not lifted */
   8060     RECOMP_FLAGS_IN();
   8061     edi = POP32_VAL(esp); /* 0x36045F26: pop edi */
   8062 L_36045F27:
   8063     esi = POP32_VAL(esp); /* 0x36045F27: pop esi */
   8064     ebx = POP32_VAL(esp); /* 0x36045F28: pop ebx */
   8065     esp = ebp; /* 0x36045F29: mov esp, ebp */
   8066     ebp = POP32_VAL(esp); /* 0x36045F2B: pop ebp */
   8067     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045F2C: ret 4 */
   8068     RECOMP_REGS_OUT();
   8069 }
   8070 
   8071 void sub_36045EA2(void) {
   8072     int _fpu_cmp = 0;
   8073     uint32_t _cf = 0;
   8074     int _df = 1;
   8075     uint32_t _flag_k = FK_NONE;
   8076     uint32_t _flag_a = 0, _flag_b = 0;
   8077     uint32_t _itail_tgt = 0;
   8078     RECOMP_REGS_LOCALS
   8079     RECOMP_ENTER(0x36045EA2u);
   8080 
   8081 L_36045EA2:
   8082     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045EA2: push -1 */
   8083     edx = ebp + (-0x4); /* 0x36045EA4: lea edx, [ebp - 4] */
   8084     PUSH32(esp, edx); /* 0x36045EA7: push edx */
   8085     PUSH32(esp, 0); /* 0x36045EA8: push 0 */
   8086     PUSH32(esp, 0); /* 0x36045EAA: push 0 */
   8087     PUSH32(esp, 1); /* 0x36045EAC: push 1 */
   8088     PUSH32(esp, 1); /* 0x36045EAE: push 1 */
   8089     PUSH32(esp, 0); /* 0x36045EB0: push 0 */
   8090     PUSH32(esp, 0); /* 0x36045EB2: push 0 */
   8091     MEM32(ebp + (-0x4)) = 0; /* 0x36045EB4: mov dword ptr [ebp - 4], 0 */
   8092     ecx = MEM32(esi + 0x174); /* 0x36045EBB: mov ecx, dword ptr [esi + 0x174] */
   8093     eax = MEM32(ecx); /* 0x36045EC1: mov eax, dword ptr [ecx] */
   8094     PUSH32(esp, 0x3F800000u); /* 0x36045EC3: push 0x3f800000 */
   8095     PUSH32(esp, edi); /* 0x36045EC8: push edi */
   8096     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36045EC9: call dword ptr [eax + 0x14] */
   8097     RECOMP_FLAGS_IN();
   8098     edi = MEM32(ebp + (-0x8)); /* 0x36045ECC: mov edi, dword ptr [ebp - 8] */
   8099     ecx = MEM32(edi + 0x4); /* 0x36045ECF: mov ecx, dword ptr [edi + 4] */
   8100     PUSH32(esp, eax); /* 0x36045ED2: push eax */
   8101     eax = MEM32(ebp + (-0x4)); /* 0x36045ED3: mov eax, dword ptr [ebp - 4] */
   8102     PUSH32(esp, eax); /* 0x36045ED6: push eax */
   8103     RECOMP_ICALL(0x360492F0u); /* 0x36045ED7: call 0x360492f0 */ /* not lifted */
   8104     RECOMP_FLAGS_IN();
   8105     ecx = MEM32(ebp + 0x8); /* 0x36045EDC: mov ecx, dword ptr [ebp + 8] */
   8106     RECOMP_ICALL(0x360C5400u); /* 0x36045EDF: call 0x360c5400 */ /* not lifted */
   8107     RECOMP_FLAGS_IN();
   8108     ecx = eax; /* 0x36045EE4: mov ecx, eax */
   8109     RECOMP_ICALL(0x360D9CB0u); /* 0x36045EE6: call 0x360d9cb0 */ /* not lifted */
   8110     RECOMP_FLAGS_IN();
   8111     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045EEB: push -1 */
   8112     /* cmp eax, 2 */ /* 0x36045EED: cmp eax, 2 */
   8113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   8114     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8115     _flag_k = FK_CMP;
   8116     eax = ebp + (-0x4); /* 0x36045EF0: lea eax, [ebp - 4] */
   8117     PUSH32(esp, eax); /* 0x36045EF3: push eax */
   8118     PUSH32(esp, 1); /* 0x36045EF4: push 1 */
   8119     PUSH32(esp, 0); /* 0x36045EF6: push 0 */
   8120     PUSH32(esp, 2); /* 0x36045EF8: push 2 */
   8121     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36045EFA: sete cl */
   8122     PUSH32(esp, 0xFFFFFFFFu); /* 0x36045EFD: push -1 */
   8123     MEM8(ebp + 0x8) = (uint8_t)(LO8(ecx)); /* 0x36045EFF: mov byte ptr [ebp + 8], cl */
   8124     eax = MEM32(ebp + 0x8); /* 0x36045F02: mov eax, dword ptr [ebp + 8] */
   8125     ecx = MEM32(esi + 0x174); /* 0x36045F05: mov ecx, dword ptr [esi + 0x174] */
   8126     edx = MEM32(ecx); /* 0x36045F0B: mov edx, dword ptr [ecx] */
   8127     PUSH32(esp, 0); /* 0x36045F0D: push 0 */
   8128     PUSH32(esp, eax); /* 0x36045F0F: push eax */
   8129     PUSH32(esp, 0x3F800000u); /* 0x36045F10: push 0x3f800000 */
   8130     PUSH32(esp, ebx); /* 0x36045F15: push ebx */
   8131     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36045F16: call dword ptr [edx + 0x14] */
   8132     RECOMP_FLAGS_IN();
   8133     ecx = MEM32(ebp + (-0x4)); /* 0x36045F19: mov ecx, dword ptr [ebp - 4] */
   8134     PUSH32(esp, eax); /* 0x36045F1C: push eax */
   8135     PUSH32(esp, ecx); /* 0x36045F1D: push ecx */
   8136     ecx = MEM32(edi + 0x4); /* 0x36045F1E: mov ecx, dword ptr [edi + 4] */
   8137     RECOMP_ICALL(0x360492F0u); /* 0x36045F21: call 0x360492f0 */ /* not lifted */
   8138     RECOMP_FLAGS_IN();
   8139     edi = POP32_VAL(esp); /* 0x36045F26: pop edi */
   8140     esi = POP32_VAL(esp); /* 0x36045F27: pop esi */
   8141     ebx = POP32_VAL(esp); /* 0x36045F28: pop ebx */
   8142     esp = ebp; /* 0x36045F29: mov esp, ebp */
   8143     ebp = POP32_VAL(esp); /* 0x36045F2B: pop ebp */
   8144     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045F2C: ret 4 */
   8145     RECOMP_REGS_OUT();
   8146 }
   8147 
   8148 void sub_36045F30(void) {
   8149     int _fpu_cmp = 0;
   8150     uint32_t _cf = 0;
   8151     int _df = 1;
   8152     uint32_t _flag_k = FK_NONE;
   8153     uint32_t _flag_a = 0, _flag_b = 0;
   8154     uint32_t _itail_tgt = 0;
   8155     RECOMP_REGS_LOCALS
   8156     RECOMP_ENTER(0x36045F30u);
   8157 
   8158 L_36045F30:
   8159     PUSH32(esp, esi); /* 0x36045F30: push esi */
   8160     esi = ecx; /* 0x36045F31: mov esi, ecx */
   8161     ecx = MEM32(esi + 0x4); /* 0x36045F33: mov ecx, dword ptr [esi + 4] */
   8162     PUSH32(esp, edi); /* 0x36045F36: push edi */
   8163     RECOMP_ICALL(0x36047E60u); /* 0x36045F37: call 0x36047e60 */ /* not lifted */
   8164     RECOMP_FLAGS_IN();
   8165     ecx = MEM32(esi + 0x4); /* 0x36045F3C: mov ecx, dword ptr [esi + 4] */
   8166     PUSH32(esp, 0x40400000u); /* 0x36045F3F: push 0x40400000 */
   8167     RECOMP_ICALL(0x3604BD20u); /* 0x36045F44: call 0x3604bd20 */ /* not lifted */
   8168     RECOMP_FLAGS_IN();
   8169     RECOMP_ICALL(0x360F7B00u); /* 0x36045F49: call 0x360f7b00 */ /* not lifted */
   8170     RECOMP_FLAGS_IN();
   8171     edi = eax; /* 0x36045F4E: mov edi, eax */
   8172     MEM32(edi + 0x54) = 0x20u; /* 0x36045F50: mov dword ptr [edi + 0x54], 0x20 */
   8173     ecx = MEM32(esi + 0x4); /* 0x36045F57: mov ecx, dword ptr [esi + 4] */
   8174     RECOMP_ICALL(MEM32(0x3617028C)); /* 0x36045F5A: call dword ptr [0x3617028c] */
   8175     RECOMP_FLAGS_IN();
   8176     PUSH32(esp, eax); /* 0x36045F60: push eax */
   8177     PUSH32(esp, 0x7D0u); /* 0x36045F61: push 0x7d0 */
   8178     ecx = edi; /* 0x36045F66: mov ecx, edi */
   8179     RECOMP_ICALL(0x360F80C0u); /* 0x36045F68: call 0x360f80c0 */ /* not lifted */
   8180     RECOMP_FLAGS_IN();
   8181     PUSH32(esp, 0xFFE0A070u); /* 0x36045F6D: push 0xffe0a070 */
   8182     PUSH32(esp, eax); /* 0x36045F72: push eax */
   8183     ecx = edi; /* 0x36045F73: mov ecx, edi */
   8184     RECOMP_ICALL(0x360FB800u); /* 0x36045F75: call 0x360fb800 */ /* not lifted */
   8185     RECOMP_FLAGS_IN();
   8186     edi = POP32_VAL(esp); /* 0x36045F7A: pop edi */
   8187     esi = POP32_VAL(esp); /* 0x36045F7B: pop esi */
   8188     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045F7C: ret 4 */
   8189     RECOMP_REGS_OUT();
   8190 }
   8191 
   8192 void sub_36045F80(void) {
   8193     int _fpu_cmp = 0;
   8194     uint32_t _cf = 0;
   8195     int _df = 1;
   8196     uint32_t _flag_k = FK_NONE;
   8197     uint32_t _flag_a = 0, _flag_b = 0;
   8198     uint32_t _itail_tgt = 0;
   8199     RECOMP_REGS_LOCALS
   8200     RECOMP_ENTER(0x36045F80u);
   8201 
   8202 L_36045F80:
   8203     PUSH32(esp, esi); /* 0x36045F80: push esi */
   8204     PUSH32(esp, edi); /* 0x36045F81: push edi */
   8205     edi = ecx; /* 0x36045F82: mov edi, ecx */
   8206     ecx = MEM32(edi + 0x4); /* 0x36045F84: mov ecx, dword ptr [edi + 4] */
   8207     PUSH32(esp, 0xBF4CCCCDu); /* 0x36045F87: push 0xbf4ccccd */
   8208     RECOMP_ICALL(0x3604BD20u); /* 0x36045F8C: call 0x3604bd20 */ /* not lifted */
   8209     RECOMP_FLAGS_IN();
   8210     RECOMP_ICALL(0x360F7B00u); /* 0x36045F91: call 0x360f7b00 */ /* not lifted */
   8211     RECOMP_FLAGS_IN();
   8212     esi = eax; /* 0x36045F96: mov esi, eax */
   8213     MEM32(esi + 0x54) = 0x20u; /* 0x36045F98: mov dword ptr [esi + 0x54], 0x20 */
   8214     ecx = MEM32(edi + 0x4); /* 0x36045F9F: mov ecx, dword ptr [edi + 4] */
   8215     RECOMP_ICALL(MEM32(0x3617028C)); /* 0x36045FA2: call dword ptr [0x3617028c] */
   8216     RECOMP_FLAGS_IN();
   8217     PUSH32(esp, eax); /* 0x36045FA8: push eax */
   8218     PUSH32(esp, 0x7D0u); /* 0x36045FA9: push 0x7d0 */
   8219     ecx = esi; /* 0x36045FAE: mov ecx, esi */
   8220     RECOMP_ICALL(0x360F80C0u); /* 0x36045FB0: call 0x360f80c0 */ /* not lifted */
   8221     RECOMP_FLAGS_IN();
   8222     PUSH32(esp, 0xFF402020u); /* 0x36045FB5: push 0xff402020 */
   8223     PUSH32(esp, eax); /* 0x36045FBA: push eax */
   8224     ecx = esi; /* 0x36045FBB: mov ecx, esi */
   8225     RECOMP_ICALL(0x360FB800u); /* 0x36045FBD: call 0x360fb800 */ /* not lifted */
   8226     RECOMP_FLAGS_IN();
   8227     edi = POP32_VAL(esp); /* 0x36045FC2: pop edi */
   8228     esi = POP32_VAL(esp); /* 0x36045FC3: pop esi */
   8229     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045FC4: ret 4 */
   8230     RECOMP_REGS_OUT();
   8231 }
   8232 
   8233 void sub_36045FD0(void) {
   8234     int _fpu_cmp = 0;
   8235     uint32_t _cf = 0;
   8236     int _df = 1;
   8237     uint32_t _flag_k = FK_NONE;
   8238     uint32_t _flag_a = 0, _flag_b = 0;
   8239     uint32_t _itail_tgt = 0;
   8240     RECOMP_REGS_LOCALS
   8241     RECOMP_ENTER(0x36045FD0u);
   8242 
   8243 L_36045FD0:
   8244     PUSH32(esp, ebp); /* 0x36045FD0: push ebp */
   8245     ebp = esp; /* 0x36045FD1: mov ebp, esp */
   8246     PUSH32(esp, esi); /* 0x36045FD3: push esi */
   8247     esi = ecx; /* 0x36045FD4: mov esi, ecx */
   8248     RECOMP_ICALL(0x36046F50u); /* 0x36045FD6: call 0x36046f50 */ /* not lifted */
   8249     RECOMP_FLAGS_IN();
   8250     /* test MEM8(ebp + 0x8), 1 */ /* 0x36045FDB: test byte ptr [ebp + 8], 1 */
   8251     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   8252     _cf = 0;
   8253     _flag_k = FK_NARROW(FK_TEST, 24);
   8254     if (TEST_Z(_flag_a, _flag_b)) goto L_36045FEA; /* 0x36045FDF: je 0x36045fea */
   8255 L_36045FE1:
   8256     PUSH32(esp, esi); /* 0x36045FE1: push esi */
   8257     RECOMP_ICALL(0x3615FCC4u); /* 0x36045FE2: call 0x3615fcc4 */ /* not lifted */
   8258     RECOMP_FLAGS_IN();
   8259     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8260     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8261     esp = esp + 4; /* 0x36045FE7: add esp, 4 */
   8262     _flag_k = FK_ADD;
   8263 L_36045FEA:
   8264     eax = esi; /* 0x36045FEA: mov eax, esi */
   8265     esi = POP32_VAL(esp); /* 0x36045FEC: pop esi */
   8266     ebp = POP32_VAL(esp); /* 0x36045FED: pop ebp */
   8267     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36045FEE: ret 4 */
   8268     RECOMP_REGS_OUT();
   8269 }
   8270 
   8271 void sub_36046000(void) {
   8272     int _fpu_cmp = 0;
   8273     uint32_t _cf = 0;
   8274     int _df = 1;
   8275     uint32_t _flag_k = FK_NONE;
   8276     uint32_t _flag_a = 0, _flag_b = 0;
   8277     uint32_t _itail_tgt = 0;
   8278     RECOMP_REGS_LOCALS
   8279     RECOMP_ENTER(0x36046000u);
   8280 
   8281 L_36046000:
   8282     PUSH32(esp, esi); /* 0x36046000: push esi */
   8283     esi = ecx; /* 0x36046001: mov esi, ecx */
   8284     ecx = MEM32(esi + 0x4); /* 0x36046003: mov ecx, dword ptr [esi + 4] */
   8285     RECOMP_ICALL(MEM32(0x36170344)); /* 0x36046006: call dword ptr [0x36170344] */
   8286     RECOMP_FLAGS_IN();
   8287     ecx = MEM32(esi + 0x4); /* 0x3604600C: mov ecx, dword ptr [esi + 4] */
   8288     RECOMP_ICALL(0x360478D0u); /* 0x3604600F: call 0x360478d0 */ /* not lifted */
   8289     RECOMP_FLAGS_IN();
   8290     ecx = eax; /* 0x36046014: mov ecx, eax */
   8291     RECOMP_ICALL(MEM32(0x3616FC38)); /* 0x36046016: call dword ptr [0x3616fc38] */
   8292     RECOMP_FLAGS_IN();
   8293     ecx = MEM32(esi + 0x4); /* 0x3604601C: mov ecx, dword ptr [esi + 4] */
   8294     RECOMP_ICALL(0x360492C0u); /* 0x3604601F: call 0x360492c0 */ /* not lifted */
   8295     RECOMP_FLAGS_IN();
   8296     ecx = MEM32(esi + 0x4); /* 0x36046024: mov ecx, dword ptr [esi + 4] */
   8297     PUSH32(esp, 1); /* 0x36046027: push 1 */
   8298     RECOMP_ICALL(MEM32(0x36170348)); /* 0x36046029: call dword ptr [0x36170348] */
   8299     RECOMP_FLAGS_IN();
   8300     ecx = MEM32(esi + 0x4); /* 0x3604602F: mov ecx, dword ptr [esi + 4] */
   8301     eax = MEM32(ecx); /* 0x36046032: mov eax, dword ptr [ecx] */
   8302     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x36046034: call dword ptr [eax + 0x80] */
   8303     RECOMP_FLAGS_IN();
   8304     /* test LO8(eax), LO8(eax) */ /* 0x3604603A: test al, al */
   8305     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8306     _cf = 0;
   8307     _flag_k = FK_NARROW(FK_TEST, 24);
   8308     if (TEST_Z(_flag_a, _flag_b)) goto L_3604605C; /* 0x3604603C: je 0x3604605c */
   8309 L_3604603E:
   8310     ecx = MEM32(esi + 0x4); /* 0x3604603E: mov ecx, dword ptr [esi + 4] */
   8311     PUSH32(esp, 0); /* 0x36046041: push 0 */
   8312     RECOMP_ICALL(0x3604BCA0u); /* 0x36046043: call 0x3604bca0 */ /* not lifted */
   8313     RECOMP_FLAGS_IN();
   8314     ecx = MEM32(esi + 0x4); /* 0x36046048: mov ecx, dword ptr [esi + 4] */
   8315     PUSH32(esp, 0); /* 0x3604604B: push 0 */
   8316     RECOMP_ICALL(0x3604BCC0u); /* 0x3604604D: call 0x3604bcc0 */ /* not lifted */
   8317     RECOMP_FLAGS_IN();
   8318     ecx = MEM32(esi + 0x4); /* 0x36046052: mov ecx, dword ptr [esi + 4] */
   8319     PUSH32(esp, 0); /* 0x36046055: push 0 */
   8320     RECOMP_ICALL(0x3604BCB0u); /* 0x36046057: call 0x3604bcb0 */ /* not lifted */
   8321     RECOMP_FLAGS_IN();
   8322 L_3604605C:
   8323     ecx = MEM32(esi + 0x4); /* 0x3604605C: mov ecx, dword ptr [esi + 4] */
   8324     RECOMP_ICALL(0x360478D0u); /* 0x3604605F: call 0x360478d0 */ /* not lifted */
   8325     RECOMP_FLAGS_IN();
   8326     PUSH32(esp, eax); /* 0x36046064: push eax */
   8327     RECOMP_ICALL(0x36044470u); /* 0x36046065: call 0x36044470 */ /* not lifted */
   8328     RECOMP_FLAGS_IN();
   8329     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   8330     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8331     esp = esp + 4; /* 0x3604606A: add esp, 4 */
   8332     _flag_k = FK_ADD;
   8333     esi = POP32_VAL(esp); /* 0x3604606D: pop esi */
   8334     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604606E: ret 4 */
   8335     RECOMP_REGS_OUT();
   8336 }
   8337 
   8338 void sub_36046080(void) {
   8339     int _fpu_cmp = 0;
   8340     uint32_t _cf = 0;
   8341     int _df = 1;
   8342     uint32_t _flag_k = FK_NONE;
   8343     uint32_t _flag_a = 0, _flag_b = 0;
   8344     uint32_t _itail_tgt = 0;
   8345     RECOMP_REGS_LOCALS
   8346     RECOMP_ENTER(0x36046080u);
   8347 
   8348 L_36046080:
   8349     PUSH32(esp, ebp); /* 0x36046080: push ebp */
   8350     ebp = esp; /* 0x36046081: mov ebp, esp */
   8351     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   8352     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8353     esp = esp - 0x1Cu; /* 0x36046083: sub esp, 0x1c */
   8354     _flag_k = FK_CMP;
   8355     PUSH32(esp, ebx); /* 0x36046086: push ebx */
   8356     PUSH32(esp, esi); /* 0x36046087: push esi */
   8357     esi = ecx; /* 0x36046088: mov esi, ecx */
   8358     ecx = MEM32(esi + 0x4); /* 0x3604608A: mov ecx, dword ptr [esi + 4] */
   8359     PUSH32(esp, edi); /* 0x3604608D: push edi */
   8360     RECOMP_ICALL(0x36047E60u); /* 0x3604608E: call 0x36047e60 */ /* not lifted */
   8361     RECOMP_FLAGS_IN();
   8362     ecx = MEM32(esi + 0x4); /* 0x36046093: mov ecx, dword ptr [esi + 4] */
   8363     RECOMP_ICALL(0x360478D0u); /* 0x36046096: call 0x360478d0 */ /* not lifted */
   8364     RECOMP_FLAGS_IN();
   8365     edi = eax; /* 0x3604609B: mov edi, eax */
   8366     ecx = edi; /* 0x3604609D: mov ecx, edi */
   8367     RECOMP_ICALL(0x3606D5A0u); /* 0x3604609F: call 0x3606d5a0 */ /* not lifted */
   8368     RECOMP_FLAGS_IN();
   8369     ecx = eax; /* 0x360460A4: mov ecx, eax */
   8370     RECOMP_ICALL(0x36047900u); /* 0x360460A6: call 0x36047900 */ /* not lifted */
   8371     RECOMP_FLAGS_IN();
   8372     ebx = MEM32(ebp + 0x8); /* 0x360460AB: mov ebx, dword ptr [ebp + 8] */
   8373     ecx = ebx; /* 0x360460AE: mov ecx, ebx */
   8374     MEM32(eax + 0x30) = 3; /* 0x360460B0: mov dword ptr [eax + 0x30], 3 */
   8375     RECOMP_ICALL(0x36042130u); /* 0x360460B7: call 0x36042130 */ /* not lifted */
   8376     RECOMP_FLAGS_IN();
   8377     ecx = eax; /* 0x360460BC: mov ecx, eax */
   8378     RECOMP_ICALL(0x36008320u); /* 0x360460BE: call 0x36008320 */ /* not lifted */
   8379     RECOMP_FLAGS_IN();
   8380     /* cmp eax, 7 */ /* 0x360460C3: cmp eax, 7 */
   8381     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   8382     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8383     _flag_k = FK_CMP;
   8384     if (CMP_NE(_flag_a, _flag_b)) goto L_36046152; /* 0x360460C6: jne 0x36046152 */
   8385 L_360460CC:
   8386     edx = MEM32(edi + 0x118); /* 0x360460CC: mov edx, dword ptr [edi + 0x118] */
   8387     ecx = edi + 0xE4; /* 0x360460D2: lea ecx, [edi + 0xe4] */
   8388     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xDFFFFFFFu);
   8389     edx = edx & 0xDFFFFFFFu; /* 0x360460D8: and edx, 0xdfffffff */
   8390     _cf = 0;
   8391     _flag_k = FK_TEST;
   8392     eax = edx; /* 0x360460DE: mov eax, edx */
   8393     PUSH32(esp, eax); /* 0x360460E0: push eax */
   8394     MEM32(ecx + 0x34) = edx; /* 0x360460E1: mov dword ptr [ecx + 0x34], edx */
   8395     edx = MEM32(ecx); /* 0x360460E4: mov edx, dword ptr [ecx] */
   8396     PUSH32(esp, 0); /* 0x360460E6: push 0 */
   8397     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360460E8: call dword ptr [edx + 8] */
   8398     RECOMP_FLAGS_IN();
   8399     ecx = MEM32(esi + 0x4); /* 0x360460EB: mov ecx, dword ptr [esi + 4] */
   8400     RECOMP_ICALL(MEM32(0x36170364)); /* 0x360460EE: call dword ptr [0x36170364] */
   8401     RECOMP_FLAGS_IN();
   8402     ecx = MEM32(esi + 0x4); /* 0x360460F4: mov ecx, dword ptr [esi + 4] */
   8403     eax = ecx + 0x54; /* 0x360460F7: lea eax, [ecx + 0x54] */
   8404     edx = MEM32(eax); /* 0x360460FA: mov edx, dword ptr [eax] */
   8405     MEM32(ebp + (-0x10)) = edx; /* 0x360460FC: mov dword ptr [ebp - 0x10], edx */
   8406     edx = MEM32(eax + 0x4); /* 0x360460FF: mov edx, dword ptr [eax + 4] */
   8407     eax = MEM32(eax + 0x8); /* 0x36046102: mov eax, dword ptr [eax + 8] */
   8408     MEM32(ebp + (-0xC)) = edx; /* 0x36046105: mov dword ptr [ebp - 0xc], edx */
   8409     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36046108: fld dword ptr [ebp - 0xc] */
   8410     _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x3604610B: fadd dword ptr [0x36170d68] */
   8411     edx = MEM32(ebp + (-0x10)); /* 0x36046111: mov edx, dword ptr [ebp - 0x10] */
   8412     MEM32(ebp + (-0x8)) = eax; /* 0x36046114: mov dword ptr [ebp - 8], eax */
   8413     MEM32(ebp + (-0x8)) = eax; /* 0x36046117: mov dword ptr [ebp - 8], eax */
   8414     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3604611A: fstp dword ptr [ebp - 0xc] */
   8415     eax = MEM32(ebp + (-0xC)); /* 0x3604611D: mov eax, dword ptr [ebp - 0xc] */
   8416     MEM32(ebp + (-0x18)) = eax; /* 0x36046120: mov dword ptr [ebp - 0x18], eax */
   8417     MEM32(ebp + (-0x10)) = edx; /* 0x36046123: mov dword ptr [ebp - 0x10], edx */
   8418     MEM32(ebp + (-0x1C)) = edx; /* 0x36046126: mov dword ptr [ebp - 0x1c], edx */
   8419     edx = MEM32(ebp + (-0x8)); /* 0x36046129: mov edx, dword ptr [ebp - 8] */
   8420     eax = ebp + (-0x1C); /* 0x3604612C: lea eax, [ebp - 0x1c] */
   8421     PUSH32(esp, eax); /* 0x3604612F: push eax */
   8422     MEM32(ebp + (-0x14)) = edx; /* 0x36046130: mov dword ptr [ebp - 0x14], edx */
   8423     RECOMP_ICALL(MEM32(0x36170360)); /* 0x36046133: call dword ptr [0x36170360] */
   8424     RECOMP_FLAGS_IN();
   8425     ecx = MEM32(esi + 0x4); /* 0x36046139: mov ecx, dword ptr [esi + 4] */
   8426     edx = MEM32(ecx); /* 0x3604613C: mov edx, dword ptr [ecx] */
   8427     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x3604613E: call dword ptr [edx + 0x80] */
   8428     RECOMP_FLAGS_IN();
   8429     /* test LO8(eax), LO8(eax) */ /* 0x36046144: test al, al */
   8430     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8431     _cf = 0;
   8432     _flag_k = FK_NARROW(FK_TEST, 24);
   8433     if (TEST_Z(_flag_a, _flag_b)) goto L_36046152; /* 0x36046146: je 0x36046152 */
   8434 L_36046148:
   8435     ecx = MEM32(esi + 0x4); /* 0x36046148: mov ecx, dword ptr [esi + 4] */
   8436     PUSH32(esp, 0); /* 0x3604614B: push 0 */
   8437     RECOMP_ICALL(0x3604BD20u); /* 0x3604614D: call 0x3604bd20 */ /* not lifted */
   8438     RECOMP_FLAGS_IN();
   8439 L_36046152:
   8440     ecx = ebx; /* 0x36046152: mov ecx, ebx */
   8441     RECOMP_ICALL(0x36042130u); /* 0x36046154: call 0x36042130 */ /* not lifted */
   8442     RECOMP_FLAGS_IN();
   8443     ecx = eax; /* 0x36046159: mov ecx, eax */
   8444     RECOMP_ICALL(0x36008320u); /* 0x3604615B: call 0x36008320 */ /* not lifted */
   8445     RECOMP_FLAGS_IN();
   8446     /* cmp eax, 6 */ /* 0x36046160: cmp eax, 6 */
   8447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   8448     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8449     _flag_k = FK_CMP;
   8450     if (CMP_NE(_flag_a, _flag_b)) goto L_3604617B; /* 0x36046163: jne 0x3604617b */
   8451 L_36046165:
   8452     ecx = MEM32(esi + 0x4); /* 0x36046165: mov ecx, dword ptr [esi + 4] */
   8453     RECOMP_ICALL(0x360478D0u); /* 0x36046168: call 0x360478d0 */ /* not lifted */
   8454     RECOMP_FLAGS_IN();
   8455     ecx = eax; /* 0x3604616D: mov ecx, eax */
   8456     RECOMP_ICALL(0x36071DD0u); /* 0x3604616F: call 0x36071dd0 */ /* not lifted */
   8457     RECOMP_FLAGS_IN();
   8458     ecx = eax; /* 0x36046174: mov ecx, eax */
   8459     RECOMP_ICALL(0x3604D970u); /* 0x36046176: call 0x3604d970 */ /* not lifted */
   8460     RECOMP_FLAGS_IN();
   8461 L_3604617B:
   8462     ecx = ebx; /* 0x3604617B: mov ecx, ebx */
   8463     RECOMP_ICALL(0x360C5400u); /* 0x3604617D: call 0x360c5400 */ /* not lifted */
   8464     RECOMP_FLAGS_IN();
   8465     ecx = eax; /* 0x36046182: mov ecx, eax */
   8466     RECOMP_ICALL(0x3609C020u); /* 0x36046184: call 0x3609c020 */ /* not lifted */
   8467     RECOMP_FLAGS_IN();
   8468     /* cmp eax, 3 */ /* 0x36046189: cmp eax, 3 */
   8469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   8470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8471     _flag_k = FK_CMP;
   8472     if (CMP_NE(_flag_a, _flag_b)) goto L_360461EC; /* 0x3604618C: jne 0x360461ec */
   8473 L_3604618E:
   8474     ecx = MEM32(edi + 0x174); /* 0x3604618E: mov ecx, dword ptr [edi + 0x174] */
   8475     RECOMP_ICALL(0x36008320u); /* 0x36046194: call 0x36008320 */ /* not lifted */
   8476     RECOMP_FLAGS_IN();
   8477     ecx = MEM32(esi + 0x4); /* 0x36046199: mov ecx, dword ptr [esi + 4] */
   8478     MEM32(ebp + (-0x4)) = eax; /* 0x3604619C: mov dword ptr [ebp - 4], eax */
   8479     RECOMP_ICALL(0x360478D0u); /* 0x3604619F: call 0x360478d0 */ /* not lifted */
   8480     RECOMP_FLAGS_IN();
   8481     PUSH32(esp, 0xFFFFFFFFu); /* 0x360461A4: push -1 */
   8482     edx = ebp + 0x8; /* 0x360461A6: lea edx, [ebp + 8] */
   8483     PUSH32(esp, edx); /* 0x360461A9: push edx */
   8484     edx = MEM32(ebp + (-0x4)); /* 0x360461AA: mov edx, dword ptr [ebp - 4] */
   8485     PUSH32(esp, 0); /* 0x360461AD: push 0 */
   8486     PUSH32(esp, 1); /* 0x360461AF: push 1 */
   8487     PUSH32(esp, 2); /* 0x360461B1: push 2 */
   8488     PUSH32(esp, 0xFFFFFFFFu); /* 0x360461B3: push -1 */
   8489     PUSH32(esp, 0); /* 0x360461B5: push 0 */
   8490     ebx = eax; /* 0x360461B7: mov ebx, eax */
   8491     PUSH32(esp, 0); /* 0x360461B9: push 0 */
   8492     MEM32(ebp + 0x8) = 0; /* 0x360461BB: mov dword ptr [ebp + 8], 0 */
   8493     ecx = MEM32(ebx + 0x174); /* 0x360461C2: mov ecx, dword ptr [ebx + 0x174] */
   8494     eax = MEM32(ecx); /* 0x360461C8: mov eax, dword ptr [ecx] */
   8495     PUSH32(esp, 0x3F800000u); /* 0x360461CA: push 0x3f800000 */
   8496     PUSH32(esp, edx); /* 0x360461CF: push edx */
   8497     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x360461D0: call dword ptr [eax + 0x14] */
   8498     RECOMP_FLAGS_IN();
   8499     ecx = MEM32(ebx + 0x174); /* 0x360461D3: mov ecx, dword ptr [ebx + 0x174] */
   8500     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x360461D9: mov byte ptr [ecx + 0x5c], 0 */
   8501     edx = MEM32(ebp + 0x8); /* 0x360461DD: mov edx, dword ptr [ebp + 8] */
   8502     ecx = MEM32(esi + 0x4); /* 0x360461E0: mov ecx, dword ptr [esi + 4] */
   8503     PUSH32(esp, eax); /* 0x360461E3: push eax */
   8504     PUSH32(esp, edx); /* 0x360461E4: push edx */
   8505     RECOMP_ICALL(0x360492F0u); /* 0x360461E5: call 0x360492f0 */ /* not lifted */
   8506     RECOMP_FLAGS_IN();
   8507     goto L_36046246; /* 0x360461EA: jmp 0x36046246 */
   8508 L_360461EC:
   8509     ecx = ebx; /* 0x360461EC: mov ecx, ebx */
   8510     RECOMP_ICALL(0x36042130u); /* 0x360461EE: call 0x36042130 */ /* not lifted */
   8511     RECOMP_FLAGS_IN();
   8512     ecx = eax; /* 0x360461F3: mov ecx, eax */
   8513     RECOMP_ICALL(0x36008320u); /* 0x360461F5: call 0x36008320 */ /* not lifted */
   8514     RECOMP_FLAGS_IN();
   8515     /* cmp eax, 8 */ /* 0x360461FA: cmp eax, 8 */
   8516     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   8517     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8518     _flag_k = FK_CMP;
   8519     if (CMP_NE(_flag_a, _flag_b)) goto L_36046246; /* 0x360461FD: jne 0x36046246 */
   8520 L_360461FF:
   8521     esi = MEM32(edi + 0x174); /* 0x360461FF: mov esi, dword ptr [edi + 0x174] */
   8522     eax = ebp + 0xB; /* 0x36046205: lea eax, [ebp + 0xb] */
   8523     PUSH32(esp, eax); /* 0x36046208: push eax */
   8524     ecx = esi; /* 0x36046209: mov ecx, esi */
   8525     RECOMP_ICALL(0x3609BF50u); /* 0x3604620B: call 0x3609bf50 */ /* not lifted */
   8526     RECOMP_FLAGS_IN();
   8527     PUSH32(esp, eax); /* 0x36046210: push eax */
   8528     ecx = esi; /* 0x36046211: mov ecx, esi */
   8529     RECOMP_ICALL(0x36050850u); /* 0x36046213: call 0x36050850 */ /* not lifted */
   8530     RECOMP_FLAGS_IN();
   8531     PUSH32(esp, eax); /* 0x36046218: push eax */
   8532     ecx = esi + 0x54; /* 0x36046219: lea ecx, [esi + 0x54] */
   8533     RECOMP_ICALL(0x3604E440u); /* 0x3604621C: call 0x3604e440 */ /* not lifted */
   8534     RECOMP_FLAGS_IN();
   8535     ecx = MEM32(edi + 0x174); /* 0x36046221: mov ecx, dword ptr [edi + 0x174] */
   8536     edx = MEM32(ecx); /* 0x36046227: mov edx, dword ptr [ecx] */
   8537     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046229: push -1 */
   8538     PUSH32(esp, 0); /* 0x3604622B: push 0 */
   8539     PUSH32(esp, 0); /* 0x3604622D: push 0 */
   8540     PUSH32(esp, 1); /* 0x3604622F: push 1 */
   8541     PUSH32(esp, 1); /* 0x36046231: push 1 */
   8542     PUSH32(esp, 1); /* 0x36046233: push 1 */
   8543     PUSH32(esp, 0); /* 0x36046235: push 0 */
   8544     PUSH32(esp, 0); /* 0x36046237: push 0 */
   8545     PUSH32(esp, 0x3F800000u); /* 0x36046239: push 0x3f800000 */
   8546     PUSH32(esp, 0xD6u); /* 0x3604623E: push 0xd6 */
   8547     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36046243: call dword ptr [edx + 0x14] */
   8548     RECOMP_FLAGS_IN();
   8549 L_36046246:
   8550     ecx = edi; /* 0x36046246: mov ecx, edi */
   8551     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36046248: call dword ptr [0x361700d4] */
   8552     RECOMP_FLAGS_IN();
   8553     /* test LO8(eax), LO8(eax) */ /* 0x3604624E: test al, al */
   8554     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8555     _cf = 0;
   8556     _flag_k = FK_NARROW(FK_TEST, 24);
   8557     if (TEST_Z(_flag_a, _flag_b)) goto L_36046262; /* 0x36046250: je 0x36046262 */
   8558 L_36046252:
   8559     PUSH32(esp, 0x12u); /* 0x36046252: push 0x12 */
   8560     ecx = edi; /* 0x36046254: mov ecx, edi */
   8561     RECOMP_ICALL(0x36072000u); /* 0x36046256: call 0x36072000 */ /* not lifted */
   8562     RECOMP_FLAGS_IN();
   8563     ecx = eax; /* 0x3604625B: mov ecx, eax */
   8564     RECOMP_ICALL(0x36057990u); /* 0x3604625D: call 0x36057990 */ /* not lifted */
   8565     RECOMP_FLAGS_IN();
   8566 L_36046262:
   8567     edi = POP32_VAL(esp); /* 0x36046262: pop edi */
   8568     esi = POP32_VAL(esp); /* 0x36046263: pop esi */
   8569     ebx = POP32_VAL(esp); /* 0x36046264: pop ebx */
   8570     esp = ebp; /* 0x36046265: mov esp, ebp */
   8571     ebp = POP32_VAL(esp); /* 0x36046267: pop ebp */
   8572     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046268: ret 4 */
   8573     RECOMP_REGS_OUT();
   8574 }
   8575 
   8576 void sub_36046270(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(0x36046270u);
   8585 
   8586 L_36046270:
   8587     PUSH32(esp, ebp); /* 0x36046270: push ebp */
   8588     ebp = esp; /* 0x36046271: mov ebp, esp */
   8589     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   8590     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8591     esp = esp - 0x1Cu; /* 0x36046273: sub esp, 0x1c */
   8592     _flag_k = FK_CMP;
   8593     PUSH32(esp, ebx); /* 0x36046276: push ebx */
   8594     PUSH32(esp, esi); /* 0x36046277: push esi */
   8595     esi = ecx; /* 0x36046278: mov esi, ecx */
   8596     ecx = MEM32(esi + 0x4); /* 0x3604627A: mov ecx, dword ptr [esi + 4] */
   8597     PUSH32(esp, edi); /* 0x3604627D: push edi */
   8598     RECOMP_ICALL(0x36047E60u); /* 0x3604627E: call 0x36047e60 */ /* not lifted */
   8599     RECOMP_FLAGS_IN();
   8600     ecx = MEM32(esi + 0x4); /* 0x36046283: mov ecx, dword ptr [esi + 4] */
   8601     RECOMP_ICALL(0x360478D0u); /* 0x36046286: call 0x360478d0 */ /* not lifted */
   8602     RECOMP_FLAGS_IN();
   8603     ebx = eax; /* 0x3604628B: mov ebx, eax */
   8604     ecx = ebx; /* 0x3604628D: mov ecx, ebx */
   8605     RECOMP_ICALL(0x3606D5A0u); /* 0x3604628F: call 0x3606d5a0 */ /* not lifted */
   8606     RECOMP_FLAGS_IN();
   8607     ecx = eax; /* 0x36046294: mov ecx, eax */
   8608     RECOMP_ICALL(0x36047900u); /* 0x36046296: call 0x36047900 */ /* not lifted */
   8609     RECOMP_FLAGS_IN();
   8610     edi = MEM32(ebp + 0x8); /* 0x3604629B: mov edi, dword ptr [ebp + 8] */
   8611     ecx = edi; /* 0x3604629E: mov ecx, edi */
   8612     MEM32(eax + 0x30) = 2; /* 0x360462A0: mov dword ptr [eax + 0x30], 2 */
   8613     RECOMP_ICALL(0x36042130u); /* 0x360462A7: call 0x36042130 */ /* not lifted */
   8614     RECOMP_FLAGS_IN();
   8615     ecx = eax; /* 0x360462AC: mov ecx, eax */
   8616     RECOMP_ICALL(0x36008320u); /* 0x360462AE: call 0x36008320 */ /* not lifted */
   8617     RECOMP_FLAGS_IN();
   8618     /* cmp eax, 7 */ /* 0x360462B3: cmp eax, 7 */
   8619     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   8620     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8621     _flag_k = FK_CMP;
   8622     if (CMP_NE(_flag_a, _flag_b)) goto L_36046365; /* 0x360462B6: jne 0x36046365 */
   8623 L_360462BC:
   8624     edx = MEM32(ebx + 0x118); /* 0x360462BC: mov edx, dword ptr [ebx + 0x118] */
   8625     edi = ebx + 0xE4; /* 0x360462C2: lea edi, [ebx + 0xe4] */
   8626     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xDFFFFFFFu);
   8627     edx = edx & 0xDFFFFFFFu; /* 0x360462C8: and edx, 0xdfffffff */
   8628     _cf = 0;
   8629     _flag_k = FK_TEST;
   8630     eax = edx; /* 0x360462CE: mov eax, edx */
   8631     PUSH32(esp, eax); /* 0x360462D0: push eax */
   8632     MEM32(edi + 0x34) = edx; /* 0x360462D1: mov dword ptr [edi + 0x34], edx */
   8633     edx = MEM32(edi); /* 0x360462D4: mov edx, dword ptr [edi] */
   8634     PUSH32(esp, 0); /* 0x360462D6: push 0 */
   8635     ecx = edi; /* 0x360462D8: mov ecx, edi */
   8636     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360462DA: call dword ptr [edx + 8] */
   8637     RECOMP_FLAGS_IN();
   8638     ecx = MEM32(esi + 0x4); /* 0x360462DD: mov ecx, dword ptr [esi + 4] */
   8639     RECOMP_ICALL(MEM32(0x36170364)); /* 0x360462E0: call dword ptr [0x36170364] */
   8640     RECOMP_FLAGS_IN();
   8641     ecx = MEM32(esi + 0x4); /* 0x360462E6: mov ecx, dword ptr [esi + 4] */
   8642     eax = ecx + 0x54; /* 0x360462E9: lea eax, [ecx + 0x54] */
   8643     edx = MEM32(eax); /* 0x360462EC: mov edx, dword ptr [eax] */
   8644     MEM32(ebp + (-0x10)) = edx; /* 0x360462EE: mov dword ptr [ebp - 0x10], edx */
   8645     edx = MEM32(eax + 0x4); /* 0x360462F1: mov edx, dword ptr [eax + 4] */
   8646     eax = MEM32(eax + 0x8); /* 0x360462F4: mov eax, dword ptr [eax + 8] */
   8647     MEM32(ebp + (-0xC)) = edx; /* 0x360462F7: mov dword ptr [ebp - 0xc], edx */
   8648     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x360462FA: fld dword ptr [ebp - 0xc] */
   8649     _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x360462FD: fadd dword ptr [0x36170d68] */
   8650     edx = MEM32(ebp + (-0x10)); /* 0x36046303: mov edx, dword ptr [ebp - 0x10] */
   8651     MEM32(ebp + (-0x8)) = eax; /* 0x36046306: mov dword ptr [ebp - 8], eax */
   8652     MEM32(ebp + (-0x8)) = eax; /* 0x36046309: mov dword ptr [ebp - 8], eax */
   8653     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3604630C: fstp dword ptr [ebp - 0xc] */
   8654     eax = MEM32(ebp + (-0xC)); /* 0x3604630F: mov eax, dword ptr [ebp - 0xc] */
   8655     MEM32(ebp + (-0x18)) = eax; /* 0x36046312: mov dword ptr [ebp - 0x18], eax */
   8656     MEM32(ebp + (-0x10)) = edx; /* 0x36046315: mov dword ptr [ebp - 0x10], edx */
   8657     MEM32(ebp + (-0x1C)) = edx; /* 0x36046318: mov dword ptr [ebp - 0x1c], edx */
   8658     edx = MEM32(ebp + (-0x8)); /* 0x3604631B: mov edx, dword ptr [ebp - 8] */
   8659     eax = ebp + (-0x1C); /* 0x3604631E: lea eax, [ebp - 0x1c] */
   8660     PUSH32(esp, eax); /* 0x36046321: push eax */
   8661     MEM32(ebp + (-0x14)) = edx; /* 0x36046322: mov dword ptr [ebp - 0x14], edx */
   8662     RECOMP_ICALL(MEM32(0x36170360)); /* 0x36046325: call dword ptr [0x36170360] */
   8663     RECOMP_FLAGS_IN();
   8664     ecx = MEM32(esi + 0x4); /* 0x3604632B: mov ecx, dword ptr [esi + 4] */
   8665     edx = MEM32(ecx); /* 0x3604632E: mov edx, dword ptr [ecx] */
   8666     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x36046330: call dword ptr [edx + 0x80] */
   8667     RECOMP_FLAGS_IN();
   8668     /* test LO8(eax), LO8(eax) */ /* 0x36046336: test al, al */
   8669     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8670     _cf = 0;
   8671     _flag_k = FK_NARROW(FK_TEST, 24);
   8672     if (TEST_Z(_flag_a, _flag_b)) goto L_36046344; /* 0x36046338: je 0x36046344 */
   8673 L_3604633A:
   8674     ecx = MEM32(esi + 0x4); /* 0x3604633A: mov ecx, dword ptr [esi + 4] */
   8675     PUSH32(esp, 0); /* 0x3604633D: push 0 */
   8676     RECOMP_ICALL(0x3604BD20u); /* 0x3604633F: call 0x3604bd20 */ /* not lifted */
   8677     RECOMP_FLAGS_IN();
   8678 L_36046344:
   8679     eax = MEM32(esi + 0x4); /* 0x36046344: mov eax, dword ptr [esi + 4] */
   8680     edx = MEM32(edi); /* 0x36046347: mov edx, dword ptr [edi] */
   8681     PUSH32(esp, 2); /* 0x36046349: push 2 */
   8682     PUSH32(esp, 0xC5u); /* 0x3604634B: push 0xc5 */
   8683     ecx = edi; /* 0x36046350: mov ecx, edi */
   8684     MEM32(ebp + (-0x4)) = eax; /* 0x36046352: mov dword ptr [ebp - 4], eax */
   8685     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36046355: call dword ptr [edx + 4] */
   8686     RECOMP_FLAGS_IN();
   8687     ecx = MEM32(ebp + (-0x4)); /* 0x36046358: mov ecx, dword ptr [ebp - 4] */
   8688     PUSH32(esp, eax); /* 0x3604635B: push eax */
   8689     RECOMP_ICALL(MEM32(0x36170238)); /* 0x3604635C: call dword ptr [0x36170238] */
   8690     RECOMP_FLAGS_IN();
   8691     edi = MEM32(ebp + 0x8); /* 0x36046362: mov edi, dword ptr [ebp + 8] */
   8692 L_36046365:
   8693     ecx = edi; /* 0x36046365: mov ecx, edi */
   8694     RECOMP_ICALL(0x36042130u); /* 0x36046367: call 0x36042130 */ /* not lifted */
   8695     RECOMP_FLAGS_IN();
   8696     ecx = eax; /* 0x3604636C: mov ecx, eax */
   8697     RECOMP_ICALL(0x36008320u); /* 0x3604636E: call 0x36008320 */ /* not lifted */
   8698     RECOMP_FLAGS_IN();
   8699     /* cmp eax, 6 */ /* 0x36046373: cmp eax, 6 */
   8700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   8701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8702     _flag_k = FK_CMP;
   8703     if (CMP_NE(_flag_a, _flag_b)) goto L_36046386; /* 0x36046376: jne 0x36046386 */
   8704 L_36046378:
   8705     ecx = ebx; /* 0x36046378: mov ecx, ebx */
   8706     RECOMP_ICALL(0x36071DD0u); /* 0x3604637A: call 0x36071dd0 */ /* not lifted */
   8707     RECOMP_FLAGS_IN();
   8708     ecx = eax; /* 0x3604637F: mov ecx, eax */
   8709     RECOMP_ICALL(0x3604D970u); /* 0x36046381: call 0x3604d970 */ /* not lifted */
   8710     RECOMP_FLAGS_IN();
   8711 L_36046386:
   8712     ecx = edi; /* 0x36046386: mov ecx, edi */
   8713     RECOMP_ICALL(0x360C5400u); /* 0x36046388: call 0x360c5400 */ /* not lifted */
   8714     RECOMP_FLAGS_IN();
   8715     ecx = eax; /* 0x3604638D: mov ecx, eax */
   8716     RECOMP_ICALL(0x3609C020u); /* 0x3604638F: call 0x3609c020 */ /* not lifted */
   8717     RECOMP_FLAGS_IN();
   8718     /* cmp eax, 3 */ /* 0x36046394: cmp eax, 3 */
   8719     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   8720     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8721     _flag_k = FK_CMP;
   8722     if (CMP_NE(_flag_a, _flag_b)) goto L_360463F7; /* 0x36046397: jne 0x360463f7 */
   8723 L_36046399:
   8724     ecx = MEM32(ebx + 0x174); /* 0x36046399: mov ecx, dword ptr [ebx + 0x174] */
   8725     RECOMP_ICALL(0x360D9CB0u); /* 0x3604639F: call 0x360d9cb0 */ /* not lifted */
   8726     RECOMP_FLAGS_IN();
   8727     ecx = MEM32(esi + 0x4); /* 0x360463A4: mov ecx, dword ptr [esi + 4] */
   8728     MEM32(ebp + (-0x4)) = eax; /* 0x360463A7: mov dword ptr [ebp - 4], eax */
   8729     RECOMP_ICALL(0x360478D0u); /* 0x360463AA: call 0x360478d0 */ /* not lifted */
   8730     RECOMP_FLAGS_IN();
   8731     PUSH32(esp, 0xFFFFFFFFu); /* 0x360463AF: push -1 */
   8732     edx = ebp + 0x8; /* 0x360463B1: lea edx, [ebp + 8] */
   8733     PUSH32(esp, edx); /* 0x360463B4: push edx */
   8734     edx = MEM32(ebp + (-0x4)); /* 0x360463B5: mov edx, dword ptr [ebp - 4] */
   8735     PUSH32(esp, 0); /* 0x360463B8: push 0 */
   8736     PUSH32(esp, 1); /* 0x360463BA: push 1 */
   8737     PUSH32(esp, 2); /* 0x360463BC: push 2 */
   8738     PUSH32(esp, 0xFFFFFFFFu); /* 0x360463BE: push -1 */
   8739     PUSH32(esp, 0); /* 0x360463C0: push 0 */
   8740     edi = eax; /* 0x360463C2: mov edi, eax */
   8741     PUSH32(esp, 0); /* 0x360463C4: push 0 */
   8742     MEM32(ebp + 0x8) = 0; /* 0x360463C6: mov dword ptr [ebp + 8], 0 */
   8743     ecx = MEM32(edi + 0x174); /* 0x360463CD: mov ecx, dword ptr [edi + 0x174] */
   8744     eax = MEM32(ecx); /* 0x360463D3: mov eax, dword ptr [ecx] */
   8745     PUSH32(esp, 0x3F800000u); /* 0x360463D5: push 0x3f800000 */
   8746     PUSH32(esp, edx); /* 0x360463DA: push edx */
   8747     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x360463DB: call dword ptr [eax + 0x14] */
   8748     RECOMP_FLAGS_IN();
   8749     ecx = MEM32(edi + 0x174); /* 0x360463DE: mov ecx, dword ptr [edi + 0x174] */
   8750     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x360463E4: mov byte ptr [ecx + 0x5c], 0 */
   8751     edx = MEM32(ebp + 0x8); /* 0x360463E8: mov edx, dword ptr [ebp + 8] */
   8752     ecx = MEM32(esi + 0x4); /* 0x360463EB: mov ecx, dword ptr [esi + 4] */
   8753     PUSH32(esp, eax); /* 0x360463EE: push eax */
   8754     PUSH32(esp, edx); /* 0x360463EF: push edx */
   8755     RECOMP_ICALL(0x360492F0u); /* 0x360463F0: call 0x360492f0 */ /* not lifted */
   8756     RECOMP_FLAGS_IN();
   8757     goto L_36046451; /* 0x360463F5: jmp 0x36046451 */
   8758 L_360463F7:
   8759     ecx = edi; /* 0x360463F7: mov ecx, edi */
   8760     RECOMP_ICALL(0x36042130u); /* 0x360463F9: call 0x36042130 */ /* not lifted */
   8761     RECOMP_FLAGS_IN();
   8762     ecx = eax; /* 0x360463FE: mov ecx, eax */
   8763     RECOMP_ICALL(0x36008320u); /* 0x36046400: call 0x36008320 */ /* not lifted */
   8764     RECOMP_FLAGS_IN();
   8765     /* cmp eax, 8 */ /* 0x36046405: cmp eax, 8 */
   8766     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   8767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8768     _flag_k = FK_CMP;
   8769     if (CMP_NE(_flag_a, _flag_b)) goto L_36046451; /* 0x36046408: jne 0x36046451 */
   8770 L_3604640A:
   8771     esi = MEM32(ebx + 0x174); /* 0x3604640A: mov esi, dword ptr [ebx + 0x174] */
   8772     eax = ebp + 0xB; /* 0x36046410: lea eax, [ebp + 0xb] */
   8773     PUSH32(esp, eax); /* 0x36046413: push eax */
   8774     ecx = esi; /* 0x36046414: mov ecx, esi */
   8775     RECOMP_ICALL(0x3609BF50u); /* 0x36046416: call 0x3609bf50 */ /* not lifted */
   8776     RECOMP_FLAGS_IN();
   8777     PUSH32(esp, eax); /* 0x3604641B: push eax */
   8778     ecx = esi; /* 0x3604641C: mov ecx, esi */
   8779     RECOMP_ICALL(0x36050850u); /* 0x3604641E: call 0x36050850 */ /* not lifted */
   8780     RECOMP_FLAGS_IN();
   8781     PUSH32(esp, eax); /* 0x36046423: push eax */
   8782     ecx = esi + 0x54; /* 0x36046424: lea ecx, [esi + 0x54] */
   8783     RECOMP_ICALL(0x3604E440u); /* 0x36046427: call 0x3604e440 */ /* not lifted */
   8784     RECOMP_FLAGS_IN();
   8785     ecx = MEM32(ebx + 0x174); /* 0x3604642C: mov ecx, dword ptr [ebx + 0x174] */
   8786     edx = MEM32(ecx); /* 0x36046432: mov edx, dword ptr [ecx] */
   8787     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046434: push -1 */
   8788     PUSH32(esp, 0); /* 0x36046436: push 0 */
   8789     PUSH32(esp, 0); /* 0x36046438: push 0 */
   8790     PUSH32(esp, 1); /* 0x3604643A: push 1 */
   8791     PUSH32(esp, 1); /* 0x3604643C: push 1 */
   8792     PUSH32(esp, 1); /* 0x3604643E: push 1 */
   8793     PUSH32(esp, 0); /* 0x36046440: push 0 */
   8794     PUSH32(esp, 0); /* 0x36046442: push 0 */
   8795     PUSH32(esp, 0x3F800000u); /* 0x36046444: push 0x3f800000 */
   8796     PUSH32(esp, 0xD6u); /* 0x36046449: push 0xd6 */
   8797     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x3604644E: call dword ptr [edx + 0x14] */
   8798     RECOMP_FLAGS_IN();
   8799 L_36046451:
   8800     ecx = ebx; /* 0x36046451: mov ecx, ebx */
   8801     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36046453: call dword ptr [0x361700d4] */
   8802     RECOMP_FLAGS_IN();
   8803     /* test LO8(eax), LO8(eax) */ /* 0x36046459: test al, al */
   8804     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8805     _cf = 0;
   8806     _flag_k = FK_NARROW(FK_TEST, 24);
   8807     if (TEST_Z(_flag_a, _flag_b)) goto L_3604646D; /* 0x3604645B: je 0x3604646d */
   8808 L_3604645D:
   8809     PUSH32(esp, 0x11u); /* 0x3604645D: push 0x11 */
   8810     ecx = ebx; /* 0x3604645F: mov ecx, ebx */
   8811     RECOMP_ICALL(0x36072000u); /* 0x36046461: call 0x36072000 */ /* not lifted */
   8812     RECOMP_FLAGS_IN();
   8813     ecx = eax; /* 0x36046466: mov ecx, eax */
   8814     RECOMP_ICALL(0x36057990u); /* 0x36046468: call 0x36057990 */ /* not lifted */
   8815     RECOMP_FLAGS_IN();
   8816 L_3604646D:
   8817     edi = POP32_VAL(esp); /* 0x3604646D: pop edi */
   8818     esi = POP32_VAL(esp); /* 0x3604646E: pop esi */
   8819     ebx = POP32_VAL(esp); /* 0x3604646F: pop ebx */
   8820     esp = ebp; /* 0x36046470: mov esp, ebp */
   8821     ebp = POP32_VAL(esp); /* 0x36046472: pop ebp */
   8822     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046473: ret 4 */
   8823     RECOMP_REGS_OUT();
   8824 }
   8825 
   8826 void sub_36046480(void) {
   8827     int _fpu_cmp = 0;
   8828     uint32_t _cf = 0;
   8829     int _df = 1;
   8830     uint32_t _flag_k = FK_NONE;
   8831     uint32_t _flag_a = 0, _flag_b = 0;
   8832     uint32_t _itail_tgt = 0;
   8833     RECOMP_REGS_LOCALS
   8834     RECOMP_ENTER(0x36046480u);
   8835 
   8836 L_36046480:
   8837     PUSH32(esp, ebp); /* 0x36046480: push ebp */
   8838     ebp = esp; /* 0x36046481: mov ebp, esp */
   8839     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   8840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8841     esp = esp - 0x28u; /* 0x36046483: sub esp, 0x28 */
   8842     _flag_k = FK_CMP;
   8843     PUSH32(esp, esi); /* 0x36046486: push esi */
   8844     esi = ecx; /* 0x36046487: mov esi, ecx */
   8845     ecx = MEM32(esi + 0x4); /* 0x36046489: mov ecx, dword ptr [esi + 4] */
   8846     PUSH32(esp, edi); /* 0x3604648C: push edi */
   8847     RECOMP_ICALL(0x36047E60u); /* 0x3604648D: call 0x36047e60 */ /* not lifted */
   8848     RECOMP_FLAGS_IN();
   8849     edi = MEM32(ebp + 0x8); /* 0x36046492: mov edi, dword ptr [ebp + 8] */
   8850     ecx = edi; /* 0x36046495: mov ecx, edi */
   8851     RECOMP_ICALL(0x36042130u); /* 0x36046497: call 0x36042130 */ /* not lifted */
   8852     RECOMP_FLAGS_IN();
   8853     ecx = eax; /* 0x3604649C: mov ecx, eax */
   8854     RECOMP_ICALL(0x3609BF50u); /* 0x3604649E: call 0x3609bf50 */ /* not lifted */
   8855     RECOMP_FLAGS_IN();
   8856     /* cmp eax, 1 */ /* 0x360464A3: cmp eax, 1 */
   8857     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   8858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8859     _flag_k = FK_CMP;
   8860     if (CMP_EQ(_flag_a, _flag_b)) goto L_360464B2; /* 0x360464A6: je 0x360464b2 */
   8861 L_360464A8:
   8862     ecx = MEM32(esi + 0x4); /* 0x360464A8: mov ecx, dword ptr [esi + 4] */
   8863     PUSH32(esp, 0); /* 0x360464AB: push 0 */
   8864     RECOMP_ICALL(0x3604BCC0u); /* 0x360464AD: call 0x3604bcc0 */ /* not lifted */
   8865     RECOMP_FLAGS_IN();
   8866 L_360464B2:
   8867     ecx = MEM32(esi + 0x4); /* 0x360464B2: mov ecx, dword ptr [esi + 4] */
   8868     PUSH32(esp, ebx); /* 0x360464B5: push ebx */
   8869     RECOMP_ICALL(0x360478D0u); /* 0x360464B6: call 0x360478d0 */ /* not lifted */
   8870     RECOMP_FLAGS_IN();
   8871     ecx = edi; /* 0x360464BB: mov ecx, edi */
   8872     ebx = eax; /* 0x360464BD: mov ebx, eax */
   8873     RECOMP_ICALL(0x36042130u); /* 0x360464BF: call 0x36042130 */ /* not lifted */
   8874     RECOMP_FLAGS_IN();
   8875     ecx = eax; /* 0x360464C4: mov ecx, eax */
   8876     RECOMP_ICALL(0x36008320u); /* 0x360464C6: call 0x36008320 */ /* not lifted */
   8877     RECOMP_FLAGS_IN();
   8878     /* cmp eax, 7 */ /* 0x360464CB: cmp eax, 7 */
   8879     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   8880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8881     _flag_k = FK_CMP;
   8882     if (CMP_NE(_flag_a, _flag_b)) goto L_3604658F; /* 0x360464CE: jne 0x3604658f */
   8883 L_360464D4:
   8884     edx = MEM32(ebx + 0x118); /* 0x360464D4: mov edx, dword ptr [ebx + 0x118] */
   8885     edi = ebx + 0xE4; /* 0x360464DA: lea edi, [ebx + 0xe4] */
   8886     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xDFFFFFFFu);
   8887     edx = edx & 0xDFFFFFFFu; /* 0x360464E0: and edx, 0xdfffffff */
   8888     _cf = 0;
   8889     _flag_k = FK_TEST;
   8890     eax = edx; /* 0x360464E6: mov eax, edx */
   8891     PUSH32(esp, eax); /* 0x360464E8: push eax */
   8892     MEM32(edi + 0x34) = edx; /* 0x360464E9: mov dword ptr [edi + 0x34], edx */
   8893     edx = MEM32(edi); /* 0x360464EC: mov edx, dword ptr [edi] */
   8894     PUSH32(esp, 0); /* 0x360464EE: push 0 */
   8895     ecx = edi; /* 0x360464F0: mov ecx, edi */
   8896     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360464F2: call dword ptr [edx + 8] */
   8897     RECOMP_FLAGS_IN();
   8898     ecx = MEM32(esi + 0x4); /* 0x360464F5: mov ecx, dword ptr [esi + 4] */
   8899     RECOMP_ICALL(MEM32(0x36170364)); /* 0x360464F8: call dword ptr [0x36170364] */
   8900     RECOMP_FLAGS_IN();
   8901     eax = MEM32(esi + 0x4); /* 0x360464FE: mov eax, dword ptr [esi + 4] */
   8902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u);
   8903     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   8904     eax = eax + 0x54u; /* 0x36046501: add eax, 0x54 */
   8905     _flag_k = FK_ADD;
   8906     MEM32(ebp + (-0x10)) = 0; /* 0x36046504: mov dword ptr [ebp - 0x10], 0 */
   8907     MEM32(ebp + (-0xC)) = 0x3DCCCCCDu; /* 0x3604650B: mov dword ptr [ebp - 0xc], 0x3dcccccd */
   8908     MEM32(ebp + (-0x8)) = 0; /* 0x36046512: mov dword ptr [ebp - 8], 0 */
   8909     ecx = MEM32(eax); /* 0x36046519: mov ecx, dword ptr [eax] */
   8910     edx = MEM32(eax + 0x4); /* 0x3604651B: mov edx, dword ptr [eax + 4] */
   8911     eax = MEM32(eax + 0x8); /* 0x3604651E: mov eax, dword ptr [eax + 8] */
   8912     MEM32(ebp + (-0x1C)) = ecx; /* 0x36046521: mov dword ptr [ebp - 0x1c], ecx */
   8913     ecx = ebp + (-0x10); /* 0x36046524: lea ecx, [ebp - 0x10] */
   8914     PUSH32(esp, ecx); /* 0x36046527: push ecx */
   8915     ecx = ebp + (-0x1C); /* 0x36046528: lea ecx, [ebp - 0x1c] */
   8916     MEM32(ebp + (-0x18)) = edx; /* 0x3604652B: mov dword ptr [ebp - 0x18], edx */
   8917     MEM32(ebp + (-0x14)) = eax; /* 0x3604652E: mov dword ptr [ebp - 0x14], eax */
   8918     RECOMP_ICALL(MEM32(0x36170178)); /* 0x36046531: call dword ptr [0x36170178] */
   8919     RECOMP_FLAGS_IN();
   8920     edx = MEM32(eax); /* 0x36046537: mov edx, dword ptr [eax] */
   8921     MEM32(ebp + (-0x28)) = edx; /* 0x36046539: mov dword ptr [ebp - 0x28], edx */
   8922     ecx = MEM32(eax + 0x4); /* 0x3604653C: mov ecx, dword ptr [eax + 4] */
   8923     MEM32(ebp + (-0x24)) = ecx; /* 0x3604653F: mov dword ptr [ebp - 0x24], ecx */
   8924     edx = MEM32(eax + 0x8); /* 0x36046542: mov edx, dword ptr [eax + 8] */
   8925     ecx = MEM32(esi + 0x4); /* 0x36046545: mov ecx, dword ptr [esi + 4] */
   8926     eax = ebp + (-0x28); /* 0x36046548: lea eax, [ebp - 0x28] */
   8927     PUSH32(esp, eax); /* 0x3604654B: push eax */
   8928     MEM32(ebp + (-0x20)) = edx; /* 0x3604654C: mov dword ptr [ebp - 0x20], edx */
   8929     RECOMP_ICALL(MEM32(0x36170360)); /* 0x3604654F: call dword ptr [0x36170360] */
   8930     RECOMP_FLAGS_IN();
   8931     ecx = MEM32(esi + 0x4); /* 0x36046555: mov ecx, dword ptr [esi + 4] */
   8932     edx = MEM32(ecx); /* 0x36046558: mov edx, dword ptr [ecx] */
   8933     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x3604655A: call dword ptr [edx + 0x80] */
   8934     RECOMP_FLAGS_IN();
   8935     /* test LO8(eax), LO8(eax) */ /* 0x36046560: test al, al */
   8936     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8937     _cf = 0;
   8938     _flag_k = FK_NARROW(FK_TEST, 24);
   8939     if (TEST_Z(_flag_a, _flag_b)) goto L_3604656E; /* 0x36046562: je 0x3604656e */
   8940 L_36046564:
   8941     ecx = MEM32(esi + 0x4); /* 0x36046564: mov ecx, dword ptr [esi + 4] */
   8942     PUSH32(esp, 0); /* 0x36046567: push 0 */
   8943     RECOMP_ICALL(0x3604BD20u); /* 0x36046569: call 0x3604bd20 */ /* not lifted */
   8944     RECOMP_FLAGS_IN();
   8945 L_3604656E:
   8946     eax = MEM32(esi + 0x4); /* 0x3604656E: mov eax, dword ptr [esi + 4] */
   8947     edx = MEM32(edi); /* 0x36046571: mov edx, dword ptr [edi] */
   8948     PUSH32(esp, 2); /* 0x36046573: push 2 */
   8949     PUSH32(esp, 0xC5u); /* 0x36046575: push 0xc5 */
   8950     ecx = edi; /* 0x3604657A: mov ecx, edi */
   8951     MEM32(ebp + (-0x4)) = eax; /* 0x3604657C: mov dword ptr [ebp - 4], eax */
   8952     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3604657F: call dword ptr [edx + 4] */
   8953     RECOMP_FLAGS_IN();
   8954     ecx = MEM32(ebp + (-0x4)); /* 0x36046582: mov ecx, dword ptr [ebp - 4] */
   8955     PUSH32(esp, eax); /* 0x36046585: push eax */
   8956     RECOMP_ICALL(MEM32(0x36170238)); /* 0x36046586: call dword ptr [0x36170238] */
   8957     RECOMP_FLAGS_IN();
   8958     edi = MEM32(ebp + 0x8); /* 0x3604658C: mov edi, dword ptr [ebp + 8] */
   8959 L_3604658F:
   8960     ecx = MEM32(esi + 0x4); /* 0x3604658F: mov ecx, dword ptr [esi + 4] */
   8961     eax = MEM32(ecx); /* 0x36046592: mov eax, dword ptr [ecx] */
   8962     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x36046594: call dword ptr [eax + 0x80] */
   8963     RECOMP_FLAGS_IN();
   8964     /* test LO8(eax), LO8(eax) */ /* 0x3604659A: test al, al */
   8965     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8966     _cf = 0;
   8967     _flag_k = FK_NARROW(FK_TEST, 24);
   8968     if (TEST_Z(_flag_a, _flag_b)) goto L_360465A8; /* 0x3604659C: je 0x360465a8 */
   8969 L_3604659E:
   8970     ecx = MEM32(esi + 0x4); /* 0x3604659E: mov ecx, dword ptr [esi + 4] */
   8971     PUSH32(esp, 0); /* 0x360465A1: push 0 */
   8972     RECOMP_ICALL(0x3604BD20u); /* 0x360465A3: call 0x3604bd20 */ /* not lifted */
   8973     RECOMP_FLAGS_IN();
   8974 L_360465A8:
   8975     SET_LO8(eax, MEM8(ebx + 0x1B4)); /* 0x360465A8: mov al, byte ptr [ebx + 0x1b4] */
   8976     /* test LO8(eax), LO8(eax) */ /* 0x360465AE: test al, al */
   8977     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   8978     _cf = 0;
   8979     _flag_k = FK_NARROW(FK_TEST, 24);
   8980     if (TEST_NZ(_flag_a, _flag_b)) goto L_360465C7; /* 0x360465B0: jne 0x360465c7 */
   8981 L_360465B2:
   8982     ebx = MEM32(ebx + 0x16C); /* 0x360465B2: mov ebx, dword ptr [ebx + 0x16c] */
   8983     /* cmp MEM32(ebx + 0x50), 1 */ /* 0x360465B8: cmp dword ptr [ebx + 0x50], 1 */
   8984     _flag_a = (uint32_t)(MEM32(ebx + 0x50)); _flag_b = (uint32_t)(1);
   8985     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   8986     _flag_k = FK_CMP;
   8987     if (CMP_EQ(_flag_a, _flag_b)) goto L_360465C7; /* 0x360465BC: je 0x360465c7 */
   8988 L_360465BE:
   8989     edx = MEM32(ebx); /* 0x360465BE: mov edx, dword ptr [ebx] */
   8990     PUSH32(esp, 1); /* 0x360465C0: push 1 */
   8991     ecx = ebx; /* 0x360465C2: mov ecx, ebx */
   8992     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x360465C4: call dword ptr [edx + 0x44] */
   8993     RECOMP_FLAGS_IN();
   8994 L_360465C7:
   8995     ecx = edi; /* 0x360465C7: mov ecx, edi */
   8996     RECOMP_ICALL(0x36042130u); /* 0x360465C9: call 0x36042130 */ /* not lifted */
   8997     RECOMP_FLAGS_IN();
   8998     ecx = eax; /* 0x360465CE: mov ecx, eax */
   8999     RECOMP_ICALL(0x36008320u); /* 0x360465D0: call 0x36008320 */ /* not lifted */
   9000     RECOMP_FLAGS_IN();
   9001     /* cmp eax, 6 */ /* 0x360465D5: cmp eax, 6 */
   9002     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   9003     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9004     _flag_k = FK_CMP;
   9005     ebx = POP32_VAL(esp); /* 0x360465D8: pop ebx */
   9006     if (CMP_NE(_flag_a, _flag_b)) goto L_360465F1; /* 0x360465D9: jne 0x360465f1 */
   9007 L_360465DB:
   9008     ecx = MEM32(esi + 0x4); /* 0x360465DB: mov ecx, dword ptr [esi + 4] */
   9009     RECOMP_ICALL(0x360478D0u); /* 0x360465DE: call 0x360478d0 */ /* not lifted */
   9010     RECOMP_FLAGS_IN();
   9011     ecx = eax; /* 0x360465E3: mov ecx, eax */
   9012     RECOMP_ICALL(0x36071DD0u); /* 0x360465E5: call 0x36071dd0 */ /* not lifted */
   9013     RECOMP_FLAGS_IN();
   9014     ecx = eax; /* 0x360465EA: mov ecx, eax */
   9015     RECOMP_ICALL(0x3604D970u); /* 0x360465EC: call 0x3604d970 */ /* not lifted */
   9016     RECOMP_FLAGS_IN();
   9017 L_360465F1:
   9018     ecx = MEM32(esi + 0x4); /* 0x360465F1: mov ecx, dword ptr [esi + 4] */
   9019     RECOMP_ICALL(0x360478D0u); /* 0x360465F4: call 0x360478d0 */ /* not lifted */
   9020     RECOMP_FLAGS_IN();
   9021     PUSH32(esp, eax); /* 0x360465F9: push eax */
   9022     RECOMP_ICALL(0x36044470u); /* 0x360465FA: call 0x36044470 */ /* not lifted */
   9023     RECOMP_FLAGS_IN();
   9024     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9025     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9026     esp = esp + 4; /* 0x360465FF: add esp, 4 */
   9027     _flag_k = FK_ADD;
   9028     edi = POP32_VAL(esp); /* 0x36046602: pop edi */
   9029     esi = POP32_VAL(esp); /* 0x36046603: pop esi */
   9030     esp = ebp; /* 0x36046604: mov esp, ebp */
   9031     ebp = POP32_VAL(esp); /* 0x36046606: pop ebp */
   9032     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046607: ret 4 */
   9033     RECOMP_REGS_OUT();
   9034 }
   9035 
   9036 void sub_36046610(void) {
   9037     int _fpu_cmp = 0;
   9038     uint32_t _cf = 0;
   9039     int _df = 1;
   9040     uint32_t _flag_k = FK_NONE;
   9041     uint32_t _flag_a = 0, _flag_b = 0;
   9042     uint32_t _itail_tgt = 0;
   9043     RECOMP_REGS_LOCALS
   9044     RECOMP_ENTER(0x36046610u);
   9045 
   9046 L_36046610:
   9047     PUSH32(esp, esi); /* 0x36046610: push esi */
   9048     esi = ecx; /* 0x36046611: mov esi, ecx */
   9049     ecx = MEM32(esi + 0x4); /* 0x36046613: mov ecx, dword ptr [esi + 4] */
   9050     RECOMP_ICALL(0x36047E60u); /* 0x36046616: call 0x36047e60 */ /* not lifted */
   9051     RECOMP_FLAGS_IN();
   9052     ecx = MEM32(esi + 0x4); /* 0x3604661B: mov ecx, dword ptr [esi + 4] */
   9053     RECOMP_ICALL(0x360478D0u); /* 0x3604661E: call 0x360478d0 */ /* not lifted */
   9054     RECOMP_FLAGS_IN();
   9055     PUSH32(esp, eax); /* 0x36046623: push eax */
   9056     RECOMP_ICALL(0x36044470u); /* 0x36046624: call 0x36044470 */ /* not lifted */
   9057     RECOMP_FLAGS_IN();
   9058     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9059     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9060     esp = esp + 4; /* 0x36046629: add esp, 4 */
   9061     _flag_k = FK_ADD;
   9062     esi = POP32_VAL(esp); /* 0x3604662C: pop esi */
   9063     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604662D: ret 4 */
   9064     RECOMP_REGS_OUT();
   9065 }
   9066 
   9067 void sub_36046630(void) {
   9068     int _fpu_cmp = 0;
   9069     uint32_t _cf = 0;
   9070     int _df = 1;
   9071     uint32_t _flag_k = FK_NONE;
   9072     uint32_t _flag_a = 0, _flag_b = 0;
   9073     uint32_t _itail_tgt = 0;
   9074     RECOMP_REGS_LOCALS
   9075     RECOMP_ENTER(0x36046630u);
   9076 
   9077 L_36046630:
   9078     PUSH32(esp, ebp); /* 0x36046630: push ebp */
   9079     ebp = esp; /* 0x36046631: mov ebp, esp */
   9080     PUSH32(esp, ebx); /* 0x36046633: push ebx */
   9081     PUSH32(esp, esi); /* 0x36046634: push esi */
   9082     esi = ecx; /* 0x36046635: mov esi, ecx */
   9083     ecx = MEM32(esi + 0x4); /* 0x36046637: mov ecx, dword ptr [esi + 4] */
   9084     PUSH32(esp, edi); /* 0x3604663A: push edi */
   9085     RECOMP_ICALL(0x36047E60u); /* 0x3604663B: call 0x36047e60 */ /* not lifted */
   9086     RECOMP_FLAGS_IN();
   9087     ecx = MEM32(esi + 0x4); /* 0x36046640: mov ecx, dword ptr [esi + 4] */
   9088     RECOMP_ICALL(0x360478D0u); /* 0x36046643: call 0x360478d0 */ /* not lifted */
   9089     RECOMP_FLAGS_IN();
   9090     edi = eax; /* 0x36046648: mov edi, eax */
   9091     ecx = edi; /* 0x3604664A: mov ecx, edi */
   9092     RECOMP_ICALL(0x36071DD0u); /* 0x3604664C: call 0x36071dd0 */ /* not lifted */
   9093     RECOMP_FLAGS_IN();
   9094     ecx = eax; /* 0x36046651: mov ecx, eax */
   9095     RECOMP_ICALL(0x3604D910u); /* 0x36046653: call 0x3604d910 */ /* not lifted */
   9096     RECOMP_FLAGS_IN();
   9097     ebx = MEM32(ebp + 0x8); /* 0x36046658: mov ebx, dword ptr [ebp + 8] */
   9098     ecx = ebx; /* 0x3604665B: mov ecx, ebx */
   9099     RECOMP_ICALL(0x360C5400u); /* 0x3604665D: call 0x360c5400 */ /* not lifted */
   9100     RECOMP_FLAGS_IN();
   9101     ecx = eax; /* 0x36046662: mov ecx, eax */
   9102     RECOMP_ICALL(0x3609C020u); /* 0x36046664: call 0x3609c020 */ /* not lifted */
   9103     RECOMP_FLAGS_IN();
   9104     /* cmp eax, 3 */ /* 0x36046669: cmp eax, 3 */
   9105     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   9106     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9107     _flag_k = FK_CMP;
   9108     if (CMP_NE(_flag_a, _flag_b)) goto L_360466CD; /* 0x3604666C: jne 0x360466cd */
   9109 L_3604666E:
   9110     ecx = MEM32(edi + 0x174); /* 0x3604666E: mov ecx, dword ptr [edi + 0x174] */
   9111     RECOMP_ICALL(0x3606C640u); /* 0x36046674: call 0x3606c640 */ /* not lifted */
   9112     RECOMP_FLAGS_IN();
   9113     ecx = MEM32(esi + 0x4); /* 0x36046679: mov ecx, dword ptr [esi + 4] */
   9114     ebx = eax; /* 0x3604667C: mov ebx, eax */
   9115     RECOMP_ICALL(0x360478D0u); /* 0x3604667E: call 0x360478d0 */ /* not lifted */
   9116     RECOMP_FLAGS_IN();
   9117     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046683: push -1 */
   9118     edx = ebp + 0x8; /* 0x36046685: lea edx, [ebp + 8] */
   9119     PUSH32(esp, edx); /* 0x36046688: push edx */
   9120     PUSH32(esp, 0); /* 0x36046689: push 0 */
   9121     PUSH32(esp, 1); /* 0x3604668B: push 1 */
   9122     PUSH32(esp, 2); /* 0x3604668D: push 2 */
   9123     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604668F: push -1 */
   9124     PUSH32(esp, 0); /* 0x36046691: push 0 */
   9125     edi = eax; /* 0x36046693: mov edi, eax */
   9126     PUSH32(esp, 0); /* 0x36046695: push 0 */
   9127     MEM32(ebp + 0x8) = 0; /* 0x36046697: mov dword ptr [ebp + 8], 0 */
   9128     ecx = MEM32(edi + 0x174); /* 0x3604669E: mov ecx, dword ptr [edi + 0x174] */
   9129     eax = MEM32(ecx); /* 0x360466A4: mov eax, dword ptr [ecx] */
   9130     PUSH32(esp, 0x3F800000u); /* 0x360466A6: push 0x3f800000 */
   9131     PUSH32(esp, ebx); /* 0x360466AB: push ebx */
   9132     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x360466AC: call dword ptr [eax + 0x14] */
   9133     RECOMP_FLAGS_IN();
   9134     ecx = MEM32(edi + 0x174); /* 0x360466AF: mov ecx, dword ptr [edi + 0x174] */
   9135     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x360466B5: mov byte ptr [ecx + 0x5c], 0 */
   9136     edx = MEM32(ebp + 0x8); /* 0x360466B9: mov edx, dword ptr [ebp + 8] */
   9137     ecx = MEM32(esi + 0x4); /* 0x360466BC: mov ecx, dword ptr [esi + 4] */
   9138     PUSH32(esp, eax); /* 0x360466BF: push eax */
   9139     PUSH32(esp, edx); /* 0x360466C0: push edx */
   9140     RECOMP_ICALL(0x360492F0u); /* 0x360466C1: call 0x360492f0 */ /* not lifted */
   9141     RECOMP_FLAGS_IN();
   9142     edi = POP32_VAL(esp); /* 0x360466C6: pop edi */
   9143     esi = POP32_VAL(esp); /* 0x360466C7: pop esi */
   9144     ebx = POP32_VAL(esp); /* 0x360466C8: pop ebx */
   9145     ebp = POP32_VAL(esp); /* 0x360466C9: pop ebp */
   9146     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360466CA: ret 4 */
   9147 L_360466CD:
   9148     ecx = ebx; /* 0x360466CD: mov ecx, ebx */
   9149     RECOMP_ICALL(0x360C5400u); /* 0x360466CF: call 0x360c5400 */ /* not lifted */
   9150     RECOMP_FLAGS_IN();
   9151     ecx = eax; /* 0x360466D4: mov ecx, eax */
   9152     RECOMP_ICALL(0x3609BF50u); /* 0x360466D6: call 0x3609bf50 */ /* not lifted */
   9153     RECOMP_FLAGS_IN();
   9154     /* cmp eax, 1 */ /* 0x360466DB: cmp eax, 1 */
   9155     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   9156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9157     _flag_k = FK_CMP;
   9158     if (CMP_NE(_flag_a, _flag_b)) goto L_36046738; /* 0x360466DE: jne 0x36046738 */
   9159 L_360466E0:
   9160     ecx = MEM32(edi + 0x174); /* 0x360466E0: mov ecx, dword ptr [edi + 0x174] */
   9161     RECOMP_ICALL(0x3606C640u); /* 0x360466E6: call 0x3606c640 */ /* not lifted */
   9162     RECOMP_FLAGS_IN();
   9163     ecx = MEM32(esi + 0x4); /* 0x360466EB: mov ecx, dword ptr [esi + 4] */
   9164     ebx = eax; /* 0x360466EE: mov ebx, eax */
   9165     RECOMP_ICALL(0x360478D0u); /* 0x360466F0: call 0x360478d0 */ /* not lifted */
   9166     RECOMP_FLAGS_IN();
   9167     PUSH32(esp, 0xFFFFFFFFu); /* 0x360466F5: push -1 */
   9168     edx = ebp + 0x8; /* 0x360466F7: lea edx, [ebp + 8] */
   9169     PUSH32(esp, edx); /* 0x360466FA: push edx */
   9170     PUSH32(esp, 0); /* 0x360466FB: push 0 */
   9171     PUSH32(esp, 1); /* 0x360466FD: push 1 */
   9172     PUSH32(esp, 4); /* 0x360466FF: push 4 */
   9173     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046701: push -1 */
   9174     PUSH32(esp, 0); /* 0x36046703: push 0 */
   9175     edi = eax; /* 0x36046705: mov edi, eax */
   9176     PUSH32(esp, 0); /* 0x36046707: push 0 */
   9177     MEM32(ebp + 0x8) = 0; /* 0x36046709: mov dword ptr [ebp + 8], 0 */
   9178     ecx = MEM32(edi + 0x174); /* 0x36046710: mov ecx, dword ptr [edi + 0x174] */
   9179     eax = MEM32(ecx); /* 0x36046716: mov eax, dword ptr [ecx] */
   9180     PUSH32(esp, 0x3F800000u); /* 0x36046718: push 0x3f800000 */
   9181     PUSH32(esp, ebx); /* 0x3604671D: push ebx */
   9182     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x3604671E: call dword ptr [eax + 0x14] */
   9183     RECOMP_FLAGS_IN();
   9184     ecx = MEM32(edi + 0x174); /* 0x36046721: mov ecx, dword ptr [edi + 0x174] */
   9185     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x36046727: mov byte ptr [ecx + 0x5c], 0 */
   9186     edx = MEM32(ebp + 0x8); /* 0x3604672B: mov edx, dword ptr [ebp + 8] */
   9187     ecx = MEM32(esi + 0x4); /* 0x3604672E: mov ecx, dword ptr [esi + 4] */
   9188     PUSH32(esp, eax); /* 0x36046731: push eax */
   9189     PUSH32(esp, edx); /* 0x36046732: push edx */
   9190     RECOMP_ICALL(0x360492F0u); /* 0x36046733: call 0x360492f0 */ /* not lifted */
   9191     RECOMP_FLAGS_IN();
   9192 L_36046738:
   9193     edi = POP32_VAL(esp); /* 0x36046738: pop edi */
   9194     esi = POP32_VAL(esp); /* 0x36046739: pop esi */
   9195     ebx = POP32_VAL(esp); /* 0x3604673A: pop ebx */
   9196     ebp = POP32_VAL(esp); /* 0x3604673B: pop ebp */
   9197     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604673C: ret 4 */
   9198     RECOMP_REGS_OUT();
   9199 }
   9200 
   9201 void sub_36046740(void) {
   9202     int _fpu_cmp = 0;
   9203     uint32_t _cf = 0;
   9204     int _df = 1;
   9205     uint32_t _flag_k = FK_NONE;
   9206     uint32_t _flag_a = 0, _flag_b = 0;
   9207     uint32_t _itail_tgt = 0;
   9208     RECOMP_REGS_LOCALS
   9209     RECOMP_ENTER(0x36046740u);
   9210 
   9211 L_36046740:
   9212     PUSH32(esp, esi); /* 0x36046740: push esi */
   9213     esi = ecx; /* 0x36046741: mov esi, ecx */
   9214     ecx = MEM32(esi + 0x4); /* 0x36046743: mov ecx, dword ptr [esi + 4] */
   9215     RECOMP_ICALL(0x36047E60u); /* 0x36046746: call 0x36047e60 */ /* not lifted */
   9216     RECOMP_FLAGS_IN();
   9217     ecx = MEM32(esi + 0x4); /* 0x3604674B: mov ecx, dword ptr [esi + 4] */
   9218     RECOMP_ICALL(0x360478D0u); /* 0x3604674E: call 0x360478d0 */ /* not lifted */
   9219     RECOMP_FLAGS_IN();
   9220     esi = eax; /* 0x36046753: mov esi, eax */
   9221     ecx = esi; /* 0x36046755: mov ecx, esi */
   9222     RECOMP_ICALL(0x36071DD0u); /* 0x36046757: call 0x36071dd0 */ /* not lifted */
   9223     RECOMP_FLAGS_IN();
   9224     ecx = eax; /* 0x3604675C: mov ecx, eax */
   9225     RECOMP_ICALL(0x3604D970u); /* 0x3604675E: call 0x3604d970 */ /* not lifted */
   9226     RECOMP_FLAGS_IN();
   9227     PUSH32(esp, esi); /* 0x36046763: push esi */
   9228     RECOMP_ICALL(0x36044470u); /* 0x36046764: call 0x36044470 */ /* not lifted */
   9229     RECOMP_FLAGS_IN();
   9230     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   9231     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   9232     esp = esp + 4; /* 0x36046769: add esp, 4 */
   9233     _flag_k = FK_ADD;
   9234     esi = POP32_VAL(esp); /* 0x3604676C: pop esi */
   9235     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3604676D: ret 4 */
   9236     RECOMP_REGS_OUT();
   9237 }
   9238 
   9239 void sub_36046770(void) {
   9240     int _fpu_cmp = 0;
   9241     uint32_t _cf = 0;
   9242     int _df = 1;
   9243     uint32_t _flag_k = FK_NONE;
   9244     uint32_t _flag_a = 0, _flag_b = 0;
   9245     uint32_t _itail_tgt = 0;
   9246     RECOMP_REGS_LOCALS
   9247     RECOMP_ENTER(0x36046770u);
   9248 
   9249 L_36046770:
   9250     PUSH32(esp, ebp); /* 0x36046770: push ebp */
   9251     ebp = esp; /* 0x36046771: mov ebp, esp */
   9252     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   9253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9254     esp = esp - 0x18u; /* 0x36046773: sub esp, 0x18 */
   9255     _flag_k = FK_CMP;
   9256     PUSH32(esp, ebx); /* 0x36046776: push ebx */
   9257     PUSH32(esp, esi); /* 0x36046777: push esi */
   9258     esi = ecx; /* 0x36046778: mov esi, ecx */
   9259     ecx = MEM32(esi + 0x4); /* 0x3604677A: mov ecx, dword ptr [esi + 4] */
   9260     PUSH32(esp, edi); /* 0x3604677D: push edi */
   9261     RECOMP_ICALL(0x360478D0u); /* 0x3604677E: call 0x360478d0 */ /* not lifted */
   9262     RECOMP_FLAGS_IN();
   9263     ecx = MEM32(esi + 0x4); /* 0x36046783: mov ecx, dword ptr [esi + 4] */
   9264     edi = eax; /* 0x36046786: mov edi, eax */
   9265     RECOMP_ICALL(0x36047E60u); /* 0x36046788: call 0x36047e60 */ /* not lifted */
   9266     RECOMP_FLAGS_IN();
   9267     eax = MEM32(edi + 0xE4); /* 0x3604678D: mov eax, dword ptr [edi + 0xe4] */
   9268     ecx = edi + 0xE4; /* 0x36046793: lea ecx, [edi + 0xe4] */
   9269     PUSH32(esp, 0x20000000u); /* 0x36046799: push 0x20000000 */
   9270     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x3604679E: call dword ptr [eax + 0x18] */
   9271     RECOMP_FLAGS_IN();
   9272     ecx = MEM32(esi + 0x4); /* 0x360467A1: mov ecx, dword ptr [esi + 4] */
   9273     RECOMP_ICALL(MEM32(0x3617034C)); /* 0x360467A4: call dword ptr [0x3617034c] */
   9274     RECOMP_FLAGS_IN();
   9275     ecx = MEM32(esi + 0x4); /* 0x360467AA: mov ecx, dword ptr [esi + 4] */
   9276     edx = ecx + 0x54; /* 0x360467AD: lea edx, [ecx + 0x54] */
   9277     eax = MEM32(edx); /* 0x360467B0: mov eax, dword ptr [edx] */
   9278     MEM32(ebp + (-0xC)) = eax; /* 0x360467B2: mov dword ptr [ebp - 0xc], eax */
   9279     eax = MEM32(edx + 0x4); /* 0x360467B5: mov eax, dword ptr [edx + 4] */
   9280     edx = MEM32(edx + 0x8); /* 0x360467B8: mov edx, dword ptr [edx + 8] */
   9281     MEM32(ebp + (-0x8)) = eax; /* 0x360467BB: mov dword ptr [ebp - 8], eax */
   9282     fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x360467BE: fld dword ptr [ebp - 8] */
   9283     _st[0] += (double)*(float*)ADDR(0x36170464); /* 0x360467C1: fadd dword ptr [0x36170464] */
   9284     eax = MEM32(ebp + (-0xC)); /* 0x360467C7: mov eax, dword ptr [ebp - 0xc] */
   9285     MEM32(ebp + (-0x4)) = edx; /* 0x360467CA: mov dword ptr [ebp - 4], edx */
   9286     MEM32(ebp + (-0x4)) = edx; /* 0x360467CD: mov dword ptr [ebp - 4], edx */
   9287     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x360467D0: fstp dword ptr [ebp - 8] */
   9288     edx = MEM32(ebp + (-0x8)); /* 0x360467D3: mov edx, dword ptr [ebp - 8] */
   9289     MEM32(ebp + (-0x14)) = edx; /* 0x360467D6: mov dword ptr [ebp - 0x14], edx */
   9290     MEM32(ebp + (-0xC)) = eax; /* 0x360467D9: mov dword ptr [ebp - 0xc], eax */
   9291     MEM32(ebp + (-0x18)) = eax; /* 0x360467DC: mov dword ptr [ebp - 0x18], eax */
   9292     eax = MEM32(ebp + (-0x4)); /* 0x360467DF: mov eax, dword ptr [ebp - 4] */
   9293     edx = ebp + (-0x18); /* 0x360467E2: lea edx, [ebp - 0x18] */
   9294     PUSH32(esp, edx); /* 0x360467E5: push edx */
   9295     MEM32(ebp + (-0x10)) = eax; /* 0x360467E6: mov dword ptr [ebp - 0x10], eax */
   9296     RECOMP_ICALL(MEM32(0x36170360)); /* 0x360467E9: call dword ptr [0x36170360] */
   9297     RECOMP_FLAGS_IN();
   9298     ecx = MEM32(esi + 0x4); /* 0x360467EF: mov ecx, dword ptr [esi + 4] */
   9299     PUSH32(esp, 4); /* 0x360467F2: push 4 */
   9300     RECOMP_ICALL(MEM32(0x36170238)); /* 0x360467F4: call dword ptr [0x36170238] */
   9301     RECOMP_FLAGS_IN();
   9302     ecx = MEM32(ebp + 0x8); /* 0x360467FA: mov ecx, dword ptr [ebp + 8] */
   9303     RECOMP_ICALL(0x36042130u); /* 0x360467FD: call 0x36042130 */ /* not lifted */
   9304     RECOMP_FLAGS_IN();
   9305     ecx = eax; /* 0x36046802: mov ecx, eax */
   9306     RECOMP_ICALL(0x36008320u); /* 0x36046804: call 0x36008320 */ /* not lifted */
   9307     RECOMP_FLAGS_IN();
   9308     /* cmp eax, 6 */ /* 0x36046809: cmp eax, 6 */
   9309     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   9310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9311     _flag_k = FK_CMP;
   9312     if (CMP_NE(_flag_a, _flag_b)) goto L_3604681C; /* 0x3604680C: jne 0x3604681c */
   9313 L_3604680E:
   9314     ecx = edi; /* 0x3604680E: mov ecx, edi */
   9315     RECOMP_ICALL(0x36071DD0u); /* 0x36046810: call 0x36071dd0 */ /* not lifted */
   9316     RECOMP_FLAGS_IN();
   9317     ecx = eax; /* 0x36046815: mov ecx, eax */
   9318     RECOMP_ICALL(0x3604D970u); /* 0x36046817: call 0x3604d970 */ /* not lifted */
   9319     RECOMP_FLAGS_IN();
   9320 L_3604681C:
   9321     ecx = edi; /* 0x3604681C: mov ecx, edi */
   9322     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x3604681E: call dword ptr [0x361700d4] */
   9323     RECOMP_FLAGS_IN();
   9324     /* test LO8(eax), LO8(eax) */ /* 0x36046824: test al, al */
   9325     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9326     _cf = 0;
   9327     _flag_k = FK_NARROW(FK_TEST, 24);
   9328     if (TEST_Z(_flag_a, _flag_b)) goto L_36046888; /* 0x36046826: je 0x36046888 */
   9329 L_36046828:
   9330     PUSH32(esp, 0x4Du); /* 0x36046828: push 0x4d */
   9331     ecx = edi; /* 0x3604682A: mov ecx, edi */
   9332     RECOMP_ICALL(0x36072000u); /* 0x3604682C: call 0x36072000 */ /* not lifted */
   9333     RECOMP_FLAGS_IN();
   9334     ecx = eax; /* 0x36046831: mov ecx, eax */
   9335     RECOMP_ICALL(0x360572B0u); /* 0x36046833: call 0x360572b0 */ /* not lifted */
   9336     RECOMP_FLAGS_IN();
   9337     PUSH32(esp, 0x4Cu); /* 0x36046838: push 0x4c */
   9338     ecx = edi; /* 0x3604683A: mov ecx, edi */
   9339     RECOMP_ICALL(0x36072000u); /* 0x3604683C: call 0x36072000 */ /* not lifted */
   9340     RECOMP_FLAGS_IN();
   9341     ecx = eax; /* 0x36046841: mov ecx, eax */
   9342     RECOMP_ICALL(0x360572B0u); /* 0x36046843: call 0x360572b0 */ /* not lifted */
   9343     RECOMP_FLAGS_IN();
   9344     PUSH32(esp, 0x11u); /* 0x36046848: push 0x11 */
   9345     ecx = edi; /* 0x3604684A: mov ecx, edi */
   9346     RECOMP_ICALL(0x36072000u); /* 0x3604684C: call 0x36072000 */ /* not lifted */
   9347     RECOMP_FLAGS_IN();
   9348     ecx = eax; /* 0x36046851: mov ecx, eax */
   9349     RECOMP_ICALL(0x360572B0u); /* 0x36046853: call 0x360572b0 */ /* not lifted */
   9350     RECOMP_FLAGS_IN();
   9351     PUSH32(esp, 0x12u); /* 0x36046858: push 0x12 */
   9352     ecx = edi; /* 0x3604685A: mov ecx, edi */
   9353     RECOMP_ICALL(0x36072000u); /* 0x3604685C: call 0x36072000 */ /* not lifted */
   9354     RECOMP_FLAGS_IN();
   9355     ecx = eax; /* 0x36046861: mov ecx, eax */
   9356     RECOMP_ICALL(0x360572B0u); /* 0x36046863: call 0x360572b0 */ /* not lifted */
   9357     RECOMP_FLAGS_IN();
   9358     PUSH32(esp, 0x13u); /* 0x36046868: push 0x13 */
   9359     ecx = edi; /* 0x3604686A: mov ecx, edi */
   9360     RECOMP_ICALL(0x36072000u); /* 0x3604686C: call 0x36072000 */ /* not lifted */
   9361     RECOMP_FLAGS_IN();
   9362     ecx = eax; /* 0x36046871: mov ecx, eax */
   9363     RECOMP_ICALL(0x360572B0u); /* 0x36046873: call 0x360572b0 */ /* not lifted */
   9364     RECOMP_FLAGS_IN();
   9365     PUSH32(esp, 0x4Fu); /* 0x36046878: push 0x4f */
   9366     ecx = edi; /* 0x3604687A: mov ecx, edi */
   9367     RECOMP_ICALL(0x36072000u); /* 0x3604687C: call 0x36072000 */ /* not lifted */
   9368     RECOMP_FLAGS_IN();
   9369     ecx = eax; /* 0x36046881: mov ecx, eax */
   9370     RECOMP_ICALL(0x360572B0u); /* 0x36046883: call 0x360572b0 */ /* not lifted */
   9371     RECOMP_FLAGS_IN();
   9372 L_36046888:
   9373     edi = MEM32(edi + 0x174); /* 0x36046888: mov edi, dword ptr [edi + 0x174] */
   9374     ebx = MEM32(edi); /* 0x3604688E: mov ebx, dword ptr [edi] */
   9375     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046890: push -1 */
   9376     PUSH32(esp, 0); /* 0x36046892: push 0 */
   9377     PUSH32(esp, 0); /* 0x36046894: push 0 */
   9378     PUSH32(esp, 1); /* 0x36046896: push 1 */
   9379     PUSH32(esp, 2); /* 0x36046898: push 2 */
   9380     PUSH32(esp, 0xFFFFFFFFu); /* 0x3604689A: push -1 */
   9381     PUSH32(esp, 0); /* 0x3604689C: push 0 */
   9382     PUSH32(esp, 0); /* 0x3604689E: push 0 */
   9383     PUSH32(esp, 0x3F800000u); /* 0x360468A0: push 0x3f800000 */
   9384     ecx = edi; /* 0x360468A5: mov ecx, edi */
   9385     RECOMP_ICALL(0x3609C020u); /* 0x360468A7: call 0x3609c020 */ /* not lifted */
   9386     RECOMP_FLAGS_IN();
   9387     PUSH32(esp, eax); /* 0x360468AC: push eax */
   9388     ecx = edi; /* 0x360468AD: mov ecx, edi */
   9389     RECOMP_ICALL(MEM32(ebx + 0x14)); /* 0x360468AF: call dword ptr [ebx + 0x14] */
   9390     RECOMP_FLAGS_IN();
   9391     RECOMP_ICALL(0x360F7B00u); /* 0x360468B2: call 0x360f7b00 */ /* not lifted */
   9392     RECOMP_FLAGS_IN();
   9393     edi = eax; /* 0x360468B7: mov edi, eax */
   9394     MEM32(edi + 0x54) = 0x20u; /* 0x360468B9: mov dword ptr [edi + 0x54], 0x20 */
   9395     ecx = MEM32(esi + 0x4); /* 0x360468C0: mov ecx, dword ptr [esi + 4] */
   9396     RECOMP_ICALL(MEM32(0x3617028C)); /* 0x360468C3: call dword ptr [0x3617028c] */
   9397     RECOMP_FLAGS_IN();
   9398     PUSH32(esp, eax); /* 0x360468C9: push eax */
   9399     PUSH32(esp, 0x7D0u); /* 0x360468CA: push 0x7d0 */
   9400     ecx = edi; /* 0x360468CF: mov ecx, edi */
   9401     RECOMP_ICALL(0x360F80C0u); /* 0x360468D1: call 0x360f80c0 */ /* not lifted */
   9402     RECOMP_FLAGS_IN();
   9403     PUSH32(esp, 0xFFF0E0FFu); /* 0x360468D6: push 0xfff0e0ff */
   9404     PUSH32(esp, eax); /* 0x360468DB: push eax */
   9405     ecx = edi; /* 0x360468DC: mov ecx, edi */
   9406     RECOMP_ICALL(0x360FB800u); /* 0x360468DE: call 0x360fb800 */ /* not lifted */
   9407     RECOMP_FLAGS_IN();
   9408     edi = POP32_VAL(esp); /* 0x360468E3: pop edi */
   9409     esi = POP32_VAL(esp); /* 0x360468E4: pop esi */
   9410     ebx = POP32_VAL(esp); /* 0x360468E5: pop ebx */
   9411     esp = ebp; /* 0x360468E6: mov esp, ebp */
   9412     ebp = POP32_VAL(esp); /* 0x360468E8: pop ebp */
   9413     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360468E9: ret 4 */
   9414     RECOMP_REGS_OUT();
   9415 }
   9416 
   9417 void sub_360468F0(void) {
   9418     int _fpu_cmp = 0;
   9419     uint32_t _cf = 0;
   9420     int _df = 1;
   9421     uint32_t _flag_k = FK_NONE;
   9422     uint32_t _flag_a = 0, _flag_b = 0;
   9423     uint32_t _itail_tgt = 0;
   9424     RECOMP_REGS_LOCALS
   9425     RECOMP_ENTER(0x360468F0u);
   9426 
   9427 L_360468F0:
   9428     PUSH32(esp, ebp); /* 0x360468F0: push ebp */
   9429     ebp = esp; /* 0x360468F1: mov ebp, esp */
   9430     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   9431     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9432     esp = esp - 0x1Cu; /* 0x360468F3: sub esp, 0x1c */
   9433     _flag_k = FK_CMP;
   9434     PUSH32(esp, ebx); /* 0x360468F6: push ebx */
   9435     PUSH32(esp, esi); /* 0x360468F7: push esi */
   9436     esi = ecx; /* 0x360468F8: mov esi, ecx */
   9437     ecx = MEM32(esi + 0x4); /* 0x360468FA: mov ecx, dword ptr [esi + 4] */
   9438     PUSH32(esp, edi); /* 0x360468FD: push edi */
   9439     RECOMP_ICALL(0x360478D0u); /* 0x360468FE: call 0x360478d0 */ /* not lifted */
   9440     RECOMP_FLAGS_IN();
   9441     ecx = MEM32(esi + 0x4); /* 0x36046903: mov ecx, dword ptr [esi + 4] */
   9442     edi = eax; /* 0x36046906: mov edi, eax */
   9443     RECOMP_ICALL(0x36047E60u); /* 0x36046908: call 0x36047e60 */ /* not lifted */
   9444     RECOMP_FLAGS_IN();
   9445     edx = MEM32(edi + 0x118); /* 0x3604690D: mov edx, dword ptr [edi + 0x118] */
   9446     ebx = edi + 0xE4; /* 0x36046913: lea ebx, [edi + 0xe4] */
   9447     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xDFFFFFFFu);
   9448     edx = edx & 0xDFFFFFFFu; /* 0x36046919: and edx, 0xdfffffff */
   9449     _cf = 0;
   9450     _flag_k = FK_TEST;
   9451     eax = edx; /* 0x3604691F: mov eax, edx */
   9452     PUSH32(esp, eax); /* 0x36046921: push eax */
   9453     MEM32(ebx + 0x34) = edx; /* 0x36046922: mov dword ptr [ebx + 0x34], edx */
   9454     edx = MEM32(ebx); /* 0x36046925: mov edx, dword ptr [ebx] */
   9455     PUSH32(esp, 0); /* 0x36046927: push 0 */
   9456     ecx = ebx; /* 0x36046929: mov ecx, ebx */
   9457     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3604692B: call dword ptr [edx + 8] */
   9458     RECOMP_FLAGS_IN();
   9459     ecx = MEM32(esi + 0x4); /* 0x3604692E: mov ecx, dword ptr [esi + 4] */
   9460     RECOMP_ICALL(MEM32(0x36170364)); /* 0x36046931: call dword ptr [0x36170364] */
   9461     RECOMP_FLAGS_IN();
   9462     ecx = MEM32(esi + 0x4); /* 0x36046937: mov ecx, dword ptr [esi + 4] */
   9463     eax = ecx + 0x54; /* 0x3604693A: lea eax, [ecx + 0x54] */
   9464     edx = MEM32(eax); /* 0x3604693D: mov edx, dword ptr [eax] */
   9465     MEM32(ebp + (-0x10)) = edx; /* 0x3604693F: mov dword ptr [ebp - 0x10], edx */
   9466     edx = MEM32(eax + 0x4); /* 0x36046942: mov edx, dword ptr [eax + 4] */
   9467     eax = MEM32(eax + 0x8); /* 0x36046945: mov eax, dword ptr [eax + 8] */
   9468     MEM32(ebp + (-0xC)) = edx; /* 0x36046948: mov dword ptr [ebp - 0xc], edx */
   9469     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3604694B: fld dword ptr [ebp - 0xc] */
   9470     _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x3604694E: fadd dword ptr [0x36170d68] */
   9471     edx = MEM32(ebp + (-0x10)); /* 0x36046954: mov edx, dword ptr [ebp - 0x10] */
   9472     MEM32(ebp + (-0x8)) = eax; /* 0x36046957: mov dword ptr [ebp - 8], eax */
   9473     MEM32(ebp + (-0x8)) = eax; /* 0x3604695A: mov dword ptr [ebp - 8], eax */
   9474     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3604695D: fstp dword ptr [ebp - 0xc] */
   9475     eax = MEM32(ebp + (-0xC)); /* 0x36046960: mov eax, dword ptr [ebp - 0xc] */
   9476     MEM32(ebp + (-0x18)) = eax; /* 0x36046963: mov dword ptr [ebp - 0x18], eax */
   9477     MEM32(ebp + (-0x10)) = edx; /* 0x36046966: mov dword ptr [ebp - 0x10], edx */
   9478     MEM32(ebp + (-0x1C)) = edx; /* 0x36046969: mov dword ptr [ebp - 0x1c], edx */
   9479     edx = MEM32(ebp + (-0x8)); /* 0x3604696C: mov edx, dword ptr [ebp - 8] */
   9480     eax = ebp + (-0x1C); /* 0x3604696F: lea eax, [ebp - 0x1c] */
   9481     PUSH32(esp, eax); /* 0x36046972: push eax */
   9482     MEM32(ebp + (-0x14)) = edx; /* 0x36046973: mov dword ptr [ebp - 0x14], edx */
   9483     RECOMP_ICALL(MEM32(0x36170360)); /* 0x36046976: call dword ptr [0x36170360] */
   9484     RECOMP_FLAGS_IN();
   9485     ecx = MEM32(esi + 0x4); /* 0x3604697C: mov ecx, dword ptr [esi + 4] */
   9486     edx = MEM32(ecx); /* 0x3604697F: mov edx, dword ptr [ecx] */
   9487     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x36046981: call dword ptr [edx + 0x80] */
   9488     RECOMP_FLAGS_IN();
   9489     /* test LO8(eax), LO8(eax) */ /* 0x36046987: test al, al */
   9490     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9491     _cf = 0;
   9492     _flag_k = FK_NARROW(FK_TEST, 24);
   9493     if (TEST_Z(_flag_a, _flag_b)) goto L_36046995; /* 0x36046989: je 0x36046995 */
   9494 L_3604698B:
   9495     ecx = MEM32(esi + 0x4); /* 0x3604698B: mov ecx, dword ptr [esi + 4] */
   9496     PUSH32(esp, 0); /* 0x3604698E: push 0 */
   9497     RECOMP_ICALL(0x3604BD20u); /* 0x36046990: call 0x3604bd20 */ /* not lifted */
   9498     RECOMP_FLAGS_IN();
   9499 L_36046995:
   9500     eax = MEM32(esi + 0x4); /* 0x36046995: mov eax, dword ptr [esi + 4] */
   9501     edx = MEM32(ebx); /* 0x36046998: mov edx, dword ptr [ebx] */
   9502     PUSH32(esp, 2); /* 0x3604699A: push 2 */
   9503     PUSH32(esp, 0xC5u); /* 0x3604699C: push 0xc5 */
   9504     ecx = ebx; /* 0x360469A1: mov ecx, ebx */
   9505     MEM32(ebp + (-0x4)) = eax; /* 0x360469A3: mov dword ptr [ebp - 4], eax */
   9506     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360469A6: call dword ptr [edx + 4] */
   9507     RECOMP_FLAGS_IN();
   9508     ecx = MEM32(ebp + (-0x4)); /* 0x360469A9: mov ecx, dword ptr [ebp - 4] */
   9509     PUSH32(esp, eax); /* 0x360469AC: push eax */
   9510     RECOMP_ICALL(MEM32(0x36170238)); /* 0x360469AD: call dword ptr [0x36170238] */
   9511     RECOMP_FLAGS_IN();
   9512     ecx = edi; /* 0x360469B3: mov ecx, edi */
   9513     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x360469B5: call dword ptr [0x361700d4] */
   9514     RECOMP_FLAGS_IN();
   9515     /* test LO8(eax), LO8(eax) */ /* 0x360469BB: test al, al */
   9516     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9517     _cf = 0;
   9518     _flag_k = FK_NARROW(FK_TEST, 24);
   9519     ebx = MEM32(ebp + 0x8); /* 0x360469BD: mov ebx, dword ptr [ebp + 8] */
   9520     if (TEST_Z(_flag_a, _flag_b)) goto L_36046A4D; /* 0x360469C0: je 0x36046a4d */
   9521 L_360469C6:
   9522     PUSH32(esp, 0x4Du); /* 0x360469C6: push 0x4d */
   9523     ecx = edi; /* 0x360469C8: mov ecx, edi */
   9524     RECOMP_ICALL(0x36072000u); /* 0x360469CA: call 0x36072000 */ /* not lifted */
   9525     RECOMP_FLAGS_IN();
   9526     ecx = eax; /* 0x360469CF: mov ecx, eax */
   9527     RECOMP_ICALL(0x36057270u); /* 0x360469D1: call 0x36057270 */ /* not lifted */
   9528     RECOMP_FLAGS_IN();
   9529     PUSH32(esp, 0x4Cu); /* 0x360469D6: push 0x4c */
   9530     ecx = edi; /* 0x360469D8: mov ecx, edi */
   9531     RECOMP_ICALL(0x36072000u); /* 0x360469DA: call 0x36072000 */ /* not lifted */
   9532     RECOMP_FLAGS_IN();
   9533     ecx = eax; /* 0x360469DF: mov ecx, eax */
   9534     RECOMP_ICALL(0x36057270u); /* 0x360469E1: call 0x36057270 */ /* not lifted */
   9535     RECOMP_FLAGS_IN();
   9536     PUSH32(esp, 0x11u); /* 0x360469E6: push 0x11 */
   9537     ecx = edi; /* 0x360469E8: mov ecx, edi */
   9538     RECOMP_ICALL(0x36072000u); /* 0x360469EA: call 0x36072000 */ /* not lifted */
   9539     RECOMP_FLAGS_IN();
   9540     ecx = eax; /* 0x360469EF: mov ecx, eax */
   9541     RECOMP_ICALL(0x36057270u); /* 0x360469F1: call 0x36057270 */ /* not lifted */
   9542     RECOMP_FLAGS_IN();
   9543     PUSH32(esp, 0x12u); /* 0x360469F6: push 0x12 */
   9544     ecx = edi; /* 0x360469F8: mov ecx, edi */
   9545     RECOMP_ICALL(0x36072000u); /* 0x360469FA: call 0x36072000 */ /* not lifted */
   9546     RECOMP_FLAGS_IN();
   9547     ecx = eax; /* 0x360469FF: mov ecx, eax */
   9548     RECOMP_ICALL(0x36057270u); /* 0x36046A01: call 0x36057270 */ /* not lifted */
   9549     RECOMP_FLAGS_IN();
   9550     PUSH32(esp, 0x13u); /* 0x36046A06: push 0x13 */
   9551     ecx = edi; /* 0x36046A08: mov ecx, edi */
   9552     RECOMP_ICALL(0x36072000u); /* 0x36046A0A: call 0x36072000 */ /* not lifted */
   9553     RECOMP_FLAGS_IN();
   9554     ecx = eax; /* 0x36046A0F: mov ecx, eax */
   9555     RECOMP_ICALL(0x36057270u); /* 0x36046A11: call 0x36057270 */ /* not lifted */
   9556     RECOMP_FLAGS_IN();
   9557     PUSH32(esp, 0x4Fu); /* 0x36046A16: push 0x4f */
   9558     ecx = edi; /* 0x36046A18: mov ecx, edi */
   9559     RECOMP_ICALL(0x36072000u); /* 0x36046A1A: call 0x36072000 */ /* not lifted */
   9560     RECOMP_FLAGS_IN();
   9561     ecx = eax; /* 0x36046A1F: mov ecx, eax */
   9562     RECOMP_ICALL(0x36057270u); /* 0x36046A21: call 0x36057270 */ /* not lifted */
   9563     RECOMP_FLAGS_IN();
   9564     ecx = ebx; /* 0x36046A26: mov ecx, ebx */
   9565     RECOMP_ICALL(0x360C5400u); /* 0x36046A28: call 0x360c5400 */ /* not lifted */
   9566     RECOMP_FLAGS_IN();
   9567     ecx = eax; /* 0x36046A2D: mov ecx, eax */
   9568     RECOMP_ICALL(0x36008320u); /* 0x36046A2F: call 0x36008320 */ /* not lifted */
   9569     RECOMP_FLAGS_IN();
   9570     /* cmp eax, 2 */ /* 0x36046A34: cmp eax, 2 */
   9571     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   9572     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9573     _flag_k = FK_CMP;
   9574     if (CMP_NE(_flag_a, _flag_b)) goto L_36046A3D; /* 0x36046A37: jne 0x36046a3d */
   9575 L_36046A39:
   9576     PUSH32(esp, 0x11u); /* 0x36046A39: push 0x11 */
   9577     goto L_36046A3F; /* 0x36046A3B: jmp 0x36046a3f */
   9578 L_36046A3D:
   9579     PUSH32(esp, 0x12u); /* 0x36046A3D: push 0x12 */
   9580 L_36046A3F:
   9581     ecx = edi; /* 0x36046A3F: mov ecx, edi */
   9582     RECOMP_ICALL(0x36072000u); /* 0x36046A41: call 0x36072000 */ /* not lifted */
   9583     RECOMP_FLAGS_IN();
   9584     ecx = eax; /* 0x36046A46: mov ecx, eax */
   9585     RECOMP_ICALL(0x36057990u); /* 0x36046A48: call 0x36057990 */ /* not lifted */
   9586     RECOMP_FLAGS_IN();
   9587 L_36046A4D:
   9588     ecx = ebx; /* 0x36046A4D: mov ecx, ebx */
   9589     RECOMP_ICALL(0x360C5400u); /* 0x36046A4F: call 0x360c5400 */ /* not lifted */
   9590     RECOMP_FLAGS_IN();
   9591     ecx = eax; /* 0x36046A54: mov ecx, eax */
   9592     RECOMP_ICALL(0x3609C020u); /* 0x36046A56: call 0x3609c020 */ /* not lifted */
   9593     RECOMP_FLAGS_IN();
   9594     /* cmp eax, 3 */ /* 0x36046A5B: cmp eax, 3 */
   9595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   9596     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9597     _flag_k = FK_CMP;
   9598     if (CMP_NE(_flag_a, _flag_b)) goto L_36046B2A; /* 0x36046A5E: jne 0x36046b2a */
   9599 L_36046A64:
   9600     ecx = ebx; /* 0x36046A64: mov ecx, ebx */
   9601     RECOMP_ICALL(0x360C5400u); /* 0x36046A66: call 0x360c5400 */ /* not lifted */
   9602     RECOMP_FLAGS_IN();
   9603     ecx = eax; /* 0x36046A6B: mov ecx, eax */
   9604     RECOMP_ICALL(0x36008320u); /* 0x36046A6D: call 0x36008320 */ /* not lifted */
   9605     RECOMP_FLAGS_IN();
   9606     /* cmp eax, 2 */ /* 0x36046A72: cmp eax, 2 */
   9607     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   9608     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9609     _flag_k = FK_CMP;
   9610     ecx = MEM32(edi + 0x174); /* 0x36046A75: mov ecx, dword ptr [edi + 0x174] */
   9611     if (CMP_NE(_flag_a, _flag_b)) goto L_36046AD8; /* 0x36046A7B: jne 0x36046ad8 */
   9612 L_36046A7D:
   9613     RECOMP_ICALL(0x360D9CB0u); /* 0x36046A7D: call 0x360d9cb0 */ /* not lifted */
   9614     RECOMP_FLAGS_IN();
   9615     ecx = MEM32(esi + 0x4); /* 0x36046A82: mov ecx, dword ptr [esi + 4] */
   9616     ebx = eax; /* 0x36046A85: mov ebx, eax */
   9617     RECOMP_ICALL(0x360478D0u); /* 0x36046A87: call 0x360478d0 */ /* not lifted */
   9618     RECOMP_FLAGS_IN();
   9619     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046A8C: push -1 */
   9620     edx = ebp + 0x8; /* 0x36046A8E: lea edx, [ebp + 8] */
   9621     PUSH32(esp, edx); /* 0x36046A91: push edx */
   9622     PUSH32(esp, 0); /* 0x36046A92: push 0 */
   9623     PUSH32(esp, 1); /* 0x36046A94: push 1 */
   9624     PUSH32(esp, 2); /* 0x36046A96: push 2 */
   9625     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046A98: push -1 */
   9626     PUSH32(esp, 0); /* 0x36046A9A: push 0 */
   9627     edi = eax; /* 0x36046A9C: mov edi, eax */
   9628     PUSH32(esp, 0); /* 0x36046A9E: push 0 */
   9629     MEM32(ebp + 0x8) = 0; /* 0x36046AA0: mov dword ptr [ebp + 8], 0 */
   9630     ecx = MEM32(edi + 0x174); /* 0x36046AA7: mov ecx, dword ptr [edi + 0x174] */
   9631     eax = MEM32(ecx); /* 0x36046AAD: mov eax, dword ptr [ecx] */
   9632     PUSH32(esp, 0x3F800000u); /* 0x36046AAF: push 0x3f800000 */
   9633     PUSH32(esp, ebx); /* 0x36046AB4: push ebx */
   9634     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36046AB5: call dword ptr [eax + 0x14] */
   9635     RECOMP_FLAGS_IN();
   9636     ecx = MEM32(edi + 0x174); /* 0x36046AB8: mov ecx, dword ptr [edi + 0x174] */
   9637     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x36046ABE: mov byte ptr [ecx + 0x5c], 0 */
   9638     edx = MEM32(ebp + 0x8); /* 0x36046AC2: mov edx, dword ptr [ebp + 8] */
   9639     ecx = MEM32(esi + 0x4); /* 0x36046AC5: mov ecx, dword ptr [esi + 4] */
   9640     PUSH32(esp, eax); /* 0x36046AC8: push eax */
   9641     PUSH32(esp, edx); /* 0x36046AC9: push edx */
   9642     RECOMP_ICALL(0x360492F0u); /* 0x36046ACA: call 0x360492f0 */ /* not lifted */
   9643     RECOMP_FLAGS_IN();
   9644     edi = POP32_VAL(esp); /* 0x36046ACF: pop edi */
   9645     esi = POP32_VAL(esp); /* 0x36046AD0: pop esi */
   9646     ebx = POP32_VAL(esp); /* 0x36046AD1: pop ebx */
   9647     esp = ebp; /* 0x36046AD2: mov esp, ebp */
   9648     ebp = POP32_VAL(esp); /* 0x36046AD4: pop ebp */
   9649     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046AD5: ret 4 */
   9650 L_36046AD8:
   9651     RECOMP_ICALL(0x36008320u); /* 0x36046AD8: call 0x36008320 */ /* not lifted */
   9652     RECOMP_FLAGS_IN();
   9653     ecx = MEM32(esi + 0x4); /* 0x36046ADD: mov ecx, dword ptr [esi + 4] */
   9654     ebx = eax; /* 0x36046AE0: mov ebx, eax */
   9655     RECOMP_ICALL(0x360478D0u); /* 0x36046AE2: call 0x360478d0 */ /* not lifted */
   9656     RECOMP_FLAGS_IN();
   9657     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046AE7: push -1 */
   9658     edx = ebp + 0x8; /* 0x36046AE9: lea edx, [ebp + 8] */
   9659     PUSH32(esp, edx); /* 0x36046AEC: push edx */
   9660     PUSH32(esp, 0); /* 0x36046AED: push 0 */
   9661     PUSH32(esp, 1); /* 0x36046AEF: push 1 */
   9662     PUSH32(esp, 2); /* 0x36046AF1: push 2 */
   9663     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046AF3: push -1 */
   9664     PUSH32(esp, 0); /* 0x36046AF5: push 0 */
   9665     edi = eax; /* 0x36046AF7: mov edi, eax */
   9666     PUSH32(esp, 0); /* 0x36046AF9: push 0 */
   9667     MEM32(ebp + 0x8) = 0; /* 0x36046AFB: mov dword ptr [ebp + 8], 0 */
   9668     ecx = MEM32(edi + 0x174); /* 0x36046B02: mov ecx, dword ptr [edi + 0x174] */
   9669     eax = MEM32(ecx); /* 0x36046B08: mov eax, dword ptr [ecx] */
   9670     PUSH32(esp, 0x3F800000u); /* 0x36046B0A: push 0x3f800000 */
   9671     PUSH32(esp, ebx); /* 0x36046B0F: push ebx */
   9672     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36046B10: call dword ptr [eax + 0x14] */
   9673     RECOMP_FLAGS_IN();
   9674     ecx = MEM32(edi + 0x174); /* 0x36046B13: mov ecx, dword ptr [edi + 0x174] */
   9675     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x36046B19: mov byte ptr [ecx + 0x5c], 0 */
   9676     edx = MEM32(ebp + 0x8); /* 0x36046B1D: mov edx, dword ptr [ebp + 8] */
   9677     ecx = MEM32(esi + 0x4); /* 0x36046B20: mov ecx, dword ptr [esi + 4] */
   9678     PUSH32(esp, eax); /* 0x36046B23: push eax */
   9679     PUSH32(esp, edx); /* 0x36046B24: push edx */
   9680     RECOMP_ICALL(0x360492F0u); /* 0x36046B25: call 0x360492f0 */ /* not lifted */
   9681     RECOMP_FLAGS_IN();
   9682 L_36046B2A:
   9683     edi = POP32_VAL(esp); /* 0x36046B2A: pop edi */
   9684     esi = POP32_VAL(esp); /* 0x36046B2B: pop esi */
   9685     ebx = POP32_VAL(esp); /* 0x36046B2C: pop ebx */
   9686     esp = ebp; /* 0x36046B2D: mov esp, ebp */
   9687     ebp = POP32_VAL(esp); /* 0x36046B2F: pop ebp */
   9688     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046B30: ret 4 */
   9689     RECOMP_REGS_OUT();
   9690 }
   9691 
   9692 void sub_36046B40(void) {
   9693     int _fpu_cmp = 0;
   9694     uint32_t _cf = 0;
   9695     int _df = 1;
   9696     uint32_t _flag_k = FK_NONE;
   9697     uint32_t _flag_a = 0, _flag_b = 0;
   9698     uint32_t _itail_tgt = 0;
   9699     RECOMP_REGS_LOCALS
   9700     RECOMP_ENTER(0x36046B40u);
   9701 
   9702 L_36046B40:
   9703     PUSH32(esp, ebp); /* 0x36046B40: push ebp */
   9704     ebp = esp; /* 0x36046B41: mov ebp, esp */
   9705     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   9706     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9707     esp = esp - 8; /* 0x36046B43: sub esp, 8 */
   9708     _flag_k = FK_CMP;
   9709     PUSH32(esp, ebx); /* 0x36046B46: push ebx */
   9710     PUSH32(esp, esi); /* 0x36046B47: push esi */
   9711     PUSH32(esp, edi); /* 0x36046B48: push edi */
   9712     edi = ecx; /* 0x36046B49: mov edi, ecx */
   9713     ecx = MEM32(edi + 0x4); /* 0x36046B4B: mov ecx, dword ptr [edi + 4] */
   9714     RECOMP_ICALL(0x36047E60u); /* 0x36046B4E: call 0x36047e60 */ /* not lifted */
   9715     RECOMP_FLAGS_IN();
   9716     ecx = MEM32(edi + 0x4); /* 0x36046B53: mov ecx, dword ptr [edi + 4] */
   9717     RECOMP_ICALL(MEM32(0x36170344)); /* 0x36046B56: call dword ptr [0x36170344] */
   9718     RECOMP_FLAGS_IN();
   9719     ecx = MEM32(edi + 0x4); /* 0x36046B5C: mov ecx, dword ptr [edi + 4] */
   9720     RECOMP_ICALL(0x360478D0u); /* 0x36046B5F: call 0x360478d0 */ /* not lifted */
   9721     RECOMP_FLAGS_IN();
   9722     ebx = eax; /* 0x36046B64: mov ebx, eax */
   9723     eax = MEM32(ebx + 0xE4); /* 0x36046B66: mov eax, dword ptr [ebx + 0xe4] */
   9724     esi = ebx + 0xE4; /* 0x36046B6C: lea esi, [ebx + 0xe4] */
   9725     PUSH32(esp, 0x19u); /* 0x36046B72: push 0x19 */
   9726     PUSH32(esp, 0x1A9u); /* 0x36046B74: push 0x1a9 */
   9727     ecx = esi; /* 0x36046B79: mov ecx, esi */
   9728     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36046B7B: call dword ptr [eax + 8] */
   9729     RECOMP_FLAGS_IN();
   9730     edx = MEM32(esi); /* 0x36046B7E: mov edx, dword ptr [esi] */
   9731     PUSH32(esp, 2); /* 0x36046B80: push 2 */
   9732     PUSH32(esp, 0x1AEu); /* 0x36046B82: push 0x1ae */
   9733     ecx = esi; /* 0x36046B87: mov ecx, esi */
   9734     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36046B89: call dword ptr [edx + 8] */
   9735     RECOMP_FLAGS_IN();
   9736     ecx = ebx; /* 0x36046B8C: mov ecx, ebx */
   9737     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36046B8E: call dword ptr [0x361700d4] */
   9738     RECOMP_FLAGS_IN();
   9739     /* test LO8(eax), LO8(eax) */ /* 0x36046B94: test al, al */
   9740     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9741     _cf = 0;
   9742     _flag_k = FK_NARROW(FK_TEST, 24);
   9743     if (TEST_Z(_flag_a, _flag_b)) goto L_36046BA8; /* 0x36046B96: je 0x36046ba8 */
   9744 L_36046B98:
   9745     PUSH32(esp, 0x4Cu); /* 0x36046B98: push 0x4c */
   9746     ecx = ebx; /* 0x36046B9A: mov ecx, ebx */
   9747     RECOMP_ICALL(0x36072000u); /* 0x36046B9C: call 0x36072000 */ /* not lifted */
   9748     RECOMP_FLAGS_IN();
   9749     ecx = eax; /* 0x36046BA1: mov ecx, eax */
   9750     RECOMP_ICALL(0x36057990u); /* 0x36046BA3: call 0x36057990 */ /* not lifted */
   9751     RECOMP_FLAGS_IN();
   9752 L_36046BA8:
   9753     ecx = MEM32(ebp + 0x8); /* 0x36046BA8: mov ecx, dword ptr [ebp + 8] */
   9754     RECOMP_ICALL(0x36042130u); /* 0x36046BAB: call 0x36042130 */ /* not lifted */
   9755     RECOMP_FLAGS_IN();
   9756     ecx = eax; /* 0x36046BB0: mov ecx, eax */
   9757     RECOMP_ICALL(0x36008320u); /* 0x36046BB2: call 0x36008320 */ /* not lifted */
   9758     RECOMP_FLAGS_IN();
   9759     /* cmp eax, 6 */ /* 0x36046BB7: cmp eax, 6 */
   9760     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
   9761     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9762     _flag_k = FK_CMP;
   9763     if (CMP_NE(_flag_a, _flag_b)) goto L_36046BD2; /* 0x36046BBA: jne 0x36046bd2 */
   9764 L_36046BBC:
   9765     ecx = MEM32(edi + 0x4); /* 0x36046BBC: mov ecx, dword ptr [edi + 4] */
   9766     RECOMP_ICALL(0x360478D0u); /* 0x36046BBF: call 0x360478d0 */ /* not lifted */
   9767     RECOMP_FLAGS_IN();
   9768     ecx = eax; /* 0x36046BC4: mov ecx, eax */
   9769     RECOMP_ICALL(0x36071DD0u); /* 0x36046BC6: call 0x36071dd0 */ /* not lifted */
   9770     RECOMP_FLAGS_IN();
   9771     ecx = eax; /* 0x36046BCB: mov ecx, eax */
   9772     RECOMP_ICALL(0x3604D970u); /* 0x36046BCD: call 0x3604d970 */ /* not lifted */
   9773     RECOMP_FLAGS_IN();
   9774 L_36046BD2:
   9775     ecx = MEM32(edi + 0x4); /* 0x36046BD2: mov ecx, dword ptr [edi + 4] */
   9776     RECOMP_ICALL(0x360478D0u); /* 0x36046BD5: call 0x360478d0 */ /* not lifted */
   9777     RECOMP_FLAGS_IN();
   9778     esi = eax; /* 0x36046BDA: mov esi, eax */
   9779     ecx = MEM32(esi + 0x174); /* 0x36046BDC: mov ecx, dword ptr [esi + 0x174] */
   9780     RECOMP_ICALL(0x3606C640u); /* 0x36046BE2: call 0x3606c640 */ /* not lifted */
   9781     RECOMP_FLAGS_IN();
   9782     ecx = MEM32(edi + 0x4); /* 0x36046BE7: mov ecx, dword ptr [edi + 4] */
   9783     MEM32(ebp + (-0x8)) = eax; /* 0x36046BEA: mov dword ptr [ebp - 8], eax */
   9784     RECOMP_ICALL(0x360478D0u); /* 0x36046BED: call 0x360478d0 */ /* not lifted */
   9785     RECOMP_FLAGS_IN();
   9786     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046BF2: push -1 */
   9787     edx = ebp + (-0x4); /* 0x36046BF4: lea edx, [ebp - 4] */
   9788     PUSH32(esp, edx); /* 0x36046BF7: push edx */
   9789     edx = MEM32(ebp + (-0x8)); /* 0x36046BF8: mov edx, dword ptr [ebp - 8] */
   9790     PUSH32(esp, 0); /* 0x36046BFB: push 0 */
   9791     PUSH32(esp, 1); /* 0x36046BFD: push 1 */
   9792     PUSH32(esp, 2); /* 0x36046BFF: push 2 */
   9793     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046C01: push -1 */
   9794     PUSH32(esp, 0); /* 0x36046C03: push 0 */
   9795     ebx = eax; /* 0x36046C05: mov ebx, eax */
   9796     PUSH32(esp, 0); /* 0x36046C07: push 0 */
   9797     MEM32(ebp + (-0x4)) = 0; /* 0x36046C09: mov dword ptr [ebp - 4], 0 */
   9798     ecx = MEM32(ebx + 0x174); /* 0x36046C10: mov ecx, dword ptr [ebx + 0x174] */
   9799     eax = MEM32(ecx); /* 0x36046C16: mov eax, dword ptr [ecx] */
   9800     PUSH32(esp, 0x3F800000u); /* 0x36046C18: push 0x3f800000 */
   9801     PUSH32(esp, edx); /* 0x36046C1D: push edx */
   9802     RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36046C1E: call dword ptr [eax + 0x14] */
   9803     RECOMP_FLAGS_IN();
   9804     ecx = MEM32(ebx + 0x174); /* 0x36046C21: mov ecx, dword ptr [ebx + 0x174] */
   9805     MEM8(ecx + 0x5C) = (uint8_t)(0); /* 0x36046C27: mov byte ptr [ecx + 0x5c], 0 */
   9806     edx = MEM32(ebp + (-0x4)); /* 0x36046C2B: mov edx, dword ptr [ebp - 4] */
   9807     ecx = MEM32(edi + 0x4); /* 0x36046C2E: mov ecx, dword ptr [edi + 4] */
   9808     PUSH32(esp, eax); /* 0x36046C31: push eax */
   9809     PUSH32(esp, edx); /* 0x36046C32: push edx */
   9810     RECOMP_ICALL(0x360492F0u); /* 0x36046C33: call 0x360492f0 */ /* not lifted */
   9811     RECOMP_FLAGS_IN();
   9812     edi = MEM32(esi + 0x174); /* 0x36046C38: mov edi, dword ptr [esi + 0x174] */
   9813     eax = ebp + 0xB; /* 0x36046C3E: lea eax, [ebp + 0xb] */
   9814     PUSH32(esp, eax); /* 0x36046C41: push eax */
   9815     PUSH32(esp, 0xD7u); /* 0x36046C42: push 0xd7 */
   9816     ecx = edi; /* 0x36046C47: mov ecx, edi */
   9817     RECOMP_ICALL(0x36050850u); /* 0x36046C49: call 0x36050850 */ /* not lifted */
   9818     RECOMP_FLAGS_IN();
   9819     PUSH32(esp, eax); /* 0x36046C4E: push eax */
   9820     ecx = edi + 0x54; /* 0x36046C4F: lea ecx, [edi + 0x54] */
   9821     RECOMP_ICALL(0x3604E440u); /* 0x36046C52: call 0x3604e440 */ /* not lifted */
   9822     RECOMP_FLAGS_IN();
   9823     ecx = MEM32(esi + 0x174); /* 0x36046C57: mov ecx, dword ptr [esi + 0x174] */
   9824     edx = MEM32(ecx); /* 0x36046C5D: mov edx, dword ptr [ecx] */
   9825     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046C5F: push -1 */
   9826     PUSH32(esp, 0); /* 0x36046C61: push 0 */
   9827     PUSH32(esp, 0); /* 0x36046C63: push 0 */
   9828     PUSH32(esp, 1); /* 0x36046C65: push 1 */
   9829     PUSH32(esp, 1); /* 0x36046C67: push 1 */
   9830     PUSH32(esp, 1); /* 0x36046C69: push 1 */
   9831     PUSH32(esp, 0); /* 0x36046C6B: push 0 */
   9832     PUSH32(esp, 0); /* 0x36046C6D: push 0 */
   9833     PUSH32(esp, 0x3F800000u); /* 0x36046C6F: push 0x3f800000 */
   9834     PUSH32(esp, 0xD5u); /* 0x36046C74: push 0xd5 */
   9835     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36046C79: call dword ptr [edx + 0x14] */
   9836     RECOMP_FLAGS_IN();
   9837     eax = MEM32(esi + 0x174); /* 0x36046C7C: mov eax, dword ptr [esi + 0x174] */
   9838     edi = POP32_VAL(esp); /* 0x36046C82: pop edi */
   9839     esi = POP32_VAL(esp); /* 0x36046C83: pop esi */
   9840     MEM8(eax + 0x5C) = (uint8_t)(1); /* 0x36046C84: mov byte ptr [eax + 0x5c], 1 */
   9841     ebx = POP32_VAL(esp); /* 0x36046C88: pop ebx */
   9842     esp = ebp; /* 0x36046C89: mov esp, ebp */
   9843     ebp = POP32_VAL(esp); /* 0x36046C8B: pop ebp */
   9844     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046C8C: ret 4 */
   9845     RECOMP_REGS_OUT();
   9846 }
   9847 
   9848 void sub_36046C90(void) {
   9849     int _fpu_cmp = 0;
   9850     uint32_t _cf = 0;
   9851     int _df = 1;
   9852     uint32_t _flag_k = FK_NONE;
   9853     uint32_t _flag_a = 0, _flag_b = 0;
   9854     uint32_t _itail_tgt = 0;
   9855     RECOMP_REGS_LOCALS
   9856     RECOMP_ENTER(0x36046C90u);
   9857 
   9858 L_36046C90:
   9859     PUSH32(esp, ebp); /* 0x36046C90: push ebp */
   9860     ebp = esp; /* 0x36046C91: mov ebp, esp */
   9861     PUSH32(esp, ecx); /* 0x36046C93: push ecx */
   9862     PUSH32(esp, ebx); /* 0x36046C94: push ebx */
   9863     PUSH32(esp, esi); /* 0x36046C95: push esi */
   9864     PUSH32(esp, edi); /* 0x36046C96: push edi */
   9865     edi = ecx; /* 0x36046C97: mov edi, ecx */
   9866     ecx = MEM32(edi + 0x4); /* 0x36046C99: mov ecx, dword ptr [edi + 4] */
   9867     RECOMP_ICALL(0x36047E60u); /* 0x36046C9C: call 0x36047e60 */ /* not lifted */
   9868     RECOMP_FLAGS_IN();
   9869     ecx = MEM32(edi + 0x4); /* 0x36046CA1: mov ecx, dword ptr [edi + 4] */
   9870     RECOMP_ICALL(0x360478D0u); /* 0x36046CA4: call 0x360478d0 */ /* not lifted */
   9871     RECOMP_FLAGS_IN();
   9872     ebx = eax; /* 0x36046CA9: mov ebx, eax */
   9873     eax = MEM32(ebx + 0xE4); /* 0x36046CAB: mov eax, dword ptr [ebx + 0xe4] */
   9874     esi = ebx + 0xE4; /* 0x36046CB1: lea esi, [ebx + 0xe4] */
   9875     PUSH32(esp, 0x64u); /* 0x36046CB7: push 0x64 */
   9876     PUSH32(esp, 0x1A9u); /* 0x36046CB9: push 0x1a9 */
   9877     ecx = esi; /* 0x36046CBE: mov ecx, esi */
   9878     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36046CC0: call dword ptr [eax + 8] */
   9879     RECOMP_FLAGS_IN();
   9880     edx = MEM32(esi); /* 0x36046CC3: mov edx, dword ptr [esi] */
   9881     PUSH32(esp, 0); /* 0x36046CC5: push 0 */
   9882     PUSH32(esp, 0x1AEu); /* 0x36046CC7: push 0x1ae */
   9883     ecx = esi; /* 0x36046CCC: mov ecx, esi */
   9884     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36046CCE: call dword ptr [edx + 8] */
   9885     RECOMP_FLAGS_IN();
   9886     ecx = ebx; /* 0x36046CD1: mov ecx, ebx */
   9887     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36046CD3: call dword ptr [0x361700d4] */
   9888     RECOMP_FLAGS_IN();
   9889     /* test LO8(eax), LO8(eax) */ /* 0x36046CD9: test al, al */
   9890     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   9891     _cf = 0;
   9892     _flag_k = FK_NARROW(FK_TEST, 24);
   9893     if (TEST_Z(_flag_a, _flag_b)) goto L_36046CED; /* 0x36046CDB: je 0x36046ced */
   9894 L_36046CDD:
   9895     PUSH32(esp, 0x4Du); /* 0x36046CDD: push 0x4d */
   9896     ecx = ebx; /* 0x36046CDF: mov ecx, ebx */
   9897     RECOMP_ICALL(0x36072000u); /* 0x36046CE1: call 0x36072000 */ /* not lifted */
   9898     RECOMP_FLAGS_IN();
   9899     ecx = eax; /* 0x36046CE6: mov ecx, eax */
   9900     RECOMP_ICALL(0x36057990u); /* 0x36046CE8: call 0x36057990 */ /* not lifted */
   9901     RECOMP_FLAGS_IN();
   9902 L_36046CED:
   9903     ecx = MEM32(edi + 0x4); /* 0x36046CED: mov ecx, dword ptr [edi + 4] */
   9904     RECOMP_ICALL(0x360478D0u); /* 0x36046CF0: call 0x360478d0 */ /* not lifted */
   9905     RECOMP_FLAGS_IN();
   9906     esi = eax; /* 0x36046CF5: mov esi, eax */
   9907     edi = MEM32(esi + 0x174); /* 0x36046CF7: mov edi, dword ptr [esi + 0x174] */
   9908     eax = ebp + (-0x1); /* 0x36046CFD: lea eax, [ebp - 1] */
   9909     PUSH32(esp, eax); /* 0x36046D00: push eax */
   9910     ecx = edi; /* 0x36046D01: mov ecx, edi */
   9911     RECOMP_ICALL(0x3609BF50u); /* 0x36046D03: call 0x3609bf50 */ /* not lifted */
   9912     RECOMP_FLAGS_IN();
   9913     PUSH32(esp, eax); /* 0x36046D08: push eax */
   9914     ecx = edi; /* 0x36046D09: mov ecx, edi */
   9915     RECOMP_ICALL(0x36050850u); /* 0x36046D0B: call 0x36050850 */ /* not lifted */
   9916     RECOMP_FLAGS_IN();
   9917     PUSH32(esp, eax); /* 0x36046D10: push eax */
   9918     ecx = edi + 0x54; /* 0x36046D11: lea ecx, [edi + 0x54] */
   9919     RECOMP_ICALL(0x3604E440u); /* 0x36046D14: call 0x3604e440 */ /* not lifted */
   9920     RECOMP_FLAGS_IN();
   9921     ecx = MEM32(esi + 0x174); /* 0x36046D19: mov ecx, dword ptr [esi + 0x174] */
   9922     edx = MEM32(ecx); /* 0x36046D1F: mov edx, dword ptr [ecx] */
   9923     PUSH32(esp, 0xFFFFFFFFu); /* 0x36046D21: push -1 */
   9924     PUSH32(esp, 0); /* 0x36046D23: push 0 */
   9925     PUSH32(esp, 0); /* 0x36046D25: push 0 */
   9926     PUSH32(esp, 1); /* 0x36046D27: push 1 */
   9927     PUSH32(esp, 1); /* 0x36046D29: push 1 */
   9928     PUSH32(esp, 1); /* 0x36046D2B: push 1 */
   9929     PUSH32(esp, 0); /* 0x36046D2D: push 0 */
   9930     PUSH32(esp, 0); /* 0x36046D2F: push 0 */
   9931     PUSH32(esp, 0x3F800000u); /* 0x36046D31: push 0x3f800000 */
   9932     PUSH32(esp, 0xD6u); /* 0x36046D36: push 0xd6 */
   9933     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36046D3B: call dword ptr [edx + 0x14] */
   9934     RECOMP_FLAGS_IN();
   9935     eax = MEM32(esi + 0x174); /* 0x36046D3E: mov eax, dword ptr [esi + 0x174] */
   9936     edi = POP32_VAL(esp); /* 0x36046D44: pop edi */
   9937     esi = POP32_VAL(esp); /* 0x36046D45: pop esi */
   9938     MEM8(eax + 0x5C) = (uint8_t)(1); /* 0x36046D46: mov byte ptr [eax + 0x5c], 1 */
   9939     ebx = POP32_VAL(esp); /* 0x36046D4A: pop ebx */
   9940     esp = ebp; /* 0x36046D4B: mov esp, ebp */
   9941     ebp = POP32_VAL(esp); /* 0x36046D4D: pop ebp */
   9942     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046D4E: ret 4 */
   9943     RECOMP_REGS_OUT();
   9944 }
   9945 
   9946 void sub_36046D60(void) {
   9947     int _fpu_cmp = 0;
   9948     uint32_t _cf = 0;
   9949     int _df = 1;
   9950     uint32_t _flag_k = FK_NONE;
   9951     uint32_t _flag_a = 0, _flag_b = 0;
   9952     uint32_t _itail_tgt = 0;
   9953     RECOMP_REGS_LOCALS
   9954     RECOMP_ENTER(0x36046D60u);
   9955 
   9956 L_36046D60:
   9957     PUSH32(esp, ebp); /* 0x36046D60: push ebp */
   9958     ebp = esp; /* 0x36046D61: mov ebp, esp */
   9959     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   9960     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9961     esp = esp - 0x28u; /* 0x36046D63: sub esp, 0x28 */
   9962     _flag_k = FK_CMP;
   9963     PUSH32(esp, ebx); /* 0x36046D66: push ebx */
   9964     PUSH32(esp, esi); /* 0x36046D67: push esi */
   9965     esi = ecx; /* 0x36046D68: mov esi, ecx */
   9966     ecx = MEM32(esi + 0x4); /* 0x36046D6A: mov ecx, dword ptr [esi + 4] */
   9967     RECOMP_ICALL(MEM32(0x36170344)); /* 0x36046D6D: call dword ptr [0x36170344] */
   9968     RECOMP_FLAGS_IN();
   9969     ecx = MEM32(esi + 0x4); /* 0x36046D73: mov ecx, dword ptr [esi + 4] */
   9970     RECOMP_ICALL(0x360478D0u); /* 0x36046D76: call 0x360478d0 */ /* not lifted */
   9971     RECOMP_FLAGS_IN();
   9972     ebx = eax; /* 0x36046D7B: mov ebx, eax */
   9973     ecx = ebx; /* 0x36046D7D: mov ecx, ebx */
   9974     RECOMP_ICALL(MEM32(0x3616FC38)); /* 0x36046D7F: call dword ptr [0x3616fc38] */
   9975     RECOMP_FLAGS_IN();
   9976     ecx = MEM32(esi + 0x4); /* 0x36046D85: mov ecx, dword ptr [esi + 4] */
   9977     RECOMP_ICALL(0x360492C0u); /* 0x36046D88: call 0x360492c0 */ /* not lifted */
   9978     RECOMP_FLAGS_IN();
   9979     ecx = MEM32(ebp + 0x8); /* 0x36046D8D: mov ecx, dword ptr [ebp + 8] */
   9980     RECOMP_ICALL(0x36042130u); /* 0x36046D90: call 0x36042130 */ /* not lifted */
   9981     RECOMP_FLAGS_IN();
   9982     ecx = eax; /* 0x36046D95: mov ecx, eax */
   9983     RECOMP_ICALL(0x36008320u); /* 0x36046D97: call 0x36008320 */ /* not lifted */
   9984     RECOMP_FLAGS_IN();
   9985     /* cmp eax, 7 */ /* 0x36046D9C: cmp eax, 7 */
   9986     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
   9987     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   9988     _flag_k = FK_CMP;
   9989     if (CMP_NE(_flag_a, _flag_b)) goto L_36046E5F; /* 0x36046D9F: jne 0x36046e5f */
   9990 L_36046DA5:
   9991     edx = MEM32(ebx + 0x118); /* 0x36046DA5: mov edx, dword ptr [ebx + 0x118] */
   9992     PUSH32(esp, edi); /* 0x36046DAB: push edi */
   9993     edi = ebx + 0xE4; /* 0x36046DAC: lea edi, [ebx + 0xe4] */
   9994     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xDFFFFFFFu);
   9995     edx = edx & 0xDFFFFFFFu; /* 0x36046DB2: and edx, 0xdfffffff */
   9996     _cf = 0;
   9997     _flag_k = FK_TEST;
   9998     eax = edx; /* 0x36046DB8: mov eax, edx */
   9999     PUSH32(esp, eax); /* 0x36046DBA: push eax */
  10000     MEM32(edi + 0x34) = edx; /* 0x36046DBB: mov dword ptr [edi + 0x34], edx */
  10001     edx = MEM32(edi); /* 0x36046DBE: mov edx, dword ptr [edi] */
  10002     PUSH32(esp, 0); /* 0x36046DC0: push 0 */
  10003     ecx = edi; /* 0x36046DC2: mov ecx, edi */
  10004     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36046DC4: call dword ptr [edx + 8] */
  10005     RECOMP_FLAGS_IN();
  10006     ecx = MEM32(esi + 0x4); /* 0x36046DC7: mov ecx, dword ptr [esi + 4] */
  10007     RECOMP_ICALL(MEM32(0x36170364)); /* 0x36046DCA: call dword ptr [0x36170364] */
  10008     RECOMP_FLAGS_IN();
  10009     eax = MEM32(esi + 0x4); /* 0x36046DD0: mov eax, dword ptr [esi + 4] */
  10010     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u);
  10011     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10012     eax = eax + 0x54u; /* 0x36046DD3: add eax, 0x54 */
  10013     _flag_k = FK_ADD;
  10014     MEM32(ebp + (-0x10)) = 0; /* 0x36046DD6: mov dword ptr [ebp - 0x10], 0 */
  10015     MEM32(ebp + (-0xC)) = 0x3DCCCCCDu; /* 0x36046DDD: mov dword ptr [ebp - 0xc], 0x3dcccccd */
  10016     MEM32(ebp + (-0x8)) = 0; /* 0x36046DE4: mov dword ptr [ebp - 8], 0 */
  10017     ecx = MEM32(eax); /* 0x36046DEB: mov ecx, dword ptr [eax] */
  10018     edx = MEM32(eax + 0x4); /* 0x36046DED: mov edx, dword ptr [eax + 4] */
  10019     eax = MEM32(eax + 0x8); /* 0x36046DF0: mov eax, dword ptr [eax + 8] */
  10020     MEM32(ebp + (-0x1C)) = ecx; /* 0x36046DF3: mov dword ptr [ebp - 0x1c], ecx */
  10021     ecx = ebp + (-0x10); /* 0x36046DF6: lea ecx, [ebp - 0x10] */
  10022     PUSH32(esp, ecx); /* 0x36046DF9: push ecx */
  10023     ecx = ebp + (-0x1C); /* 0x36046DFA: lea ecx, [ebp - 0x1c] */
  10024     MEM32(ebp + (-0x18)) = edx; /* 0x36046DFD: mov dword ptr [ebp - 0x18], edx */
  10025     MEM32(ebp + (-0x14)) = eax; /* 0x36046E00: mov dword ptr [ebp - 0x14], eax */
  10026     RECOMP_ICALL(MEM32(0x36170178)); /* 0x36046E03: call dword ptr [0x36170178] */
  10027     RECOMP_FLAGS_IN();
  10028     edx = MEM32(eax); /* 0x36046E09: mov edx, dword ptr [eax] */
  10029     MEM32(ebp + (-0x28)) = edx; /* 0x36046E0B: mov dword ptr [ebp - 0x28], edx */
  10030     ecx = MEM32(eax + 0x4); /* 0x36046E0E: mov ecx, dword ptr [eax + 4] */
  10031     MEM32(ebp + (-0x24)) = ecx; /* 0x36046E11: mov dword ptr [ebp - 0x24], ecx */
  10032     edx = MEM32(eax + 0x8); /* 0x36046E14: mov edx, dword ptr [eax + 8] */
  10033     ecx = MEM32(esi + 0x4); /* 0x36046E17: mov ecx, dword ptr [esi + 4] */
  10034     eax = ebp + (-0x28); /* 0x36046E1A: lea eax, [ebp - 0x28] */
  10035     PUSH32(esp, eax); /* 0x36046E1D: push eax */
  10036     MEM32(ebp + (-0x20)) = edx; /* 0x36046E1E: mov dword ptr [ebp - 0x20], edx */
  10037     RECOMP_ICALL(MEM32(0x36170360)); /* 0x36046E21: call dword ptr [0x36170360] */
  10038     RECOMP_FLAGS_IN();
  10039     ecx = MEM32(esi + 0x4); /* 0x36046E27: mov ecx, dword ptr [esi + 4] */
  10040     edx = MEM32(ecx); /* 0x36046E2A: mov edx, dword ptr [ecx] */
  10041     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x36046E2C: call dword ptr [edx + 0x80] */
  10042     RECOMP_FLAGS_IN();
  10043     /* test LO8(eax), LO8(eax) */ /* 0x36046E32: test al, al */
  10044     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10045     _cf = 0;
  10046     _flag_k = FK_NARROW(FK_TEST, 24);
  10047     if (TEST_Z(_flag_a, _flag_b)) goto L_36046E40; /* 0x36046E34: je 0x36046e40 */
  10048 L_36046E36:
  10049     ecx = MEM32(esi + 0x4); /* 0x36046E36: mov ecx, dword ptr [esi + 4] */
  10050     PUSH32(esp, 0); /* 0x36046E39: push 0 */
  10051     RECOMP_ICALL(0x3604BD20u); /* 0x36046E3B: call 0x3604bd20 */ /* not lifted */
  10052     RECOMP_FLAGS_IN();
  10053 L_36046E40:
  10054     eax = MEM32(esi + 0x4); /* 0x36046E40: mov eax, dword ptr [esi + 4] */
  10055     edx = MEM32(edi); /* 0x36046E43: mov edx, dword ptr [edi] */
  10056     PUSH32(esp, 2); /* 0x36046E45: push 2 */
  10057     PUSH32(esp, 0xC5u); /* 0x36046E47: push 0xc5 */
  10058     ecx = edi; /* 0x36046E4C: mov ecx, edi */
  10059     MEM32(ebp + (-0x4)) = eax; /* 0x36046E4E: mov dword ptr [ebp - 4], eax */
  10060     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36046E51: call dword ptr [edx + 4] */
  10061     RECOMP_FLAGS_IN();
  10062     ecx = MEM32(ebp + (-0x4)); /* 0x36046E54: mov ecx, dword ptr [ebp - 4] */
  10063     PUSH32(esp, eax); /* 0x36046E57: push eax */
  10064     RECOMP_ICALL(MEM32(0x36170238)); /* 0x36046E58: call dword ptr [0x36170238] */
  10065     RECOMP_FLAGS_IN();
  10066     edi = POP32_VAL(esp); /* 0x36046E5E: pop edi */
  10067 L_36046E5F:
  10068     ecx = MEM32(esi + 0x4); /* 0x36046E5F: mov ecx, dword ptr [esi + 4] */
  10069     PUSH32(esp, 1); /* 0x36046E62: push 1 */
  10070     RECOMP_ICALL(MEM32(0x36170348)); /* 0x36046E64: call dword ptr [0x36170348] */
  10071     RECOMP_FLAGS_IN();
  10072     ecx = MEM32(esi + 0x4); /* 0x36046E6A: mov ecx, dword ptr [esi + 4] */
  10073     eax = MEM32(ecx); /* 0x36046E6D: mov eax, dword ptr [ecx] */
  10074     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x36046E6F: call dword ptr [eax + 0x80] */
  10075     RECOMP_FLAGS_IN();
  10076     /* test LO8(eax), LO8(eax) */ /* 0x36046E75: test al, al */
  10077     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10078     _cf = 0;
  10079     _flag_k = FK_NARROW(FK_TEST, 24);
  10080     if (TEST_Z(_flag_a, _flag_b)) goto L_36046E97; /* 0x36046E77: je 0x36046e97 */
  10081 L_36046E79:
  10082     ecx = MEM32(esi + 0x4); /* 0x36046E79: mov ecx, dword ptr [esi + 4] */
  10083     PUSH32(esp, 0); /* 0x36046E7C: push 0 */
  10084     RECOMP_ICALL(0x3604BCA0u); /* 0x36046E7E: call 0x3604bca0 */ /* not lifted */
  10085     RECOMP_FLAGS_IN();
  10086     ecx = MEM32(esi + 0x4); /* 0x36046E83: mov ecx, dword ptr [esi + 4] */
  10087     PUSH32(esp, 0); /* 0x36046E86: push 0 */
  10088     RECOMP_ICALL(0x3604BCC0u); /* 0x36046E88: call 0x3604bcc0 */ /* not lifted */
  10089     RECOMP_FLAGS_IN();
  10090     ecx = MEM32(esi + 0x4); /* 0x36046E8D: mov ecx, dword ptr [esi + 4] */
  10091     PUSH32(esp, 0); /* 0x36046E90: push 0 */
  10092     RECOMP_ICALL(0x3604BCB0u); /* 0x36046E92: call 0x3604bcb0 */ /* not lifted */
  10093     RECOMP_FLAGS_IN();
  10094 L_36046E97:
  10095     ecx = MEM32(ebp + 0x8); /* 0x36046E97: mov ecx, dword ptr [ebp + 8] */
  10096     RECOMP_ICALL(0x36042130u); /* 0x36046E9A: call 0x36042130 */ /* not lifted */
  10097     RECOMP_FLAGS_IN();
  10098     ecx = eax; /* 0x36046E9F: mov ecx, eax */
  10099     RECOMP_ICALL(0x36008320u); /* 0x36046EA1: call 0x36008320 */ /* not lifted */
  10100     RECOMP_FLAGS_IN();
  10101     /* cmp eax, 6 */ /* 0x36046EA6: cmp eax, 6 */
  10102     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  10103     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10104     _flag_k = FK_CMP;
  10105     if (CMP_NE(_flag_a, _flag_b)) goto L_36046EB9; /* 0x36046EA9: jne 0x36046eb9 */
  10106 L_36046EAB:
  10107     ecx = ebx; /* 0x36046EAB: mov ecx, ebx */
  10108     RECOMP_ICALL(0x36071DD0u); /* 0x36046EAD: call 0x36071dd0 */ /* not lifted */
  10109     RECOMP_FLAGS_IN();
  10110     ecx = eax; /* 0x36046EB2: mov ecx, eax */
  10111     RECOMP_ICALL(0x3604D970u); /* 0x36046EB4: call 0x3604d970 */ /* not lifted */
  10112     RECOMP_FLAGS_IN();
  10113 L_36046EB9:
  10114     ecx = MEM32(esi + 0x4); /* 0x36046EB9: mov ecx, dword ptr [esi + 4] */
  10115     RECOMP_ICALL(0x360478D0u); /* 0x36046EBC: call 0x360478d0 */ /* not lifted */
  10116     RECOMP_FLAGS_IN();
  10117     PUSH32(esp, eax); /* 0x36046EC1: push eax */
  10118     RECOMP_ICALL(0x36044470u); /* 0x36046EC2: call 0x36044470 */ /* not lifted */
  10119     RECOMP_FLAGS_IN();
  10120     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10121     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10122     esp = esp + 4; /* 0x36046EC7: add esp, 4 */
  10123     _flag_k = FK_ADD;
  10124     esi = POP32_VAL(esp); /* 0x36046ECA: pop esi */
  10125     ebx = POP32_VAL(esp); /* 0x36046ECB: pop ebx */
  10126     esp = ebp; /* 0x36046ECC: mov esp, ebp */
  10127     ebp = POP32_VAL(esp); /* 0x36046ECE: pop ebp */
  10128     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046ECF: ret 4 */
  10129     RECOMP_REGS_OUT();
  10130 }
  10131 
  10132 void sub_36046EE0(void) {
  10133     int _fpu_cmp = 0;
  10134     uint32_t _cf = 0;
  10135     int _df = 1;
  10136     uint32_t _flag_k = FK_NONE;
  10137     uint32_t _flag_a = 0, _flag_b = 0;
  10138     uint32_t _itail_tgt = 0;
  10139     RECOMP_REGS_LOCALS
  10140     RECOMP_ENTER(0x36046EE0u);
  10141 
  10142 L_36046EE0:
  10143     PUSH32(esp, ebp); /* 0x36046EE0: push ebp */
  10144     ebp = esp; /* 0x36046EE1: mov ebp, esp */
  10145     PUSH32(esp, esi); /* 0x36046EE3: push esi */
  10146     esi = ecx; /* 0x36046EE4: mov esi, ecx */
  10147     ecx = MEM32(esi + 0x4); /* 0x36046EE6: mov ecx, dword ptr [esi + 4] */
  10148     PUSH32(esp, edi); /* 0x36046EE9: push edi */
  10149     RECOMP_ICALL(0x36047E60u); /* 0x36046EEA: call 0x36047e60 */ /* not lifted */
  10150     RECOMP_FLAGS_IN();
  10151     ecx = MEM32(esi + 0x4); /* 0x36046EEF: mov ecx, dword ptr [esi + 4] */
  10152     RECOMP_ICALL(0x360478D0u); /* 0x36046EF2: call 0x360478d0 */ /* not lifted */
  10153     RECOMP_FLAGS_IN();
  10154     edi = eax; /* 0x36046EF7: mov edi, eax */
  10155     eax = MEM32(edi + 0xE4); /* 0x36046EF9: mov eax, dword ptr [edi + 0xe4] */
  10156     esi = edi + 0xE4; /* 0x36046EFF: lea esi, [edi + 0xe4] */
  10157     PUSH32(esp, 0x64u); /* 0x36046F05: push 0x64 */
  10158     PUSH32(esp, 0x1A9u); /* 0x36046F07: push 0x1a9 */
  10159     ecx = esi; /* 0x36046F0C: mov ecx, esi */
  10160     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36046F0E: call dword ptr [eax + 8] */
  10161     RECOMP_FLAGS_IN();
  10162     edx = MEM32(esi); /* 0x36046F11: mov edx, dword ptr [esi] */
  10163     PUSH32(esp, 0); /* 0x36046F13: push 0 */
  10164     PUSH32(esp, 0x1AEu); /* 0x36046F15: push 0x1ae */
  10165     ecx = esi; /* 0x36046F1A: mov ecx, esi */
  10166     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36046F1C: call dword ptr [edx + 8] */
  10167     RECOMP_FLAGS_IN();
  10168     ecx = edi; /* 0x36046F1F: mov ecx, edi */
  10169     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36046F21: call dword ptr [0x361700d4] */
  10170     RECOMP_FLAGS_IN();
  10171     /* test LO8(eax), LO8(eax) */ /* 0x36046F27: test al, al */
  10172     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10173     _cf = 0;
  10174     _flag_k = FK_NARROW(FK_TEST, 24);
  10175     if (TEST_Z(_flag_a, _flag_b)) goto L_36046F3B; /* 0x36046F29: je 0x36046f3b */
  10176 L_36046F2B:
  10177     PUSH32(esp, 0x4Du); /* 0x36046F2B: push 0x4d */
  10178     ecx = edi; /* 0x36046F2D: mov ecx, edi */
  10179     RECOMP_ICALL(0x36072000u); /* 0x36046F2F: call 0x36072000 */ /* not lifted */
  10180     RECOMP_FLAGS_IN();
  10181     ecx = eax; /* 0x36046F34: mov ecx, eax */
  10182     RECOMP_ICALL(0x36057990u); /* 0x36046F36: call 0x36057990 */ /* not lifted */
  10183     RECOMP_FLAGS_IN();
  10184 L_36046F3B:
  10185     eax = MEM32(ebp + 0x8); /* 0x36046F3B: mov eax, dword ptr [ebp + 8] */
  10186     PUSH32(esp, eax); /* 0x36046F3E: push eax */
  10187     RECOMP_ICALL(0x3610BA00u); /* 0x36046F3F: call 0x3610ba00 */ /* not lifted */
  10188     RECOMP_FLAGS_IN();
  10189     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10191     esp = esp + 4; /* 0x36046F44: add esp, 4 */
  10192     _flag_k = FK_ADD;
  10193     edi = POP32_VAL(esp); /* 0x36046F47: pop edi */
  10194     esi = POP32_VAL(esp); /* 0x36046F48: pop esi */
  10195     ebp = POP32_VAL(esp); /* 0x36046F49: pop ebp */
  10196     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36046F4A: ret 4 */
  10197     RECOMP_REGS_OUT();
  10198 }
  10199 
  10200 void sub_36046F50(void) {
  10201     int _fpu_cmp = 0;
  10202     uint32_t _cf = 0;
  10203     int _df = 1;
  10204     uint32_t _flag_k = FK_NONE;
  10205     uint32_t _flag_a = 0, _flag_b = 0;
  10206     uint32_t _itail_tgt = 0;
  10207     RECOMP_REGS_LOCALS
  10208     RECOMP_ENTER(0x36046F50u);
  10209 
  10210 L_36046F50:
  10211     MEM32(ecx) = 0x36170D60u; /* 0x36046F50: mov dword ptr [ecx], 0x36170d60 */
  10212     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36046F56: ret  */
  10213     RECOMP_REGS_OUT();
  10214 }
  10215 
  10216 void sub_36046F60(void) {
  10217     int _fpu_cmp = 0;
  10218     uint32_t _cf = 0;
  10219     int _df = 1;
  10220     uint32_t _flag_k = FK_NONE;
  10221     uint32_t _flag_a = 0, _flag_b = 0;
  10222     uint32_t _itail_tgt = 0;
  10223     RECOMP_REGS_LOCALS
  10224     RECOMP_ENTER(0x36046F60u);
  10225 
  10226 L_36046F60:
  10227     RECOMP_ICALL(0x360F1670u); /* 0x36046F60: call 0x360f1670 */ /* not lifted */
  10228     RECOMP_FLAGS_IN();
  10229     /* cmp eax, 5 */ /* 0x36046F65: cmp eax, 5 */
  10230     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5);
  10231     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10232     _flag_k = FK_CMP;
  10233     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36046F68: sete al */
  10234     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36046F6B: ret  */
  10235     RECOMP_REGS_OUT();
  10236 }
  10237 
  10238 void sub_36046F70(void) {
  10239     int _fpu_cmp = 0;
  10240     uint32_t _cf = 0;
  10241     int _df = 1;
  10242     uint32_t _flag_k = FK_NONE;
  10243     uint32_t _flag_a = 0, _flag_b = 0;
  10244     uint32_t _itail_tgt = 0;
  10245     RECOMP_REGS_LOCALS
  10246     RECOMP_ENTER(0x36046F70u);
  10247 
  10248 L_36046F70:
  10249     RECOMP_ICALL(0x3609BF50u); /* 0x36046F70: call 0x3609bf50 */ /* not lifted */
  10250     RECOMP_FLAGS_IN();
  10251     /* cmp eax, 3 */ /* 0x36046F75: cmp eax, 3 */
  10252     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10253     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10254     _flag_k = FK_CMP;
  10255     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36046F78: sete al */
  10256     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36046F7B: ret  */
  10257     RECOMP_REGS_OUT();
  10258 }
  10259 
  10260 void sub_36046F80(void) {
  10261     int _fpu_cmp = 0;
  10262     uint32_t _cf = 0;
  10263     int _df = 1;
  10264     uint32_t _flag_k = FK_NONE;
  10265     uint32_t _flag_a = 0, _flag_b = 0;
  10266     uint32_t _itail_tgt = 0;
  10267     RECOMP_REGS_LOCALS
  10268     RECOMP_ENTER(0x36046F80u);
  10269 
  10270 L_36046F80:
  10271     PUSH32(esp, ebx); /* 0x36046F80: push ebx */
  10272     PUSH32(esp, esi); /* 0x36046F81: push esi */
  10273     ebx = ecx; /* 0x36046F82: mov ebx, ecx */
  10274     RECOMP_ICALL(0x360C5490u); /* 0x36046F84: call 0x360c5490 */ /* not lifted */
  10275     RECOMP_FLAGS_IN();
  10276     ecx = eax; /* 0x36046F89: mov ecx, eax */
  10277     RECOMP_ICALL(0x360478D0u); /* 0x36046F8B: call 0x360478d0 */ /* not lifted */
  10278     RECOMP_FLAGS_IN();
  10279     ecx = ebx; /* 0x36046F90: mov ecx, ebx */
  10280     esi = eax; /* 0x36046F92: mov esi, eax */
  10281     RECOMP_ICALL(0x36008320u); /* 0x36046F94: call 0x36008320 */ /* not lifted */
  10282     RECOMP_FLAGS_IN();
  10283     /* cmp eax, 8 */ /* 0x36046F99: cmp eax, 8 */
  10284     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
  10285     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10286     _flag_k = FK_CMP;
  10287     if (CMP_NE(_flag_a, _flag_b)) goto L_36047013; /* 0x36046F9C: jne 0x36047013 */
  10288 L_36046F9E:
  10289     eax = MEM32(esi + 0xE4); /* 0x36046F9E: mov eax, dword ptr [esi + 0xe4] */
  10290     PUSH32(esp, edi); /* 0x36046FA4: push edi */
  10291     edi = esi + 0xE4; /* 0x36046FA5: lea edi, [esi + 0xe4] */
  10292     PUSH32(esp, 0x19u); /* 0x36046FAB: push 0x19 */
  10293     PUSH32(esp, 0x1A9u); /* 0x36046FAD: push 0x1a9 */
  10294     ecx = edi; /* 0x36046FB2: mov ecx, edi */
  10295     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36046FB4: call dword ptr [eax + 8] */
  10296     RECOMP_FLAGS_IN();
  10297     edx = MEM32(edi); /* 0x36046FB7: mov edx, dword ptr [edi] */
  10298     PUSH32(esp, 2); /* 0x36046FB9: push 2 */
  10299     PUSH32(esp, 0x1AEu); /* 0x36046FBB: push 0x1ae */
  10300     ecx = edi; /* 0x36046FC0: mov ecx, edi */
  10301     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36046FC2: call dword ptr [edx + 8] */
  10302     RECOMP_FLAGS_IN();
  10303     ecx = esi; /* 0x36046FC5: mov ecx, esi */
  10304     RECOMP_ICALL(0x36071DD0u); /* 0x36046FC7: call 0x36071dd0 */ /* not lifted */
  10305     RECOMP_FLAGS_IN();
  10306     ecx = eax; /* 0x36046FCC: mov ecx, eax */
  10307     RECOMP_ICALL(0x3604D970u); /* 0x36046FCE: call 0x3604d970 */ /* not lifted */
  10308     RECOMP_FLAGS_IN();
  10309     ecx = esi; /* 0x36046FD3: mov ecx, esi */
  10310     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x36046FD5: call dword ptr [0x361700d4] */
  10311     RECOMP_FLAGS_IN();
  10312     /* test LO8(eax), LO8(eax) */ /* 0x36046FDB: test al, al */
  10313     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10314     _cf = 0;
  10315     _flag_k = FK_NARROW(FK_TEST, 24);
  10316     edi = POP32_VAL(esp); /* 0x36046FDD: pop edi */
  10317     if (TEST_Z(_flag_a, _flag_b)) goto L_36047116; /* 0x36046FDE: je 0x36047116 */
  10318 L_36046FE4:
  10319     PUSH32(esp, 0x4Cu); /* 0x36046FE4: push 0x4c */
  10320     ecx = esi; /* 0x36046FE6: mov ecx, esi */
  10321     RECOMP_ICALL(0x36072000u); /* 0x36046FE8: call 0x36072000 */ /* not lifted */
  10322     RECOMP_FLAGS_IN();
  10323     ecx = eax; /* 0x36046FED: mov ecx, eax */
  10324     RECOMP_ICALL(0x36057990u); /* 0x36046FEF: call 0x36057990 */ /* not lifted */
  10325     RECOMP_FLAGS_IN();
  10326     /* cmp MEM32(ebx + 0x30), 2 */ /* 0x36046FF4: cmp dword ptr [ebx + 0x30], 2 */
  10327     _flag_a = (uint32_t)(MEM32(ebx + 0x30)); _flag_b = (uint32_t)(2);
  10328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10329     _flag_k = FK_CMP;
  10330     if (CMP_EQ(_flag_a, _flag_b)) goto L_360470D0; /* 0x36046FF8: je 0x360470d0 */
  10331 L_36046FFE:
  10332     PUSH32(esp, 0x12u); /* 0x36046FFE: push 0x12 */
  10333     ecx = esi; /* 0x36047000: mov ecx, esi */
  10334     RECOMP_ICALL(0x36072000u); /* 0x36047002: call 0x36072000 */ /* not lifted */
  10335     RECOMP_FLAGS_IN();
  10336     ecx = eax; /* 0x36047007: mov ecx, eax */
  10337     RECOMP_ICALL(0x36057990u); /* 0x36047009: call 0x36057990 */ /* not lifted */
  10338     RECOMP_FLAGS_IN();
  10339     goto L_36047116; /* 0x3604700E: jmp 0x36047116 */
  10340 L_36047013:
  10341     ecx = ebx; /* 0x36047013: mov ecx, ebx */
  10342     RECOMP_ICALL(0x36008320u); /* 0x36047015: call 0x36008320 */ /* not lifted */
  10343     RECOMP_FLAGS_IN();
  10344     /* cmp eax, 3 */ /* 0x3604701A: cmp eax, 3 */
  10345     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
  10346     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10347     _flag_k = FK_CMP;
  10348     if (CMP_NE(_flag_a, _flag_b)) goto L_36047041; /* 0x3604701D: jne 0x36047041 */
  10349 L_3604701F:
  10350     ecx = esi; /* 0x3604701F: mov ecx, esi */
  10351     RECOMP_ICALL(0x36071DD0u); /* 0x36047021: call 0x36071dd0 */ /* not lifted */
  10352     RECOMP_FLAGS_IN();
  10353     ecx = eax; /* 0x36047026: mov ecx, eax */
  10354     RECOMP_ICALL(0x3604D970u); /* 0x36047028: call 0x3604d970 */ /* not lifted */
  10355     RECOMP_FLAGS_IN();
  10356     ecx = esi; /* 0x3604702D: mov ecx, esi */
  10357     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x3604702F: call dword ptr [0x361700d4] */
  10358     RECOMP_FLAGS_IN();
  10359     /* test LO8(eax), LO8(eax) */ /* 0x36047035: test al, al */
  10360     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10361     _cf = 0;
  10362     _flag_k = FK_NARROW(FK_TEST, 24);
  10363     if (TEST_Z(_flag_a, _flag_b)) goto L_36047116; /* 0x36047037: je 0x36047116 */
  10364 L_3604703D:
  10365     PUSH32(esp, 0x12u); /* 0x3604703D: push 0x12 */
  10366     goto L_3604706D; /* 0x3604703F: jmp 0x3604706d */
  10367 L_36047041:
  10368     ecx = ebx; /* 0x36047041: mov ecx, ebx */
  10369     RECOMP_ICALL(0x36008320u); /* 0x36047043: call 0x36008320 */ /* not lifted */
  10370     RECOMP_FLAGS_IN();
  10371     /* cmp eax, 2 */ /* 0x36047048: cmp eax, 2 */
  10372     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
  10373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10374     _flag_k = FK_CMP;
  10375     if (CMP_NE(_flag_a, _flag_b)) goto L_36047090; /* 0x3604704B: jne 0x36047090 */
  10376 L_3604704D:
  10377     ecx = esi; /* 0x3604704D: mov ecx, esi */
  10378     RECOMP_ICALL(0x36071DD0u); /* 0x3604704F: call 0x36071dd0 */ /* not lifted */
  10379     RECOMP_FLAGS_IN();
  10380     ecx = eax; /* 0x36047054: mov ecx, eax */
  10381     RECOMP_ICALL(0x3604D970u); /* 0x36047056: call 0x3604d970 */ /* not lifted */
  10382     RECOMP_FLAGS_IN();
  10383     ecx = esi; /* 0x3604705B: mov ecx, esi */
  10384     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x3604705D: call dword ptr [0x361700d4] */
  10385     RECOMP_FLAGS_IN();
  10386     /* test LO8(eax), LO8(eax) */ /* 0x36047063: test al, al */
  10387     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10388     _cf = 0;
  10389     _flag_k = FK_NARROW(FK_TEST, 24);
  10390     if (TEST_Z(_flag_a, _flag_b)) goto L_36047116; /* 0x36047065: je 0x36047116 */
  10391 L_3604706B:
  10392     PUSH32(esp, 0x11u); /* 0x3604706B: push 0x11 */
  10393 L_3604706D:
  10394     ecx = esi; /* 0x3604706D: mov ecx, esi */
  10395     RECOMP_ICALL(0x36072000u); /* 0x3604706F: call 0x36072000 */ /* not lifted */
  10396     RECOMP_FLAGS_IN();
  10397     ecx = eax; /* 0x36047074: mov ecx, eax */
  10398     RECOMP_ICALL(0x36057990u); /* 0x36047076: call 0x36057990 */ /* not lifted */
  10399     RECOMP_FLAGS_IN();
  10400     PUSH32(esp, 0x4Du); /* 0x3604707B: push 0x4d */
  10401     ecx = esi; /* 0x3604707D: mov ecx, esi */
  10402     RECOMP_ICALL(0x36072000u); /* 0x3604707F: call 0x36072000 */ /* not lifted */
  10403     RECOMP_FLAGS_IN();
  10404     ecx = eax; /* 0x36047084: mov ecx, eax */
  10405     RECOMP_ICALL(0x36057990u); /* 0x36047086: call 0x36057990 */ /* not lifted */
  10406     RECOMP_FLAGS_IN();
  10407     goto L_36047116; /* 0x3604708B: jmp 0x36047116 */
  10408 L_36047090:
  10409     ecx = ebx; /* 0x36047090: mov ecx, ebx */
  10410     RECOMP_ICALL(0x36008320u); /* 0x36047092: call 0x36008320 */ /* not lifted */
  10411     RECOMP_FLAGS_IN();
  10412     /* cmp eax, 6 */ /* 0x36047097: cmp eax, 6 */
  10413     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6);
  10414     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10415     _flag_k = FK_CMP;
  10416     if (CMP_NE(_flag_a, _flag_b)) goto L_360470E2; /* 0x3604709A: jne 0x360470e2 */
  10417 L_3604709C:
  10418     ecx = esi; /* 0x3604709C: mov ecx, esi */
  10419     RECOMP_ICALL(0x36071DD0u); /* 0x3604709E: call 0x36071dd0 */ /* not lifted */
  10420     RECOMP_FLAGS_IN();
  10421     ecx = eax; /* 0x360470A3: mov ecx, eax */
  10422     RECOMP_ICALL(0x3604D910u); /* 0x360470A5: call 0x3604d910 */ /* not lifted */
  10423     RECOMP_FLAGS_IN();
  10424     ecx = esi; /* 0x360470AA: mov ecx, esi */
  10425     RECOMP_ICALL(MEM32(0x361700D4)); /* 0x360470AC: call dword ptr [0x361700d4] */
  10426     RECOMP_FLAGS_IN();
  10427     /* test LO8(eax), LO8(eax) */ /* 0x360470B2: test al, al */
  10428     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10429     _cf = 0;
  10430     _flag_k = FK_NARROW(FK_TEST, 24);
  10431     if (TEST_Z(_flag_a, _flag_b)) goto L_36047116; /* 0x360470B4: je 0x36047116 */
  10432 L_360470B6:
  10433     PUSH32(esp, 0x4Du); /* 0x360470B6: push 0x4d */
  10434     ecx = esi; /* 0x360470B8: mov ecx, esi */
  10435     RECOMP_ICALL(0x36072000u); /* 0x360470BA: call 0x36072000 */ /* not lifted */
  10436     RECOMP_FLAGS_IN();
  10437     ecx = eax; /* 0x360470BF: mov ecx, eax */
  10438     RECOMP_ICALL(0x36057990u); /* 0x360470C1: call 0x36057990 */ /* not lifted */
  10439     RECOMP_FLAGS_IN();
  10440     /* cmp MEM32(ebx + 0x30), 2 */ /* 0x360470C6: cmp dword ptr [ebx + 0x30], 2 */
  10441     _flag_a = (uint32_t)(MEM32(ebx + 0x30)); _flag_b = (uint32_t)(2);
  10442     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10443     _flag_k = FK_CMP;
  10444     RECOMP_BACKEDGE();
  10445     if (CMP_NE(_flag_a, _flag_b)) goto L_36046FFE; /* 0x360470CA: jne 0x36046ffe */
  10446 L_360470D0:
  10447     PUSH32(esp, 0x11u); /* 0x360470D0: push 0x11 */
  10448     ecx = esi; /* 0x360470D2: mov ecx, esi */
  10449     RECOMP_ICALL(0x36072000u); /* 0x360470D4: call 0x36072000 */ /* not lifted */
  10450     RECOMP_FLAGS_IN();
  10451     ecx = eax; /* 0x360470D9: mov ecx, eax */
  10452     RECOMP_ICALL(0x36057990u); /* 0x360470DB: call 0x36057990 */ /* not lifted */
  10453     RECOMP_FLAGS_IN();
  10454     goto L_36047116; /* 0x360470E0: jmp 0x36047116 */
  10455 L_360470E2:
  10456     ecx = ebx; /* 0x360470E2: mov ecx, ebx */
  10457     RECOMP_ICALL(0x36008320u); /* 0x360470E4: call 0x36008320 */ /* not lifted */
  10458     RECOMP_FLAGS_IN();
  10459     /* cmp eax, 7 */ /* 0x360470E9: cmp eax, 7 */
  10460     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7);
  10461     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10462     _flag_k = FK_CMP;
  10463     if (CMP_NE(_flag_a, _flag_b)) goto L_36047116; /* 0x360470EC: jne 0x36047116 */
  10464 L_360470EE:
  10465     eax = MEM32(esi + 0xE4); /* 0x360470EE: mov eax, dword ptr [esi + 0xe4] */
  10466     ecx = esi + 0xE4; /* 0x360470F4: lea ecx, [esi + 0xe4] */
  10467     PUSH32(esp, 0x20000000u); /* 0x360470FA: push 0x20000000 */
  10468     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x360470FF: call dword ptr [eax + 0x18] */
  10469     RECOMP_FLAGS_IN();
  10470     ecx = MEM32(esi + 0x60); /* 0x36047102: mov ecx, dword ptr [esi + 0x60] */
  10471     RECOMP_ICALL(MEM32(0x3617034C)); /* 0x36047105: call dword ptr [0x3617034c] */
  10472     RECOMP_FLAGS_IN();
  10473     ecx = MEM32(esi + 0x60); /* 0x3604710B: mov ecx, dword ptr [esi + 0x60] */
  10474     PUSH32(esp, 4); /* 0x3604710E: push 4 */
  10475     RECOMP_ICALL(MEM32(0x36170238)); /* 0x36047110: call dword ptr [0x36170238] */
  10476     RECOMP_FLAGS_IN();
  10477 L_36047116:
  10478     eax = MEM32(esi + 0xC8); /* 0x36047116: mov eax, dword ptr [esi + 0xc8] */
  10479     /* test eax, eax */ /* 0x3604711C: test eax, eax */
  10480     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10481     _cf = 0;
  10482     _flag_k = FK_TEST;
  10483     if (TEST_Z(_flag_a, _flag_b)) goto L_36047129; /* 0x3604711E: je 0x36047129 */
  10484 L_36047120:
  10485     PUSH32(esp, esi); /* 0x36047120: push esi */
  10486     RECOMP_ICALL(0x36044470u); /* 0x36047121: call 0x36044470 */ /* not lifted */
  10487     RECOMP_FLAGS_IN();
  10488     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10489     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10490     esp = esp + 4; /* 0x36047126: add esp, 4 */
  10491     _flag_k = FK_ADD;
  10492 L_36047129:
  10493     esi = POP32_VAL(esp); /* 0x36047129: pop esi */
  10494     ebx = POP32_VAL(esp); /* 0x3604712A: pop ebx */
  10495     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604712B: ret  */
  10496     RECOMP_REGS_OUT();
  10497 }
  10498 
  10499 void sub_36047116(void) {
  10500     int _fpu_cmp = 0;
  10501     uint32_t _cf = 0;
  10502     int _df = 1;
  10503     uint32_t _flag_k = FK_NONE;
  10504     uint32_t _flag_a = 0, _flag_b = 0;
  10505     uint32_t _itail_tgt = 0;
  10506     RECOMP_REGS_LOCALS
  10507     RECOMP_ENTER(0x36047116u);
  10508 
  10509 L_36047116:
  10510     eax = MEM32(esi + 0xC8); /* 0x36047116: mov eax, dword ptr [esi + 0xc8] */
  10511     /* test eax, eax */ /* 0x3604711C: test eax, eax */
  10512     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10513     _cf = 0;
  10514     _flag_k = FK_TEST;
  10515     if (TEST_Z(_flag_a, _flag_b)) goto L_36047129; /* 0x3604711E: je 0x36047129 */
  10516 L_36047120:
  10517     PUSH32(esp, esi); /* 0x36047120: push esi */
  10518     RECOMP_ICALL(0x36044470u); /* 0x36047121: call 0x36044470 */ /* not lifted */
  10519     RECOMP_FLAGS_IN();
  10520     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10521     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10522     esp = esp + 4; /* 0x36047126: add esp, 4 */
  10523     _flag_k = FK_ADD;
  10524 L_36047129:
  10525     esi = POP32_VAL(esp); /* 0x36047129: pop esi */
  10526     ebx = POP32_VAL(esp); /* 0x3604712A: pop ebx */
  10527     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604712B: ret  */
  10528     RECOMP_REGS_OUT();
  10529 }
  10530 
  10531 void sub_36047130(void) {
  10532     int _fpu_cmp = 0;
  10533     uint32_t _cf = 0;
  10534     int _df = 1;
  10535     uint32_t _flag_k = FK_NONE;
  10536     uint32_t _flag_a = 0, _flag_b = 0;
  10537     uint32_t _itail_tgt = 0;
  10538     RECOMP_REGS_LOCALS
  10539     RECOMP_ENTER(0x36047130u);
  10540 
  10541 L_36047130:
  10542     PUSH32(esp, ebp); /* 0x36047130: push ebp */
  10543     ebp = esp; /* 0x36047131: mov ebp, esp */
  10544     PUSH32(esp, esi); /* 0x36047133: push esi */
  10545     esi = MEM32(ebp + 0x8); /* 0x36047134: mov esi, dword ptr [ebp + 8] */
  10546     PUSH32(esp, edi); /* 0x36047137: push edi */
  10547     edi = MEM32(ebp + 0xC); /* 0x36047138: mov edi, dword ptr [ebp + 0xc] */
  10548     PUSH32(esp, esi); /* 0x3604713B: push esi */
  10549     ecx = edi; /* 0x3604713C: mov ecx, edi */
  10550     RECOMP_ICALL(0x36049630u); /* 0x3604713E: call 0x36049630 */ /* not lifted */
  10551     RECOMP_FLAGS_IN();
  10552     eax = MEM32(edi + 0x30); /* 0x36047143: mov eax, dword ptr [edi + 0x30] */
  10553     PUSH32(esp, eax); /* 0x36047146: push eax */
  10554     ecx = esi; /* 0x36047147: mov ecx, esi */
  10555     RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36047149: call dword ptr [0x3616faec] */
  10556     RECOMP_FLAGS_IN();
  10557     edi = POP32_VAL(esp); /* 0x3604714F: pop edi */
  10558     eax = esi; /* 0x36047150: mov eax, esi */
  10559     esi = POP32_VAL(esp); /* 0x36047152: pop esi */
  10560     ebp = POP32_VAL(esp); /* 0x36047153: pop ebp */
  10561     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36047154: ret  */
  10562     RECOMP_REGS_OUT();
  10563 }
  10564 
  10565 void sub_36047160(void) {
  10566     int _fpu_cmp = 0;
  10567     uint32_t _cf = 0;
  10568     int _df = 1;
  10569     uint32_t _flag_k = FK_NONE;
  10570     uint32_t _flag_a = 0, _flag_b = 0;
  10571     uint32_t _itail_tgt = 0;
  10572     RECOMP_REGS_LOCALS
  10573     RECOMP_ENTER(0x36047160u);
  10574 
  10575 L_36047160:
  10576     PUSH32(esp, ebp); /* 0x36047160: push ebp */
  10577     ebp = esp; /* 0x36047161: mov ebp, esp */
  10578     PUSH32(esp, esi); /* 0x36047163: push esi */
  10579     esi = MEM32(ebp + 0x8); /* 0x36047164: mov esi, dword ptr [ebp + 8] */
  10580     PUSH32(esp, edi); /* 0x36047167: push edi */
  10581     edi = MEM32(ebp + 0xC); /* 0x36047168: mov edi, dword ptr [ebp + 0xc] */
  10582     PUSH32(esp, esi); /* 0x3604716B: push esi */
  10583     ecx = edi; /* 0x3604716C: mov ecx, edi */
  10584     RECOMP_ICALL(0x360496B0u); /* 0x3604716E: call 0x360496b0 */ /* not lifted */
  10585     RECOMP_FLAGS_IN();
  10586     eax = ebp + 0x8; /* 0x36047173: lea eax, [ebp + 8] */
  10587     PUSH32(esp, eax); /* 0x36047176: push eax */
  10588     ecx = esi; /* 0x36047177: mov ecx, esi */
  10589     RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36047179: call dword ptr [0x3616fa8c] */
  10590     RECOMP_FLAGS_IN();
  10591     ecx = MEM32(ebp + 0x8); /* 0x3604717F: mov ecx, dword ptr [ebp + 8] */
  10592     MEM32(edi + 0x30) = ecx; /* 0x36047182: mov dword ptr [edi + 0x30], ecx */
  10593     edi = POP32_VAL(esp); /* 0x36047185: pop edi */
  10594     eax = esi; /* 0x36047186: mov eax, esi */
  10595     esi = POP32_VAL(esp); /* 0x36047188: pop esi */
  10596     ebp = POP32_VAL(esp); /* 0x36047189: pop ebp */
  10597     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3604718A: ret  */
  10598     RECOMP_REGS_OUT();
  10599 }
  10600 
  10601 void sub_36047190(void) {
  10602     int _fpu_cmp = 0;
  10603     uint32_t _cf = 0;
  10604     int _df = 1;
  10605     uint32_t _flag_k = FK_NONE;
  10606     uint32_t _flag_a = 0, _flag_b = 0;
  10607     uint32_t _itail_tgt = 0;
  10608     RECOMP_REGS_LOCALS
  10609     RECOMP_ENTER(0x36047190u);
  10610 
  10611 L_36047190:
  10612     PUSH32(esp, esi); /* 0x36047190: push esi */
  10613     esi = ecx; /* 0x36047191: mov esi, ecx */
  10614     RECOMP_ICALL(0x36043B20u); /* 0x36047193: call 0x36043b20 */ /* not lifted */
  10615     RECOMP_FLAGS_IN();
  10616     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10617     eax = 0; /* 0x36047198: xor eax, eax */
  10618     _cf = 0;
  10619     _flag_k = FK_TEST;
  10620     MEM32(esi + 0x48) = eax; /* 0x3604719A: mov dword ptr [esi + 0x48], eax */
  10621     MEM32(esi + 0x4C) = eax; /* 0x3604719D: mov dword ptr [esi + 0x4c], eax */
  10622     MEM32(esi + 0x50) = eax; /* 0x360471A0: mov dword ptr [esi + 0x50], eax */
  10623     ecx = 0x3F800000u; /* 0x360471A3: mov ecx, 0x3f800000 */
  10624     MEM32(esi + 0x54) = ecx; /* 0x360471A8: mov dword ptr [esi + 0x54], ecx */
  10625     MEM32(esi + 0x58) = eax; /* 0x360471AB: mov dword ptr [esi + 0x58], eax */
  10626     MEM32(esi + 0x5C) = eax; /* 0x360471AE: mov dword ptr [esi + 0x5c], eax */
  10627     MEM32(esi + 0x60) = eax; /* 0x360471B1: mov dword ptr [esi + 0x60], eax */
  10628     MEM32(esi + 0x64) = ecx; /* 0x360471B4: mov dword ptr [esi + 0x64], ecx */
  10629     MEM32(esi) = 0x36170D70u; /* 0x360471B7: mov dword ptr [esi], 0x36170d70 */
  10630     eax = esi; /* 0x360471BD: mov eax, esi */
  10631     esi = POP32_VAL(esp); /* 0x360471BF: pop esi */
  10632     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360471C0: ret  */
  10633     RECOMP_REGS_OUT();
  10634 }
  10635 
  10636 void sub_360471D0(void) {
  10637     int _fpu_cmp = 0;
  10638     uint32_t _cf = 0;
  10639     int _df = 1;
  10640     uint32_t _flag_k = FK_NONE;
  10641     uint32_t _flag_a = 0, _flag_b = 0;
  10642     uint32_t _itail_tgt = 0;
  10643     RECOMP_REGS_LOCALS
  10644     RECOMP_ENTER(0x360471D0u);
  10645 
  10646 L_360471D0:
  10647     PUSH32(esp, ebp); /* 0x360471D0: push ebp */
  10648     ebp = esp; /* 0x360471D1: mov ebp, esp */
  10649     PUSH32(esp, esi); /* 0x360471D3: push esi */
  10650     esi = ecx; /* 0x360471D4: mov esi, ecx */
  10651     RECOMP_ICALL(0x36047340u); /* 0x360471D6: call 0x36047340 */ /* not lifted */
  10652     RECOMP_FLAGS_IN();
  10653     /* test MEM8(ebp + 0x8), 1 */ /* 0x360471DB: test byte ptr [ebp + 8], 1 */
  10654     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  10655     _cf = 0;
  10656     _flag_k = FK_NARROW(FK_TEST, 24);
  10657     if (TEST_Z(_flag_a, _flag_b)) goto L_360471EA; /* 0x360471DF: je 0x360471ea */
  10658 L_360471E1:
  10659     PUSH32(esp, esi); /* 0x360471E1: push esi */
  10660     RECOMP_ICALL(0x3615FCC4u); /* 0x360471E2: call 0x3615fcc4 */ /* not lifted */
  10661     RECOMP_FLAGS_IN();
  10662     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10663     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10664     esp = esp + 4; /* 0x360471E7: add esp, 4 */
  10665     _flag_k = FK_ADD;
  10666 L_360471EA:
  10667     eax = esi; /* 0x360471EA: mov eax, esi */
  10668     esi = POP32_VAL(esp); /* 0x360471EC: pop esi */
  10669     ebp = POP32_VAL(esp); /* 0x360471ED: pop ebp */
  10670     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360471EE: ret 4 */
  10671     RECOMP_REGS_OUT();
  10672 }
  10673 
  10674 void sub_36047200(void) {
  10675     int _fpu_cmp = 0;
  10676     uint32_t _cf = 0;
  10677     int _df = 1;
  10678     uint32_t _flag_k = FK_NONE;
  10679     uint32_t _flag_a = 0, _flag_b = 0;
  10680     uint32_t _itail_tgt = 0;
  10681     RECOMP_REGS_LOCALS
  10682     RECOMP_ENTER(0x36047200u);
  10683 
  10684 L_36047200:
  10685     PUSH32(esp, ebp); /* 0x36047200: push ebp */
  10686     ebp = esp; /* 0x36047201: mov ebp, esp */
  10687     PUSH32(esp, 0xFFFFFFFFu); /* 0x36047203: push -1 */
  10688     PUSH32(esp, 0x36163E79u); /* 0x36047205: push 0x36163e79 */
  10689     eax = MEM32(FS_BASE + (0)); /* 0x3604720A: mov eax, dword ptr fs:[0] */
  10690     PUSH32(esp, eax); /* 0x36047210: push eax */
  10691     MEM32(FS_BASE + (0)) = esp; /* 0x36047211: mov dword ptr fs:[0], esp */
  10692     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
  10693     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10694     esp = esp - 0x14u; /* 0x36047218: sub esp, 0x14 */
  10695     _flag_k = FK_CMP;
  10696     SET_LO8(eax, MEM8(ebp + 0x4F)); /* 0x3604721B: mov al, byte ptr [ebp + 0x4f] */
  10697     PUSH32(esp, ebx); /* 0x3604721E: push ebx */
  10698     PUSH32(esp, esi); /* 0x3604721F: push esi */
  10699     esi = ecx; /* 0x36047220: mov esi, ecx */
  10700     PUSH32(esp, edi); /* 0x36047222: push edi */
  10701     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
  10702     ecx = ecx | 0xFFFFFFFFu; /* 0x36047223: or ecx, 0xffffffff */
  10703     _cf = 0;
  10704     _flag_k = FK_TEST;
  10705     MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36047226: mov byte ptr [ebp - 0x20], al */
  10706     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
  10707     eax = 0; /* 0x36047229: xor eax, eax */
  10708     _cf = 0;
  10709     _flag_k = FK_TEST;
  10710     edi = 0x361B42A4u; /* 0x3604722B: mov edi, 0x361b42a4 */
  10711     if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x36047230: repne scasb al, byte ptr es:[edi] */
  10712     ecx = ~ecx; /* 0x36047232: not ecx */
  10713     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
  10714     ecx = ecx - 1; /* 0x36047234: dec ecx */
  10715     _flag_k = FK_DEC;
  10716     ebx = ecx; /* 0x36047235: mov ebx, ecx */
  10717     PUSH32(esp, 1); /* 0x36047237: push 1 */
  10718     PUSH32(esp, ebx); /* 0x36047239: push ebx */
  10719     ecx = ebp + (-0x20); /* 0x3604723A: lea ecx, [ebp - 0x20] */
  10720     MEM32(ebp + (-0x10)) = esi; /* 0x3604723D: mov dword ptr [ebp - 0x10], esi */
  10721     MEM32(ebp + (-0x1C)) = eax; /* 0x36047240: mov dword ptr [ebp - 0x1c], eax */
  10722     MEM32(ebp + (-0x18)) = eax; /* 0x36047243: mov dword ptr [ebp - 0x18], eax */
  10723     MEM32(ebp + (-0x14)) = eax; /* 0x36047246: mov dword ptr [ebp - 0x14], eax */
  10724     RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36047249: call dword ptr [0x3616f00c] */
  10725     RECOMP_FLAGS_IN();
  10726     /* test LO8(eax), LO8(eax) */ /* 0x3604724F: test al, al */
  10727     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10728     _cf = 0;
  10729     _flag_k = FK_NARROW(FK_TEST, 24);
  10730     if (TEST_Z(_flag_a, _flag_b)) goto L_36047278; /* 0x36047251: je 0x36047278 */
  10731 L_36047253:
  10732     edi = MEM32(ebp + (-0x1C)); /* 0x36047253: mov edi, dword ptr [ebp - 0x1c] */
  10733     ecx = ebx; /* 0x36047256: mov ecx, ebx */
  10734     edx = ecx; /* 0x36047258: mov edx, ecx */
  10735     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3604725A: shr ecx, 2 */
  10736     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
  10737     ecx = ecx >> 2u; /* 0x3604725A: shr ecx, 2 */
  10738     esi = 0x361B42A4u; /* 0x3604725D: mov esi, 0x361b42a4 */
  10739     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36047262: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10740     ecx = edx; /* 0x36047264: mov ecx, edx */
  10741     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
  10742     ecx = ecx & 3; /* 0x36047266: and ecx, 3 */
  10743     _cf = 0;
  10744     _flag_k = FK_TEST;
  10745     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36047269: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
  10746     eax = MEM32(ebp + (-0x1C)); /* 0x3604726B: mov eax, dword ptr [ebp - 0x1c] */
  10747     esi = MEM32(ebp + (-0x10)); /* 0x3604726E: mov esi, dword ptr [ebp - 0x10] */
  10748     MEM32(ebp + (-0x18)) = ebx; /* 0x36047271: mov dword ptr [ebp - 0x18], ebx */
  10749     MEM8(eax + ebx) = (uint8_t)(0); /* 0x36047274: mov byte ptr [eax + ebx], 0 */
  10750 L_36047278:
  10751     edx = MEM32(ebp + 0x1C); /* 0x36047278: mov edx, dword ptr [ebp + 0x1c] */
  10752     eax = MEM32(ebp + 0x20); /* 0x3604727B: mov eax, dword ptr [ebp + 0x20] */
  10753     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
  10754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10755     esp = esp - 0x10u; /* 0x3604727E: sub esp, 0x10 */
  10756     _flag_k = FK_CMP;
  10757     ecx = esp; /* 0x36047281: mov ecx, esp */
  10758     MEM32(ecx) = edx; /* 0x36047283: mov dword ptr [ecx], edx */
  10759     edx = MEM32(ebp + 0x24); /* 0x36047285: mov edx, dword ptr [ebp + 0x24] */
  10760     MEM32(ecx + 0x4) = eax; /* 0x36047288: mov dword ptr [ecx + 4], eax */
  10761     eax = MEM32(ebp + 0x28); /* 0x3604728B: mov eax, dword ptr [ebp + 0x28] */
  10762     MEM32(ecx + 0x8) = edx; /* 0x3604728E: mov dword ptr [ecx + 8], edx */
  10763     edx = MEM32(ebp + 0x10); /* 0x36047291: mov edx, dword ptr [ebp + 0x10] */
  10764     MEM32(ecx + 0xC) = eax; /* 0x36047294: mov dword ptr [ecx + 0xc], eax */
  10765     eax = MEM32(ebp + 0x14); /* 0x36047297: mov eax, dword ptr [ebp + 0x14] */
  10766     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
  10767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10768     esp = esp - 0xCu; /* 0x3604729A: sub esp, 0xc */
  10769     _flag_k = FK_CMP;
  10770     ecx = esp; /* 0x3604729D: mov ecx, esp */
  10771     MEM32(ecx) = edx; /* 0x3604729F: mov dword ptr [ecx], edx */
  10772     edx = MEM32(ebp + 0x18); /* 0x360472A1: mov edx, dword ptr [ebp + 0x18] */
  10773     MEM32(ecx + 0x4) = eax; /* 0x360472A4: mov dword ptr [ecx + 4], eax */
  10774     eax = MEM32(ebp + 0xC); /* 0x360472A7: mov eax, dword ptr [ebp + 0xc] */
  10775     MEM32(ecx + 0x8) = edx; /* 0x360472AA: mov dword ptr [ecx + 8], edx */
  10776     edx = MEM32(ebp + 0x8); /* 0x360472AD: mov edx, dword ptr [ebp + 8] */
  10777     PUSH32(esp, eax); /* 0x360472B0: push eax */
  10778     ecx = ebp + (-0x20); /* 0x360472B1: lea ecx, [ebp - 0x20] */
  10779     PUSH32(esp, ecx); /* 0x360472B4: push ecx */
  10780     PUSH32(esp, edx); /* 0x360472B5: push edx */
  10781     ecx = esi; /* 0x360472B6: mov ecx, esi */
  10782     MEM32(ebp + (-0x4)) = 0; /* 0x360472B8: mov dword ptr [ebp - 4], 0 */
  10783     RECOMP_ICALL(0x36043B90u); /* 0x360472BF: call 0x36043b90 */ /* not lifted */
  10784     RECOMP_FLAGS_IN();
  10785     eax = MEM32(ebp + (-0x1C)); /* 0x360472C4: mov eax, dword ptr [ebp - 0x1c] */
  10786     /* test eax, eax */ /* 0x360472C7: test eax, eax */
  10787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
  10788     _cf = 0;
  10789     _flag_k = FK_TEST;
  10790     if (TEST_Z(_flag_a, _flag_b)) goto L_360472E7; /* 0x360472C9: je 0x360472e7 */
  10791 L_360472CB:
  10792     ecx = eax + (-0x1); /* 0x360472CB: lea ecx, [eax - 1] */
  10793     SET_LO8(eax, MEM8(ecx)); /* 0x360472CE: mov al, byte ptr [ecx] */
  10794     /* test LO8(eax), LO8(eax) */ /* 0x360472D0: test al, al */
  10795     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10796     _cf = 0;
  10797     _flag_k = FK_NARROW(FK_TEST, 24);
  10798     if (TEST_Z(_flag_a, _flag_b)) goto L_360472DE; /* 0x360472D2: je 0x360472de */
  10799 L_360472D4:
  10800     /* cmp LO8(eax), 0xFFu */ /* 0x360472D4: cmp al, 0xff */
  10801     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24;
  10802     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10803     _flag_k = FK_NARROW(FK_CMP, 24);
  10804     if (CMP_EQ(_flag_a, _flag_b)) goto L_360472DE; /* 0x360472D6: je 0x360472de */
  10805 L_360472D8:
  10806     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24;
  10807     SET_LO8(eax, LO8(eax) - 1); /* 0x360472D8: dec al */
  10808     _flag_k = FK_NARROW(FK_DEC, 24);
  10809     MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360472DA: mov byte ptr [ecx], al */
  10810     goto L_360472E7; /* 0x360472DC: jmp 0x360472e7 */
  10811 L_360472DE:
  10812     PUSH32(esp, ecx); /* 0x360472DE: push ecx */
  10813     RECOMP_ICALL(0x3615FCC4u); /* 0x360472DF: call 0x3615fcc4 */ /* not lifted */
  10814     RECOMP_FLAGS_IN();
  10815     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  10816     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  10817     esp = esp + 4; /* 0x360472E4: add esp, 4 */
  10818     _flag_k = FK_ADD;
  10819 L_360472E7:
  10820     ecx = MEM32(ebp + 0x2C); /* 0x360472E7: mov ecx, dword ptr [ebp + 0x2c] */
  10821     edx = MEM32(ebp + 0x30); /* 0x360472EA: mov edx, dword ptr [ebp + 0x30] */
  10822     eax = esi + 0x48; /* 0x360472ED: lea eax, [esi + 0x48] */
  10823     MEM32(eax) = ecx; /* 0x360472F0: mov dword ptr [eax], ecx */
  10824     ecx = MEM32(ebp + 0x34); /* 0x360472F2: mov ecx, dword ptr [ebp + 0x34] */
  10825     MEM32(eax + 0x4) = edx; /* 0x360472F5: mov dword ptr [eax + 4], edx */
  10826     edx = MEM32(ebp + 0x38); /* 0x360472F8: mov edx, dword ptr [ebp + 0x38] */
  10827     MEM32(eax + 0x8) = ecx; /* 0x360472FB: mov dword ptr [eax + 8], ecx */
  10828     ecx = MEM32(ebp + 0x3C); /* 0x360472FE: mov ecx, dword ptr [ebp + 0x3c] */
  10829     MEM32(eax + 0xC) = edx; /* 0x36047301: mov dword ptr [eax + 0xc], edx */
  10830     edx = MEM32(ebp + 0x40); /* 0x36047304: mov edx, dword ptr [ebp + 0x40] */
  10831     eax = esi + 0x58; /* 0x36047307: lea eax, [esi + 0x58] */
  10832     MEM32(eax) = ecx; /* 0x3604730A: mov dword ptr [eax], ecx */
  10833     ecx = MEM32(ebp + 0x44); /* 0x3604730C: mov ecx, dword ptr [ebp + 0x44] */
  10834     MEM32(eax + 0x4) = edx; /* 0x3604730F: mov dword ptr [eax + 4], edx */
  10835     edx = MEM32(ebp + 0x48); /* 0x36047312: mov edx, dword ptr [ebp + 0x48] */
  10836     MEM32(eax + 0x8) = ecx; /* 0x36047315: mov dword ptr [eax + 8], ecx */
  10837     ecx = MEM32(ebp + (-0xC)); /* 0x36047318: mov ecx, dword ptr [ebp - 0xc] */
  10838     MEM32(eax + 0xC) = edx; /* 0x3604731B: mov dword ptr [eax + 0xc], edx */
  10839     SET_LO8(eax, MEM8(ebp + 0x4C)); /* 0x3604731E: mov al, byte ptr [ebp + 0x4c] */
  10840     MEM8(esi + 0x68) = (uint8_t)(LO8(eax)); /* 0x36047321: mov byte ptr [esi + 0x68], al */
  10841     edi = POP32_VAL(esp); /* 0x36047324: pop edi */
  10842     MEM32(esi) = 0x36170D70u; /* 0x36047325: mov dword ptr [esi], 0x36170d70 */
  10843     eax = esi; /* 0x3604732B: mov eax, esi */
  10844     esi = POP32_VAL(esp); /* 0x3604732D: pop esi */
  10845     MEM32(FS_BASE + (0)) = ecx; /* 0x3604732E: mov dword ptr fs:[0], ecx */
  10846     ebx = POP32_VAL(esp); /* 0x36047335: pop ebx */
  10847     esp = ebp; /* 0x36047336: mov esp, ebp */
  10848     ebp = POP32_VAL(esp); /* 0x36047338: pop ebp */
  10849     RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x36047339: ret 0x48 */
  10850     RECOMP_REGS_OUT();
  10851 }
  10852 
  10853 void sub_36047340(void) {
  10854     int _fpu_cmp = 0;
  10855     uint32_t _cf = 0;
  10856     int _df = 1;
  10857     uint32_t _flag_k = FK_NONE;
  10858     uint32_t _flag_a = 0, _flag_b = 0;
  10859     uint32_t _itail_tgt = 0;
  10860     RECOMP_REGS_LOCALS
  10861     RECOMP_ENTER(0x36047340u);
  10862 
  10863     goto L_36047340;
  10864 L_36043C00:
  10865     MEM32(ecx) = 0x36170B74u; /* 0x36043C00: mov dword ptr [ecx], 0x36170b74 */
  10866 L_36043C06:
  10867     { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; }
  10868 L_36047340:
  10869     MEM32(ecx) = 0x36170D70u; /* 0x36047340: mov dword ptr [ecx], 0x36170d70 */
  10870 L_36047346:
  10871     RECOMP_BACKEDGE();
  10872     goto L_36043C00; /* 0x36047346: jmp 0x36043c00 */
  10873     { RECOMP_REGS_OUT(); return; } /* end of function */
  10874   _ljump:
  10875     switch (_itail_tgt) {
  10876       case 0x36043C00u: goto L_36043C00;
  10877       case 0x36043C06u: goto L_36043C06;
  10878       case 0x36047340u: goto L_36047340;
  10879       case 0x36047346u: goto L_36047346;
  10880       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
  10881     }
  10882     RECOMP_REGS_OUT();
  10883 }
  10884 
  10885 void sub_36047350(void) {
  10886     int _fpu_cmp = 0;
  10887     uint32_t _cf = 0;
  10888     int _df = 1;
  10889     uint32_t _flag_k = FK_NONE;
  10890     uint32_t _flag_a = 0, _flag_b = 0;
  10891     uint32_t _itail_tgt = 0;
  10892     RECOMP_REGS_LOCALS
  10893     RECOMP_ENTER(0x36047350u);
  10894 
  10895 L_36047350:
  10896     PUSH32(esp, esi); /* 0x36047350: push esi */
  10897     PUSH32(esp, edi); /* 0x36047351: push edi */
  10898     esi = ecx; /* 0x36047352: mov esi, ecx */
  10899     RECOMP_ICALL(0x36043C50u); /* 0x36047354: call 0x36043c50 */ /* not lifted */
  10900     RECOMP_FLAGS_IN();
  10901     edi = eax; /* 0x36047359: mov edi, eax */
  10902     /* test edi, edi */ /* 0x3604735B: test edi, edi */
  10903     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
  10904     _cf = 0;
  10905     _flag_k = FK_TEST;
  10906     if (TEST_Z(_flag_a, _flag_b)) goto L_360473B9; /* 0x3604735D: je 0x360473b9 */
  10907 L_3604735F:
  10908     /* cmp MEM32(esi + 0x20), 0x14u */ /* 0x3604735F: cmp dword ptr [esi + 0x20], 0x14 */
  10909     _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(0x14u);
  10910     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
  10911     _flag_k = FK_CMP;
  10912     ecx = MEM32(esi + 0x44); /* 0x36047363: mov ecx, dword ptr [esi + 0x44] */
  10913     if (CMP_NE(_flag_a, _flag_b)) goto L_3604737E; /* 0x36047366: jne 0x3604737e */
  10914 L_36047368:
  10915     eax = MEM32(ecx); /* 0x36047368: mov eax, dword ptr [ecx] */
  10916     PUSH32(esp, 0); /* 0x3604736A: push 0 */
  10917     PUSH32(esp, 0); /* 0x3604736C: push 0 */
  10918     edx = esi + 0x30; /* 0x3604736E: lea edx, [esi + 0x30] */
  10919     PUSH32(esp, edx); /* 0x36047371: push edx */
  10920     edx = esi + 0x24; /* 0x36047372: lea edx, [esi + 0x24] */
  10921     PUSH32(esp, edx); /* 0x36047375: push edx */
  10922     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x36047376: call dword ptr [eax + 0x84] */
  10923     RECOMP_FLAGS_IN();
  10924     goto L_360473A6; /* 0x3604737C: jmp 0x360473a6 */
  10925 L_3604737E:
  10926     RECOMP_ICALL(0x3606D5A0u); /* 0x3604737E: call 0x3606d5a0 */ /* not lifted */
  10927     RECOMP_FLAGS_IN();
  10928     ecx = eax; /* 0x36047383: mov ecx, eax */
  10929     RECOMP_ICALL(0x36048250u); /* 0x36047385: call 0x36048250 */ /* not lifted */
  10930     RECOMP_FLAGS_IN();
  10931     /* test LO8(eax), LO8(eax) */ /* 0x3604738A: test al, al */
  10932     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10933     _cf = 0;
  10934     _flag_k = FK_NARROW(FK_TEST, 24);
  10935     if (TEST_Z(_flag_a, _flag_b)) goto L_360473A6; /* 0x3604738C: je 0x360473a6 */
  10936 L_3604738E:
  10937     ecx = MEM32(esi + 0x44); /* 0x3604738E: mov ecx, dword ptr [esi + 0x44] */
  10938     PUSH32(esp, 0); /* 0x36047391: push 0 */
  10939     PUSH32(esp, 0x40000000u); /* 0x36047393: push 0x40000000 */
  10940     PUSH32(esp, 0); /* 0x36047398: push 0 */
  10941     RECOMP_ICALL(0x3606D5A0u); /* 0x3604739A: call 0x3606d5a0 */ /* not lifted */
  10942     RECOMP_FLAGS_IN();
  10943     ecx = eax; /* 0x3604739F: mov ecx, eax */
  10944     RECOMP_ICALL(0x36048260u); /* 0x360473A1: call 0x36048260 */ /* not lifted */
  10945     RECOMP_FLAGS_IN();
  10946 L_360473A6:
  10947     eax = MEM32(esi + 0x20); /* 0x360473A6: mov eax, dword ptr [esi + 0x20] */
  10948     ecx = MEM32(esi + 0x44); /* 0x360473A9: mov ecx, dword ptr [esi + 0x44] */
  10949     PUSH32(esp, eax); /* 0x360473AC: push eax */
  10950     RECOMP_ICALL(0x3606D5A0u); /* 0x360473AD: call 0x3606d5a0 */ /* not lifted */
  10951     RECOMP_FLAGS_IN();
  10952     ecx = eax; /* 0x360473B2: mov ecx, eax */
  10953     RECOMP_ICALL(0x36049130u); /* 0x360473B4: call 0x36049130 */ /* not lifted */
  10954     RECOMP_FLAGS_IN();
  10955 L_360473B9:
  10956     SET_LO8(eax, MEM8(esi + 0x68)); /* 0x360473B9: mov al, byte ptr [esi + 0x68] */
  10957     /* test LO8(eax), LO8(eax) */ /* 0x360473BC: test al, al */
  10958     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10959     _cf = 0;
  10960     _flag_k = FK_NARROW(FK_TEST, 24);
  10961     if (TEST_Z(_flag_a, _flag_b)) goto L_360473D8; /* 0x360473BE: je 0x360473d8 */
  10962 L_360473C0:
  10963     ecx = esi; /* 0x360473C0: mov ecx, esi */
  10964     RECOMP_ICALL(0x36043C10u); /* 0x360473C2: call 0x36043c10 */ /* not lifted */
  10965     RECOMP_FLAGS_IN();
  10966     /* test LO8(eax), LO8(eax) */ /* 0x360473C7: test al, al */
  10967     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
  10968     _cf = 0;
  10969     _flag_k = FK_NARROW(FK_TEST, 24);
  10970     if (TEST_Z(_flag_a, _flag_b)) goto L_360473D8; /* 0x360473C9: je 0x360473d8 */
  10971 L_360473CB:
  10972     ecx = esi; /* 0x360473CB: mov ecx, esi */
  10973     RECOMP_ICALL(MEM32(0x3616FC3C)); /* 0x360473CD: call dword ptr [0x3616fc3c] */
  10974     RECOMP_FLAGS_IN();
  10975     eax = edi; /* 0x360473D3: mov eax, edi */
  10976     edi = POP32_VAL(esp); /* 0x360473D5: pop edi */
  10977     esi = POP32_VAL(esp); /* 0x360473D6: pop esi */
  10978     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360473D7: ret  */
  10979 L_360473D8:
  10980     ecx = esi; /* 0x360473D8: mov ecx, esi */
  10981     RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x360473DA: call dword ptr [0x3616fc20] */
  10982     RECOMP_FLAGS_IN();
  10983     eax = edi; /* 0x360473E0: mov eax, edi */
  10984     edi = POP32_VAL(esp); /* 0x360473E2: pop edi */
  10985     esi = POP32_VAL(esp); /* 0x360473E3: pop esi */
  10986     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360473E4: ret  */
  10987     RECOMP_REGS_OUT();
  10988 }
  10989 
  10990 void sub_360473F0(void) {
  10991     int _fpu_cmp = 0;
  10992     uint32_t _cf = 0;
  10993     int _df = 1;
  10994     uint32_t _flag_k = FK_NONE;
  10995     uint32_t _flag_a = 0, _flag_b = 0;
  10996     uint32_t _itail_tgt = 0;
  10997     RECOMP_REGS_LOCALS
  10998     RECOMP_ENTER(0x360473F0u);
  10999 
  11000 L_360473F0:
  11001     PUSH32(esp, ebp); /* 0x360473F0: push ebp */
  11002     ebp = esp; /* 0x360473F1: mov ebp, esp */
  11003     PUSH32(esp, ebx); /* 0x360473F3: push ebx */
  11004     ebx = MEM32(ebp + 0x8); /* 0x360473F4: mov ebx, dword ptr [ebp + 8] */
  11005     PUSH32(esp, esi); /* 0x360473F7: push esi */
  11006     PUSH32(esp, edi); /* 0x360473F8: push edi */
  11007     edi = ecx; /* 0x360473F9: mov edi, ecx */
  11008     PUSH32(esp, ebx); /* 0x360473FB: push ebx */
  11009     RECOMP_ICALL(0x36043DC0u); /* 0x360473FC: call 0x36043dc0 */ /* not lifted */
  11010     RECOMP_FLAGS_IN();
  11011     esi = MEM32(0x3616FAD0); /* 0x36047401: mov esi, dword ptr [0x3616fad0] */
  11012     eax = edi + 0x48; /* 0x36047407: lea eax, [edi + 0x48] */
  11013     ecx = eax + 0xC; /* 0x3604740A: lea ecx, [eax + 0xc] */
  11014     PUSH32(esp, ecx); /* 0x3604740D: push ecx */
  11015     edx = eax + 0x8; /* 0x3604740E: lea edx, [eax + 8] */
  11016     PUSH32(esp, edx); /* 0x36047411: push edx */
  11017     ecx = eax + 0x4; /* 0x36047412: lea ecx, [eax + 4] */
  11018     PUSH32(esp, ecx); /* 0x36047415: push ecx */
  11019     PUSH32(esp, eax); /* 0x36047416: push eax */
  11020     ecx = ebx; /* 0x36047417: mov ecx, ebx */
  11021     RECOMP_ICALL(esi); /* 0x36047419: call esi */
  11022     RECOMP_FLAGS_IN();
  11023     ecx = eax; /* 0x3604741B: mov ecx, eax */
  11024     RECOMP_ICALL(esi); /* 0x3604741D: call esi */
  11025     RECOMP_FLAGS_IN();
  11026     ecx = eax; /* 0x3604741F: mov ecx, eax */
  11027     RECOMP_ICALL(esi); /* 0x36047421: call esi */
  11028     RECOMP_FLAGS_IN();
  11029     ecx = eax; /* 0x36047423: mov ecx, eax */
  11030     RECOMP_ICALL(esi); /* 0x36047425: call esi */
  11031     RECOMP_FLAGS_IN();
  11032     eax = edi + 0x58; /* 0x36047427: lea eax, [edi + 0x58] */
  11033     edx = eax + 0xC; /* 0x3604742A: lea edx, [eax + 0xc] */
  11034     PUSH32(esp, edx); /* 0x3604742D: push edx */
  11035     ecx = eax + 0x8; /* 0x3604742E: lea ecx, [eax + 8] */
  11036     PUSH32(esp, ecx); /* 0x36047431: push ecx */
  11037     edx = eax + 0x4; /* 0x36047432: lea edx, [eax + 4] */
  11038     PUSH32(esp, edx); /* 0x36047435: push edx */
  11039     PUSH32(esp, eax); /* 0x36047436: push eax */
  11040     ecx = ebx; /* 0x36047437: mov ecx, ebx */
  11041     RECOMP_ICALL(esi); /* 0x36047439: call esi */
  11042     RECOMP_FLAGS_IN();
  11043     ecx = eax; /* 0x3604743B: mov ecx, eax */
  11044     RECOMP_ICALL(esi); /* 0x3604743D: call esi */
  11045     RECOMP_FLAGS_IN();
  11046     ecx = eax; /* 0x3604743F: mov ecx, eax */
  11047     RECOMP_ICALL(esi); /* 0x36047441: call esi */
  11048     RECOMP_FLAGS_IN();
  11049     ecx = eax; /* 0x36047443: mov ecx, eax */
  11050     RECOMP_ICALL(esi); /* 0x36047445: call esi */
  11051     RECOMP_FLAGS_IN();
  11052     ecx = ebx; /* 0x36047447: mov ecx, ebx */
  11053     RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36047449: call dword ptr [0x3616fadc] */
  11054     RECOMP_FLAGS_IN();
  11055     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
  11056     _cf = (eax) != 0;
  11057     eax = (uint32_t)(-(int32_t)eax); /* 0x3604744F: neg eax */
  11058     _flag_k = FK_CMP;
  11059     edi = POP32_VAL(esp); /* 0x36047451: pop edi */
  11060     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36047452: sbb eax, eax */
  11061       eax = _sc ? 0xFFFFFFFFu : 0;
  11062       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
  11063       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
  11064     esi = POP32_VAL(esp); /* 0x36047454: pop esi */
  11065     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
  11066     eax = eax + 1; /* 0x36047455: inc eax */
  11067     _flag_k = FK_INC;
  11068     ebx = POP32_VAL(esp); /* 0x36047456: pop ebx */
  11069     ebp = POP32_VAL(esp); /* 0x36047457: pop ebp */
  11070     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36047458: ret 4 */
  11071     RECOMP_REGS_OUT();
  11072 }
  11073 
  11074 void sub_36047460(void) {
  11075     int _fpu_cmp = 0;
  11076     uint32_t _cf = 0;
  11077     int _df = 1;
  11078     uint32_t _flag_k = FK_NONE;
  11079     uint32_t _flag_a = 0, _flag_b = 0;
  11080     uint32_t _itail_tgt = 0;
  11081     RECOMP_REGS_LOCALS
  11082     RECOMP_ENTER(0x36047460u);
  11083 
  11084 L_36047460:
  11085     PUSH32(esp, ebp); /* 0x36047460: push ebp */
  11086     ebp = esp; /* 0x36047461: mov ebp, esp */
  11087     PUSH32(esp, ebx); /* 0x36047463: push ebx */
  11088     ebx = MEM32(ebp + 0x8); /* 0x36047464: mov ebx, dword ptr [ebp + 8] */
  11089     PUSH32(esp, esi); /* 0x36047467: push esi */
  11090     PUSH32(esp, edi); /* 0x36047468: push edi */
  11091     esi = ecx; /* 0x36047469: mov esi, ecx */
  11092     PUSH32(esp, ebx); /* 0x3604746B: push ebx */
  11093     RECOMP_ICALL(0x36044010u); /* 0x3604746C: call 0x36044010 */ /* not lifted */
  11094     RECOMP_FLAGS_IN();
  11095     eax = MEM32(esi + 0x54); /* 0x36047471: mov eax, dword ptr [esi + 0x54] */
  11096     ecx = MEM32(esi + 0x50); /* 0x36047474: mov ecx, dword ptr [esi + 0x50] */
  11097     edx = MEM32(esi + 0x4C); /* 0x36047477: mov edx, dword ptr [esi + 0x4c] */
  11098     edi = MEM32(0x3616FAD4); /* 0x3604747A: mov edi, dword ptr [0x3616fad4] */
  11099     PUSH32(esp, eax); /* 0x36047480: push eax */
  11100     eax = MEM32(esi + 0x48); /* 0x36047481: mov eax, dword ptr [esi + 0x48] */
  11101     PUSH32(esp, ecx); /* 0x36047484: push ecx */
  11102     PUSH32(esp, edx); /* 0x36047485: push edx */
  11103     PUSH32(esp, eax); /* 0x36047486: push eax */
  11104     ecx = ebx; /* 0x36047487: mov ecx, ebx */
  11105     RECOMP_ICALL(edi); /* 0x36047489: call edi */
  11106     RECOMP_FLAGS_IN();
  11107     ecx = eax; /* 0x3604748B: mov ecx, eax */
  11108     RECOMP_ICALL(edi); /* 0x3604748D: call edi */
  11109     RECOMP_FLAGS_IN();
  11110     ecx = eax; /* 0x3604748F: mov ecx, eax */
  11111     RECOMP_ICALL(edi); /* 0x36047491: call edi */
  11112     RECOMP_FLAGS_IN();
  11113     ecx = eax; /* 0x36047493: mov ecx, eax */
  11114     RECOMP_ICALL(edi); /* 0x36047495: call edi */
  11115     RECOMP_FLAGS_IN();
  11116     ecx = MEM32(esi + 0x64); /* 0x36047497: mov ecx, dword ptr [esi + 0x64] */
  11117     edx = MEM32(esi + 0x60); /* 0x3604749A: mov edx, dword ptr [esi + 0x60] */
  11118     eax = MEM32(esi + 0x5C); /* 0x3604749D: mov eax, dword ptr [esi + 0x5c] */
  11119     PUSH32(esp, ecx); /* 0x360474A0: push ecx */
  11120     ecx = MEM32(esi + 0x58); /* 0x360474A1: mov ecx, dword ptr [esi + 0x58] */
  11121     PUSH32(esp, edx); /* 0x360474A4: push edx */
  11122     PUSH32(esp, eax); /* 0x360474A5: push eax */
  11123     PUSH32(esp, ecx); /* 0x360474A6: push ecx */
  11124     ecx = ebx; /* 0x360474A7: mov ecx, ebx */
  11125     RECOMP_ICALL(edi); /* 0x360474A9: call edi */
  11126     RECOMP_FLAGS_IN();
  11127     ecx = eax; /* 0x360474AB: mov ecx, eax */
  11128     RECOMP_ICALL(edi); /* 0x360474AD: call edi */
  11129     RECOMP_FLAGS_IN();
  11130     ecx = eax; /* 0x360474AF: mov ecx, eax */
  11131     RECOMP_ICALL(edi); /* 0x360474B1: call edi */
  11132     RECOMP_FLAGS_IN();
  11133     ecx = eax; /* 0x360474B3: mov ecx, eax */
  11134     RECOMP_ICALL(edi); /* 0x360474B5: call edi */
  11135     RECOMP_FLAGS_IN();
  11136     edi = POP32_VAL(esp); /* 0x360474B7: pop edi */
  11137     esi = POP32_VAL(esp); /* 0x360474B8: pop esi */
  11138     ebx = POP32_VAL(esp); /* 0x360474B9: pop ebx */
  11139     ebp = POP32_VAL(esp); /* 0x360474BA: pop ebp */
  11140     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360474BB: ret 4 */
  11141     RECOMP_REGS_OUT();
  11142 }
  11143 
  11144 void sub_360474C0(void) {
  11145     int _fpu_cmp = 0;
  11146     uint32_t _cf = 0;
  11147     int _df = 1;
  11148     uint32_t _flag_k = FK_NONE;
  11149     uint32_t _flag_a = 0, _flag_b = 0;
  11150     uint32_t _itail_tgt = 0;
  11151     RECOMP_REGS_LOCALS
  11152     RECOMP_ENTER(0x360474C0u);
  11153 
  11154 L_360474C0:
  11155     PUSH32(esp, esi); /* 0x360474C0: push esi */
  11156     esi = ecx; /* 0x360474C1: mov esi, ecx */
  11157     RECOMP_ICALL(0x36043B20u); /* 0x360474C3: call 0x36043b20 */ /* not lifted */
  11158     RECOMP_FLAGS_IN();
  11159     MEM32(esi) = 0x36170D94u; /* 0x360474C8: mov dword ptr [esi], 0x36170d94 */
  11160     eax = esi; /* 0x360474CE: mov eax, esi */
  11161     esi = POP32_VAL(esp); /* 0x360474D0: pop esi */
  11162     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360474D1: ret  */
  11163     RECOMP_REGS_OUT();
  11164 }
  11165 
  11166 void sub_360474E0(void) {
  11167     int _fpu_cmp = 0;
  11168     uint32_t _cf = 0;
  11169     int _df = 1;
  11170     uint32_t _flag_k = FK_NONE;
  11171     uint32_t _flag_a = 0, _flag_b = 0;
  11172     uint32_t _itail_tgt = 0;
  11173     RECOMP_REGS_LOCALS
  11174     RECOMP_ENTER(0x360474E0u);
  11175 
  11176 L_360474E0:
  11177     PUSH32(esp, ebp); /* 0x360474E0: push ebp */
  11178     ebp = esp; /* 0x360474E1: mov ebp, esp */
  11179     PUSH32(esp, esi); /* 0x360474E3: push esi */
  11180     esi = ecx; /* 0x360474E4: mov esi, ecx */
  11181     RECOMP_ICALL(0x36047610u); /* 0x360474E6: call 0x36047610 */ /* not lifted */
  11182     RECOMP_FLAGS_IN();
  11183     /* test MEM8(ebp + 0x8), 1 */ /* 0x360474EB: test byte ptr [ebp + 8], 1 */
  11184     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
  11185     _cf = 0;
  11186     _flag_k = FK_NARROW(FK_TEST, 24);
  11187     if (TEST_Z(_flag_a, _flag_b)) goto L_360474FA; /* 0x360474EF: je 0x360474fa */
  11188 L_360474F1:
  11189     PUSH32(esp, esi); /* 0x360474F1: push esi */
  11190     RECOMP_ICALL(0x3615FCC4u); /* 0x360474F2: call 0x3615fcc4 */ /* not lifted */
  11191     RECOMP_FLAGS_IN();
  11192     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
  11193     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
  11194     esp = esp + 4; /* 0x360474F7: add esp, 4 */
  11195     _flag_k = FK_ADD;
  11196 L_360474FA:
  11197     eax = esi; /* 0x360474FA: mov eax, esi */
  11198     esi = POP32_VAL(esp); /* 0x360474FC: pop esi */
  11199     ebp = POP32_VAL(esp); /* 0x360474FD: pop ebp */
  11200     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360474FE: ret 4 */
  11201     RECOMP_REGS_OUT();
  11202 }